vue-data-ui 3.22.3 → 3.22.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-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
- package/dist/{package-KQdsc0if.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-BUbY65H0.js → render-common-D6ny-Fwu.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-Dqs7_g8D.js} +147 -147
- package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-IRjugedp.js} +417 -417
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend--t7Mbp9Z.js +0 -115
- package/dist/Slicer-CpBaahpI.js +0 -1144
- package/dist/exposedLib-BkRxoSB9.js +0 -19
- package/dist/img-CyjhDDaM.js +0 -74
- package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
- package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
- package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
- package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
- package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
- package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
- package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
- package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
- package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
- package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
- package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
- package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
- package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
- package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
- package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
- package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
- package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
|
@@ -1,1362 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Et as t, Ft as n, G as r, H as i, It as a, J as o, S as ee, Ut as te, Vt as s, X as ne, ct as re, gt as ie, i as ae, it as oe, kt as c, n as se, r as ce, t as le, x as ue, y as de } from "./lib-NmjQazSn.js";
|
|
3
|
-
import { t as fe } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
-
import { t as pe } from "./usePrinter-DRYgV-XS.js";
|
|
5
|
-
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as ge } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as _e } from "./useNestedProp-C9viY7oU.js";
|
|
8
|
-
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ye } from "./img-CyjhDDaM.js";
|
|
10
|
-
import { n as be } from "./Title-Cxgd_JyY.js";
|
|
11
|
-
import { t as xe } from "./Shape-S-7v8SAE.js";
|
|
12
|
-
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { c as Ce } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
-
import { t as we } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
-
import { t as Te } from "./BaseLegendToggle-qL0O9ooF.js";
|
|
16
|
-
import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
-
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
-
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as ke } from "./labelUtils-WDjGa7EP.js";
|
|
20
|
-
import { t as Ae } from "./Legend--t7Mbp9Z.js";
|
|
21
|
-
import { t as je } from "./vue_ui_waffle-DIARFc7g.js";
|
|
22
|
-
import { Fragment as l, Teleport as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as Re, normalizeProps as _, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as We, toRefs as Ge, unref as S, useSlots as Ke, watch as qe, withCtx as C } from "vue";
|
|
23
|
-
//#region src/components/vue-ui-waffle.vue
|
|
24
|
-
var Je = /* @__PURE__ */ e({ default: () => vt }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
|
|
25
|
-
"xmlns",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"viewBox"
|
|
28
|
-
], et = ["id"], tt = ["stop-color"], nt = ["stop-color"], rt = ["id"], it = [
|
|
29
|
-
"x",
|
|
30
|
-
"y",
|
|
31
|
-
"height",
|
|
32
|
-
"width"
|
|
33
|
-
], at = ["height", "width"], ot = { key: 0 }, st = [
|
|
34
|
-
"rx",
|
|
35
|
-
"x",
|
|
36
|
-
"y",
|
|
37
|
-
"height",
|
|
38
|
-
"width",
|
|
39
|
-
"stroke",
|
|
40
|
-
"stroke-width",
|
|
41
|
-
"filter"
|
|
42
|
-
], ct = [
|
|
43
|
-
"rx",
|
|
44
|
-
"x",
|
|
45
|
-
"y",
|
|
46
|
-
"height",
|
|
47
|
-
"width",
|
|
48
|
-
"fill",
|
|
49
|
-
"stroke",
|
|
50
|
-
"stroke-width",
|
|
51
|
-
"filter"
|
|
52
|
-
], lt = { key: 1 }, ut = [
|
|
53
|
-
"rx",
|
|
54
|
-
"x",
|
|
55
|
-
"y",
|
|
56
|
-
"height",
|
|
57
|
-
"width",
|
|
58
|
-
"fill",
|
|
59
|
-
"filter"
|
|
60
|
-
], dt = [
|
|
61
|
-
"textContent",
|
|
62
|
-
"x",
|
|
63
|
-
"y",
|
|
64
|
-
"font-size",
|
|
65
|
-
"fill",
|
|
66
|
-
"filter"
|
|
67
|
-
], ft = [
|
|
68
|
-
"x",
|
|
69
|
-
"y",
|
|
70
|
-
"height",
|
|
71
|
-
"width",
|
|
72
|
-
"onMouseover",
|
|
73
|
-
"onMouseleave",
|
|
74
|
-
"onClick"
|
|
75
|
-
], pt = {
|
|
76
|
-
key: 0,
|
|
77
|
-
style: {
|
|
78
|
-
position: "absolute",
|
|
79
|
-
top: "100%",
|
|
80
|
-
left: "0",
|
|
81
|
-
width: "100%"
|
|
82
|
-
},
|
|
83
|
-
"data-dom-to-png-ignore": "",
|
|
84
|
-
"aria-hidden": "true"
|
|
85
|
-
}, mt = {
|
|
86
|
-
key: 5,
|
|
87
|
-
class: "vue-data-ui-watermark"
|
|
88
|
-
}, ht = ["id"], gt = ["onClick"], _t = ["innerHTML"], vt = /*#__PURE__*/ Se({
|
|
89
|
-
__name: "vue-ui-waffle",
|
|
90
|
-
props: {
|
|
91
|
-
config: {
|
|
92
|
-
type: Object,
|
|
93
|
-
default() {
|
|
94
|
-
return {};
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
dataset: {
|
|
98
|
-
type: Array,
|
|
99
|
-
default() {
|
|
100
|
-
return [];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
emits: ["selectLegend", "copyAlt"],
|
|
105
|
-
setup(e, { expose: Se, emit: Je }) {
|
|
106
|
-
let vt = h(() => import("./Tooltip-BqdN_ZBE.js")), yt = h(() => import("./BaseIcon-CX_ChMz-.js").then((e) => e.n)), bt = h(() => import("./DataTable-KEMekOVu.js")), xt = h(() => import("./vue-ui-accordion-vYLqcJJd.js").then((e) => e.n)), St = h(() => import("./UserOptions-WIxTs7Xf.js").then((e) => e.n)), Ct = h(() => import("./PenAndPaper-DkZYRnrW.js").then((e) => e.t)), wt = h(() => import("./PackageVersion-D-_GVhxY.js").then((e) => e.t)), Tt = h(() => import("./BaseDraggableDialog-DLuXvUbs.js").then((e) => e.n)), { vue_ui_waffle: Et } = fe(), { isThemeValid: Dt, warnInvalidTheme: Ot } = ve(), w = e, kt = Ke(), At = u({
|
|
107
|
-
get() {
|
|
108
|
-
return !!w.dataset && w.dataset.length;
|
|
109
|
-
},
|
|
110
|
-
set(e) {
|
|
111
|
-
return e;
|
|
112
|
-
}
|
|
113
|
-
}), T = y(i()), E = y(!1), jt = y(""), D = y(null), Mt = y(0), O = y(null), Nt = y(null), Pt = y(null), Ft = y(null), It = y(null), Lt = y(0), Rt = y(0), zt = y(0), Bt = y(!1), Vt = y(null), Ht = y(null), Ut = y(!1), Wt = y(!1), k = y(null), Gt = y({
|
|
114
|
-
x: 0,
|
|
115
|
-
y: 0
|
|
116
|
-
}), A = y("pointer"), Kt = y(!1), j = y(en()), M = u(() => j.value.userOptions.useCursorPointer), qt = u(() => te({
|
|
117
|
-
defaultConfig: {
|
|
118
|
-
useCustomCells: !1,
|
|
119
|
-
userOptions: { show: !1 },
|
|
120
|
-
table: { show: !1 },
|
|
121
|
-
style: { chart: {
|
|
122
|
-
backgroundColor: "#99999930",
|
|
123
|
-
layout: {
|
|
124
|
-
labels: { captions: { show: !1 } },
|
|
125
|
-
rect: { stroke: "#999999" }
|
|
126
|
-
},
|
|
127
|
-
legend: {
|
|
128
|
-
backgroundColor: "transparent",
|
|
129
|
-
showValue: !1,
|
|
130
|
-
showPercentage: !1
|
|
131
|
-
}
|
|
132
|
-
} }
|
|
133
|
-
},
|
|
134
|
-
userConfig: j.value.skeletonConfig ?? {}
|
|
135
|
-
})), { loading: Jt, FINAL_DATASET: Yt, manualLoading: Xt } = me({
|
|
136
|
-
...Ge(w),
|
|
137
|
-
FINAL_CONFIG: j,
|
|
138
|
-
prepareConfig: en,
|
|
139
|
-
callback: () => {
|
|
140
|
-
Promise.resolve().then(async () => {
|
|
141
|
-
V.value = mn();
|
|
142
|
-
});
|
|
143
|
-
},
|
|
144
|
-
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
145
|
-
{
|
|
146
|
-
name: "",
|
|
147
|
-
values: [1],
|
|
148
|
-
color: "#AAAAAA"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: "",
|
|
152
|
-
values: [1],
|
|
153
|
-
color: "#BABABA"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "",
|
|
157
|
-
values: [1],
|
|
158
|
-
color: "#CACACA"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
skeletonConfig: te({
|
|
162
|
-
defaultConfig: j.value,
|
|
163
|
-
userConfig: qt.value
|
|
164
|
-
})
|
|
165
|
-
}), { userOptionsVisible: Zt, setUserOptionsVisibility: Qt, keepUserOptionState: $t } = De({ config: j.value }), { svgRef: N } = Oe({ config: j.value.style.chart.title });
|
|
166
|
-
function en() {
|
|
167
|
-
let e = _e({
|
|
168
|
-
userConfig: w.config,
|
|
169
|
-
defaultConfig: Et
|
|
170
|
-
}), t = e.theme;
|
|
171
|
-
if (!t) return e;
|
|
172
|
-
if (!Dt.value(e)) return Ot(e), e;
|
|
173
|
-
let n = _e({
|
|
174
|
-
userConfig: je[t] || w.config,
|
|
175
|
-
defaultConfig: e
|
|
176
|
-
}), r = _e({
|
|
177
|
-
userConfig: w.config,
|
|
178
|
-
defaultConfig: n
|
|
179
|
-
});
|
|
180
|
-
return {
|
|
181
|
-
...r,
|
|
182
|
-
customPalette: r.customPalette.length ? r.customPalette : s[t] || c
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
qe(() => w.config, (e) => {
|
|
186
|
-
Jt.value || (j.value = en()), Zt.value = !j.value.userOptions.showOnChartHover, nn(), Lt.value += 1, Rt.value += 1, zt.value += 1, I.value.showTable = j.value.table.show, I.value.showTooltip = j.value.style.chart.tooltip.show;
|
|
187
|
-
}, { deep: !0 });
|
|
188
|
-
let P = Ue(null), F = Ue(null), tn = u(() => !!j.value.debug);
|
|
189
|
-
function nn() {
|
|
190
|
-
if (t(w.dataset) ? (ne({
|
|
191
|
-
componentName: "VueUiWaffle",
|
|
192
|
-
type: "dataset",
|
|
193
|
-
debug: tn.value
|
|
194
|
-
}), At.value = !1, Xt.value = !0) : w.dataset.forEach((e, t) => {
|
|
195
|
-
re({
|
|
196
|
-
datasetObject: e,
|
|
197
|
-
requiredAttributes: ["name", "values"]
|
|
198
|
-
}).forEach((e) => {
|
|
199
|
-
ne({
|
|
200
|
-
componentName: "VueUiWaffle",
|
|
201
|
-
type: "datasetSerieAttribute",
|
|
202
|
-
property: e,
|
|
203
|
-
index: t,
|
|
204
|
-
debug: tn.value
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
}), t(w.dataset) || (Xt.value = j.value.loading), j.value.responsive) {
|
|
208
|
-
let e = Ce(() => {
|
|
209
|
-
let { width: e, height: t } = we({
|
|
210
|
-
chart: O.value,
|
|
211
|
-
title: j.value.style.chart.title.text ? Nt.value : null,
|
|
212
|
-
legend: j.value.style.chart.legend.show ? Pt.value : null,
|
|
213
|
-
source: Ft.value,
|
|
214
|
-
noTitle: It.value
|
|
215
|
-
});
|
|
216
|
-
requestAnimationFrame(() => {
|
|
217
|
-
L.value.width = e, L.value.height = t, R.value.width = e, R.value.height = t;
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect()), P.value = new ResizeObserver(e), F.value = O.value.parentNode, P.value.observe(F.value);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
Ve(() => {
|
|
224
|
-
Bt.value = !0, nn();
|
|
225
|
-
}), Be(() => {
|
|
226
|
-
P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect());
|
|
227
|
-
});
|
|
228
|
-
let { isPrinting: rn, isImaging: an, generatePdf: on, generateImage: sn } = pe({
|
|
229
|
-
elementId: `vue-ui-waffle_${T.value}`,
|
|
230
|
-
fileName: j.value.style.chart.title.text || "vue-ui-waffle",
|
|
231
|
-
options: j.value.userOptions.print
|
|
232
|
-
}), cn = u(() => j.value.userOptions.show && !j.value.style.chart.title.text), ln = u(() => ue(j.value.customPalette)), I = y({
|
|
233
|
-
showTable: j.value.table.show,
|
|
234
|
-
showTooltip: j.value.style.chart.tooltip.show
|
|
235
|
-
});
|
|
236
|
-
qe(j, () => {
|
|
237
|
-
I.value = {
|
|
238
|
-
showTable: j.value.table.show,
|
|
239
|
-
showTooltip: j.value.style.chart.tooltip.show
|
|
240
|
-
};
|
|
241
|
-
}, { immediate: !0 });
|
|
242
|
-
let L = y({
|
|
243
|
-
height: 512,
|
|
244
|
-
width: 512
|
|
245
|
-
}), R = y({
|
|
246
|
-
top: 0,
|
|
247
|
-
left: 0,
|
|
248
|
-
height: 512,
|
|
249
|
-
width: 512
|
|
250
|
-
}), z = u(() => (R.value.width - j.value.style.chart.layout.grid.size * j.value.style.chart.layout.grid.spaceBetween) / j.value.style.chart.layout.grid.size), B = u(() => (R.value.height - j.value.style.chart.layout.grid.size * j.value.style.chart.layout.grid.spaceBetween) / j.value.style.chart.layout.grid.size), un = u(() => Math.max(1e-4, R.value.width / j.value.style.chart.layout.grid.size)), dn = u(() => Math.max(1e-4, R.value.height / j.value.style.chart.layout.grid.size));
|
|
251
|
-
function fn(e) {
|
|
252
|
-
let t = j.value.style.chart.layout.grid.size * j.value.style.chart.layout.grid.size, n = e.reduce((e, t) => e + t, 0), r = e.map((e) => e / n * t), i = r.map(Math.floor), a = r.map((e) => e % 1), o = t - i.reduce((e, t) => e + t, 0);
|
|
253
|
-
for (; o > 0;) {
|
|
254
|
-
let e = a.indexOf(Math.max(...a));
|
|
255
|
-
i[e] += 1, a[e] = 0, --o;
|
|
256
|
-
}
|
|
257
|
-
return i;
|
|
258
|
-
}
|
|
259
|
-
let pn = y(!1);
|
|
260
|
-
function mn() {
|
|
261
|
-
return pn.value = Yt.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, Yt.value.map((e, t) => ({
|
|
262
|
-
...e,
|
|
263
|
-
color: de(e.color) || ln.value[t] || c[t] || c[t % c.length],
|
|
264
|
-
uid: `serie_${t}`,
|
|
265
|
-
absoluteIndex: t
|
|
266
|
-
}));
|
|
267
|
-
}
|
|
268
|
-
let hn = u(() => mn()), V = y(hn.value);
|
|
269
|
-
qe(() => w.dataset, (e) => {
|
|
270
|
-
Array.isArray(e) && e.length > 0 && (Xt.value = !1);
|
|
271
|
-
}, { immediate: !0 }), qe(() => w.dataset, (e) => {
|
|
272
|
-
V.value = mn();
|
|
273
|
-
}, { deep: !0 });
|
|
274
|
-
let gn = u(() => fn(V.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => pn.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), _n = u(() => fn(V.value.map((e, t) => pn.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), H = u(() => (Yt.value.forEach((e, t) => {
|
|
275
|
-
[null, void 0].includes(e.values) && ne({
|
|
276
|
-
componentName: "VueUiWaffle",
|
|
277
|
-
type: "datasetSerieAttribute",
|
|
278
|
-
property: "values (number[])",
|
|
279
|
-
index: t
|
|
280
|
-
});
|
|
281
|
-
}), V.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => ({
|
|
282
|
-
absoluteIndex: e.absoluteIndex,
|
|
283
|
-
uid: e.uid,
|
|
284
|
-
name: e.name,
|
|
285
|
-
color: e.color,
|
|
286
|
-
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
287
|
-
absoluteValues: e.values || [],
|
|
288
|
-
proportion: gn.value[t]
|
|
289
|
-
})))), U = u(() => V.value.map((e, t) => ({
|
|
290
|
-
absoluteIndex: e.absoluteIndex,
|
|
291
|
-
uid: e.uid,
|
|
292
|
-
name: e.name,
|
|
293
|
-
color: e.color,
|
|
294
|
-
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
295
|
-
absoluteValues: e.values || [],
|
|
296
|
-
proportion: _n.value[t]
|
|
297
|
-
})));
|
|
298
|
-
function vn() {
|
|
299
|
-
return U.value.map((e) => ({
|
|
300
|
-
name: e.name,
|
|
301
|
-
color: e.color,
|
|
302
|
-
value: e.value,
|
|
303
|
-
proportion: e.proportion
|
|
304
|
-
}));
|
|
305
|
-
}
|
|
306
|
-
let yn = u(() => {
|
|
307
|
-
let e = 0;
|
|
308
|
-
return H.value.map((t, n) => {
|
|
309
|
-
let r = e, i = r + t.proportion, a = [];
|
|
310
|
-
for (let e = Math.floor(r); e < Math.floor(i); e += 1) a.push(e);
|
|
311
|
-
return e = i, {
|
|
312
|
-
...t,
|
|
313
|
-
start: r,
|
|
314
|
-
rects: a
|
|
315
|
-
};
|
|
316
|
-
});
|
|
317
|
-
}), W = u(() => yn.value.flatMap((e, t) => e.rects.map((n, r) => ({
|
|
318
|
-
isFirst: r === 0,
|
|
319
|
-
isLongEnough: n.length > 2,
|
|
320
|
-
name: e.name,
|
|
321
|
-
color: e.color,
|
|
322
|
-
value: e.value,
|
|
323
|
-
serieIndex: t,
|
|
324
|
-
absoluteStartIndex: r < 3,
|
|
325
|
-
serieId: e.uid,
|
|
326
|
-
...e
|
|
327
|
-
}))).map((e, t) => ({
|
|
328
|
-
...e,
|
|
329
|
-
isAbsoluteFirst: t % j.value.style.chart.layout.grid.size === 0
|
|
330
|
-
}))), G = u(() => {
|
|
331
|
-
let e = [];
|
|
332
|
-
for (let t = 0; t < j.value.style.chart.layout.grid.size; t += 1) for (let n = 0; n < j.value.style.chart.layout.grid.size; n += 1) e.push({
|
|
333
|
-
isStartOfLine: n === 0,
|
|
334
|
-
position: j.value.style.chart.layout.grid.vertical ? t : n,
|
|
335
|
-
x: (j.value.style.chart.layout.grid.vertical ? t : n) * (z.value + j.value.style.chart.layout.grid.spaceBetween),
|
|
336
|
-
y: (j.value.style.chart.layout.grid.vertical ? n : t) * (B.value + j.value.style.chart.layout.grid.spaceBetween) + R.value.top
|
|
337
|
-
});
|
|
338
|
-
return e;
|
|
339
|
-
}), K = y([]), bn = y(!1), xn = y(Object.create(null)), Sn = y(Object.create(null)), Cn = y(0);
|
|
340
|
-
function wn(e, t) {
|
|
341
|
-
V.value = V.value.map((n) => n.uid === e ? {
|
|
342
|
-
...n,
|
|
343
|
-
values: [t]
|
|
344
|
-
} : n);
|
|
345
|
-
}
|
|
346
|
-
function Tn(e, t) {
|
|
347
|
-
let n = t.find((t) => t.uid === e);
|
|
348
|
-
return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
|
|
349
|
-
}
|
|
350
|
-
function En(e) {
|
|
351
|
-
xn.value[e] && (cancelAnimationFrame(xn.value[e]), delete xn.value[e]), Sn.value[e] && (cancelAnimationFrame(Sn.value[e]), delete Sn.value[e]);
|
|
352
|
-
}
|
|
353
|
-
function Dn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
|
|
354
|
-
En(e), Cn.value += 1, bn.value = !0;
|
|
355
|
-
let i = t;
|
|
356
|
-
return new Promise((a) => {
|
|
357
|
-
function o() {
|
|
358
|
-
if (r === "increase") {
|
|
359
|
-
if (i >= n) {
|
|
360
|
-
wn(e, n), --Cn.value, Cn.value <= 0 && (bn.value = !1), delete xn.value[e], a();
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
i += n * .025, i > n && (i = n), wn(e, i), xn.value[e] = requestAnimationFrame(o);
|
|
364
|
-
} else {
|
|
365
|
-
if (i <= t / 100) {
|
|
366
|
-
wn(e, 0), --Cn.value, Cn.value <= 0 && (bn.value = !1), delete Sn.value[e], a();
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
i /= 1.15, wn(e, i), Sn.value[e] = requestAnimationFrame(o);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
o();
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
function On() {
|
|
376
|
-
V.value = hn.value;
|
|
377
|
-
let e = K.value.length > 0;
|
|
378
|
-
if (!j.value.useAnimation) {
|
|
379
|
-
e ? K.value = [] : K.value = J.value.map((e) => e.uid);
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
e ? [...K.value].forEach((e) => {
|
|
383
|
-
q(e, !0);
|
|
384
|
-
}) : J.value.map((e) => e.uid).forEach((e) => {
|
|
385
|
-
q(e, !0);
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
function q(e, t = !1) {
|
|
389
|
-
if (pn.value && !t) return;
|
|
390
|
-
let n = t || K.value.length < J.value.length - 1 && J.value.length > 1;
|
|
391
|
-
if (!j.value.useAnimation) {
|
|
392
|
-
K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : n && K.value.push(e);
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
let r = Tn(e, hn.value), i = Tn(e, V.value);
|
|
396
|
-
if (!(i === 0 && r === 0)) {
|
|
397
|
-
if (K.value.includes(e)) {
|
|
398
|
-
K.value = K.value.filter((t) => t !== e), Dn({
|
|
399
|
-
seriesId: e,
|
|
400
|
-
fromValue: i,
|
|
401
|
-
toValue: r,
|
|
402
|
-
mode: "increase"
|
|
403
|
-
}).then(() => {
|
|
404
|
-
Vn("selectLegend", H.value.map((e) => ({
|
|
405
|
-
name: e.name,
|
|
406
|
-
color: e.color,
|
|
407
|
-
value: e.value,
|
|
408
|
-
proportion: e.proportion / j.value.style.chart.layout.grid.size ** 2
|
|
409
|
-
})));
|
|
410
|
-
});
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
n && Dn({
|
|
414
|
-
seriesId: e,
|
|
415
|
-
fromValue: i,
|
|
416
|
-
toValue: 0,
|
|
417
|
-
mode: "decrease"
|
|
418
|
-
}).then(() => {
|
|
419
|
-
K.value.includes(e) || K.value.push(e), wn(e, 0), Vn("selectLegend", H.value.map((e) => ({
|
|
420
|
-
name: e.name,
|
|
421
|
-
color: e.color,
|
|
422
|
-
value: e.value,
|
|
423
|
-
proportion: e.proportion / j.value.style.chart.layout.grid.size ** 2
|
|
424
|
-
})));
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
function kn(e) {
|
|
429
|
-
return U.value.length ? U.value.find((t) => t.name === e) || (j.value.debug && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (j.value.debug && console.warn("VueUiWaffle - There are no series to show."), null);
|
|
430
|
-
}
|
|
431
|
-
function An(e) {
|
|
432
|
-
let t = kn(e);
|
|
433
|
-
t !== null && K.value.includes(t.uid) && q(t.uid);
|
|
434
|
-
}
|
|
435
|
-
function jn(e) {
|
|
436
|
-
let t = kn(e);
|
|
437
|
-
t !== null && (K.value.includes(t.uid) || q(t.uid));
|
|
438
|
-
}
|
|
439
|
-
function Mn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
440
|
-
return ke({
|
|
441
|
-
config: i,
|
|
442
|
-
val: e,
|
|
443
|
-
percentage: t,
|
|
444
|
-
showVal: n,
|
|
445
|
-
showPercentage: r
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
let J = u(() => V.value.map((e, t) => {
|
|
449
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / V.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
450
|
-
return {
|
|
451
|
-
name: e.name,
|
|
452
|
-
color: e.color || ln[t] || c[t] || c[t % c.length],
|
|
453
|
-
value: n,
|
|
454
|
-
proportion: r,
|
|
455
|
-
uid: e.uid,
|
|
456
|
-
shape: "square"
|
|
457
|
-
};
|
|
458
|
-
}).map((e, t) => {
|
|
459
|
-
let n = Mn({
|
|
460
|
-
val: ae(j.value.style.chart.layout.labels.dataLabels.formatter, e.value, r({
|
|
461
|
-
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
462
|
-
v: e.value,
|
|
463
|
-
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
464
|
-
r: j.value.style.chart.legend.roundingValue
|
|
465
|
-
}), {
|
|
466
|
-
datapoint: e,
|
|
467
|
-
index: t
|
|
468
|
-
}),
|
|
469
|
-
percentage: isNaN(e.value / Y.value) ? "-" : r({
|
|
470
|
-
v: e.value / Y.value * 100,
|
|
471
|
-
s: "%",
|
|
472
|
-
r: j.value.style.chart.legend.roundingPercentage
|
|
473
|
-
}),
|
|
474
|
-
showVal: j.value.style.chart.legend.showValue,
|
|
475
|
-
showPercentage: j.value.style.chart.legend.showPercentage,
|
|
476
|
-
config: j.value.style.chart.legend
|
|
477
|
-
});
|
|
478
|
-
return {
|
|
479
|
-
...e,
|
|
480
|
-
opacity: K.value.includes(e.uid) ? .5 : 1,
|
|
481
|
-
segregate: () => q(e.uid),
|
|
482
|
-
isSegregated: K.value.includes(e.uid),
|
|
483
|
-
display: `${e.name}${j.value.style.chart.legend.showPercentage || j.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
484
|
-
};
|
|
485
|
-
})), Nn = u(() => ({
|
|
486
|
-
cy: "waffle-div-legend",
|
|
487
|
-
backgroundColor: j.value.style.chart.legend.backgroundColor,
|
|
488
|
-
color: j.value.style.chart.legend.color,
|
|
489
|
-
fontSize: j.value.style.chart.legend.fontSize,
|
|
490
|
-
paddingBottom: 12,
|
|
491
|
-
fontWeight: j.value.style.chart.legend.bold ? "bold" : ""
|
|
492
|
-
})), Y = u(() => H.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Pn = y(null), Fn = y(null), X = u(() => {
|
|
493
|
-
let e = /* @__PURE__ */ new Map();
|
|
494
|
-
return W.value.forEach((t, n) => {
|
|
495
|
-
e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
|
|
496
|
-
serieIndex: t.serieIndex,
|
|
497
|
-
absoluteIndex: t.absoluteIndex,
|
|
498
|
-
serieId: t.serieId,
|
|
499
|
-
name: t.name,
|
|
500
|
-
color: t.color,
|
|
501
|
-
value: t.value,
|
|
502
|
-
proportion: t.proportion,
|
|
503
|
-
rectIndexes: [n]
|
|
504
|
-
});
|
|
505
|
-
}), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
|
|
506
|
-
});
|
|
507
|
-
function In(e) {
|
|
508
|
-
return X.value.find((t) => t.serieIndex === e) || null;
|
|
509
|
-
}
|
|
510
|
-
function Ln(e) {
|
|
511
|
-
let t = In(e);
|
|
512
|
-
return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
|
|
513
|
-
}
|
|
514
|
-
function Rn(e) {
|
|
515
|
-
let t = W.value[e];
|
|
516
|
-
j.value.events.datapointClick && j.value.events.datapointClick({
|
|
517
|
-
datapoint: t,
|
|
518
|
-
seriesIndex: t.serieIndex
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
function zn(e) {
|
|
522
|
-
let t = W.value[e];
|
|
523
|
-
j.value.events.datapointLeave && j.value.events.datapointLeave({
|
|
524
|
-
datapoint: t,
|
|
525
|
-
seriesIndex: t.serieIndex
|
|
526
|
-
}), Fn.value = null, E.value = !1, D.value = null, k.value = null, A.value = "pointer";
|
|
527
|
-
}
|
|
528
|
-
function Bn(e, t = "pointer") {
|
|
529
|
-
if (K.value.length === w.dataset.length) return;
|
|
530
|
-
let n = W.value[e];
|
|
531
|
-
if (!n) return;
|
|
532
|
-
A.value = t, k.value = n.serieIndex, Pn.value = {
|
|
533
|
-
datapoint: n,
|
|
534
|
-
seriesIndex: n.absoluteIndex,
|
|
535
|
-
series: V.value,
|
|
536
|
-
config: j.value
|
|
537
|
-
}, j.value.events.datapointEnter && Fn.value !== n.serieIndex && j.value.events.datapointEnter({
|
|
538
|
-
datapoint: n,
|
|
539
|
-
seriesIndex: n.serieIndex
|
|
540
|
-
}), Fn.value = n.serieIndex, E.value = !0, D.value = n.serieIndex;
|
|
541
|
-
let i = j.value.style.chart.tooltip.customFormat;
|
|
542
|
-
if (ie(i) && oe(() => i({
|
|
543
|
-
seriesIndex: n.absoluteIndex,
|
|
544
|
-
datapoint: n,
|
|
545
|
-
series: V.value,
|
|
546
|
-
config: j.value
|
|
547
|
-
}))) jt.value = i({
|
|
548
|
-
seriesIndex: n.absoluteIndex,
|
|
549
|
-
datapoint: n,
|
|
550
|
-
series: V.value,
|
|
551
|
-
config: j.value
|
|
552
|
-
});
|
|
553
|
-
else {
|
|
554
|
-
let e = "";
|
|
555
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${j.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${kt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${T.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${Mn({
|
|
556
|
-
config: j.value.style.chart.tooltip,
|
|
557
|
-
showVal: j.value.style.chart.tooltip.showValue,
|
|
558
|
-
showPercentage: j.value.style.chart.tooltip.showPercentage,
|
|
559
|
-
val: `<span>${ae(j.value.style.chart.layout.labels.dataLabels.formatter, n.value, r({
|
|
560
|
-
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
561
|
-
v: n.value,
|
|
562
|
-
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
563
|
-
r: j.value.style.chart.tooltip.roundingValue
|
|
564
|
-
}), {
|
|
565
|
-
datapoint: n,
|
|
566
|
-
seriesIndex: n.absoluteIndex,
|
|
567
|
-
series: V.value
|
|
568
|
-
})}</span>`,
|
|
569
|
-
percentage: `<span>${r({
|
|
570
|
-
v: pn.value ? 1 / Yt.value.length * 100 : n.value / Y.value * 100,
|
|
571
|
-
s: "%",
|
|
572
|
-
r: j.value.style.chart.tooltip.roundingPercentage
|
|
573
|
-
})}</span>`
|
|
574
|
-
})}</b></div>`, jt.value = e;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
let Vn = Je, Z = u(() => ({
|
|
578
|
-
head: H.value.map((e) => ({
|
|
579
|
-
name: e.name,
|
|
580
|
-
color: e.color
|
|
581
|
-
})),
|
|
582
|
-
body: H.value.map((e) => e.value)
|
|
583
|
-
}));
|
|
584
|
-
function Hn(e) {
|
|
585
|
-
return j.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== e ? `url(#blur_${T.value})` : "";
|
|
586
|
-
}
|
|
587
|
-
function Un(e, t) {
|
|
588
|
-
return j.value.style.chart.layout.labels.captions.show ? W.value.length && !bn.value && !j.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < j.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % j.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
|
|
589
|
-
}
|
|
590
|
-
function Wn(e, t = null) {
|
|
591
|
-
let n = ae(j.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, r({
|
|
592
|
-
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
593
|
-
v: W.value[e].value,
|
|
594
|
-
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
595
|
-
r: j.value.style.chart.layout.labels.captions.roundingValue
|
|
596
|
-
}), {
|
|
597
|
-
datapoint: W.value[e],
|
|
598
|
-
position: t
|
|
599
|
-
}), i = r({
|
|
600
|
-
v: W.value[e].proportion,
|
|
601
|
-
s: "%",
|
|
602
|
-
r: j.value.style.chart.layout.labels.captions.roundingPercentage
|
|
603
|
-
}), a = (j.value.style.chart.layout.labels.captions.serieNameAbbreviation ? se({
|
|
604
|
-
source: W.value[e].name,
|
|
605
|
-
length: j.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
|
|
606
|
-
}) : W.value[e].name) + (j.value.style.chart.layout.labels.captions.showPercentage || j.value.style.chart.layout.labels.captions.showValue ? ":" : "");
|
|
607
|
-
return `${j.value.style.chart.layout.labels.captions.showSerieName ? a : ""} ${Mn({
|
|
608
|
-
val: n,
|
|
609
|
-
percentage: i,
|
|
610
|
-
showVal: j.value.style.chart.layout.labels.captions.showValue,
|
|
611
|
-
showPercentage: j.value.style.chart.layout.labels.captions.showPercentage,
|
|
612
|
-
config: j.value.style.chart.layout.labels.dataLabels
|
|
613
|
-
})}`;
|
|
614
|
-
}
|
|
615
|
-
function Gn(e = null) {
|
|
616
|
-
Le(() => {
|
|
617
|
-
let t = Z.value.head.map((e, t) => [
|
|
618
|
-
[e.name],
|
|
619
|
-
[Z.value.body[t]],
|
|
620
|
-
[isNaN(Z.value.body[t] / Y.value) ? "-" : Z.value.body[t] / Y.value * 100]
|
|
621
|
-
]), n = ee([
|
|
622
|
-
[j.value.style.chart.title.text],
|
|
623
|
-
[j.value.style.chart.title.subtitle.text],
|
|
624
|
-
[
|
|
625
|
-
[""],
|
|
626
|
-
["val"],
|
|
627
|
-
["%"]
|
|
628
|
-
]
|
|
629
|
-
].concat(t));
|
|
630
|
-
e ? e(n) : o({
|
|
631
|
-
csvContent: n,
|
|
632
|
-
title: j.value.style.chart.title.text || "vue-ui-waffle"
|
|
633
|
-
});
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
let Q = u(() => ({
|
|
637
|
-
head: [
|
|
638
|
-
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
639
|
-
ae(j.value.style.chart.layout.labels.dataLabels.formatter, Y.value, r({
|
|
640
|
-
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
641
|
-
v: Y.value,
|
|
642
|
-
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
643
|
-
r: j.value.table.td.roundingValue
|
|
644
|
-
})),
|
|
645
|
-
"100%"
|
|
646
|
-
],
|
|
647
|
-
body: Z.value.head.map((e, t) => [
|
|
648
|
-
{
|
|
649
|
-
color: e.color,
|
|
650
|
-
name: e.name
|
|
651
|
-
},
|
|
652
|
-
ae(j.value.style.chart.layout.labels.dataLabels.formatter, Z.value.body[t], r({
|
|
653
|
-
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
654
|
-
v: Z.value.body[t],
|
|
655
|
-
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
656
|
-
r: j.value.table.td.roundingValue
|
|
657
|
-
})),
|
|
658
|
-
isNaN(Z.value.body[t] / Y.value) ? "-" : r({
|
|
659
|
-
v: Z.value.body[t] / Y.value * 100,
|
|
660
|
-
s: "%",
|
|
661
|
-
r: j.value.table.td.roundingPercentage
|
|
662
|
-
})
|
|
663
|
-
]),
|
|
664
|
-
config: {
|
|
665
|
-
th: {
|
|
666
|
-
backgroundColor: j.value.table.th.backgroundColor,
|
|
667
|
-
color: j.value.table.th.color,
|
|
668
|
-
outline: j.value.table.th.outline
|
|
669
|
-
},
|
|
670
|
-
td: {
|
|
671
|
-
backgroundColor: j.value.table.td.backgroundColor,
|
|
672
|
-
color: j.value.table.td.color,
|
|
673
|
-
outline: j.value.table.td.outline
|
|
674
|
-
},
|
|
675
|
-
shape: "square",
|
|
676
|
-
breakpoint: j.value.table.responsiveBreakpoint
|
|
677
|
-
},
|
|
678
|
-
colNames: [
|
|
679
|
-
j.value.table.columnNames.series,
|
|
680
|
-
j.value.table.columnNames.value,
|
|
681
|
-
j.value.table.columnNames.percentage
|
|
682
|
-
]
|
|
683
|
-
})), $ = y(!1);
|
|
684
|
-
function Kn(e) {
|
|
685
|
-
$.value = e, Mt.value += 1;
|
|
686
|
-
}
|
|
687
|
-
function qn() {
|
|
688
|
-
I.value.showTable = !I.value.showTable;
|
|
689
|
-
}
|
|
690
|
-
function Jn() {
|
|
691
|
-
I.value.showTooltip = !I.value.showTooltip;
|
|
692
|
-
}
|
|
693
|
-
let Yn = y(!1);
|
|
694
|
-
function Xn() {
|
|
695
|
-
Yn.value = !Yn.value;
|
|
696
|
-
}
|
|
697
|
-
async function Zn({ scale: e = 2 } = {}) {
|
|
698
|
-
if (!O.value) return;
|
|
699
|
-
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
|
|
700
|
-
domElement: O.value,
|
|
701
|
-
base64: !0,
|
|
702
|
-
img: !0,
|
|
703
|
-
scale: e
|
|
704
|
-
});
|
|
705
|
-
return {
|
|
706
|
-
imageUri: i,
|
|
707
|
-
base64: a,
|
|
708
|
-
title: j.value.style.chart.title.text,
|
|
709
|
-
width: t,
|
|
710
|
-
height: n,
|
|
711
|
-
aspectRatio: r
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
let Qn = u(() => {
|
|
715
|
-
let e = j.value.table.useDialog && !j.value.table.show, t = I.value.showTable;
|
|
716
|
-
return {
|
|
717
|
-
component: e ? Tt : xt,
|
|
718
|
-
title: `${j.value.style.chart.title.text}${j.value.style.chart.title.subtitle.text ? `: ${j.value.style.chart.title.subtitle.text}` : ""}`,
|
|
719
|
-
props: e ? {
|
|
720
|
-
backgroundColor: j.value.table.th.backgroundColor,
|
|
721
|
-
color: j.value.table.th.color,
|
|
722
|
-
headerColor: j.value.table.th.color,
|
|
723
|
-
headerBg: j.value.table.th.backgroundColor,
|
|
724
|
-
isFullscreen: $.value,
|
|
725
|
-
fullscreenParent: O.value,
|
|
726
|
-
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
727
|
-
isCursorPointer: M.value
|
|
728
|
-
} : {
|
|
729
|
-
hideDetails: !0,
|
|
730
|
-
config: {
|
|
731
|
-
open: t,
|
|
732
|
-
maxHeight: 1e4,
|
|
733
|
-
body: {
|
|
734
|
-
backgroundColor: j.value.style.chart.backgroundColor,
|
|
735
|
-
color: j.value.style.chart.color
|
|
736
|
-
},
|
|
737
|
-
head: {
|
|
738
|
-
backgroundColor: j.value.style.chart.backgroundColor,
|
|
739
|
-
color: j.value.style.chart.color
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
});
|
|
745
|
-
qe(() => I.value.showTable, (e) => {
|
|
746
|
-
j.value.table.show || (e && j.value.table.useDialog && Vt.value ? Vt.value.open() : "close" in Vt.value && Vt.value.close());
|
|
747
|
-
});
|
|
748
|
-
function $n() {
|
|
749
|
-
I.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
|
|
750
|
-
}
|
|
751
|
-
let er = u(() => J.value.map((e) => ({
|
|
752
|
-
...e,
|
|
753
|
-
name: e.display
|
|
754
|
-
}))), tr = u(() => j.value.style.chart.backgroundColor), nr = u(() => j.value.style.chart.legend), { exportSvg: rr, getSvg: ir } = ge({
|
|
755
|
-
svg: N,
|
|
756
|
-
title: u(() => j.value.style.chart.title),
|
|
757
|
-
legend: nr,
|
|
758
|
-
legendItems: er,
|
|
759
|
-
backgroundColor: tr
|
|
760
|
-
});
|
|
761
|
-
async function ar({ isCb: e }) {
|
|
762
|
-
Wt.value = !0, await Le();
|
|
763
|
-
try {
|
|
764
|
-
if (e) {
|
|
765
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await ir();
|
|
766
|
-
await Promise.resolve(j.value.userOptions.callbacks.svg({
|
|
767
|
-
blob: e,
|
|
768
|
-
url: t,
|
|
769
|
-
text: n,
|
|
770
|
-
dataUrl: r
|
|
771
|
-
}));
|
|
772
|
-
} else await Promise.resolve(rr());
|
|
773
|
-
} finally {
|
|
774
|
-
Wt.value = !1;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
function or(e) {
|
|
778
|
-
if (e?.stage === "start") {
|
|
779
|
-
Ut.value = !0;
|
|
780
|
-
return;
|
|
781
|
-
}
|
|
782
|
-
if (e?.stage === "end") {
|
|
783
|
-
Ut.value = !1;
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
sn();
|
|
787
|
-
}
|
|
788
|
-
async function sr() {
|
|
789
|
-
if (Vn("copyAlt", {
|
|
790
|
-
config: j.value,
|
|
791
|
-
dataset: U.value
|
|
792
|
-
}), !j.value.userOptions.callbacks.altCopy) {
|
|
793
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
794
|
-
return;
|
|
795
|
-
}
|
|
796
|
-
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
797
|
-
config: j.value,
|
|
798
|
-
dataset: U.value
|
|
799
|
-
}));
|
|
800
|
-
}
|
|
801
|
-
function cr() {
|
|
802
|
-
k.value = null, Kt.value = !0;
|
|
803
|
-
}
|
|
804
|
-
function lr() {
|
|
805
|
-
k.value = null, A.value = "pointer", E.value = !1, D.value = null, Fn.value = null, Kt.value = !1;
|
|
806
|
-
}
|
|
807
|
-
function ur(e) {
|
|
808
|
-
if (!N.value || Yn.value || document.activeElement !== N.value || !X.value.length || K.value.length === w.dataset.length) return;
|
|
809
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
810
|
-
if (!t && !n && !r && !i) return;
|
|
811
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
812
|
-
k.value = null, A.value = "pointer", E.value = !1, D.value = null, Fn.value = null;
|
|
813
|
-
return;
|
|
814
|
-
}
|
|
815
|
-
if (r) {
|
|
816
|
-
if (k.value === null) return;
|
|
817
|
-
let e = Ln(k.value);
|
|
818
|
-
if (e === null) return;
|
|
819
|
-
Rn(e);
|
|
820
|
-
return;
|
|
821
|
-
}
|
|
822
|
-
let a = X.value.findIndex((e) => e.serieIndex === k.value), o = null;
|
|
823
|
-
if (o = a === -1 ? n ? X.value[0] : X.value[X.value.length - 1] : n ? X.value[(a + 1) % X.value.length] : X.value[(a - 1 + X.value.length) % X.value.length], !o) return;
|
|
824
|
-
let ee = Ln(o.serieIndex);
|
|
825
|
-
ee !== null && (dr(o.serieIndex), Bn(ee, "keyboard"));
|
|
826
|
-
}
|
|
827
|
-
function dr(e) {
|
|
828
|
-
if (!Number.isFinite(e) || !N.value) return;
|
|
829
|
-
let t = In(e);
|
|
830
|
-
if (!t || !t.rectIndexes.length) return;
|
|
831
|
-
let n = t.rectIndexes.map((e) => {
|
|
832
|
-
let t = G.value[e];
|
|
833
|
-
return t ? {
|
|
834
|
-
x: t.x + j.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2,
|
|
835
|
-
y: t.y + j.value.style.chart.layout.grid.spaceBetween / 2 + dn.value / 2
|
|
836
|
-
} : null;
|
|
837
|
-
}).filter(Boolean);
|
|
838
|
-
if (!n.length) return;
|
|
839
|
-
let r = Math.min(...n.map((e) => e.x)), i = Math.max(...n.map((e) => e.x)), a = Math.min(...n.map((e) => e.y)), o = Math.max(...n.map((e) => e.y)), ee = (r + i) / 2, te = (a + o) / 2, s = N.value.getBoundingClientRect();
|
|
840
|
-
Gt.value = {
|
|
841
|
-
x: s.left + ee / L.value.width * s.width,
|
|
842
|
-
y: s.top + te / L.value.height * s.height
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
let fr = u(() => ({
|
|
846
|
-
headers: Q.value?.colNames ?? [],
|
|
847
|
-
rows: Q.value?.body ?? []
|
|
848
|
-
}));
|
|
849
|
-
return Se({
|
|
850
|
-
getData: vn,
|
|
851
|
-
getImage: Zn,
|
|
852
|
-
generatePdf: on,
|
|
853
|
-
generateCsv: Gn,
|
|
854
|
-
generateImage: sn,
|
|
855
|
-
generateSvg: ar,
|
|
856
|
-
hideSeries: jn,
|
|
857
|
-
showSeries: An,
|
|
858
|
-
toggleTable: qn,
|
|
859
|
-
toggleTooltip: Jn,
|
|
860
|
-
toggleAnnotator: Xn,
|
|
861
|
-
toggleFullscreen: Kn,
|
|
862
|
-
copyAlt: sr
|
|
863
|
-
}), (e, t) => (v(), p("div", {
|
|
864
|
-
class: Re(`vue-data-ui-component vue-ui-waffle ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
865
|
-
ref_key: "waffleChart",
|
|
866
|
-
ref: O,
|
|
867
|
-
id: `vue-ui-waffle_${T.value}`,
|
|
868
|
-
style: ze(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
|
|
869
|
-
onMouseenter: t[2] ||= () => S(Qt)(!0),
|
|
870
|
-
onMouseleave: t[3] ||= () => S(Qt)(!1)
|
|
871
|
-
}, [
|
|
872
|
-
m("div", {
|
|
873
|
-
id: `chart-instructions-${T.value}`,
|
|
874
|
-
class: "sr-only"
|
|
875
|
-
}, [m("p", null, We(j.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
876
|
-
fr.value?.rows?.length ? (v(), d(Ee, {
|
|
877
|
-
key: 0,
|
|
878
|
-
uid: T.value,
|
|
879
|
-
head: fr.value.headers,
|
|
880
|
-
body: fr.value.rows,
|
|
881
|
-
notice: j.value.a11y.translations.tableAvailable,
|
|
882
|
-
caption: j.value.a11y.translations.tableCaption
|
|
883
|
-
}, null, 8, [
|
|
884
|
-
"uid",
|
|
885
|
-
"head",
|
|
886
|
-
"body",
|
|
887
|
-
"notice",
|
|
888
|
-
"caption"
|
|
889
|
-
])) : f("", !0),
|
|
890
|
-
j.value.userOptions.buttons.annotator ? (v(), d(S(Ct), {
|
|
891
|
-
key: 1,
|
|
892
|
-
svgRef: S(N),
|
|
893
|
-
backgroundColor: j.value.style.chart.backgroundColor,
|
|
894
|
-
color: j.value.style.chart.color,
|
|
895
|
-
active: Yn.value,
|
|
896
|
-
isCursorPointer: M.value,
|
|
897
|
-
onClose: Xn
|
|
898
|
-
}, {
|
|
899
|
-
"annotator-action-close": C(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
900
|
-
"annotator-action-color": C(({ color: t }) => [x(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
|
|
901
|
-
"annotator-action-draw": C(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
|
|
902
|
-
"annotator-action-undo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
|
|
903
|
-
"annotator-action-redo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
|
|
904
|
-
"annotator-action-delete": C(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
|
|
905
|
-
_: 3
|
|
906
|
-
}, 8, [
|
|
907
|
-
"svgRef",
|
|
908
|
-
"backgroundColor",
|
|
909
|
-
"color",
|
|
910
|
-
"active",
|
|
911
|
-
"isCursorPointer"
|
|
912
|
-
])) : f("", !0),
|
|
913
|
-
cn.value ? (v(), p("div", {
|
|
914
|
-
key: 2,
|
|
915
|
-
ref_key: "noTitle",
|
|
916
|
-
ref: It,
|
|
917
|
-
class: "vue-data-ui-no-title-space",
|
|
918
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
919
|
-
}, null, 512)) : f("", !0),
|
|
920
|
-
j.value.style.chart.title.text ? (v(), p("div", {
|
|
921
|
-
key: 3,
|
|
922
|
-
ref_key: "chartTitle",
|
|
923
|
-
ref: Nt,
|
|
924
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
925
|
-
}, [(v(), d(be, {
|
|
926
|
-
key: `title_${Lt.value}`,
|
|
927
|
-
config: {
|
|
928
|
-
title: {
|
|
929
|
-
cy: "waffle-title",
|
|
930
|
-
...j.value.style.chart.title
|
|
931
|
-
},
|
|
932
|
-
subtitle: {
|
|
933
|
-
cy: "waffle-subtitle",
|
|
934
|
-
...j.value.style.chart.title.subtitle
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
938
|
-
m("div", { id: `legend-top-${T.value}` }, null, 8, Ze),
|
|
939
|
-
j.value.userOptions.show && At.value && (S($t) || S(Zt)) ? (v(), d(S(St), {
|
|
940
|
-
ref_key: "userOptionsRef",
|
|
941
|
-
ref: Ht,
|
|
942
|
-
key: `user_options_${Mt.value}`,
|
|
943
|
-
backgroundColor: j.value.style.chart.backgroundColor,
|
|
944
|
-
color: j.value.style.chart.color,
|
|
945
|
-
isPrinting: S(rn),
|
|
946
|
-
isImaging: S(an),
|
|
947
|
-
uid: T.value,
|
|
948
|
-
hasTooltip: j.value.userOptions.buttons.tooltip && j.value.style.chart.tooltip.show,
|
|
949
|
-
hasPdf: j.value.userOptions.buttons.pdf,
|
|
950
|
-
hasImg: j.value.userOptions.buttons.img,
|
|
951
|
-
hasSvg: j.value.userOptions.buttons.svg,
|
|
952
|
-
hasXls: j.value.userOptions.buttons.csv,
|
|
953
|
-
hasTable: j.value.userOptions.buttons.table,
|
|
954
|
-
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
955
|
-
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
956
|
-
isFullscreen: $.value,
|
|
957
|
-
isTooltip: I.value.showTooltip,
|
|
958
|
-
titles: { ...j.value.userOptions.buttonTitles },
|
|
959
|
-
chartElement: O.value,
|
|
960
|
-
position: j.value.userOptions.position,
|
|
961
|
-
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
962
|
-
isAnnotation: Yn.value,
|
|
963
|
-
callbacks: j.value.userOptions.callbacks,
|
|
964
|
-
printScale: j.value.userOptions.print.scale,
|
|
965
|
-
tableDialog: j.value.table.useDialog,
|
|
966
|
-
isCursorPointer: M.value,
|
|
967
|
-
onToggleFullscreen: Kn,
|
|
968
|
-
onGeneratePdf: S(on),
|
|
969
|
-
onGenerateCsv: Gn,
|
|
970
|
-
onGenerateImage: or,
|
|
971
|
-
onGenerateSvg: ar,
|
|
972
|
-
onToggleTable: qn,
|
|
973
|
-
onToggleTooltip: Jn,
|
|
974
|
-
onToggleAnnotator: Xn,
|
|
975
|
-
onCopyAlt: sr,
|
|
976
|
-
style: ze({ visibility: S($t) ? S(Zt) ? "visible" : "hidden" : "visible" })
|
|
977
|
-
}, Ne({ _: 2 }, [
|
|
978
|
-
e.$slots.menuIcon ? {
|
|
979
|
-
name: "menuIcon",
|
|
980
|
-
fn: C(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(g({
|
|
981
|
-
isOpen: t,
|
|
982
|
-
color: n
|
|
983
|
-
})), void 0, !0)]),
|
|
984
|
-
key: "0"
|
|
985
|
-
} : void 0,
|
|
986
|
-
e.$slots.optionTooltip ? {
|
|
987
|
-
name: "optionTooltip",
|
|
988
|
-
fn: C(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
989
|
-
key: "1"
|
|
990
|
-
} : void 0,
|
|
991
|
-
e.$slots.optionPdf ? {
|
|
992
|
-
name: "optionPdf",
|
|
993
|
-
fn: C(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
994
|
-
key: "2"
|
|
995
|
-
} : void 0,
|
|
996
|
-
e.$slots.optionCsv ? {
|
|
997
|
-
name: "optionCsv",
|
|
998
|
-
fn: C(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
999
|
-
key: "3"
|
|
1000
|
-
} : void 0,
|
|
1001
|
-
e.$slots.optionImg ? {
|
|
1002
|
-
name: "optionImg",
|
|
1003
|
-
fn: C(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1004
|
-
key: "4"
|
|
1005
|
-
} : void 0,
|
|
1006
|
-
e.$slots.optionSvg ? {
|
|
1007
|
-
name: "optionSvg",
|
|
1008
|
-
fn: C(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1009
|
-
key: "5"
|
|
1010
|
-
} : void 0,
|
|
1011
|
-
e.$slots.optionTable ? {
|
|
1012
|
-
name: "optionTable",
|
|
1013
|
-
fn: C(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1014
|
-
key: "6"
|
|
1015
|
-
} : void 0,
|
|
1016
|
-
e.$slots.optionFullscreen ? {
|
|
1017
|
-
name: "optionFullscreen",
|
|
1018
|
-
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(g({
|
|
1019
|
-
toggleFullscreen: t,
|
|
1020
|
-
isFullscreen: n
|
|
1021
|
-
})), void 0, !0)]),
|
|
1022
|
-
key: "7"
|
|
1023
|
-
} : void 0,
|
|
1024
|
-
e.$slots.optionAnnotator ? {
|
|
1025
|
-
name: "optionAnnotator",
|
|
1026
|
-
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(g({
|
|
1027
|
-
toggleAnnotator: t,
|
|
1028
|
-
isAnnotator: n
|
|
1029
|
-
})), void 0, !0)]),
|
|
1030
|
-
key: "8"
|
|
1031
|
-
} : void 0,
|
|
1032
|
-
e.$slots.optionAltCopy ? {
|
|
1033
|
-
name: "optionAltCopy",
|
|
1034
|
-
fn: C(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
|
|
1035
|
-
key: "9"
|
|
1036
|
-
} : void 0,
|
|
1037
|
-
e.$slots["custom-menu-before"] ? {
|
|
1038
|
-
name: "custom-menu-before",
|
|
1039
|
-
fn: C(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1040
|
-
key: "10"
|
|
1041
|
-
} : void 0,
|
|
1042
|
-
e.$slots["custom-menu-after"] ? {
|
|
1043
|
-
name: "custom-menu-after",
|
|
1044
|
-
fn: C(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1045
|
-
key: "11"
|
|
1046
|
-
} : void 0
|
|
1047
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : f("", !0),
|
|
1048
|
-
m("div", Qe, [(v(), p("svg", {
|
|
1049
|
-
ref_key: "svgRef",
|
|
1050
|
-
ref: N,
|
|
1051
|
-
xmlns: S(le),
|
|
1052
|
-
"aria-describedby": `chart-instructions-${T.value}`,
|
|
1053
|
-
class: Re({
|
|
1054
|
-
"vue-data-ui-fullscreen--on": $.value,
|
|
1055
|
-
"vue-data-ui-fulscreen--off": !$.value
|
|
1056
|
-
}),
|
|
1057
|
-
tabindex: "0",
|
|
1058
|
-
viewBox: `0 0 ${L.value.width <= 0 ? 10 : L.value.width} ${L.value.height <= 0 ? 10 : L.value.height}`,
|
|
1059
|
-
style: ze(`max-width:100%;overflow:visible;background:transparent;color:${j.value.style.chart.color}`),
|
|
1060
|
-
onFocus: cr,
|
|
1061
|
-
onBlur: lr,
|
|
1062
|
-
onKeydown: ur
|
|
1063
|
-
}, [
|
|
1064
|
-
Fe(S(wt)),
|
|
1065
|
-
m("defs", null, [(v(!0), p(l, null, b(W.value, (e, t) => (v(), p("radialGradient", {
|
|
1066
|
-
cx: "50%",
|
|
1067
|
-
cy: "50%",
|
|
1068
|
-
r: "50%",
|
|
1069
|
-
fx: "50%",
|
|
1070
|
-
fy: "50%",
|
|
1071
|
-
id: `gradient_${T.value}_${t}`
|
|
1072
|
-
}, [m("stop", {
|
|
1073
|
-
offset: "0%",
|
|
1074
|
-
"stop-color": S(n)(S(a)(e.color, .05), 100 - j.value.style.chart.layout.rect.gradientIntensity)
|
|
1075
|
-
}, null, 8, tt), m("stop", {
|
|
1076
|
-
offset: "100%",
|
|
1077
|
-
"stop-color": e.color
|
|
1078
|
-
}, null, 8, nt)], 8, et))), 256))]),
|
|
1079
|
-
m("defs", null, [m("filter", {
|
|
1080
|
-
id: `blur_${T.value}`,
|
|
1081
|
-
x: "-50%",
|
|
1082
|
-
y: "-50%",
|
|
1083
|
-
width: "200%",
|
|
1084
|
-
height: "200%"
|
|
1085
|
-
}, [...t[4] ||= [m("feGaussianBlur", {
|
|
1086
|
-
in: "SourceGraphic",
|
|
1087
|
-
stdDeviation: 2
|
|
1088
|
-
}, null, -1), m("feColorMatrix", {
|
|
1089
|
-
type: "saturate",
|
|
1090
|
-
values: "0"
|
|
1091
|
-
}, null, -1)]], 8, rt)]),
|
|
1092
|
-
j.value.useCustomCells && W.value.length && e.$slots.cell ? (v(!0), p(l, { key: 0 }, b(G.value, (t, n) => (v(), p("foreignObject", {
|
|
1093
|
-
x: t.x,
|
|
1094
|
-
y: t.y,
|
|
1095
|
-
height: B.value <= 0 ? 1e-4 : B.value,
|
|
1096
|
-
width: z.value <= 0 ? 1e-4 : z.value,
|
|
1097
|
-
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
1098
|
-
}, [x(e.$slots, "cell", Ie({ ref_for: !0 }, {
|
|
1099
|
-
cell: {
|
|
1100
|
-
...t,
|
|
1101
|
-
color: W.value[n].color,
|
|
1102
|
-
height: Math.max(0, B.value),
|
|
1103
|
-
width: Math.max(0, z.value),
|
|
1104
|
-
...W.value[n]
|
|
1105
|
-
},
|
|
1106
|
-
isSelected: [null, void 0].includes(D.value) ? !0 : W.value[n].serieIndex === D.value
|
|
1107
|
-
}), void 0, !0)], 8, it))), 256)) : f("", !0),
|
|
1108
|
-
!W.value.length && !j.value.useCustomCells ? (v(), p("rect", {
|
|
1109
|
-
key: 1,
|
|
1110
|
-
x: 12,
|
|
1111
|
-
y: 12,
|
|
1112
|
-
height: R.value.height - 24,
|
|
1113
|
-
width: R.value.width - 24,
|
|
1114
|
-
rx: 3,
|
|
1115
|
-
fill: "none",
|
|
1116
|
-
stroke: "black"
|
|
1117
|
-
}, null, 8, at)) : W.value.length && !j.value.useCustomCells ? (v(), p(l, { key: 2 }, [
|
|
1118
|
-
e.$slots.pattern ? (v(), p("g", ot, [(v(!0), p(l, null, b(hn.value, (t) => (v(), p("defs", null, [x(e.$slots, "pattern", Ie({ ref_for: !0 }, {
|
|
1119
|
-
seriesIndex: t.absoluteIndex,
|
|
1120
|
-
patternId: `pattern_${T.value}_${t.absoluteIndex}`
|
|
1121
|
-
}), void 0, !0)]))), 256))])) : f("", !0),
|
|
1122
|
-
(v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
|
|
1123
|
-
rx: j.value.style.chart.layout.rect.rounded ? j.value.style.chart.layout.rect.rounding : 0,
|
|
1124
|
-
x: e.x + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1125
|
-
y: e.y + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1126
|
-
height: B.value <= 0 ? 1e-4 : B.value,
|
|
1127
|
-
width: z.value <= 0 ? 1e-4 : z.value,
|
|
1128
|
-
fill: "white",
|
|
1129
|
-
stroke: j.value.style.chart.layout.rect.stroke,
|
|
1130
|
-
"stroke-width": j.value.style.chart.layout.rect.strokeWidth,
|
|
1131
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1132
|
-
}, null, 8, st))), 256)),
|
|
1133
|
-
(v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
|
|
1134
|
-
rx: j.value.style.chart.layout.rect.rounded ? j.value.style.chart.layout.rect.rounding : 0,
|
|
1135
|
-
x: e.x + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1136
|
-
y: e.y + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1137
|
-
height: B.value <= 0 ? 1e-4 : B.value,
|
|
1138
|
-
width: z.value <= 0 ? 1e-4 : z.value,
|
|
1139
|
-
fill: j.value.style.chart.layout.rect.useGradient && j.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${T.value}_${t})` : W.value[t].color,
|
|
1140
|
-
stroke: j.value.style.chart.layout.rect.stroke,
|
|
1141
|
-
"stroke-width": j.value.style.chart.layout.rect.strokeWidth,
|
|
1142
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1143
|
-
}, null, 8, ct))), 256)),
|
|
1144
|
-
e.$slots.pattern ? (v(), p("g", lt, [(v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
|
|
1145
|
-
rx: j.value.style.chart.layout.rect.rounded ? j.value.style.chart.layout.rect.rounding : 0,
|
|
1146
|
-
x: e.x + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1147
|
-
y: e.y + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1148
|
-
height: B.value <= 0 ? 1e-4 : B.value,
|
|
1149
|
-
width: z.value <= 0 ? 1e-4 : z.value,
|
|
1150
|
-
fill: `url(#pattern_${T.value}_${W.value[t].absoluteIndex})`,
|
|
1151
|
-
stroke: "none",
|
|
1152
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1153
|
-
}, null, 8, ut))), 256))])) : f("", !0)
|
|
1154
|
-
], 64)) : f("", !0),
|
|
1155
|
-
e.$slots.cellSvg ? (v(!0), p(l, { key: 3 }, b(G.value, (t, n) => (v(), p("g", null, [x(e.$slots, "cellSvg", Ie({ ref_for: !0 }, {
|
|
1156
|
-
cell: {
|
|
1157
|
-
...t,
|
|
1158
|
-
color: W.value[n].color,
|
|
1159
|
-
height: Math.max(0, B.value),
|
|
1160
|
-
width: Math.max(0, z.value),
|
|
1161
|
-
...W.value[n]
|
|
1162
|
-
},
|
|
1163
|
-
isSelected: [null, void 0].includes(D.value) ? !0 : W.value[n].serieIndex === D.value
|
|
1164
|
-
}), void 0, !0)]))), 256)) : f("", !0),
|
|
1165
|
-
(v(!0), p(l, null, b(G.value, (e, t) => (v(), p(l, null, [Un(t, e) ? (v(), p("text", {
|
|
1166
|
-
key: `datalabel_${t}`,
|
|
1167
|
-
textContent: We(Wn(t, e)),
|
|
1168
|
-
x: e.x + j.value.style.chart.layout.labels.captions.offsetX + j.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1169
|
-
y: e.y + j.value.style.chart.layout.labels.captions.offsetY + j.value.style.chart.layout.grid.spaceBetween / 2 + dn.value / 2 + j.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1170
|
-
"font-size": j.value.style.chart.layout.labels.captions.fontSize,
|
|
1171
|
-
fill: S(ce)(W.value[t].color),
|
|
1172
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1173
|
-
}, null, 8, dt)) : f("", !0)], 64))), 256)),
|
|
1174
|
-
(v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
|
|
1175
|
-
x: e.x + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1176
|
-
y: e.y + j.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1177
|
-
height: dn.value,
|
|
1178
|
-
width: un.value,
|
|
1179
|
-
fill: "transparent",
|
|
1180
|
-
stroke: "none",
|
|
1181
|
-
onMouseover: (e) => Bn(t),
|
|
1182
|
-
onMouseleave: (e) => zn(t),
|
|
1183
|
-
onClick: (e) => Rn(t)
|
|
1184
|
-
}, null, 40, ft))), 256)),
|
|
1185
|
-
x(e.$slots, "svg", { svg: {
|
|
1186
|
-
...L.value,
|
|
1187
|
-
isPrintingImg: S(rn) || S(an) || Ut.value,
|
|
1188
|
-
isPrintingSvg: Wt.value
|
|
1189
|
-
} }, void 0, !0)
|
|
1190
|
-
], 46, $e)), e.$slots.hint ? (v(), p("div", pt, [x(e.$slots, "hint", _(g({
|
|
1191
|
-
hint: j.value.a11y.translations.keyboardNavigation,
|
|
1192
|
-
isVisible: Kt.value
|
|
1193
|
-
})), void 0, !0)])) : f("", !0)]),
|
|
1194
|
-
e.$slots.watermark ? (v(), p("div", mt, [x(e.$slots, "watermark", _(g({ isPrinting: S(rn) || S(an) || Ut.value || Wt.value })), void 0, !0)])) : f("", !0),
|
|
1195
|
-
m("div", { id: `legend-bottom-${T.value}` }, null, 8, ht),
|
|
1196
|
-
Bt.value && (j.value.style.chart.legend.show || e.$slots.legend) ? (v(), d(Me, {
|
|
1197
|
-
key: 6,
|
|
1198
|
-
to: j.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1199
|
-
}, [m("div", {
|
|
1200
|
-
ref_key: "chartLegend",
|
|
1201
|
-
ref: Pt
|
|
1202
|
-
}, [x(e.$slots, "legend", { legend: J.value }, () => [j.value.style.chart.legend.show ? (v(), d(Ae, {
|
|
1203
|
-
key: `legend_${zt.value}`,
|
|
1204
|
-
legendSet: J.value,
|
|
1205
|
-
config: Nn.value,
|
|
1206
|
-
isCursorPointer: M.value,
|
|
1207
|
-
onClickMarker: t[0] ||= ({ legend: e }) => q(e.uid)
|
|
1208
|
-
}, Ne({
|
|
1209
|
-
item: C(({ legend: e }) => [m("div", {
|
|
1210
|
-
onClick: (t) => e.segregate(),
|
|
1211
|
-
style: ze(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
|
|
1212
|
-
}, We(e.display), 13, gt)]),
|
|
1213
|
-
legendToggle: C(() => [J.value.length > 2 && j.value.style.chart.legend.selectAllToggle.show && !S(Jt) ? (v(), d(Te, {
|
|
1214
|
-
key: 0,
|
|
1215
|
-
backgroundColor: j.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1216
|
-
color: j.value.style.chart.legend.selectAllToggle.color,
|
|
1217
|
-
fontSize: j.value.style.chart.legend.fontSize,
|
|
1218
|
-
checked: K.value.length > 0,
|
|
1219
|
-
isCursorPointer: M.value,
|
|
1220
|
-
onToggle: On
|
|
1221
|
-
}, null, 8, [
|
|
1222
|
-
"backgroundColor",
|
|
1223
|
-
"color",
|
|
1224
|
-
"fontSize",
|
|
1225
|
-
"checked",
|
|
1226
|
-
"isCursorPointer"
|
|
1227
|
-
])) : f("", !0)]),
|
|
1228
|
-
_: 2
|
|
1229
|
-
}, [e.$slots.pattern ? {
|
|
1230
|
-
name: "legend-pattern",
|
|
1231
|
-
fn: C(({ legend: e, index: t }) => [Fe(xe, {
|
|
1232
|
-
shape: e.shape,
|
|
1233
|
-
radius: 30,
|
|
1234
|
-
stroke: "none",
|
|
1235
|
-
plot: {
|
|
1236
|
-
x: 30,
|
|
1237
|
-
y: 30
|
|
1238
|
-
},
|
|
1239
|
-
fill: `url(#pattern_${T.value}_${t})`
|
|
1240
|
-
}, null, 8, ["shape", "fill"])]),
|
|
1241
|
-
key: "0"
|
|
1242
|
-
} : void 0]), 1032, [
|
|
1243
|
-
"legendSet",
|
|
1244
|
-
"config",
|
|
1245
|
-
"isCursorPointer"
|
|
1246
|
-
])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
1247
|
-
e.$slots.source ? (v(), p("div", {
|
|
1248
|
-
key: 7,
|
|
1249
|
-
ref_key: "source",
|
|
1250
|
-
ref: Ft,
|
|
1251
|
-
dir: "auto"
|
|
1252
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1253
|
-
Fe(S(vt), {
|
|
1254
|
-
teleportTo: j.value.style.chart.tooltip.teleportTo,
|
|
1255
|
-
show: I.value.showTooltip && E.value && K.value.length < w.dataset.length,
|
|
1256
|
-
backgroundColor: j.value.style.chart.tooltip.backgroundColor,
|
|
1257
|
-
color: j.value.style.chart.tooltip.color,
|
|
1258
|
-
borderRadius: j.value.style.chart.tooltip.borderRadius,
|
|
1259
|
-
borderColor: j.value.style.chart.tooltip.borderColor,
|
|
1260
|
-
borderWidth: j.value.style.chart.tooltip.borderWidth,
|
|
1261
|
-
backgroundOpacity: j.value.style.chart.tooltip.backgroundOpacity,
|
|
1262
|
-
position: j.value.style.chart.tooltip.position,
|
|
1263
|
-
offsetX: j.value.style.chart.tooltip.offsetX,
|
|
1264
|
-
offsetY: j.value.style.chart.tooltip.offsetY,
|
|
1265
|
-
parent: O.value,
|
|
1266
|
-
content: jt.value,
|
|
1267
|
-
isCustom: j.value.style.chart.tooltip.customFormat && typeof j.value.style.chart.tooltip.customFormat == "function",
|
|
1268
|
-
fontSize: j.value.style.chart.tooltip.fontSize,
|
|
1269
|
-
isFullscreen: $.value,
|
|
1270
|
-
smooth: j.value.style.chart.tooltip.smooth,
|
|
1271
|
-
backdropFilter: j.value.style.chart.tooltip.backdropFilter,
|
|
1272
|
-
smoothForce: j.value.style.chart.tooltip.smoothForce,
|
|
1273
|
-
smoothSnapThreshold: j.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1274
|
-
isA11yMode: A.value === "keyboard",
|
|
1275
|
-
a11yPosition: Gt.value
|
|
1276
|
-
}, {
|
|
1277
|
-
"tooltip-before": C(() => [x(e.$slots, "tooltip-before", _(g({ ...Pn.value })), void 0, !0)]),
|
|
1278
|
-
tooltip: C(() => [x(e.$slots, "tooltip", _(g({ ...Pn.value })), void 0, !0)]),
|
|
1279
|
-
"tooltip-after": C(() => [x(e.$slots, "tooltip-after", _(g({ ...Pn.value })), void 0, !0)]),
|
|
1280
|
-
_: 3
|
|
1281
|
-
}, 8, [
|
|
1282
|
-
"teleportTo",
|
|
1283
|
-
"show",
|
|
1284
|
-
"backgroundColor",
|
|
1285
|
-
"color",
|
|
1286
|
-
"borderRadius",
|
|
1287
|
-
"borderColor",
|
|
1288
|
-
"borderWidth",
|
|
1289
|
-
"backgroundOpacity",
|
|
1290
|
-
"position",
|
|
1291
|
-
"offsetX",
|
|
1292
|
-
"offsetY",
|
|
1293
|
-
"parent",
|
|
1294
|
-
"content",
|
|
1295
|
-
"isCustom",
|
|
1296
|
-
"fontSize",
|
|
1297
|
-
"isFullscreen",
|
|
1298
|
-
"smooth",
|
|
1299
|
-
"backdropFilter",
|
|
1300
|
-
"smoothForce",
|
|
1301
|
-
"smoothSnapThreshold",
|
|
1302
|
-
"isA11yMode",
|
|
1303
|
-
"a11yPosition"
|
|
1304
|
-
]),
|
|
1305
|
-
At.value && j.value.userOptions.buttons.table ? (v(), d(He(Qn.value.component), Ie({ key: 8 }, Qn.value.props, {
|
|
1306
|
-
ref_key: "tableUnit",
|
|
1307
|
-
ref: Vt,
|
|
1308
|
-
onClose: $n
|
|
1309
|
-
}), Ne({
|
|
1310
|
-
content: C(() => [(v(), d(S(bt), {
|
|
1311
|
-
key: `table_${Rt.value}`,
|
|
1312
|
-
colNames: Q.value.colNames,
|
|
1313
|
-
head: Q.value.head,
|
|
1314
|
-
body: Q.value.body,
|
|
1315
|
-
config: Q.value.config,
|
|
1316
|
-
title: j.value.table.useDialog ? "" : Qn.value.title,
|
|
1317
|
-
withCloseButton: !j.value.table.useDialog,
|
|
1318
|
-
isCursorPointer: M.value,
|
|
1319
|
-
onClose: $n
|
|
1320
|
-
}, {
|
|
1321
|
-
th: C(({ th: e }) => [m("div", {
|
|
1322
|
-
innerHTML: e,
|
|
1323
|
-
style: {
|
|
1324
|
-
display: "flex",
|
|
1325
|
-
"align-items": "center"
|
|
1326
|
-
}
|
|
1327
|
-
}, null, 8, _t)]),
|
|
1328
|
-
td: C(({ td: e }) => [Pe(We(e.name || e), 1)]),
|
|
1329
|
-
_: 1
|
|
1330
|
-
}, 8, [
|
|
1331
|
-
"colNames",
|
|
1332
|
-
"head",
|
|
1333
|
-
"body",
|
|
1334
|
-
"config",
|
|
1335
|
-
"title",
|
|
1336
|
-
"withCloseButton",
|
|
1337
|
-
"isCursorPointer"
|
|
1338
|
-
]))]),
|
|
1339
|
-
_: 2
|
|
1340
|
-
}, [j.value.table.useDialog ? {
|
|
1341
|
-
name: "title",
|
|
1342
|
-
fn: C(() => [Pe(We(Qn.value.title), 1)]),
|
|
1343
|
-
key: "0"
|
|
1344
|
-
} : void 0, j.value.table.useDialog ? {
|
|
1345
|
-
name: "actions",
|
|
1346
|
-
fn: C(() => [m("button", {
|
|
1347
|
-
tabindex: "0",
|
|
1348
|
-
class: "vue-ui-user-options-button",
|
|
1349
|
-
onClick: t[1] ||= (e) => Gn(j.value.userOptions.callbacks.csv),
|
|
1350
|
-
style: ze({ cursor: M.value ? "pointer" : "default" })
|
|
1351
|
-
}, [Fe(S(yt), {
|
|
1352
|
-
name: "fileCsv",
|
|
1353
|
-
stroke: Qn.value.props.color
|
|
1354
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1355
|
-
key: "1"
|
|
1356
|
-
} : void 0]), 1040)) : f("", !0),
|
|
1357
|
-
x(e.$slots, "skeleton", {}, () => [S(Jt) ? (v(), d(he, { key: 0 })) : f("", !0)], !0)
|
|
1358
|
-
], 46, Ye));
|
|
1359
|
-
}
|
|
1360
|
-
}, [["__scopeId", "data-v-d885b96a"]]);
|
|
1361
|
-
//#endregion
|
|
1362
|
-
export { Je as n, vt as t };
|