vue-data-ui 3.15.12 → 3.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- 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-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,914 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, ref as s, computed as v, toRefs as Bt, onMounted as Vt, watch as Re, openBlock as u, createElementBlock as p, unref as n, normalizeStyle as z, normalizeClass as q, createBlock as $, withCtx as r, renderSlot as i, normalizeProps as y, guardReactiveProps as b, createCommentVNode as g, createElementVNode as S, createSlots as Ue, createVNode as ce, Fragment as We, renderList as Ge, Teleport as Et, toDisplayString as ve, resolveDynamicComponent as Mt, mergeProps as zt, createTextVNode as He, nextTick as de } from "vue";
|
|
2
|
-
import { j as Xe, t as je, o as Rt, q as Ye, r as Ut, m as Wt, p as J, n as Gt, a7 as qe, s as Ht, ac as Xt, k as Je, l as L, X as jt, T as Ke, a0 as Yt, a1 as qt, U as Jt } from "./lib-GwPnJSrY.js";
|
|
3
|
-
import { b as Kt } from "./labelUtils-CTXUc3V9.js";
|
|
4
|
-
import { t as Qt, u as Zt } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as el } from "./useConfig-CIgyKZ6R.js";
|
|
6
|
-
import { u as tl, B as ll } from "./BaseScanner-BhhkKVoj.js";
|
|
7
|
-
import { u as al } from "./usePrinter-DiK5R6k-.js";
|
|
8
|
-
import { u as ol } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
-
import { u as he } from "./useNestedProp-BBT0mbHh.js";
|
|
10
|
-
import { u as sl } from "./useThemeCheck-D1ZYXUwG.js";
|
|
11
|
-
import { u as nl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
-
import rl from "./img-BYYzY_QU.js";
|
|
14
|
-
import il from "./Title-BfyrP-jp.js";
|
|
15
|
-
import cl from "./Legend-1LMMsPxL.js";
|
|
16
|
-
import vl from "./vue_ui_galaxy-D95AN4FT.js";
|
|
17
|
-
import { B as dl } from "./BaseLegendToggle-Y61xahI4.js";
|
|
18
|
-
import { _ as hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const gl = ["id"], pl = ["id"], fl = ["xmlns", "viewBox"], yl = ["width", "height"], bl = ["id"], ml = ["stdDeviation"], kl = ["d", "stroke", "stroke-width"], Cl = ["d", "stroke", "stroke-width"], wl = ["filter"], Tl = ["d", "stroke", "stroke-width"], $l = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Sl = {
|
|
20
|
-
key: 4,
|
|
21
|
-
class: "vue-data-ui-watermark"
|
|
22
|
-
}, xl = ["id"], Pl = ["onClick"], Ol = ["innerHTML"], Al = {
|
|
23
|
-
__name: "vue-ui-galaxy",
|
|
24
|
-
props: {
|
|
25
|
-
config: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default() {
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
dataset: {
|
|
32
|
-
type: Array,
|
|
33
|
-
default() {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
39
|
-
setup(Qe, { expose: Ze, emit: et }) {
|
|
40
|
-
const tt = O(() => import("./Tooltip-DL3QgjZf.js")), lt = O(() => import("./BaseIcon-CNx8Tzl5.js")), at = O(() => import("./vue-ui-accordion-BGHTqIBt.js")), ot = O(() => import("./DataTable-Bo1pmAqG.js")), st = O(() => import("./PenAndPaper-DWV1FMIi.js")), nt = O(() => import("./UserOptions-CrLqEimB.js")), ut = O(() => import("./PackageVersion-DN9d0ME5.js")), rt = O(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_galaxy: it } = el(), { isThemeValid: ct, warnInvalidTheme: vt } = sl(), k = Qe, C = s(Xe()), w = s(null), K = s(!1), Q = s(""), A = s(null), ge = s(0), pe = s(0), fe = s(0), ye = s(0), be = s(null), me = s(null), ke = s(null), Ce = s(null), D = s(null), R = s(null), we = s(!1), F = s(null), Z = s(null), U = s(!1), W = s(!1), Te = v(() => !!k.dataset && k.dataset.length), e = s(le()), _ = v(() => e.value.userOptions.useCursorPointer), dt = v(() => je({
|
|
41
|
-
defaultConfig: {
|
|
42
|
-
userOptions: { show: !1 },
|
|
43
|
-
table: { show: !1 },
|
|
44
|
-
useCssAnimation: !1,
|
|
45
|
-
style: {
|
|
46
|
-
chart: {
|
|
47
|
-
backgroundColor: "#99999930",
|
|
48
|
-
legend: {
|
|
49
|
-
backgroundColor: "transparent"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
55
|
-
})), { loading: G, FINAL_DATASET: $e } = tl({
|
|
56
|
-
...Bt(k),
|
|
57
|
-
FINAL_CONFIG: e,
|
|
58
|
-
prepareConfig: le,
|
|
59
|
-
callback: () => {
|
|
60
|
-
Promise.resolve().then(async () => {
|
|
61
|
-
await de(), f.value.showTable = e.value.table.show;
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
65
|
-
{ name: "_", values: [21], color: "#DBDBDB" },
|
|
66
|
-
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
67
|
-
{ name: "_", values: [8], color: "#ADADAD" }
|
|
68
|
-
],
|
|
69
|
-
skeletonConfig: je({
|
|
70
|
-
defaultConfig: e.value,
|
|
71
|
-
userConfig: dt.value
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
Vt(() => {
|
|
75
|
-
we.value = !0, xe();
|
|
76
|
-
});
|
|
77
|
-
const Se = v(() => !!e.value.debug);
|
|
78
|
-
function xe() {
|
|
79
|
-
if (Rt(k.dataset) ? Ye({
|
|
80
|
-
componentName: "VueUiGalaxy",
|
|
81
|
-
type: "dataset",
|
|
82
|
-
debug: Se.value
|
|
83
|
-
}) : k.dataset.forEach((t, a) => {
|
|
84
|
-
Ut({
|
|
85
|
-
datasetObject: t,
|
|
86
|
-
requiredAttributes: ["name", "values"]
|
|
87
|
-
}).forEach((l) => {
|
|
88
|
-
Ye({
|
|
89
|
-
componentName: "VueUiGalaxy",
|
|
90
|
-
type: "datasetSerieAttribute",
|
|
91
|
-
property: l,
|
|
92
|
-
index: a,
|
|
93
|
-
debug: Se.value
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
}), e.value.responsive) {
|
|
97
|
-
const t = Qt(() => {
|
|
98
|
-
const { width: a, height: l } = Zt({
|
|
99
|
-
chart: w.value,
|
|
100
|
-
title: e.value.style.chart.title.text ? be.value : null,
|
|
101
|
-
legend: e.value.style.chart.legend.show ? me.value : null,
|
|
102
|
-
noTitle: Ce.value,
|
|
103
|
-
source: ke.value
|
|
104
|
-
});
|
|
105
|
-
requestAnimationFrame(() => {
|
|
106
|
-
H.value = Math.max(0.1, a), X.value = Math.max(0.1, l - 12);
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
D.value && (R.value && D.value.unobserve(R.value), D.value.disconnect()), D.value = new ResizeObserver(t), R.value = w.value.parentNode, D.value.observe(R.value);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
const { userOptionsVisible: ee, setUserOptionsVisibility: Pe, keepUserOptionState: Oe } = nl({ config: e.value }), { svgRef: te } = ul({ config: e.value.style.chart.title });
|
|
113
|
-
function le() {
|
|
114
|
-
const t = he({
|
|
115
|
-
userConfig: k.config,
|
|
116
|
-
defaultConfig: it
|
|
117
|
-
}), a = t.theme;
|
|
118
|
-
if (!a) return t;
|
|
119
|
-
if (!ct.value(t))
|
|
120
|
-
return vt(t), t;
|
|
121
|
-
const l = he({
|
|
122
|
-
userConfig: vl[a] || k.config,
|
|
123
|
-
defaultConfig: t
|
|
124
|
-
}), o = he({
|
|
125
|
-
userConfig: k.config,
|
|
126
|
-
defaultConfig: l
|
|
127
|
-
});
|
|
128
|
-
return {
|
|
129
|
-
...o,
|
|
130
|
-
customPalette: o.customPalette.length ? o.customPalette : Wt[a] || J
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
Re(() => k.config, (t) => {
|
|
134
|
-
e.value = le(), ee.value = !e.value.userOptions.showOnChartHover, xe(), pe.value += 1, fe.value += 1, ye.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
135
|
-
}, { deep: !0 });
|
|
136
|
-
const { isPrinting: ae, isImaging: oe, generatePdf: Ae, generateImage: Ie } = al({
|
|
137
|
-
elementId: `galaxy_${C.value}`,
|
|
138
|
-
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
139
|
-
options: e.value.userOptions.print
|
|
140
|
-
}), ht = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), gt = v(() => Gt(e.value.customPalette)), f = s({
|
|
141
|
-
dataLabels: {
|
|
142
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
143
|
-
},
|
|
144
|
-
showTable: e.value.table.show,
|
|
145
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
146
|
-
}), H = s(250), X = s(180), pt = s(0), ft = s(0), x = v(() => ({
|
|
147
|
-
width: H.value,
|
|
148
|
-
height: X.value,
|
|
149
|
-
viewBox: `${pt.value} ${ft.value} ${H.value} ${X.value}`
|
|
150
|
-
})), se = et, h = s([]);
|
|
151
|
-
function yt() {
|
|
152
|
-
h.value.length ? h.value = [] : V.value.forEach((t) => {
|
|
153
|
-
h.value.push(t.id);
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
function N(t) {
|
|
157
|
-
h.value.includes(t.id) ? h.value = h.value.filter((a) => a !== t.id) : h.value.push(t.id), se("selectLegend", B.value.map((a) => ({
|
|
158
|
-
name: a.name,
|
|
159
|
-
color: a.color,
|
|
160
|
-
value: a.value
|
|
161
|
-
})));
|
|
162
|
-
}
|
|
163
|
-
function Le(t) {
|
|
164
|
-
if (!m.value.length)
|
|
165
|
-
return e.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null;
|
|
166
|
-
const a = m.value.find((l) => l.name === t);
|
|
167
|
-
return a || (e.value.debug && console.warn(`VueUiGalaxy - Series name not found "${t}"`), null);
|
|
168
|
-
}
|
|
169
|
-
function bt(t) {
|
|
170
|
-
const a = Le(t);
|
|
171
|
-
a !== null && h.value.includes(a.id) && N({ id: a.id });
|
|
172
|
-
}
|
|
173
|
-
function mt(t) {
|
|
174
|
-
const a = Le(t);
|
|
175
|
-
a !== null && (h.value.includes(a.id) || N({ id: a.id }));
|
|
176
|
-
}
|
|
177
|
-
const m = v(() => $e.value.map((t, a) => ({
|
|
178
|
-
name: t.name,
|
|
179
|
-
color: Ht(t.color) || gt.value[a] || J[a] || J[a % J.length],
|
|
180
|
-
value: t.values ? qe(t.values).reduce((l, o) => l + o, 0) : 0,
|
|
181
|
-
absoluteValues: qe(t.values),
|
|
182
|
-
id: Xe()
|
|
183
|
-
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
184
|
-
...t,
|
|
185
|
-
absoluteIndex: a
|
|
186
|
-
})));
|
|
187
|
-
function kt() {
|
|
188
|
-
return m.value.map((t) => ({
|
|
189
|
-
name: t.name,
|
|
190
|
-
color: t.color,
|
|
191
|
-
value: t.value
|
|
192
|
-
}));
|
|
193
|
-
}
|
|
194
|
-
const T = v(() => m.value.filter((t) => !h.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), De = s(190), Fe = v(() => m.value.filter((t) => !h.value.includes(t.id))), Ct = v(
|
|
195
|
-
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
196
|
-
), wt = v(() => Xt({
|
|
197
|
-
maxPoints: De.value,
|
|
198
|
-
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
199
|
-
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
200
|
-
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
201
|
-
startX: x.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
|
|
202
|
-
startY: x.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
|
|
203
|
-
boxWidth: x.value.width,
|
|
204
|
-
boxHeight: x.value.height,
|
|
205
|
-
padding: Ct.value
|
|
206
|
-
})), B = v(() => {
|
|
207
|
-
const t = [];
|
|
208
|
-
for (let a = 0; a < Fe.value.length; a += 1) {
|
|
209
|
-
const l = Fe.value[a], o = l.value / T.value * De.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
210
|
-
t.push({
|
|
211
|
-
points: o,
|
|
212
|
-
...l,
|
|
213
|
-
seriesIndex: a,
|
|
214
|
-
proportion: l.value / T.value,
|
|
215
|
-
path: wt.value(o)
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
return t.filter((a) => !h.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
219
|
-
});
|
|
220
|
-
function ne(t) {
|
|
221
|
-
const a = Math.min(H.value, X.value), l = A.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, o = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, c = e.value.style.chart.layout.arcs.strokeWidth * l, d = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
222
|
-
return {
|
|
223
|
-
border: o / 180 * a,
|
|
224
|
-
path: c / 180 * a,
|
|
225
|
-
blur: d / 180 * a
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
const I = s(!1);
|
|
229
|
-
function _e(t) {
|
|
230
|
-
I.value = t, ge.value += 1;
|
|
231
|
-
}
|
|
232
|
-
const ue = s(null);
|
|
233
|
-
function Tt(t) {
|
|
234
|
-
K.value = !1, A.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
235
|
-
}
|
|
236
|
-
function $t(t) {
|
|
237
|
-
se("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
238
|
-
}
|
|
239
|
-
function Ne({
|
|
240
|
-
val: t,
|
|
241
|
-
percentage: a,
|
|
242
|
-
showVal: l,
|
|
243
|
-
showPercentage: o
|
|
244
|
-
}) {
|
|
245
|
-
const c = e.value.style.chart.layout.labels.dataLabels;
|
|
246
|
-
return Kt({
|
|
247
|
-
config: c,
|
|
248
|
-
val: t,
|
|
249
|
-
percentage: a,
|
|
250
|
-
showVal: l,
|
|
251
|
-
showPercentage: o
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function St({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: o = !1 }) {
|
|
255
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), ue.value = {
|
|
256
|
-
datapoint: t,
|
|
257
|
-
seriesIndex: l,
|
|
258
|
-
series: m.value,
|
|
259
|
-
config: e.value
|
|
260
|
-
}, K.value = o, A.value = t.id;
|
|
261
|
-
let c = "";
|
|
262
|
-
const d = e.value.style.chart.tooltip.customFormat;
|
|
263
|
-
Ke(d) && Jt(() => d({
|
|
264
|
-
seriesIndex: l,
|
|
265
|
-
datapoint: t,
|
|
266
|
-
series: m.value,
|
|
267
|
-
config: e.value
|
|
268
|
-
})) ? Q.value = d({
|
|
269
|
-
seriesIndex: l,
|
|
270
|
-
datapoint: t,
|
|
271
|
-
series: m.value,
|
|
272
|
-
config: e.value
|
|
273
|
-
}) : (c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, c += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, c += `<b>${Ne({
|
|
274
|
-
showVal: e.value.style.chart.tooltip.showValue,
|
|
275
|
-
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
276
|
-
val: Je(
|
|
277
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
278
|
-
t.value,
|
|
279
|
-
L({
|
|
280
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
281
|
-
v: t.value,
|
|
282
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
283
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
284
|
-
}),
|
|
285
|
-
{ datapoint: t, seriesIndex: l }
|
|
286
|
-
),
|
|
287
|
-
percentage: L({
|
|
288
|
-
v: t.proportion * 100,
|
|
289
|
-
s: "%",
|
|
290
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
291
|
-
})
|
|
292
|
-
})}</b></div>`, Q.value = `<div>${c}</div>`);
|
|
293
|
-
}
|
|
294
|
-
const V = v(() => m.value.map((t, a) => {
|
|
295
|
-
const l = Je(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, L({
|
|
296
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
297
|
-
v: t.value,
|
|
298
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
299
|
-
r: e.value.style.chart.legend.roundingValue
|
|
300
|
-
}), { datapoint: t, index: a }), o = isNaN(t.value / T.value) || h.value.includes(t.id) ? "-" : L({ v: t.value / T.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), c = Ne({
|
|
301
|
-
showVal: e.value.style.chart.legend.showValue,
|
|
302
|
-
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
303
|
-
val: l,
|
|
304
|
-
percentage: o
|
|
305
|
-
});
|
|
306
|
-
return {
|
|
307
|
-
...t,
|
|
308
|
-
proportion: (t.value || 0) / $e.value.map((d) => (d.values || []).reduce((M, Nt) => M + Nt, 0)).reduce((d, M) => d + M, 0),
|
|
309
|
-
opacity: h.value.includes(t.id) ? 0.5 : 1,
|
|
310
|
-
shape: t.shape || "circle",
|
|
311
|
-
segregate: () => N(t),
|
|
312
|
-
isSegregated: h.value.includes(t.id),
|
|
313
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${c}`
|
|
314
|
-
};
|
|
315
|
-
})), xt = v(() => ({
|
|
316
|
-
cy: "galaxy-div-legend",
|
|
317
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
318
|
-
color: e.value.style.chart.legend.color,
|
|
319
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
320
|
-
paddingBottom: 12,
|
|
321
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
322
|
-
})), P = v(() => {
|
|
323
|
-
const t = B.value.map((l) => ({
|
|
324
|
-
name: l.name,
|
|
325
|
-
color: l.color
|
|
326
|
-
})), a = B.value.map((l) => l.value);
|
|
327
|
-
return { head: t, body: a };
|
|
328
|
-
});
|
|
329
|
-
function re(t = null) {
|
|
330
|
-
de(() => {
|
|
331
|
-
const a = P.value.head.map((c, d) => [[
|
|
332
|
-
c.name
|
|
333
|
-
], [P.value.body[d]], [isNaN(P.value.body[d] / T.value) ? "-" : P.value.body[d] / T.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Yt(l);
|
|
334
|
-
t ? t(o) : qt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
const j = v(() => {
|
|
338
|
-
const t = [
|
|
339
|
-
' <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>',
|
|
340
|
-
L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: T.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
341
|
-
"100%"
|
|
342
|
-
], a = P.value.head.map((c, d) => {
|
|
343
|
-
const M = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: P.value.body[d], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
344
|
-
return [
|
|
345
|
-
{
|
|
346
|
-
color: c.color,
|
|
347
|
-
name: c.name
|
|
348
|
-
},
|
|
349
|
-
M,
|
|
350
|
-
isNaN(P.value.body[d] / T.value) ? "-" : L({
|
|
351
|
-
v: P.value.body[d] / T.value * 100,
|
|
352
|
-
s: "%",
|
|
353
|
-
r: e.value.table.td.roundingPercentage
|
|
354
|
-
})
|
|
355
|
-
];
|
|
356
|
-
}), l = {
|
|
357
|
-
th: {
|
|
358
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
359
|
-
color: e.value.table.th.color,
|
|
360
|
-
outline: e.value.table.th.outline
|
|
361
|
-
},
|
|
362
|
-
td: {
|
|
363
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
364
|
-
color: e.value.table.td.color,
|
|
365
|
-
outline: e.value.table.td.outline
|
|
366
|
-
},
|
|
367
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
368
|
-
};
|
|
369
|
-
return {
|
|
370
|
-
colNames: [
|
|
371
|
-
e.value.table.columnNames.series,
|
|
372
|
-
e.value.table.columnNames.value,
|
|
373
|
-
e.value.table.columnNames.percentage
|
|
374
|
-
],
|
|
375
|
-
head: t,
|
|
376
|
-
body: a,
|
|
377
|
-
config: l
|
|
378
|
-
};
|
|
379
|
-
});
|
|
380
|
-
function Be() {
|
|
381
|
-
f.value.showTable = !f.value.showTable;
|
|
382
|
-
}
|
|
383
|
-
function Ve() {
|
|
384
|
-
f.value.showTooltip = !f.value.showTooltip;
|
|
385
|
-
}
|
|
386
|
-
const Y = s(!1);
|
|
387
|
-
function ie() {
|
|
388
|
-
Y.value = !Y.value;
|
|
389
|
-
}
|
|
390
|
-
async function Pt({ scale: t = 2 } = {}) {
|
|
391
|
-
if (!w.value) return;
|
|
392
|
-
const { width: a, height: l } = w.value.getBoundingClientRect(), o = a / l, { imageUri: c, base64: d } = await rl({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
393
|
-
return {
|
|
394
|
-
imageUri: c,
|
|
395
|
-
base64: d,
|
|
396
|
-
title: e.value.style.chart.title.text,
|
|
397
|
-
width: a,
|
|
398
|
-
height: l,
|
|
399
|
-
aspectRatio: o
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
const E = v(() => {
|
|
403
|
-
const t = e.value.table.useDialog && !e.value.table.show, a = f.value.showTable;
|
|
404
|
-
return {
|
|
405
|
-
component: t ? rt : at,
|
|
406
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
407
|
-
props: t ? {
|
|
408
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
409
|
-
color: e.value.table.th.color,
|
|
410
|
-
headerColor: e.value.table.th.color,
|
|
411
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
412
|
-
isFullscreen: I.value,
|
|
413
|
-
fullscreenParent: w.value,
|
|
414
|
-
forcedWidth: Math.min(500, window.innerWidth * 0.8),
|
|
415
|
-
isCursorPointer: _.value
|
|
416
|
-
} : {
|
|
417
|
-
hideDetails: !0,
|
|
418
|
-
config: {
|
|
419
|
-
open: a,
|
|
420
|
-
maxHeight: 1e4,
|
|
421
|
-
body: {
|
|
422
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
423
|
-
color: e.value.style.chart.color
|
|
424
|
-
},
|
|
425
|
-
head: {
|
|
426
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
427
|
-
color: e.value.style.chart.color
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
});
|
|
433
|
-
Re(() => f.value.showTable, (t) => {
|
|
434
|
-
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
435
|
-
});
|
|
436
|
-
function Ee() {
|
|
437
|
-
f.value.showTable = !1, Z.value && Z.value.setTableIconState(!1);
|
|
438
|
-
}
|
|
439
|
-
const Ot = v(() => V.value.map((t) => ({
|
|
440
|
-
...t,
|
|
441
|
-
name: t.display
|
|
442
|
-
}))), At = v(() => e.value.style.chart.backgroundColor), It = v(() => e.value.style.chart.legend), Lt = v(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: Ft } = ol({
|
|
443
|
-
svg: te,
|
|
444
|
-
title: Lt,
|
|
445
|
-
legend: It,
|
|
446
|
-
legendItems: Ot,
|
|
447
|
-
backgroundColor: At
|
|
448
|
-
});
|
|
449
|
-
async function Me({ isCb: t }) {
|
|
450
|
-
W.value = !0, await de();
|
|
451
|
-
try {
|
|
452
|
-
if (t) {
|
|
453
|
-
const { blob: a, url: l, text: o, dataUrl: c } = await Ft();
|
|
454
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: c }));
|
|
455
|
-
} else
|
|
456
|
-
await Promise.resolve(Dt());
|
|
457
|
-
} finally {
|
|
458
|
-
W.value = !1;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function _t(t) {
|
|
462
|
-
if (t?.stage === "start") {
|
|
463
|
-
U.value = !0;
|
|
464
|
-
return;
|
|
465
|
-
}
|
|
466
|
-
if (t?.stage === "end") {
|
|
467
|
-
U.value = !1;
|
|
468
|
-
return;
|
|
469
|
-
}
|
|
470
|
-
Ie();
|
|
471
|
-
}
|
|
472
|
-
async function ze() {
|
|
473
|
-
if (se("copyAlt", {
|
|
474
|
-
config: e.value,
|
|
475
|
-
dataset: m.value
|
|
476
|
-
}), !e.value.userOptions.callbacks.altCopy) {
|
|
477
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
478
|
-
return;
|
|
479
|
-
}
|
|
480
|
-
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
481
|
-
config: e.value,
|
|
482
|
-
dataset: m.value
|
|
483
|
-
}));
|
|
484
|
-
}
|
|
485
|
-
return Ze({
|
|
486
|
-
getData: kt,
|
|
487
|
-
getImage: Pt,
|
|
488
|
-
generatePdf: Ae,
|
|
489
|
-
generateCsv: re,
|
|
490
|
-
generateImage: Ie,
|
|
491
|
-
generateSvg: Me,
|
|
492
|
-
hideSeries: mt,
|
|
493
|
-
showSeries: bt,
|
|
494
|
-
toggleTable: Be,
|
|
495
|
-
toggleTooltip: Ve,
|
|
496
|
-
toggleAnnotator: ie,
|
|
497
|
-
toggleFullscreen: _e,
|
|
498
|
-
copyAlt: ze
|
|
499
|
-
}), (t, a) => (u(), p("div", {
|
|
500
|
-
ref_key: "galaxyChart",
|
|
501
|
-
ref: w,
|
|
502
|
-
class: q(`vue-data-ui-component vue-ui-galaxy ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${n(G) ? "loading" : ""}`),
|
|
503
|
-
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
504
|
-
id: `galaxy_${C.value}`,
|
|
505
|
-
onMouseenter: a[2] || (a[2] = () => n(Pe)(!0)),
|
|
506
|
-
onMouseleave: a[3] || (a[3] = () => n(Pe)(!1))
|
|
507
|
-
}, [
|
|
508
|
-
e.value.userOptions.buttons.annotator ? (u(), $(n(st), {
|
|
509
|
-
key: 0,
|
|
510
|
-
svgRef: n(te),
|
|
511
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
512
|
-
color: e.value.style.chart.color,
|
|
513
|
-
active: Y.value,
|
|
514
|
-
isCursorPointer: _.value,
|
|
515
|
-
onClose: ie
|
|
516
|
-
}, {
|
|
517
|
-
"annotator-action-close": r(() => [
|
|
518
|
-
i(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
519
|
-
]),
|
|
520
|
-
"annotator-action-color": r(({ color: l }) => [
|
|
521
|
-
i(t.$slots, "annotator-action-color", y(b({ color: l })), void 0, !0)
|
|
522
|
-
]),
|
|
523
|
-
"annotator-action-draw": r(({ mode: l }) => [
|
|
524
|
-
i(t.$slots, "annotator-action-draw", y(b({ mode: l })), void 0, !0)
|
|
525
|
-
]),
|
|
526
|
-
"annotator-action-undo": r(({ disabled: l }) => [
|
|
527
|
-
i(t.$slots, "annotator-action-undo", y(b({ disabled: l })), void 0, !0)
|
|
528
|
-
]),
|
|
529
|
-
"annotator-action-redo": r(({ disabled: l }) => [
|
|
530
|
-
i(t.$slots, "annotator-action-redo", y(b({ disabled: l })), void 0, !0)
|
|
531
|
-
]),
|
|
532
|
-
"annotator-action-delete": r(({ disabled: l }) => [
|
|
533
|
-
i(t.$slots, "annotator-action-delete", y(b({ disabled: l })), void 0, !0)
|
|
534
|
-
]),
|
|
535
|
-
_: 3
|
|
536
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : g("", !0),
|
|
537
|
-
ht.value ? (u(), p("div", {
|
|
538
|
-
key: 1,
|
|
539
|
-
ref_key: "noTitle",
|
|
540
|
-
ref: Ce,
|
|
541
|
-
class: "vue-data-ui-no-title-space",
|
|
542
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
543
|
-
}, null, 512)) : g("", !0),
|
|
544
|
-
e.value.style.chart.title.text ? (u(), p("div", {
|
|
545
|
-
key: 2,
|
|
546
|
-
ref_key: "chartTitle",
|
|
547
|
-
ref: be,
|
|
548
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
549
|
-
}, [
|
|
550
|
-
(u(), $(il, {
|
|
551
|
-
key: `title_${pe.value}`,
|
|
552
|
-
config: {
|
|
553
|
-
title: {
|
|
554
|
-
cy: "galaxy-div-title",
|
|
555
|
-
...e.value.style.chart.title
|
|
556
|
-
},
|
|
557
|
-
subtitle: {
|
|
558
|
-
cy: "galaxy-div-subtitle",
|
|
559
|
-
...e.value.style.chart.title.subtitle
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}, null, 8, ["config"]))
|
|
563
|
-
], 512)) : g("", !0),
|
|
564
|
-
S("div", {
|
|
565
|
-
id: `legend-top-${C.value}`
|
|
566
|
-
}, null, 8, pl),
|
|
567
|
-
e.value.userOptions.show && Te.value && (n(Oe) || n(ee)) ? (u(), $(n(nt), {
|
|
568
|
-
ref_key: "userOptionsRef",
|
|
569
|
-
ref: Z,
|
|
570
|
-
key: `user_option_${ge.value}`,
|
|
571
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
572
|
-
color: e.value.style.chart.color,
|
|
573
|
-
isPrinting: n(ae),
|
|
574
|
-
isImaging: n(oe),
|
|
575
|
-
uid: C.value,
|
|
576
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
577
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
578
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
579
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
580
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
581
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
582
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
583
|
-
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
584
|
-
isTooltip: f.value.showTooltip,
|
|
585
|
-
isFullscreen: I.value,
|
|
586
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
587
|
-
chartElement: w.value,
|
|
588
|
-
position: e.value.userOptions.position,
|
|
589
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
590
|
-
isAnnotation: Y.value,
|
|
591
|
-
callbacks: e.value.userOptions.callbacks,
|
|
592
|
-
printScale: e.value.userOptions.print.scale,
|
|
593
|
-
tableDialog: e.value.table.useDialog,
|
|
594
|
-
isCursorPointer: _.value,
|
|
595
|
-
onToggleFullscreen: _e,
|
|
596
|
-
onGeneratePdf: n(Ae),
|
|
597
|
-
onGenerateCsv: re,
|
|
598
|
-
onGenerateImage: _t,
|
|
599
|
-
onGenerateSvg: Me,
|
|
600
|
-
onToggleTable: Be,
|
|
601
|
-
onToggleTooltip: Ve,
|
|
602
|
-
onToggleAnnotator: ie,
|
|
603
|
-
onCopyAlt: ze,
|
|
604
|
-
style: z({
|
|
605
|
-
visibility: n(Oe) ? n(ee) ? "visible" : "hidden" : "visible"
|
|
606
|
-
})
|
|
607
|
-
}, Ue({ _: 2 }, [
|
|
608
|
-
t.$slots.menuIcon ? {
|
|
609
|
-
name: "menuIcon",
|
|
610
|
-
fn: r(({ isOpen: l, color: o }) => [
|
|
611
|
-
i(t.$slots, "menuIcon", y(b({ isOpen: l, color: o })), void 0, !0)
|
|
612
|
-
]),
|
|
613
|
-
key: "0"
|
|
614
|
-
} : void 0,
|
|
615
|
-
t.$slots.optionTooltip ? {
|
|
616
|
-
name: "optionTooltip",
|
|
617
|
-
fn: r(() => [
|
|
618
|
-
i(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
619
|
-
]),
|
|
620
|
-
key: "1"
|
|
621
|
-
} : void 0,
|
|
622
|
-
t.$slots.optionPdf ? {
|
|
623
|
-
name: "optionPdf",
|
|
624
|
-
fn: r(() => [
|
|
625
|
-
i(t.$slots, "optionPdf", {}, void 0, !0)
|
|
626
|
-
]),
|
|
627
|
-
key: "2"
|
|
628
|
-
} : void 0,
|
|
629
|
-
t.$slots.optionCsv ? {
|
|
630
|
-
name: "optionCsv",
|
|
631
|
-
fn: r(() => [
|
|
632
|
-
i(t.$slots, "optionCsv", {}, void 0, !0)
|
|
633
|
-
]),
|
|
634
|
-
key: "3"
|
|
635
|
-
} : void 0,
|
|
636
|
-
t.$slots.optionImg ? {
|
|
637
|
-
name: "optionImg",
|
|
638
|
-
fn: r(() => [
|
|
639
|
-
i(t.$slots, "optionImg", {}, void 0, !0)
|
|
640
|
-
]),
|
|
641
|
-
key: "4"
|
|
642
|
-
} : void 0,
|
|
643
|
-
t.$slots.optionSvg ? {
|
|
644
|
-
name: "optionSvg",
|
|
645
|
-
fn: r(() => [
|
|
646
|
-
i(t.$slots, "optionSvg", {}, void 0, !0)
|
|
647
|
-
]),
|
|
648
|
-
key: "5"
|
|
649
|
-
} : void 0,
|
|
650
|
-
t.$slots.optionTable ? {
|
|
651
|
-
name: "optionTable",
|
|
652
|
-
fn: r(() => [
|
|
653
|
-
i(t.$slots, "optionTable", {}, void 0, !0)
|
|
654
|
-
]),
|
|
655
|
-
key: "6"
|
|
656
|
-
} : void 0,
|
|
657
|
-
t.$slots.optionFullscreen ? {
|
|
658
|
-
name: "optionFullscreen",
|
|
659
|
-
fn: r(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
660
|
-
i(t.$slots, "optionFullscreen", y(b({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
661
|
-
]),
|
|
662
|
-
key: "7"
|
|
663
|
-
} : void 0,
|
|
664
|
-
t.$slots.optionAnnotator ? {
|
|
665
|
-
name: "optionAnnotator",
|
|
666
|
-
fn: r(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
667
|
-
i(t.$slots, "optionAnnotator", y(b({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
668
|
-
]),
|
|
669
|
-
key: "8"
|
|
670
|
-
} : void 0,
|
|
671
|
-
t.$slots.optionAltCopy ? {
|
|
672
|
-
name: "optionAltCopy",
|
|
673
|
-
fn: r(({ altCopy: l }) => [
|
|
674
|
-
i(t.$slots, "optionAltCopy", y(b({ altCopy: l })), void 0, !0)
|
|
675
|
-
]),
|
|
676
|
-
key: "9"
|
|
677
|
-
} : void 0
|
|
678
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : g("", !0),
|
|
679
|
-
(u(), p("svg", {
|
|
680
|
-
ref_key: "svgRef",
|
|
681
|
-
ref: te,
|
|
682
|
-
xmlns: n(jt),
|
|
683
|
-
class: q({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
684
|
-
viewBox: x.value.viewBox,
|
|
685
|
-
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
686
|
-
}, [
|
|
687
|
-
ce(n(ut)),
|
|
688
|
-
t.$slots["chart-background"] ? (u(), p("foreignObject", {
|
|
689
|
-
key: 0,
|
|
690
|
-
x: 0,
|
|
691
|
-
y: 0,
|
|
692
|
-
width: x.value.width,
|
|
693
|
-
height: x.value.height,
|
|
694
|
-
style: {
|
|
695
|
-
pointerEvents: "none"
|
|
696
|
-
}
|
|
697
|
-
}, [
|
|
698
|
-
i(t.$slots, "chart-background", {}, void 0, !0)
|
|
699
|
-
], 8, yl)) : g("", !0),
|
|
700
|
-
S("defs", null, [
|
|
701
|
-
S("filter", {
|
|
702
|
-
id: `blur_${C.value}`,
|
|
703
|
-
x: "-50%",
|
|
704
|
-
y: "-50%",
|
|
705
|
-
width: "200%",
|
|
706
|
-
height: "200%"
|
|
707
|
-
}, [
|
|
708
|
-
S("feGaussianBlur", {
|
|
709
|
-
in: "SourceGraphic",
|
|
710
|
-
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
711
|
-
}, null, 8, ml)
|
|
712
|
-
], 8, bl)
|
|
713
|
-
]),
|
|
714
|
-
(u(!0), p(We, null, Ge(B.value, (l) => (u(), p("g", null, [
|
|
715
|
-
l.value ? (u(), p("path", {
|
|
716
|
-
key: 0,
|
|
717
|
-
d: l.path,
|
|
718
|
-
fill: "none",
|
|
719
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
720
|
-
"stroke-width": ne(l).border,
|
|
721
|
-
"stroke-linecap": "round"
|
|
722
|
-
}, null, 8, kl)) : g("", !0),
|
|
723
|
-
l.value ? (u(), p("path", {
|
|
724
|
-
key: 1,
|
|
725
|
-
d: l.path,
|
|
726
|
-
fill: "none",
|
|
727
|
-
stroke: l.color,
|
|
728
|
-
"stroke-width": ne(l).path,
|
|
729
|
-
"stroke-linecap": "round",
|
|
730
|
-
class: q(`${A.value && A.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
731
|
-
}, null, 10, Cl)) : g("", !0),
|
|
732
|
-
l.value && e.value.style.chart.layout.arcs.gradient.show ? (u(), p("g", {
|
|
733
|
-
key: 2,
|
|
734
|
-
filter: `url(#blur_${C.value})`
|
|
735
|
-
}, [
|
|
736
|
-
S("path", {
|
|
737
|
-
d: l.path,
|
|
738
|
-
fill: "none",
|
|
739
|
-
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
740
|
-
"stroke-width": ne(l).blur,
|
|
741
|
-
"stroke-linecap": "round",
|
|
742
|
-
class: q(`vue-ui-galaxy-gradient ${A.value && A.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
743
|
-
}, null, 10, Tl)
|
|
744
|
-
], 8, wl)) : g("", !0)
|
|
745
|
-
]))), 256)),
|
|
746
|
-
(u(!0), p(We, null, Ge(B.value, (l, o) => (u(), p("g", null, [
|
|
747
|
-
l.value ? (u(), p("path", {
|
|
748
|
-
key: 0,
|
|
749
|
-
d: l.path,
|
|
750
|
-
fill: "none",
|
|
751
|
-
stroke: "transparent",
|
|
752
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
753
|
-
"stroke-linecap": "round",
|
|
754
|
-
onMouseenter: (c) => St({
|
|
755
|
-
datapoint: l,
|
|
756
|
-
seriesIndex: l.seriesIndex,
|
|
757
|
-
show: !0
|
|
758
|
-
}),
|
|
759
|
-
onMouseleave: (c) => Tt(l),
|
|
760
|
-
onClick: (c) => $t(l)
|
|
761
|
-
}, null, 40, $l)) : g("", !0)
|
|
762
|
-
]))), 256)),
|
|
763
|
-
i(t.$slots, "svg", {
|
|
764
|
-
svg: {
|
|
765
|
-
...x.value,
|
|
766
|
-
isPrintingImg: n(ae) | n(oe) | U.value,
|
|
767
|
-
isPrintingSvg: W.value
|
|
768
|
-
}
|
|
769
|
-
}, void 0, !0)
|
|
770
|
-
], 14, fl)),
|
|
771
|
-
t.$slots.watermark ? (u(), p("div", Sl, [
|
|
772
|
-
i(t.$slots, "watermark", y(b({ isPrinting: n(ae) || n(oe) || U.value || W.value })), void 0, !0)
|
|
773
|
-
])) : g("", !0),
|
|
774
|
-
S("div", {
|
|
775
|
-
id: `legend-bottom-${C.value}`
|
|
776
|
-
}, null, 8, xl),
|
|
777
|
-
we.value ? (u(), $(Et, {
|
|
778
|
-
key: 5,
|
|
779
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${C.value}` : `#legend-bottom-${C.value}`
|
|
780
|
-
}, [
|
|
781
|
-
S("div", {
|
|
782
|
-
ref_key: "chartLegend",
|
|
783
|
-
ref: me
|
|
784
|
-
}, [
|
|
785
|
-
e.value.style.chart.legend.show ? (u(), $(cl, {
|
|
786
|
-
key: `legend_${ye.value}`,
|
|
787
|
-
legendSet: V.value,
|
|
788
|
-
config: xt.value,
|
|
789
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) => N(l))
|
|
790
|
-
}, {
|
|
791
|
-
item: r(({ legend: l, index: o }) => [
|
|
792
|
-
n(G) ? g("", !0) : (u(), p("div", {
|
|
793
|
-
key: 0,
|
|
794
|
-
onClick: (c) => N(l),
|
|
795
|
-
style: z(`opacity:${h.value.includes(l.id) ? 0.5 : 1}`)
|
|
796
|
-
}, ve(l.display), 13, Pl))
|
|
797
|
-
]),
|
|
798
|
-
legendToggle: r(() => [
|
|
799
|
-
V.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !n(G) ? (u(), $(dl, {
|
|
800
|
-
key: 0,
|
|
801
|
-
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
802
|
-
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
803
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
804
|
-
checked: h.value.length > 0,
|
|
805
|
-
onToggle: yt
|
|
806
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : g("", !0)
|
|
807
|
-
]),
|
|
808
|
-
_: 1
|
|
809
|
-
}, 8, ["legendSet", "config"])) : g("", !0),
|
|
810
|
-
i(t.$slots, "legend", { legend: V.value }, void 0, !0)
|
|
811
|
-
], 512)
|
|
812
|
-
], 8, ["to"])) : g("", !0),
|
|
813
|
-
t.$slots.source ? (u(), p("div", {
|
|
814
|
-
key: 6,
|
|
815
|
-
ref_key: "source",
|
|
816
|
-
ref: ke,
|
|
817
|
-
dir: "auto"
|
|
818
|
-
}, [
|
|
819
|
-
i(t.$slots, "source", {}, void 0, !0)
|
|
820
|
-
], 512)) : g("", !0),
|
|
821
|
-
ce(n(tt), {
|
|
822
|
-
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
823
|
-
show: f.value.showTooltip && K.value,
|
|
824
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
825
|
-
color: e.value.style.chart.tooltip.color,
|
|
826
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
827
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
828
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
829
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
830
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
831
|
-
position: e.value.style.chart.tooltip.position,
|
|
832
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
833
|
-
parent: w.value,
|
|
834
|
-
content: Q.value,
|
|
835
|
-
isFullscreen: I.value,
|
|
836
|
-
isCustom: n(Ke)(e.value.style.chart.tooltip.customFormat),
|
|
837
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
838
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
839
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
840
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
841
|
-
}, {
|
|
842
|
-
"tooltip-before": r(() => [
|
|
843
|
-
i(t.$slots, "tooltip-before", y(b({ ...ue.value })), void 0, !0)
|
|
844
|
-
]),
|
|
845
|
-
"tooltip-after": r(() => [
|
|
846
|
-
i(t.$slots, "tooltip-after", y(b({ ...ue.value })), void 0, !0)
|
|
847
|
-
]),
|
|
848
|
-
_: 3
|
|
849
|
-
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
850
|
-
Te.value && e.value.userOptions.buttons.table ? (u(), $(Mt(E.value.component), zt({ key: 7 }, E.value.props, {
|
|
851
|
-
ref_key: "tableUnit",
|
|
852
|
-
ref: F,
|
|
853
|
-
onClose: Ee
|
|
854
|
-
}), Ue({
|
|
855
|
-
content: r(() => [
|
|
856
|
-
(u(), $(n(ot), {
|
|
857
|
-
key: `table_${fe.value}`,
|
|
858
|
-
colNames: j.value.colNames,
|
|
859
|
-
head: j.value.head,
|
|
860
|
-
body: j.value.body,
|
|
861
|
-
config: j.value.config,
|
|
862
|
-
title: e.value.table.useDialog ? "" : E.value.title,
|
|
863
|
-
withCloseButton: !e.value.table.useDialog,
|
|
864
|
-
isCursorPointer: _.value,
|
|
865
|
-
onClose: Ee
|
|
866
|
-
}, {
|
|
867
|
-
th: r(({ th: l }) => [
|
|
868
|
-
S("div", {
|
|
869
|
-
innerHTML: l,
|
|
870
|
-
style: { display: "flex", "align-items": "center" }
|
|
871
|
-
}, null, 8, Ol)
|
|
872
|
-
]),
|
|
873
|
-
td: r(({ td: l }) => [
|
|
874
|
-
He(ve(l.name || l), 1)
|
|
875
|
-
]),
|
|
876
|
-
_: 1
|
|
877
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
878
|
-
]),
|
|
879
|
-
_: 2
|
|
880
|
-
}, [
|
|
881
|
-
e.value.table.useDialog ? {
|
|
882
|
-
name: "title",
|
|
883
|
-
fn: r(() => [
|
|
884
|
-
He(ve(E.value.title), 1)
|
|
885
|
-
]),
|
|
886
|
-
key: "0"
|
|
887
|
-
} : void 0,
|
|
888
|
-
e.value.table.useDialog ? {
|
|
889
|
-
name: "actions",
|
|
890
|
-
fn: r(() => [
|
|
891
|
-
S("button", {
|
|
892
|
-
tabindex: "0",
|
|
893
|
-
class: "vue-ui-user-options-button",
|
|
894
|
-
onClick: a[1] || (a[1] = (l) => re(e.value.userOptions.callbacks.csv)),
|
|
895
|
-
style: z({ cursor: _.value ? "pointer" : "default" })
|
|
896
|
-
}, [
|
|
897
|
-
ce(n(lt), {
|
|
898
|
-
name: "fileCsv",
|
|
899
|
-
stroke: E.value.props.color
|
|
900
|
-
}, null, 8, ["stroke"])
|
|
901
|
-
], 4)
|
|
902
|
-
]),
|
|
903
|
-
key: "1"
|
|
904
|
-
} : void 0
|
|
905
|
-
]), 1040)) : g("", !0),
|
|
906
|
-
i(t.$slots, "skeleton", {}, () => [
|
|
907
|
-
n(G) ? (u(), $(ll, { key: 0 })) : g("", !0)
|
|
908
|
-
], !0)
|
|
909
|
-
], 46, gl));
|
|
910
|
-
}
|
|
911
|
-
}, Yl = /* @__PURE__ */ hl(Al, [["__scopeId", "data-v-39ee1d9f"]]);
|
|
912
|
-
export {
|
|
913
|
-
Yl as default
|
|
914
|
-
};
|