vue-data-ui 3.23.1 → 3.23.2
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/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.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-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-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.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 +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Jt as r, Ot as ee, Pt as i, S as a, X 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
|
|
2
|
+
import { $ as t, D as n, Jt as r, Ot as ee, Pt as i, S as a, X as o, Y as s, i as c, q as l, t as te, vt as ne, w as re, xt as ie, yt as ae } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ce } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as le } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as fe } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as pe } from "./useChartExport-DNiwdPmb.js";
|
|
9
|
+
import { t as me } from "./img-Bnokohej.js";
|
|
10
|
+
import { t as he } from "./Shape-C21CMlWS.js";
|
|
11
|
+
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { t as _e } from "./DefGrad-DVBqDjhO.js";
|
|
13
|
+
import { t as ve } from "./BaseLegendToggle-DZVucLnv.js";
|
|
14
|
+
import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as be } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as xe } from "./geoProjections-CEo3dVaL.js";
|
|
17
|
+
import { Fragment as u, Teleport as Se, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ce, createTextVNode as we, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Te, nextTick as Ee, normalizeClass as De, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Oe, onMounted as ke, openBlock as x, ref as S, renderList as Ae, renderSlot as C, resolveDynamicComponent as je, toDisplayString as w, toRefs as Me, unref as T, watch as E, withCtx as D, withModifiers as Ne } from "vue";
|
|
18
18
|
//#region src/resources/worldGeo.js
|
|
19
19
|
var Pe = 1e3, Fe = [
|
|
20
20
|
"name",
|
|
@@ -1978,7 +1978,7 @@ var Ve = {
|
|
|
1978
1978
|
], nt = {
|
|
1979
1979
|
key: 4,
|
|
1980
1980
|
class: "vue-data-ui-watermark"
|
|
1981
|
-
}, rt = ["id"], it = ["onClick"], at = ["innerHTML"], ot = .5, st = /*#__PURE__*/
|
|
1981
|
+
}, rt = ["id"], it = ["onClick"], at = ["innerHTML"], ot = .5, st = /*#__PURE__*/ ge({
|
|
1982
1982
|
__name: "vue-ui-world",
|
|
1983
1983
|
props: {
|
|
1984
1984
|
config: {
|
|
@@ -1999,34 +1999,34 @@ var Ve = {
|
|
|
1999
1999
|
"selectLegend",
|
|
2000
2000
|
"copyAlt"
|
|
2001
2001
|
],
|
|
2002
|
-
setup(e, { expose:
|
|
2003
|
-
let Fe = _(() => import("./Title-BE3qg9xl.js").then((e) => e.t)), Ie = _(() => import("./Legend-CQxUgOd-.js").then((e) => e.n)), Le = _(() => import("./Tooltip-DhjyfHwz.js")), Re = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), ze = _(() => import("./vue-ui-accordion-
|
|
2002
|
+
setup(e, { expose: ge, emit: Pe }) {
|
|
2003
|
+
let Fe = _(() => import("./Title-BE3qg9xl.js").then((e) => e.t)), Ie = _(() => import("./Legend-CQxUgOd-.js").then((e) => e.n)), Le = _(() => import("./Tooltip-DhjyfHwz.js")), Re = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), ze = _(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Be = _(() => import("./DataTable-BbKgJ5UI.js")), He = _(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), st = _(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), ct = _(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), lt = _(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_world: ut } = ce(), O = e, dt = Pe, ft = d({
|
|
2004
2004
|
get() {
|
|
2005
|
-
return !!
|
|
2005
|
+
return !!I.value;
|
|
2006
2006
|
},
|
|
2007
2007
|
set(e) {
|
|
2008
2008
|
return e;
|
|
2009
2009
|
}
|
|
2010
|
-
}), pt =
|
|
2010
|
+
}), pt = d(() => ft ? Object.values(I.value).some((e) => Object.hasOwn(e, "category")) : !1), k = S(null), mt = S(null), ht = S(null), gt = S(null), _t = S(null), vt = S(0), yt = S(0), bt = S(0), A = S(l()), j = S(!1), xt = S(""), St = S(0), Ct = S(!1), M = S(null), wt = S(null);
|
|
2011
2011
|
ke(() => {
|
|
2012
|
-
|
|
2012
|
+
Ct.value = !0;
|
|
2013
2013
|
});
|
|
2014
|
-
let
|
|
2015
|
-
function
|
|
2016
|
-
let e =
|
|
2014
|
+
let N = Ve, { projections: Tt, getProjectedBounds: Et, setupTerritories: Dt, geoToPath: Ot } = xe;
|
|
2015
|
+
function kt() {
|
|
2016
|
+
let e = fe({
|
|
2017
2017
|
userConfig: O.config,
|
|
2018
2018
|
defaultConfig: ut
|
|
2019
2019
|
});
|
|
2020
|
-
return O.config &&
|
|
2020
|
+
return O.config && ne(O.config, "style.chart.territory.colors.min") ? e.style.chart.territory.colors.min = a(O.config.style.chart.territory.colors.min) : e.style.chart.territory.colors.min = e.style.chart.territory.emptyColor, O.config && ne(O.config, "style.chart.territory.colors.max") ? e.style.chart.territory.colors.max = a(O.config.style.chart.territory.colors.max) : e.style.chart.territory.colors.max = i[0], N = Dt(e, N), e;
|
|
2021
2021
|
}
|
|
2022
|
-
let
|
|
2023
|
-
|
|
2024
|
-
config: () =>
|
|
2022
|
+
let P = S(kt());
|
|
2023
|
+
oe({
|
|
2024
|
+
config: () => P.value,
|
|
2025
2025
|
dataset: () => O.dataset,
|
|
2026
2026
|
component: "VueUiWorld",
|
|
2027
|
-
rules: [
|
|
2027
|
+
rules: [se.noHint]
|
|
2028
2028
|
});
|
|
2029
|
-
let
|
|
2029
|
+
let F = d(() => P.value.userOptions.useCursorPointer), At = d(() => r({
|
|
2030
2030
|
defaultConfig: {
|
|
2031
2031
|
userOptions: { show: !1 },
|
|
2032
2032
|
table: { show: !1 },
|
|
@@ -2042,30 +2042,30 @@ var Ve = {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
} }
|
|
2044
2044
|
},
|
|
2045
|
-
userConfig:
|
|
2046
|
-
})), { loading:
|
|
2045
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
2046
|
+
})), { loading: jt, FINAL_DATASET: I } = ue({
|
|
2047
2047
|
...Me(O),
|
|
2048
|
-
FINAL_CONFIG:
|
|
2049
|
-
prepareConfig:
|
|
2048
|
+
FINAL_CONFIG: P,
|
|
2049
|
+
prepareConfig: kt,
|
|
2050
2050
|
skeletonDataset: O.config?.skeletonDataset ?? [],
|
|
2051
2051
|
skeletonConfig: r({
|
|
2052
|
-
defaultConfig:
|
|
2053
|
-
userConfig:
|
|
2052
|
+
defaultConfig: P.value,
|
|
2053
|
+
userConfig: At.value
|
|
2054
2054
|
})
|
|
2055
|
-
}), { userOptionsVisible:
|
|
2056
|
-
showTable:
|
|
2057
|
-
showTooltip:
|
|
2055
|
+
}), { userOptionsVisible: Mt, setUserOptionsVisibility: Nt, keepUserOptionState: Pt } = ye({ config: P.value }), { svgRef: L } = be({ config: P.value.style.chart.title }), R = S({
|
|
2056
|
+
showTable: P.value.table.show,
|
|
2057
|
+
showTooltip: P.value.style.chart.tooltip.show
|
|
2058
2058
|
});
|
|
2059
2059
|
E(() => O.config, (e) => {
|
|
2060
|
-
|
|
2061
|
-
}), E(
|
|
2062
|
-
|
|
2063
|
-
showTable:
|
|
2064
|
-
showTooltip:
|
|
2060
|
+
P.value = kt(), Mt.value = !P.value.userOptions.showOnChartHover, vt.value += 1, bt.value += 1, yt.value += 1, R.value.showTable = P.value.table.show, R.value.showTooltip = P.value.style.chart.tooltip.show;
|
|
2061
|
+
}), E(P, () => {
|
|
2062
|
+
R.value = {
|
|
2063
|
+
showTable: P.value.table.show,
|
|
2064
|
+
showTooltip: P.value.style.chart.tooltip.show
|
|
2065
2065
|
};
|
|
2066
2066
|
}, { immediate: !0 });
|
|
2067
|
-
let
|
|
2068
|
-
let { height: e, width: t } =
|
|
2067
|
+
let Ft = d(() => re(P.value.customPalette)), z = d(() => P.value.projection || "globe"), B = d(() => {
|
|
2068
|
+
let { height: e, width: t } = P.value.style.chart.dimensions;
|
|
2069
2069
|
return {
|
|
2070
2070
|
aitoff: {
|
|
2071
2071
|
width: t || 1e3,
|
|
@@ -2119,9 +2119,9 @@ var Ve = {
|
|
|
2119
2119
|
width: t || 1e3,
|
|
2120
2120
|
height: e || 1e3
|
|
2121
2121
|
}
|
|
2122
|
-
}[
|
|
2123
|
-
}),
|
|
2124
|
-
let { minX: e, minY: t, width: n, height: r } =
|
|
2122
|
+
}[z.value];
|
|
2123
|
+
}), V = d(() => {
|
|
2124
|
+
let { minX: e, minY: t, width: n, height: r } = Et(Tt[z.value], N.features, B.value.width, B.value.height, q.value);
|
|
2125
2125
|
return {
|
|
2126
2126
|
str: `${e} ${t} ${n} ${r}`,
|
|
2127
2127
|
minX: e,
|
|
@@ -2129,205 +2129,205 @@ var Ve = {
|
|
|
2129
2129
|
width: n,
|
|
2130
2130
|
height: r
|
|
2131
2131
|
};
|
|
2132
|
-
}),
|
|
2133
|
-
function
|
|
2134
|
-
return typeof e == "number" ?
|
|
2132
|
+
}), It = d(() => Object.values(I.value).map((e) => e.value)), Lt = d(() => Math.min(...It.value)), Rt = d(() => Math.max(...It.value));
|
|
2133
|
+
function zt(e) {
|
|
2134
|
+
return typeof e == "number" ? ae(P.value.style.chart.territory.colors.min || "#FFFFFF00", P.value.style.chart.territory.colors.max || Ft.value[0] || i[0], Lt.value, Rt.value, e) : P.value.style.chart.territory.emptyColor;
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2137
|
-
return
|
|
2138
|
-
projection:
|
|
2139
|
-
width:
|
|
2140
|
-
height:
|
|
2141
|
-
center:
|
|
2136
|
+
function Bt(e) {
|
|
2137
|
+
return Ot(e, {
|
|
2138
|
+
projection: z.value,
|
|
2139
|
+
width: B.value.width,
|
|
2140
|
+
height: B.value.height,
|
|
2141
|
+
center: q.value
|
|
2142
2142
|
});
|
|
2143
2143
|
}
|
|
2144
|
-
let
|
|
2145
|
-
let e = Object.values(
|
|
2144
|
+
let Vt = d(() => {
|
|
2145
|
+
let e = Object.values(I.value).filter((e) => !!e.category), t = {};
|
|
2146
2146
|
return e.forEach((e) => {
|
|
2147
2147
|
t[e.category] || (t[e.category] = e);
|
|
2148
2148
|
}), Object.values(t).map((e, t) => ({
|
|
2149
2149
|
name: e.category,
|
|
2150
|
-
color: e.color ? a(e.color) :
|
|
2150
|
+
color: e.color ? a(e.color) : Ft.value[t] || i[t] || i[t % i.length]
|
|
2151
2151
|
}));
|
|
2152
2152
|
});
|
|
2153
|
-
function
|
|
2154
|
-
let t =
|
|
2153
|
+
function Ht(e) {
|
|
2154
|
+
let t = Vt.value.find((t) => t.name === e);
|
|
2155
2155
|
return t ? t.color : "#000000";
|
|
2156
2156
|
}
|
|
2157
|
-
let
|
|
2158
|
-
function
|
|
2159
|
-
return
|
|
2157
|
+
let Ut = /* @__PURE__ */ new Map();
|
|
2158
|
+
function Wt(e) {
|
|
2159
|
+
return Ut.has(e) || Ut.set(e, `territory-${l()}`), Ut.get(e);
|
|
2160
2160
|
}
|
|
2161
|
-
let
|
|
2161
|
+
let H = d(() => (q.value, N.features.map((e) => {
|
|
2162
2162
|
let t = e.properties.iso_a3;
|
|
2163
2163
|
(!t || t === "-99") && (t = e.properties.iso_a3_eh);
|
|
2164
|
-
let n =
|
|
2164
|
+
let n = I.value[t];
|
|
2165
2165
|
return {
|
|
2166
|
-
path:
|
|
2166
|
+
path: Bt(e.geometry),
|
|
2167
2167
|
name: e.properties.name,
|
|
2168
2168
|
geo: e,
|
|
2169
2169
|
code: t,
|
|
2170
2170
|
geometry: e.geometry,
|
|
2171
|
-
color: n && n.color ? a(n.color) : n && n.category ?
|
|
2171
|
+
color: n && n.color ? a(n.color) : n && n.category ? Ht(n.category) : zt(n ? n.value : null),
|
|
2172
2172
|
value: n ? n.value : null,
|
|
2173
2173
|
category: n && n.category || null,
|
|
2174
2174
|
isActive: !!n,
|
|
2175
|
-
uid:
|
|
2175
|
+
uid: Wt(t)
|
|
2176
2176
|
};
|
|
2177
|
-
}))),
|
|
2178
|
-
function
|
|
2179
|
-
|
|
2177
|
+
}))), U = S(!1);
|
|
2178
|
+
function Gt(e) {
|
|
2179
|
+
U.value = e, St.value += 1;
|
|
2180
|
+
}
|
|
2181
|
+
let W = S(!1);
|
|
2182
|
+
function Kt() {
|
|
2183
|
+
W.value = !W.value;
|
|
2180
2184
|
}
|
|
2181
|
-
let G = S(!1);
|
|
2182
2185
|
function qt() {
|
|
2183
|
-
|
|
2186
|
+
R.value.showTable = !R.value.showTable;
|
|
2184
2187
|
}
|
|
2185
2188
|
function Jt() {
|
|
2186
|
-
|
|
2187
|
-
}
|
|
2188
|
-
function Yt() {
|
|
2189
|
-
z.value.showTooltip = !z.value.showTooltip;
|
|
2189
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
2190
2190
|
}
|
|
2191
|
-
let
|
|
2191
|
+
let Yt = d(() => P.value.userOptions.show && !P.value.style.chart.title.text), { isPrinting: Xt, isImaging: Zt, generatePdf: Qt, generateImage: $t } = le({
|
|
2192
2192
|
elementId: `world_${A.value}`,
|
|
2193
|
-
fileName:
|
|
2194
|
-
options:
|
|
2195
|
-
}),
|
|
2196
|
-
function
|
|
2193
|
+
fileName: P.value.style.chart.title.text || "vue-ui-world",
|
|
2194
|
+
options: P.value.userOptions.print
|
|
2195
|
+
}), G = S(!1), en = S(null), K = S(null), tn = d(() => K.value ? Bt(K.value.geometry) : "");
|
|
2196
|
+
function nn(e) {
|
|
2197
2197
|
return e ? e.type === "Polygon" ? e.coordinates : e.type === "MultiPolygon" ? e.coordinates.reduce((e, t) => t[0].length > (e[0]?.length || 0) ? t : e, []) : [] : [];
|
|
2198
2198
|
}
|
|
2199
|
-
let
|
|
2200
|
-
let e =
|
|
2199
|
+
let rn = d(() => {
|
|
2200
|
+
let e = K.value?.geometry;
|
|
2201
2201
|
if (!e) return "";
|
|
2202
|
-
let t =
|
|
2202
|
+
let t = nn(e);
|
|
2203
2203
|
if (!t.length) return "";
|
|
2204
|
-
let n = t.flat(), r = [n.reduce((e, [t]) => e + t, 0) / n.length, n.reduce((e, [, t]) => e + t, 0) / n.length], ee =
|
|
2205
|
-
function
|
|
2206
|
-
return [(e -
|
|
2204
|
+
let n = t.flat(), r = [n.reduce((e, [t]) => e + t, 0) / n.length, n.reduce((e, [, t]) => e + t, 0) / n.length], ee = Tt[z.value] || Tt.globe, i = B.value.width, a = B.value.height, o = t.map((e) => e.map(([e, t]) => ee([e, t], i, a, r))), s = o.flat(), c = s.map(([e, t]) => e), l = s.map(([e, t]) => t), te = Math.min(...c), ne = Math.max(...c), re = Math.min(...l), ie = Math.max(...l), ae = ne - te || 1, oe = ie - re || 1, se = Math.min(64 / ae, 64 / oe);
|
|
2205
|
+
function ce([e, t]) {
|
|
2206
|
+
return [(e - te) * se + 8, (t - re) * se + 8];
|
|
2207
2207
|
}
|
|
2208
2208
|
return `
|
|
2209
2209
|
<svg width="80" height="80" viewBox="0 0 80 80" style="display:block;margin:auto;">
|
|
2210
2210
|
<rect x="0" y="0" width="80" height="80" rx="12" fill="transparent" opacity="0.93"/>
|
|
2211
|
-
<path d="${
|
|
2211
|
+
<path d="${o.map((e) => "M" + e.map(ce).map(([e, t]) => `${e},${t}`).join("L") + "Z").join(" ")}" fill="${K.value?.color || P.value.style.chart.territory.emptyColor}" stroke="${P.value.style.chart.territory.stroke}" stroke-width="1"/>
|
|
2212
2212
|
</svg>
|
|
2213
2213
|
`;
|
|
2214
2214
|
});
|
|
2215
|
-
function
|
|
2216
|
-
|
|
2215
|
+
function an({ datapoint: e, seriesIndex: t }) {
|
|
2216
|
+
j.value = !1, K.value = null, P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
2217
2217
|
datapoint: e,
|
|
2218
2218
|
seriesIndex: t
|
|
2219
2219
|
});
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
dt("selectDatapoint", e),
|
|
2221
|
+
function on({ datapoint: e, seriesIndex: t }) {
|
|
2222
|
+
dt("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
|
|
2223
2223
|
datapoint: e,
|
|
2224
2224
|
seriesIndex: t
|
|
2225
2225
|
});
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2228
|
-
|
|
2227
|
+
function sn({ datapoint: e, seriesIndex: t }) {
|
|
2228
|
+
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
2229
2229
|
datapoint: e,
|
|
2230
2230
|
seriesIndex: t
|
|
2231
|
-
}),
|
|
2231
|
+
}), K.value = e, en.value = {
|
|
2232
2232
|
datapoint: e,
|
|
2233
|
-
config:
|
|
2234
|
-
series:
|
|
2235
|
-
},
|
|
2236
|
-
let n = "", r =
|
|
2237
|
-
if (
|
|
2233
|
+
config: P.value,
|
|
2234
|
+
series: H.value
|
|
2235
|
+
}, j.value = !0;
|
|
2236
|
+
let n = "", r = P.value.style.chart.tooltip.customFormat;
|
|
2237
|
+
if (G.value = !1, ie(r)) try {
|
|
2238
2238
|
let t = r({
|
|
2239
2239
|
datapoint: e,
|
|
2240
|
-
config:
|
|
2241
|
-
series:
|
|
2240
|
+
config: P.value,
|
|
2241
|
+
series: H.value
|
|
2242
2242
|
});
|
|
2243
|
-
typeof t == "string" && (
|
|
2243
|
+
typeof t == "string" && (xt.value = t, G.value = !0);
|
|
2244
2244
|
} catch {
|
|
2245
|
-
console.warn("Custom format cannot be applied."),
|
|
2245
|
+
console.warn("Custom format cannot be applied."), G.value = !1;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
G.value || (n += `
|
|
2248
2248
|
<div style="width:100%;">
|
|
2249
|
-
${
|
|
2249
|
+
${P.value.style.chart.tooltip.showMinimap ? `<div class="vue-ui-world-minimap">${rn.value}</div>` : ""}
|
|
2250
2250
|
<div style="display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px">
|
|
2251
2251
|
<svg viewBox="0 0 20 20" height="14" width="14">
|
|
2252
2252
|
<circle cx="10" cy="10" r="10" fill="${e.color}"/>
|
|
2253
2253
|
</svg>
|
|
2254
2254
|
<span>${e.name}:</span>
|
|
2255
2255
|
<b>
|
|
2256
|
-
${
|
|
2257
|
-
p:
|
|
2256
|
+
${c(P.value.style.chart.dataLabels.formatter, e.value, o({
|
|
2257
|
+
p: P.value.style.chart.dataLabels.prefix,
|
|
2258
2258
|
v: e.value,
|
|
2259
|
-
s:
|
|
2260
|
-
r:
|
|
2259
|
+
s: P.value.style.chart.dataLabels.suffix,
|
|
2260
|
+
r: P.value.style.chart.dataLabels.rounding
|
|
2261
2261
|
}))}
|
|
2262
2262
|
</b>
|
|
2263
2263
|
</div>
|
|
2264
2264
|
</div>
|
|
2265
|
-
`,
|
|
2265
|
+
`, xt.value = `<div>${n}</div>`);
|
|
2266
2266
|
}
|
|
2267
|
-
let
|
|
2267
|
+
let cn = S(!1), ln = S({
|
|
2268
2268
|
x: 0,
|
|
2269
2269
|
y: 0
|
|
2270
|
-
}),
|
|
2271
|
-
function
|
|
2270
|
+
}), q = S([P.value.style.chart.globe.center.x, P.value.style.chart.globe.center.y]), un = [0, 0], J = null, Y = null;
|
|
2271
|
+
function dn(e) {
|
|
2272
2272
|
return Math.max(-90, Math.min(90, e));
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function fn(e) {
|
|
2275
2275
|
return ((e + 180) % 360 + 360) % 360 - 180;
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2278
|
-
|
|
2277
|
+
function pn() {
|
|
2278
|
+
J &&= (q.value = J, null);
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2281
|
-
if (
|
|
2282
|
-
|
|
2280
|
+
function mn(e) {
|
|
2281
|
+
if (J = e, typeof requestAnimationFrame > "u") {
|
|
2282
|
+
pn();
|
|
2283
2283
|
return;
|
|
2284
2284
|
}
|
|
2285
|
-
|
|
2286
|
-
|
|
2285
|
+
Y === null && (Y = requestAnimationFrame(() => {
|
|
2286
|
+
Y = null, pn();
|
|
2287
2287
|
}));
|
|
2288
2288
|
}
|
|
2289
|
-
E(() => [
|
|
2290
|
-
|
|
2289
|
+
E(() => [P.value.style.chart.globe.center.x, P.value.style.chart.globe.center.y], ([e, t]) => {
|
|
2290
|
+
q.value = [e, t], J = null;
|
|
2291
2291
|
});
|
|
2292
|
-
function
|
|
2293
|
-
|
|
2292
|
+
function hn(e, t) {
|
|
2293
|
+
cn.value = !0, ln.value = {
|
|
2294
2294
|
x: e,
|
|
2295
2295
|
y: t
|
|
2296
|
-
},
|
|
2296
|
+
}, un = J || [q.value[0], q.value[1]];
|
|
2297
|
+
}
|
|
2298
|
+
function gn(e, t) {
|
|
2299
|
+
if (!cn.value || z.value !== "globe" || W.value) return;
|
|
2300
|
+
let n = e - ln.value.x, r = t - ln.value.y;
|
|
2301
|
+
mn([fn(un[0] - n * ot), dn(un[1] + r * ot)]);
|
|
2297
2302
|
}
|
|
2298
|
-
function _n(
|
|
2299
|
-
|
|
2300
|
-
let n = e - un.value.x, r = t - un.value.y;
|
|
2301
|
-
hn([pn(dn[0] - n * ot), fn(dn[1] + r * ot)]);
|
|
2303
|
+
function _n() {
|
|
2304
|
+
cn.value = !1, Y !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(Y), Y = null), pn();
|
|
2302
2305
|
}
|
|
2303
|
-
function vn() {
|
|
2304
|
-
|
|
2306
|
+
function vn(e) {
|
|
2307
|
+
hn(e.clientX, e.clientY);
|
|
2305
2308
|
}
|
|
2306
2309
|
function yn(e) {
|
|
2307
2310
|
gn(e.clientX, e.clientY);
|
|
2308
2311
|
}
|
|
2309
|
-
function bn(
|
|
2310
|
-
_n(
|
|
2312
|
+
function bn() {
|
|
2313
|
+
_n();
|
|
2311
2314
|
}
|
|
2312
|
-
function xn() {
|
|
2313
|
-
|
|
2315
|
+
function xn(e) {
|
|
2316
|
+
let t = e.touches[0];
|
|
2317
|
+
hn(t.clientX, t.clientY);
|
|
2314
2318
|
}
|
|
2315
2319
|
function Sn(e) {
|
|
2316
2320
|
let t = e.touches[0];
|
|
2317
2321
|
gn(t.clientX, t.clientY);
|
|
2318
2322
|
}
|
|
2319
|
-
function Cn(
|
|
2320
|
-
|
|
2321
|
-
_n(t.clientX, t.clientY);
|
|
2322
|
-
}
|
|
2323
|
-
function wn() {
|
|
2324
|
-
vn();
|
|
2323
|
+
function Cn() {
|
|
2324
|
+
_n();
|
|
2325
2325
|
}
|
|
2326
2326
|
Oe(() => {
|
|
2327
|
-
|
|
2327
|
+
Y !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(Y), Y = null);
|
|
2328
2328
|
});
|
|
2329
|
-
let
|
|
2330
|
-
let e =
|
|
2329
|
+
let X = d(() => {
|
|
2330
|
+
let e = H.value.toSorted((e, t) => (t.value || 0) - (e.value || 0));
|
|
2331
2331
|
return {
|
|
2332
2332
|
head: e.map((e) => ({
|
|
2333
2333
|
name: e.name,
|
|
@@ -2336,65 +2336,65 @@ var Ve = {
|
|
|
2336
2336
|
})),
|
|
2337
2337
|
body: e.map((e) => e.value || 0)
|
|
2338
2338
|
};
|
|
2339
|
-
}),
|
|
2339
|
+
}), wn = d(() => {
|
|
2340
2340
|
let e = [
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
], t =
|
|
2341
|
+
P.value.table.columnNames.series,
|
|
2342
|
+
P.value.table.columnNames.value,
|
|
2343
|
+
P.value.table.columnNames.category
|
|
2344
|
+
], t = X.value.head.map((e, t) => [
|
|
2345
2345
|
{
|
|
2346
2346
|
color: e.color,
|
|
2347
2347
|
name: e.name
|
|
2348
2348
|
},
|
|
2349
|
-
|
|
2349
|
+
X.value.body[t] || 0,
|
|
2350
2350
|
{ category: e.category }
|
|
2351
2351
|
]), n = {
|
|
2352
2352
|
th: {
|
|
2353
|
-
backgroundColor:
|
|
2354
|
-
color:
|
|
2355
|
-
outline:
|
|
2353
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
2354
|
+
color: P.value.table.th.color,
|
|
2355
|
+
outline: P.value.table.th.outline
|
|
2356
2356
|
},
|
|
2357
2357
|
td: {
|
|
2358
|
-
backgroundColor:
|
|
2359
|
-
color:
|
|
2360
|
-
outline:
|
|
2358
|
+
backgroundColor: P.value.table.td.backgroundColor,
|
|
2359
|
+
color: P.value.table.td.color,
|
|
2360
|
+
outline: P.value.table.td.outline
|
|
2361
2361
|
},
|
|
2362
|
-
breakpoint:
|
|
2362
|
+
breakpoint: P.value.table.responsiveBreakpoint
|
|
2363
2363
|
};
|
|
2364
2364
|
return {
|
|
2365
|
-
colNames: [
|
|
2365
|
+
colNames: [P.value.table.columnNames.series, P.value.table.columnNames.value],
|
|
2366
2366
|
head: e,
|
|
2367
2367
|
body: t,
|
|
2368
2368
|
config: n
|
|
2369
2369
|
};
|
|
2370
2370
|
});
|
|
2371
|
-
function
|
|
2371
|
+
function Tn(e = null) {
|
|
2372
2372
|
Ee(() => {
|
|
2373
|
-
let r =
|
|
2374
|
-
[
|
|
2375
|
-
[
|
|
2373
|
+
let r = X.value.head.map((e, t) => [[e.name], [X.value.body[t]]]), ee = [
|
|
2374
|
+
[P.value.style.chart.title.text],
|
|
2375
|
+
[P.value.style.chart.title.subtitle.text],
|
|
2376
2376
|
[[
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2377
|
+
P.value.table.columnNames.series,
|
|
2378
|
+
P.value.table.columnNames.value,
|
|
2379
|
+
P.value.table.columnNames.category
|
|
2380
2380
|
]]
|
|
2381
2381
|
].concat(r), i = n(ee);
|
|
2382
2382
|
e ? e(i) : t({
|
|
2383
2383
|
csvContent: i,
|
|
2384
|
-
title:
|
|
2384
|
+
title: P.value.style.chart.title.text || "vue-ui-world"
|
|
2385
2385
|
});
|
|
2386
2386
|
});
|
|
2387
2387
|
}
|
|
2388
2388
|
let Z = S([]);
|
|
2389
|
-
function
|
|
2389
|
+
function En() {
|
|
2390
2390
|
Z.value.length ? Z.value = [] : Q.value.forEach((e) => {
|
|
2391
2391
|
Z.value.push(e.name);
|
|
2392
2392
|
});
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function Dn(e) {
|
|
2395
2395
|
Z.value.includes(e) ? Z.value = Z.value.filter((t) => t !== e) : Z.value.push(e), dt("selectLegend", { name: e });
|
|
2396
2396
|
}
|
|
2397
|
-
let Q =
|
|
2397
|
+
let Q = d(() => pt ? Vt.value.map(({ name: e, color: t }, n) => ({
|
|
2398
2398
|
name: e,
|
|
2399
2399
|
color: t,
|
|
2400
2400
|
shape: "circle",
|
|
@@ -2402,22 +2402,22 @@ var Ve = {
|
|
|
2402
2402
|
})).map((e) => ({
|
|
2403
2403
|
...e,
|
|
2404
2404
|
opacity: Z.value.includes(e.name) ? .5 : 1,
|
|
2405
|
-
segregate: () =>
|
|
2405
|
+
segregate: () => Dn(e.name),
|
|
2406
2406
|
isSegregated: Z.value.includes(e.name)
|
|
2407
|
-
})) : []),
|
|
2407
|
+
})) : []), On = d(() => ({
|
|
2408
2408
|
cy: "donut-div-legend",
|
|
2409
|
-
backgroundColor:
|
|
2410
|
-
color:
|
|
2411
|
-
fontSize:
|
|
2409
|
+
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
2410
|
+
color: P.value.style.chart.legend.color,
|
|
2411
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
2412
2412
|
paddingBottom: 12,
|
|
2413
|
-
fontWeight:
|
|
2413
|
+
fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
|
|
2414
2414
|
}));
|
|
2415
|
-
function
|
|
2416
|
-
return
|
|
2415
|
+
function kn() {
|
|
2416
|
+
return H.value;
|
|
2417
2417
|
}
|
|
2418
|
-
async function
|
|
2418
|
+
async function An({ scale: e = 2 } = {}) {
|
|
2419
2419
|
if (!k.value) return;
|
|
2420
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: ee, base64: i } = await
|
|
2420
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: ee, base64: i } = await me({
|
|
2421
2421
|
domElement: k.value,
|
|
2422
2422
|
base64: !0,
|
|
2423
2423
|
img: !0,
|
|
@@ -2426,125 +2426,100 @@ var Ve = {
|
|
|
2426
2426
|
return {
|
|
2427
2427
|
imageUri: ee,
|
|
2428
2428
|
base64: i,
|
|
2429
|
-
title:
|
|
2429
|
+
title: P.value.style.chart.title.text,
|
|
2430
2430
|
width: t,
|
|
2431
2431
|
height: n,
|
|
2432
2432
|
aspectRatio: r
|
|
2433
2433
|
};
|
|
2434
2434
|
}
|
|
2435
|
-
let $ =
|
|
2436
|
-
let e =
|
|
2435
|
+
let $ = d(() => {
|
|
2436
|
+
let e = P.value.table.useDialog && !P.value.table.show, t = R.value.showTable;
|
|
2437
2437
|
return {
|
|
2438
2438
|
component: e ? lt : ze,
|
|
2439
|
-
title: `${
|
|
2439
|
+
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
2440
2440
|
props: e ? {
|
|
2441
|
-
backgroundColor:
|
|
2442
|
-
color:
|
|
2443
|
-
headerColor:
|
|
2444
|
-
headerBg:
|
|
2445
|
-
isFullscreen:
|
|
2441
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
2442
|
+
color: P.value.table.th.color,
|
|
2443
|
+
headerColor: P.value.table.th.color,
|
|
2444
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
2445
|
+
isFullscreen: U.value,
|
|
2446
2446
|
fullscreenParent: k.value,
|
|
2447
2447
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
2448
|
-
isCursorPointer:
|
|
2448
|
+
isCursorPointer: F.value
|
|
2449
2449
|
} : {
|
|
2450
2450
|
hideDetails: !0,
|
|
2451
2451
|
config: {
|
|
2452
2452
|
open: t,
|
|
2453
2453
|
maxHeight: 1e4,
|
|
2454
2454
|
body: {
|
|
2455
|
-
backgroundColor:
|
|
2456
|
-
color:
|
|
2455
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
2456
|
+
color: P.value.style.chart.color
|
|
2457
2457
|
},
|
|
2458
2458
|
head: {
|
|
2459
|
-
backgroundColor:
|
|
2460
|
-
color:
|
|
2459
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
2460
|
+
color: P.value.style.chart.color
|
|
2461
2461
|
}
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
2464
|
};
|
|
2465
2465
|
});
|
|
2466
|
-
E(() =>
|
|
2467
|
-
|
|
2466
|
+
E(() => R.value.showTable, (e) => {
|
|
2467
|
+
P.value.table.show || (e && P.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
2468
2468
|
});
|
|
2469
|
-
function
|
|
2470
|
-
|
|
2469
|
+
function jn() {
|
|
2470
|
+
R.value.showTable = !1, wt.value && wt.value.setTableIconState(!1);
|
|
2471
2471
|
}
|
|
2472
|
-
let
|
|
2473
|
-
svg:
|
|
2474
|
-
title:
|
|
2475
|
-
legend:
|
|
2472
|
+
let Mn = d(() => P.value.style.chart.backgroundColor), Nn = d(() => P.value.style.chart.legend), Pn = d(() => P.value.style.chart.title), { isCallbackImaging: Fn, isCallbackSvg: In, generateSvg: Ln, onGenerateImage: Rn } = pe({
|
|
2473
|
+
svg: L,
|
|
2474
|
+
title: Pn,
|
|
2475
|
+
legend: Nn,
|
|
2476
2476
|
legendItems: Q,
|
|
2477
|
-
backgroundColor:
|
|
2477
|
+
backgroundColor: Mn,
|
|
2478
|
+
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
2479
|
+
generateImage: $t
|
|
2478
2480
|
});
|
|
2479
|
-
async function zn(
|
|
2480
|
-
N.value = !0, await Ee();
|
|
2481
|
-
try {
|
|
2482
|
-
if (e) {
|
|
2483
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Rn();
|
|
2484
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
2485
|
-
blob: e,
|
|
2486
|
-
url: t,
|
|
2487
|
-
text: n,
|
|
2488
|
-
dataUrl: r
|
|
2489
|
-
}));
|
|
2490
|
-
} else await Promise.resolve(Ln());
|
|
2491
|
-
} finally {
|
|
2492
|
-
N.value = !1;
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
function Bn(e) {
|
|
2496
|
-
if (e?.stage === "start") {
|
|
2497
|
-
M.value = !0;
|
|
2498
|
-
return;
|
|
2499
|
-
}
|
|
2500
|
-
if (e?.stage === "end") {
|
|
2501
|
-
M.value = !1;
|
|
2502
|
-
return;
|
|
2503
|
-
}
|
|
2504
|
-
en();
|
|
2505
|
-
}
|
|
2506
|
-
async function Vn() {
|
|
2481
|
+
async function zn() {
|
|
2507
2482
|
if (dt("copyAlt", {
|
|
2508
|
-
config:
|
|
2509
|
-
dataset:
|
|
2510
|
-
}), !
|
|
2483
|
+
config: P.value,
|
|
2484
|
+
dataset: H.value
|
|
2485
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
2511
2486
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
2512
2487
|
return;
|
|
2513
2488
|
}
|
|
2514
|
-
await Promise.resolve(
|
|
2515
|
-
config:
|
|
2516
|
-
dataset:
|
|
2489
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
2490
|
+
config: P.value,
|
|
2491
|
+
dataset: H.value
|
|
2517
2492
|
}));
|
|
2518
2493
|
}
|
|
2519
|
-
return
|
|
2520
|
-
getData:
|
|
2521
|
-
getImage:
|
|
2522
|
-
generatePdf:
|
|
2523
|
-
generateCsv:
|
|
2524
|
-
generateImage:
|
|
2525
|
-
generateSvg:
|
|
2526
|
-
toggleTable:
|
|
2527
|
-
toggleTooltip:
|
|
2528
|
-
toggleAnnotator:
|
|
2529
|
-
toggleFullscreen:
|
|
2530
|
-
copyAlt:
|
|
2531
|
-
}), (e, t) => (x(),
|
|
2494
|
+
return ge({
|
|
2495
|
+
getData: kn,
|
|
2496
|
+
getImage: An,
|
|
2497
|
+
generatePdf: Qt,
|
|
2498
|
+
generateCsv: Tn,
|
|
2499
|
+
generateImage: $t,
|
|
2500
|
+
generateSvg: Ln,
|
|
2501
|
+
toggleTable: qt,
|
|
2502
|
+
toggleTooltip: Jt,
|
|
2503
|
+
toggleAnnotator: Kt,
|
|
2504
|
+
toggleFullscreen: Gt,
|
|
2505
|
+
copyAlt: zn
|
|
2506
|
+
}), (e, t) => (x(), m("div", {
|
|
2532
2507
|
ref_key: "worldChart",
|
|
2533
2508
|
ref: k,
|
|
2534
2509
|
id: `world_${A.value}`,
|
|
2535
|
-
class: De(`vue-data-ui-component vue-ui-world ${
|
|
2536
|
-
style: b(`font-family:${
|
|
2537
|
-
onMouseenter: t[2] ||= () => T(
|
|
2538
|
-
onMouseleave: t[3] ||= () => T(
|
|
2510
|
+
class: De(`vue-data-ui-component vue-ui-world ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
2511
|
+
style: b(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
2512
|
+
onMouseenter: t[2] ||= () => T(Nt)(!0),
|
|
2513
|
+
onMouseleave: t[3] ||= () => T(Nt)(!1)
|
|
2539
2514
|
}, [
|
|
2540
|
-
|
|
2515
|
+
P.value.userOptions.buttons.annotator && T(L) ? (x(), f(T(He), {
|
|
2541
2516
|
key: 0,
|
|
2542
|
-
color:
|
|
2543
|
-
backgroundColor:
|
|
2544
|
-
active:
|
|
2545
|
-
svgRef: T(
|
|
2546
|
-
isCursorPointer:
|
|
2547
|
-
onClose:
|
|
2517
|
+
color: P.value.style.chart.color,
|
|
2518
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
2519
|
+
active: W.value,
|
|
2520
|
+
svgRef: T(L),
|
|
2521
|
+
isCursorPointer: F.value,
|
|
2522
|
+
onClose: Kt
|
|
2548
2523
|
}, {
|
|
2549
2524
|
"annotator-action-close": D(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2550
2525
|
"annotator-action-color": D(({ color: t }) => [C(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
@@ -2559,74 +2534,74 @@ var Ve = {
|
|
|
2559
2534
|
"active",
|
|
2560
2535
|
"svgRef",
|
|
2561
2536
|
"isCursorPointer"
|
|
2562
|
-
])) :
|
|
2537
|
+
])) : p("", !0),
|
|
2563
2538
|
C(e.$slots, "userConfig", {}, void 0, !0),
|
|
2564
|
-
|
|
2539
|
+
Yt.value ? (x(), m("div", {
|
|
2565
2540
|
key: 1,
|
|
2566
2541
|
ref_key: "noTitle",
|
|
2567
2542
|
ref: _t,
|
|
2568
2543
|
class: "vue-data-ui-no-title-space",
|
|
2569
2544
|
style: "height:36px; width: 100%;background:transparent"
|
|
2570
|
-
}, null, 512)) :
|
|
2571
|
-
|
|
2545
|
+
}, null, 512)) : p("", !0),
|
|
2546
|
+
P.value.style.chart.title.text ? (x(), m("div", {
|
|
2572
2547
|
key: 2,
|
|
2573
2548
|
ref_key: "chartTitle",
|
|
2574
2549
|
ref: mt,
|
|
2575
2550
|
style: "width:100%;background:transparent"
|
|
2576
|
-
}, [(x(),
|
|
2551
|
+
}, [(x(), f(T(Fe), {
|
|
2577
2552
|
key: `title_${vt.value}`,
|
|
2578
2553
|
config: {
|
|
2579
2554
|
title: {
|
|
2580
2555
|
cy: "donut-div-title",
|
|
2581
|
-
...
|
|
2556
|
+
...P.value.style.chart.title
|
|
2582
2557
|
},
|
|
2583
2558
|
subtitle: {
|
|
2584
2559
|
cy: "donut-div-subtitle",
|
|
2585
|
-
...
|
|
2560
|
+
...P.value.style.chart.title.subtitle
|
|
2586
2561
|
}
|
|
2587
2562
|
}
|
|
2588
|
-
}, null, 8, ["config"]))], 512)) :
|
|
2589
|
-
|
|
2590
|
-
|
|
2563
|
+
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
2564
|
+
h("div", { id: `legend-top-${A.value}` }, null, 8, We),
|
|
2565
|
+
P.value.userOptions.show && ft.value && (T(Pt) || T(Mt)) ? (x(), f(T(st), {
|
|
2591
2566
|
ref_key: "userOptionsRef",
|
|
2592
|
-
ref:
|
|
2593
|
-
key: `user_option_${
|
|
2594
|
-
backgroundColor:
|
|
2595
|
-
color:
|
|
2596
|
-
isPrinting: T(
|
|
2597
|
-
isImaging: T(
|
|
2567
|
+
ref: wt,
|
|
2568
|
+
key: `user_option_${St.value}`,
|
|
2569
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
2570
|
+
color: P.value.style.chart.color,
|
|
2571
|
+
isPrinting: T(Xt),
|
|
2572
|
+
isImaging: T(Zt),
|
|
2598
2573
|
uid: A.value,
|
|
2599
|
-
callbacks:
|
|
2600
|
-
hasTooltip:
|
|
2601
|
-
hasPdf:
|
|
2602
|
-
hasImg:
|
|
2603
|
-
hasSvg:
|
|
2604
|
-
hasXls:
|
|
2605
|
-
hasTable:
|
|
2574
|
+
callbacks: P.value.userOptions.callbacks,
|
|
2575
|
+
hasTooltip: P.value.style.chart.tooltip.show && P.value.userOptions.buttons.tooltip,
|
|
2576
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
2577
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
2578
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
2579
|
+
hasXls: P.value.userOptions.buttons.csv,
|
|
2580
|
+
hasTable: P.value.userOptions.buttons.table,
|
|
2606
2581
|
hasLabel: !1,
|
|
2607
|
-
hasFullscreen:
|
|
2608
|
-
hasAltCopy:
|
|
2609
|
-
isFullscreen:
|
|
2582
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
2583
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
2584
|
+
isFullscreen: U.value,
|
|
2610
2585
|
chartElement: k.value,
|
|
2611
|
-
position:
|
|
2612
|
-
printScale:
|
|
2613
|
-
isTooltip:
|
|
2614
|
-
titles: { ...
|
|
2615
|
-
hasAnnotator:
|
|
2616
|
-
isAnnotation:
|
|
2617
|
-
tableDialog:
|
|
2618
|
-
isCursorPointer:
|
|
2619
|
-
onToggleFullscreen:
|
|
2620
|
-
onGeneratePdf: T(
|
|
2621
|
-
onGenerateCsv:
|
|
2622
|
-
onGenerateImage:
|
|
2623
|
-
onGenerateSvg:
|
|
2624
|
-
onToggleTable:
|
|
2625
|
-
onToggleTooltip:
|
|
2626
|
-
onToggleAnnotator:
|
|
2627
|
-
onCopyAlt:
|
|
2628
|
-
style: b({ visibility: T(
|
|
2629
|
-
},
|
|
2586
|
+
position: P.value.userOptions.position,
|
|
2587
|
+
printScale: P.value.userOptions.print.scale,
|
|
2588
|
+
isTooltip: R.value.showTooltip,
|
|
2589
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
2590
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
2591
|
+
isAnnotation: W.value,
|
|
2592
|
+
tableDialog: P.value.table.useDialog,
|
|
2593
|
+
isCursorPointer: F.value,
|
|
2594
|
+
onToggleFullscreen: Gt,
|
|
2595
|
+
onGeneratePdf: T(Qt),
|
|
2596
|
+
onGenerateCsv: Tn,
|
|
2597
|
+
onGenerateImage: T(Rn),
|
|
2598
|
+
onGenerateSvg: T(Ln),
|
|
2599
|
+
onToggleTable: qt,
|
|
2600
|
+
onToggleTooltip: Jt,
|
|
2601
|
+
onToggleAnnotator: Kt,
|
|
2602
|
+
onCopyAlt: zn,
|
|
2603
|
+
style: b({ visibility: T(Pt) ? T(Mt) ? "visible" : "hidden" : "visible" })
|
|
2604
|
+
}, Ce({ _: 2 }, [
|
|
2630
2605
|
e.$slots.menuIcon ? {
|
|
2631
2606
|
name: "menuIcon",
|
|
2632
2607
|
fn: D(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(v({
|
|
@@ -2696,47 +2671,47 @@ var Ve = {
|
|
|
2696
2671
|
fn: D(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
2697
2672
|
key: "11"
|
|
2698
2673
|
} : void 0
|
|
2699
|
-
]), 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.style".split("."))) :
|
|
2700
|
-
(x(),
|
|
2674
|
+
]), 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("."))) : p("", !0),
|
|
2675
|
+
(x(), m("svg", {
|
|
2701
2676
|
ref_key: "svgRef",
|
|
2702
|
-
ref:
|
|
2703
|
-
viewBox:
|
|
2704
|
-
xmlns: T(
|
|
2677
|
+
ref: L,
|
|
2678
|
+
viewBox: V.value.str,
|
|
2679
|
+
xmlns: T(te),
|
|
2705
2680
|
class: De({
|
|
2706
|
-
"vue-data-ui-fullscreen--on":
|
|
2707
|
-
"vue-data-ui-fullscreen--off": !
|
|
2681
|
+
"vue-data-ui-fullscreen--on": U.value,
|
|
2682
|
+
"vue-data-ui-fullscreen--off": !U.value
|
|
2708
2683
|
}),
|
|
2709
2684
|
style: b({
|
|
2710
2685
|
maxWidth: "100%",
|
|
2711
|
-
overflow:
|
|
2686
|
+
overflow: z.value === "globe" ? "visible" : "hidden",
|
|
2712
2687
|
background: "transparent",
|
|
2713
|
-
color:
|
|
2714
|
-
paddingTop:
|
|
2715
|
-
paddingRight:
|
|
2716
|
-
paddingBottom:
|
|
2717
|
-
paddingLeft:
|
|
2688
|
+
color: P.value.style.chart.color,
|
|
2689
|
+
paddingTop: P.value.style.chart.padding.top + "px",
|
|
2690
|
+
paddingRight: P.value.style.chart.padding.right + "px",
|
|
2691
|
+
paddingBottom: P.value.style.chart.padding.bottom + "px",
|
|
2692
|
+
paddingLeft: P.value.style.chart.padding.left + "px"
|
|
2718
2693
|
}),
|
|
2719
|
-
onMousedown:
|
|
2720
|
-
onMousemove:
|
|
2721
|
-
onMouseup:
|
|
2722
|
-
onMouseleave:
|
|
2723
|
-
onTouchstart:
|
|
2724
|
-
onTouchmove: Ne(
|
|
2725
|
-
onTouchend:
|
|
2694
|
+
onMousedown: vn,
|
|
2695
|
+
onMousemove: yn,
|
|
2696
|
+
onMouseup: bn,
|
|
2697
|
+
onMouseleave: bn,
|
|
2698
|
+
onTouchstart: xn,
|
|
2699
|
+
onTouchmove: Ne(Sn, ["prevent"]),
|
|
2700
|
+
onTouchend: Cn
|
|
2726
2701
|
}, [
|
|
2727
2702
|
g(T(ct)),
|
|
2728
|
-
e.$slots["chart-background"] ? (x(),
|
|
2703
|
+
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
2729
2704
|
key: 0,
|
|
2730
|
-
x:
|
|
2731
|
-
y:
|
|
2732
|
-
width:
|
|
2733
|
-
height:
|
|
2705
|
+
x: V.value.minX,
|
|
2706
|
+
y: V.value.minY,
|
|
2707
|
+
width: V.value.width,
|
|
2708
|
+
height: V.value.height,
|
|
2734
2709
|
style: { pointerEvents: "none" }
|
|
2735
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) :
|
|
2736
|
-
ft.value ? (x(),
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
g(
|
|
2710
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : p("", !0),
|
|
2711
|
+
ft.value ? (x(), m("g", qe, [
|
|
2712
|
+
z.value === "globe" ? (x(), m(u, { key: 0 }, [
|
|
2713
|
+
h("defs", null, [
|
|
2714
|
+
g(_e, {
|
|
2740
2715
|
t: "radial",
|
|
2741
2716
|
id: `water-${A.value}`,
|
|
2742
2717
|
cx: .48,
|
|
@@ -2747,27 +2722,27 @@ var Ve = {
|
|
|
2747
2722
|
stops: [
|
|
2748
2723
|
[
|
|
2749
2724
|
"0%",
|
|
2750
|
-
T(ee)(
|
|
2725
|
+
T(ee)(P.value.style.chart.globe.waterColor, .4),
|
|
2751
2726
|
1
|
|
2752
2727
|
],
|
|
2753
2728
|
[
|
|
2754
2729
|
"45%",
|
|
2755
|
-
|
|
2730
|
+
P.value.style.chart.globe.waterColor,
|
|
2756
2731
|
1
|
|
2757
2732
|
],
|
|
2758
2733
|
[
|
|
2759
2734
|
"80%",
|
|
2760
|
-
T(
|
|
2735
|
+
T(s)(P.value.style.chart.globe.waterColor, .2),
|
|
2761
2736
|
1
|
|
2762
2737
|
],
|
|
2763
2738
|
[
|
|
2764
2739
|
"100%",
|
|
2765
|
-
T(
|
|
2740
|
+
T(s)(P.value.style.chart.globe.waterColor, .5),
|
|
2766
2741
|
.95
|
|
2767
2742
|
]
|
|
2768
2743
|
]
|
|
2769
2744
|
}, null, 8, ["id", "stops"]),
|
|
2770
|
-
g(
|
|
2745
|
+
g(_e, {
|
|
2771
2746
|
t: "radial",
|
|
2772
2747
|
id: `atmo-realistic-${A.value}`,
|
|
2773
2748
|
cx: .5,
|
|
@@ -2781,7 +2756,7 @@ var Ve = {
|
|
|
2781
2756
|
],
|
|
2782
2757
|
[
|
|
2783
2758
|
"98%",
|
|
2784
|
-
|
|
2759
|
+
P.value.style.chart.globe.waterColor,
|
|
2785
2760
|
1
|
|
2786
2761
|
],
|
|
2787
2762
|
[
|
|
@@ -2791,116 +2766,116 @@ var Ve = {
|
|
|
2791
2766
|
]
|
|
2792
2767
|
]
|
|
2793
2768
|
}, null, 8, ["id", "stops"]),
|
|
2794
|
-
|
|
2769
|
+
h("filter", {
|
|
2795
2770
|
id: `blur-${A.value}`,
|
|
2796
2771
|
x: "-30%",
|
|
2797
2772
|
y: "-30%",
|
|
2798
2773
|
width: "160%",
|
|
2799
2774
|
height: "160%"
|
|
2800
|
-
}, [...t[4] ||= [
|
|
2775
|
+
}, [...t[4] ||= [h("feGaussianBlur", { stdDeviation: "8" }, null, -1)]], 8, Je)
|
|
2801
2776
|
]),
|
|
2802
|
-
e.$slots.pattern ? (x(),
|
|
2777
|
+
e.$slots.pattern ? (x(), m("g", Ye, [(x(!0), m(u, null, Ae(H.value, (t, n) => (x(), m("defs", null, [C(e.$slots, "pattern", Te({ ref_for: !0 }, {
|
|
2803
2778
|
...t,
|
|
2804
2779
|
patternId: `pattern_${A.value}_${t.code}`
|
|
2805
|
-
}), void 0, !0)]))), 256))])) :
|
|
2806
|
-
|
|
2807
|
-
cx:
|
|
2808
|
-
cy:
|
|
2809
|
-
r:
|
|
2780
|
+
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
2781
|
+
h("circle", {
|
|
2782
|
+
cx: V.value.width / 2 + 20,
|
|
2783
|
+
cy: V.value.height / 2 + 20,
|
|
2784
|
+
r: V.value.height / 2,
|
|
2810
2785
|
fill: `url(#water-${A.value})`
|
|
2811
2786
|
}, null, 8, Xe),
|
|
2812
|
-
|
|
2813
|
-
cx:
|
|
2814
|
-
cy:
|
|
2815
|
-
r:
|
|
2787
|
+
h("circle", {
|
|
2788
|
+
cx: V.value.width / 2 + 20,
|
|
2789
|
+
cy: V.value.height / 2 + 20,
|
|
2790
|
+
r: V.value.height / 2 + 10,
|
|
2816
2791
|
fill: `url(#atmo-realistic-${A.value})`,
|
|
2817
2792
|
"pointer-events": "none",
|
|
2818
2793
|
filter: `url(#blur-${A.value})`
|
|
2819
2794
|
}, null, 8, Ze)
|
|
2820
|
-
], 64)) :
|
|
2821
|
-
(x(!0),
|
|
2795
|
+
], 64)) : p("", !0),
|
|
2796
|
+
(x(!0), m(u, null, Ae(H.value, (t, n) => (x(), m(u, { key: t.code }, [h("path", {
|
|
2822
2797
|
d: t.path,
|
|
2823
|
-
fill: t.category && Z.value.includes(t.category) ?
|
|
2824
|
-
stroke:
|
|
2825
|
-
"stroke-width":
|
|
2826
|
-
onMouseenter: (e) =>
|
|
2798
|
+
fill: t.category && Z.value.includes(t.category) ? P.value.style.chart.territory.emptyColor : t.color,
|
|
2799
|
+
stroke: P.value.style.chart.territory.stroke,
|
|
2800
|
+
"stroke-width": K.value && K.value.uid === t.uid ? P.value.style.chart.territory.strokeWidthSelected : P.value.style.chart.territory.strokeWidth,
|
|
2801
|
+
onMouseenter: (e) => sn({
|
|
2827
2802
|
datapoint: t,
|
|
2828
2803
|
seriesIndex: n
|
|
2829
2804
|
}),
|
|
2830
|
-
onMouseleave: (e) =>
|
|
2805
|
+
onMouseleave: (e) => an({
|
|
2831
2806
|
datapoint: t,
|
|
2832
2807
|
seriesIndex: n
|
|
2833
2808
|
}),
|
|
2834
|
-
onClick: (e) =>
|
|
2809
|
+
onClick: (e) => on({
|
|
2835
2810
|
datapoint: t,
|
|
2836
2811
|
seriesIndex: n
|
|
2837
2812
|
}),
|
|
2838
2813
|
class: "vue-ui-world-territory"
|
|
2839
|
-
}, [!
|
|
2814
|
+
}, [!j.value || !R.value.showTooltip ? (x(), m("title", $e, [we(w(t.name) + " ", 1), typeof t.value == "number" ? (x(), m(u, { key: 0 }, [we(" : " + w(t.value), 1)], 64)) : p("", !0)])) : p("", !0)], 40, Qe), e.$slots.pattern ? (x(), m("path", {
|
|
2840
2815
|
key: 0,
|
|
2841
2816
|
d: t.path,
|
|
2842
2817
|
fill: `url(#pattern_${A.value}_${t.code})`,
|
|
2843
|
-
stroke:
|
|
2844
|
-
"stroke-width":
|
|
2818
|
+
stroke: P.value.style.chart.territory.stroke,
|
|
2819
|
+
"stroke-width": P.value.style.chart.territory.strokeWidthSelected,
|
|
2845
2820
|
style: { "pointer-events": "none" },
|
|
2846
2821
|
class: "vue-ui-world-territory"
|
|
2847
|
-
}, null, 8, et)) :
|
|
2848
|
-
|
|
2822
|
+
}, null, 8, et)) : p("", !0)], 64))), 128)),
|
|
2823
|
+
K.value ? (x(), m("path", {
|
|
2849
2824
|
key: 1,
|
|
2850
|
-
d:
|
|
2825
|
+
d: tn.value,
|
|
2851
2826
|
fill: "transparent",
|
|
2852
|
-
stroke:
|
|
2853
|
-
"stroke-width":
|
|
2827
|
+
stroke: P.value.style.chart.territory.stroke,
|
|
2828
|
+
"stroke-width": P.value.style.chart.territory.strokeWidthSelected,
|
|
2854
2829
|
style: { "pointer-events": "none" },
|
|
2855
2830
|
class: "vue-ui-world-territory"
|
|
2856
|
-
}, null, 8, tt)) :
|
|
2857
|
-
])) :
|
|
2831
|
+
}, null, 8, tt)) : p("", !0)
|
|
2832
|
+
])) : p("", !0),
|
|
2858
2833
|
C(e.$slots, "svg", { svg: {
|
|
2859
|
-
height:
|
|
2860
|
-
width:
|
|
2861
|
-
isPrintingImg: T(
|
|
2862
|
-
isPrintingSvg:
|
|
2834
|
+
height: B.value.height,
|
|
2835
|
+
width: B.value.width,
|
|
2836
|
+
isPrintingImg: T(Xt) || T(Zt) || T(Fn),
|
|
2837
|
+
isPrintingSvg: T(In)
|
|
2863
2838
|
} }, void 0, !0)
|
|
2864
2839
|
], 46, Ge)),
|
|
2865
|
-
e.$slots.watermark ? (x(),
|
|
2866
|
-
|
|
2867
|
-
|
|
2840
|
+
e.$slots.watermark ? (x(), m("div", nt, [C(e.$slots, "watermark", y(v({ isPrinting: T(Xt) || T(Zt) || T(Fn) || T(In) })), void 0, !0)])) : p("", !0),
|
|
2841
|
+
h("div", { id: `legend-bottom-${A.value}` }, null, 8, rt),
|
|
2842
|
+
Ct.value && pt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Se, {
|
|
2868
2843
|
key: 5,
|
|
2869
|
-
to:
|
|
2870
|
-
}, [pt.value ? (x(),
|
|
2844
|
+
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
2845
|
+
}, [pt.value ? (x(), m("div", {
|
|
2871
2846
|
key: 0,
|
|
2872
2847
|
ref_key: "chartLegend",
|
|
2873
2848
|
ref: ht
|
|
2874
|
-
}, [C(e.$slots, "legend", { legend: Q.value }, () => [
|
|
2849
|
+
}, [C(e.$slots, "legend", { legend: Q.value }, () => [P.value.style.chart.legend.show ? (x(), f(T(Ie), {
|
|
2875
2850
|
key: `legend_${yt.value}`,
|
|
2876
2851
|
legendSet: Q.value,
|
|
2877
|
-
config:
|
|
2878
|
-
isCursorPointer:
|
|
2879
|
-
onClickMarker: t[0] ||= (e) =>
|
|
2880
|
-
},
|
|
2881
|
-
item: D(({ legend: e, index: t }) => [
|
|
2852
|
+
config: On.value,
|
|
2853
|
+
isCursorPointer: F.value,
|
|
2854
|
+
onClickMarker: t[0] ||= (e) => Dn(e)
|
|
2855
|
+
}, Ce({
|
|
2856
|
+
item: D(({ legend: e, index: t }) => [h("div", {
|
|
2882
2857
|
style: b(`opacity:${Z.value.includes(e.name) ? .5 : 1}`),
|
|
2883
2858
|
onClick: (t) => e.segregate()
|
|
2884
2859
|
}, w(e.name), 13, it)]),
|
|
2885
|
-
legendToggle: D(() => [Q.value.length > 2 &&
|
|
2860
|
+
legendToggle: D(() => [Q.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(jt) ? (x(), f(ve, {
|
|
2886
2861
|
key: 0,
|
|
2887
|
-
backgroundColor:
|
|
2888
|
-
color:
|
|
2889
|
-
fontSize:
|
|
2862
|
+
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2863
|
+
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
2864
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
2890
2865
|
checked: Z.value.length > 0,
|
|
2891
|
-
isCursorPointer:
|
|
2892
|
-
onToggle:
|
|
2866
|
+
isCursorPointer: F.value,
|
|
2867
|
+
onToggle: En
|
|
2893
2868
|
}, null, 8, [
|
|
2894
2869
|
"backgroundColor",
|
|
2895
2870
|
"color",
|
|
2896
2871
|
"fontSize",
|
|
2897
2872
|
"checked",
|
|
2898
2873
|
"isCursorPointer"
|
|
2899
|
-
])) :
|
|
2874
|
+
])) : p("", !0)]),
|
|
2900
2875
|
_: 2
|
|
2901
2876
|
}, [e.$slots.pattern ? {
|
|
2902
2877
|
name: "legend-pattern",
|
|
2903
|
-
fn: D(({ legend: e, index: t }) => [g(
|
|
2878
|
+
fn: D(({ legend: e, index: t }) => [g(he, {
|
|
2904
2879
|
shape: e.shape,
|
|
2905
2880
|
radius: 30,
|
|
2906
2881
|
stroke: "none",
|
|
@@ -2915,38 +2890,38 @@ var Ve = {
|
|
|
2915
2890
|
"legendSet",
|
|
2916
2891
|
"config",
|
|
2917
2892
|
"isCursorPointer"
|
|
2918
|
-
])) :
|
|
2919
|
-
e.$slots.source ? (x(),
|
|
2893
|
+
])) : p("", !0)], !0)], 512)) : p("", !0)], 8, ["to"])) : p("", !0),
|
|
2894
|
+
e.$slots.source ? (x(), m("div", {
|
|
2920
2895
|
key: 6,
|
|
2921
2896
|
ref_key: "source",
|
|
2922
2897
|
ref: gt,
|
|
2923
2898
|
dir: "auto"
|
|
2924
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
2899
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
2925
2900
|
g(T(Le), {
|
|
2926
|
-
teleportTo:
|
|
2927
|
-
show:
|
|
2928
|
-
backgroundColor:
|
|
2929
|
-
color:
|
|
2930
|
-
fontSize:
|
|
2931
|
-
borderRadius:
|
|
2932
|
-
borderColor:
|
|
2933
|
-
borderWidth:
|
|
2934
|
-
backgroundOpacity:
|
|
2935
|
-
position:
|
|
2936
|
-
offsetX:
|
|
2937
|
-
offsetY:
|
|
2901
|
+
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
2902
|
+
show: R.value.showTooltip && j.value,
|
|
2903
|
+
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
2904
|
+
color: P.value.style.chart.tooltip.color,
|
|
2905
|
+
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
2906
|
+
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
2907
|
+
borderColor: P.value.style.chart.tooltip.borderColor,
|
|
2908
|
+
borderWidth: P.value.style.chart.tooltip.borderWidth,
|
|
2909
|
+
backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
|
|
2910
|
+
position: P.value.style.chart.tooltip.position,
|
|
2911
|
+
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
2912
|
+
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
2938
2913
|
parent: k.value,
|
|
2939
|
-
content:
|
|
2940
|
-
isCustom:
|
|
2941
|
-
isFullscreen:
|
|
2942
|
-
smooth:
|
|
2943
|
-
backdropFilter:
|
|
2944
|
-
smoothForce:
|
|
2945
|
-
smoothSnapThreshold:
|
|
2914
|
+
content: xt.value,
|
|
2915
|
+
isCustom: G.value,
|
|
2916
|
+
isFullscreen: U.value,
|
|
2917
|
+
smooth: P.value.style.chart.tooltip.smooth,
|
|
2918
|
+
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
2919
|
+
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
2920
|
+
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold
|
|
2946
2921
|
}, {
|
|
2947
|
-
"tooltip-before": D(() => [C(e.$slots, "tooltip-before", y(v({ ...
|
|
2948
|
-
tooltip: D(() => [C(e.$slots, "tooltip", y(v({ ...
|
|
2949
|
-
"tooltip-after": D(() => [C(e.$slots, "tooltip-after", y(v({ ...
|
|
2922
|
+
"tooltip-before": D(() => [C(e.$slots, "tooltip-before", y(v({ ...en.value })), void 0, !0)]),
|
|
2923
|
+
tooltip: D(() => [C(e.$slots, "tooltip", y(v({ ...en.value })), void 0, !0)]),
|
|
2924
|
+
"tooltip-after": D(() => [C(e.$slots, "tooltip-after", y(v({ ...en.value })), void 0, !0)]),
|
|
2950
2925
|
_: 3
|
|
2951
2926
|
}, 8, [
|
|
2952
2927
|
"teleportTo",
|
|
@@ -2970,34 +2945,34 @@ var Ve = {
|
|
|
2970
2945
|
"smoothForce",
|
|
2971
2946
|
"smoothSnapThreshold"
|
|
2972
2947
|
]),
|
|
2973
|
-
ft.value &&
|
|
2948
|
+
ft.value && P.value.userOptions.buttons.table ? (x(), f(je($.value.component), Te({ key: 7 }, $.value.props, {
|
|
2974
2949
|
ref_key: "tableUnit",
|
|
2975
|
-
ref:
|
|
2976
|
-
onClose:
|
|
2977
|
-
}),
|
|
2978
|
-
content: D(() => [(x(),
|
|
2950
|
+
ref: M,
|
|
2951
|
+
onClose: jn
|
|
2952
|
+
}), Ce({
|
|
2953
|
+
content: D(() => [(x(), f(T(Be), {
|
|
2979
2954
|
key: `table_${bt.value}`,
|
|
2980
|
-
colNames:
|
|
2981
|
-
head:
|
|
2982
|
-
body:
|
|
2983
|
-
config:
|
|
2984
|
-
title:
|
|
2985
|
-
withCloseButton: !
|
|
2986
|
-
isCursorPointer:
|
|
2987
|
-
onClose:
|
|
2955
|
+
colNames: wn.value.colNames,
|
|
2956
|
+
head: wn.value.head,
|
|
2957
|
+
body: wn.value.body,
|
|
2958
|
+
config: wn.value.config,
|
|
2959
|
+
title: P.value.table.useDialog ? "" : $.value.title,
|
|
2960
|
+
withCloseButton: !P.value.table.useDialog,
|
|
2961
|
+
isCursorPointer: F.value,
|
|
2962
|
+
onClose: jn
|
|
2988
2963
|
}, {
|
|
2989
|
-
th: D(({ th: e }) => [
|
|
2964
|
+
th: D(({ th: e }) => [h("div", {
|
|
2990
2965
|
innerHTML: e,
|
|
2991
2966
|
style: {
|
|
2992
2967
|
display: "flex",
|
|
2993
2968
|
"align-items": "center"
|
|
2994
2969
|
}
|
|
2995
2970
|
}, null, 8, at)]),
|
|
2996
|
-
td: D(({ td: e }) => [
|
|
2997
|
-
p:
|
|
2971
|
+
td: D(({ td: e }) => [we(w(e.name ? e.name : e.category ? e.category : T(c)(P.value.style.chart.dataLabels.formatter, e, T(o)({
|
|
2972
|
+
p: P.value.style.chart.dataLabels.prefix,
|
|
2998
2973
|
v: e,
|
|
2999
|
-
s:
|
|
3000
|
-
r:
|
|
2974
|
+
s: P.value.style.chart.dataLabels.suffix,
|
|
2975
|
+
r: P.value.style.chart.dataLabels.rounding
|
|
3001
2976
|
}))), 1)]),
|
|
3002
2977
|
_: 1
|
|
3003
2978
|
}, 8, [
|
|
@@ -3010,26 +2985,26 @@ var Ve = {
|
|
|
3010
2985
|
"isCursorPointer"
|
|
3011
2986
|
]))]),
|
|
3012
2987
|
_: 2
|
|
3013
|
-
}, [
|
|
2988
|
+
}, [P.value.table.useDialog ? {
|
|
3014
2989
|
name: "title",
|
|
3015
|
-
fn: D(() => [
|
|
2990
|
+
fn: D(() => [we(w($.value.title), 1)]),
|
|
3016
2991
|
key: "0"
|
|
3017
|
-
} : void 0,
|
|
2992
|
+
} : void 0, P.value.table.useDialog ? {
|
|
3018
2993
|
name: "actions",
|
|
3019
|
-
fn: D(() => [
|
|
2994
|
+
fn: D(() => [h("button", {
|
|
3020
2995
|
tabindex: "0",
|
|
3021
2996
|
class: "vue-ui-user-options-button",
|
|
3022
|
-
onClick: t[1] ||= (e) =>
|
|
3023
|
-
style: b({ cursor:
|
|
2997
|
+
onClick: t[1] ||= (e) => Tn(P.value.userOptions.callbacks.csv),
|
|
2998
|
+
style: b({ cursor: F.value ? "pointer" : "default" })
|
|
3024
2999
|
}, [g(T(Re), {
|
|
3025
3000
|
name: "fileCsv",
|
|
3026
3001
|
stroke: $.value.props.color
|
|
3027
3002
|
}, null, 8, ["stroke"])], 4)]),
|
|
3028
3003
|
key: "1"
|
|
3029
|
-
} : void 0]), 1040)) :
|
|
3030
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
3004
|
+
} : void 0]), 1040)) : p("", !0),
|
|
3005
|
+
C(e.$slots, "skeleton", {}, () => [T(jt) ? (x(), f(de, { key: 0 })) : p("", !0)], !0)
|
|
3031
3006
|
], 46, Ue));
|
|
3032
3007
|
}
|
|
3033
|
-
}, [["__scopeId", "data-v-
|
|
3008
|
+
}, [["__scopeId", "data-v-fb4a5885"]]);
|
|
3034
3009
|
//#endregion
|
|
3035
3010
|
export { He as n, st as t };
|