vue-data-ui 3.25.2 → 3.25.4
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-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-label.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-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.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/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -1,2349 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, At as n, D as r, G as a, It as o, Jt as s, K as c, Kt as l, Nt as u, S as d, St as f, X as p, Xt as ee, _ as te, c as ne, ft as re, i as m, lt as ie, mt as ae, nt as oe, q as se, qt as ce, r as le, st as h, t as ue, v as de, w as fe, yt as pe } from "./lib-BPg41jWd.js";
|
|
3
|
-
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { n as ge, r as _e, t as ve } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as ye } from "./useConfig-CyCVHo81.js";
|
|
6
|
-
import { t as be } from "./usePrinter-CsDAx75S.js";
|
|
7
|
-
import { n as xe, t as Se } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as Ce } from "./useNestedProp-fNUUtYXm.js";
|
|
9
|
-
import { t as we } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as Te } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
-
import { t as Ee } from "./useTransitions-g_zBREk2.js";
|
|
12
|
-
import { t as De } from "./useStableElementSize-C7KADDKj.js";
|
|
13
|
-
import { t as Oe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as ke } from "./img-EYBQVkRw.js";
|
|
15
|
-
import { n as Ae } from "./Title-BLrnZl5j.js";
|
|
16
|
-
import { t as je } from "./Shape-26P9pTZH.js";
|
|
17
|
-
import { t as Me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
18
|
-
import { l as Ne, t as Pe } from "./useResponsive-ZtArZtUf.js";
|
|
19
|
-
import { t as Fe } from "./DefGrad-DVBqDjhO.js";
|
|
20
|
-
import { t as Ie } from "./SlicerPreview-CPhQI1vX.js";
|
|
21
|
-
import { t as Le } from "./BaseLegendToggle-Cvuc-Mrr.js";
|
|
22
|
-
import { t as Re } from "./A11yDataTable-DdRsVULz.js";
|
|
23
|
-
import { t as ze } from "./useUserOptionState-DK-_1ddE.js";
|
|
24
|
-
import { t as Be } from "./useChartAccessibility-DYqac8yF.js";
|
|
25
|
-
import { t as Ve } from "./Legend-BQxAKh7g.js";
|
|
26
|
-
import { t as He } from "./vue_ui_stackbar-COOrQQdK.js";
|
|
27
|
-
import { Fragment as g, Teleport as Ue, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as We, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as x, mergeProps as Ye, nextTick as Xe, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ze, onMounted as Qe, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as $e, shallowRef as et, toDisplayString as k, toRefs as tt, unref as A, useSlots as nt, watch as rt, watchEffect as it, withCtx as j } from "vue";
|
|
28
|
-
//#region src/components/vue-ui-stackbar.vue
|
|
29
|
-
var at = /* @__PURE__ */ e({ default: () => tn }), ot = ["id"], st = ["id"], ct = ["id"], lt = { style: { position: "relative" } }, ut = [
|
|
30
|
-
"xmlns",
|
|
31
|
-
"aria-describedby",
|
|
32
|
-
"viewBox"
|
|
33
|
-
], dt = [
|
|
34
|
-
"x",
|
|
35
|
-
"y",
|
|
36
|
-
"width",
|
|
37
|
-
"height"
|
|
38
|
-
], ft = { key: 1 }, pt = [
|
|
39
|
-
"x",
|
|
40
|
-
"y",
|
|
41
|
-
"width",
|
|
42
|
-
"height",
|
|
43
|
-
"stroke",
|
|
44
|
-
"stroke-width",
|
|
45
|
-
"stroke-linecap",
|
|
46
|
-
"stroke-linejoin",
|
|
47
|
-
"stroke-dasharray"
|
|
48
|
-
], mt = [
|
|
49
|
-
"x1",
|
|
50
|
-
"x2",
|
|
51
|
-
"y1",
|
|
52
|
-
"y2",
|
|
53
|
-
"stroke",
|
|
54
|
-
"stroke-width",
|
|
55
|
-
"stroke-dasharray"
|
|
56
|
-
], ht = [
|
|
57
|
-
"x1",
|
|
58
|
-
"x2",
|
|
59
|
-
"y1",
|
|
60
|
-
"y2",
|
|
61
|
-
"stroke",
|
|
62
|
-
"stroke-width",
|
|
63
|
-
"stroke-dasharray"
|
|
64
|
-
], gt = [
|
|
65
|
-
"x1",
|
|
66
|
-
"x2",
|
|
67
|
-
"y1",
|
|
68
|
-
"y2",
|
|
69
|
-
"stroke",
|
|
70
|
-
"stroke-width",
|
|
71
|
-
"stroke-dasharray"
|
|
72
|
-
], _t = [
|
|
73
|
-
"x1",
|
|
74
|
-
"x2",
|
|
75
|
-
"y1",
|
|
76
|
-
"y2",
|
|
77
|
-
"stroke",
|
|
78
|
-
"stroke-width",
|
|
79
|
-
"stroke-dasharray"
|
|
80
|
-
], vt = { key: 0 }, yt = [
|
|
81
|
-
"x",
|
|
82
|
-
"y",
|
|
83
|
-
"height",
|
|
84
|
-
"rx",
|
|
85
|
-
"width",
|
|
86
|
-
"fill",
|
|
87
|
-
"stroke",
|
|
88
|
-
"stroke-width"
|
|
89
|
-
], bt = { key: 0 }, xt = [
|
|
90
|
-
"x",
|
|
91
|
-
"y",
|
|
92
|
-
"height",
|
|
93
|
-
"rx",
|
|
94
|
-
"width",
|
|
95
|
-
"fill",
|
|
96
|
-
"stroke",
|
|
97
|
-
"stroke-width"
|
|
98
|
-
], St = [
|
|
99
|
-
"x",
|
|
100
|
-
"y",
|
|
101
|
-
"width",
|
|
102
|
-
"rx",
|
|
103
|
-
"height",
|
|
104
|
-
"fill",
|
|
105
|
-
"stroke",
|
|
106
|
-
"stroke-width"
|
|
107
|
-
], Ct = { key: 0 }, wt = [
|
|
108
|
-
"x",
|
|
109
|
-
"y",
|
|
110
|
-
"width",
|
|
111
|
-
"rx",
|
|
112
|
-
"height",
|
|
113
|
-
"fill",
|
|
114
|
-
"stroke",
|
|
115
|
-
"stroke-width"
|
|
116
|
-
], Tt = [
|
|
117
|
-
"x1",
|
|
118
|
-
"x2",
|
|
119
|
-
"y1",
|
|
120
|
-
"y2",
|
|
121
|
-
"stroke",
|
|
122
|
-
"stroke-width"
|
|
123
|
-
], Et = [
|
|
124
|
-
"x1",
|
|
125
|
-
"x2",
|
|
126
|
-
"y1",
|
|
127
|
-
"y2",
|
|
128
|
-
"stroke",
|
|
129
|
-
"stroke-width"
|
|
130
|
-
], Dt = [
|
|
131
|
-
"x",
|
|
132
|
-
"y",
|
|
133
|
-
"font-size",
|
|
134
|
-
"fill",
|
|
135
|
-
"font-weight"
|
|
136
|
-
], Ot = [
|
|
137
|
-
"transform",
|
|
138
|
-
"font-size",
|
|
139
|
-
"fill",
|
|
140
|
-
"font-weight"
|
|
141
|
-
], kt = [
|
|
142
|
-
"transform",
|
|
143
|
-
"font-size",
|
|
144
|
-
"fill",
|
|
145
|
-
"font-weight"
|
|
146
|
-
], At = [
|
|
147
|
-
"transform",
|
|
148
|
-
"font-size",
|
|
149
|
-
"font-weight",
|
|
150
|
-
"fill"
|
|
151
|
-
], jt = [
|
|
152
|
-
"transform",
|
|
153
|
-
"font-size",
|
|
154
|
-
"fill",
|
|
155
|
-
"font-weight"
|
|
156
|
-
], Mt = [
|
|
157
|
-
"transform",
|
|
158
|
-
"font-size",
|
|
159
|
-
"font-weight",
|
|
160
|
-
"fill"
|
|
161
|
-
], Nt = ["stroke", "d"], Pt = [
|
|
162
|
-
"transform",
|
|
163
|
-
"font-size",
|
|
164
|
-
"font-weight",
|
|
165
|
-
"fill",
|
|
166
|
-
"text-anchor"
|
|
167
|
-
], Ft = ["d", "stroke"], It = [
|
|
168
|
-
"font-size",
|
|
169
|
-
"font-weight",
|
|
170
|
-
"fill",
|
|
171
|
-
"text-anchor",
|
|
172
|
-
"transform"
|
|
173
|
-
], Lt = { key: 0 }, Rt = { key: 1 }, zt = [
|
|
174
|
-
"text-anchor",
|
|
175
|
-
"font-size",
|
|
176
|
-
"font-weight",
|
|
177
|
-
"fill",
|
|
178
|
-
"transform",
|
|
179
|
-
"onClick"
|
|
180
|
-
], Bt = [
|
|
181
|
-
"text-anchor",
|
|
182
|
-
"font-size",
|
|
183
|
-
"fill",
|
|
184
|
-
"transform",
|
|
185
|
-
"innerHTML",
|
|
186
|
-
"onClick"
|
|
187
|
-
], Vt = { key: 0 }, Ht = { key: 1 }, Ut = [
|
|
188
|
-
"font-size",
|
|
189
|
-
"font-weight",
|
|
190
|
-
"fill",
|
|
191
|
-
"stroke",
|
|
192
|
-
"transform",
|
|
193
|
-
"onClick"
|
|
194
|
-
], Wt = [
|
|
195
|
-
"font-size",
|
|
196
|
-
"font-weight",
|
|
197
|
-
"fill",
|
|
198
|
-
"transform",
|
|
199
|
-
"onClick",
|
|
200
|
-
"innerHTML"
|
|
201
|
-
], Gt = [
|
|
202
|
-
"x",
|
|
203
|
-
"y",
|
|
204
|
-
"width",
|
|
205
|
-
"height",
|
|
206
|
-
"onClick",
|
|
207
|
-
"onMouseenter",
|
|
208
|
-
"onMouseleave",
|
|
209
|
-
"fill"
|
|
210
|
-
], Kt = [
|
|
211
|
-
"x",
|
|
212
|
-
"y",
|
|
213
|
-
"width",
|
|
214
|
-
"height",
|
|
215
|
-
"onClick",
|
|
216
|
-
"onMouseenter",
|
|
217
|
-
"onMouseleave",
|
|
218
|
-
"fill"
|
|
219
|
-
], qt = ["data-start", "data-end"], Jt = {
|
|
220
|
-
key: 0,
|
|
221
|
-
style: {
|
|
222
|
-
position: "absolute",
|
|
223
|
-
top: "100%",
|
|
224
|
-
left: "0",
|
|
225
|
-
width: "100%"
|
|
226
|
-
},
|
|
227
|
-
"data-dom-to-png-ignore": "",
|
|
228
|
-
"aria-hidden": "true"
|
|
229
|
-
}, Yt = {
|
|
230
|
-
key: 4,
|
|
231
|
-
class: "vue-data-ui-watermark"
|
|
232
|
-
}, Xt = [
|
|
233
|
-
"x",
|
|
234
|
-
"y",
|
|
235
|
-
"height",
|
|
236
|
-
"width",
|
|
237
|
-
"fill",
|
|
238
|
-
"stroke"
|
|
239
|
-
], Zt = ["id"], Qt = ["onClick"], $t = { key: 0 }, en = { key: 1 }, tn = /*#__PURE__*/ Me({
|
|
240
|
-
__name: "vue-ui-stackbar",
|
|
241
|
-
props: {
|
|
242
|
-
config: {
|
|
243
|
-
type: Object,
|
|
244
|
-
default() {
|
|
245
|
-
return {};
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
dataset: {
|
|
249
|
-
type: Array,
|
|
250
|
-
default() {
|
|
251
|
-
return [];
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
selectedXIndex: {
|
|
255
|
-
type: Number,
|
|
256
|
-
default: void 0
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
emits: [
|
|
260
|
-
"selectDatapoint",
|
|
261
|
-
"selectLegend",
|
|
262
|
-
"selectTimeLabel",
|
|
263
|
-
"selectX",
|
|
264
|
-
"copyAlt"
|
|
265
|
-
],
|
|
266
|
-
setup(e, { expose: Me, emit: at }) {
|
|
267
|
-
let tn = Je(() => import("./Tooltip-CmmM0DtW.js")), nn = Je(() => import("./BaseIcon-Oj70ytWI.js").then((e) => e.n)), rn = Je(() => import("./vue-ui-accordion-BGxpEtfk.js").then((e) => e.n)), an = Je(() => import("./DataTable-DcDMoMmQ.js")), on = Je(() => import("./PenAndPaper-Co2OSRzH.js").then((e) => e.t)), sn = Je(() => import("./UserOptions-pq95M7ss.js").then((e) => e.n)), cn = Je(() => import("./PackageVersion-DWq6mo_q.js").then((e) => e.t)), ln = Je(() => import("./BaseDraggableDialog-Cwj9aGdF.js").then((e) => e.n)), { vue_ui_stackbar: un } = ye(), { isThemeValid: dn, warnInvalidTheme: fn } = we(), pn = nt(), M = e, N = at, mn = _({
|
|
268
|
-
get() {
|
|
269
|
-
return !!M.dataset && M.dataset.length;
|
|
270
|
-
},
|
|
271
|
-
set(e) {
|
|
272
|
-
return e;
|
|
273
|
-
}
|
|
274
|
-
}), P = E(null), F = E(se()), hn = E(!1), gn = E(null), _n = E(""), I = E([]), vn = E(0), yn = E(null), bn = E(null), xn = E(null), Sn = E(null), Cn = E(!1), L = E(null), wn = E(!1), Tn = E(0), En = E(0), Dn = E(0), On = E(!1), kn = E(null), An = E(null), jn = E(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = E(null), In = E(null), Ln = et(null), Rn = E(!1), zn = E(0), Bn = E(0), R = E(null), Vn = E({
|
|
275
|
-
x: 0,
|
|
276
|
-
y: 0
|
|
277
|
-
}), Hn = E("pointer"), Un = De({
|
|
278
|
-
elementRef: Ln,
|
|
279
|
-
minimumWidth: 2,
|
|
280
|
-
minimumHeight: 2,
|
|
281
|
-
stableFramesRequired: 2,
|
|
282
|
-
once: !1,
|
|
283
|
-
onSizeAccepted: () => {
|
|
284
|
-
Kn();
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
function Wn() {
|
|
288
|
-
Ln.value = P.value?.parentNode ?? null;
|
|
289
|
-
}
|
|
290
|
-
function Gn() {
|
|
291
|
-
return new Promise((e) => {
|
|
292
|
-
requestAnimationFrame(() => {
|
|
293
|
-
requestAnimationFrame(e);
|
|
294
|
-
});
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
async function Kn() {
|
|
298
|
-
let e = ++Bn.value;
|
|
299
|
-
Rn.value = !1, await Xe(), await Gn(), await Gn(), e === Bn.value && (zn.value += 1, Rn.value = !0);
|
|
300
|
-
}
|
|
301
|
-
let qn = E(null);
|
|
302
|
-
Qe(() => {
|
|
303
|
-
On.value = !0, Wn(), Un.start(), gr();
|
|
304
|
-
});
|
|
305
|
-
let z = E(ir());
|
|
306
|
-
me({
|
|
307
|
-
config: () => z.value,
|
|
308
|
-
dataset: () => M.dataset,
|
|
309
|
-
component: "VueUiStackbar",
|
|
310
|
-
rules: [
|
|
311
|
-
he.emptyArray,
|
|
312
|
-
{
|
|
313
|
-
test: (e) => e.some((e) => e.series.length > 60),
|
|
314
|
-
message: [
|
|
315
|
-
"👀 Some series have > 60 datapoints. Consider",
|
|
316
|
-
"",
|
|
317
|
-
"▶️ Using VueUiStackline instead, for better readability.",
|
|
318
|
-
"",
|
|
319
|
-
"▶️ Aggregating data to larger time units, to reduce the number of datapoints.",
|
|
320
|
-
"",
|
|
321
|
-
"▶️ Using filters to constraint the data to a specific time range."
|
|
322
|
-
]
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
test: (e) => e.length > 6,
|
|
326
|
-
message: [
|
|
327
|
-
"👀 The number of series > 6, which can make the chart hard to read. Consider:",
|
|
328
|
-
"",
|
|
329
|
-
"▶️ Grouping small values into an \"Other\" category.",
|
|
330
|
-
"",
|
|
331
|
-
"▶️ Using filters to let users choose a maximum number of series to display."
|
|
332
|
-
]
|
|
333
|
-
}
|
|
334
|
-
]
|
|
335
|
-
});
|
|
336
|
-
let { transitionEnabled: B } = Ee({
|
|
337
|
-
config: () => z.value.transitions,
|
|
338
|
-
dataset: () => M.dataset
|
|
339
|
-
}), V = _(() => z.value.userOptions.useCursorPointer), Jn = _(() => ee({
|
|
340
|
-
defaultConfig: {
|
|
341
|
-
userOptions: { show: !1 },
|
|
342
|
-
useCssAnimation: !1,
|
|
343
|
-
table: { show: !1 },
|
|
344
|
-
tooltip: { show: !1 },
|
|
345
|
-
style: { chart: {
|
|
346
|
-
backgroundColor: "#99999930",
|
|
347
|
-
bars: {
|
|
348
|
-
totalValues: { show: !1 },
|
|
349
|
-
dataLabels: { show: !1 }
|
|
350
|
-
},
|
|
351
|
-
grid: {
|
|
352
|
-
frame: { stroke: "#6A6A6A" },
|
|
353
|
-
scale: {
|
|
354
|
-
scaleMin: 0,
|
|
355
|
-
scaleMax: 40
|
|
356
|
-
},
|
|
357
|
-
x: {
|
|
358
|
-
axisColor: "#6A6A6A",
|
|
359
|
-
linesColor: "#6A6A6A",
|
|
360
|
-
axisName: { show: !1 },
|
|
361
|
-
timeLabels: { show: !1 }
|
|
362
|
-
},
|
|
363
|
-
y: {
|
|
364
|
-
axisColor: "#6A6A6A",
|
|
365
|
-
linesColor: "#6A6A6A",
|
|
366
|
-
axisName: { show: !1 },
|
|
367
|
-
axisLabels: { show: !1 }
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
legend: { backgroundColor: "transparent" },
|
|
371
|
-
padding: {
|
|
372
|
-
left: 24,
|
|
373
|
-
right: 24,
|
|
374
|
-
bottom: 12
|
|
375
|
-
},
|
|
376
|
-
zoom: {
|
|
377
|
-
show: !1,
|
|
378
|
-
startIndex: null,
|
|
379
|
-
endIndex: null
|
|
380
|
-
}
|
|
381
|
-
} }
|
|
382
|
-
},
|
|
383
|
-
userConfig: z.value.skeletonConfig ?? {}
|
|
384
|
-
})), { loading: Yn, FINAL_DATASET: Xn, manualLoading: Zn } = xe({
|
|
385
|
-
...tt(M),
|
|
386
|
-
FINAL_CONFIG: z,
|
|
387
|
-
prepareConfig: ir,
|
|
388
|
-
callback: () => {
|
|
389
|
-
Promise.resolve().then(async () => {
|
|
390
|
-
(!z.value.style.chart.zoom.keepState || !qi.value || J.value.start === 0 && J.value.end === 0) && await Ji();
|
|
391
|
-
});
|
|
392
|
-
},
|
|
393
|
-
skeletonDataset: M.config?.skeletonDataset ?? [{
|
|
394
|
-
name: "",
|
|
395
|
-
series: [
|
|
396
|
-
2,
|
|
397
|
-
3,
|
|
398
|
-
5,
|
|
399
|
-
8,
|
|
400
|
-
13,
|
|
401
|
-
21
|
|
402
|
-
],
|
|
403
|
-
color: "#BABABA"
|
|
404
|
-
}, {
|
|
405
|
-
name: "",
|
|
406
|
-
series: [
|
|
407
|
-
1,
|
|
408
|
-
2,
|
|
409
|
-
3,
|
|
410
|
-
5,
|
|
411
|
-
8,
|
|
412
|
-
13
|
|
413
|
-
],
|
|
414
|
-
color: "#CACACA"
|
|
415
|
-
}],
|
|
416
|
-
skeletonConfig: ee({
|
|
417
|
-
defaultConfig: z.value,
|
|
418
|
-
userConfig: Jn.value
|
|
419
|
-
})
|
|
420
|
-
}), { userOptionsVisible: Qn, setUserOptionsVisibility: $n, keepUserOptionState: er } = ze({ config: z.value }), { svgRef: tr } = Be({ config: z.value.style.chart.title });
|
|
421
|
-
function nr() {
|
|
422
|
-
$n(!0);
|
|
423
|
-
}
|
|
424
|
-
function rr() {
|
|
425
|
-
$n(!1), N("selectX", {
|
|
426
|
-
index: null,
|
|
427
|
-
indexLabel: null,
|
|
428
|
-
dataset: null
|
|
429
|
-
}), L.value = null, R.value = null, hn.value = !1;
|
|
430
|
-
}
|
|
431
|
-
function ir() {
|
|
432
|
-
let e = Ce({
|
|
433
|
-
userConfig: M.config,
|
|
434
|
-
defaultConfig: un
|
|
435
|
-
}), t = {};
|
|
436
|
-
M.config && pe(M.config, "style.chart.grid.x.timeLabels.showFirstAndLast") && (e.style.chart.grid.x.timeLabels.showFirstAndLast = !!M.config.style.chart.grid.x.timeLabels.showFirstAndLast);
|
|
437
|
-
let n = e.theme;
|
|
438
|
-
if (n) {
|
|
439
|
-
if (!dn.value(e)) fn(e), t = e;
|
|
440
|
-
else {
|
|
441
|
-
let r = Ce({
|
|
442
|
-
userConfig: He[n] || M.config,
|
|
443
|
-
defaultConfig: e
|
|
444
|
-
});
|
|
445
|
-
t = {
|
|
446
|
-
...Ce({
|
|
447
|
-
userConfig: M.config,
|
|
448
|
-
defaultConfig: r
|
|
449
|
-
}),
|
|
450
|
-
customPalette: e.customPalette.length ? e.customPalette : s[n] || o
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
} else t = e;
|
|
454
|
-
return t;
|
|
455
|
-
}
|
|
456
|
-
let ar = _(() => z.value.style.chart.bars.dataLabels.hideUnderValue != null), or = _(() => z.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
|
|
457
|
-
rt(() => M.config, (e) => {
|
|
458
|
-
Yn.value || (z.value = ir()), Qn.value = !z.value.userOptions.showOnChartHover, gr({ resetSlicer: !z.value.style.chart.zoom.keepState }), Tn.value += 1, En.value += 1, Dn.value += 1, H.value.dataLabels.show = z.value.style.chart.bars.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, Wn(), !z.value.style.chart.zoom.keepState || !qi.value || J.value.start === 0 && J.value.end === 0 ? Ji() : Mr();
|
|
459
|
-
}, { deep: !0 }), rt(() => M.dataset, (e) => {
|
|
460
|
-
Array.isArray(e) && e.length > 0 && (Zn.value = !1), Wn(), z.value.style.chart.zoom.keepState ? Mr() : Fr();
|
|
461
|
-
}, { deep: !0 });
|
|
462
|
-
let H = E({
|
|
463
|
-
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
464
|
-
showTable: z.value.table.show,
|
|
465
|
-
showTooltip: z.value.style.chart.tooltip.show
|
|
466
|
-
});
|
|
467
|
-
rt(z, () => {
|
|
468
|
-
H.value = {
|
|
469
|
-
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
470
|
-
showTable: z.value.table.show,
|
|
471
|
-
showTooltip: z.value.style.chart.tooltip.show
|
|
472
|
-
};
|
|
473
|
-
}, { immediate: !0 });
|
|
474
|
-
let { isPrinting: sr, isImaging: cr, generatePdf: lr, generateImage: ur } = be({
|
|
475
|
-
elementId: `stackbar_${F.value}`,
|
|
476
|
-
fileName: z.value.style.chart.title.text || "vue-ui-stackbar",
|
|
477
|
-
options: z.value.userOptions.print
|
|
478
|
-
}), U = E({
|
|
479
|
-
width: z.value.style.chart.width,
|
|
480
|
-
height: z.value.style.chart.height,
|
|
481
|
-
paddingRatio: {
|
|
482
|
-
top: z.value.style.chart.padding.top / z.value.style.chart.height,
|
|
483
|
-
right: z.value.style.chart.padding.right / z.value.style.chart.width,
|
|
484
|
-
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
485
|
-
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
486
|
-
}
|
|
487
|
-
}), dr = _(() => fe(z.value.customPalette)), fr = et(null), pr = et(null), mr = E(null), hr = _(() => z.value.debug);
|
|
488
|
-
function gr({ resetSlicer: e = !0 } = {}) {
|
|
489
|
-
if (u(M.dataset) ? (oe({
|
|
490
|
-
componentName: "VueUiStackbar",
|
|
491
|
-
type: "dataset",
|
|
492
|
-
debug: hr.value
|
|
493
|
-
}), Zn.value = !0) : M.dataset.forEach((e, t) => {
|
|
494
|
-
ae({
|
|
495
|
-
datasetObject: e,
|
|
496
|
-
requiredAttributes: ["name", "series"]
|
|
497
|
-
}).forEach((e) => {
|
|
498
|
-
mn.value = !1, oe({
|
|
499
|
-
componentName: "VueUiStackbar",
|
|
500
|
-
type: "datasetSerieAttribute",
|
|
501
|
-
property: e,
|
|
502
|
-
index: t,
|
|
503
|
-
debug: hr.value
|
|
504
|
-
}), Zn.value = !0;
|
|
505
|
-
});
|
|
506
|
-
}), u(M.dataset) || (Zn.value = z.value.loading), setTimeout(() => {
|
|
507
|
-
wn.value = !0;
|
|
508
|
-
}, 10), z.value.responsive) {
|
|
509
|
-
let e = Ne(() => {
|
|
510
|
-
wn.value = !1;
|
|
511
|
-
let { width: e, height: t } = Pe({
|
|
512
|
-
chart: P.value,
|
|
513
|
-
title: z.value.style.chart.title.text ? yn.value : null,
|
|
514
|
-
legend: z.value.style.chart.legend.show ? bn.value : null,
|
|
515
|
-
slicer: z.value.style.chart.zoom.show && q.value > 6 ? xn.value.$el : null,
|
|
516
|
-
source: Sn.value
|
|
517
|
-
});
|
|
518
|
-
requestAnimationFrame(() => {
|
|
519
|
-
U.value.width = e, U.value.height = t - 12, clearTimeout(mr.value), mr.value = setTimeout(() => {
|
|
520
|
-
wn.value = !0;
|
|
521
|
-
}, 10);
|
|
522
|
-
});
|
|
523
|
-
});
|
|
524
|
-
fr.value && (pr.value && fr.value.unobserve(pr.value), fr.value.disconnect()), fr.value = new ResizeObserver(e), pr.value = P.value.parentNode, fr.value.observe(pr.value);
|
|
525
|
-
}
|
|
526
|
-
Kn(), e && Ji();
|
|
527
|
-
}
|
|
528
|
-
Ze(() => {
|
|
529
|
-
Un.stop(), fr.value && (pr.value && fr.value.unobserve(pr.value), fr.value.disconnect());
|
|
530
|
-
});
|
|
531
|
-
let W = _(() => z.value.style.chart.grid.y.position === "right");
|
|
532
|
-
function _r() {
|
|
533
|
-
let e = 0;
|
|
534
|
-
z.value.orientation === "vertical" && Nn.value && (e = Array.from(Nn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
535
|
-
let n = t.getComputedTextLength();
|
|
536
|
-
return n > e ? n : e;
|
|
537
|
-
}, 0)), z.value.orientation === "horizontal" && Pn.value && (e = Array.from(Pn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
538
|
-
let n = t.getComputedTextLength();
|
|
539
|
-
return n > e ? n : e;
|
|
540
|
-
}, 0));
|
|
541
|
-
let t = Mn.value ? Mn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
542
|
-
return {
|
|
543
|
-
left: W.value ? 0 : e + t,
|
|
544
|
-
right: W.value ? e + t : 0,
|
|
545
|
-
scaleLabelsWidth: e,
|
|
546
|
-
yAxisLabelWidth: t
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
let vr = E(0), yr = E(0), br = Ne((e) => {
|
|
550
|
-
yr.value = e + z.value.style.chart.bars.totalValues.fontSize;
|
|
551
|
-
}, 100);
|
|
552
|
-
function xr() {
|
|
553
|
-
if (z.value.orientation !== "horizontal") return 0;
|
|
554
|
-
let e = In.value;
|
|
555
|
-
if (!e) return 0;
|
|
556
|
-
let t = Array.from(e.querySelectorAll("text"));
|
|
557
|
-
if (!t.length) return 0;
|
|
558
|
-
let n = -Infinity;
|
|
559
|
-
for (let e of t) try {
|
|
560
|
-
let t = e.getBBox(), r = t.x + t.width;
|
|
561
|
-
r > n && (n = r);
|
|
562
|
-
} catch {}
|
|
563
|
-
return Math.max(0, n - (G.value?.right ?? 0));
|
|
564
|
-
}
|
|
565
|
-
it((e) => {
|
|
566
|
-
if (z.value.orientation !== "horizontal") return;
|
|
567
|
-
let t = In.value;
|
|
568
|
-
if (!t) return;
|
|
569
|
-
let n = () => {
|
|
570
|
-
let e = xr();
|
|
571
|
-
br(e);
|
|
572
|
-
};
|
|
573
|
-
n();
|
|
574
|
-
let r = new ResizeObserver(n);
|
|
575
|
-
r.observe(t);
|
|
576
|
-
let a = new MutationObserver(n);
|
|
577
|
-
a.observe(t, {
|
|
578
|
-
childList: !0,
|
|
579
|
-
subtree: !0,
|
|
580
|
-
characterData: !0
|
|
581
|
-
}), e(() => {
|
|
582
|
-
r.disconnect(), a.disconnect();
|
|
583
|
-
});
|
|
584
|
-
}), Ze(() => {
|
|
585
|
-
vr.value = 0, yr.value = 0;
|
|
586
|
-
});
|
|
587
|
-
let Sr = E(0), Cr = E(0);
|
|
588
|
-
function wr(e) {
|
|
589
|
-
let t = Number.isFinite(e) ? e : 0;
|
|
590
|
-
Sr.value !== t && (Sr.value = t);
|
|
591
|
-
}
|
|
592
|
-
function Tr() {
|
|
593
|
-
let e = z.value.orientation === "vertical" ? Pn.value : Nn.value;
|
|
594
|
-
if (!e) {
|
|
595
|
-
wr(0);
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
try {
|
|
599
|
-
wr(e.getBBox()?.height);
|
|
600
|
-
} catch {
|
|
601
|
-
wr(0);
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
function Er() {
|
|
605
|
-
Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(() => {
|
|
606
|
-
requestAnimationFrame(() => {
|
|
607
|
-
Tr();
|
|
608
|
-
});
|
|
609
|
-
});
|
|
610
|
-
}
|
|
611
|
-
Ze(() => {
|
|
612
|
-
Cr.value && cancelAnimationFrame(Cr.value);
|
|
613
|
-
});
|
|
614
|
-
let Dr = _(() => {
|
|
615
|
-
let e = 0;
|
|
616
|
-
if (jn.value) try {
|
|
617
|
-
e = jn.value.getBBox().height;
|
|
618
|
-
} catch {
|
|
619
|
-
e = 0;
|
|
620
|
-
}
|
|
621
|
-
let t = z.value.style.chart.grid.x.timeLabels.show ? Sr.value : 0;
|
|
622
|
-
return e + t;
|
|
623
|
-
}), G = _(() => {
|
|
624
|
-
zn.value;
|
|
625
|
-
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.bars.totalValues.show && M.dataset && M.dataset.length > 1 ? z.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
|
|
626
|
-
if (z.value.style.chart.grid.y.axisLabels.show) {
|
|
627
|
-
let e = _r();
|
|
628
|
-
a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
|
|
629
|
-
}
|
|
630
|
-
let l = z.value.style.chart.padding.top + r, u = t - t * n - yr.value - o, d = e - z.value.style.chart.padding.bottom - Dr.value - r, f = z.value.style.chart.padding.left + a, p = t - f - t * n - yr.value - o, ee = e - l - z.value.style.chart.padding.bottom - Dr.value - r;
|
|
631
|
-
return {
|
|
632
|
-
chartHeight: e,
|
|
633
|
-
chartWidth: t,
|
|
634
|
-
top: l,
|
|
635
|
-
right: u,
|
|
636
|
-
bottom: d,
|
|
637
|
-
left: f,
|
|
638
|
-
width: Math.max(0, p),
|
|
639
|
-
height: Math.max(0, ee),
|
|
640
|
-
offsetLeft: a,
|
|
641
|
-
offsetRightAxis: o,
|
|
642
|
-
scaleLabelsWidth: s,
|
|
643
|
-
yAxisLabelWidth: c
|
|
644
|
-
};
|
|
645
|
-
}), Or = _(() => {
|
|
646
|
-
let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
|
|
647
|
-
fill: z.value.style.chart.zoom.preview.fill,
|
|
648
|
-
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
649
|
-
"stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
|
|
650
|
-
"stroke-dasharray": z.value.style.chart.zoom.preview.strokeDasharray,
|
|
651
|
-
"stroke-linecap": "round",
|
|
652
|
-
"stroke-linejoin": "round",
|
|
653
|
-
style: {
|
|
654
|
-
pointerEvents: "none",
|
|
655
|
-
transition: "none !important",
|
|
656
|
-
animation: "none !important"
|
|
657
|
-
}
|
|
658
|
-
};
|
|
659
|
-
if (z.value.orientation === "horizontal") {
|
|
660
|
-
let a = r / s;
|
|
661
|
-
return {
|
|
662
|
-
x: e,
|
|
663
|
-
y: t + c * a,
|
|
664
|
-
width: n,
|
|
665
|
-
height: u * a,
|
|
666
|
-
...d
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
{
|
|
670
|
-
let a = n / s;
|
|
671
|
-
return {
|
|
672
|
-
x: e + c * a,
|
|
673
|
-
y: t,
|
|
674
|
-
width: u * a,
|
|
675
|
-
height: r,
|
|
676
|
-
...d
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
}), K = _(() => Xn.value.map((e, t) => {
|
|
680
|
-
let n = se(), r = String(e.key ?? e.id ?? e.name ?? n), a = d(e.color) || dr.value[t] || o[t] || o[t % o.length];
|
|
681
|
-
return {
|
|
682
|
-
...e,
|
|
683
|
-
datasetKey: r,
|
|
684
|
-
series: JSON.parse(JSON.stringify(e.series)).map((e) => z.value.style.chart.bars.distributed ? Math.abs(e) : e),
|
|
685
|
-
signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
|
|
686
|
-
absoluteIndex: t,
|
|
687
|
-
id: n,
|
|
688
|
-
color: a
|
|
689
|
-
};
|
|
690
|
-
})), q = _(() => {
|
|
691
|
-
let e = Math.max(...K.value.filter((e) => !I.value.includes(e.id)).map((e) => e.series.length));
|
|
692
|
-
return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
|
|
693
|
-
});
|
|
694
|
-
function kr(e) {
|
|
695
|
-
qn.value = e;
|
|
696
|
-
}
|
|
697
|
-
let J = E({
|
|
698
|
-
start: 0,
|
|
699
|
-
end: Math.max(...Xn.value.map((e) => e.series.length))
|
|
700
|
-
}), Y = E({
|
|
701
|
-
start: 0,
|
|
702
|
-
end: Math.max(...Xn.value.map((e) => e.series.length))
|
|
703
|
-
}), Ar = _(() => z.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
704
|
-
function jr(e, t) {
|
|
705
|
-
Y.value[e] = t;
|
|
706
|
-
}
|
|
707
|
-
function Mr() {
|
|
708
|
-
let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
709
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, xn.value && (xn.value.setStartValue(t), xn.value.setEndValue(n));
|
|
710
|
-
}
|
|
711
|
-
let Nr = E(null);
|
|
712
|
-
function Pr() {
|
|
713
|
-
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
714
|
-
}
|
|
715
|
-
Ze(() => {
|
|
716
|
-
Nr.value && cancelAnimationFrame(Nr.value);
|
|
717
|
-
});
|
|
718
|
-
async function Fr({ force: e = !1 } = {}) {
|
|
719
|
-
if (z.value.style.chart.zoom.keepState && !e && qi.value && (J.value.start !== 0 || J.value.end !== 0)) {
|
|
720
|
-
Mr();
|
|
721
|
-
return;
|
|
722
|
-
}
|
|
723
|
-
Ji(), await Xe(), Nr.value && cancelAnimationFrame(Nr.value), Nr.value = requestAnimationFrame(async () => {
|
|
724
|
-
await Pr(), Ji();
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
let X = _(() => {
|
|
728
|
-
let e;
|
|
729
|
-
return e = z.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
|
|
730
|
-
}), Ir = _(() => l(K.value.filter((e) => !I.value.includes(e.id))).slice(J.value.start, J.value.end)), Lr = _(() => I.value.length === K.value.length), Rr = _(() => z.value.style.chart.zoom.minimap.show ? l(K.value.map((e) => ({
|
|
731
|
-
...e,
|
|
732
|
-
series: e.series.map((e) => e ?? 0)
|
|
733
|
-
})).filter((e) => Lr.value ? !0 : !I.value.includes(e.id))) : []), zr = _(() => z.value.style.chart.zoom.minimap.show ? [{
|
|
734
|
-
name: "",
|
|
735
|
-
series: Rr.value,
|
|
736
|
-
color: "#000000",
|
|
737
|
-
isVisible: !0
|
|
738
|
-
}] : []), Br = _(() => l(K.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
|
|
739
|
-
...e,
|
|
740
|
-
series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
|
|
741
|
-
}))).slice(J.value.start, J.value.end)), Vr = _(() => {
|
|
742
|
-
let e = K.value.filter((e) => !I.value.includes(e.id));
|
|
743
|
-
return {
|
|
744
|
-
positive: l(e.map((e) => ({
|
|
745
|
-
...e,
|
|
746
|
-
series: e.series.slice(J.value.start, J.value.end).map((e) => e >= 0 ? e : 0)
|
|
747
|
-
}))),
|
|
748
|
-
negative: l(e.map((e) => ({
|
|
749
|
-
...e,
|
|
750
|
-
series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
|
|
751
|
-
})))
|
|
752
|
-
};
|
|
753
|
-
}), Hr = _(() => {
|
|
754
|
-
let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...Vr.value.positive), t = Math.min(...Vr.value.negative), n = z.value.style.chart.grid.scale.scaleMin !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMin : [
|
|
755
|
-
-Infinity,
|
|
756
|
-
Infinity,
|
|
757
|
-
NaN,
|
|
758
|
-
void 0,
|
|
759
|
-
null
|
|
760
|
-
].includes(t) ? 0 : t;
|
|
761
|
-
return !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks) : te(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks);
|
|
762
|
-
}), Ur = _(() => Hr.value.ticks), Z = _(() => {
|
|
763
|
-
let e = Hr.value, t = e.max + Math.abs(e.min);
|
|
764
|
-
return Ur.value.map((n) => ({
|
|
765
|
-
zero: G.value.bottom - G.value.height * (Math.abs(e.min) / t),
|
|
766
|
-
y: G.value.bottom - G.value.height * ((n + Math.abs(e.min)) / t),
|
|
767
|
-
x: W.value ? G.value.right + 8 : G.value.left - 8,
|
|
768
|
-
horizontal_zero: G.value.left + G.value.width * (Math.abs(e.min) / t),
|
|
769
|
-
horizontal_x: G.value.left + G.value.width * ((n + Math.abs(e.min)) / t),
|
|
770
|
-
horizontal_y: G.value.bottom - 8,
|
|
771
|
-
value: n
|
|
772
|
-
}));
|
|
773
|
-
}), Wr = _(() => {
|
|
774
|
-
let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.bars.dataLabels;
|
|
775
|
-
return Ur.value.map((r) => String(m(e.formatter, r, p({
|
|
776
|
-
p: t,
|
|
777
|
-
v: r,
|
|
778
|
-
s: n,
|
|
779
|
-
r: e.rounding
|
|
780
|
-
}), { datapoint: { value: r } }) ?? "")).join("|");
|
|
781
|
-
});
|
|
782
|
-
rt(() => [
|
|
783
|
-
Wr.value,
|
|
784
|
-
z.value.orientation,
|
|
785
|
-
z.value.style.chart.grid.y.axisLabels.show,
|
|
786
|
-
z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
787
|
-
z.value.style.chart.grid.y.axisLabels.bold,
|
|
788
|
-
z.value.style.chart.grid.y.position
|
|
789
|
-
], () => {
|
|
790
|
-
z.value.style.chart.grid.y.axisLabels.show && Kn();
|
|
791
|
-
}, { flush: "post" });
|
|
792
|
-
let Q = E([]), Gr = E([]), Kr = 0;
|
|
793
|
-
it(() => {
|
|
794
|
-
let e = ++Kr;
|
|
795
|
-
(async () => {
|
|
796
|
-
let t = await ve({
|
|
797
|
-
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
798
|
-
maxDatapoints: q.value,
|
|
799
|
-
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
800
|
-
start: J.value.start,
|
|
801
|
-
end: J.value.end
|
|
802
|
-
});
|
|
803
|
-
e === Kr && (Q.value = t);
|
|
804
|
-
})();
|
|
805
|
-
});
|
|
806
|
-
let qr = 0;
|
|
807
|
-
it(() => {
|
|
808
|
-
let e = ++qr;
|
|
809
|
-
(async () => {
|
|
810
|
-
let t = await ve({
|
|
811
|
-
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
812
|
-
maxDatapoints: q.value,
|
|
813
|
-
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
814
|
-
start: 0,
|
|
815
|
-
end: q.value
|
|
816
|
-
});
|
|
817
|
-
e === qr && (Gr.value = t);
|
|
818
|
-
})();
|
|
819
|
-
});
|
|
820
|
-
let Jr = _(() => {
|
|
821
|
-
let e = Math.max(1, Math.floor(Number(z.value.style.chart.grid.x.timeLabels.modulo) || 1)), t = Gr.value.length, n = Q.value.length;
|
|
822
|
-
if (!t || !n) return e;
|
|
823
|
-
let r = Math.max(1, Math.ceil(t / e));
|
|
824
|
-
return Math.max(1, Math.round(n / r));
|
|
825
|
-
}), Yr = _(() => {
|
|
826
|
-
let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = Gr.value || [], r = J.value.start ?? 0, a = L.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? ""), l = ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Jr.value, s, c, r, a, o);
|
|
827
|
-
if (!e.showFirstAndLast || !e.showOnlyAtModulo || e.showOnlyFirstAndLast || !l.length) return l;
|
|
828
|
-
let u = l.length - 1;
|
|
829
|
-
return l.map((e, t) => t !== 0 && t !== u ? e : {
|
|
830
|
-
...e,
|
|
831
|
-
text: s[t] ?? ""
|
|
832
|
-
});
|
|
833
|
-
});
|
|
834
|
-
it(() => {
|
|
835
|
-
z.value.orientation, z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, Yr.value?.map((e) => e?.text ?? "").join("|"), Wr.value, U.value.width, U.value.height, Pn.value, Nn.value, jn.value, Er();
|
|
836
|
-
}, { flush: "post" });
|
|
837
|
-
let Xr = E({
|
|
838
|
-
months: [],
|
|
839
|
-
shortMonths: [],
|
|
840
|
-
days: [],
|
|
841
|
-
shortDays: []
|
|
842
|
-
}), Zr = 0;
|
|
843
|
-
it(() => {
|
|
844
|
-
let e = ++Zr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
845
|
-
(async () => {
|
|
846
|
-
let n = await _e(t.locale).catch(() => _e("en"));
|
|
847
|
-
e === Zr && (Xr.value = n.data);
|
|
848
|
-
})();
|
|
849
|
-
});
|
|
850
|
-
let Qr = _(() => {
|
|
851
|
-
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = ge({
|
|
852
|
-
useUTC: e.useUTC,
|
|
853
|
-
locale: Xr.value,
|
|
854
|
-
januaryAsYear: e.januaryAsYear
|
|
855
|
-
});
|
|
856
|
-
return (e, n) => {
|
|
857
|
-
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
858
|
-
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
859
|
-
};
|
|
860
|
-
}), $r = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
861
|
-
text: Qr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
862
|
-
absoluteIndex: t
|
|
863
|
-
}))), ei = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
864
|
-
text: Qr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
865
|
-
absoluteIndex: t
|
|
866
|
-
}))), ti = _(() => {
|
|
867
|
-
let e = /* @__PURE__ */ new Map();
|
|
868
|
-
return (z.value.style.chart.grid.x.timeLabels.values || []).forEach((t) => {
|
|
869
|
-
if ([
|
|
870
|
-
null,
|
|
871
|
-
void 0,
|
|
872
|
-
""
|
|
873
|
-
].includes(t)) return;
|
|
874
|
-
let n = String(t);
|
|
875
|
-
e.set(n, (e.get(n) || 0) + 1);
|
|
876
|
-
}), e;
|
|
877
|
-
});
|
|
878
|
-
function ni(e) {
|
|
879
|
-
let t = (z.value.style.chart.grid.x.timeLabels.values || [])[e];
|
|
880
|
-
if ([
|
|
881
|
-
null,
|
|
882
|
-
void 0,
|
|
883
|
-
""
|
|
884
|
-
].includes(t)) return `fallback-${e}`;
|
|
885
|
-
let n = String(t);
|
|
886
|
-
return (ti.value.get(n) || 0) > 1 ? `${n}-${e}` : n;
|
|
887
|
-
}
|
|
888
|
-
function ri(e, t) {
|
|
889
|
-
return `${e.datasetKey}:${ni(t)}`;
|
|
890
|
-
}
|
|
891
|
-
let $ = _(() => {
|
|
892
|
-
if (!mn.value && !Yn.value) return [];
|
|
893
|
-
let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Vr.value.positive) || 0, o = Math.min(...Vr.value.negative), s = [
|
|
894
|
-
-Infinity,
|
|
895
|
-
Infinity,
|
|
896
|
-
NaN,
|
|
897
|
-
void 0,
|
|
898
|
-
null
|
|
899
|
-
].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : te(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width, p = Z.value[0] ? Z.value[0].zero : G.value.bottom, ee = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, ne = Array(Rr.value.length).fill(0), re = Array(Rr.value.length).fill(0);
|
|
900
|
-
return K.value.filter((e) => !I.value.includes(e.id)).map((a) => {
|
|
901
|
-
let o = a.series.slice(), s = o.map((e, t) => ne[t]), c = o.map((e, t) => re[t]);
|
|
902
|
-
o.forEach((e, t) => {
|
|
903
|
-
(Number(e) || 0) >= 0 ? ne[t] += Number(e) || 0 : re[t] += Math.abs(Number(e) || 0);
|
|
904
|
-
});
|
|
905
|
-
let l = a.series.slice(J.value.start, J.value.end), te = a.signedSeries.slice(J.value.start, J.value.end), m = l.map((e, t) => ri(a, J.value.start + t)), ie = o.map((e, t) => ri(a, t)), ae = l.map((e, t) => G.value.left + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), oe = (Rr.value || []).filter(Number.isFinite), se = oe.length ? Math.max(...oe) : 0, ce = oe.length ? Math.min(...oe) : 0;
|
|
906
|
-
function le({ minimapH: e }) {
|
|
907
|
-
let t = 1e-9, n = se > 0;
|
|
908
|
-
if (n && ce < 0) {
|
|
909
|
-
let n = Math.max(se, Math.abs(ce)) || t;
|
|
910
|
-
return {
|
|
911
|
-
pxPerUnit: e / 2 / n,
|
|
912
|
-
zero: e / 2
|
|
913
|
-
};
|
|
914
|
-
}
|
|
915
|
-
return n ? {
|
|
916
|
-
pxPerUnit: e / Math.max(t, se),
|
|
917
|
-
zero: e
|
|
918
|
-
} : {
|
|
919
|
-
pxPerUnit: e / Math.max(t, Math.abs(ce)),
|
|
920
|
-
zero: 0
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
let h = ({ left: e, unitW: t }) => {
|
|
924
|
-
let n = t * (z.value.style.chart.bars.gapRatio / 4);
|
|
925
|
-
return o.map((r, a) => e + t * a + n);
|
|
926
|
-
}, ue = l.map((e, t) => G.value.top + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), de = l.map((t, r) => {
|
|
927
|
-
let a = z.value.style.chart.bars.distributed ? (t || 0) / Ir.value[r] : (t || 0) / u, o, s;
|
|
928
|
-
return t > 0 ? (s = d * a, o = p - s - e[r], e[r] += s) : (s = d * a, o = p + n[r], n[r] += Math.abs(s)), o;
|
|
929
|
-
}), fe = ({ minimapH: e }) => {
|
|
930
|
-
if (z.value.style.chart.bars.distributed) return o.map((t, n) => {
|
|
931
|
-
let r = Math.abs(Number(t) || 0), a = Math.abs(Rr.value?.[n] || 0) || 1e-9;
|
|
932
|
-
return e - (s[n] + r) / a * e;
|
|
933
|
-
});
|
|
934
|
-
let { pxPerUnit: t, zero: n } = le({ minimapH: e });
|
|
935
|
-
return o.map((e, r) => {
|
|
936
|
-
let a = Number(e) || 0;
|
|
937
|
-
return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
|
|
938
|
-
});
|
|
939
|
-
}, pe = l.map((e, n) => {
|
|
940
|
-
let a = z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[n] : (e || 0) / u, o, s;
|
|
941
|
-
return e > 0 ? (s = f * a, o = ee + t[n], t[n] += s) : (s = f * a, o = ee - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
|
|
942
|
-
}), me = l.map((e, t) => {
|
|
943
|
-
let n = z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / u;
|
|
944
|
-
return e > 0 ? d * n : d * Math.abs(n);
|
|
945
|
-
}), he = ({ minimapH: e }) => {
|
|
946
|
-
if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Rr.value?.[n] || 0) || 1e-9) * e);
|
|
947
|
-
let { pxPerUnit: t } = le({ minimapH: e });
|
|
948
|
-
return o.map((e) => Math.abs(Number(e) || 0) * t);
|
|
949
|
-
}, ge = l.map((e, t) => {
|
|
950
|
-
let n = z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / u;
|
|
951
|
-
return e > 0 ? f * n : f * Math.abs(n);
|
|
952
|
-
}), _e = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
|
|
953
|
-
return {
|
|
954
|
-
...a,
|
|
955
|
-
proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / _e),
|
|
956
|
-
series: l,
|
|
957
|
-
signedSeries: te,
|
|
958
|
-
rectKeys: m,
|
|
959
|
-
minimapRectKeys: ie,
|
|
960
|
-
x: ae,
|
|
961
|
-
y: de,
|
|
962
|
-
height: me,
|
|
963
|
-
horizontal_width: ge,
|
|
964
|
-
horizontal_y: ue,
|
|
965
|
-
horizontal_x: pe,
|
|
966
|
-
xMinimap: h,
|
|
967
|
-
yMinimap: fe,
|
|
968
|
-
heightMinimap: he
|
|
969
|
-
};
|
|
970
|
-
});
|
|
971
|
-
}), ii = _(() => Br.value.map((e, t) => ({
|
|
972
|
-
value: e,
|
|
973
|
-
sign: e >= 0 ? 1 : -1
|
|
974
|
-
})));
|
|
975
|
-
function ai(e, t, n, r, a) {
|
|
976
|
-
let o = a === -1 && e >= 0 ? -e : e;
|
|
977
|
-
return m(z.value.style.chart.bars.dataLabels.formatter, o, p({
|
|
978
|
-
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
979
|
-
v: o,
|
|
980
|
-
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
981
|
-
r: z.value.style.chart.bars.dataLabels.rounding
|
|
982
|
-
}), {
|
|
983
|
-
datapoint: t,
|
|
984
|
-
seriesIndex: n,
|
|
985
|
-
datapointIndex: r
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
function oi(e, t, n, r) {
|
|
989
|
-
return m(z.value.style.chart.bars.dataLabels.formatter, e, p({
|
|
990
|
-
v: isNaN(e) ? 0 : e,
|
|
991
|
-
s: "%",
|
|
992
|
-
r: z.value.style.chart.bars.dataLabels.rounding
|
|
993
|
-
}), {
|
|
994
|
-
datapoint: t,
|
|
995
|
-
seriesIndex: n,
|
|
996
|
-
datapointIndex: r
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
function si(e) {
|
|
1000
|
-
let t = JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
1001
|
-
name: t.name,
|
|
1002
|
-
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
1003
|
-
proportion: t.proportions[e] || null,
|
|
1004
|
-
color: t.color,
|
|
1005
|
-
id: t.id
|
|
1006
|
-
}));
|
|
1007
|
-
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
1008
|
-
datapoint: t,
|
|
1009
|
-
seriesIndex: e + J.value.start
|
|
1010
|
-
}), N("selectDatapoint", {
|
|
1011
|
-
datapoint: t,
|
|
1012
|
-
period: Q.value[e]
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
function ci(e) {
|
|
1016
|
-
return JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
1017
|
-
name: t.name,
|
|
1018
|
-
absoluteIndex: t.absoluteIndex,
|
|
1019
|
-
value: t.series[e] === 0 ? 0 : (t.signedSeries[e] === -1 && t.series[e] >= 0 ? -t.series[e] : t.series[e]) || null,
|
|
1020
|
-
proportion: t.proportions[e] || null,
|
|
1021
|
-
color: t.color,
|
|
1022
|
-
id: t.id,
|
|
1023
|
-
timeLabel: Gr.value[e]
|
|
1024
|
-
}));
|
|
1025
|
-
}
|
|
1026
|
-
function li(e) {
|
|
1027
|
-
if (z.value.events.datapointLeave) {
|
|
1028
|
-
let t = ci(e);
|
|
1029
|
-
z.value.events.datapointLeave({
|
|
1030
|
-
datapoint: t,
|
|
1031
|
-
seriesIndex: e + J.value.start
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
hn.value = !1, L.value = null, R.value === e && (R.value = null);
|
|
1035
|
-
}
|
|
1036
|
-
let ui = _(() => Array(q.value).fill(0).map((e, t) => ci(t)));
|
|
1037
|
-
rt(() => M.selectedXIndex, (e) => {
|
|
1038
|
-
if ([null, void 0].includes(M.selectedXIndex)) {
|
|
1039
|
-
L.value = null;
|
|
1040
|
-
return;
|
|
1041
|
-
}
|
|
1042
|
-
let t = e - J.value.start;
|
|
1043
|
-
t < 0 || e >= J.value.end ? L.value = null : L.value = t ?? null;
|
|
1044
|
-
}, { immediate: !0 });
|
|
1045
|
-
function di(e) {
|
|
1046
|
-
if (!z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1047
|
-
let t = Q.value?.[e]?.text || null, n = ei.value?.[e]?.text || null, r = Gr.value?.[e]?.text || null;
|
|
1048
|
-
return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1049
|
-
}
|
|
1050
|
-
function fi(e, t = "pointer") {
|
|
1051
|
-
if (Lr.value) return;
|
|
1052
|
-
Hn.value = t, R.value = e, L.value = e, hn.value = !0;
|
|
1053
|
-
let n = z.value.style.chart.tooltip.customFormat, r = ci(e);
|
|
1054
|
-
Qi({
|
|
1055
|
-
seriesIndex: e,
|
|
1056
|
-
datapoint: r
|
|
1057
|
-
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1058
|
-
datapoint: r,
|
|
1059
|
-
seriesIndex: e + J.value.start
|
|
1060
|
-
}), gn.value = {
|
|
1061
|
-
timeLabel: di(e),
|
|
1062
|
-
datapoint: r,
|
|
1063
|
-
seriesIndex: e,
|
|
1064
|
-
config: z.value,
|
|
1065
|
-
series: $.value
|
|
1066
|
-
};
|
|
1067
|
-
let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), o = r.map((e) => h(e.value)).reduce((e, t) => e + t, 0);
|
|
1068
|
-
if (f(n) && ie(() => n({
|
|
1069
|
-
seriesIndex: e,
|
|
1070
|
-
datapoint: r,
|
|
1071
|
-
series: $.value,
|
|
1072
|
-
config: z.value
|
|
1073
|
-
}))) _n.value = n({
|
|
1074
|
-
seriesIndex: e,
|
|
1075
|
-
datapoint: r,
|
|
1076
|
-
series: $.value,
|
|
1077
|
-
config: z.value
|
|
1078
|
-
});
|
|
1079
|
-
else {
|
|
1080
|
-
let { showValue: t, showTotal: n, totalTranslation: s, showPercentage: c, borderColor: l, roundingValue: u, roundingPercentage: d } = z.value.style.chart.tooltip, f = "", ee = di(e);
|
|
1081
|
-
ee && (f += `<div style="width:100%;text-align:center;border-bottom:1px solid ${l};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), n && (f += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1082
|
-
<span>${s}:</span>
|
|
1083
|
-
<span>
|
|
1084
|
-
${m(z.value.style.chart.bars.dataLabels.formatter, o, p({
|
|
1085
|
-
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1086
|
-
v: o,
|
|
1087
|
-
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1088
|
-
r: u
|
|
1089
|
-
}), { datapoint: {
|
|
1090
|
-
name: s,
|
|
1091
|
-
value: o
|
|
1092
|
-
} })}
|
|
1093
|
-
</span>
|
|
1094
|
-
</div>`);
|
|
1095
|
-
let te = [t && c ? "(" : "", t && c ? ")" : ""];
|
|
1096
|
-
r.reverse().forEach((e) => {
|
|
1097
|
-
f += `
|
|
1098
|
-
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1099
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${pn.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${F.value}_${e.absoluteIndex})"/>` : ""}</svg>
|
|
1100
|
-
${e.name}${t || c ? ":" : ""} ${t ? m(z.value.style.chart.bars.dataLabels.formatter, e.value, p({
|
|
1101
|
-
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1102
|
-
v: e.value,
|
|
1103
|
-
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1104
|
-
r: u
|
|
1105
|
-
}, { datapoint: e })) : ""} ${te[0]}${c ? p({
|
|
1106
|
-
v: isNaN(e.value / a) ? 0 : Math.abs(e.value) / a * 100,
|
|
1107
|
-
s: "%",
|
|
1108
|
-
r: d
|
|
1109
|
-
}) : ""}${te[1]}
|
|
1110
|
-
</div>
|
|
1111
|
-
`;
|
|
1112
|
-
}), _n.value = `<div>${f}</div>`;
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
let pi = _(() => U.value.width), mi = _(() => U.value.height);
|
|
1116
|
-
Oe({
|
|
1117
|
-
timeLabelsEls: z.value.orientation === "vertical" ? Pn : Nn,
|
|
1118
|
-
timeLabels: Q,
|
|
1119
|
-
slicer: J,
|
|
1120
|
-
configRef: z,
|
|
1121
|
-
rotationPath: [
|
|
1122
|
-
"style",
|
|
1123
|
-
"chart",
|
|
1124
|
-
"grid",
|
|
1125
|
-
"x",
|
|
1126
|
-
"timeLabels",
|
|
1127
|
-
"rotation"
|
|
1128
|
-
],
|
|
1129
|
-
autoRotatePath: [
|
|
1130
|
-
"style",
|
|
1131
|
-
"chart",
|
|
1132
|
-
"grid",
|
|
1133
|
-
"x",
|
|
1134
|
-
"timeLabels",
|
|
1135
|
-
"autoRotate",
|
|
1136
|
-
"enable"
|
|
1137
|
-
],
|
|
1138
|
-
isAutoSize: !1,
|
|
1139
|
-
width: pi,
|
|
1140
|
-
height: mi,
|
|
1141
|
-
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
1142
|
-
});
|
|
1143
|
-
function hi(e) {
|
|
1144
|
-
Cn.value = e, vn.value += 1;
|
|
1145
|
-
}
|
|
1146
|
-
function gi() {
|
|
1147
|
-
H.value.showTable = !H.value.showTable;
|
|
1148
|
-
}
|
|
1149
|
-
function _i() {
|
|
1150
|
-
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
1151
|
-
}
|
|
1152
|
-
function vi() {
|
|
1153
|
-
H.value.showTooltip = !H.value.showTooltip;
|
|
1154
|
-
}
|
|
1155
|
-
function yi() {
|
|
1156
|
-
return $.value;
|
|
1157
|
-
}
|
|
1158
|
-
let bi = _(() => {
|
|
1159
|
-
if ($.value.length === 0) return {
|
|
1160
|
-
head: [],
|
|
1161
|
-
body: [],
|
|
1162
|
-
config: {},
|
|
1163
|
-
columnNames: []
|
|
1164
|
-
};
|
|
1165
|
-
let e = $.value.map(({ name: e, color: t }) => ({
|
|
1166
|
-
label: e,
|
|
1167
|
-
color: t
|
|
1168
|
-
})), t = [];
|
|
1169
|
-
return Q.value.forEach((e) => {
|
|
1170
|
-
let n = [z.value.style.chart.grid.x.timeLabels.values[e.absoluteIndex] ? e.text : i + 1];
|
|
1171
|
-
K.value.forEach((t) => {
|
|
1172
|
-
n.push(Number((t.series[e.absoluteIndex] || 0).toFixed(z.value.table.td.roundingValue)));
|
|
1173
|
-
}), t.push(n);
|
|
1174
|
-
}), {
|
|
1175
|
-
head: e,
|
|
1176
|
-
body: t
|
|
1177
|
-
};
|
|
1178
|
-
});
|
|
1179
|
-
function xi(e = null) {
|
|
1180
|
-
let n = [
|
|
1181
|
-
[z.value.style.chart.title.text],
|
|
1182
|
-
[z.value.style.chart.title.subtitle.text],
|
|
1183
|
-
[""]
|
|
1184
|
-
], a = ["", ...bi.value.head.map((e) => e.label)], o = bi.value.body, s = n.concat([a]).concat(o), c = r(s);
|
|
1185
|
-
e ? e(c) : t({
|
|
1186
|
-
csvContent: c,
|
|
1187
|
-
title: z.value.style.chart.title.text || "vue-ui-stackbar"
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
let Si = _(() => {
|
|
1191
|
-
let e = [""].concat($.value.map((e) => e.name), "__SUM__"), t = [], n = J.value.end - J.value.start;
|
|
1192
|
-
for (let e = 0; e < n; e += 1) {
|
|
1193
|
-
let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
1194
|
-
t.push([z.value.style.chart.grid.x.timeLabels.values[n] && Q.value[e]?.text || n + 1].concat($.value.map((t) => (t.series[e] ?? 0).toFixed(z.value.table.td.roundingValue)), (r ?? 0).toFixed(z.value.table.td.roundingValue)));
|
|
1195
|
-
}
|
|
1196
|
-
let r = {
|
|
1197
|
-
th: {
|
|
1198
|
-
backgroundColor: z.value.table.th.backgroundColor,
|
|
1199
|
-
color: z.value.table.th.color,
|
|
1200
|
-
outline: z.value.table.th.outline
|
|
1201
|
-
},
|
|
1202
|
-
td: {
|
|
1203
|
-
backgroundColor: z.value.table.td.backgroundColor,
|
|
1204
|
-
color: z.value.table.td.color,
|
|
1205
|
-
outline: z.value.table.td.outline
|
|
1206
|
-
},
|
|
1207
|
-
breakpoint: z.value.table.responsiveBreakpoint
|
|
1208
|
-
}, a = [z.value.table.columnNames.period].concat($.value.map((e) => e.name), z.value.table.columnNames.total);
|
|
1209
|
-
return {
|
|
1210
|
-
head: e,
|
|
1211
|
-
body: t.slice(0, J.value.end - J.value.start),
|
|
1212
|
-
config: r,
|
|
1213
|
-
colNames: a
|
|
1214
|
-
};
|
|
1215
|
-
});
|
|
1216
|
-
function Ci() {
|
|
1217
|
-
I.value.length ? I.value = [] : Oi.value.forEach((e) => {
|
|
1218
|
-
I.value.push(e.id);
|
|
1219
|
-
}), N("selectLegend", $.value);
|
|
1220
|
-
}
|
|
1221
|
-
function wi(e) {
|
|
1222
|
-
if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
|
|
1223
|
-
else {
|
|
1224
|
-
if (I.value.length === K.value.length - 1) return;
|
|
1225
|
-
I.value.push(e.id);
|
|
1226
|
-
}
|
|
1227
|
-
N("selectLegend", $.value);
|
|
1228
|
-
}
|
|
1229
|
-
function Ti(e) {
|
|
1230
|
-
return K.value.length ? K.value.find((t) => t.name === e) || (hr.value && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (hr.value && console.warn("VueUiStackbar - There are no series to show."), null);
|
|
1231
|
-
}
|
|
1232
|
-
function Ei(e) {
|
|
1233
|
-
let t = Ti(e);
|
|
1234
|
-
t !== null && I.value.includes(t.id) && wi({ id: t.id });
|
|
1235
|
-
}
|
|
1236
|
-
function Di(e) {
|
|
1237
|
-
let t = Ti(e);
|
|
1238
|
-
t !== null && (I.value.includes(t.id) || wi({ id: t.id }));
|
|
1239
|
-
}
|
|
1240
|
-
let Oi = _(() => K.value.map((e, t) => ({
|
|
1241
|
-
...e,
|
|
1242
|
-
shape: "square"
|
|
1243
|
-
})).map((e) => ({
|
|
1244
|
-
...e,
|
|
1245
|
-
opacity: I.value.includes(e.id) ? .5 : 1,
|
|
1246
|
-
segregate: () => wi(e),
|
|
1247
|
-
isSegregated: I.value.includes(e.id)
|
|
1248
|
-
}))), ki = _(() => ({
|
|
1249
|
-
cy: "stackbar-legend",
|
|
1250
|
-
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1251
|
-
color: z.value.style.chart.legend.color,
|
|
1252
|
-
fontSize: z.value.style.chart.legend.fontSize,
|
|
1253
|
-
paddingBottom: 12,
|
|
1254
|
-
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1255
|
-
})), Ai = E(!1);
|
|
1256
|
-
function ji() {
|
|
1257
|
-
Ai.value = !Ai.value;
|
|
1258
|
-
}
|
|
1259
|
-
function Mi(e, t) {
|
|
1260
|
-
let n = JSON.parse(JSON.stringify($.value)).map((e) => ({
|
|
1261
|
-
name: e.name,
|
|
1262
|
-
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
1263
|
-
proportion: e.proportions[t] || null,
|
|
1264
|
-
color: e.color,
|
|
1265
|
-
id: e.id
|
|
1266
|
-
}));
|
|
1267
|
-
N("selectTimeLabel", {
|
|
1268
|
-
datapoint: n,
|
|
1269
|
-
absoluteIndex: e.absoluteIndex,
|
|
1270
|
-
label: e.text
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
let Ni = _(() => Math.max(...$.value.flatMap((e) => e.series)));
|
|
1274
|
-
function Pi(e, t) {
|
|
1275
|
-
return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? or.value ? t * 100 >= z.value.style.chart.bars.dataLabels.hideUnderPercentage : !z.value.style.chart.bars.dataLabels.hideEmptyPercentages || t > 0 : or.value ? (ar.value && hr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > Ni.value * z.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ar.value ? Math.abs(e) >= z.value.style.chart.bars.dataLabels.hideUnderValue : !z.value.style.chart.bars.dataLabels.hideEmptyValues || e !== 0;
|
|
1276
|
-
}
|
|
1277
|
-
async function Fi({ scale: e = 2 } = {}) {
|
|
1278
|
-
if (!P.value) return;
|
|
1279
|
-
let { imageUri: t, base64: n } = await ke({
|
|
1280
|
-
domElement: P.value,
|
|
1281
|
-
base64: !0,
|
|
1282
|
-
img: !0,
|
|
1283
|
-
scale: e
|
|
1284
|
-
}), r = P.value.getBoundingClientRect(), a = {
|
|
1285
|
-
width: r.width,
|
|
1286
|
-
height: r.height,
|
|
1287
|
-
aspectRatio: r.height ? r.width / r.height : 0
|
|
1288
|
-
}, o = await re(t, e) ?? a;
|
|
1289
|
-
return {
|
|
1290
|
-
imageUri: t,
|
|
1291
|
-
base64: n,
|
|
1292
|
-
title: z.value.style.chart.title.text,
|
|
1293
|
-
...o
|
|
1294
|
-
};
|
|
1295
|
-
}
|
|
1296
|
-
let Ii = _(() => {
|
|
1297
|
-
let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
|
|
1298
|
-
return {
|
|
1299
|
-
component: e ? ln : rn,
|
|
1300
|
-
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1301
|
-
props: e ? {
|
|
1302
|
-
backgroundColor: z.value.table.th.backgroundColor,
|
|
1303
|
-
color: z.value.table.th.color,
|
|
1304
|
-
headerColor: z.value.table.th.color,
|
|
1305
|
-
headerBg: z.value.table.th.backgroundColor,
|
|
1306
|
-
isFullscreen: Cn.value,
|
|
1307
|
-
fullscreenParent: P.value,
|
|
1308
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1309
|
-
isCursorPointer: V.value
|
|
1310
|
-
} : {
|
|
1311
|
-
hideDetails: !0,
|
|
1312
|
-
config: {
|
|
1313
|
-
open: t,
|
|
1314
|
-
maxHeight: 1e4,
|
|
1315
|
-
body: {
|
|
1316
|
-
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1317
|
-
color: z.value.style.chart.color
|
|
1318
|
-
},
|
|
1319
|
-
head: {
|
|
1320
|
-
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1321
|
-
color: z.value.style.chart.color
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
});
|
|
1327
|
-
rt(() => H.value.showTable, (e) => {
|
|
1328
|
-
z.value.table.show || (e && z.value.table.useDialog && kn.value ? kn.value.open() : "close" in kn.value && kn.value.close());
|
|
1329
|
-
});
|
|
1330
|
-
function Li() {
|
|
1331
|
-
H.value.showTable = !1, An.value && An.value.setTableIconState(!1);
|
|
1332
|
-
}
|
|
1333
|
-
let Ri = _(() => z.value.style.chart.backgroundColor), zi = _(() => z.value.style.chart.legend), Bi = _(() => z.value.style.chart.title), { isCallbackImaging: Vi, isCallbackSvg: Hi, generateSvg: Ui, onGenerateImage: Wi } = Te({
|
|
1334
|
-
svg: tr,
|
|
1335
|
-
title: Bi,
|
|
1336
|
-
legend: zi,
|
|
1337
|
-
legendItems: Oi,
|
|
1338
|
-
backgroundColor: Ri,
|
|
1339
|
-
getSvgCallback: () => z.value.userOptions.callbacks.svg,
|
|
1340
|
-
generateImage: ur
|
|
1341
|
-
});
|
|
1342
|
-
function Gi(e) {
|
|
1343
|
-
let t = q.value;
|
|
1344
|
-
return e > t ? t : e < 0 || e < J.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
|
|
1345
|
-
}
|
|
1346
|
-
let Ki = E(!1), qi = E(!1);
|
|
1347
|
-
function Ji() {
|
|
1348
|
-
if (!Ki.value) {
|
|
1349
|
-
Ki.value = !0;
|
|
1350
|
-
try {
|
|
1351
|
-
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, q.value) : q.value;
|
|
1352
|
-
if (n && r <= 0) return;
|
|
1353
|
-
let a = e ?? 0, o = t == null ? r : Math.min(Gi(t + 1), r);
|
|
1354
|
-
Yi.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, Mr(), qi.value = !0;
|
|
1355
|
-
} finally {
|
|
1356
|
-
queueMicrotask(() => {
|
|
1357
|
-
Yi.value = !1;
|
|
1358
|
-
}), Ki.value = !1;
|
|
1359
|
-
}
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
let Yi = E(!1);
|
|
1363
|
-
function Xi(e) {
|
|
1364
|
-
Ki.value || Yi.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, Mr());
|
|
1365
|
-
}
|
|
1366
|
-
function Zi(e) {
|
|
1367
|
-
if (Ki.value || Yi.value) return;
|
|
1368
|
-
let t = Gi(e);
|
|
1369
|
-
t !== J.value.end && (J.value.end = t, Y.value.end = t, Mr());
|
|
1370
|
-
}
|
|
1371
|
-
function Qi({ seriesIndex: e, datapoint: t }) {
|
|
1372
|
-
let n = J.value.start + e;
|
|
1373
|
-
N("selectX", {
|
|
1374
|
-
dataset: t,
|
|
1375
|
-
index: n,
|
|
1376
|
-
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
function $i() {
|
|
1380
|
-
return { y0: Z.value?.[0]?.zero ?? G.value.bottom };
|
|
1381
|
-
}
|
|
1382
|
-
function ea(e) {
|
|
1383
|
-
let { y0: t } = $i(), n = z.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
|
|
1384
|
-
for (let t of $.value || []) {
|
|
1385
|
-
let n = t?.series?.[e] ?? 0, r = t?.height?.[e] ?? 0, s = t?.y?.[e];
|
|
1386
|
-
n > 0 && r > 0 && Number.isFinite(s) && (o = !0, s < a && (a = s));
|
|
1387
|
-
}
|
|
1388
|
-
let s = (o && Number.isFinite(a) ? a : t) - r;
|
|
1389
|
-
return Math.min(Math.max(s, 0), G.value.bottom);
|
|
1390
|
-
}
|
|
1391
|
-
function ta(e) {
|
|
1392
|
-
let { x0: t } = $i(), n = Math.max(2, z.value.style.chart.bars.totalValues.fontSize * .3 + z.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
|
|
1393
|
-
for (let t of $.value || []) {
|
|
1394
|
-
let n = t?.series?.[e] ?? 0, o = t?.horizontal_x?.[e], s = t?.horizontal_width?.[e], c = Number.isFinite(s) ? Math.max(0, s) : 0;
|
|
1395
|
-
Number.isFinite(o) && n > 0 && c > 0 && (a = !0, r = Math.max(r, o + c));
|
|
1396
|
-
}
|
|
1397
|
-
return (a && Number.isFinite(r) ? r : t) + n;
|
|
1398
|
-
}
|
|
1399
|
-
async function na() {
|
|
1400
|
-
if (N("copyAlt", {
|
|
1401
|
-
config: z.value,
|
|
1402
|
-
dataset: $.value
|
|
1403
|
-
}), !z.value.userOptions.callbacks.altCopy) {
|
|
1404
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1405
|
-
return;
|
|
1406
|
-
}
|
|
1407
|
-
await Promise.resolve(z.value.userOptions.callbacks.altCopy({
|
|
1408
|
-
config: z.value,
|
|
1409
|
-
dataset: $.value
|
|
1410
|
-
}));
|
|
1411
|
-
}
|
|
1412
|
-
let ra = E(!1);
|
|
1413
|
-
function ia() {
|
|
1414
|
-
R.value = null, ra.value = !0;
|
|
1415
|
-
}
|
|
1416
|
-
function aa() {
|
|
1417
|
-
R.value = null, hn.value = !1, L.value = null, N("selectX", {
|
|
1418
|
-
index: null,
|
|
1419
|
-
indexLabel: null,
|
|
1420
|
-
dataset: null
|
|
1421
|
-
}), ra.value = !1;
|
|
1422
|
-
}
|
|
1423
|
-
function oa(e) {
|
|
1424
|
-
if (!tr.value || Ai.value || document.activeElement !== tr.value || Lr.value || !J.value.end && J.value.end !== 0) return;
|
|
1425
|
-
let t = z.value.orientation === "vertical", n = z.value.orientation === "horizontal", r = t && e.key === "ArrowLeft" || n && e.key === "ArrowUp", a = t && e.key === "ArrowRight" || n && e.key === "ArrowDown", o = e.key === "Enter" || e.key === " ", s = e.key === "Escape";
|
|
1426
|
-
if (!r && !a && !o && !s) return;
|
|
1427
|
-
let c = J.value.end - J.value.start;
|
|
1428
|
-
if (c <= 0) return;
|
|
1429
|
-
if (e.preventDefault(), e.stopPropagation(), s) {
|
|
1430
|
-
R.value = null, hn.value = !1, L.value = null, N("selectX", {
|
|
1431
|
-
index: null,
|
|
1432
|
-
indexLabel: null,
|
|
1433
|
-
dataset: null
|
|
1434
|
-
});
|
|
1435
|
-
return;
|
|
1436
|
-
}
|
|
1437
|
-
if (o) {
|
|
1438
|
-
if (R.value === null) return;
|
|
1439
|
-
si(R.value);
|
|
1440
|
-
return;
|
|
1441
|
-
}
|
|
1442
|
-
let l = R.value, u = L.value;
|
|
1443
|
-
l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, R.value = l, sa(l), fi(l, "keyboard");
|
|
1444
|
-
}
|
|
1445
|
-
function sa(e) {
|
|
1446
|
-
if (!Number.isFinite(e)) return;
|
|
1447
|
-
let t, n;
|
|
1448
|
-
z.value.orientation === "vertical" ? (t = G.value.left + e * X.value + X.value / 2, n = G.value.top + G.value.height / 2) : (t = G.value.left + G.value.width / 2, n = G.value.top + e * X.value + X.value / 2);
|
|
1449
|
-
let r = ce(t, n, tr.value);
|
|
1450
|
-
r && (Vn.value = r);
|
|
1451
|
-
}
|
|
1452
|
-
let ca = _(() => ({
|
|
1453
|
-
headers: Si.value?.colNames ?? [],
|
|
1454
|
-
rows: Si.value?.body ?? []
|
|
1455
|
-
}));
|
|
1456
|
-
return Me({
|
|
1457
|
-
getData: yi,
|
|
1458
|
-
getImage: Fi,
|
|
1459
|
-
generatePdf: lr,
|
|
1460
|
-
generateCsv: xi,
|
|
1461
|
-
generateImage: ur,
|
|
1462
|
-
generateSvg: Ui,
|
|
1463
|
-
hideSeries: Di,
|
|
1464
|
-
showSeries: Ei,
|
|
1465
|
-
toggleTable: gi,
|
|
1466
|
-
toggleLabels: _i,
|
|
1467
|
-
toggleTooltip: vi,
|
|
1468
|
-
toggleAnnotator: ji,
|
|
1469
|
-
toggleFullscreen: hi,
|
|
1470
|
-
copyAlt: na
|
|
1471
|
-
}), (t, r) => (T(), b("div", {
|
|
1472
|
-
id: `stackbar_${F.value}`,
|
|
1473
|
-
ref_key: "stackbarChart",
|
|
1474
|
-
ref: P,
|
|
1475
|
-
class: S({
|
|
1476
|
-
"vue-data-ui-component": !0,
|
|
1477
|
-
"vue-ui-stackbar": !0,
|
|
1478
|
-
"vue-data-ui-wrapper-fullscreen": Cn.value
|
|
1479
|
-
}),
|
|
1480
|
-
style: w(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1481
|
-
onMouseenter: nr,
|
|
1482
|
-
onMouseleave: rr
|
|
1483
|
-
}, [
|
|
1484
|
-
We("div", {
|
|
1485
|
-
id: `chart-instructions-${F.value}`,
|
|
1486
|
-
class: "sr-only"
|
|
1487
|
-
}, [We("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8, st),
|
|
1488
|
-
ca.value?.rows?.length ? (T(), v(Re, {
|
|
1489
|
-
key: 0,
|
|
1490
|
-
uid: F.value,
|
|
1491
|
-
head: ca.value.headers,
|
|
1492
|
-
body: ca.value.rows,
|
|
1493
|
-
notice: z.value.a11y.translations.tableAvailable,
|
|
1494
|
-
caption: z.value.a11y.translations.tableCaption
|
|
1495
|
-
}, null, 8, [
|
|
1496
|
-
"uid",
|
|
1497
|
-
"head",
|
|
1498
|
-
"body",
|
|
1499
|
-
"notice",
|
|
1500
|
-
"caption"
|
|
1501
|
-
])) : y("", !0),
|
|
1502
|
-
z.value.userOptions.buttons.annotator ? (T(), v(A(on), {
|
|
1503
|
-
key: 1,
|
|
1504
|
-
svgRef: A(tr),
|
|
1505
|
-
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1506
|
-
color: z.value.style.chart.color,
|
|
1507
|
-
active: Ai.value,
|
|
1508
|
-
isCursorPointer: V.value,
|
|
1509
|
-
onClose: ji
|
|
1510
|
-
}, {
|
|
1511
|
-
"annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1512
|
-
"annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", C(x({ color: e })), void 0, !0)]),
|
|
1513
|
-
"annotator-action-draw": j(({ mode: e }) => [O(t.$slots, "annotator-action-draw", C(x({ mode: e })), void 0, !0)]),
|
|
1514
|
-
"annotator-action-undo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-undo", C(x({ disabled: e })), void 0, !0)]),
|
|
1515
|
-
"annotator-action-redo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-redo", C(x({ disabled: e })), void 0, !0)]),
|
|
1516
|
-
"annotator-action-delete": j(({ disabled: e }) => [O(t.$slots, "annotator-action-delete", C(x({ disabled: e })), void 0, !0)]),
|
|
1517
|
-
_: 3
|
|
1518
|
-
}, 8, [
|
|
1519
|
-
"svgRef",
|
|
1520
|
-
"backgroundColor",
|
|
1521
|
-
"color",
|
|
1522
|
-
"active",
|
|
1523
|
-
"isCursorPointer"
|
|
1524
|
-
])) : y("", !0),
|
|
1525
|
-
O(t.$slots, "userConfig", {}, void 0, !0),
|
|
1526
|
-
z.value.style.chart.title.text ? (T(), b("div", {
|
|
1527
|
-
key: 2,
|
|
1528
|
-
ref_key: "chartTitle",
|
|
1529
|
-
ref: yn,
|
|
1530
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1531
|
-
}, [(T(), v(Ae, {
|
|
1532
|
-
key: `title_${Tn.value}`,
|
|
1533
|
-
config: {
|
|
1534
|
-
title: {
|
|
1535
|
-
cy: "stackbar-title",
|
|
1536
|
-
...z.value.style.chart.title
|
|
1537
|
-
},
|
|
1538
|
-
subtitle: {
|
|
1539
|
-
cy: "stackbar-subtitle",
|
|
1540
|
-
...z.value.style.chart.title.subtitle
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1544
|
-
We("div", { id: `legend-top-${F.value}` }, null, 8, ct),
|
|
1545
|
-
z.value.userOptions.show && mn.value && (A(er) || A(Qn)) ? (T(), v(A(sn), {
|
|
1546
|
-
ref_key: "userOptionsRef",
|
|
1547
|
-
ref: An,
|
|
1548
|
-
key: `user_option_${vn.value}`,
|
|
1549
|
-
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1550
|
-
color: z.value.style.chart.color,
|
|
1551
|
-
isPrinting: A(sr),
|
|
1552
|
-
isImaging: A(cr),
|
|
1553
|
-
uid: F.value,
|
|
1554
|
-
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1555
|
-
hasPdf: z.value.userOptions.buttons.pdf,
|
|
1556
|
-
hasImg: z.value.userOptions.buttons.img,
|
|
1557
|
-
hasSvg: z.value.userOptions.buttons.svg,
|
|
1558
|
-
hasXls: z.value.userOptions.buttons.csv,
|
|
1559
|
-
hasTable: z.value.userOptions.buttons.table,
|
|
1560
|
-
hasLabel: z.value.userOptions.buttons.labels,
|
|
1561
|
-
hasFullscreen: z.value.userOptions.buttons.fullscreen,
|
|
1562
|
-
hasAltCopy: z.value.userOptions.buttons.altCopy,
|
|
1563
|
-
isFullscreen: Cn.value,
|
|
1564
|
-
chartElement: P.value,
|
|
1565
|
-
position: z.value.userOptions.position,
|
|
1566
|
-
isTooltip: H.value.showTooltip,
|
|
1567
|
-
titles: { ...z.value.userOptions.buttonTitles },
|
|
1568
|
-
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1569
|
-
isAnnotation: Ai.value,
|
|
1570
|
-
callbacks: z.value.userOptions.callbacks,
|
|
1571
|
-
printScale: z.value.userOptions.print.scale,
|
|
1572
|
-
tableDialog: z.value.table.useDialog,
|
|
1573
|
-
isCursorPointer: V.value,
|
|
1574
|
-
onToggleFullscreen: hi,
|
|
1575
|
-
onGeneratePdf: A(lr),
|
|
1576
|
-
onGenerateCsv: xi,
|
|
1577
|
-
onGenerateImage: A(Wi),
|
|
1578
|
-
onGenerateSvg: A(Ui),
|
|
1579
|
-
onToggleTable: gi,
|
|
1580
|
-
onToggleLabels: _i,
|
|
1581
|
-
onToggleTooltip: vi,
|
|
1582
|
-
onToggleAnnotator: ji,
|
|
1583
|
-
onCopyAlt: na,
|
|
1584
|
-
style: w({ visibility: A(er) ? A(Qn) ? "visible" : "hidden" : "visible" })
|
|
1585
|
-
}, Ge({ _: 2 }, [
|
|
1586
|
-
t.$slots.menuIcon ? {
|
|
1587
|
-
name: "menuIcon",
|
|
1588
|
-
fn: j(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(x({
|
|
1589
|
-
isOpen: e,
|
|
1590
|
-
color: n
|
|
1591
|
-
})), void 0, !0)]),
|
|
1592
|
-
key: "0"
|
|
1593
|
-
} : void 0,
|
|
1594
|
-
t.$slots.optionTooltip ? {
|
|
1595
|
-
name: "optionTooltip",
|
|
1596
|
-
fn: j(() => [O(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1597
|
-
key: "1"
|
|
1598
|
-
} : void 0,
|
|
1599
|
-
t.$slots.optionPdf ? {
|
|
1600
|
-
name: "optionPdf",
|
|
1601
|
-
fn: j(() => [O(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1602
|
-
key: "2"
|
|
1603
|
-
} : void 0,
|
|
1604
|
-
t.$slots.optionCsv ? {
|
|
1605
|
-
name: "optionCsv",
|
|
1606
|
-
fn: j(() => [O(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1607
|
-
key: "3"
|
|
1608
|
-
} : void 0,
|
|
1609
|
-
t.$slots.optionImg ? {
|
|
1610
|
-
name: "optionImg",
|
|
1611
|
-
fn: j(() => [O(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1612
|
-
key: "4"
|
|
1613
|
-
} : void 0,
|
|
1614
|
-
t.$slots.optionSvg ? {
|
|
1615
|
-
name: "optionSvg",
|
|
1616
|
-
fn: j(() => [O(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1617
|
-
key: "5"
|
|
1618
|
-
} : void 0,
|
|
1619
|
-
t.$slots.optionTable ? {
|
|
1620
|
-
name: "optionTable",
|
|
1621
|
-
fn: j(() => [O(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1622
|
-
key: "6"
|
|
1623
|
-
} : void 0,
|
|
1624
|
-
t.$slots.optionLabels ? {
|
|
1625
|
-
name: "optionLabels",
|
|
1626
|
-
fn: j(() => [O(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1627
|
-
key: "7"
|
|
1628
|
-
} : void 0,
|
|
1629
|
-
t.$slots.optionFullscreen ? {
|
|
1630
|
-
name: "optionFullscreen",
|
|
1631
|
-
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [O(t.$slots, "optionFullscreen", C(x({
|
|
1632
|
-
toggleFullscreen: e,
|
|
1633
|
-
isFullscreen: n
|
|
1634
|
-
})), void 0, !0)]),
|
|
1635
|
-
key: "8"
|
|
1636
|
-
} : void 0,
|
|
1637
|
-
t.$slots.optionAnnotator ? {
|
|
1638
|
-
name: "optionAnnotator",
|
|
1639
|
-
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [O(t.$slots, "optionAnnotator", C(x({
|
|
1640
|
-
toggleAnnotator: e,
|
|
1641
|
-
isAnnotator: n
|
|
1642
|
-
})), void 0, !0)]),
|
|
1643
|
-
key: "9"
|
|
1644
|
-
} : void 0,
|
|
1645
|
-
t.$slots.optionAltCopy ? {
|
|
1646
|
-
name: "optionAltCopy",
|
|
1647
|
-
fn: j(({ altCopy: e }) => [O(t.$slots, "optionAltCopy", C(x({ altCopy: e })), void 0, !0)]),
|
|
1648
|
-
key: "10"
|
|
1649
|
-
} : void 0,
|
|
1650
|
-
t.$slots["custom-menu-before"] ? {
|
|
1651
|
-
name: "custom-menu-before",
|
|
1652
|
-
fn: j(() => [O(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1653
|
-
key: "11"
|
|
1654
|
-
} : void 0,
|
|
1655
|
-
t.$slots["custom-menu-after"] ? {
|
|
1656
|
-
name: "custom-menu-after",
|
|
1657
|
-
fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1658
|
-
key: "12"
|
|
1659
|
-
} : void 0
|
|
1660
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : y("", !0),
|
|
1661
|
-
We("div", lt, [(T(), b("svg", {
|
|
1662
|
-
ref_key: "svgRef",
|
|
1663
|
-
ref: tr,
|
|
1664
|
-
xmlns: A(ue),
|
|
1665
|
-
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1666
|
-
viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
|
|
1667
|
-
class: S({
|
|
1668
|
-
"vue-data-ui-loading": A(Yn),
|
|
1669
|
-
"vue-data-ui-fullscreen--on": Cn.value,
|
|
1670
|
-
"vue-data-ui-fulscreen--off": !Cn.value,
|
|
1671
|
-
"vue-data-ui-no-transition": !A(B)
|
|
1672
|
-
}),
|
|
1673
|
-
style: w(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1674
|
-
tabindex: "0",
|
|
1675
|
-
onFocus: ia,
|
|
1676
|
-
onBlur: aa,
|
|
1677
|
-
onKeydown: oa
|
|
1678
|
-
}, [
|
|
1679
|
-
qe(A(cn)),
|
|
1680
|
-
t.$slots["chart-background"] ? (T(), b("foreignObject", {
|
|
1681
|
-
key: 0,
|
|
1682
|
-
x: G.value.left,
|
|
1683
|
-
y: G.value.top,
|
|
1684
|
-
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1685
|
-
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1686
|
-
style: { pointerEvents: "none" }
|
|
1687
|
-
}, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : y("", !0),
|
|
1688
|
-
z.value.style.chart.bars.gradient.show ? (T(), b("defs", ft, [(T(!0), b(g, null, D($.value, (e, t) => (T(), v(Fe, {
|
|
1689
|
-
t: "linear",
|
|
1690
|
-
id: `gradient_${e.id}`,
|
|
1691
|
-
key: `gradient_${e.id}_${t}`,
|
|
1692
|
-
x1: "0%",
|
|
1693
|
-
y1: "0%",
|
|
1694
|
-
x2: "0%",
|
|
1695
|
-
y2: "100%",
|
|
1696
|
-
stops: [
|
|
1697
|
-
[
|
|
1698
|
-
"0%",
|
|
1699
|
-
e.color,
|
|
1700
|
-
1
|
|
1701
|
-
],
|
|
1702
|
-
[
|
|
1703
|
-
"61.8%",
|
|
1704
|
-
A(n)(e.color, z.value.style.chart.bars.gradient.intensity / 100),
|
|
1705
|
-
1
|
|
1706
|
-
],
|
|
1707
|
-
[
|
|
1708
|
-
"100%",
|
|
1709
|
-
e.color,
|
|
1710
|
-
1
|
|
1711
|
-
]
|
|
1712
|
-
]
|
|
1713
|
-
}, null, 8, ["id", "stops"]))), 128))])) : y("", !0),
|
|
1714
|
-
z.value.style.chart.grid.frame.show ? (T(), b("rect", {
|
|
1715
|
-
key: 2,
|
|
1716
|
-
style: {
|
|
1717
|
-
pointerEvents: "none",
|
|
1718
|
-
transition: "none",
|
|
1719
|
-
animation: "none !important"
|
|
1720
|
-
},
|
|
1721
|
-
x: Math.max(0, G.value.left),
|
|
1722
|
-
y: Math.max(0, G.value.top),
|
|
1723
|
-
width: Math.max(0, G.value.width),
|
|
1724
|
-
height: Math.max(0, G.value.height),
|
|
1725
|
-
fill: "transparent",
|
|
1726
|
-
stroke: z.value.style.chart.grid.frame.stroke,
|
|
1727
|
-
"stroke-width": z.value.style.chart.grid.frame.strokeWidth,
|
|
1728
|
-
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
1729
|
-
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
1730
|
-
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
1731
|
-
}, null, 8, pt)) : y("", !0),
|
|
1732
|
-
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 3 }, D(Z.value, (e, t) => (T(), b("line", {
|
|
1733
|
-
x1: G.value.left,
|
|
1734
|
-
x2: G.value.right,
|
|
1735
|
-
y1: e.y,
|
|
1736
|
-
y2: e.y,
|
|
1737
|
-
stroke: z.value.style.chart.grid.x.linesColor,
|
|
1738
|
-
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1739
|
-
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1740
|
-
"stroke-linecap": "round"
|
|
1741
|
-
}, null, 8, mt))), 256)) : y("", !0),
|
|
1742
|
-
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 4 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
|
|
1743
|
-
x1: G.value.left,
|
|
1744
|
-
x2: G.value.right,
|
|
1745
|
-
y1: G.value.top + X.value * t,
|
|
1746
|
-
y2: G.value.top + X.value * t,
|
|
1747
|
-
stroke: z.value.style.chart.grid.x.linesColor,
|
|
1748
|
-
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1749
|
-
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1750
|
-
"stroke-linecap": "round"
|
|
1751
|
-
}, null, 8, ht))), 256)) : y("", !0),
|
|
1752
|
-
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 5 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
|
|
1753
|
-
x1: G.value.left + X.value * t,
|
|
1754
|
-
x2: G.value.left + X.value * t,
|
|
1755
|
-
y1: G.value.top,
|
|
1756
|
-
y2: G.value.bottom,
|
|
1757
|
-
stroke: z.value.style.chart.grid.y.linesColor,
|
|
1758
|
-
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1759
|
-
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1760
|
-
"stroke-linecap": "round"
|
|
1761
|
-
}, null, 8, gt))), 256)) : y("", !0),
|
|
1762
|
-
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 6 }, D(Z.value, (e, t) => (T(), b("line", {
|
|
1763
|
-
x1: e.horizontal_x,
|
|
1764
|
-
x2: e.horizontal_x,
|
|
1765
|
-
y1: G.value.top,
|
|
1766
|
-
y2: G.value.bottom,
|
|
1767
|
-
stroke: z.value.style.chart.grid.y.linesColor,
|
|
1768
|
-
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1769
|
-
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1770
|
-
"stroke-linecap": "round"
|
|
1771
|
-
}, null, 8, _t))), 256)) : y("", !0),
|
|
1772
|
-
(T(!0), b(g, null, D($.value, (e, n) => (T(), b("g", { key: `stackbar-group-${e.datasetKey}-${n}-${F.value}` }, [t.$slots.pattern ? (T(), b("defs", vt, [O(t.$slots, "pattern", Ye({ ref_for: !0 }, {
|
|
1773
|
-
seriesIndex: e.absoluteIndex,
|
|
1774
|
-
patternId: `pattern_${F.value}_${e.absoluteIndex}`
|
|
1775
|
-
}), void 0, !0)])) : y("", !0), z.value.orientation === "vertical" ? (T(), b(g, { key: 1 }, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
|
|
1776
|
-
key: `stackbar-rect-${e.rectKeys[n]}`,
|
|
1777
|
-
x: t,
|
|
1778
|
-
y: A(h)(e.y[n]),
|
|
1779
|
-
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1780
|
-
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1781
|
-
width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1782
|
-
fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
1783
|
-
stroke: z.value.style.chart.backgroundColor,
|
|
1784
|
-
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1785
|
-
"stroke-linecap": "round",
|
|
1786
|
-
"stroke-linejoin": "round",
|
|
1787
|
-
class: S({ "vue-data-ui-bar-transition": wn.value })
|
|
1788
|
-
}, null, 10, yt))), 128)), t.$slots.pattern ? (T(), b("g", bt, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
|
|
1789
|
-
key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
|
|
1790
|
-
x: t,
|
|
1791
|
-
y: A(h)(e.y[n]),
|
|
1792
|
-
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1793
|
-
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1794
|
-
width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1795
|
-
fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
|
|
1796
|
-
stroke: z.value.style.chart.backgroundColor,
|
|
1797
|
-
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1798
|
-
"stroke-linecap": "round",
|
|
1799
|
-
"stroke-linejoin": "round",
|
|
1800
|
-
class: S({ "vue-data-ui-bar-transition": wn.value })
|
|
1801
|
-
}, null, 10, xt))), 128))])) : y("", !0)], 64)) : (T(), b(g, { key: 2 }, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
|
|
1802
|
-
key: `stackbar-rect-${e.rectKeys[n]}`,
|
|
1803
|
-
x: A(h)(t, G.value.left),
|
|
1804
|
-
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1805
|
-
width: A(h)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1806
|
-
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1807
|
-
height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1808
|
-
fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
1809
|
-
stroke: z.value.style.chart.backgroundColor,
|
|
1810
|
-
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1811
|
-
"stroke-linecap": "round",
|
|
1812
|
-
"stroke-linejoin": "round",
|
|
1813
|
-
class: S({ "vue-data-ui-bar-transition": wn.value })
|
|
1814
|
-
}, null, 10, St))), 128)), t.$slots.pattern ? (T(), b("g", Ct, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
|
|
1815
|
-
key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
|
|
1816
|
-
x: A(h)(t, G.value.left),
|
|
1817
|
-
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1818
|
-
width: A(h)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1819
|
-
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1820
|
-
height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1821
|
-
fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
|
|
1822
|
-
stroke: z.value.style.chart.backgroundColor,
|
|
1823
|
-
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1824
|
-
"stroke-linecap": "round",
|
|
1825
|
-
"stroke-linejoin": "round",
|
|
1826
|
-
class: S({ "vue-data-ui-bar-transition": wn.value })
|
|
1827
|
-
}, null, 10, wt))), 128))])) : y("", !0)], 64))]))), 128)),
|
|
1828
|
-
z.value.style.chart.grid.x.showAxis ? (T(), b("line", {
|
|
1829
|
-
key: 7,
|
|
1830
|
-
x1: G.value.left,
|
|
1831
|
-
x2: G.value.right,
|
|
1832
|
-
y1: G.value.bottom,
|
|
1833
|
-
y2: G.value.bottom,
|
|
1834
|
-
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1835
|
-
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1836
|
-
"stroke-linecap": "round",
|
|
1837
|
-
"stroke-linejoin": "round"
|
|
1838
|
-
}, null, 8, Tt)) : y("", !0),
|
|
1839
|
-
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (T(), b("line", {
|
|
1840
|
-
key: 8,
|
|
1841
|
-
x1: W.value ? G.value.right : G.value.left,
|
|
1842
|
-
x2: W.value ? G.value.right : G.value.left,
|
|
1843
|
-
y1: G.value.top,
|
|
1844
|
-
y2: G.value.bottom,
|
|
1845
|
-
stroke: z.value.style.chart.grid.y.axisColor,
|
|
1846
|
-
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1847
|
-
"stroke-linecap": "round",
|
|
1848
|
-
"stroke-linejoin": "round"
|
|
1849
|
-
}, null, 8, Et)) : y("", !0),
|
|
1850
|
-
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (T(), b("text", {
|
|
1851
|
-
key: 9,
|
|
1852
|
-
ref_key: "xAxisLabel",
|
|
1853
|
-
ref: jn,
|
|
1854
|
-
x: G.value.left + G.value.width / 2,
|
|
1855
|
-
y: G.value.chartHeight - 3,
|
|
1856
|
-
"font-size": z.value.style.chart.grid.x.axisName.fontSize,
|
|
1857
|
-
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1858
|
-
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1859
|
-
"text-anchor": "middle"
|
|
1860
|
-
}, k(z.value.style.chart.grid.x.axisName.text), 9, Dt)) : y("", !0),
|
|
1861
|
-
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (T(), b("text", {
|
|
1862
|
-
key: 10,
|
|
1863
|
-
ref_key: "yAxisLabel",
|
|
1864
|
-
ref: Mn,
|
|
1865
|
-
transform: `translate(${W.value ? U.value.width - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1866
|
-
"font-size": z.value.style.chart.grid.y.axisName.fontSize,
|
|
1867
|
-
fill: z.value.style.chart.grid.y.axisName.color,
|
|
1868
|
-
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1869
|
-
"text-anchor": "middle"
|
|
1870
|
-
}, k(z.value.style.chart.grid.y.axisName.text), 9, Ot)) : y("", !0),
|
|
1871
|
-
H.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), b(g, { key: 11 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", { key: `dp_${e.id}` }, [(T(!0), b(g, null, D(e.x, (n, r) => (T(), b(g, { key: `rect_${e.id}_${J.value.start + r}` }, [Pi(e.series[r], e.proportions[r]) ? (T(), b("text", {
|
|
1872
|
-
key: 0,
|
|
1873
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1874
|
-
transform: `translate(${n + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2}, ${e.y[r] + e.height[r] / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3})`,
|
|
1875
|
-
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1876
|
-
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(le)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1877
|
-
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1878
|
-
"text-anchor": "middle"
|
|
1879
|
-
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? oi(e.proportions[r] * 100, e, t, r) : ai(e.series[r], e, t, r, e.signedSeries[r])), 11, kt)) : y("", !0)], 64))), 128))]))), 128)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
|
|
1880
|
-
key: 0,
|
|
1881
|
-
ref_key: "sumTop",
|
|
1882
|
-
ref: Fn
|
|
1883
|
-
}, [(T(!0), b(g, null, D(ii.value, (e, t) => (T(), b(g, { key: `tl_${t + J.value.start}` }, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
|
|
1884
|
-
key: 0,
|
|
1885
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1886
|
-
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${ea(t)})`,
|
|
1887
|
-
"text-anchor": "middle",
|
|
1888
|
-
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1889
|
-
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1890
|
-
fill: z.value.style.chart.bars.totalValues.color
|
|
1891
|
-
}, k(ai(e.value, e, t, e.sign)), 11, At)) : y("", !0)], 64))), 128))], 512)) : y("", !0)], 64)) : y("", !0),
|
|
1892
|
-
H.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), b(g, { key: 12 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.horizontal_x, (n, r) => (T(), b(g, null, [Pi(e.series[r], e.proportions[r]) ? (T(), b("text", {
|
|
1893
|
-
key: 0,
|
|
1894
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1895
|
-
transform: `translate(${n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2}, ${e.horizontal_y[r] + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3})`,
|
|
1896
|
-
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1897
|
-
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(le)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1898
|
-
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1899
|
-
"text-anchor": "middle"
|
|
1900
|
-
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? oi(e.proportions[r] * 100, e, t, r) : ai(e.series[r], e, t, r, e.signedSeries[r])), 11, jt)) : y("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
|
|
1901
|
-
key: 0,
|
|
1902
|
-
ref_key: "sumRight",
|
|
1903
|
-
ref: In
|
|
1904
|
-
}, [(T(!0), b(g, null, D(ii.value, (e, t) => (T(), b(g, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
|
|
1905
|
-
key: 0,
|
|
1906
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1907
|
-
transform: `translate(${ta(t)}, ${G.value.top + X.value * t + X.value / 2 + z.value.style.chart.bars.totalValues.fontSize / 3})`,
|
|
1908
|
-
"text-anchor": "start",
|
|
1909
|
-
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1910
|
-
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1911
|
-
fill: z.value.style.chart.bars.totalValues.color
|
|
1912
|
-
}, k(ai(e.value, e, t, e.sign)), 11, Mt)) : y("", !0)], 64))), 256))], 512)) : y("", !0)], 64)) : y("", !0),
|
|
1913
|
-
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (T(), b("g", {
|
|
1914
|
-
key: 13,
|
|
1915
|
-
ref_key: "scaleLabels",
|
|
1916
|
-
ref: Nn
|
|
1917
|
-
}, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("path", {
|
|
1918
|
-
key: `ty_${t}`,
|
|
1919
|
-
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1920
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1921
|
-
d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 6 : G.value.left - 6},${e.y}`,
|
|
1922
|
-
"stroke-width": 1,
|
|
1923
|
-
"stroke-linecap": "round"
|
|
1924
|
-
}, null, 10, Nt))), 128)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
|
|
1925
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1926
|
-
key: `tl_${t}`,
|
|
1927
|
-
transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
1928
|
-
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1929
|
-
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1930
|
-
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1931
|
-
"text-anchor": W.value ? "start" : "end"
|
|
1932
|
-
}, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(p)({
|
|
1933
|
-
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1934
|
-
v: e.value,
|
|
1935
|
-
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1936
|
-
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1937
|
-
}), { datapoint: e })), 11, Pt))), 128))], 512)) : y("", !0),
|
|
1938
|
-
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (T(), b("g", {
|
|
1939
|
-
key: 14,
|
|
1940
|
-
ref_key: "scaleLabels",
|
|
1941
|
-
ref: Nn
|
|
1942
|
-
}, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("path", {
|
|
1943
|
-
key: `scy_${t}`,
|
|
1944
|
-
d: `M${e.horizontal_x},${G.value.bottom} ${e.horizontal_x},${G.value.bottom + 6}`,
|
|
1945
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1946
|
-
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1947
|
-
"stroke-width": 1,
|
|
1948
|
-
"stroke-linecap": "round"
|
|
1949
|
-
}, null, 10, Ft))), 128)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
|
|
1950
|
-
class: S(["vue-data-ui-time-label", { "vue-data-ui-transition": A(B) }]),
|
|
1951
|
-
key: `tly_${t}`,
|
|
1952
|
-
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1953
|
-
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1954
|
-
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1955
|
-
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1956
|
-
transform: `translate(${e.horizontal_x}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`
|
|
1957
|
-
}, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(p)({
|
|
1958
|
-
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1959
|
-
v: e.value,
|
|
1960
|
-
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1961
|
-
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1962
|
-
}), { datapoint: e })), 11, It))), 128))], 512)) : y("", !0),
|
|
1963
|
-
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (T(), b("g", {
|
|
1964
|
-
key: 15,
|
|
1965
|
-
ref_key: "timeLabelsEls",
|
|
1966
|
-
ref: Pn
|
|
1967
|
-
}, [t.$slots["time-label"] ? (T(), b("g", Lt, [(T(!0), b(g, null, D(Yr.value, (e, n) => (T(), b("g", null, [O(t.$slots, "time-label", Ye({ ref_for: !0 }, {
|
|
1968
|
-
x: G.value.left + X.value * n + X.value / 2,
|
|
1969
|
-
y: G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1970
|
-
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1971
|
-
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1972
|
-
transform: `translate(${G.value.left + X.value * n + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1973
|
-
absoluteIndex: e.absoluteIndex,
|
|
1974
|
-
content: e.text,
|
|
1975
|
-
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1976
|
-
show: !0
|
|
1977
|
-
}), void 0, !0)]))), 256))])) : (T(), b("g", Rt, [(T(!0), b(g, null, D(Yr.value, (e, t) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
|
|
1978
|
-
class: S({ "vue-data-ui-transition": A(B) }),
|
|
1979
|
-
key: t + "-multi",
|
|
1980
|
-
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1981
|
-
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1982
|
-
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1983
|
-
transform: `
|
|
1984
|
-
translate(
|
|
1985
|
-
${G.value.left + X.value * t + X.value / 2},
|
|
1986
|
-
${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1987
|
-
),
|
|
1988
|
-
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
1989
|
-
`,
|
|
1990
|
-
style: w({ cursor: V.value ? "pointer" : "default" }),
|
|
1991
|
-
innerHTML: A(a)({
|
|
1992
|
-
content: String(e.text),
|
|
1993
|
-
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1994
|
-
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1995
|
-
x: 0,
|
|
1996
|
-
y: 0
|
|
1997
|
-
}),
|
|
1998
|
-
onClick: () => Mi(e, t)
|
|
1999
|
-
}, null, 14, Bt)) : (T(), b("text", {
|
|
2000
|
-
class: "vue-data-ui-time-label",
|
|
2001
|
-
key: t,
|
|
2002
|
-
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2003
|
-
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2004
|
-
"font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
2005
|
-
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2006
|
-
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2007
|
-
style: w({ cursor: V.value ? "pointer" : "default" }),
|
|
2008
|
-
onClick: () => Mi(e, t)
|
|
2009
|
-
}, k(e.text), 13, zt))]))), 256))]))], 512)) : y("", !0),
|
|
2010
|
-
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (T(), b("g", {
|
|
2011
|
-
key: 16,
|
|
2012
|
-
ref_key: "timeLabelsEls",
|
|
2013
|
-
ref: Pn
|
|
2014
|
-
}, [t.$slots["time-label"] ? (T(), b("g", Vt, [(T(!0), b(g, null, D(Yr.value, (e, n) => (T(), b("g", null, [O(t.$slots, "time-label", Ye({ ref_for: !0 }, {
|
|
2015
|
-
x: G.value.left - 8,
|
|
2016
|
-
y: G.value.top + X.value * n + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
2017
|
-
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2018
|
-
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2019
|
-
transform: null,
|
|
2020
|
-
absoluteIndex: e.absoluteIndex,
|
|
2021
|
-
content: e.text,
|
|
2022
|
-
textAnchor: "end",
|
|
2023
|
-
show: !0
|
|
2024
|
-
}), void 0, !0)]))), 256))])) : (T(), b("g", Ht, [(T(!0), b(g, null, D(Yr.value, (e, t) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
|
|
2025
|
-
key: 1,
|
|
2026
|
-
"text-anchor": "end",
|
|
2027
|
-
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2028
|
-
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
2029
|
-
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2030
|
-
transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
2031
|
-
style: w({ cursor: V.value ? "pointer" : "default" }),
|
|
2032
|
-
onClick: () => Mi(e, t),
|
|
2033
|
-
innerHTML: A(c)({
|
|
2034
|
-
content: String(e.text),
|
|
2035
|
-
fontSize: z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2036
|
-
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2037
|
-
stroke: z.value.style.chart.backgroundColor,
|
|
2038
|
-
x: G.value.left - 8,
|
|
2039
|
-
y: 0
|
|
2040
|
-
})
|
|
2041
|
-
}, null, 12, Wt)) : (T(), b("text", {
|
|
2042
|
-
key: 0,
|
|
2043
|
-
"text-anchor": "end",
|
|
2044
|
-
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2045
|
-
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
2046
|
-
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2047
|
-
stroke: z.value.style.chart.backgroundColor,
|
|
2048
|
-
"stroke-linecap": "round",
|
|
2049
|
-
"stroke-linejoin": "round",
|
|
2050
|
-
"stroke-width": "3",
|
|
2051
|
-
"paint-order": "stroke fill",
|
|
2052
|
-
transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
2053
|
-
style: w({ cursor: V.value ? "pointer" : "default" }),
|
|
2054
|
-
onClick: () => Mi(e, t)
|
|
2055
|
-
}, k(e.text), 13, Ut))]))), 256))]))], 512)) : y("", !0),
|
|
2056
|
-
H.value.showTooltip && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 17 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
|
|
2057
|
-
x: G.value.left + t * X.value,
|
|
2058
|
-
y: G.value.top,
|
|
2059
|
-
width: X.value,
|
|
2060
|
-
height: G.value.height < 0 ? 0 : G.value.height,
|
|
2061
|
-
onClick: () => si(t),
|
|
2062
|
-
onMouseenter: () => fi(t, "pointer"),
|
|
2063
|
-
onMouseleave: () => li(t),
|
|
2064
|
-
fill: t === L.value || t === qn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
2065
|
-
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
2066
|
-
}, null, 44, Gt))), 256)) : y("", !0),
|
|
2067
|
-
H.value.showTooltip && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 18 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
|
|
2068
|
-
x: G.value.left,
|
|
2069
|
-
y: G.value.top + t * X.value,
|
|
2070
|
-
width: G.value.width < 0 ? 0 : G.value.width,
|
|
2071
|
-
height: X.value,
|
|
2072
|
-
onClick: () => si(t),
|
|
2073
|
-
onMouseenter: () => fi(t, "pointer"),
|
|
2074
|
-
onMouseleave: () => li(t),
|
|
2075
|
-
fill: t === L.value || t === qn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
2076
|
-
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
2077
|
-
}, null, 44, Kt))), 256)) : y("", !0),
|
|
2078
|
-
Ar.value ? (T(), b("rect", Ye({ key: 19 }, Or.value, {
|
|
2079
|
-
"data-start": J.value.start,
|
|
2080
|
-
"data-end": J.value.end
|
|
2081
|
-
}), null, 16, qt)) : y("", !0),
|
|
2082
|
-
O(t.$slots, "svg", { svg: {
|
|
2083
|
-
drawingArea: G.value,
|
|
2084
|
-
slicer: J.value,
|
|
2085
|
-
data: $.value,
|
|
2086
|
-
isPrintingImg: A(sr) || A(cr) || A(Vi),
|
|
2087
|
-
isPrintingSvg: A(Hi),
|
|
2088
|
-
barWidth: X.value
|
|
2089
|
-
} }, void 0, !0)
|
|
2090
|
-
], 46, ut)), t.$slots.hint ? (T(), b("div", Jt, [O(t.$slots, "hint", C(x({
|
|
2091
|
-
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2092
|
-
isVisible: ra.value
|
|
2093
|
-
})), void 0, !0)])) : y("", !0)]),
|
|
2094
|
-
t.$slots.watermark ? (T(), b("div", Yt, [O(t.$slots, "watermark", C(x({ isPrinting: A(sr) || A(cr) || A(Vi) || A(Hi) })), void 0, !0)])) : y("", !0),
|
|
2095
|
-
z.value.style.chart.zoom.show && mn.value && qi.value && q.value > 6 ? (T(), v(Ie, {
|
|
2096
|
-
key: 5,
|
|
2097
|
-
ref_key: "chartSlicer",
|
|
2098
|
-
ref: xn,
|
|
2099
|
-
"data-dom-to-png-ignore-layout": "",
|
|
2100
|
-
allMinimaps: zr.value,
|
|
2101
|
-
background: z.value.style.chart.zoom.color,
|
|
2102
|
-
borderColor: z.value.style.chart.backgroundColor,
|
|
2103
|
-
customFormat: z.value.style.chart.zoom.customFormat,
|
|
2104
|
-
cutNullValues: !1,
|
|
2105
|
-
forceZeroCenter: !0,
|
|
2106
|
-
enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
|
|
2107
|
-
enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
|
|
2108
|
-
end: J.value.end,
|
|
2109
|
-
focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
|
|
2110
|
-
focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
|
|
2111
|
-
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2112
|
-
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2113
|
-
inputColor: z.value.style.chart.zoom.color,
|
|
2114
|
-
isPreview: Ar.value,
|
|
2115
|
-
labelLeft: z.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Q.value?.[0]?.text ?? "" : "",
|
|
2116
|
-
labelRight: z.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Q.value?.at(-1)?.text ?? "" : "",
|
|
2117
|
-
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2118
|
-
min: 0,
|
|
2119
|
-
minimap: Rr.value,
|
|
2120
|
-
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2121
|
-
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2122
|
-
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
2123
|
-
minimapMerged: !1,
|
|
2124
|
-
minimapSelectedColor: z.value.style.chart.zoom.minimap.selectedColor,
|
|
2125
|
-
minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2126
|
-
minimapSelectedIndex: L.value,
|
|
2127
|
-
minimapSelectionRadius: 1,
|
|
2128
|
-
preciseLabels: $r.value.length ? $r.value : Gr.value,
|
|
2129
|
-
refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
|
|
2130
|
-
refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
|
|
2131
|
-
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2132
|
-
selectedSeries: ui.value,
|
|
2133
|
-
smoothMinimap: !1,
|
|
2134
|
-
start: J.value.start,
|
|
2135
|
-
textColor: z.value.style.chart.color,
|
|
2136
|
-
timeLabels: Gr.value,
|
|
2137
|
-
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2138
|
-
valueEnd: J.value.end,
|
|
2139
|
-
valueStart: J.value.start,
|
|
2140
|
-
verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
|
|
2141
|
-
maxWidth: z.value.style.chart.zoom.maxWidth,
|
|
2142
|
-
minimapLeftInsetRatio: G.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? G.value.left / G.value.chartWidth : null,
|
|
2143
|
-
minimapRightInsetRatio: G.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? (G.value.chartWidth - G.value.right) / G.value.chartWidth : null,
|
|
2144
|
-
isCursorPointer: V.value,
|
|
2145
|
-
additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
|
|
2146
|
-
handleType: z.value.style.chart.zoom.minimap.handleType,
|
|
2147
|
-
handleIconColor: z.value.style.chart.zoom.minimap.handleIconColor,
|
|
2148
|
-
handleBorderWidth: z.value.style.chart.zoom.minimap.handleBorderWidth,
|
|
2149
|
-
handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2150
|
-
handleFill: z.value.style.chart.zoom.minimap.handleFill,
|
|
2151
|
-
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2152
|
-
"onUpdate:end": Zi,
|
|
2153
|
-
"onUpdate:start": Xi,
|
|
2154
|
-
onTrapMouse: kr,
|
|
2155
|
-
onReset: r[0] ||= () => Fr({ force: !0 }),
|
|
2156
|
-
onFutureEnd: r[1] ||= (e) => jr("end", e),
|
|
2157
|
-
onFutureStart: r[2] ||= (e) => jr("start", e)
|
|
2158
|
-
}, {
|
|
2159
|
-
"reset-action": j(({ reset: e }) => [O(t.$slots, "reset-action", C(x({ reset: e })), void 0, !0)]),
|
|
2160
|
-
slotMap: j(({ width: e, height: t, unitW: n }) => [(T(!0), b(g, null, D($.value, (e) => (T(), b("g", { key: e.id }, [(T(!0), b(g, null, D(e.xMinimap({
|
|
2161
|
-
left: 0,
|
|
2162
|
-
unitW: n
|
|
2163
|
-
}), (r, a) => (T(), b("rect", {
|
|
2164
|
-
key: `minimap-rect-${e.minimapRectKeys[a]}`,
|
|
2165
|
-
x: a === 0 ? r - n * (z.value.style.chart.bars.gapRatio / 4) : r - n / 2,
|
|
2166
|
-
y: Math.max(0, Math.min(t, e.yMinimap({ minimapH: t })[a])),
|
|
2167
|
-
height: e.heightMinimap({ minimapH: t })[a],
|
|
2168
|
-
width: [0, q.value - 1].includes(a) ? n * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 : n * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
2169
|
-
fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
2170
|
-
stroke: z.value.style.chart.backgroundColor,
|
|
2171
|
-
"stroke-width": .5,
|
|
2172
|
-
rx: "0",
|
|
2173
|
-
"stroke-linecap": "round",
|
|
2174
|
-
"stroke-linejoin": "round",
|
|
2175
|
-
style: w({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
|
|
2176
|
-
}, null, 12, Xt))), 128))]))), 128))]),
|
|
2177
|
-
_: 3
|
|
2178
|
-
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : y("", !0),
|
|
2179
|
-
qe(A(tn), {
|
|
2180
|
-
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2181
|
-
show: H.value.showTooltip && hn.value,
|
|
2182
|
-
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
2183
|
-
color: z.value.style.chart.tooltip.color,
|
|
2184
|
-
fontSize: z.value.style.chart.tooltip.fontSize,
|
|
2185
|
-
borderRadius: z.value.style.chart.tooltip.borderRadius,
|
|
2186
|
-
borderColor: z.value.style.chart.tooltip.borderColor,
|
|
2187
|
-
borderWidth: z.value.style.chart.tooltip.borderWidth,
|
|
2188
|
-
backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
|
|
2189
|
-
position: z.value.style.chart.tooltip.position,
|
|
2190
|
-
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2191
|
-
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2192
|
-
parent: P.value,
|
|
2193
|
-
content: _n.value,
|
|
2194
|
-
isFullscreen: Cn.value,
|
|
2195
|
-
isCustom: A(f)(z.value.style.chart.tooltip.customFormat),
|
|
2196
|
-
smooth: z.value.style.chart.tooltip.smooth,
|
|
2197
|
-
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2198
|
-
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
2199
|
-
smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2200
|
-
isA11yMode: Hn.value === "keyboard",
|
|
2201
|
-
a11yPosition: Vn.value
|
|
2202
|
-
}, {
|
|
2203
|
-
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(x({ ...gn.value })), void 0, !0)]),
|
|
2204
|
-
tooltip: j(() => [O(t.$slots, "tooltip", C(x({ ...gn.value })), void 0, !0)]),
|
|
2205
|
-
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(x({ ...gn.value })), void 0, !0)]),
|
|
2206
|
-
_: 3
|
|
2207
|
-
}, 8, [
|
|
2208
|
-
"teleportTo",
|
|
2209
|
-
"show",
|
|
2210
|
-
"backgroundColor",
|
|
2211
|
-
"color",
|
|
2212
|
-
"fontSize",
|
|
2213
|
-
"borderRadius",
|
|
2214
|
-
"borderColor",
|
|
2215
|
-
"borderWidth",
|
|
2216
|
-
"backgroundOpacity",
|
|
2217
|
-
"position",
|
|
2218
|
-
"offsetX",
|
|
2219
|
-
"offsetY",
|
|
2220
|
-
"parent",
|
|
2221
|
-
"content",
|
|
2222
|
-
"isFullscreen",
|
|
2223
|
-
"isCustom",
|
|
2224
|
-
"smooth",
|
|
2225
|
-
"backdropFilter",
|
|
2226
|
-
"smoothForce",
|
|
2227
|
-
"smoothSnapThreshold",
|
|
2228
|
-
"isA11yMode",
|
|
2229
|
-
"a11yPosition"
|
|
2230
|
-
]),
|
|
2231
|
-
We("div", { id: `legend-bottom-${F.value}` }, null, 8, Zt),
|
|
2232
|
-
On.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (T(), v(Ue, {
|
|
2233
|
-
key: 6,
|
|
2234
|
-
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2235
|
-
}, [We("div", {
|
|
2236
|
-
ref_key: "chartLegend",
|
|
2237
|
-
ref: bn
|
|
2238
|
-
}, [O(t.$slots, "legend", { legend: Oi.value }, () => [z.value.style.chart.legend.show ? (T(), v(Ve, {
|
|
2239
|
-
key: 0,
|
|
2240
|
-
legendSet: Oi.value,
|
|
2241
|
-
config: ki.value,
|
|
2242
|
-
isCursorPointer: V.value,
|
|
2243
|
-
onClickMarker: r[3] ||= ({ legend: e }) => e.segregate()
|
|
2244
|
-
}, Ge({
|
|
2245
|
-
item: j(({ legend: e }) => [A(Yn) ? y("", !0) : (T(), b("div", {
|
|
2246
|
-
key: 0,
|
|
2247
|
-
onClick: (t) => e.segregate(),
|
|
2248
|
-
style: w(`opacity:${I.value.includes(e.id) ? .5 : 1}`)
|
|
2249
|
-
}, k(e.name), 13, Qt))]),
|
|
2250
|
-
legendToggle: j(() => [Oi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !A(Yn) ? (T(), v(Le, {
|
|
2251
|
-
key: 0,
|
|
2252
|
-
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2253
|
-
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
2254
|
-
fontSize: z.value.style.chart.legend.fontSize,
|
|
2255
|
-
checked: I.value.length > 0,
|
|
2256
|
-
isCursorPointer: V.value,
|
|
2257
|
-
onToggle: Ci
|
|
2258
|
-
}, null, 8, [
|
|
2259
|
-
"backgroundColor",
|
|
2260
|
-
"color",
|
|
2261
|
-
"fontSize",
|
|
2262
|
-
"checked",
|
|
2263
|
-
"isCursorPointer"
|
|
2264
|
-
])) : y("", !0)]),
|
|
2265
|
-
_: 2
|
|
2266
|
-
}, [t.$slots.pattern ? {
|
|
2267
|
-
name: "legend-pattern",
|
|
2268
|
-
fn: j(({ legend: e, index: t }) => [qe(je, {
|
|
2269
|
-
shape: e.shape,
|
|
2270
|
-
radius: 30,
|
|
2271
|
-
stroke: "none",
|
|
2272
|
-
plot: {
|
|
2273
|
-
x: 30,
|
|
2274
|
-
y: 30
|
|
2275
|
-
},
|
|
2276
|
-
fill: `url(#pattern_${F.value}_${t})`
|
|
2277
|
-
}, null, 8, ["shape", "fill"])]),
|
|
2278
|
-
key: "0"
|
|
2279
|
-
} : void 0]), 1032, [
|
|
2280
|
-
"legendSet",
|
|
2281
|
-
"config",
|
|
2282
|
-
"isCursorPointer"
|
|
2283
|
-
])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
|
|
2284
|
-
t.$slots.source ? (T(), b("div", {
|
|
2285
|
-
key: 7,
|
|
2286
|
-
ref_key: "source",
|
|
2287
|
-
ref: Sn,
|
|
2288
|
-
dir: "auto"
|
|
2289
|
-
}, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2290
|
-
mn.value && z.value.userOptions.buttons.table ? (T(), v($e(Ii.value.component), Ye({ key: 8 }, Ii.value.props, {
|
|
2291
|
-
ref_key: "tableUnit",
|
|
2292
|
-
ref: kn,
|
|
2293
|
-
onClose: Li
|
|
2294
|
-
}), Ge({
|
|
2295
|
-
content: j(() => [qe(A(an), {
|
|
2296
|
-
colNames: Si.value.colNames,
|
|
2297
|
-
head: Si.value.head,
|
|
2298
|
-
body: Si.value.body,
|
|
2299
|
-
config: Si.value.config,
|
|
2300
|
-
title: z.value.table.useDialog ? "" : Ii.value.title,
|
|
2301
|
-
withCloseButton: !z.value.table.useDialog,
|
|
2302
|
-
isCursorPointer: V.value,
|
|
2303
|
-
onClose: Li
|
|
2304
|
-
}, {
|
|
2305
|
-
th: j(({ th: e }) => [e === "__SUM__" ? (T(), b("div", $t, [qe(A(nn), {
|
|
2306
|
-
name: "sigma",
|
|
2307
|
-
stroke: Si.value.config.th.color,
|
|
2308
|
-
size: 16
|
|
2309
|
-
}, null, 8, ["stroke"])])) : (T(), b("div", en, k(e), 1))]),
|
|
2310
|
-
td: j(({ td: e }) => [Ke(k(isNaN(Number(e)) ? e : A(p)({
|
|
2311
|
-
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
2312
|
-
v: e,
|
|
2313
|
-
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
2314
|
-
r: z.value.table.td.roundingValue
|
|
2315
|
-
})), 1)]),
|
|
2316
|
-
_: 1
|
|
2317
|
-
}, 8, [
|
|
2318
|
-
"colNames",
|
|
2319
|
-
"head",
|
|
2320
|
-
"body",
|
|
2321
|
-
"config",
|
|
2322
|
-
"title",
|
|
2323
|
-
"withCloseButton",
|
|
2324
|
-
"isCursorPointer"
|
|
2325
|
-
])]),
|
|
2326
|
-
_: 2
|
|
2327
|
-
}, [z.value.table.useDialog ? {
|
|
2328
|
-
name: "title",
|
|
2329
|
-
fn: j(() => [Ke(k(Ii.value.title), 1)]),
|
|
2330
|
-
key: "0"
|
|
2331
|
-
} : void 0, z.value.table.useDialog ? {
|
|
2332
|
-
name: "actions",
|
|
2333
|
-
fn: j(() => [We("button", {
|
|
2334
|
-
tabindex: "0",
|
|
2335
|
-
class: "vue-ui-user-options-button",
|
|
2336
|
-
onClick: r[4] ||= (e) => xi(z.value.userOptions.callbacks.csv),
|
|
2337
|
-
style: w({ cursor: V.value ? "pointer" : "default" })
|
|
2338
|
-
}, [qe(A(nn), {
|
|
2339
|
-
name: "fileCsv",
|
|
2340
|
-
stroke: Ii.value.props.color
|
|
2341
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
2342
|
-
key: "1"
|
|
2343
|
-
} : void 0]), 1040)) : y("", !0),
|
|
2344
|
-
O(t.$slots, "skeleton", {}, () => [A(Yn) ? (T(), v(Se, { key: 0 })) : y("", !0)], !0)
|
|
2345
|
-
], 46, ot));
|
|
2346
|
-
}
|
|
2347
|
-
}, [["__scopeId", "data-v-dd6876e8"]]);
|
|
2348
|
-
//#endregion
|
|
2349
|
-
export { at as n, tn as t };
|