vue-data-ui 3.2.8 → 3.3.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/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
- 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-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-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-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-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-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { t as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as wt, onMounted as Ct, watch as Le, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as z, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as ae, createSlots as Ae, withCtx as d, renderSlot as g, normalizeProps as I, guardReactiveProps as D, Fragment as Fe, renderList as Ne, Teleport as $t, toDisplayString as oe, resolveDynamicComponent as xt, mergeProps as Tt, createTextVNode as Be, nextTick as Ve } from "vue";
|
|
2
|
+
import { c as Ee, t as St, o as _t, f as Me, g as Ot, b as Pt, p as G, e as It, J as Re, h as Dt, P as Lt, a as We, d as S, X as At, z as ze, x as Ft, y as Nt, A as Bt } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as Vt, u as Et } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Mt, a as Ge } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as Rt, B as Wt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as zt } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Ht from "./img-J2dLIr8Y.js";
|
|
10
|
+
import { t as Xt } from "./themes-Dw-dDudK.js";
|
|
11
|
+
import Yt from "./Title-Camz1Lce.js";
|
|
12
|
+
import jt from "./Legend-By4rru90.js";
|
|
13
|
+
import { u as qt } from "./useSvgExport-DrjCWun4.js";
|
|
14
|
+
import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "height"], tl = ["id"], ll = ["stdDeviation"], al = ["d", "stroke", "stroke-width"], ol = ["d", "stroke", "stroke-width"], sl = ["filter"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], rl = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, il = ["id"], cl = ["onClick"], vl = ["innerHTML"], dl = {
|
|
18
19
|
__name: "vue-ui-galaxy",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -31,14 +32,14 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
35
|
+
setup(Ue, { expose: He, emit: Xe }) {
|
|
36
|
+
const Ye = x(() => import("./Tooltip-VOcQEHa4.js")), je = x(() => import("./BaseIcon-eZbszQrv.js")), qe = x(() => import("./vue-ui-accordion-VTP418mC.js")), Je = x(() => import("./DataTable-yAMEyP6y.js")), Ke = x(() => import("./PenAndPaper-Bo-lMUik.js")), Qe = x(() => import("./UserOptions-CSja1SGU.js")), Ze = x(() => import("./PackageVersion-BfykJm_B.js")), et = x(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_galaxy: tt } = Mt(), w = Ue, f = o(Ee()), b = o(null), U = o(!1), H = o(""), _ = o(null), se = o(0), ne = o(0), ue = o(0), re = o(0), ie = o(null), ce = o(null), ve = o(null), de = o(null), L = o(null), B = o(null), he = o(!1), A = o(null), X = o(null), ge = i(() => !!w.dataset && w.dataset.length), e = o(J()), { loading: Y, FINAL_DATASET: pe } = Rt({
|
|
37
|
+
...wt(w),
|
|
37
38
|
FINAL_CONFIG: e,
|
|
38
39
|
prepareConfig: J,
|
|
39
40
|
callback: () => {
|
|
40
41
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
42
|
+
await Ve(), p.value.showTable = e.value.table.show;
|
|
42
43
|
});
|
|
43
44
|
},
|
|
44
45
|
skeletonDataset: [
|
|
@@ -46,7 +47,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
46
47
|
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
47
48
|
{ name: "_", values: [8], color: "#ADADAD" }
|
|
48
49
|
],
|
|
49
|
-
skeletonConfig:
|
|
50
|
+
skeletonConfig: St({
|
|
50
51
|
defaultConfig: e.value,
|
|
51
52
|
userConfig: {
|
|
52
53
|
userOptions: { show: !1 },
|
|
@@ -63,17 +64,17 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
63
64
|
}
|
|
64
65
|
})
|
|
65
66
|
});
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
Ct(() => {
|
|
68
|
+
he.value = !0, fe();
|
|
68
69
|
});
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
70
|
+
const ye = i(() => !!e.value.debug);
|
|
71
|
+
function fe() {
|
|
72
|
+
if (_t(w.dataset) ? Me({
|
|
72
73
|
componentName: "VueUiGalaxy",
|
|
73
74
|
type: "dataset",
|
|
74
|
-
debug:
|
|
75
|
+
debug: ye.value
|
|
75
76
|
}) : w.dataset.forEach((t, a) => {
|
|
76
|
-
|
|
77
|
+
Ot({
|
|
77
78
|
datasetObject: t,
|
|
78
79
|
requiredAttributes: ["name", "values"]
|
|
79
80
|
}).forEach((l) => {
|
|
@@ -82,85 +83,85 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
82
83
|
type: "datasetSerieAttribute",
|
|
83
84
|
property: l,
|
|
84
85
|
index: a,
|
|
85
|
-
debug:
|
|
86
|
+
debug: ye.value
|
|
86
87
|
});
|
|
87
88
|
});
|
|
88
89
|
}), e.value.responsive) {
|
|
89
|
-
const t =
|
|
90
|
-
const { width: a, height: l } =
|
|
90
|
+
const t = Vt(() => {
|
|
91
|
+
const { width: a, height: l } = Et({
|
|
91
92
|
chart: b.value,
|
|
92
|
-
title: e.value.style.chart.title.text ?
|
|
93
|
-
legend: e.value.style.chart.legend.show ?
|
|
94
|
-
noTitle:
|
|
95
|
-
source:
|
|
93
|
+
title: e.value.style.chart.title.text ? ie.value : null,
|
|
94
|
+
legend: e.value.style.chart.legend.show ? ce.value : null,
|
|
95
|
+
noTitle: de.value,
|
|
96
|
+
source: ve.value
|
|
96
97
|
});
|
|
97
98
|
requestAnimationFrame(() => {
|
|
98
|
-
|
|
99
|
+
V.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
|
|
99
100
|
});
|
|
100
101
|
});
|
|
101
|
-
|
|
102
|
+
L.value && (B.value && L.value.unobserve(B.value), L.value.disconnect()), L.value = new ResizeObserver(t), B.value = b.value.parentNode, L.value.observe(B.value);
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
const { userOptionsVisible:
|
|
105
|
+
const { userOptionsVisible: j, setUserOptionsVisibility: be, keepUserOptionState: me } = Gt({ config: e.value }), { svgRef: q } = Ut({ config: e.value.style.chart.title });
|
|
105
106
|
function J() {
|
|
106
|
-
const t =
|
|
107
|
+
const t = Ge({
|
|
107
108
|
userConfig: w.config,
|
|
108
|
-
defaultConfig:
|
|
109
|
+
defaultConfig: tt
|
|
109
110
|
});
|
|
110
111
|
return t.theme ? {
|
|
111
|
-
...
|
|
112
|
-
userConfig:
|
|
112
|
+
...Ge({
|
|
113
|
+
userConfig: Xt.vue_ui_galaxy[t.theme] || w.config,
|
|
113
114
|
defaultConfig: t
|
|
114
115
|
}),
|
|
115
|
-
customPalette:
|
|
116
|
+
customPalette: Pt[t.theme] || G
|
|
116
117
|
} : t;
|
|
117
118
|
}
|
|
118
|
-
|
|
119
|
-
e.value = J(),
|
|
119
|
+
Le(() => w.config, (t) => {
|
|
120
|
+
e.value = J(), j.value = !e.value.userOptions.showOnChartHover, fe(), ne.value += 1, ue.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
120
121
|
}, { deep: !0 });
|
|
121
|
-
const { isPrinting:
|
|
122
|
-
elementId: `galaxy_${
|
|
122
|
+
const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = zt({
|
|
123
|
+
elementId: `galaxy_${f.value}`,
|
|
123
124
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
124
125
|
options: e.value.userOptions.print
|
|
125
|
-
}),
|
|
126
|
+
}), lt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = i(() => It(e.value.customPalette)), p = o({
|
|
126
127
|
dataLabels: {
|
|
127
128
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
128
129
|
},
|
|
129
130
|
showTable: e.value.table.show,
|
|
130
131
|
showTooltip: e.value.style.chart.tooltip.show
|
|
131
|
-
}),
|
|
132
|
-
width:
|
|
132
|
+
}), V = o(250), E = o(180), ot = o(0), st = o(0), C = i(() => ({
|
|
133
|
+
width: V.value,
|
|
133
134
|
height: E.value,
|
|
134
|
-
viewBox: `${
|
|
135
|
-
})),
|
|
135
|
+
viewBox: `${ot.value} ${st.value} ${V.value} ${E.value}`
|
|
136
|
+
})), xe = Xe, y = o([]);
|
|
136
137
|
function K(t) {
|
|
137
|
-
|
|
138
|
+
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), xe("selectLegend", F.value.map((a) => ({
|
|
138
139
|
name: a.name,
|
|
139
140
|
color: a.color,
|
|
140
141
|
value: a.value
|
|
141
142
|
})));
|
|
142
143
|
}
|
|
143
|
-
const
|
|
144
|
+
const O = i(() => pe.value.map((t, a) => ({
|
|
144
145
|
name: t.name,
|
|
145
|
-
color:
|
|
146
|
-
value: t.values ?
|
|
147
|
-
absoluteValues:
|
|
148
|
-
id:
|
|
146
|
+
color: Dt(t.color) || at.value[a] || G[a] || G[a % G.length],
|
|
147
|
+
value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
148
|
+
absoluteValues: Re(t.values),
|
|
149
|
+
id: Ee()
|
|
149
150
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
150
151
|
...t,
|
|
151
152
|
absoluteIndex: a
|
|
152
153
|
})));
|
|
153
|
-
function
|
|
154
|
-
return
|
|
154
|
+
function nt() {
|
|
155
|
+
return O.value.map((t) => ({
|
|
155
156
|
name: t.name,
|
|
156
157
|
color: t.color,
|
|
157
158
|
value: t.value
|
|
158
159
|
}));
|
|
159
160
|
}
|
|
160
|
-
const m = i(() =>
|
|
161
|
+
const m = i(() => O.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Te = o(190), Se = i(() => O.value.filter((t) => !y.value.includes(t.id))), ut = i(
|
|
161
162
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
162
|
-
),
|
|
163
|
-
maxPoints:
|
|
163
|
+
), rt = i(() => Lt({
|
|
164
|
+
maxPoints: Te.value,
|
|
164
165
|
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
165
166
|
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
166
167
|
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
@@ -169,86 +170,92 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
169
170
|
boxWidth: C.value.width,
|
|
170
171
|
boxHeight: C.value.height,
|
|
171
172
|
padding: ut.value
|
|
172
|
-
})),
|
|
173
|
+
})), F = i(() => {
|
|
173
174
|
const t = [];
|
|
174
|
-
for (let a = 0; a <
|
|
175
|
-
const l =
|
|
175
|
+
for (let a = 0; a < Se.value.length; a += 1) {
|
|
176
|
+
const l = Se.value[a], s = l.value / m.value * Te.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
176
177
|
t.push({
|
|
177
178
|
points: s,
|
|
178
179
|
...l,
|
|
179
180
|
seriesIndex: a,
|
|
180
181
|
proportion: l.value / m.value,
|
|
181
|
-
path:
|
|
182
|
+
path: rt.value(s)
|
|
182
183
|
});
|
|
183
184
|
}
|
|
184
|
-
return t.filter((a) => !
|
|
185
|
+
return t.filter((a) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
185
186
|
});
|
|
186
187
|
function Q(t) {
|
|
187
|
-
const a = Math.min(
|
|
188
|
+
const a = Math.min(V.value, E.value), l = _.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
188
189
|
return {
|
|
189
190
|
border: s / 180 * a,
|
|
190
191
|
path: r / 180 * a,
|
|
191
192
|
blur: h / 180 * a
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
+
const P = o(!1);
|
|
195
196
|
function _e(t) {
|
|
196
|
-
|
|
197
|
+
P.value = t, se.value += 1;
|
|
197
198
|
}
|
|
198
199
|
const Z = o(null);
|
|
199
|
-
function rt(t) {
|
|
200
|
-
U.value = !1, S.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
201
|
-
}
|
|
202
200
|
function it(t) {
|
|
203
|
-
|
|
201
|
+
U.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
202
|
+
}
|
|
203
|
+
function ct(t) {
|
|
204
|
+
xe("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
+
function vt({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
206
207
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
|
|
207
208
|
datapoint: t,
|
|
208
209
|
seriesIndex: l,
|
|
209
|
-
series:
|
|
210
|
+
series: O.value,
|
|
210
211
|
config: e.value
|
|
211
|
-
}, U.value = s,
|
|
212
|
+
}, U.value = s, _.value = t.id;
|
|
212
213
|
let r = "";
|
|
213
214
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
214
|
-
|
|
215
|
+
ze(h) && Bt(() => h({
|
|
215
216
|
seriesIndex: l,
|
|
216
217
|
datapoint: t,
|
|
217
|
-
series:
|
|
218
|
+
series: O.value,
|
|
218
219
|
config: e.value
|
|
219
|
-
})) ?
|
|
220
|
+
})) ? H.value = h({
|
|
220
221
|
seriesIndex: l,
|
|
221
222
|
datapoint: t,
|
|
222
|
-
series:
|
|
223
|
+
series: O.value,
|
|
223
224
|
config: e.value
|
|
224
|
-
}) : (r += `<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>`, r += `<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>`, e.value.style.chart.tooltip.showValue && (r += `<b>${
|
|
225
|
+
}) : (r += `<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>`, r += `<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>`, e.value.style.chart.tooltip.showValue && (r += `<b>${We(
|
|
225
226
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
226
227
|
t.value,
|
|
227
|
-
|
|
228
|
+
S({
|
|
228
229
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
229
230
|
v: t.value,
|
|
230
231
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
231
232
|
r: e.value.style.chart.tooltip.roundingValue
|
|
232
233
|
}),
|
|
233
234
|
{ datapoint: t, seriesIndex: l }
|
|
234
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${
|
|
235
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${S({
|
|
235
236
|
v: t.proportion * 100,
|
|
236
237
|
s: "%",
|
|
237
238
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
238
|
-
})})</span></div>` : r += `<b>${
|
|
239
|
+
})})</span></div>` : r += `<b>${S({
|
|
239
240
|
v: t.proportion * 100,
|
|
240
241
|
s: "%",
|
|
241
242
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
242
|
-
})}</b></div>`),
|
|
243
|
+
})}</b></div>`), H.value = `<div>${r}</div>`);
|
|
243
244
|
}
|
|
244
|
-
const
|
|
245
|
+
const ee = i(() => O.value.map((t, a) => ({
|
|
245
246
|
...t,
|
|
246
|
-
proportion: (t.value || 0) /
|
|
247
|
-
opacity:
|
|
247
|
+
proportion: (t.value || 0) / pe.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
248
|
+
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
248
249
|
shape: t.shape || "circle",
|
|
249
250
|
segregate: () => K(t),
|
|
250
|
-
isSegregated:
|
|
251
|
-
|
|
251
|
+
isSegregated: y.value.includes(t.id),
|
|
252
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, S({
|
|
253
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
254
|
+
v: t.value,
|
|
255
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
256
|
+
r: e.value.style.chart.legend.roundingValue
|
|
257
|
+
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? y.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / m.value) ? "-" : S({ v: t.value / m.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
258
|
+
}))), dt = i(() => ({
|
|
252
259
|
cy: "galaxy-div-legend",
|
|
253
260
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
254
261
|
color: e.value.style.chart.legend.color,
|
|
@@ -256,34 +263,34 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
256
263
|
paddingBottom: 12,
|
|
257
264
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
258
265
|
})), $ = i(() => {
|
|
259
|
-
const t =
|
|
266
|
+
const t = F.value.map((l) => ({
|
|
260
267
|
name: l.name,
|
|
261
268
|
color: l.color
|
|
262
|
-
})), a =
|
|
269
|
+
})), a = F.value.map((l) => l.value);
|
|
263
270
|
return { head: t, body: a };
|
|
264
271
|
});
|
|
265
|
-
function
|
|
266
|
-
|
|
272
|
+
function te(t = null) {
|
|
273
|
+
Ve(() => {
|
|
267
274
|
const a = $.value.head.map((r, h) => [[
|
|
268
275
|
r.name
|
|
269
|
-
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s =
|
|
270
|
-
t ? t(s) :
|
|
276
|
+
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = Ft(l);
|
|
277
|
+
t ? t(s) : Nt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
271
278
|
});
|
|
272
279
|
}
|
|
273
|
-
const
|
|
280
|
+
const M = i(() => {
|
|
274
281
|
const t = [
|
|
275
282
|
' <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>',
|
|
276
|
-
|
|
283
|
+
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
277
284
|
"100%"
|
|
278
285
|
], a = $.value.head.map((r, h) => {
|
|
279
|
-
const
|
|
286
|
+
const kt = S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
280
287
|
return [
|
|
281
288
|
{
|
|
282
289
|
color: r.color,
|
|
283
290
|
name: r.name
|
|
284
291
|
},
|
|
285
|
-
|
|
286
|
-
isNaN($.value.body[h] / m.value) ? "-" :
|
|
292
|
+
kt,
|
|
293
|
+
isNaN($.value.body[h] / m.value) ? "-" : S({
|
|
287
294
|
v: $.value.body[h] / m.value * 100,
|
|
288
295
|
s: "%",
|
|
289
296
|
r: e.value.table.td.roundingPercentage
|
|
@@ -313,19 +320,19 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
313
320
|
config: l
|
|
314
321
|
};
|
|
315
322
|
});
|
|
316
|
-
function Pe() {
|
|
317
|
-
g.value.showTable = !g.value.showTable;
|
|
318
|
-
}
|
|
319
323
|
function Oe() {
|
|
320
|
-
|
|
324
|
+
p.value.showTable = !p.value.showTable;
|
|
325
|
+
}
|
|
326
|
+
function Pe() {
|
|
327
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
321
328
|
}
|
|
322
|
-
const
|
|
323
|
-
function
|
|
324
|
-
|
|
329
|
+
const R = o(!1);
|
|
330
|
+
function le() {
|
|
331
|
+
R.value = !R.value;
|
|
325
332
|
}
|
|
326
|
-
async function
|
|
333
|
+
async function ht({ scale: t = 2 } = {}) {
|
|
327
334
|
if (!b.value) return;
|
|
328
|
-
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await
|
|
335
|
+
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Ht({ domElement: b.value, base64: !0, img: !0, scale: t });
|
|
329
336
|
return {
|
|
330
337
|
imageUri: r,
|
|
331
338
|
base64: h,
|
|
@@ -335,17 +342,17 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
335
342
|
aspectRatio: s
|
|
336
343
|
};
|
|
337
344
|
}
|
|
338
|
-
const
|
|
339
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
345
|
+
const N = i(() => {
|
|
346
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
340
347
|
return {
|
|
341
|
-
component: t ?
|
|
348
|
+
component: t ? et : qe,
|
|
342
349
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
343
350
|
props: t ? {
|
|
344
351
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
345
352
|
color: e.value.table.th.color,
|
|
346
353
|
headerColor: e.value.table.th.color,
|
|
347
354
|
headerBg: e.value.table.th.backgroundColor,
|
|
348
|
-
isFullscreen:
|
|
355
|
+
isFullscreen: P.value,
|
|
349
356
|
fullscreenParent: b.value,
|
|
350
357
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
351
358
|
} : {
|
|
@@ -365,54 +372,72 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
365
372
|
}
|
|
366
373
|
};
|
|
367
374
|
});
|
|
368
|
-
|
|
369
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
375
|
+
Le(() => p.value.showTable, (t) => {
|
|
376
|
+
e.value.table.show || (t && e.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
|
|
370
377
|
});
|
|
371
378
|
function Ie() {
|
|
372
|
-
|
|
379
|
+
p.value.showTable = !1, X.value && X.value.setTableIconState(!1);
|
|
380
|
+
}
|
|
381
|
+
const gt = i(() => ee.value.map((t) => ({
|
|
382
|
+
...t,
|
|
383
|
+
name: t.display
|
|
384
|
+
}))), pt = i(() => e.value.style.chart.backgroundColor), yt = i(() => e.value.style.chart.legend), ft = i(() => e.value.style.chart.title), { exportSvg: bt, getSvg: mt } = qt({
|
|
385
|
+
svg: q,
|
|
386
|
+
title: ft,
|
|
387
|
+
legend: yt,
|
|
388
|
+
legendItems: gt,
|
|
389
|
+
backgroundColor: pt
|
|
390
|
+
});
|
|
391
|
+
async function De({ isCb: t }) {
|
|
392
|
+
if (t) {
|
|
393
|
+
const { blob: a, url: l, text: s, dataUrl: r } = await mt();
|
|
394
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: r });
|
|
395
|
+
} else
|
|
396
|
+
bt();
|
|
373
397
|
}
|
|
374
398
|
return He({
|
|
375
|
-
getData:
|
|
376
|
-
getImage:
|
|
377
|
-
generatePdf:
|
|
378
|
-
generateCsv:
|
|
379
|
-
generateImage:
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
399
|
+
getData: nt,
|
|
400
|
+
getImage: ht,
|
|
401
|
+
generatePdf: Ce,
|
|
402
|
+
generateCsv: te,
|
|
403
|
+
generateImage: $e,
|
|
404
|
+
generateSvg: De,
|
|
405
|
+
toggleTable: Oe,
|
|
406
|
+
toggleTooltip: Pe,
|
|
407
|
+
toggleAnnotator: le,
|
|
383
408
|
toggleFullscreen: _e
|
|
384
409
|
}), (t, a) => (n(), c("div", {
|
|
385
410
|
ref_key: "galaxyChart",
|
|
386
411
|
ref: b,
|
|
387
|
-
class:
|
|
388
|
-
style:
|
|
389
|
-
id: `galaxy_${
|
|
390
|
-
onMouseenter: a[2] || (a[2] = () => u(
|
|
391
|
-
onMouseleave: a[3] || (a[3] = () => u(
|
|
412
|
+
class: z(`vue-data-ui-component vue-ui-galaxy ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(Y) ? "loading" : ""}`),
|
|
413
|
+
style: W(`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}`),
|
|
414
|
+
id: `galaxy_${f.value}`,
|
|
415
|
+
onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
|
|
416
|
+
onMouseleave: a[3] || (a[3] = () => u(be)(!1))
|
|
392
417
|
}, [
|
|
393
|
-
e.value.userOptions.buttons.annotator ? (n(), T(u(
|
|
418
|
+
e.value.userOptions.buttons.annotator ? (n(), T(u(Ke), {
|
|
394
419
|
key: 0,
|
|
395
|
-
svgRef: u(
|
|
420
|
+
svgRef: u(q),
|
|
396
421
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
397
422
|
color: e.value.style.chart.color,
|
|
398
|
-
active:
|
|
399
|
-
onClose:
|
|
423
|
+
active: R.value,
|
|
424
|
+
onClose: le
|
|
400
425
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
401
|
-
|
|
426
|
+
lt.value ? (n(), c("div", {
|
|
402
427
|
key: 1,
|
|
403
428
|
ref_key: "noTitle",
|
|
404
|
-
ref:
|
|
429
|
+
ref: de,
|
|
405
430
|
class: "vue-data-ui-no-title-space",
|
|
406
431
|
style: "height:36px; width: 100%;background:transparent"
|
|
407
432
|
}, null, 512)) : v("", !0),
|
|
408
433
|
e.value.style.chart.title.text ? (n(), c("div", {
|
|
409
434
|
key: 2,
|
|
410
435
|
ref_key: "chartTitle",
|
|
411
|
-
ref:
|
|
436
|
+
ref: ie,
|
|
412
437
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
413
438
|
}, [
|
|
414
|
-
(n(), T(
|
|
415
|
-
key: `title_${
|
|
439
|
+
(n(), T(Yt, {
|
|
440
|
+
key: `title_${ne.value}`,
|
|
416
441
|
config: {
|
|
417
442
|
title: {
|
|
418
443
|
cy: "galaxy-div-title",
|
|
@@ -426,110 +451,112 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
426
451
|
}, null, 8, ["config"]))
|
|
427
452
|
], 512)) : v("", !0),
|
|
428
453
|
k("div", {
|
|
429
|
-
id: `legend-top-${
|
|
430
|
-
}, null, 8,
|
|
431
|
-
e.value.userOptions.show &&
|
|
454
|
+
id: `legend-top-${f.value}`
|
|
455
|
+
}, null, 8, Qt),
|
|
456
|
+
e.value.userOptions.show && ge.value && (u(me) || u(j)) ? (n(), T(u(Qe), {
|
|
432
457
|
ref_key: "userOptionsRef",
|
|
433
|
-
ref:
|
|
434
|
-
key: `user_option_${
|
|
458
|
+
ref: X,
|
|
459
|
+
key: `user_option_${se.value}`,
|
|
435
460
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
436
461
|
color: e.value.style.chart.color,
|
|
437
|
-
isPrinting: u(
|
|
438
|
-
isImaging: u(
|
|
439
|
-
uid:
|
|
462
|
+
isPrinting: u(ke),
|
|
463
|
+
isImaging: u(we),
|
|
464
|
+
uid: f.value,
|
|
440
465
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
441
466
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
442
467
|
hasXls: e.value.userOptions.buttons.csv,
|
|
443
468
|
hasImg: e.value.userOptions.buttons.img,
|
|
469
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
444
470
|
hasTable: e.value.userOptions.buttons.table,
|
|
445
471
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
446
|
-
isTooltip:
|
|
447
|
-
isFullscreen:
|
|
472
|
+
isTooltip: p.value.showTooltip,
|
|
473
|
+
isFullscreen: P.value,
|
|
448
474
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
449
475
|
chartElement: b.value,
|
|
450
476
|
position: e.value.userOptions.position,
|
|
451
477
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
452
|
-
isAnnotation:
|
|
478
|
+
isAnnotation: R.value,
|
|
453
479
|
callbacks: e.value.userOptions.callbacks,
|
|
454
480
|
printScale: e.value.userOptions.print.scale,
|
|
455
481
|
tableDialog: e.value.table.useDialog,
|
|
456
482
|
onToggleFullscreen: _e,
|
|
457
|
-
onGeneratePdf: u(
|
|
458
|
-
onGenerateCsv:
|
|
459
|
-
onGenerateImage: u(
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
483
|
+
onGeneratePdf: u(Ce),
|
|
484
|
+
onGenerateCsv: te,
|
|
485
|
+
onGenerateImage: u($e),
|
|
486
|
+
onGenerateSvg: De,
|
|
487
|
+
onToggleTable: Oe,
|
|
488
|
+
onToggleTooltip: Pe,
|
|
489
|
+
onToggleAnnotator: le,
|
|
490
|
+
style: W({
|
|
491
|
+
visibility: u(me) ? u(j) ? "visible" : "hidden" : "visible"
|
|
465
492
|
})
|
|
466
|
-
},
|
|
493
|
+
}, Ae({ _: 2 }, [
|
|
467
494
|
t.$slots.menuIcon ? {
|
|
468
495
|
name: "menuIcon",
|
|
469
496
|
fn: d(({ isOpen: l, color: s }) => [
|
|
470
|
-
|
|
497
|
+
g(t.$slots, "menuIcon", I(D({ isOpen: l, color: s })), void 0, !0)
|
|
471
498
|
]),
|
|
472
499
|
key: "0"
|
|
473
500
|
} : void 0,
|
|
474
501
|
t.$slots.optionTooltip ? {
|
|
475
502
|
name: "optionTooltip",
|
|
476
503
|
fn: d(() => [
|
|
477
|
-
|
|
504
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
478
505
|
]),
|
|
479
506
|
key: "1"
|
|
480
507
|
} : void 0,
|
|
481
508
|
t.$slots.optionPdf ? {
|
|
482
509
|
name: "optionPdf",
|
|
483
510
|
fn: d(() => [
|
|
484
|
-
|
|
511
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
485
512
|
]),
|
|
486
513
|
key: "2"
|
|
487
514
|
} : void 0,
|
|
488
515
|
t.$slots.optionCsv ? {
|
|
489
516
|
name: "optionCsv",
|
|
490
517
|
fn: d(() => [
|
|
491
|
-
|
|
518
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
492
519
|
]),
|
|
493
520
|
key: "3"
|
|
494
521
|
} : void 0,
|
|
495
522
|
t.$slots.optionImg ? {
|
|
496
523
|
name: "optionImg",
|
|
497
524
|
fn: d(() => [
|
|
498
|
-
|
|
525
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
499
526
|
]),
|
|
500
527
|
key: "4"
|
|
501
528
|
} : void 0,
|
|
502
529
|
t.$slots.optionTable ? {
|
|
503
530
|
name: "optionTable",
|
|
504
531
|
fn: d(() => [
|
|
505
|
-
|
|
532
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
506
533
|
]),
|
|
507
534
|
key: "5"
|
|
508
535
|
} : void 0,
|
|
509
536
|
t.$slots.optionFullscreen ? {
|
|
510
537
|
name: "optionFullscreen",
|
|
511
538
|
fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
512
|
-
|
|
539
|
+
g(t.$slots, "optionFullscreen", I(D({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
513
540
|
]),
|
|
514
541
|
key: "6"
|
|
515
542
|
} : void 0,
|
|
516
543
|
t.$slots.optionAnnotator ? {
|
|
517
544
|
name: "optionAnnotator",
|
|
518
545
|
fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
519
|
-
|
|
546
|
+
g(t.$slots, "optionAnnotator", I(D({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
520
547
|
]),
|
|
521
548
|
key: "7"
|
|
522
549
|
} : void 0
|
|
523
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
550
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
524
551
|
(n(), c("svg", {
|
|
525
552
|
ref_key: "svgRef",
|
|
526
|
-
ref:
|
|
527
|
-
xmlns: u(
|
|
528
|
-
class:
|
|
553
|
+
ref: q,
|
|
554
|
+
xmlns: u(At),
|
|
555
|
+
class: z({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
529
556
|
viewBox: C.value.viewBox,
|
|
530
|
-
style:
|
|
557
|
+
style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
531
558
|
}, [
|
|
532
|
-
|
|
559
|
+
ae(u(Ze)),
|
|
533
560
|
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
534
561
|
key: 0,
|
|
535
562
|
x: 0,
|
|
@@ -540,11 +567,11 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
540
567
|
pointerEvents: "none"
|
|
541
568
|
}
|
|
542
569
|
}, [
|
|
543
|
-
|
|
544
|
-
], 8,
|
|
570
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
571
|
+
], 8, el)) : v("", !0),
|
|
545
572
|
k("defs", null, [
|
|
546
573
|
k("filter", {
|
|
547
|
-
id: `blur_${
|
|
574
|
+
id: `blur_${f.value}`,
|
|
548
575
|
x: "-50%",
|
|
549
576
|
y: "-50%",
|
|
550
577
|
width: "200%",
|
|
@@ -553,10 +580,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
553
580
|
k("feGaussianBlur", {
|
|
554
581
|
in: "SourceGraphic",
|
|
555
582
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
556
|
-
}, null, 8,
|
|
557
|
-
], 8,
|
|
583
|
+
}, null, 8, ll)
|
|
584
|
+
], 8, tl)
|
|
558
585
|
]),
|
|
559
|
-
(n(!0), c(
|
|
586
|
+
(n(!0), c(Fe, null, Ne(F.value, (l) => (n(), c("g", null, [
|
|
560
587
|
l.value ? (n(), c("path", {
|
|
561
588
|
key: 0,
|
|
562
589
|
d: l.path,
|
|
@@ -564,7 +591,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
564
591
|
stroke: e.value.style.chart.backgroundColor,
|
|
565
592
|
"stroke-width": Q(l).border,
|
|
566
593
|
"stroke-linecap": "round"
|
|
567
|
-
}, null, 8,
|
|
594
|
+
}, null, 8, al)) : v("", !0),
|
|
568
595
|
l.value ? (n(), c("path", {
|
|
569
596
|
key: 1,
|
|
570
597
|
d: l.path,
|
|
@@ -572,11 +599,11 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
572
599
|
stroke: l.color,
|
|
573
600
|
"stroke-width": Q(l).path,
|
|
574
601
|
"stroke-linecap": "round",
|
|
575
|
-
class:
|
|
576
|
-
}, null, 10,
|
|
602
|
+
class: z(`${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
603
|
+
}, null, 10, ol)) : v("", !0),
|
|
577
604
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), c("g", {
|
|
578
605
|
key: 2,
|
|
579
|
-
filter: `url(#blur_${
|
|
606
|
+
filter: `url(#blur_${f.value})`
|
|
580
607
|
}, [
|
|
581
608
|
k("path", {
|
|
582
609
|
d: l.path,
|
|
@@ -584,11 +611,11 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
584
611
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
585
612
|
"stroke-width": Q(l).blur,
|
|
586
613
|
"stroke-linecap": "round",
|
|
587
|
-
class:
|
|
588
|
-
}, null, 10,
|
|
589
|
-
], 8,
|
|
614
|
+
class: z(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
615
|
+
}, null, 10, nl)
|
|
616
|
+
], 8, sl)) : v("", !0)
|
|
590
617
|
]))), 256)),
|
|
591
|
-
(n(!0), c(
|
|
618
|
+
(n(!0), c(Fe, null, Ne(F.value, (l, s) => (n(), c("g", null, [
|
|
592
619
|
l.value ? (n(), c("path", {
|
|
593
620
|
key: 0,
|
|
594
621
|
d: l.path,
|
|
@@ -596,73 +623,59 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
596
623
|
stroke: "transparent",
|
|
597
624
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
598
625
|
"stroke-linecap": "round",
|
|
599
|
-
onMouseenter: (r) =>
|
|
626
|
+
onMouseenter: (r) => vt({
|
|
600
627
|
datapoint: l,
|
|
601
628
|
seriesIndex: l.seriesIndex,
|
|
602
629
|
show: !0
|
|
603
630
|
}),
|
|
604
|
-
onMouseleave: (r) =>
|
|
605
|
-
onClick: (r) =>
|
|
606
|
-
}, null, 40,
|
|
631
|
+
onMouseleave: (r) => it(l),
|
|
632
|
+
onClick: (r) => ct(l)
|
|
633
|
+
}, null, 40, ul)) : v("", !0)
|
|
607
634
|
]))), 256)),
|
|
608
|
-
|
|
609
|
-
], 14,
|
|
610
|
-
t.$slots.watermark ? (n(), c("div",
|
|
611
|
-
|
|
635
|
+
g(t.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
636
|
+
], 14, Zt)),
|
|
637
|
+
t.$slots.watermark ? (n(), c("div", rl, [
|
|
638
|
+
g(t.$slots, "watermark", I(D({ isPrinting: u(ke) || u(we) })), void 0, !0)
|
|
612
639
|
])) : v("", !0),
|
|
613
640
|
k("div", {
|
|
614
|
-
id: `legend-bottom-${
|
|
615
|
-
}, null, 8,
|
|
616
|
-
|
|
641
|
+
id: `legend-bottom-${f.value}`
|
|
642
|
+
}, null, 8, il),
|
|
643
|
+
he.value ? (n(), T($t, {
|
|
617
644
|
key: 5,
|
|
618
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
645
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
619
646
|
}, [
|
|
620
647
|
k("div", {
|
|
621
648
|
ref_key: "chartLegend",
|
|
622
|
-
ref:
|
|
649
|
+
ref: ce
|
|
623
650
|
}, [
|
|
624
|
-
e.value.style.chart.legend.show ? (n(), T(
|
|
625
|
-
key: `legend_${
|
|
626
|
-
legendSet:
|
|
627
|
-
config:
|
|
651
|
+
e.value.style.chart.legend.show ? (n(), T(jt, {
|
|
652
|
+
key: `legend_${re.value}`,
|
|
653
|
+
legendSet: ee.value,
|
|
654
|
+
config: dt.value,
|
|
628
655
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => K(l))
|
|
629
656
|
}, {
|
|
630
657
|
item: d(({ legend: l, index: s }) => [
|
|
631
|
-
u(
|
|
658
|
+
u(Y) ? v("", !0) : (n(), c("div", {
|
|
632
659
|
key: 0,
|
|
633
660
|
onClick: (r) => K(l),
|
|
634
|
-
style:
|
|
635
|
-
},
|
|
636
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
637
|
-
l.value,
|
|
638
|
-
u(_)({
|
|
639
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
640
|
-
v: l.value,
|
|
641
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
642
|
-
r: e.value.style.chart.legend.roundingValue
|
|
643
|
-
}),
|
|
644
|
-
{ datapoint: l, seriesIndex: s }
|
|
645
|
-
) : "") + " " + L(e.value.style.chart.legend.showPercentage ? f.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / m.value) ? "-" : u(_)({
|
|
646
|
-
v: l.value / m.value * 100,
|
|
647
|
-
s: "%",
|
|
648
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
649
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ll))
|
|
661
|
+
style: W(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
662
|
+
}, oe(l.display), 13, cl))
|
|
650
663
|
]),
|
|
651
664
|
_: 1
|
|
652
665
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
653
|
-
|
|
666
|
+
g(t.$slots, "legend", { legend: ee.value }, void 0, !0)
|
|
654
667
|
], 512)
|
|
655
668
|
], 8, ["to"])) : v("", !0),
|
|
656
669
|
t.$slots.source ? (n(), c("div", {
|
|
657
670
|
key: 6,
|
|
658
671
|
ref_key: "source",
|
|
659
|
-
ref:
|
|
672
|
+
ref: ve,
|
|
660
673
|
dir: "auto"
|
|
661
674
|
}, [
|
|
662
|
-
|
|
675
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
663
676
|
], 512)) : v("", !0),
|
|
664
|
-
|
|
665
|
-
show:
|
|
677
|
+
ae(u(Ye), {
|
|
678
|
+
show: p.value.showTooltip && U.value,
|
|
666
679
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
667
680
|
color: e.value.style.chart.tooltip.color,
|
|
668
681
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -673,35 +686,35 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
673
686
|
position: e.value.style.chart.tooltip.position,
|
|
674
687
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
675
688
|
parent: b.value,
|
|
676
|
-
content:
|
|
677
|
-
isFullscreen:
|
|
678
|
-
isCustom: u(
|
|
689
|
+
content: H.value,
|
|
690
|
+
isFullscreen: P.value,
|
|
691
|
+
isCustom: u(ze)(e.value.style.chart.tooltip.customFormat),
|
|
679
692
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
680
693
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
681
694
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
682
695
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
683
696
|
}, {
|
|
684
697
|
"tooltip-before": d(() => [
|
|
685
|
-
|
|
698
|
+
g(t.$slots, "tooltip-before", I(D({ ...Z.value })), void 0, !0)
|
|
686
699
|
]),
|
|
687
700
|
"tooltip-after": d(() => [
|
|
688
|
-
|
|
701
|
+
g(t.$slots, "tooltip-after", I(D({ ...Z.value })), void 0, !0)
|
|
689
702
|
]),
|
|
690
703
|
_: 3
|
|
691
704
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
692
|
-
|
|
705
|
+
ge.value && e.value.userOptions.buttons.table ? (n(), T(xt(N.value.component), Tt({ key: 7 }, N.value.props, {
|
|
693
706
|
ref_key: "tableUnit",
|
|
694
|
-
ref:
|
|
707
|
+
ref: A,
|
|
695
708
|
onClose: Ie
|
|
696
|
-
}),
|
|
709
|
+
}), Ae({
|
|
697
710
|
content: d(() => [
|
|
698
|
-
(n(), T(u(
|
|
699
|
-
key: `table_${
|
|
700
|
-
colNames:
|
|
701
|
-
head:
|
|
702
|
-
body:
|
|
703
|
-
config:
|
|
704
|
-
title: e.value.table.useDialog ? "" :
|
|
711
|
+
(n(), T(u(Je), {
|
|
712
|
+
key: `table_${ue.value}`,
|
|
713
|
+
colNames: M.value.colNames,
|
|
714
|
+
head: M.value.head,
|
|
715
|
+
body: M.value.body,
|
|
716
|
+
config: M.value.config,
|
|
717
|
+
title: e.value.table.useDialog ? "" : N.value.title,
|
|
705
718
|
withCloseButton: !e.value.table.useDialog,
|
|
706
719
|
onClose: Ie
|
|
707
720
|
}, {
|
|
@@ -709,10 +722,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
709
722
|
k("div", {
|
|
710
723
|
innerHTML: l,
|
|
711
724
|
style: { display: "flex", "align-items": "center" }
|
|
712
|
-
}, null, 8,
|
|
725
|
+
}, null, 8, vl)
|
|
713
726
|
]),
|
|
714
727
|
td: d(({ td: l }) => [
|
|
715
|
-
|
|
728
|
+
Be(oe(l.name || l), 1)
|
|
716
729
|
]),
|
|
717
730
|
_: 1
|
|
718
731
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -722,7 +735,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
722
735
|
e.value.table.useDialog ? {
|
|
723
736
|
name: "title",
|
|
724
737
|
fn: d(() => [
|
|
725
|
-
|
|
738
|
+
Be(oe(N.value.title), 1)
|
|
726
739
|
]),
|
|
727
740
|
key: "0"
|
|
728
741
|
} : void 0,
|
|
@@ -732,21 +745,21 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
732
745
|
k("button", {
|
|
733
746
|
tabindex: "0",
|
|
734
747
|
class: "vue-ui-user-options-button",
|
|
735
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
748
|
+
onClick: a[1] || (a[1] = (l) => te(e.value.userOptions.callbacks.csv))
|
|
736
749
|
}, [
|
|
737
|
-
|
|
750
|
+
ae(u(je), {
|
|
738
751
|
name: "excel",
|
|
739
|
-
stroke:
|
|
752
|
+
stroke: N.value.props.color
|
|
740
753
|
}, null, 8, ["stroke"])
|
|
741
754
|
])
|
|
742
755
|
]),
|
|
743
756
|
key: "1"
|
|
744
757
|
} : void 0
|
|
745
758
|
]), 1040)) : v("", !0),
|
|
746
|
-
u(
|
|
747
|
-
], 46,
|
|
759
|
+
u(Y) ? (n(), T(Wt, { key: 8 })) : v("", !0)
|
|
760
|
+
], 46, Kt));
|
|
748
761
|
}
|
|
749
|
-
},
|
|
762
|
+
}, _l = /* @__PURE__ */ Jt(dl, [["__scopeId", "data-v-a560bdf3"]]);
|
|
750
763
|
export {
|
|
751
|
-
|
|
764
|
+
_l as default
|
|
752
765
|
};
|