vue-data-ui 3.25.7 → 3.25.9
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
- package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
- package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
- package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
- package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
- package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
- package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
- package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
- package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
- package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
- package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
- package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
- package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
- package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
- package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
- package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
- package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
- package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
- package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
- package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
- package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
- package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
- package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
- package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
- package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
- package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
- package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
- package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
- package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
- package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
- package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
- package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
- package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
- package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
- package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
- package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
- package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
- package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
- package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
- package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, S as a, X as ee, Y as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { Fragment as s, Teleport as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Lt as i, S as a, X as ee, Y as te, Z as ne, Zt as re, bt as o, i as ie, jt as ae, q as oe, t as se, w as ce, xt as le } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as fe } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as pe } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as me, t as he } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as _e } from "./useChartExport-iwOqiIWX.js";
|
|
9
|
+
import { t as ve } from "./img-DhGApYG0.js";
|
|
10
|
+
import { t as ye } from "./Shape-CIqU-p2F.js";
|
|
11
|
+
import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { t as xe } from "./DefGrad-DVBqDjhO.js";
|
|
13
|
+
import { t as Se } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
14
|
+
import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as we } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as Te } from "./geoProjections-CEo3dVaL.js";
|
|
17
|
+
import { Fragment as s, Teleport as Ee, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as De, createTextVNode as p, createVNode as m, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as je, onMounted as Me, openBlock as y, ref as b, renderList as Ne, renderSlot as x, resolveDynamicComponent as Pe, toDisplayString as S, toRefs as Fe, unref as C, watch as Ie, withCtx as w, withModifiers as Le } from "vue";
|
|
18
18
|
//#region src/resources/worldGeo.js
|
|
19
19
|
var Re = 1e3, ze = [
|
|
20
20
|
"name",
|
|
@@ -1981,7 +1981,7 @@ var Ge = {
|
|
|
1981
1981
|
}, st = ["id"], ct = ["onClick"], lt = { style: {
|
|
1982
1982
|
display: "flex",
|
|
1983
1983
|
"align-items": "center"
|
|
1984
|
-
} }, ut = .5, dt = /*#__PURE__*/
|
|
1984
|
+
} }, ut = .5, dt = /*#__PURE__*/ be({
|
|
1985
1985
|
__name: "vue-ui-world",
|
|
1986
1986
|
props: {
|
|
1987
1987
|
config: {
|
|
@@ -2002,34 +2002,34 @@ var Ge = {
|
|
|
2002
2002
|
"selectLegend",
|
|
2003
2003
|
"copyAlt"
|
|
2004
2004
|
],
|
|
2005
|
-
setup(e, { expose:
|
|
2006
|
-
let ze =
|
|
2005
|
+
setup(e, { expose: be, emit: Re }) {
|
|
2006
|
+
let ze = h(() => import("./Title-CPHi-evi.js").then((e) => e.t)), Be = h(() => import("./Legend-X4kF4PvW.js").then((e) => e.n)), Ve = h(() => import("./Tooltip-hhrkQ3Lk.js")), He = h(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Ue = h(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), We = h(() => import("./DataTable-oiM9uWrQ.js")), Ke = h(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), dt = h(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), ft = h(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), pt = h(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_world: mt } = fe(), T = e, ht = Re, gt = c({
|
|
2007
2007
|
get() {
|
|
2008
|
-
return !!
|
|
2008
|
+
return !!L.value;
|
|
2009
2009
|
},
|
|
2010
2010
|
set(e) {
|
|
2011
2011
|
return e;
|
|
2012
2012
|
}
|
|
2013
|
-
}), _t = c(() => gt ? Object.values(
|
|
2013
|
+
}), _t = c(() => gt ? Object.values(L.value).some((e) => Object.hasOwn(e, "category")) : !1), E = b(null), vt = b(null), yt = b(null), bt = b(null), xt = b(null), St = b(0), Ct = b(0), wt = b(0), D = b(oe()), Tt = b(!1), Et = b(""), Dt = b(0), Ot = b(!1), O = b(null), kt = b(null);
|
|
2014
2014
|
Me(() => {
|
|
2015
|
-
|
|
2015
|
+
Ot.value = !0;
|
|
2016
2016
|
});
|
|
2017
|
-
let
|
|
2018
|
-
function
|
|
2019
|
-
let e =
|
|
2020
|
-
userConfig:
|
|
2017
|
+
let At = Ge, { projections: jt, getProjectedBounds: Mt, setupTerritories: Nt, geoToPath: Pt } = Te;
|
|
2018
|
+
function Ft() {
|
|
2019
|
+
let e = ge({
|
|
2020
|
+
userConfig: T.config,
|
|
2021
2021
|
defaultConfig: mt
|
|
2022
2022
|
});
|
|
2023
|
-
return
|
|
2023
|
+
return T.config && o(T.config, "style.chart.territory.colors.min") ? e.style.chart.territory.colors.min = a(T.config.style.chart.territory.colors.min) : e.style.chart.territory.colors.min = e.style.chart.territory.emptyColor, T.config && o(T.config, "style.chart.territory.colors.max") ? e.style.chart.territory.colors.max = a(T.config.style.chart.territory.colors.max) : e.style.chart.territory.colors.max = i[0], At = Nt(e, At), e;
|
|
2024
2024
|
}
|
|
2025
|
-
let
|
|
2026
|
-
|
|
2027
|
-
config: () =>
|
|
2028
|
-
dataset: () =>
|
|
2025
|
+
let k = b(Ft()), A = c(() => k.value.userOptions), j = c(() => k.value.style.chart.tooltip), M = c(() => k.value.style.chart.globe), N = c(() => k.value.style.chart.territory), P = c(() => k.value.style.chart.legend), F = c(() => k.value.style.chart);
|
|
2026
|
+
ue({
|
|
2027
|
+
config: () => k.value,
|
|
2028
|
+
dataset: () => T.dataset,
|
|
2029
2029
|
component: "VueUiWorld",
|
|
2030
|
-
rules: [
|
|
2030
|
+
rules: [de.noHint]
|
|
2031
2031
|
});
|
|
2032
|
-
let
|
|
2032
|
+
let I = c(() => k.value.userOptions.useCursorPointer), It = c(() => re({
|
|
2033
2033
|
defaultConfig: {
|
|
2034
2034
|
userOptions: { show: !1 },
|
|
2035
2035
|
table: { show: !1 },
|
|
@@ -2045,30 +2045,42 @@ var Ge = {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
} }
|
|
2047
2047
|
},
|
|
2048
|
-
userConfig:
|
|
2049
|
-
})), { loading:
|
|
2050
|
-
...Fe(
|
|
2051
|
-
FINAL_CONFIG:
|
|
2052
|
-
prepareConfig:
|
|
2053
|
-
skeletonDataset:
|
|
2054
|
-
skeletonConfig:
|
|
2055
|
-
defaultConfig:
|
|
2056
|
-
userConfig:
|
|
2048
|
+
userConfig: k.value.skeletonConfig ?? {}
|
|
2049
|
+
})), { loading: Lt, FINAL_DATASET: L } = me({
|
|
2050
|
+
...Fe(T),
|
|
2051
|
+
FINAL_CONFIG: k,
|
|
2052
|
+
prepareConfig: Ft,
|
|
2053
|
+
skeletonDataset: T.config?.skeletonDataset ?? [],
|
|
2054
|
+
skeletonConfig: re({
|
|
2055
|
+
defaultConfig: k.value,
|
|
2056
|
+
userConfig: It.value
|
|
2057
2057
|
})
|
|
2058
|
-
}), { userOptionsVisible:
|
|
2059
|
-
showTable:
|
|
2060
|
-
showTooltip:
|
|
2058
|
+
}), { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Ce({ config: k.value }), { svgRef: Vt } = we({ config: F.value.title }), R = b({
|
|
2059
|
+
showTable: k.value.table.show,
|
|
2060
|
+
showTooltip: j.value.show
|
|
2061
2061
|
});
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2062
|
+
function Ht(e) {
|
|
2063
|
+
let t = ne(e);
|
|
2064
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
2065
|
+
}
|
|
2066
|
+
let Ut = Ht(T.config);
|
|
2067
|
+
Ie(() => T.config, (e, t) => {
|
|
2068
|
+
let n = Ht(e), r = n !== Ut;
|
|
2069
|
+
Ut = n;
|
|
2070
|
+
let i = Ft();
|
|
2071
|
+
if (!r) {
|
|
2072
|
+
k.value.style.chart.tooltip = i.style.chart.tooltip, R.value.showTooltip = k.value.style.chart.tooltip.show;
|
|
2073
|
+
return;
|
|
2074
|
+
}
|
|
2075
|
+
k.value = i, Rt.value = !k.value.userOptions.showOnChartHover, St.value += 1, wt.value += 1, Ct.value += 1, R.value.showTable = k.value.table.show, R.value.showTooltip = j.value.show;
|
|
2076
|
+
}), Ie(k, () => {
|
|
2077
|
+
R.value = {
|
|
2078
|
+
showTable: k.value.table.show,
|
|
2079
|
+
showTooltip: j.value.show
|
|
2068
2080
|
};
|
|
2069
2081
|
}, { immediate: !0 });
|
|
2070
|
-
let
|
|
2071
|
-
let { height: e, width: t } =
|
|
2082
|
+
let Wt = c(() => ce(k.value.customPalette)), z = c(() => k.value.projection || "globe"), B = c(() => {
|
|
2083
|
+
let { height: e, width: t } = F.value.dimensions;
|
|
2072
2084
|
return {
|
|
2073
2085
|
aitoff: {
|
|
2074
2086
|
width: t || 1e3,
|
|
@@ -2122,9 +2134,9 @@ var Ge = {
|
|
|
2122
2134
|
width: t || 1e3,
|
|
2123
2135
|
height: e || 1e3
|
|
2124
2136
|
}
|
|
2125
|
-
}[
|
|
2126
|
-
}),
|
|
2127
|
-
let { minX: e, minY: t, width: n, height: r } =
|
|
2137
|
+
}[z.value];
|
|
2138
|
+
}), V = c(() => {
|
|
2139
|
+
let { minX: e, minY: t, width: n, height: r } = Mt(jt[z.value], At.features, B.value.width, B.value.height, q.value);
|
|
2128
2140
|
return {
|
|
2129
2141
|
str: `${e} ${t} ${n} ${r}`,
|
|
2130
2142
|
minX: e,
|
|
@@ -2132,205 +2144,205 @@ var Ge = {
|
|
|
2132
2144
|
width: n,
|
|
2133
2145
|
height: r
|
|
2134
2146
|
};
|
|
2135
|
-
}),
|
|
2136
|
-
function
|
|
2137
|
-
return typeof e == "number" ?
|
|
2147
|
+
}), Gt = c(() => Object.values(L.value).map((e) => e.value)), Kt = c(() => Math.min(...Gt.value)), qt = c(() => Math.max(...Gt.value));
|
|
2148
|
+
function Jt(e) {
|
|
2149
|
+
return typeof e == "number" ? le(N.value.colors.min || "#FFFFFF00", N.value.colors.max || Wt.value[0] || i[0], Kt.value, qt.value, e) : N.value.emptyColor;
|
|
2138
2150
|
}
|
|
2139
|
-
function
|
|
2140
|
-
return
|
|
2141
|
-
projection:
|
|
2142
|
-
width:
|
|
2143
|
-
height:
|
|
2144
|
-
center:
|
|
2151
|
+
function Yt(e) {
|
|
2152
|
+
return Pt(e, {
|
|
2153
|
+
projection: z.value,
|
|
2154
|
+
width: B.value.width,
|
|
2155
|
+
height: B.value.height,
|
|
2156
|
+
center: q.value
|
|
2145
2157
|
});
|
|
2146
2158
|
}
|
|
2147
|
-
let
|
|
2148
|
-
let e = Object.values(
|
|
2159
|
+
let Xt = c(() => {
|
|
2160
|
+
let e = Object.values(L.value).filter((e) => !!e.category), t = {};
|
|
2149
2161
|
return e.forEach((e) => {
|
|
2150
2162
|
t[e.category] || (t[e.category] = e);
|
|
2151
2163
|
}), Object.values(t).map((e, t) => ({
|
|
2152
2164
|
name: e.category,
|
|
2153
|
-
color: e.color ? a(e.color) :
|
|
2165
|
+
color: e.color ? a(e.color) : Wt.value[t] || i[t] || i[t % i.length]
|
|
2154
2166
|
}));
|
|
2155
2167
|
});
|
|
2156
|
-
function
|
|
2157
|
-
let t =
|
|
2168
|
+
function Zt(e) {
|
|
2169
|
+
let t = Xt.value.find((t) => t.name === e);
|
|
2158
2170
|
return t ? t.color : "#000000";
|
|
2159
2171
|
}
|
|
2160
|
-
let
|
|
2161
|
-
function
|
|
2162
|
-
return
|
|
2172
|
+
let Qt = /* @__PURE__ */ new Map();
|
|
2173
|
+
function $t(e) {
|
|
2174
|
+
return Qt.has(e) || Qt.set(e, `territory-${oe()}`), Qt.get(e);
|
|
2163
2175
|
}
|
|
2164
|
-
let
|
|
2176
|
+
let H = c(() => (q.value, At.features.map((e) => {
|
|
2165
2177
|
let t = e.properties.iso_a3;
|
|
2166
2178
|
(!t || t === "-99") && (t = e.properties.iso_a3_eh);
|
|
2167
|
-
let n =
|
|
2179
|
+
let n = L.value[t];
|
|
2168
2180
|
return {
|
|
2169
|
-
path:
|
|
2181
|
+
path: Yt(e.geometry),
|
|
2170
2182
|
name: e.properties.name,
|
|
2171
2183
|
geo: e,
|
|
2172
2184
|
code: t,
|
|
2173
2185
|
geometry: e.geometry,
|
|
2174
|
-
color: n && n.color ? a(n.color) : n && n.category ?
|
|
2186
|
+
color: n && n.color ? a(n.color) : n && n.category ? Zt(n.category) : Jt(n ? n.value : null),
|
|
2175
2187
|
value: n ? n.value : null,
|
|
2176
2188
|
category: n && n.category || null,
|
|
2177
2189
|
isActive: !!n,
|
|
2178
|
-
uid:
|
|
2190
|
+
uid: $t(t)
|
|
2179
2191
|
};
|
|
2180
|
-
}))),
|
|
2181
|
-
function
|
|
2182
|
-
|
|
2192
|
+
}))), U = b(!1);
|
|
2193
|
+
function en(e) {
|
|
2194
|
+
U.value = e, Dt.value += 1;
|
|
2183
2195
|
}
|
|
2184
|
-
let
|
|
2185
|
-
function
|
|
2186
|
-
|
|
2196
|
+
let W = b(!1);
|
|
2197
|
+
function tn() {
|
|
2198
|
+
W.value = !W.value;
|
|
2187
2199
|
}
|
|
2188
|
-
function
|
|
2189
|
-
|
|
2200
|
+
function nn() {
|
|
2201
|
+
R.value.showTable = !R.value.showTable;
|
|
2190
2202
|
}
|
|
2191
|
-
function
|
|
2192
|
-
|
|
2203
|
+
function rn() {
|
|
2204
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
2193
2205
|
}
|
|
2194
|
-
let
|
|
2195
|
-
elementId: `world_${
|
|
2196
|
-
fileName:
|
|
2197
|
-
options:
|
|
2198
|
-
}),
|
|
2199
|
-
function
|
|
2206
|
+
let an = c(() => k.value.userOptions.show && !F.value.title.text), { isPrinting: on, isImaging: sn, generatePdf: cn, generateImage: ln } = pe({
|
|
2207
|
+
elementId: `world_${D.value}`,
|
|
2208
|
+
fileName: F.value.title.text || "vue-ui-world",
|
|
2209
|
+
options: k.value.userOptions.print
|
|
2210
|
+
}), G = b(!1), un = b(null), K = b(null), dn = c(() => K.value ? Yt(K.value.geometry) : "");
|
|
2211
|
+
function fn(e) {
|
|
2200
2212
|
return e ? e.type === "Polygon" ? e.coordinates : e.type === "MultiPolygon" ? e.coordinates.reduce((e, t) => t[0].length > (e[0]?.length || 0) ? t : e, []) : [] : [];
|
|
2201
2213
|
}
|
|
2202
|
-
let
|
|
2203
|
-
let e =
|
|
2214
|
+
let pn = c(() => {
|
|
2215
|
+
let e = K.value?.geometry;
|
|
2204
2216
|
if (!e) return "";
|
|
2205
|
-
let t =
|
|
2217
|
+
let t = fn(e);
|
|
2206
2218
|
if (!t.length) return "";
|
|
2207
|
-
let n = t.flat(), r = [n.reduce((e, [t]) => e + t, 0) / n.length, n.reduce((e, [, t]) => e + t, 0) / n.length], i =
|
|
2219
|
+
let n = t.flat(), r = [n.reduce((e, [t]) => e + t, 0) / n.length, n.reduce((e, [, t]) => e + t, 0) / n.length], i = jt[z.value] || jt.globe, a = B.value.width, ee = B.value.height, te = t.map((e) => e.map(([e, t]) => i([e, t], a, ee, r))), ne = te.flat(), re = ne.map(([e, t]) => e), o = ne.map(([e, t]) => t), ie = Math.min(...re), ae = Math.max(...re), oe = Math.min(...o), se = Math.max(...o), ce = ae - ie || 1, le = se - oe || 1, ue = Math.min(64 / ce, 64 / le);
|
|
2208
2220
|
function de([e, t]) {
|
|
2209
2221
|
return [(e - ie) * ue + 8, (t - oe) * ue + 8];
|
|
2210
2222
|
}
|
|
2211
2223
|
return `
|
|
2212
2224
|
<svg width="80" height="80" viewBox="0 0 80 80" style="display:block;margin:auto;">
|
|
2213
2225
|
<rect x="0" y="0" width="80" height="80" rx="12" fill="transparent" opacity="0.93"/>
|
|
2214
|
-
<path d="${
|
|
2226
|
+
<path d="${te.map((e) => "M" + e.map(de).map(([e, t]) => `${e},${t}`).join("L") + "Z").join(" ")}" fill="${K.value?.color || N.value.emptyColor}" stroke="${N.value.stroke}" stroke-width="1"/>
|
|
2215
2227
|
</svg>
|
|
2216
2228
|
`;
|
|
2217
2229
|
});
|
|
2218
|
-
function
|
|
2219
|
-
|
|
2230
|
+
function mn({ datapoint: e, seriesIndex: t }) {
|
|
2231
|
+
Tt.value = !1, K.value = null, k.value.events.datapointLeave && k.value.events.datapointLeave({
|
|
2220
2232
|
datapoint: e,
|
|
2221
2233
|
seriesIndex: t
|
|
2222
2234
|
});
|
|
2223
2235
|
}
|
|
2224
|
-
function
|
|
2225
|
-
ht("selectDatapoint", e),
|
|
2236
|
+
function hn({ datapoint: e, seriesIndex: t }) {
|
|
2237
|
+
ht("selectDatapoint", e), k.value.events.datapointClick && k.value.events.datapointClick({
|
|
2226
2238
|
datapoint: e,
|
|
2227
2239
|
seriesIndex: t
|
|
2228
2240
|
});
|
|
2229
2241
|
}
|
|
2230
|
-
function
|
|
2231
|
-
|
|
2242
|
+
function gn({ datapoint: e, seriesIndex: t }) {
|
|
2243
|
+
k.value.events.datapointEnter && k.value.events.datapointEnter({
|
|
2232
2244
|
datapoint: e,
|
|
2233
2245
|
seriesIndex: t
|
|
2234
|
-
}),
|
|
2246
|
+
}), K.value = e, un.value = {
|
|
2235
2247
|
datapoint: e,
|
|
2236
|
-
config:
|
|
2237
|
-
series:
|
|
2238
|
-
},
|
|
2239
|
-
let r = "", i =
|
|
2240
|
-
if (
|
|
2248
|
+
config: k.value,
|
|
2249
|
+
series: H.value
|
|
2250
|
+
}, Tt.value = !0;
|
|
2251
|
+
let r = "", i = j.value.customFormat;
|
|
2252
|
+
if (G.value = !1, n(i)) try {
|
|
2241
2253
|
let t = i({
|
|
2242
2254
|
datapoint: e,
|
|
2243
|
-
config:
|
|
2244
|
-
series:
|
|
2255
|
+
config: k.value,
|
|
2256
|
+
series: H.value
|
|
2245
2257
|
});
|
|
2246
|
-
typeof t == "string" && (
|
|
2258
|
+
typeof t == "string" && (Et.value = t, G.value = !0);
|
|
2247
2259
|
} catch {
|
|
2248
|
-
console.warn("Custom format cannot be applied."),
|
|
2260
|
+
console.warn("Custom format cannot be applied."), G.value = !1;
|
|
2249
2261
|
}
|
|
2250
|
-
|
|
2262
|
+
G.value || (r += `
|
|
2251
2263
|
<div style="width:100%;">
|
|
2252
|
-
${
|
|
2264
|
+
${j.value.showMinimap ? `<div class="vue-ui-world-minimap">${pn.value}</div>` : ""}
|
|
2253
2265
|
<div style="display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px">
|
|
2254
2266
|
<svg viewBox="0 0 20 20" height="14" width="14">
|
|
2255
2267
|
<circle cx="10" cy="10" r="10" fill="${e.color}"/>
|
|
2256
2268
|
</svg>
|
|
2257
2269
|
<span>${e.name}:</span>
|
|
2258
2270
|
<b>
|
|
2259
|
-
${
|
|
2260
|
-
p:
|
|
2271
|
+
${ie(F.value.dataLabels.formatter, e.value, ee({
|
|
2272
|
+
p: F.value.dataLabels.prefix,
|
|
2261
2273
|
v: e.value,
|
|
2262
|
-
s:
|
|
2263
|
-
r:
|
|
2274
|
+
s: F.value.dataLabels.suffix,
|
|
2275
|
+
r: F.value.dataLabels.rounding
|
|
2264
2276
|
}))}
|
|
2265
2277
|
</b>
|
|
2266
2278
|
</div>
|
|
2267
2279
|
</div>
|
|
2268
|
-
`,
|
|
2280
|
+
`, Et.value = `<div>${r}</div>`);
|
|
2269
2281
|
}
|
|
2270
|
-
let
|
|
2282
|
+
let _n = b(!1), vn = b({
|
|
2271
2283
|
x: 0,
|
|
2272
2284
|
y: 0
|
|
2273
|
-
}),
|
|
2274
|
-
function
|
|
2285
|
+
}), q = b([M.value.center.x, M.value.center.y]), yn = [0, 0], J = null, Y = null;
|
|
2286
|
+
function bn(e) {
|
|
2275
2287
|
return Math.max(-90, Math.min(90, e));
|
|
2276
2288
|
}
|
|
2277
|
-
function
|
|
2289
|
+
function xn(e) {
|
|
2278
2290
|
return ((e + 180) % 360 + 360) % 360 - 180;
|
|
2279
2291
|
}
|
|
2280
|
-
function
|
|
2281
|
-
|
|
2292
|
+
function Sn() {
|
|
2293
|
+
J &&= (q.value = J, null);
|
|
2282
2294
|
}
|
|
2283
|
-
function
|
|
2284
|
-
if (
|
|
2285
|
-
|
|
2295
|
+
function Cn(e) {
|
|
2296
|
+
if (J = e, typeof requestAnimationFrame > "u") {
|
|
2297
|
+
Sn();
|
|
2286
2298
|
return;
|
|
2287
2299
|
}
|
|
2288
|
-
|
|
2289
|
-
|
|
2300
|
+
Y === null && (Y = requestAnimationFrame(() => {
|
|
2301
|
+
Y = null, Sn();
|
|
2290
2302
|
}));
|
|
2291
2303
|
}
|
|
2292
|
-
Ie(() => [
|
|
2293
|
-
|
|
2304
|
+
Ie(() => [M.value.center.x, M.value.center.y], ([e, t]) => {
|
|
2305
|
+
q.value = [e, t], J = null;
|
|
2294
2306
|
});
|
|
2295
|
-
function
|
|
2296
|
-
|
|
2307
|
+
function wn(e, t) {
|
|
2308
|
+
_n.value = !0, vn.value = {
|
|
2297
2309
|
x: e,
|
|
2298
2310
|
y: t
|
|
2299
|
-
},
|
|
2311
|
+
}, yn = J || [q.value[0], q.value[1]];
|
|
2300
2312
|
}
|
|
2301
|
-
function
|
|
2302
|
-
if (!
|
|
2303
|
-
let n = e -
|
|
2304
|
-
|
|
2313
|
+
function Tn(e, t) {
|
|
2314
|
+
if (!_n.value || z.value !== "globe" || W.value) return;
|
|
2315
|
+
let n = e - vn.value.x, r = t - vn.value.y;
|
|
2316
|
+
Cn([xn(yn[0] - n * ut), bn(yn[1] + r * ut)]);
|
|
2305
2317
|
}
|
|
2306
|
-
function
|
|
2307
|
-
|
|
2318
|
+
function En() {
|
|
2319
|
+
_n.value = !1, Y !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(Y), Y = null), Sn();
|
|
2308
2320
|
}
|
|
2309
|
-
function
|
|
2310
|
-
|
|
2321
|
+
function Dn(e) {
|
|
2322
|
+
wn(e.clientX, e.clientY);
|
|
2311
2323
|
}
|
|
2312
|
-
function
|
|
2313
|
-
|
|
2324
|
+
function On(e) {
|
|
2325
|
+
Tn(e.clientX, e.clientY);
|
|
2314
2326
|
}
|
|
2315
|
-
function
|
|
2316
|
-
|
|
2327
|
+
function kn() {
|
|
2328
|
+
En();
|
|
2317
2329
|
}
|
|
2318
|
-
function
|
|
2330
|
+
function An(e) {
|
|
2319
2331
|
let t = e.touches[0];
|
|
2320
|
-
|
|
2332
|
+
wn(t.clientX, t.clientY);
|
|
2321
2333
|
}
|
|
2322
|
-
function
|
|
2334
|
+
function jn(e) {
|
|
2323
2335
|
let t = e.touches[0];
|
|
2324
|
-
|
|
2336
|
+
Tn(t.clientX, t.clientY);
|
|
2325
2337
|
}
|
|
2326
|
-
function
|
|
2327
|
-
|
|
2338
|
+
function Mn() {
|
|
2339
|
+
En();
|
|
2328
2340
|
}
|
|
2329
2341
|
je(() => {
|
|
2330
|
-
|
|
2342
|
+
Y !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(Y), Y = null);
|
|
2331
2343
|
});
|
|
2332
|
-
let
|
|
2333
|
-
let e =
|
|
2344
|
+
let Nn = c(() => {
|
|
2345
|
+
let e = H.value.toSorted((e, t) => (t.value || 0) - (e.value || 0));
|
|
2334
2346
|
return {
|
|
2335
2347
|
head: e.map((e) => ({
|
|
2336
2348
|
name: e.name,
|
|
@@ -2339,65 +2351,65 @@ var Ge = {
|
|
|
2339
2351
|
})),
|
|
2340
2352
|
body: e.map((e) => e.value || 0)
|
|
2341
2353
|
};
|
|
2342
|
-
}),
|
|
2354
|
+
}), X = c(() => {
|
|
2343
2355
|
let e = [
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
], t =
|
|
2356
|
+
k.value.table.columnNames.series,
|
|
2357
|
+
k.value.table.columnNames.value,
|
|
2358
|
+
k.value.table.columnNames.category
|
|
2359
|
+
], t = Nn.value.head.map((e, t) => [
|
|
2348
2360
|
{
|
|
2349
2361
|
color: e.color,
|
|
2350
2362
|
name: e.name
|
|
2351
2363
|
},
|
|
2352
|
-
|
|
2364
|
+
Nn.value.body[t] || 0,
|
|
2353
2365
|
{ category: e.category }
|
|
2354
2366
|
]), n = {
|
|
2355
2367
|
th: {
|
|
2356
|
-
backgroundColor:
|
|
2357
|
-
color:
|
|
2358
|
-
outline:
|
|
2368
|
+
backgroundColor: k.value.table.th.backgroundColor,
|
|
2369
|
+
color: k.value.table.th.color,
|
|
2370
|
+
outline: k.value.table.th.outline
|
|
2359
2371
|
},
|
|
2360
2372
|
td: {
|
|
2361
|
-
backgroundColor:
|
|
2362
|
-
color:
|
|
2363
|
-
outline:
|
|
2373
|
+
backgroundColor: k.value.table.td.backgroundColor,
|
|
2374
|
+
color: k.value.table.td.color,
|
|
2375
|
+
outline: k.value.table.td.outline
|
|
2364
2376
|
},
|
|
2365
|
-
breakpoint:
|
|
2377
|
+
breakpoint: k.value.table.responsiveBreakpoint
|
|
2366
2378
|
};
|
|
2367
2379
|
return {
|
|
2368
|
-
colNames: [
|
|
2380
|
+
colNames: [k.value.table.columnNames.series, k.value.table.columnNames.value],
|
|
2369
2381
|
head: e,
|
|
2370
2382
|
body: t,
|
|
2371
2383
|
config: n
|
|
2372
2384
|
};
|
|
2373
2385
|
});
|
|
2374
|
-
function
|
|
2386
|
+
function Pn(e = null) {
|
|
2375
2387
|
ke(() => {
|
|
2376
|
-
let n =
|
|
2377
|
-
[
|
|
2378
|
-
[
|
|
2388
|
+
let n = Nn.value.head.map((e, t) => [[e.name], [Nn.value.body[t]]]), i = [
|
|
2389
|
+
[F.value.title.text],
|
|
2390
|
+
[F.value.title.subtitle.text],
|
|
2379
2391
|
[[
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2392
|
+
k.value.table.columnNames.series,
|
|
2393
|
+
k.value.table.columnNames.value,
|
|
2394
|
+
k.value.table.columnNames.category
|
|
2383
2395
|
]]
|
|
2384
2396
|
].concat(n), a = r(i);
|
|
2385
2397
|
e ? e(a) : t({
|
|
2386
2398
|
csvContent: a,
|
|
2387
|
-
title:
|
|
2399
|
+
title: F.value.title.text || "vue-ui-world"
|
|
2388
2400
|
});
|
|
2389
2401
|
});
|
|
2390
2402
|
}
|
|
2391
|
-
let Z =
|
|
2392
|
-
function
|
|
2403
|
+
let Z = b([]);
|
|
2404
|
+
function Fn() {
|
|
2393
2405
|
Z.value.length ? Z.value = [] : Q.value.forEach((e) => {
|
|
2394
2406
|
Z.value.push(e.name);
|
|
2395
2407
|
});
|
|
2396
2408
|
}
|
|
2397
|
-
function
|
|
2409
|
+
function In(e) {
|
|
2398
2410
|
Z.value.includes(e) ? Z.value = Z.value.filter((t) => t !== e) : Z.value.push(e), ht("selectLegend", { name: e });
|
|
2399
2411
|
}
|
|
2400
|
-
let Q = c(() => _t ?
|
|
2412
|
+
let Q = c(() => _t ? Xt.value.map(({ name: e, color: t }, n) => ({
|
|
2401
2413
|
name: e,
|
|
2402
2414
|
color: t,
|
|
2403
2415
|
shape: "circle",
|
|
@@ -2405,23 +2417,23 @@ var Ge = {
|
|
|
2405
2417
|
})).map((e) => ({
|
|
2406
2418
|
...e,
|
|
2407
2419
|
opacity: Z.value.includes(e.name) ? .5 : 1,
|
|
2408
|
-
segregate: () =>
|
|
2420
|
+
segregate: () => In(e.name),
|
|
2409
2421
|
isSegregated: Z.value.includes(e.name)
|
|
2410
|
-
})) : []),
|
|
2422
|
+
})) : []), Ln = c(() => ({
|
|
2411
2423
|
cy: "donut-div-legend",
|
|
2412
|
-
backgroundColor:
|
|
2413
|
-
color:
|
|
2414
|
-
fontSize:
|
|
2424
|
+
backgroundColor: P.value.backgroundColor,
|
|
2425
|
+
color: P.value.color,
|
|
2426
|
+
fontSize: P.value.fontSize,
|
|
2415
2427
|
paddingBottom: 12,
|
|
2416
|
-
fontWeight:
|
|
2428
|
+
fontWeight: P.value.bold ? "bold" : ""
|
|
2417
2429
|
}));
|
|
2418
|
-
function
|
|
2419
|
-
return
|
|
2430
|
+
function Rn() {
|
|
2431
|
+
return H.value;
|
|
2420
2432
|
}
|
|
2421
|
-
async function
|
|
2422
|
-
if (!
|
|
2423
|
-
let { width: t, height: n } =
|
|
2424
|
-
domElement:
|
|
2433
|
+
async function zn({ scale: e = 2 } = {}) {
|
|
2434
|
+
if (!E.value) return;
|
|
2435
|
+
let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
2436
|
+
domElement: E.value,
|
|
2425
2437
|
base64: !0,
|
|
2426
2438
|
img: !0,
|
|
2427
2439
|
scale: e
|
|
@@ -2429,108 +2441,108 @@ var Ge = {
|
|
|
2429
2441
|
return {
|
|
2430
2442
|
imageUri: i,
|
|
2431
2443
|
base64: a,
|
|
2432
|
-
title:
|
|
2444
|
+
title: F.value.title.text,
|
|
2433
2445
|
width: t,
|
|
2434
2446
|
height: n,
|
|
2435
2447
|
aspectRatio: r
|
|
2436
2448
|
};
|
|
2437
2449
|
}
|
|
2438
2450
|
let $ = c(() => {
|
|
2439
|
-
let e =
|
|
2451
|
+
let e = k.value.table.useDialog && !k.value.table.show, t = R.value.showTable;
|
|
2440
2452
|
return {
|
|
2441
2453
|
component: e ? pt : Ue,
|
|
2442
|
-
title: `${
|
|
2454
|
+
title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
|
|
2443
2455
|
props: e ? {
|
|
2444
|
-
backgroundColor:
|
|
2445
|
-
color:
|
|
2446
|
-
headerColor:
|
|
2447
|
-
headerBg:
|
|
2448
|
-
isFullscreen:
|
|
2449
|
-
fullscreenParent:
|
|
2456
|
+
backgroundColor: k.value.table.th.backgroundColor,
|
|
2457
|
+
color: k.value.table.th.color,
|
|
2458
|
+
headerColor: k.value.table.th.color,
|
|
2459
|
+
headerBg: k.value.table.th.backgroundColor,
|
|
2460
|
+
isFullscreen: U.value,
|
|
2461
|
+
fullscreenParent: E.value,
|
|
2450
2462
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
2451
|
-
isCursorPointer:
|
|
2463
|
+
isCursorPointer: I.value
|
|
2452
2464
|
} : {
|
|
2453
2465
|
hideDetails: !0,
|
|
2454
2466
|
config: {
|
|
2455
2467
|
open: t,
|
|
2456
2468
|
maxHeight: 1e4,
|
|
2457
2469
|
body: {
|
|
2458
|
-
backgroundColor:
|
|
2459
|
-
color:
|
|
2470
|
+
backgroundColor: F.value.backgroundColor,
|
|
2471
|
+
color: F.value.color
|
|
2460
2472
|
},
|
|
2461
2473
|
head: {
|
|
2462
|
-
backgroundColor:
|
|
2463
|
-
color:
|
|
2474
|
+
backgroundColor: F.value.backgroundColor,
|
|
2475
|
+
color: F.value.color
|
|
2464
2476
|
}
|
|
2465
2477
|
}
|
|
2466
2478
|
}
|
|
2467
2479
|
};
|
|
2468
2480
|
});
|
|
2469
|
-
Ie(() =>
|
|
2470
|
-
|
|
2481
|
+
Ie(() => R.value.showTable, (e) => {
|
|
2482
|
+
k.value.table.show || (e && k.value.table.useDialog && O.value ? O.value.open() : "close" in O.value && O.value.close());
|
|
2471
2483
|
});
|
|
2472
|
-
function
|
|
2473
|
-
|
|
2484
|
+
function Bn() {
|
|
2485
|
+
R.value.showTable = !1, kt.value && kt.value.setTableIconState(!1);
|
|
2474
2486
|
}
|
|
2475
|
-
let
|
|
2476
|
-
svg:
|
|
2477
|
-
title:
|
|
2478
|
-
legend:
|
|
2487
|
+
let Vn = c(() => F.value.backgroundColor), Hn = c(() => F.value.title), { isCallbackImaging: Un, isCallbackSvg: Wn, generateSvg: Gn, onGenerateImage: Kn } = _e({
|
|
2488
|
+
svg: Vt,
|
|
2489
|
+
title: Hn,
|
|
2490
|
+
legend: P,
|
|
2479
2491
|
legendItems: Q,
|
|
2480
|
-
backgroundColor:
|
|
2481
|
-
getSvgCallback: () =>
|
|
2482
|
-
generateImage:
|
|
2492
|
+
backgroundColor: Vn,
|
|
2493
|
+
getSvgCallback: () => k.value.userOptions.callbacks.svg,
|
|
2494
|
+
generateImage: ln
|
|
2483
2495
|
});
|
|
2484
|
-
async function
|
|
2496
|
+
async function qn() {
|
|
2485
2497
|
if (ht("copyAlt", {
|
|
2486
|
-
config:
|
|
2487
|
-
dataset:
|
|
2488
|
-
}), !
|
|
2498
|
+
config: k.value,
|
|
2499
|
+
dataset: H.value
|
|
2500
|
+
}), !k.value.userOptions.callbacks.altCopy) {
|
|
2489
2501
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
2490
2502
|
return;
|
|
2491
2503
|
}
|
|
2492
|
-
await Promise.resolve(
|
|
2493
|
-
config:
|
|
2494
|
-
dataset:
|
|
2504
|
+
await Promise.resolve(k.value.userOptions.callbacks.altCopy({
|
|
2505
|
+
config: k.value,
|
|
2506
|
+
dataset: H.value
|
|
2495
2507
|
}));
|
|
2496
2508
|
}
|
|
2497
|
-
return
|
|
2498
|
-
getData:
|
|
2499
|
-
getImage:
|
|
2500
|
-
generatePdf:
|
|
2501
|
-
generateCsv:
|
|
2502
|
-
generateImage:
|
|
2503
|
-
generateSvg:
|
|
2504
|
-
toggleTable:
|
|
2505
|
-
toggleTooltip:
|
|
2506
|
-
toggleAnnotator:
|
|
2507
|
-
toggleFullscreen:
|
|
2508
|
-
copyAlt:
|
|
2509
|
-
}), (e, t) => (
|
|
2509
|
+
return be({
|
|
2510
|
+
getData: Rn,
|
|
2511
|
+
getImage: zn,
|
|
2512
|
+
generatePdf: cn,
|
|
2513
|
+
generateCsv: Pn,
|
|
2514
|
+
generateImage: ln,
|
|
2515
|
+
generateSvg: Gn,
|
|
2516
|
+
toggleTable: nn,
|
|
2517
|
+
toggleTooltip: rn,
|
|
2518
|
+
toggleAnnotator: tn,
|
|
2519
|
+
toggleFullscreen: en,
|
|
2520
|
+
copyAlt: qn
|
|
2521
|
+
}), (e, t) => (y(), d("div", {
|
|
2510
2522
|
ref_key: "worldChart",
|
|
2511
|
-
ref:
|
|
2512
|
-
id: `world_${
|
|
2513
|
-
class: Ae(`vue-data-ui-component vue-ui-world ${
|
|
2514
|
-
style:
|
|
2515
|
-
onMouseenter: t[2] ||= () =>
|
|
2516
|
-
onMouseleave: t[3] ||= () =>
|
|
2523
|
+
ref: E,
|
|
2524
|
+
id: `world_${D.value}`,
|
|
2525
|
+
class: Ae(`vue-data-ui-component vue-ui-world ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
2526
|
+
style: v(`font-family:${k.value.style.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor}`),
|
|
2527
|
+
onMouseenter: t[2] ||= () => C(zt)(!0),
|
|
2528
|
+
onMouseleave: t[3] ||= () => C(zt)(!1)
|
|
2517
2529
|
}, [
|
|
2518
|
-
|
|
2530
|
+
A.value.buttons.annotator && C(Vt) ? (y(), l(C(Ke), {
|
|
2519
2531
|
key: 0,
|
|
2520
|
-
color:
|
|
2521
|
-
backgroundColor:
|
|
2522
|
-
active:
|
|
2523
|
-
svgRef:
|
|
2524
|
-
isCursorPointer:
|
|
2525
|
-
palette:
|
|
2526
|
-
onClose:
|
|
2532
|
+
color: F.value.color,
|
|
2533
|
+
backgroundColor: F.value.backgroundColor,
|
|
2534
|
+
active: W.value,
|
|
2535
|
+
svgRef: C(Vt),
|
|
2536
|
+
isCursorPointer: I.value,
|
|
2537
|
+
palette: A.value.annotatorPalette,
|
|
2538
|
+
onClose: tn
|
|
2527
2539
|
}, {
|
|
2528
|
-
"annotator-action-close":
|
|
2529
|
-
"annotator-action-color":
|
|
2530
|
-
"annotator-action-draw":
|
|
2531
|
-
"annotator-action-undo":
|
|
2532
|
-
"annotator-action-redo":
|
|
2533
|
-
"annotator-action-delete":
|
|
2540
|
+
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2541
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
|
|
2542
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
|
|
2543
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
|
|
2544
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
|
|
2545
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
|
|
2534
2546
|
_: 3
|
|
2535
2547
|
}, 8, [
|
|
2536
2548
|
"color",
|
|
@@ -2540,76 +2552,76 @@ var Ge = {
|
|
|
2540
2552
|
"isCursorPointer",
|
|
2541
2553
|
"palette"
|
|
2542
2554
|
])) : u("", !0),
|
|
2543
|
-
|
|
2544
|
-
|
|
2555
|
+
x(e.$slots, "userConfig", {}, void 0, !0),
|
|
2556
|
+
an.value ? (y(), d("div", {
|
|
2545
2557
|
key: 1,
|
|
2546
2558
|
ref_key: "noTitle",
|
|
2547
2559
|
ref: xt,
|
|
2548
2560
|
class: "vue-data-ui-no-title-space",
|
|
2549
2561
|
style: "height:36px; width: 100%;background:transparent"
|
|
2550
2562
|
}, null, 512)) : u("", !0),
|
|
2551
|
-
|
|
2563
|
+
F.value.title.text ? (y(), d("div", {
|
|
2552
2564
|
key: 2,
|
|
2553
2565
|
ref_key: "chartTitle",
|
|
2554
2566
|
ref: vt,
|
|
2555
2567
|
style: "width:100%;background:transparent"
|
|
2556
|
-
}, [(
|
|
2568
|
+
}, [(y(), l(C(ze), {
|
|
2557
2569
|
key: `title_${St.value}`,
|
|
2558
2570
|
config: {
|
|
2559
2571
|
title: {
|
|
2560
2572
|
cy: "donut-div-title",
|
|
2561
|
-
...
|
|
2573
|
+
...F.value.title
|
|
2562
2574
|
},
|
|
2563
2575
|
subtitle: {
|
|
2564
2576
|
cy: "donut-div-subtitle",
|
|
2565
|
-
...
|
|
2577
|
+
...F.value.title.subtitle
|
|
2566
2578
|
}
|
|
2567
2579
|
}
|
|
2568
2580
|
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
2569
|
-
f("div", { id: `legend-top-${
|
|
2570
|
-
|
|
2581
|
+
f("div", { id: `legend-top-${D.value}` }, null, 8, Je),
|
|
2582
|
+
A.value.show && gt.value && (C(Bt) || C(Rt)) ? (y(), l(C(dt), {
|
|
2571
2583
|
ref_key: "userOptionsRef",
|
|
2572
|
-
ref:
|
|
2573
|
-
key: `user_option_${
|
|
2574
|
-
backgroundColor:
|
|
2575
|
-
color:
|
|
2576
|
-
isPrinting:
|
|
2577
|
-
isImaging:
|
|
2578
|
-
uid:
|
|
2579
|
-
callbacks:
|
|
2580
|
-
hasTooltip:
|
|
2581
|
-
hasPdf:
|
|
2582
|
-
hasImg:
|
|
2583
|
-
hasSvg:
|
|
2584
|
-
hasXls:
|
|
2585
|
-
hasTable:
|
|
2584
|
+
ref: kt,
|
|
2585
|
+
key: `user_option_${Dt.value}`,
|
|
2586
|
+
backgroundColor: F.value.backgroundColor,
|
|
2587
|
+
color: F.value.color,
|
|
2588
|
+
isPrinting: C(on),
|
|
2589
|
+
isImaging: C(sn),
|
|
2590
|
+
uid: D.value,
|
|
2591
|
+
callbacks: A.value.callbacks,
|
|
2592
|
+
hasTooltip: j.value.show && A.value.buttons.tooltip,
|
|
2593
|
+
hasPdf: A.value.buttons.pdf,
|
|
2594
|
+
hasImg: A.value.buttons.img,
|
|
2595
|
+
hasSvg: A.value.buttons.svg,
|
|
2596
|
+
hasXls: A.value.buttons.csv,
|
|
2597
|
+
hasTable: A.value.buttons.table,
|
|
2586
2598
|
hasLabel: !1,
|
|
2587
|
-
hasFullscreen:
|
|
2588
|
-
hasAltCopy:
|
|
2589
|
-
isFullscreen:
|
|
2590
|
-
chartElement:
|
|
2591
|
-
position:
|
|
2592
|
-
printScale:
|
|
2593
|
-
isTooltip:
|
|
2594
|
-
titles: { ...
|
|
2595
|
-
hasAnnotator:
|
|
2596
|
-
isAnnotation:
|
|
2597
|
-
tableDialog:
|
|
2598
|
-
isCursorPointer:
|
|
2599
|
-
onToggleFullscreen:
|
|
2600
|
-
onGeneratePdf:
|
|
2601
|
-
onGenerateCsv:
|
|
2602
|
-
onGenerateImage:
|
|
2603
|
-
onGenerateSvg:
|
|
2604
|
-
onToggleTable:
|
|
2605
|
-
onToggleTooltip:
|
|
2606
|
-
onToggleAnnotator:
|
|
2607
|
-
onCopyAlt:
|
|
2608
|
-
style:
|
|
2609
|
-
},
|
|
2599
|
+
hasFullscreen: A.value.buttons.fullscreen,
|
|
2600
|
+
hasAltCopy: A.value.buttons.altCopy,
|
|
2601
|
+
isFullscreen: U.value,
|
|
2602
|
+
chartElement: E.value,
|
|
2603
|
+
position: A.value.position,
|
|
2604
|
+
printScale: A.value.print.scale,
|
|
2605
|
+
isTooltip: R.value.showTooltip,
|
|
2606
|
+
titles: { ...A.value.buttonTitles },
|
|
2607
|
+
hasAnnotator: A.value.buttons.annotator,
|
|
2608
|
+
isAnnotation: W.value,
|
|
2609
|
+
tableDialog: k.value.table.useDialog,
|
|
2610
|
+
isCursorPointer: I.value,
|
|
2611
|
+
onToggleFullscreen: en,
|
|
2612
|
+
onGeneratePdf: C(cn),
|
|
2613
|
+
onGenerateCsv: Pn,
|
|
2614
|
+
onGenerateImage: C(Kn),
|
|
2615
|
+
onGenerateSvg: C(Gn),
|
|
2616
|
+
onToggleTable: nn,
|
|
2617
|
+
onToggleTooltip: rn,
|
|
2618
|
+
onToggleAnnotator: tn,
|
|
2619
|
+
onCopyAlt: qn,
|
|
2620
|
+
style: v({ visibility: C(Bt) ? C(Rt) ? "visible" : "hidden" : "visible" })
|
|
2621
|
+
}, De({ _: 2 }, [
|
|
2610
2622
|
e.$slots.menuIcon ? {
|
|
2611
2623
|
name: "menuIcon",
|
|
2612
|
-
fn:
|
|
2624
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(g({
|
|
2613
2625
|
isOpen: t,
|
|
2614
2626
|
color: n
|
|
2615
2627
|
})), void 0, !0)]),
|
|
@@ -2617,37 +2629,37 @@ var Ge = {
|
|
|
2617
2629
|
} : void 0,
|
|
2618
2630
|
e.$slots.optionTooltip ? {
|
|
2619
2631
|
name: "optionTooltip",
|
|
2620
|
-
fn:
|
|
2632
|
+
fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
2621
2633
|
key: "1"
|
|
2622
2634
|
} : void 0,
|
|
2623
2635
|
e.$slots.optionPdf ? {
|
|
2624
2636
|
name: "optionPdf",
|
|
2625
|
-
fn:
|
|
2637
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
2626
2638
|
key: "2"
|
|
2627
2639
|
} : void 0,
|
|
2628
2640
|
e.$slots.optionCsv ? {
|
|
2629
2641
|
name: "optionCsv",
|
|
2630
|
-
fn:
|
|
2642
|
+
fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
2631
2643
|
key: "3"
|
|
2632
2644
|
} : void 0,
|
|
2633
2645
|
e.$slots.optionImg ? {
|
|
2634
2646
|
name: "optionImg",
|
|
2635
|
-
fn:
|
|
2647
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
2636
2648
|
key: "4"
|
|
2637
2649
|
} : void 0,
|
|
2638
2650
|
e.$slots.optionSvg ? {
|
|
2639
2651
|
name: "optionSvg",
|
|
2640
|
-
fn:
|
|
2652
|
+
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
2641
2653
|
key: "5"
|
|
2642
2654
|
} : void 0,
|
|
2643
2655
|
e.$slots.optionTable ? {
|
|
2644
2656
|
name: "optionTable",
|
|
2645
|
-
fn:
|
|
2657
|
+
fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
2646
2658
|
key: "6"
|
|
2647
2659
|
} : void 0,
|
|
2648
2660
|
e.$slots.optionFullscreen ? {
|
|
2649
2661
|
name: "optionFullscreen",
|
|
2650
|
-
fn:
|
|
2662
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(g({
|
|
2651
2663
|
toggleFullscreen: t,
|
|
2652
2664
|
isFullscreen: n
|
|
2653
2665
|
})), void 0, !0)]),
|
|
@@ -2655,7 +2667,7 @@ var Ge = {
|
|
|
2655
2667
|
} : void 0,
|
|
2656
2668
|
e.$slots.optionAnnotator ? {
|
|
2657
2669
|
name: "optionAnnotator",
|
|
2658
|
-
fn:
|
|
2670
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(g({
|
|
2659
2671
|
toggleAnnotator: t,
|
|
2660
2672
|
isAnnotator: n
|
|
2661
2673
|
})), void 0, !0)]),
|
|
@@ -2663,62 +2675,62 @@ var Ge = {
|
|
|
2663
2675
|
} : void 0,
|
|
2664
2676
|
e.$slots.optionAltCopy ? {
|
|
2665
2677
|
name: "optionAltCopy",
|
|
2666
|
-
fn:
|
|
2678
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
|
|
2667
2679
|
key: "9"
|
|
2668
2680
|
} : void 0,
|
|
2669
2681
|
e.$slots["custom-menu-before"] ? {
|
|
2670
2682
|
name: "custom-menu-before",
|
|
2671
|
-
fn:
|
|
2683
|
+
fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
2672
2684
|
key: "10"
|
|
2673
2685
|
} : void 0,
|
|
2674
2686
|
e.$slots["custom-menu-after"] ? {
|
|
2675
2687
|
name: "custom-menu-after",
|
|
2676
|
-
fn:
|
|
2688
|
+
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
2677
2689
|
key: "11"
|
|
2678
2690
|
} : void 0
|
|
2679
2691
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.callbacks.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.printScale.isTooltip.titles.hasAnnotator.isAnnotation.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
|
|
2680
|
-
(
|
|
2692
|
+
(y(), d("svg", {
|
|
2681
2693
|
ref_key: "svgRef",
|
|
2682
|
-
ref:
|
|
2683
|
-
viewBox:
|
|
2684
|
-
xmlns:
|
|
2694
|
+
ref: Vt,
|
|
2695
|
+
viewBox: V.value.str,
|
|
2696
|
+
xmlns: C(se),
|
|
2685
2697
|
class: Ae({
|
|
2686
|
-
"vue-data-ui-fullscreen--on":
|
|
2687
|
-
"vue-data-ui-fullscreen--off": !
|
|
2698
|
+
"vue-data-ui-fullscreen--on": U.value,
|
|
2699
|
+
"vue-data-ui-fullscreen--off": !U.value
|
|
2688
2700
|
}),
|
|
2689
|
-
style:
|
|
2701
|
+
style: v({
|
|
2690
2702
|
maxWidth: "100%",
|
|
2691
|
-
overflow:
|
|
2703
|
+
overflow: z.value === "globe" ? "visible" : "hidden",
|
|
2692
2704
|
background: "transparent",
|
|
2693
|
-
color:
|
|
2694
|
-
paddingTop:
|
|
2695
|
-
paddingRight:
|
|
2696
|
-
paddingBottom:
|
|
2697
|
-
paddingLeft:
|
|
2705
|
+
color: F.value.color,
|
|
2706
|
+
paddingTop: F.value.padding.top + "px",
|
|
2707
|
+
paddingRight: F.value.padding.right + "px",
|
|
2708
|
+
paddingBottom: F.value.padding.bottom + "px",
|
|
2709
|
+
paddingLeft: F.value.padding.left + "px"
|
|
2698
2710
|
}),
|
|
2699
|
-
onMousedown:
|
|
2700
|
-
onMousemove:
|
|
2701
|
-
onMouseup:
|
|
2702
|
-
onMouseleave:
|
|
2703
|
-
onTouchstart:
|
|
2704
|
-
onTouchmove: Le(
|
|
2705
|
-
onTouchend:
|
|
2711
|
+
onMousedown: Dn,
|
|
2712
|
+
onMousemove: On,
|
|
2713
|
+
onMouseup: kn,
|
|
2714
|
+
onMouseleave: kn,
|
|
2715
|
+
onTouchstart: An,
|
|
2716
|
+
onTouchmove: Le(jn, ["prevent"]),
|
|
2717
|
+
onTouchend: Mn
|
|
2706
2718
|
}, [
|
|
2707
|
-
|
|
2708
|
-
e.$slots["chart-background"] ? (
|
|
2719
|
+
m(C(ft)),
|
|
2720
|
+
e.$slots["chart-background"] ? (y(), d("foreignObject", {
|
|
2709
2721
|
key: 0,
|
|
2710
|
-
x:
|
|
2711
|
-
y:
|
|
2712
|
-
width:
|
|
2713
|
-
height:
|
|
2722
|
+
x: V.value.minX,
|
|
2723
|
+
y: V.value.minY,
|
|
2724
|
+
width: V.value.width,
|
|
2725
|
+
height: V.value.height,
|
|
2714
2726
|
style: { pointerEvents: "none" }
|
|
2715
|
-
}, [
|
|
2716
|
-
gt.value ? (
|
|
2717
|
-
|
|
2727
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : u("", !0),
|
|
2728
|
+
gt.value ? (y(), d("g", Ze, [
|
|
2729
|
+
z.value === "globe" ? (y(), d(s, { key: 0 }, [
|
|
2718
2730
|
f("defs", null, [
|
|
2719
|
-
|
|
2731
|
+
m(xe, {
|
|
2720
2732
|
t: "radial",
|
|
2721
|
-
id: `water-${
|
|
2733
|
+
id: `water-${D.value}`,
|
|
2722
2734
|
cx: .48,
|
|
2723
2735
|
cy: .52,
|
|
2724
2736
|
r: "0.55",
|
|
@@ -2727,29 +2739,29 @@ var Ge = {
|
|
|
2727
2739
|
stops: [
|
|
2728
2740
|
[
|
|
2729
2741
|
"0%",
|
|
2730
|
-
|
|
2742
|
+
C(ae)(M.value.waterColor, .4),
|
|
2731
2743
|
1
|
|
2732
2744
|
],
|
|
2733
2745
|
[
|
|
2734
2746
|
"45%",
|
|
2735
|
-
|
|
2747
|
+
M.value.waterColor,
|
|
2736
2748
|
1
|
|
2737
2749
|
],
|
|
2738
2750
|
[
|
|
2739
2751
|
"80%",
|
|
2740
|
-
|
|
2752
|
+
C(te)(M.value.waterColor, .2),
|
|
2741
2753
|
1
|
|
2742
2754
|
],
|
|
2743
2755
|
[
|
|
2744
2756
|
"100%",
|
|
2745
|
-
|
|
2757
|
+
C(te)(M.value.waterColor, .5),
|
|
2746
2758
|
.95
|
|
2747
2759
|
]
|
|
2748
2760
|
]
|
|
2749
2761
|
}, null, 8, ["id", "stops"]),
|
|
2750
|
-
|
|
2762
|
+
m(xe, {
|
|
2751
2763
|
t: "radial",
|
|
2752
|
-
id: `atmo-realistic-${
|
|
2764
|
+
id: `atmo-realistic-${D.value}`,
|
|
2753
2765
|
cx: .5,
|
|
2754
2766
|
cy: .5,
|
|
2755
2767
|
r: "0.54",
|
|
@@ -2761,7 +2773,7 @@ var Ge = {
|
|
|
2761
2773
|
],
|
|
2762
2774
|
[
|
|
2763
2775
|
"98%",
|
|
2764
|
-
|
|
2776
|
+
M.value.waterColor,
|
|
2765
2777
|
1
|
|
2766
2778
|
],
|
|
2767
2779
|
[
|
|
@@ -2772,104 +2784,104 @@ var Ge = {
|
|
|
2772
2784
|
]
|
|
2773
2785
|
}, null, 8, ["id", "stops"]),
|
|
2774
2786
|
f("filter", {
|
|
2775
|
-
id: `blur-${
|
|
2787
|
+
id: `blur-${D.value}`,
|
|
2776
2788
|
x: "-30%",
|
|
2777
2789
|
y: "-30%",
|
|
2778
2790
|
width: "160%",
|
|
2779
2791
|
height: "160%"
|
|
2780
2792
|
}, [...t[4] ||= [f("feGaussianBlur", { stdDeviation: "8" }, null, -1)]], 8, Qe)
|
|
2781
2793
|
]),
|
|
2782
|
-
e.$slots.pattern ? (
|
|
2794
|
+
e.$slots.pattern ? (y(), d("g", $e, [(y(!0), d(s, null, Ne(H.value, (t, n) => (y(), d("defs", null, [x(e.$slots, "pattern", Oe({ ref_for: !0 }, {
|
|
2783
2795
|
...t,
|
|
2784
|
-
patternId: `pattern_${
|
|
2796
|
+
patternId: `pattern_${D.value}_${t.code}`
|
|
2785
2797
|
}), void 0, !0)]))), 256))])) : u("", !0),
|
|
2786
2798
|
f("circle", {
|
|
2787
|
-
cx:
|
|
2788
|
-
cy:
|
|
2789
|
-
r:
|
|
2790
|
-
fill: `url(#water-${
|
|
2799
|
+
cx: V.value.width / 2 + 20,
|
|
2800
|
+
cy: V.value.height / 2 + 20,
|
|
2801
|
+
r: V.value.height / 2,
|
|
2802
|
+
fill: `url(#water-${D.value})`
|
|
2791
2803
|
}, null, 8, et),
|
|
2792
2804
|
f("circle", {
|
|
2793
|
-
cx:
|
|
2794
|
-
cy:
|
|
2795
|
-
r:
|
|
2796
|
-
fill: `url(#atmo-realistic-${
|
|
2805
|
+
cx: V.value.width / 2 + 20,
|
|
2806
|
+
cy: V.value.height / 2 + 20,
|
|
2807
|
+
r: V.value.height / 2 + 10,
|
|
2808
|
+
fill: `url(#atmo-realistic-${D.value})`,
|
|
2797
2809
|
"pointer-events": "none",
|
|
2798
|
-
filter: `url(#blur-${
|
|
2810
|
+
filter: `url(#blur-${D.value})`
|
|
2799
2811
|
}, null, 8, tt)
|
|
2800
2812
|
], 64)) : u("", !0),
|
|
2801
|
-
(
|
|
2813
|
+
(y(!0), d(s, null, Ne(H.value, (t, n) => (y(), d(s, { key: t.code }, [f("path", {
|
|
2802
2814
|
d: t.path,
|
|
2803
|
-
fill: t.category && Z.value.includes(t.category) ?
|
|
2804
|
-
stroke:
|
|
2805
|
-
"stroke-width":
|
|
2806
|
-
onMouseenter: (e) =>
|
|
2815
|
+
fill: t.category && Z.value.includes(t.category) ? N.value.emptyColor : t.color,
|
|
2816
|
+
stroke: N.value.stroke,
|
|
2817
|
+
"stroke-width": K.value && K.value.uid === t.uid ? N.value.strokeWidthSelected : N.value.strokeWidth,
|
|
2818
|
+
onMouseenter: (e) => gn({
|
|
2807
2819
|
datapoint: t,
|
|
2808
2820
|
seriesIndex: n
|
|
2809
2821
|
}),
|
|
2810
|
-
onMouseleave: (e) =>
|
|
2822
|
+
onMouseleave: (e) => mn({
|
|
2811
2823
|
datapoint: t,
|
|
2812
2824
|
seriesIndex: n
|
|
2813
2825
|
}),
|
|
2814
|
-
onClick: (e) =>
|
|
2826
|
+
onClick: (e) => hn({
|
|
2815
2827
|
datapoint: t,
|
|
2816
2828
|
seriesIndex: n
|
|
2817
2829
|
}),
|
|
2818
2830
|
class: "vue-ui-world-territory"
|
|
2819
|
-
}, [!
|
|
2831
|
+
}, [!Tt.value || !R.value.showTooltip ? (y(), d("title", rt, [p(S(t.name) + " ", 1), typeof t.value == "number" ? (y(), d(s, { key: 0 }, [p(" : " + S(t.value), 1)], 64)) : u("", !0)])) : u("", !0)], 40, nt), e.$slots.pattern ? (y(), d("path", {
|
|
2820
2832
|
key: 0,
|
|
2821
2833
|
d: t.path,
|
|
2822
|
-
fill: `url(#pattern_${
|
|
2823
|
-
stroke:
|
|
2824
|
-
"stroke-width":
|
|
2834
|
+
fill: `url(#pattern_${D.value}_${t.code})`,
|
|
2835
|
+
stroke: N.value.stroke,
|
|
2836
|
+
"stroke-width": N.value.strokeWidthSelected,
|
|
2825
2837
|
style: { "pointer-events": "none" },
|
|
2826
2838
|
class: "vue-ui-world-territory"
|
|
2827
2839
|
}, null, 8, it)) : u("", !0)], 64))), 128)),
|
|
2828
|
-
|
|
2840
|
+
K.value ? (y(), d("path", {
|
|
2829
2841
|
key: 1,
|
|
2830
|
-
d:
|
|
2842
|
+
d: dn.value,
|
|
2831
2843
|
fill: "transparent",
|
|
2832
|
-
stroke:
|
|
2833
|
-
"stroke-width":
|
|
2844
|
+
stroke: N.value.stroke,
|
|
2845
|
+
"stroke-width": N.value.strokeWidthSelected,
|
|
2834
2846
|
style: { "pointer-events": "none" },
|
|
2835
2847
|
class: "vue-ui-world-territory"
|
|
2836
2848
|
}, null, 8, at)) : u("", !0)
|
|
2837
2849
|
])) : u("", !0),
|
|
2838
|
-
|
|
2839
|
-
height:
|
|
2840
|
-
width:
|
|
2841
|
-
isPrintingImg:
|
|
2842
|
-
isPrintingSvg:
|
|
2850
|
+
x(e.$slots, "svg", { svg: {
|
|
2851
|
+
height: B.value.height,
|
|
2852
|
+
width: B.value.width,
|
|
2853
|
+
isPrintingImg: C(on) || C(sn) || C(Un),
|
|
2854
|
+
isPrintingSvg: C(Wn)
|
|
2843
2855
|
} }, void 0, !0)
|
|
2844
2856
|
], 46, Ye)),
|
|
2845
|
-
e.$slots.watermark ? (
|
|
2846
|
-
f("div", { id: `legend-bottom-${
|
|
2847
|
-
|
|
2857
|
+
e.$slots.watermark ? (y(), d("div", ot, [x(e.$slots, "watermark", _(g({ isPrinting: C(on) || C(sn) || C(Un) || C(Wn) })), void 0, !0)])) : u("", !0),
|
|
2858
|
+
f("div", { id: `legend-bottom-${D.value}` }, null, 8, st),
|
|
2859
|
+
Ot.value && _t.value && (P.value.show || e.$slots.legend) ? (y(), l(Ee, {
|
|
2848
2860
|
key: 5,
|
|
2849
|
-
to:
|
|
2850
|
-
}, [_t.value ? (
|
|
2861
|
+
to: P.value.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
2862
|
+
}, [_t.value ? (y(), d("div", {
|
|
2851
2863
|
key: 0,
|
|
2852
2864
|
ref_key: "chartLegend",
|
|
2853
2865
|
ref: yt
|
|
2854
|
-
}, [
|
|
2866
|
+
}, [x(e.$slots, "legend", { legend: Q.value }, () => [P.value.show ? (y(), l(C(Be), {
|
|
2855
2867
|
key: `legend_${Ct.value}`,
|
|
2856
2868
|
legendSet: Q.value,
|
|
2857
|
-
config:
|
|
2858
|
-
isCursorPointer:
|
|
2859
|
-
onClickMarker: t[0] ||= (e) =>
|
|
2860
|
-
},
|
|
2861
|
-
item:
|
|
2862
|
-
style:
|
|
2869
|
+
config: Ln.value,
|
|
2870
|
+
isCursorPointer: I.value,
|
|
2871
|
+
onClickMarker: t[0] ||= (e) => In(e)
|
|
2872
|
+
}, De({
|
|
2873
|
+
item: w(({ legend: e, index: t }) => [f("div", {
|
|
2874
|
+
style: v(`opacity:${Z.value.includes(e.name) ? .5 : 1}`),
|
|
2863
2875
|
onClick: (t) => e.segregate()
|
|
2864
|
-
},
|
|
2865
|
-
legendToggle:
|
|
2876
|
+
}, S(e.name), 13, ct)]),
|
|
2877
|
+
legendToggle: w(() => [Q.value.length > 2 && P.value.selectAllToggle.show && !C(Lt) ? (y(), l(Se, {
|
|
2866
2878
|
key: 0,
|
|
2867
|
-
backgroundColor:
|
|
2868
|
-
color:
|
|
2869
|
-
fontSize:
|
|
2879
|
+
backgroundColor: P.value.selectAllToggle.backgroundColor,
|
|
2880
|
+
color: P.value.selectAllToggle.color,
|
|
2881
|
+
fontSize: P.value.fontSize,
|
|
2870
2882
|
checked: Z.value.length > 0,
|
|
2871
|
-
isCursorPointer:
|
|
2872
|
-
onToggle:
|
|
2883
|
+
isCursorPointer: I.value,
|
|
2884
|
+
onToggle: Fn
|
|
2873
2885
|
}, null, 8, [
|
|
2874
2886
|
"backgroundColor",
|
|
2875
2887
|
"color",
|
|
@@ -2880,7 +2892,7 @@ var Ge = {
|
|
|
2880
2892
|
_: 2
|
|
2881
2893
|
}, [e.$slots.pattern ? {
|
|
2882
2894
|
name: "legend-pattern",
|
|
2883
|
-
fn:
|
|
2895
|
+
fn: w(({ legend: e, index: t }) => [m(ye, {
|
|
2884
2896
|
shape: e.shape,
|
|
2885
2897
|
radius: 30,
|
|
2886
2898
|
stroke: "none",
|
|
@@ -2888,7 +2900,7 @@ var Ge = {
|
|
|
2888
2900
|
x: 30,
|
|
2889
2901
|
y: 30
|
|
2890
2902
|
},
|
|
2891
|
-
fill: `url(#pattern_${
|
|
2903
|
+
fill: `url(#pattern_${D.value}_${t})`
|
|
2892
2904
|
}, null, 8, ["shape", "fill"])]),
|
|
2893
2905
|
key: "0"
|
|
2894
2906
|
} : void 0]), 1032, [
|
|
@@ -2896,37 +2908,37 @@ var Ge = {
|
|
|
2896
2908
|
"config",
|
|
2897
2909
|
"isCursorPointer"
|
|
2898
2910
|
])) : u("", !0)], !0)], 512)) : u("", !0)], 8, ["to"])) : u("", !0),
|
|
2899
|
-
e.$slots.source ? (
|
|
2911
|
+
e.$slots.source ? (y(), d("div", {
|
|
2900
2912
|
key: 6,
|
|
2901
2913
|
ref_key: "source",
|
|
2902
2914
|
ref: bt,
|
|
2903
2915
|
dir: "auto"
|
|
2904
|
-
}, [
|
|
2905
|
-
|
|
2906
|
-
teleportTo:
|
|
2907
|
-
show:
|
|
2908
|
-
backgroundColor:
|
|
2909
|
-
color:
|
|
2910
|
-
fontSize:
|
|
2911
|
-
borderRadius:
|
|
2912
|
-
borderColor:
|
|
2913
|
-
borderWidth:
|
|
2914
|
-
backgroundOpacity:
|
|
2915
|
-
position:
|
|
2916
|
-
offsetX:
|
|
2917
|
-
offsetY:
|
|
2918
|
-
parent:
|
|
2919
|
-
content:
|
|
2920
|
-
isCustom:
|
|
2921
|
-
isFullscreen:
|
|
2922
|
-
smooth:
|
|
2923
|
-
backdropFilter:
|
|
2924
|
-
smoothForce:
|
|
2925
|
-
smoothSnapThreshold:
|
|
2916
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
2917
|
+
m(C(Ve), {
|
|
2918
|
+
teleportTo: j.value.teleportTo,
|
|
2919
|
+
show: R.value.showTooltip && Tt.value,
|
|
2920
|
+
backgroundColor: j.value.backgroundColor,
|
|
2921
|
+
color: j.value.color,
|
|
2922
|
+
fontSize: j.value.fontSize,
|
|
2923
|
+
borderRadius: j.value.borderRadius,
|
|
2924
|
+
borderColor: j.value.borderColor,
|
|
2925
|
+
borderWidth: j.value.borderWidth,
|
|
2926
|
+
backgroundOpacity: j.value.backgroundOpacity,
|
|
2927
|
+
position: j.value.position,
|
|
2928
|
+
offsetX: j.value.offsetX,
|
|
2929
|
+
offsetY: j.value.offsetY,
|
|
2930
|
+
parent: E.value,
|
|
2931
|
+
content: Et.value,
|
|
2932
|
+
isCustom: G.value,
|
|
2933
|
+
isFullscreen: U.value,
|
|
2934
|
+
smooth: j.value.smooth,
|
|
2935
|
+
backdropFilter: j.value.backdropFilter,
|
|
2936
|
+
smoothForce: j.value.smoothForce,
|
|
2937
|
+
smoothSnapThreshold: j.value.smoothSnapThreshold
|
|
2926
2938
|
}, {
|
|
2927
|
-
"tooltip-before":
|
|
2928
|
-
tooltip:
|
|
2929
|
-
"tooltip-after":
|
|
2939
|
+
"tooltip-before": w(() => [x(e.$slots, "tooltip-before", _(g({ ...un.value })), void 0, !0)]),
|
|
2940
|
+
tooltip: w(() => [x(e.$slots, "tooltip", _(g({ ...un.value })), void 0, !0)]),
|
|
2941
|
+
"tooltip-after": w(() => [x(e.$slots, "tooltip-after", _(g({ ...un.value })), void 0, !0)]),
|
|
2930
2942
|
_: 3
|
|
2931
2943
|
}, 8, [
|
|
2932
2944
|
"teleportTo",
|
|
@@ -2950,28 +2962,28 @@ var Ge = {
|
|
|
2950
2962
|
"smoothForce",
|
|
2951
2963
|
"smoothSnapThreshold"
|
|
2952
2964
|
]),
|
|
2953
|
-
gt.value &&
|
|
2965
|
+
gt.value && A.value.buttons.table ? (y(), l(Pe($.value.component), Oe({ key: 7 }, $.value.props, {
|
|
2954
2966
|
ref_key: "tableUnit",
|
|
2955
2967
|
ref: O,
|
|
2956
|
-
onClose:
|
|
2957
|
-
}),
|
|
2958
|
-
content:
|
|
2968
|
+
onClose: Bn
|
|
2969
|
+
}), De({
|
|
2970
|
+
content: w(() => [(y(), l(C(We), {
|
|
2959
2971
|
key: `table_${wt.value}`,
|
|
2960
|
-
colNames:
|
|
2961
|
-
head:
|
|
2962
|
-
body:
|
|
2963
|
-
config:
|
|
2964
|
-
title:
|
|
2965
|
-
withCloseButton: !
|
|
2966
|
-
isCursorPointer:
|
|
2967
|
-
onClose:
|
|
2972
|
+
colNames: X.value.colNames,
|
|
2973
|
+
head: X.value.head,
|
|
2974
|
+
body: X.value.body,
|
|
2975
|
+
config: X.value.config,
|
|
2976
|
+
title: k.value.table.useDialog ? "" : $.value.title,
|
|
2977
|
+
withCloseButton: !k.value.table.useDialog,
|
|
2978
|
+
isCursorPointer: I.value,
|
|
2979
|
+
onClose: Bn
|
|
2968
2980
|
}, {
|
|
2969
|
-
th:
|
|
2970
|
-
td:
|
|
2971
|
-
p:
|
|
2981
|
+
th: w(({ th: e }) => [f("div", lt, S(e), 1)]),
|
|
2982
|
+
td: w(({ td: e }) => [p(S(e.name ? e.name : e.category ? e.category : C(ie)(F.value.dataLabels.formatter, e, C(ee)({
|
|
2983
|
+
p: F.value.dataLabels.prefix,
|
|
2972
2984
|
v: e,
|
|
2973
|
-
s:
|
|
2974
|
-
r:
|
|
2985
|
+
s: F.value.dataLabels.suffix,
|
|
2986
|
+
r: F.value.dataLabels.rounding
|
|
2975
2987
|
}))), 1)]),
|
|
2976
2988
|
_: 1
|
|
2977
2989
|
}, 8, [
|
|
@@ -2984,26 +2996,26 @@ var Ge = {
|
|
|
2984
2996
|
"isCursorPointer"
|
|
2985
2997
|
]))]),
|
|
2986
2998
|
_: 2
|
|
2987
|
-
}, [
|
|
2999
|
+
}, [k.value.table.useDialog ? {
|
|
2988
3000
|
name: "title",
|
|
2989
|
-
fn:
|
|
3001
|
+
fn: w(() => [p(S($.value.title), 1)]),
|
|
2990
3002
|
key: "0"
|
|
2991
|
-
} : void 0,
|
|
3003
|
+
} : void 0, k.value.table.useDialog ? {
|
|
2992
3004
|
name: "actions",
|
|
2993
|
-
fn:
|
|
3005
|
+
fn: w(() => [f("button", {
|
|
2994
3006
|
tabindex: "0",
|
|
2995
3007
|
class: "vue-ui-user-options-button",
|
|
2996
|
-
onClick: t[1] ||= (e) =>
|
|
2997
|
-
style:
|
|
2998
|
-
}, [
|
|
3008
|
+
onClick: t[1] ||= (e) => Pn(A.value.callbacks.csv),
|
|
3009
|
+
style: v({ cursor: I.value ? "pointer" : "default" })
|
|
3010
|
+
}, [m(C(He), {
|
|
2999
3011
|
name: "fileCsv",
|
|
3000
3012
|
stroke: $.value.props.color
|
|
3001
3013
|
}, null, 8, ["stroke"])], 4)]),
|
|
3002
3014
|
key: "1"
|
|
3003
3015
|
} : void 0]), 1040)) : u("", !0),
|
|
3004
|
-
|
|
3016
|
+
x(e.$slots, "skeleton", {}, () => [C(Lt) ? (y(), l(he, { key: 0 })) : u("", !0)], !0)
|
|
3005
3017
|
], 46, qe));
|
|
3006
3018
|
}
|
|
3007
|
-
}, [["__scopeId", "data-v-
|
|
3019
|
+
}, [["__scopeId", "data-v-cf84a129"]]);
|
|
3008
3020
|
//#endregion
|
|
3009
3021
|
export { Ke as n, dt as t };
|