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,34 +1,35 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { o as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { useCssVars as bt, defineAsyncComponent as h, computed as p, onMounted as Ct, ref as r, toRefs as yt, watch as U, nextTick as M, createElementBlock as C, openBlock as u, unref as a, normalizeStyle as z, normalizeClass as Oe, createBlock as w, createCommentVNode as b, createVNode as D, createSlots as Se, withCtx as c, renderSlot as v, normalizeProps as T, guardReactiveProps as $, createElementVNode as I, Fragment as At, renderList as kt, resolveDynamicComponent as wt, mergeProps as Tt, createTextVNode as De, toDisplayString as Ie } from "vue";
|
|
2
|
+
import { o as $t, f as _t, c as Pe, t as Ot, b as St, p as Fe, e as Dt, R as It, X as Pt, m as Ft, k as Nt, h as Ne, x as Lt, y as xt, z as Bt, A as Rt } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { u as Et, a as Le } from "./useNestedProp-Ce3PwN8T.js";
|
|
4
|
+
import { u as Ut, B as Mt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as zt } from "./usePrinter-DJ1iH-F_.js";
|
|
6
|
+
import { u as Ht } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
+
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Wt from "./img-J2dLIr8Y.js";
|
|
10
|
+
import { t as Xt } from "./themes-Dw-dDudK.js";
|
|
11
|
+
import { u as jt } from "./usePanZoom-BVca3eMk.js";
|
|
12
|
+
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Zt = ["id"], qt = {
|
|
13
14
|
key: 1,
|
|
14
15
|
ref: "noTitle",
|
|
15
16
|
class: "vue-data-ui-no-title-space",
|
|
16
17
|
style: "height:36px; width: 100%;background:transparent"
|
|
17
|
-
},
|
|
18
|
+
}, Jt = {
|
|
18
19
|
key: 2,
|
|
19
20
|
style: "width:100%;background:transparent;"
|
|
20
|
-
},
|
|
21
|
+
}, Kt = ["xmlns", "viewBox"], Qt = ["width", "height"], eo = ["id"], to = ["stop-color"], oo = ["stop-color"], lo = {
|
|
21
22
|
key: 4,
|
|
22
23
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
24
|
+
}, ao = {
|
|
24
25
|
key: 5,
|
|
25
26
|
"data-dom-to-png-ignore": "",
|
|
26
27
|
class: "reset-wrapper"
|
|
27
|
-
},
|
|
28
|
+
}, so = {
|
|
28
29
|
key: 6,
|
|
29
30
|
ref: "source",
|
|
30
31
|
dir: "auto"
|
|
31
|
-
},
|
|
32
|
+
}, no = ["innerHTML"], ro = {
|
|
32
33
|
__name: "vue-ui-molecule",
|
|
33
34
|
props: {
|
|
34
35
|
config: {
|
|
@@ -45,24 +46,24 @@ const Vt = ["id"], Gt = {
|
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
emits: ["selectNode"],
|
|
48
|
-
setup(
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
setup(xe, { expose: Be, emit: Re }) {
|
|
50
|
+
bt((t) => ({
|
|
51
|
+
v09141ae0: t.slicerColor
|
|
51
52
|
}));
|
|
52
|
-
const
|
|
53
|
-
|
|
53
|
+
const Ee = h(() => import("./Title-Camz1Lce.js")), Ue = h(() => import("./Tooltip-VOcQEHa4.js")), te = h(() => import("./BaseIcon-eZbszQrv.js")), Me = h(() => import("./vue-ui-accordion-VTP418mC.js")), ze = h(() => import("./DataTable-yAMEyP6y.js")), He = h(() => import("./PenAndPaper-Bo-lMUik.js")), Ve = h(() => import("./UserOptions-CSja1SGU.js")), Ge = h(() => import("./PackageVersion-BfykJm_B.js")), We = h(() => import("./RecursiveLinks-00zGWPf9.js")), Xe = h(() => import("./RecursiveLabels-Bgcv0pzu.js")), je = h(() => import("./RecursiveCircles-BcLb1aRS.js")), Ye = h(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_molecule: Ze } = Et(), A = xe, qe = Re, oe = p(() => !!A.dataset && A.dataset.length);
|
|
54
|
+
Ct(() => {
|
|
54
55
|
le();
|
|
55
56
|
});
|
|
56
|
-
const
|
|
57
|
+
const Je = p(() => e.value.debug);
|
|
57
58
|
function le() {
|
|
58
|
-
|
|
59
|
+
$t(A.dataset) && _t({
|
|
59
60
|
componentName: "VueUiMolecule",
|
|
60
61
|
type: "dataset",
|
|
61
|
-
debug:
|
|
62
|
+
debug: Je.value
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
|
-
const
|
|
65
|
-
...
|
|
65
|
+
const H = r(Pe()), V = r(!1), x = r(""), k = r(null), ae = r(0), se = r(0), ne = r(0), P = r(null), G = r(null), e = r(Y()), { loading: W, FINAL_DATASET: X } = Ut({
|
|
66
|
+
...yt(A),
|
|
66
67
|
FINAL_CONFIG: e,
|
|
67
68
|
prepareConfig: Y,
|
|
68
69
|
skeletonDataset: [
|
|
@@ -103,7 +104,7 @@ const Vt = ["id"], Gt = {
|
|
|
103
104
|
]
|
|
104
105
|
}
|
|
105
106
|
],
|
|
106
|
-
skeletonConfig:
|
|
107
|
+
skeletonConfig: Ot({
|
|
107
108
|
defaultConfig: e.value,
|
|
108
109
|
userConfig: {
|
|
109
110
|
userOptions: { show: !1 },
|
|
@@ -117,39 +118,39 @@ const Vt = ["id"], Gt = {
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
})
|
|
120
|
-
}), { userOptionsVisible:
|
|
121
|
+
}), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = Vt({ config: e.value }), { svgRef: B } = Gt({ config: e.value.style.chart.title });
|
|
121
122
|
function Y() {
|
|
122
|
-
const t =
|
|
123
|
+
const t = Le({
|
|
123
124
|
userConfig: A.config,
|
|
124
|
-
defaultConfig:
|
|
125
|
+
defaultConfig: Ze
|
|
125
126
|
});
|
|
126
127
|
return t.theme ? {
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
128
|
+
...Le({
|
|
129
|
+
userConfig: Xt.vue_ui_molecule[t.theme] || A.config,
|
|
129
130
|
defaultConfig: t
|
|
130
131
|
}),
|
|
131
|
-
customPalette:
|
|
132
|
+
customPalette: St[t.theme] || Fe
|
|
132
133
|
} : t;
|
|
133
134
|
}
|
|
134
|
-
|
|
135
|
-
e.value = Y(),
|
|
135
|
+
U(() => A.config, (t) => {
|
|
136
|
+
e.value = Y(), j.value = !e.value.userOptions.showOnChartHover, le(), se.value += 1, ne.value += 1, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
136
137
|
}, { deep: !0 });
|
|
137
|
-
const ue = r(0),
|
|
138
|
+
const ue = r(0), Ke = () => {
|
|
138
139
|
ue.value += 1;
|
|
139
140
|
};
|
|
140
|
-
|
|
141
|
-
t || (await
|
|
141
|
+
U([() => W.value, () => X.value], async ([t]) => {
|
|
142
|
+
t || (await M(), f.value = fe(), await M(), Ke(), await M(), ct({ x: 0, y: 0, width: 400, height: 400 }), K(!1));
|
|
142
143
|
}, { flush: "post", deep: !1 });
|
|
143
|
-
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } =
|
|
144
|
-
elementId: `cluster_${
|
|
144
|
+
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = zt({
|
|
145
|
+
elementId: `cluster_${H.value}`,
|
|
145
146
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
146
147
|
options: e.value.userOptions.print
|
|
147
|
-
}),
|
|
148
|
+
}), Qe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = p(() => Dt(e.value.customPalette)), d = r({
|
|
148
149
|
showTable: e.value.table.show,
|
|
149
150
|
showDataLabels: !0,
|
|
150
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
151
152
|
});
|
|
152
|
-
|
|
153
|
+
U(e, () => {
|
|
153
154
|
d.value = {
|
|
154
155
|
showTable: e.value.table.show,
|
|
155
156
|
showDataLabels: !0,
|
|
@@ -160,7 +161,7 @@ const Vt = ["id"], Gt = {
|
|
|
160
161
|
return Array.isArray(t) && t.length > 0 && t[0].nodes ? pe(t[0].nodes, l + 1) : l;
|
|
161
162
|
}
|
|
162
163
|
function fe() {
|
|
163
|
-
const t = pe(
|
|
164
|
+
const t = pe(X.value);
|
|
164
165
|
let l = 100, o = l;
|
|
165
166
|
for (let n = 0; n < t; n += 1)
|
|
166
167
|
l /= 1, o += l;
|
|
@@ -169,40 +170,40 @@ const Vt = ["id"], Gt = {
|
|
|
169
170
|
width: o
|
|
170
171
|
};
|
|
171
172
|
}
|
|
172
|
-
const
|
|
173
|
-
function me(t, l = { x: -
|
|
173
|
+
const f = r(fe());
|
|
174
|
+
function me(t, l = { x: -f.value.width / 2.43, y: f.value.height / 2 }, o = f.value.width / 1.1, n = 24, s = 0, i = 0, m = "#BBBBBB", Q = 0) {
|
|
174
175
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
175
|
-
const
|
|
176
|
+
const gt = Nt({
|
|
176
177
|
plot: l,
|
|
177
178
|
radius: o,
|
|
178
179
|
sides: t.length,
|
|
179
180
|
rotation: s
|
|
180
181
|
});
|
|
181
|
-
return t.forEach((
|
|
182
|
-
const
|
|
183
|
-
let ee =
|
|
182
|
+
return t.forEach((g, Te) => {
|
|
183
|
+
const $e = gt.coordinates[Te], _e = g.color ? (() => {
|
|
184
|
+
let ee = Ne(g.color);
|
|
184
185
|
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
185
186
|
})() : null;
|
|
186
|
-
let
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
let S;
|
|
188
|
+
_e ? S = _e : Q === 0 ? S = m : Q === 1 ? (S = et.value[i] || Fe[i] || m, i += 1) : S = m, g.polygonPath = { coordinates: [$e] }, g.circleRadius = n, g.color = S, g.uid = Pe(), Array.isArray(g.nodes) && g.nodes.length && (g.nodes = me(
|
|
189
|
+
g.nodes,
|
|
190
|
+
$e,
|
|
190
191
|
o / 2.9,
|
|
191
192
|
n / 2.2,
|
|
192
|
-
s + Math.PI *
|
|
193
|
+
s + Math.PI * Te / g.nodes.length,
|
|
193
194
|
i,
|
|
194
|
-
|
|
195
|
+
S,
|
|
195
196
|
Q + 1
|
|
196
197
|
));
|
|
197
198
|
}), t;
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
+
function tt(t) {
|
|
200
201
|
const l = /* @__PURE__ */ new Set();
|
|
201
202
|
function o(s) {
|
|
202
203
|
s.forEach((i) => {
|
|
203
204
|
if (!i.color) return;
|
|
204
|
-
let
|
|
205
|
-
/^#?[0-9A-F]{6}$/i.test(
|
|
205
|
+
let m = i.color;
|
|
206
|
+
/^#?[0-9A-F]{6}$/i.test(m) || (m = Ne(m)), m.startsWith("#") || (m = `#${m}`), l.add(m), Array.isArray(i.nodes) && i.nodes.length && o(i.nodes);
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
209
|
o(t);
|
|
@@ -212,11 +213,11 @@ const Vt = ["id"], Gt = {
|
|
|
212
213
|
n[s] = `gradient_${i}`;
|
|
213
214
|
}), n;
|
|
214
215
|
}
|
|
215
|
-
const
|
|
216
|
-
const t =
|
|
216
|
+
const ot = p(() => tt(y.value)), y = p(() => {
|
|
217
|
+
const t = It(X.value);
|
|
217
218
|
return me(t);
|
|
218
219
|
}), Z = r(null);
|
|
219
|
-
function
|
|
220
|
+
function lt(t) {
|
|
220
221
|
Z.value = {
|
|
221
222
|
datapoint: t,
|
|
222
223
|
seriesIndex: -1,
|
|
@@ -224,13 +225,13 @@ const Vt = ["id"], Gt = {
|
|
|
224
225
|
config: e.value
|
|
225
226
|
};
|
|
226
227
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
227
|
-
if (
|
|
228
|
+
if (Bt(l) && Rt(() => l({
|
|
228
229
|
seriesIndex: -1,
|
|
229
230
|
datapoint: t,
|
|
230
231
|
series: y.value,
|
|
231
232
|
config: e.value
|
|
232
233
|
})))
|
|
233
|
-
|
|
234
|
+
x.value = l({
|
|
234
235
|
seriesIndex: -1,
|
|
235
236
|
// well, ok
|
|
236
237
|
datapoint: t,
|
|
@@ -239,14 +240,14 @@ const Vt = ["id"], Gt = {
|
|
|
239
240
|
});
|
|
240
241
|
else {
|
|
241
242
|
let o = "";
|
|
242
|
-
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`),
|
|
243
|
+
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), x.value = `<div style="font-family:inherit">${o}</div>`;
|
|
243
244
|
}
|
|
244
245
|
}
|
|
245
|
-
const
|
|
246
|
-
function lt(t) {
|
|
247
|
-
ge.value = x.value, x.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ge.value || x.value, seriesIndex: -1 }), t ? (H.value = !0, ot(t), S.value = t.uid) : (H.value = !1, B.value = "", S.value = null);
|
|
248
|
-
}
|
|
246
|
+
const R = r(null), F = r(null), ge = r(null);
|
|
249
247
|
function at(t) {
|
|
248
|
+
ge.value = R.value, R.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ge.value || R.value, seriesIndex: -1 }), t ? (V.value = !0, lt(t), F.value = t.uid) : (V.value = !1, x.value = "", F.value = null);
|
|
249
|
+
}
|
|
250
|
+
function st(t) {
|
|
250
251
|
const l = [];
|
|
251
252
|
function o(n) {
|
|
252
253
|
n.forEach((s) => {
|
|
@@ -261,12 +262,12 @@ const Vt = ["id"], Gt = {
|
|
|
261
262
|
}
|
|
262
263
|
return o(t), l;
|
|
263
264
|
}
|
|
264
|
-
const
|
|
265
|
+
const nt = p(() => st(y.value)), _ = p(() => {
|
|
265
266
|
const t = [
|
|
266
267
|
e.value.table.translations.nodeName,
|
|
267
268
|
e.value.table.translations.details,
|
|
268
269
|
e.value.table.translations.ancestor
|
|
269
|
-
], l =
|
|
270
|
+
], l = nt.value.map((s, i) => [
|
|
270
271
|
{
|
|
271
272
|
color: s.color,
|
|
272
273
|
name: s.name
|
|
@@ -298,12 +299,12 @@ const Vt = ["id"], Gt = {
|
|
|
298
299
|
};
|
|
299
300
|
});
|
|
300
301
|
function q(t = null) {
|
|
301
|
-
|
|
302
|
-
const l = _.value.body.map((s, i) => [[s[0].name], [s[1]], [s[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[..._.value.head]]].concat(l), n =
|
|
303
|
-
t ? t(n) :
|
|
302
|
+
M(() => {
|
|
303
|
+
const l = _.value.body.map((s, i) => [[s[0].name], [s[1]], [s[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[..._.value.head]]].concat(l), n = Lt(o);
|
|
304
|
+
t ? t(n) : xt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
304
305
|
});
|
|
305
306
|
}
|
|
306
|
-
function
|
|
307
|
+
function rt() {
|
|
307
308
|
return y.value;
|
|
308
309
|
}
|
|
309
310
|
const O = r(!1);
|
|
@@ -323,18 +324,18 @@ const Vt = ["id"], Gt = {
|
|
|
323
324
|
function J() {
|
|
324
325
|
N.value = !N.value;
|
|
325
326
|
}
|
|
326
|
-
const
|
|
327
|
+
const it = p(() => !N.value), { viewBox: E, resetZoom: K, isZoom: ut, setInitialViewBox: ct } = jt(B, {
|
|
327
328
|
x: 0,
|
|
328
329
|
y: 0,
|
|
329
|
-
width: Math.max(10,
|
|
330
|
-
height: Math.max(10,
|
|
331
|
-
}, e.value.style.chart.zoom.speed,
|
|
332
|
-
function
|
|
333
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }),
|
|
330
|
+
width: Math.max(10, f.value.width),
|
|
331
|
+
height: Math.max(10, f.value.height)
|
|
332
|
+
}, e.value.style.chart.zoom.speed, it);
|
|
333
|
+
function vt(t) {
|
|
334
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }), qe("selectNode", t);
|
|
334
335
|
}
|
|
335
|
-
async function
|
|
336
|
+
async function dt({ scale: t = 2 } = {}) {
|
|
336
337
|
if (!k.value) return;
|
|
337
|
-
const { width: l, height: o } = k.value.getBoundingClientRect(), n = l / o, { imageUri: s, base64: i } = await
|
|
338
|
+
const { width: l, height: o } = k.value.getBoundingClientRect(), n = l / o, { imageUri: s, base64: i } = await Wt({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
338
339
|
return {
|
|
339
340
|
imageUri: s,
|
|
340
341
|
base64: i,
|
|
@@ -344,10 +345,10 @@ const Vt = ["id"], Gt = {
|
|
|
344
345
|
aspectRatio: n
|
|
345
346
|
};
|
|
346
347
|
}
|
|
347
|
-
const L =
|
|
348
|
+
const L = p(() => {
|
|
348
349
|
const t = e.value.table.useDialog && !e.value.table.show, l = d.value.showTable;
|
|
349
350
|
return {
|
|
350
|
-
component: t ?
|
|
351
|
+
component: t ? Ye : Me,
|
|
351
352
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
352
353
|
props: t ? {
|
|
353
354
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -374,18 +375,31 @@ const Vt = ["id"], Gt = {
|
|
|
374
375
|
}
|
|
375
376
|
};
|
|
376
377
|
});
|
|
377
|
-
|
|
378
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
378
|
+
U(() => d.value.showTable, (t) => {
|
|
379
|
+
e.value.table.show || (t && e.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
|
|
379
380
|
});
|
|
380
381
|
function ke() {
|
|
381
|
-
d.value.showTable = !1,
|
|
382
|
+
d.value.showTable = !1, G.value && G.value.setTableIconState(!1);
|
|
383
|
+
}
|
|
384
|
+
const ht = p(() => e.value.style.chart.backgroundColor), pt = p(() => e.value.style.chart.title), { exportSvg: ft, getSvg: mt } = Ht({
|
|
385
|
+
svg: B,
|
|
386
|
+
title: pt,
|
|
387
|
+
backgroundColor: ht
|
|
388
|
+
});
|
|
389
|
+
async function we({ isCb: t }) {
|
|
390
|
+
if (t) {
|
|
391
|
+
const { blob: l, url: o, text: n, dataUrl: s } = await mt();
|
|
392
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: n, dataUrl: s });
|
|
393
|
+
} else
|
|
394
|
+
ft();
|
|
382
395
|
}
|
|
383
396
|
return Be({
|
|
384
|
-
getData:
|
|
385
|
-
getImage:
|
|
397
|
+
getData: rt,
|
|
398
|
+
getImage: dt,
|
|
386
399
|
generatePdf: de,
|
|
387
400
|
generateCsv: q,
|
|
388
401
|
generateImage: he,
|
|
402
|
+
generateSvg: we,
|
|
389
403
|
toggleTable: Ce,
|
|
390
404
|
toggleLabels: ye,
|
|
391
405
|
toggleTooltip: Ae,
|
|
@@ -394,25 +408,25 @@ const Vt = ["id"], Gt = {
|
|
|
394
408
|
}), (t, l) => (u(), C("div", {
|
|
395
409
|
ref_key: "moleculeChart",
|
|
396
410
|
ref: k,
|
|
397
|
-
class:
|
|
398
|
-
style:
|
|
399
|
-
id: `cluster_${
|
|
411
|
+
class: Oe(`vue-data-ui-component vue-ui-molecule ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
412
|
+
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
413
|
+
id: `cluster_${H.value}`,
|
|
400
414
|
onMouseleave: l[2] || (l[2] = (o) => {
|
|
401
|
-
|
|
415
|
+
R.value = null, F.value = null, a(re)(!1);
|
|
402
416
|
}),
|
|
403
417
|
onMouseenter: l[3] || (l[3] = () => a(re)(!0))
|
|
404
418
|
}, [
|
|
405
|
-
e.value.userOptions.buttons.annotator ? (u(), w(a(
|
|
419
|
+
e.value.userOptions.buttons.annotator ? (u(), w(a(He), {
|
|
406
420
|
key: 0,
|
|
407
|
-
svgRef: a(
|
|
421
|
+
svgRef: a(B),
|
|
408
422
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
409
423
|
color: e.value.style.chart.color,
|
|
410
424
|
active: N.value,
|
|
411
425
|
onClose: J
|
|
412
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
413
|
-
|
|
414
|
-
e.value.style.chart.title.text ? (u(), C("div",
|
|
415
|
-
(u(), w(a(
|
|
426
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
427
|
+
Qe.value ? (u(), C("div", qt, null, 512)) : b("", !0),
|
|
428
|
+
e.value.style.chart.title.text ? (u(), C("div", Jt, [
|
|
429
|
+
(u(), w(a(Ee), {
|
|
416
430
|
key: `title_${se.value}`,
|
|
417
431
|
config: {
|
|
418
432
|
title: {
|
|
@@ -425,20 +439,21 @@ const Vt = ["id"], Gt = {
|
|
|
425
439
|
}
|
|
426
440
|
}
|
|
427
441
|
}, null, 8, ["config"]))
|
|
428
|
-
])) :
|
|
429
|
-
e.value.userOptions.show && oe.value && (a(ie) || a(
|
|
442
|
+
])) : b("", !0),
|
|
443
|
+
e.value.userOptions.show && oe.value && (a(ie) || a(j)) ? (u(), w(a(Ve), {
|
|
430
444
|
ref_key: "userOptionsRef",
|
|
431
|
-
ref:
|
|
445
|
+
ref: G,
|
|
432
446
|
key: `user_options_${ae.value}`,
|
|
433
447
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
434
448
|
color: e.value.style.chart.color,
|
|
435
449
|
isPrinting: a(ce),
|
|
436
450
|
isImaging: a(ve),
|
|
437
|
-
uid:
|
|
451
|
+
uid: H.value,
|
|
438
452
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
439
453
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
440
454
|
hasXls: e.value.userOptions.buttons.csv,
|
|
441
455
|
hasImg: e.value.userOptions.buttons.img,
|
|
456
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
442
457
|
hasTable: e.value.userOptions.buttons.table,
|
|
443
458
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
444
459
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
@@ -455,14 +470,15 @@ const Vt = ["id"], Gt = {
|
|
|
455
470
|
onGeneratePdf: a(de),
|
|
456
471
|
onGenerateCsv: q,
|
|
457
472
|
onGenerateImage: a(he),
|
|
473
|
+
onGenerateSvg: we,
|
|
458
474
|
onToggleTable: Ce,
|
|
459
475
|
onToggleLabels: ye,
|
|
460
476
|
onToggleTooltip: Ae,
|
|
461
477
|
onToggleAnnotator: J,
|
|
462
|
-
style:
|
|
463
|
-
visibility: a(ie) ? a(
|
|
478
|
+
style: z({
|
|
479
|
+
visibility: a(ie) ? a(j) ? "visible" : "hidden" : "visible"
|
|
464
480
|
})
|
|
465
|
-
},
|
|
481
|
+
}, Se({ _: 2 }, [
|
|
466
482
|
t.$slots.menuIcon ? {
|
|
467
483
|
name: "menuIcon",
|
|
468
484
|
fn: c(({ isOpen: o, color: n }) => [
|
|
@@ -526,31 +542,31 @@ const Vt = ["id"], Gt = {
|
|
|
526
542
|
]),
|
|
527
543
|
key: "8"
|
|
528
544
|
} : void 0
|
|
529
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
545
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
530
546
|
(u(), C("svg", {
|
|
531
547
|
ref_key: "svgRef",
|
|
532
|
-
ref:
|
|
548
|
+
ref: B,
|
|
533
549
|
key: `svg_${ue.value}`,
|
|
534
|
-
xmlns: a(
|
|
535
|
-
viewBox: `${a(
|
|
536
|
-
class:
|
|
537
|
-
style:
|
|
550
|
+
xmlns: a(Pt),
|
|
551
|
+
viewBox: `${a(E).x} ${a(E).y} ${a(E).width} ${a(E).height}`,
|
|
552
|
+
class: Oe({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
553
|
+
style: z(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
538
554
|
}, [
|
|
539
|
-
|
|
555
|
+
D(a(Ge)),
|
|
540
556
|
t.$slots["chart-background"] ? (u(), C("foreignObject", {
|
|
541
557
|
key: 0,
|
|
542
558
|
x: 0,
|
|
543
559
|
y: 0,
|
|
544
|
-
width:
|
|
545
|
-
height:
|
|
560
|
+
width: f.value.width <= 0 ? 10 : f.value.width,
|
|
561
|
+
height: f.value.height <= 0 ? 10 : f.value.height,
|
|
546
562
|
style: {
|
|
547
563
|
pointerEvents: "none"
|
|
548
564
|
}
|
|
549
565
|
}, [
|
|
550
566
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
551
|
-
], 8,
|
|
552
|
-
|
|
553
|
-
(u(!0), C(
|
|
567
|
+
], 8, Qt)) : b("", !0),
|
|
568
|
+
I("defs", null, [
|
|
569
|
+
(u(!0), C(At, null, kt(Object.keys(ot.value), (o) => (u(), C("radialGradient", {
|
|
554
570
|
id: `gradient_${o}`,
|
|
555
571
|
cx: "50%",
|
|
556
572
|
cy: "30%",
|
|
@@ -558,69 +574,69 @@ const Vt = ["id"], Gt = {
|
|
|
558
574
|
fx: "50%",
|
|
559
575
|
fy: "50%"
|
|
560
576
|
}, [
|
|
561
|
-
|
|
577
|
+
I("stop", {
|
|
562
578
|
offset: "0%",
|
|
563
|
-
"stop-color": a(
|
|
564
|
-
}, null, 8,
|
|
565
|
-
|
|
579
|
+
"stop-color": a(Ft)(o, 0.5)
|
|
580
|
+
}, null, 8, to),
|
|
581
|
+
I("stop", {
|
|
566
582
|
offset: "100%",
|
|
567
583
|
"stop-color": o
|
|
568
|
-
}, null, 8,
|
|
569
|
-
], 8,
|
|
584
|
+
}, null, 8, oo)
|
|
585
|
+
], 8, eo))), 256))
|
|
570
586
|
]),
|
|
571
|
-
|
|
587
|
+
D(a(We), {
|
|
572
588
|
dataset: y.value,
|
|
573
589
|
color: e.value.style.chart.links.stroke,
|
|
574
590
|
backgroundColor: e.value.style.chart.backgroundColor
|
|
575
591
|
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
576
|
-
|
|
592
|
+
D(a(je), {
|
|
577
593
|
dataset: y.value,
|
|
578
|
-
hoveredUid:
|
|
594
|
+
hoveredUid: F.value,
|
|
579
595
|
stroke: e.value.style.chart.nodes.stroke,
|
|
580
596
|
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
581
|
-
onClick:
|
|
582
|
-
onHover:
|
|
597
|
+
onClick: vt,
|
|
598
|
+
onHover: at
|
|
583
599
|
}, {
|
|
584
600
|
node: c(({ node: o }) => [
|
|
585
601
|
v(t.$slots, "node", T($({ node: o })), void 0, !0)
|
|
586
602
|
]),
|
|
587
603
|
_: 3
|
|
588
604
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
589
|
-
d.value.showDataLabels && !a(
|
|
605
|
+
d.value.showDataLabels && !a(W) ? (u(), w(a(Xe), {
|
|
590
606
|
key: 1,
|
|
591
607
|
dataset: y.value,
|
|
592
608
|
color: e.value.style.chart.color,
|
|
593
|
-
hoveredUid:
|
|
594
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) :
|
|
595
|
-
v(t.$slots, "svg", { svg:
|
|
596
|
-
], 14,
|
|
597
|
-
t.$slots.watermark ? (u(), C("div",
|
|
609
|
+
hoveredUid: F.value
|
|
610
|
+
}, null, 8, ["dataset", "color", "hoveredUid"])) : b("", !0),
|
|
611
|
+
v(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
612
|
+
], 14, Kt)),
|
|
613
|
+
t.$slots.watermark ? (u(), C("div", lo, [
|
|
598
614
|
v(t.$slots, "watermark", T($({ isPrinting: a(ce) || a(ve) })), void 0, !0)
|
|
599
|
-
])) :
|
|
600
|
-
a(
|
|
615
|
+
])) : b("", !0),
|
|
616
|
+
a(ut) ? (u(), C("div", ao, [
|
|
601
617
|
v(t.$slots, "reset-action", { reset: a(K) }, () => [
|
|
602
|
-
|
|
618
|
+
I("button", {
|
|
603
619
|
"data-cy-reset": "",
|
|
604
620
|
tabindex: "0",
|
|
605
621
|
role: "button",
|
|
606
622
|
class: "vue-data-ui-refresh-button",
|
|
607
|
-
style:
|
|
623
|
+
style: z({
|
|
608
624
|
background: e.value.style.chart.backgroundColor
|
|
609
625
|
}),
|
|
610
626
|
onClick: l[0] || (l[0] = (o) => a(K)(!0))
|
|
611
627
|
}, [
|
|
612
|
-
|
|
628
|
+
D(a(te), {
|
|
613
629
|
name: "refresh",
|
|
614
630
|
stroke: e.value.style.chart.color
|
|
615
631
|
}, null, 8, ["stroke"])
|
|
616
632
|
], 4)
|
|
617
633
|
], !0)
|
|
618
|
-
])) :
|
|
619
|
-
t.$slots.source ? (u(), C("div",
|
|
634
|
+
])) : b("", !0),
|
|
635
|
+
t.$slots.source ? (u(), C("div", so, [
|
|
620
636
|
v(t.$slots, "source", {}, void 0, !0)
|
|
621
|
-
], 512)) :
|
|
622
|
-
|
|
623
|
-
show: d.value.showTooltip &&
|
|
637
|
+
], 512)) : b("", !0),
|
|
638
|
+
D(a(Ue), {
|
|
639
|
+
show: d.value.showTooltip && V.value,
|
|
624
640
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
625
641
|
color: e.value.style.chart.tooltip.color,
|
|
626
642
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -631,7 +647,7 @@ const Vt = ["id"], Gt = {
|
|
|
631
647
|
position: e.value.style.chart.tooltip.position,
|
|
632
648
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
633
649
|
parent: k.value,
|
|
634
|
-
content:
|
|
650
|
+
content: x.value,
|
|
635
651
|
isFullscreen: O.value,
|
|
636
652
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
637
653
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -647,13 +663,13 @@ const Vt = ["id"], Gt = {
|
|
|
647
663
|
]),
|
|
648
664
|
_: 3
|
|
649
665
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
650
|
-
oe.value && e.value.userOptions.buttons.table ? (u(), w(
|
|
666
|
+
oe.value && e.value.userOptions.buttons.table ? (u(), w(wt(L.value.component), Tt({ key: 7 }, L.value.props, {
|
|
651
667
|
ref_key: "tableUnit",
|
|
652
|
-
ref:
|
|
668
|
+
ref: P,
|
|
653
669
|
onClose: ke
|
|
654
|
-
}),
|
|
670
|
+
}), Se({
|
|
655
671
|
content: c(() => [
|
|
656
|
-
(u(), w(a(
|
|
672
|
+
(u(), w(a(ze), {
|
|
657
673
|
key: `table_${ne.value}`,
|
|
658
674
|
colNames: _.value.colNames,
|
|
659
675
|
head: _.value.head,
|
|
@@ -664,10 +680,10 @@ const Vt = ["id"], Gt = {
|
|
|
664
680
|
onClose: ke
|
|
665
681
|
}, {
|
|
666
682
|
th: c(({ th: o }) => [
|
|
667
|
-
|
|
683
|
+
I("div", {
|
|
668
684
|
innerHTML: o,
|
|
669
685
|
style: { display: "flex", "align-items": "center" }
|
|
670
|
-
}, null, 8,
|
|
686
|
+
}, null, 8, no)
|
|
671
687
|
]),
|
|
672
688
|
td: c(({ td: o }) => [
|
|
673
689
|
De(Ie(o.name || o), 1)
|
|
@@ -687,12 +703,12 @@ const Vt = ["id"], Gt = {
|
|
|
687
703
|
e.value.table.useDialog ? {
|
|
688
704
|
name: "actions",
|
|
689
705
|
fn: c(() => [
|
|
690
|
-
|
|
706
|
+
I("button", {
|
|
691
707
|
tabindex: "0",
|
|
692
708
|
class: "vue-ui-user-options-button",
|
|
693
709
|
onClick: l[1] || (l[1] = (o) => q(e.value.userOptions.callbacks.csv))
|
|
694
710
|
}, [
|
|
695
|
-
|
|
711
|
+
D(a(te), {
|
|
696
712
|
name: "excel",
|
|
697
713
|
stroke: L.value.props.color
|
|
698
714
|
}, null, 8, ["stroke"])
|
|
@@ -700,11 +716,11 @@ const Vt = ["id"], Gt = {
|
|
|
700
716
|
]),
|
|
701
717
|
key: "1"
|
|
702
718
|
} : void 0
|
|
703
|
-
]), 1040)) :
|
|
704
|
-
a(
|
|
705
|
-
], 46,
|
|
719
|
+
]), 1040)) : b("", !0),
|
|
720
|
+
a(W) ? (u(), w(Mt, { key: 8 })) : b("", !0)
|
|
721
|
+
], 46, Zt));
|
|
706
722
|
}
|
|
707
|
-
},
|
|
723
|
+
}, Ao = /* @__PURE__ */ Yt(ro, [["__scopeId", "data-v-b73208de"]]);
|
|
708
724
|
export {
|
|
709
|
-
|
|
725
|
+
Ao as default
|
|
710
726
|
};
|