vue-data-ui 3.22.8 → 3.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- 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/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t 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 {
|
|
2
|
+
import { C as t, Dt as n, E as r, J as ee, K as i, Nt as a, Q as te, Y as o, _t as s, bt as ne, i as c, qt as re, t as ie, vt as ae, x as l } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as se } from "./usePrinter-B-X_Pub0.js";
|
|
5
|
+
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ue } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as de } from "./useNestedProp-D8NuRneO.js";
|
|
8
|
+
import { t as fe } from "./img-CNdXiUfZ.js";
|
|
9
|
+
import { t as pe } from "./Shape-B5ksaGa1.js";
|
|
10
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
+
import { t as he } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
+
import { t as ge } from "./BaseLegendToggle-BrQ2OlzI.js";
|
|
13
|
+
import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
|
|
14
|
+
import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
15
|
+
import { t as ye } from "./geoProjections-BbN7z57k.js";
|
|
16
|
+
import { Fragment as u, Teleport as be, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as xe, createTextVNode as Se, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ce, nextTick as we, normalizeClass as Te, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ee, onMounted as De, openBlock as x, ref as S, renderList as Oe, renderSlot as C, resolveDynamicComponent as ke, toDisplayString as w, toRefs as Ae, unref as T, watch as je, withCtx as E, withModifiers as Me } from "vue";
|
|
16
17
|
//#region src/resources/worldGeo.js
|
|
17
18
|
var Ne = 1e3, Pe = [
|
|
18
19
|
"name",
|
|
@@ -1940,23 +1941,23 @@ var Be = {
|
|
|
1940
1941
|
coordinates: ze(t, n)
|
|
1941
1942
|
}
|
|
1942
1943
|
}))
|
|
1943
|
-
}, Ve = /* @__PURE__ */ e({ default: () =>
|
|
1944
|
+
}, Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We = ["viewBox", "xmlns"], Ge = [
|
|
1944
1945
|
"x",
|
|
1945
1946
|
"y",
|
|
1946
1947
|
"width",
|
|
1947
1948
|
"height"
|
|
1948
|
-
], Ke = { key: 1 }, qe = ["id"], Je =
|
|
1949
|
+
], Ke = { key: 1 }, qe = ["id"], Je = { key: 0 }, Ye = [
|
|
1949
1950
|
"cx",
|
|
1950
1951
|
"cy",
|
|
1951
1952
|
"r",
|
|
1952
1953
|
"fill"
|
|
1953
|
-
],
|
|
1954
|
+
], Xe = [
|
|
1954
1955
|
"cx",
|
|
1955
1956
|
"cy",
|
|
1956
1957
|
"r",
|
|
1957
1958
|
"fill",
|
|
1958
1959
|
"filter"
|
|
1959
|
-
],
|
|
1960
|
+
], Ze = [
|
|
1960
1961
|
"d",
|
|
1961
1962
|
"fill",
|
|
1962
1963
|
"stroke",
|
|
@@ -1964,19 +1965,19 @@ var Be = {
|
|
|
1964
1965
|
"onMouseenter",
|
|
1965
1966
|
"onMouseleave",
|
|
1966
1967
|
"onClick"
|
|
1967
|
-
],
|
|
1968
|
+
], Qe = { key: 0 }, $e = [
|
|
1968
1969
|
"d",
|
|
1969
1970
|
"fill",
|
|
1970
1971
|
"stroke",
|
|
1971
1972
|
"stroke-width"
|
|
1972
|
-
],
|
|
1973
|
+
], et = [
|
|
1973
1974
|
"d",
|
|
1974
1975
|
"stroke",
|
|
1975
1976
|
"stroke-width"
|
|
1976
|
-
],
|
|
1977
|
+
], tt = {
|
|
1977
1978
|
key: 4,
|
|
1978
1979
|
class: "vue-data-ui-watermark"
|
|
1979
|
-
},
|
|
1980
|
+
}, nt = ["id"], rt = ["onClick"], it = ["innerHTML"], at = .5, ot = /*#__PURE__*/ me({
|
|
1980
1981
|
__name: "vue-ui-world",
|
|
1981
1982
|
props: {
|
|
1982
1983
|
config: {
|
|
@@ -1997,27 +1998,27 @@ var Be = {
|
|
|
1997
1998
|
"selectLegend",
|
|
1998
1999
|
"copyAlt"
|
|
1999
2000
|
],
|
|
2000
|
-
setup(e, { expose:
|
|
2001
|
-
let Pe =
|
|
2001
|
+
setup(e, { expose: me, emit: Ne }) {
|
|
2002
|
+
let Pe = _(() => import("./Title-Cr3jP7Qd.js").then((e) => e.t)), Fe = _(() => import("./Legend-5VQGLnmx.js").then((e) => e.n)), Ie = _(() => import("./Tooltip-CDbLl3TD.js")), Le = _(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), Re = _(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), ze = _(() => import("./DataTable-ByZy5gt1.js")), Ve = _(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), ot = _(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), st = _(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), ct = _(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_world: lt } = oe(), D = e, ut = Ne, dt = d({
|
|
2002
2003
|
get() {
|
|
2003
2004
|
return !!L.value;
|
|
2004
2005
|
},
|
|
2005
2006
|
set(e) {
|
|
2006
2007
|
return e;
|
|
2007
2008
|
}
|
|
2008
|
-
}),
|
|
2009
|
-
|
|
2010
|
-
|
|
2009
|
+
}), ft = d(() => dt ? Object.values(L.value).some((e) => Object.hasOwn(e, "category")) : !1), O = S(null), pt = S(null), mt = S(null), ht = S(null), gt = S(null), _t = S(0), vt = S(0), yt = S(0), k = S(i()), A = S(!1), bt = S(""), xt = S(0), St = S(!1), j = S(null), Ct = S(null), M = S(!1), N = S(!1);
|
|
2010
|
+
De(() => {
|
|
2011
|
+
St.value = !0;
|
|
2011
2012
|
});
|
|
2012
|
-
let P = Be, { projections:
|
|
2013
|
-
function
|
|
2014
|
-
let e =
|
|
2015
|
-
userConfig:
|
|
2016
|
-
defaultConfig:
|
|
2013
|
+
let P = Be, { projections: wt, getProjectedBounds: Tt, setupTerritories: Et, geoToPath: Dt } = ye;
|
|
2014
|
+
function Ot() {
|
|
2015
|
+
let e = de({
|
|
2016
|
+
userConfig: D.config,
|
|
2017
|
+
defaultConfig: lt
|
|
2017
2018
|
});
|
|
2018
|
-
return
|
|
2019
|
+
return D.config && s(D.config, "style.chart.territory.colors.min") ? e.style.chart.territory.colors.min = l(D.config.style.chart.territory.colors.min) : e.style.chart.territory.colors.min = e.style.chart.territory.emptyColor, D.config && s(D.config, "style.chart.territory.colors.max") ? e.style.chart.territory.colors.max = l(D.config.style.chart.territory.colors.max) : e.style.chart.territory.colors.max = a[0], P = Et(e, P), e;
|
|
2019
2020
|
}
|
|
2020
|
-
let F =
|
|
2021
|
+
let F = S(Ot()), I = d(() => F.value.userOptions.useCursorPointer), kt = d(() => re({
|
|
2021
2022
|
defaultConfig: {
|
|
2022
2023
|
userOptions: { show: !1 },
|
|
2023
2024
|
table: { show: !1 },
|
|
@@ -2034,28 +2035,28 @@ var Be = {
|
|
|
2034
2035
|
} }
|
|
2035
2036
|
},
|
|
2036
2037
|
userConfig: F.value.skeletonConfig ?? {}
|
|
2037
|
-
})), { loading:
|
|
2038
|
-
...
|
|
2038
|
+
})), { loading: At, FINAL_DATASET: L } = ce({
|
|
2039
|
+
...Ae(D),
|
|
2039
2040
|
FINAL_CONFIG: F,
|
|
2040
|
-
prepareConfig:
|
|
2041
|
-
skeletonDataset:
|
|
2042
|
-
skeletonConfig:
|
|
2041
|
+
prepareConfig: Ot,
|
|
2042
|
+
skeletonDataset: D.config?.skeletonDataset ?? [],
|
|
2043
|
+
skeletonConfig: re({
|
|
2043
2044
|
defaultConfig: F.value,
|
|
2044
|
-
userConfig:
|
|
2045
|
+
userConfig: kt.value
|
|
2045
2046
|
})
|
|
2046
|
-
}), { userOptionsVisible:
|
|
2047
|
+
}), { userOptionsVisible: jt, setUserOptionsVisibility: Mt, keepUserOptionState: Nt } = _e({ config: F.value }), { svgRef: R } = ve({ config: F.value.style.chart.title }), z = S({
|
|
2047
2048
|
showTable: F.value.table.show,
|
|
2048
2049
|
showTooltip: F.value.style.chart.tooltip.show
|
|
2049
2050
|
});
|
|
2050
|
-
|
|
2051
|
-
F.value =
|
|
2052
|
-
}),
|
|
2051
|
+
je(() => D.config, (e) => {
|
|
2052
|
+
F.value = Ot(), jt.value = !F.value.userOptions.showOnChartHover, _t.value += 1, yt.value += 1, vt.value += 1, z.value.showTable = F.value.table.show, z.value.showTooltip = F.value.style.chart.tooltip.show;
|
|
2053
|
+
}), je(F, () => {
|
|
2053
2054
|
z.value = {
|
|
2054
2055
|
showTable: F.value.table.show,
|
|
2055
2056
|
showTooltip: F.value.style.chart.tooltip.show
|
|
2056
2057
|
};
|
|
2057
2058
|
}, { immediate: !0 });
|
|
2058
|
-
let
|
|
2059
|
+
let Pt = d(() => t(F.value.customPalette)), B = d(() => F.value.projection || "globe"), V = d(() => {
|
|
2059
2060
|
let { height: e, width: t } = F.value.style.chart.dimensions;
|
|
2060
2061
|
return {
|
|
2061
2062
|
aitoff: {
|
|
@@ -2111,8 +2112,8 @@ var Be = {
|
|
|
2111
2112
|
height: e || 1e3
|
|
2112
2113
|
}
|
|
2113
2114
|
}[B.value];
|
|
2114
|
-
}), H =
|
|
2115
|
-
let { minX: e, minY: t, width: n, height: r } =
|
|
2115
|
+
}), H = d(() => {
|
|
2116
|
+
let { minX: e, minY: t, width: n, height: r } = Tt(wt[B.value], P.features, V.value.width, V.value.height, J.value);
|
|
2116
2117
|
return {
|
|
2117
2118
|
str: `${e} ${t} ${n} ${r}`,
|
|
2118
2119
|
minX: e,
|
|
@@ -2120,131 +2121,131 @@ var Be = {
|
|
|
2120
2121
|
width: n,
|
|
2121
2122
|
height: r
|
|
2122
2123
|
};
|
|
2123
|
-
}),
|
|
2124
|
-
function
|
|
2125
|
-
return typeof e == "number" ?
|
|
2124
|
+
}), Ft = d(() => Object.values(L.value).map((e) => e.value)), It = d(() => Math.min(...Ft.value)), Lt = d(() => Math.max(...Ft.value));
|
|
2125
|
+
function Rt(e) {
|
|
2126
|
+
return typeof e == "number" ? ae(F.value.style.chart.territory.colors.min || "#FFFFFF00", F.value.style.chart.territory.colors.max || Pt.value[0] || a[0], It.value, Lt.value, e) : F.value.style.chart.territory.emptyColor;
|
|
2126
2127
|
}
|
|
2127
|
-
function
|
|
2128
|
-
return
|
|
2128
|
+
function zt(e) {
|
|
2129
|
+
return Dt(e, {
|
|
2129
2130
|
projection: B.value,
|
|
2130
2131
|
width: V.value.width,
|
|
2131
2132
|
height: V.value.height,
|
|
2132
2133
|
center: J.value
|
|
2133
2134
|
});
|
|
2134
2135
|
}
|
|
2135
|
-
let
|
|
2136
|
+
let Bt = d(() => {
|
|
2136
2137
|
let e = Object.values(L.value).filter((e) => !!e.category), t = {};
|
|
2137
2138
|
return e.forEach((e) => {
|
|
2138
2139
|
t[e.category] || (t[e.category] = e);
|
|
2139
2140
|
}), Object.values(t).map((e, t) => ({
|
|
2140
2141
|
name: e.category,
|
|
2141
|
-
color: e.color ?
|
|
2142
|
+
color: e.color ? l(e.color) : Pt.value[t] || a[t] || a[t % a.length]
|
|
2142
2143
|
}));
|
|
2143
2144
|
});
|
|
2144
|
-
function
|
|
2145
|
-
let t =
|
|
2145
|
+
function Vt(e) {
|
|
2146
|
+
let t = Bt.value.find((t) => t.name === e);
|
|
2146
2147
|
return t ? t.color : "#000000";
|
|
2147
2148
|
}
|
|
2148
|
-
let
|
|
2149
|
-
function
|
|
2150
|
-
return
|
|
2149
|
+
let Ht = /* @__PURE__ */ new Map();
|
|
2150
|
+
function Ut(e) {
|
|
2151
|
+
return Ht.has(e) || Ht.set(e, `territory-${i()}`), Ht.get(e);
|
|
2151
2152
|
}
|
|
2152
|
-
let U =
|
|
2153
|
+
let U = d(() => (J.value, P.features.map((e) => {
|
|
2153
2154
|
let t = e.properties.iso_a3;
|
|
2154
2155
|
(!t || t === "-99") && (t = e.properties.iso_a3_eh);
|
|
2155
2156
|
let n = L.value[t];
|
|
2156
2157
|
return {
|
|
2157
|
-
path:
|
|
2158
|
+
path: zt(e.geometry),
|
|
2158
2159
|
name: e.properties.name,
|
|
2159
2160
|
geo: e,
|
|
2160
2161
|
code: t,
|
|
2161
2162
|
geometry: e.geometry,
|
|
2162
|
-
color: n && n.color ?
|
|
2163
|
+
color: n && n.color ? l(n.color) : n && n.category ? Vt(n.category) : Rt(n ? n.value : null),
|
|
2163
2164
|
value: n ? n.value : null,
|
|
2164
2165
|
category: n && n.category || null,
|
|
2165
2166
|
isActive: !!n,
|
|
2166
|
-
uid:
|
|
2167
|
+
uid: Ut(t)
|
|
2167
2168
|
};
|
|
2168
|
-
}))), W =
|
|
2169
|
-
function
|
|
2170
|
-
W.value = e,
|
|
2169
|
+
}))), W = S(!1);
|
|
2170
|
+
function Wt(e) {
|
|
2171
|
+
W.value = e, xt.value += 1;
|
|
2171
2172
|
}
|
|
2172
|
-
let G =
|
|
2173
|
-
function
|
|
2173
|
+
let G = S(!1);
|
|
2174
|
+
function Gt() {
|
|
2174
2175
|
G.value = !G.value;
|
|
2175
2176
|
}
|
|
2176
|
-
function
|
|
2177
|
+
function Kt() {
|
|
2177
2178
|
z.value.showTable = !z.value.showTable;
|
|
2178
2179
|
}
|
|
2179
|
-
function
|
|
2180
|
+
function qt() {
|
|
2180
2181
|
z.value.showTooltip = !z.value.showTooltip;
|
|
2181
2182
|
}
|
|
2182
|
-
let
|
|
2183
|
+
let Jt = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), { isPrinting: Yt, isImaging: Xt, generatePdf: Zt, generateImage: Qt } = se({
|
|
2183
2184
|
elementId: `world_${k.value}`,
|
|
2184
2185
|
fileName: F.value.style.chart.title.text || "vue-ui-world",
|
|
2185
2186
|
options: F.value.userOptions.print
|
|
2186
|
-
}), K =
|
|
2187
|
-
function
|
|
2187
|
+
}), K = S(!1), $t = S(null), q = S(null), en = d(() => q.value ? zt(q.value.geometry) : "");
|
|
2188
|
+
function tn(e) {
|
|
2188
2189
|
return e ? e.type === "Polygon" ? e.coordinates : e.type === "MultiPolygon" ? e.coordinates.reduce((e, t) => t[0].length > (e[0]?.length || 0) ? t : e, []) : [] : [];
|
|
2189
2190
|
}
|
|
2190
|
-
let
|
|
2191
|
+
let nn = d(() => {
|
|
2191
2192
|
let e = q.value?.geometry;
|
|
2192
2193
|
if (!e) return "";
|
|
2193
|
-
let t =
|
|
2194
|
+
let t = tn(e);
|
|
2194
2195
|
if (!t.length) return "";
|
|
2195
|
-
let n = t.flat(), r = [n.reduce((e, [t]) => e + t, 0) / n.length, n.reduce((e, [, t]) => e + t, 0) / n.length],
|
|
2196
|
-
function
|
|
2197
|
-
return [(e -
|
|
2196
|
+
let n = t.flat(), r = [n.reduce((e, [t]) => e + t, 0) / n.length, n.reduce((e, [, t]) => e + t, 0) / n.length], ee = wt[B.value] || wt.globe, i = V.value.width, a = V.value.height, te = t.map((e) => e.map(([e, t]) => ee([e, t], i, a, r))), o = te.flat(), s = o.map(([e, t]) => e), ne = o.map(([e, t]) => t), c = Math.min(...s), re = Math.max(...s), ie = Math.min(...ne), ae = Math.max(...ne), l = re - c || 1, oe = ae - ie || 1, se = Math.min(64 / l, 64 / oe);
|
|
2197
|
+
function ce([e, t]) {
|
|
2198
|
+
return [(e - c) * se + 8, (t - ie) * se + 8];
|
|
2198
2199
|
}
|
|
2199
2200
|
return `
|
|
2200
2201
|
<svg width="80" height="80" viewBox="0 0 80 80" style="display:block;margin:auto;">
|
|
2201
2202
|
<rect x="0" y="0" width="80" height="80" rx="12" fill="transparent" opacity="0.93"/>
|
|
2202
|
-
<path d="${te.map((e) => "M" + e.map(
|
|
2203
|
+
<path d="${te.map((e) => "M" + e.map(ce).map(([e, t]) => `${e},${t}`).join("L") + "Z").join(" ")}" fill="${q.value?.color || F.value.style.chart.territory.emptyColor}" stroke="${F.value.style.chart.territory.stroke}" stroke-width="1"/>
|
|
2203
2204
|
</svg>
|
|
2204
2205
|
`;
|
|
2205
2206
|
});
|
|
2206
|
-
function
|
|
2207
|
+
function rn({ datapoint: e, seriesIndex: t }) {
|
|
2207
2208
|
A.value = !1, q.value = null, F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
2208
2209
|
datapoint: e,
|
|
2209
2210
|
seriesIndex: t
|
|
2210
2211
|
});
|
|
2211
2212
|
}
|
|
2212
|
-
function
|
|
2213
|
-
|
|
2213
|
+
function an({ datapoint: e, seriesIndex: t }) {
|
|
2214
|
+
ut("selectDatapoint", e), F.value.events.datapointClick && F.value.events.datapointClick({
|
|
2214
2215
|
datapoint: e,
|
|
2215
2216
|
seriesIndex: t
|
|
2216
2217
|
});
|
|
2217
2218
|
}
|
|
2218
|
-
function
|
|
2219
|
+
function on({ datapoint: e, seriesIndex: t }) {
|
|
2219
2220
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
2220
2221
|
datapoint: e,
|
|
2221
2222
|
seriesIndex: t
|
|
2222
|
-
}), q.value = e,
|
|
2223
|
+
}), q.value = e, $t.value = {
|
|
2223
2224
|
datapoint: e,
|
|
2224
2225
|
config: F.value,
|
|
2225
2226
|
series: U.value
|
|
2226
2227
|
}, A.value = !0;
|
|
2227
|
-
let n = "",
|
|
2228
|
-
if (K.value = !1,
|
|
2229
|
-
let t =
|
|
2228
|
+
let n = "", r = F.value.style.chart.tooltip.customFormat;
|
|
2229
|
+
if (K.value = !1, ne(r)) try {
|
|
2230
|
+
let t = r({
|
|
2230
2231
|
datapoint: e,
|
|
2231
2232
|
config: F.value,
|
|
2232
2233
|
series: U.value
|
|
2233
2234
|
});
|
|
2234
|
-
typeof t == "string" && (
|
|
2235
|
+
typeof t == "string" && (bt.value = t, K.value = !0);
|
|
2235
2236
|
} catch {
|
|
2236
2237
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
2237
2238
|
}
|
|
2238
2239
|
K.value || (n += `
|
|
2239
2240
|
<div style="width:100%;">
|
|
2240
|
-
${F.value.style.chart.tooltip.showMinimap ? `<div class="vue-ui-world-minimap">${
|
|
2241
|
+
${F.value.style.chart.tooltip.showMinimap ? `<div class="vue-ui-world-minimap">${nn.value}</div>` : ""}
|
|
2241
2242
|
<div style="display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px">
|
|
2242
2243
|
<svg viewBox="0 0 20 20" height="14" width="14">
|
|
2243
2244
|
<circle cx="10" cy="10" r="10" fill="${e.color}"/>
|
|
2244
2245
|
</svg>
|
|
2245
2246
|
<span>${e.name}:</span>
|
|
2246
2247
|
<b>
|
|
2247
|
-
${
|
|
2248
|
+
${c(F.value.style.chart.dataLabels.formatter, e.value, o({
|
|
2248
2249
|
p: F.value.style.chart.dataLabels.prefix,
|
|
2249
2250
|
v: e.value,
|
|
2250
2251
|
s: F.value.style.chart.dataLabels.suffix,
|
|
@@ -2253,71 +2254,71 @@ var Be = {
|
|
|
2253
2254
|
</b>
|
|
2254
2255
|
</div>
|
|
2255
2256
|
</div>
|
|
2256
|
-
`,
|
|
2257
|
+
`, bt.value = `<div>${n}</div>`);
|
|
2257
2258
|
}
|
|
2258
|
-
let
|
|
2259
|
+
let sn = S(!1), cn = S({
|
|
2259
2260
|
x: 0,
|
|
2260
2261
|
y: 0
|
|
2261
|
-
}), J =
|
|
2262
|
-
function
|
|
2262
|
+
}), J = S([F.value.style.chart.globe.center.x, F.value.style.chart.globe.center.y]), ln = [0, 0], Y = null, X = null;
|
|
2263
|
+
function un(e) {
|
|
2263
2264
|
return Math.max(-90, Math.min(90, e));
|
|
2264
2265
|
}
|
|
2265
|
-
function
|
|
2266
|
+
function dn(e) {
|
|
2266
2267
|
return ((e + 180) % 360 + 360) % 360 - 180;
|
|
2267
2268
|
}
|
|
2268
|
-
function
|
|
2269
|
+
function fn() {
|
|
2269
2270
|
Y &&= (J.value = Y, null);
|
|
2270
2271
|
}
|
|
2271
|
-
function
|
|
2272
|
+
function pn(e) {
|
|
2272
2273
|
if (Y = e, typeof requestAnimationFrame > "u") {
|
|
2273
|
-
|
|
2274
|
+
fn();
|
|
2274
2275
|
return;
|
|
2275
2276
|
}
|
|
2276
2277
|
X === null && (X = requestAnimationFrame(() => {
|
|
2277
|
-
X = null,
|
|
2278
|
+
X = null, fn();
|
|
2278
2279
|
}));
|
|
2279
2280
|
}
|
|
2280
|
-
|
|
2281
|
+
je(() => [F.value.style.chart.globe.center.x, F.value.style.chart.globe.center.y], ([e, t]) => {
|
|
2281
2282
|
J.value = [e, t], Y = null;
|
|
2282
2283
|
});
|
|
2283
|
-
function
|
|
2284
|
-
|
|
2284
|
+
function mn(e, t) {
|
|
2285
|
+
sn.value = !0, cn.value = {
|
|
2285
2286
|
x: e,
|
|
2286
2287
|
y: t
|
|
2287
|
-
},
|
|
2288
|
+
}, ln = Y || [J.value[0], J.value[1]];
|
|
2288
2289
|
}
|
|
2289
|
-
function
|
|
2290
|
-
if (!
|
|
2291
|
-
let n = e -
|
|
2292
|
-
|
|
2290
|
+
function hn(e, t) {
|
|
2291
|
+
if (!sn.value || B.value !== "globe" || G.value) return;
|
|
2292
|
+
let n = e - cn.value.x, r = t - cn.value.y;
|
|
2293
|
+
pn([dn(ln[0] - n * at), un(ln[1] + r * at)]);
|
|
2293
2294
|
}
|
|
2294
|
-
function
|
|
2295
|
-
|
|
2295
|
+
function gn() {
|
|
2296
|
+
sn.value = !1, X !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(X), X = null), fn();
|
|
2296
2297
|
}
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2298
|
+
function _n(e) {
|
|
2299
|
+
mn(e.clientX, e.clientY);
|
|
2299
2300
|
}
|
|
2300
|
-
function
|
|
2301
|
-
|
|
2301
|
+
function vn(e) {
|
|
2302
|
+
hn(e.clientX, e.clientY);
|
|
2302
2303
|
}
|
|
2303
|
-
function
|
|
2304
|
-
|
|
2304
|
+
function yn() {
|
|
2305
|
+
gn();
|
|
2305
2306
|
}
|
|
2306
|
-
function
|
|
2307
|
+
function bn(e) {
|
|
2307
2308
|
let t = e.touches[0];
|
|
2308
|
-
|
|
2309
|
+
mn(t.clientX, t.clientY);
|
|
2309
2310
|
}
|
|
2310
|
-
function
|
|
2311
|
+
function xn(e) {
|
|
2311
2312
|
let t = e.touches[0];
|
|
2312
|
-
|
|
2313
|
+
hn(t.clientX, t.clientY);
|
|
2313
2314
|
}
|
|
2314
|
-
function
|
|
2315
|
-
|
|
2315
|
+
function Sn() {
|
|
2316
|
+
gn();
|
|
2316
2317
|
}
|
|
2317
|
-
|
|
2318
|
+
Ee(() => {
|
|
2318
2319
|
X !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(X), X = null);
|
|
2319
2320
|
});
|
|
2320
|
-
let
|
|
2321
|
+
let Cn = d(() => {
|
|
2321
2322
|
let e = U.value.toSorted((e, t) => (t.value || 0) - (e.value || 0));
|
|
2322
2323
|
return {
|
|
2323
2324
|
head: e.map((e) => ({
|
|
@@ -2327,17 +2328,17 @@ var Be = {
|
|
|
2327
2328
|
})),
|
|
2328
2329
|
body: e.map((e) => e.value || 0)
|
|
2329
2330
|
};
|
|
2330
|
-
}),
|
|
2331
|
+
}), wn = d(() => {
|
|
2331
2332
|
let e = [
|
|
2332
2333
|
F.value.table.columnNames.series,
|
|
2333
2334
|
F.value.table.columnNames.value,
|
|
2334
2335
|
F.value.table.columnNames.category
|
|
2335
|
-
], t =
|
|
2336
|
+
], t = Cn.value.head.map((e, t) => [
|
|
2336
2337
|
{
|
|
2337
2338
|
color: e.color,
|
|
2338
2339
|
name: e.name
|
|
2339
2340
|
},
|
|
2340
|
-
|
|
2341
|
+
Cn.value.body[t] || 0,
|
|
2341
2342
|
{ category: e.category }
|
|
2342
2343
|
]), n = {
|
|
2343
2344
|
th: {
|
|
@@ -2359,9 +2360,9 @@ var Be = {
|
|
|
2359
2360
|
config: n
|
|
2360
2361
|
};
|
|
2361
2362
|
});
|
|
2362
|
-
function
|
|
2363
|
-
|
|
2364
|
-
let t =
|
|
2363
|
+
function Tn(e = null) {
|
|
2364
|
+
we(() => {
|
|
2365
|
+
let t = Cn.value.head.map((e, t) => [[e.name], [Cn.value.body[t]]]), n = r([
|
|
2365
2366
|
[F.value.style.chart.title.text],
|
|
2366
2367
|
[F.value.style.chart.title.subtitle.text],
|
|
2367
2368
|
[[
|
|
@@ -2370,22 +2371,22 @@ var Be = {
|
|
|
2370
2371
|
F.value.table.columnNames.category
|
|
2371
2372
|
]]
|
|
2372
2373
|
].concat(t));
|
|
2373
|
-
e ? e(n) :
|
|
2374
|
+
e ? e(n) : te({
|
|
2374
2375
|
csvContent: n,
|
|
2375
2376
|
title: F.value.style.chart.title.text || "vue-ui-world"
|
|
2376
2377
|
});
|
|
2377
2378
|
});
|
|
2378
2379
|
}
|
|
2379
|
-
let Z =
|
|
2380
|
-
function
|
|
2380
|
+
let Z = S([]);
|
|
2381
|
+
function En() {
|
|
2381
2382
|
Z.value.length ? Z.value = [] : Q.value.forEach((e) => {
|
|
2382
2383
|
Z.value.push(e.name);
|
|
2383
2384
|
});
|
|
2384
2385
|
}
|
|
2385
|
-
function
|
|
2386
|
-
Z.value.includes(e) ? Z.value = Z.value.filter((t) => t !== e) : Z.value.push(e),
|
|
2386
|
+
function Dn(e) {
|
|
2387
|
+
Z.value.includes(e) ? Z.value = Z.value.filter((t) => t !== e) : Z.value.push(e), ut("selectLegend", { name: e });
|
|
2387
2388
|
}
|
|
2388
|
-
let Q =
|
|
2389
|
+
let Q = d(() => ft ? Bt.value.map(({ name: e, color: t }, n) => ({
|
|
2389
2390
|
name: e,
|
|
2390
2391
|
color: t,
|
|
2391
2392
|
shape: "circle",
|
|
@@ -2393,9 +2394,9 @@ var Be = {
|
|
|
2393
2394
|
})).map((e) => ({
|
|
2394
2395
|
...e,
|
|
2395
2396
|
opacity: Z.value.includes(e.name) ? .5 : 1,
|
|
2396
|
-
segregate: () =>
|
|
2397
|
+
segregate: () => Dn(e.name),
|
|
2397
2398
|
isSegregated: Z.value.includes(e.name)
|
|
2398
|
-
})) : []),
|
|
2399
|
+
})) : []), On = d(() => ({
|
|
2399
2400
|
cy: "donut-div-legend",
|
|
2400
2401
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
2401
2402
|
color: F.value.style.chart.legend.color,
|
|
@@ -2403,30 +2404,30 @@ var Be = {
|
|
|
2403
2404
|
paddingBottom: 12,
|
|
2404
2405
|
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
2405
2406
|
}));
|
|
2406
|
-
function
|
|
2407
|
+
function kn() {
|
|
2407
2408
|
return U.value;
|
|
2408
2409
|
}
|
|
2409
|
-
async function
|
|
2410
|
+
async function An({ scale: e = 2 } = {}) {
|
|
2410
2411
|
if (!O.value) return;
|
|
2411
|
-
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri:
|
|
2412
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: ee, base64: i } = await fe({
|
|
2412
2413
|
domElement: O.value,
|
|
2413
2414
|
base64: !0,
|
|
2414
2415
|
img: !0,
|
|
2415
2416
|
scale: e
|
|
2416
2417
|
});
|
|
2417
2418
|
return {
|
|
2418
|
-
imageUri:
|
|
2419
|
-
base64:
|
|
2419
|
+
imageUri: ee,
|
|
2420
|
+
base64: i,
|
|
2420
2421
|
title: F.value.style.chart.title.text,
|
|
2421
2422
|
width: t,
|
|
2422
2423
|
height: n,
|
|
2423
2424
|
aspectRatio: r
|
|
2424
2425
|
};
|
|
2425
2426
|
}
|
|
2426
|
-
let $ =
|
|
2427
|
+
let $ = d(() => {
|
|
2427
2428
|
let e = F.value.table.useDialog && !F.value.table.show, t = z.value.showTable;
|
|
2428
2429
|
return {
|
|
2429
|
-
component: e ?
|
|
2430
|
+
component: e ? ct : Re,
|
|
2430
2431
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
2431
2432
|
props: e ? {
|
|
2432
2433
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -2454,36 +2455,36 @@ var Be = {
|
|
|
2454
2455
|
}
|
|
2455
2456
|
};
|
|
2456
2457
|
});
|
|
2457
|
-
|
|
2458
|
+
je(() => z.value.showTable, (e) => {
|
|
2458
2459
|
F.value.table.show || (e && F.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
2459
2460
|
});
|
|
2460
|
-
function
|
|
2461
|
-
z.value.showTable = !1,
|
|
2461
|
+
function jn() {
|
|
2462
|
+
z.value.showTable = !1, Ct.value && Ct.value.setTableIconState(!1);
|
|
2462
2463
|
}
|
|
2463
|
-
let
|
|
2464
|
+
let Mn = d(() => F.value.style.chart.backgroundColor), Nn = d(() => F.value.style.chart.legend), { exportSvg: Pn, getSvg: Fn } = ue({
|
|
2464
2465
|
svg: R,
|
|
2465
|
-
title:
|
|
2466
|
-
legend:
|
|
2466
|
+
title: d(() => F.value.style.chart.title),
|
|
2467
|
+
legend: Nn,
|
|
2467
2468
|
legendItems: Q,
|
|
2468
|
-
backgroundColor:
|
|
2469
|
+
backgroundColor: Mn
|
|
2469
2470
|
});
|
|
2470
|
-
async function
|
|
2471
|
-
N.value = !0, await
|
|
2471
|
+
async function In({ isCb: e }) {
|
|
2472
|
+
N.value = !0, await we();
|
|
2472
2473
|
try {
|
|
2473
2474
|
if (e) {
|
|
2474
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
2475
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Fn();
|
|
2475
2476
|
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
2476
2477
|
blob: e,
|
|
2477
2478
|
url: t,
|
|
2478
2479
|
text: n,
|
|
2479
2480
|
dataUrl: r
|
|
2480
2481
|
}));
|
|
2481
|
-
} else await Promise.resolve(
|
|
2482
|
+
} else await Promise.resolve(Pn());
|
|
2482
2483
|
} finally {
|
|
2483
2484
|
N.value = !1;
|
|
2484
2485
|
}
|
|
2485
2486
|
}
|
|
2486
|
-
function
|
|
2487
|
+
function Ln(e) {
|
|
2487
2488
|
if (e?.stage === "start") {
|
|
2488
2489
|
M.value = !0;
|
|
2489
2490
|
return;
|
|
@@ -2492,10 +2493,10 @@ var Be = {
|
|
|
2492
2493
|
M.value = !1;
|
|
2493
2494
|
return;
|
|
2494
2495
|
}
|
|
2495
|
-
|
|
2496
|
+
Qt();
|
|
2496
2497
|
}
|
|
2497
|
-
async function
|
|
2498
|
-
if (
|
|
2498
|
+
async function Rn() {
|
|
2499
|
+
if (ut("copyAlt", {
|
|
2499
2500
|
config: F.value,
|
|
2500
2501
|
dataset: U.value
|
|
2501
2502
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -2507,42 +2508,42 @@ var Be = {
|
|
|
2507
2508
|
dataset: U.value
|
|
2508
2509
|
}));
|
|
2509
2510
|
}
|
|
2510
|
-
return
|
|
2511
|
-
getData:
|
|
2512
|
-
getImage:
|
|
2513
|
-
generatePdf:
|
|
2514
|
-
generateCsv:
|
|
2515
|
-
generateImage:
|
|
2516
|
-
generateSvg:
|
|
2517
|
-
toggleTable:
|
|
2518
|
-
toggleTooltip:
|
|
2519
|
-
toggleAnnotator:
|
|
2520
|
-
toggleFullscreen:
|
|
2521
|
-
copyAlt:
|
|
2522
|
-
}), (e,
|
|
2511
|
+
return me({
|
|
2512
|
+
getData: kn,
|
|
2513
|
+
getImage: An,
|
|
2514
|
+
generatePdf: Zt,
|
|
2515
|
+
generateCsv: Tn,
|
|
2516
|
+
generateImage: Qt,
|
|
2517
|
+
generateSvg: In,
|
|
2518
|
+
toggleTable: Kt,
|
|
2519
|
+
toggleTooltip: qt,
|
|
2520
|
+
toggleAnnotator: Gt,
|
|
2521
|
+
toggleFullscreen: Wt,
|
|
2522
|
+
copyAlt: Rn
|
|
2523
|
+
}), (e, t) => (x(), m("div", {
|
|
2523
2524
|
ref_key: "worldChart",
|
|
2524
2525
|
ref: O,
|
|
2525
2526
|
id: `world_${k.value}`,
|
|
2526
|
-
class:
|
|
2527
|
-
style:
|
|
2528
|
-
onMouseenter:
|
|
2529
|
-
onMouseleave:
|
|
2527
|
+
class: Te(`vue-data-ui-component vue-ui-world ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
2528
|
+
style: b(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
2529
|
+
onMouseenter: t[2] ||= () => T(Mt)(!0),
|
|
2530
|
+
onMouseleave: t[3] ||= () => T(Mt)(!1)
|
|
2530
2531
|
}, [
|
|
2531
|
-
F.value.userOptions.buttons.annotator &&
|
|
2532
|
+
F.value.userOptions.buttons.annotator && T(R) ? (x(), f(T(Ve), {
|
|
2532
2533
|
key: 0,
|
|
2533
2534
|
color: F.value.style.chart.color,
|
|
2534
2535
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
2535
2536
|
active: G.value,
|
|
2536
|
-
svgRef:
|
|
2537
|
+
svgRef: T(R),
|
|
2537
2538
|
isCursorPointer: I.value,
|
|
2538
|
-
onClose:
|
|
2539
|
+
onClose: Gt
|
|
2539
2540
|
}, {
|
|
2540
|
-
"annotator-action-close":
|
|
2541
|
-
"annotator-action-color":
|
|
2542
|
-
"annotator-action-draw":
|
|
2543
|
-
"annotator-action-undo":
|
|
2544
|
-
"annotator-action-redo":
|
|
2545
|
-
"annotator-action-delete":
|
|
2541
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2542
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
2543
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
|
|
2544
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
|
|
2545
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
|
|
2546
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
|
|
2546
2547
|
_: 3
|
|
2547
2548
|
}, 8, [
|
|
2548
2549
|
"color",
|
|
@@ -2550,22 +2551,22 @@ var Be = {
|
|
|
2550
2551
|
"active",
|
|
2551
2552
|
"svgRef",
|
|
2552
2553
|
"isCursorPointer"
|
|
2553
|
-
])) :
|
|
2554
|
-
|
|
2555
|
-
|
|
2554
|
+
])) : p("", !0),
|
|
2555
|
+
C(e.$slots, "userConfig", {}, void 0, !0),
|
|
2556
|
+
Jt.value ? (x(), m("div", {
|
|
2556
2557
|
key: 1,
|
|
2557
2558
|
ref_key: "noTitle",
|
|
2558
|
-
ref:
|
|
2559
|
+
ref: gt,
|
|
2559
2560
|
class: "vue-data-ui-no-title-space",
|
|
2560
2561
|
style: "height:36px; width: 100%;background:transparent"
|
|
2561
|
-
}, null, 512)) :
|
|
2562
|
-
F.value.style.chart.title.text ? (
|
|
2562
|
+
}, null, 512)) : p("", !0),
|
|
2563
|
+
F.value.style.chart.title.text ? (x(), m("div", {
|
|
2563
2564
|
key: 2,
|
|
2564
2565
|
ref_key: "chartTitle",
|
|
2565
|
-
ref:
|
|
2566
|
+
ref: pt,
|
|
2566
2567
|
style: "width:100%;background:transparent"
|
|
2567
|
-
}, [(
|
|
2568
|
-
key: `title_${
|
|
2568
|
+
}, [(x(), f(T(Pe), {
|
|
2569
|
+
key: `title_${_t.value}`,
|
|
2569
2570
|
config: {
|
|
2570
2571
|
title: {
|
|
2571
2572
|
cy: "donut-div-title",
|
|
@@ -2576,16 +2577,16 @@ var Be = {
|
|
|
2576
2577
|
...F.value.style.chart.title.subtitle
|
|
2577
2578
|
}
|
|
2578
2579
|
}
|
|
2579
|
-
}, null, 8, ["config"]))], 512)) :
|
|
2580
|
-
|
|
2581
|
-
F.value.userOptions.show &&
|
|
2580
|
+
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
2581
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, Ue),
|
|
2582
|
+
F.value.userOptions.show && dt.value && (T(Nt) || T(jt)) ? (x(), f(T(ot), {
|
|
2582
2583
|
ref_key: "userOptionsRef",
|
|
2583
|
-
ref:
|
|
2584
|
-
key: `user_option_${
|
|
2584
|
+
ref: Ct,
|
|
2585
|
+
key: `user_option_${xt.value}`,
|
|
2585
2586
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
2586
2587
|
color: F.value.style.chart.color,
|
|
2587
|
-
isPrinting:
|
|
2588
|
-
isImaging:
|
|
2588
|
+
isPrinting: T(Yt),
|
|
2589
|
+
isImaging: T(Xt),
|
|
2589
2590
|
uid: k.value,
|
|
2590
2591
|
callbacks: F.value.userOptions.callbacks,
|
|
2591
2592
|
hasTooltip: F.value.style.chart.tooltip.show && F.value.userOptions.buttons.tooltip,
|
|
@@ -2607,20 +2608,20 @@ var Be = {
|
|
|
2607
2608
|
isAnnotation: G.value,
|
|
2608
2609
|
tableDialog: F.value.table.useDialog,
|
|
2609
2610
|
isCursorPointer: I.value,
|
|
2610
|
-
onToggleFullscreen:
|
|
2611
|
-
onGeneratePdf:
|
|
2612
|
-
onGenerateCsv:
|
|
2613
|
-
onGenerateImage:
|
|
2614
|
-
onGenerateSvg:
|
|
2615
|
-
onToggleTable:
|
|
2616
|
-
onToggleTooltip:
|
|
2617
|
-
onToggleAnnotator:
|
|
2618
|
-
onCopyAlt:
|
|
2619
|
-
style:
|
|
2620
|
-
},
|
|
2611
|
+
onToggleFullscreen: Wt,
|
|
2612
|
+
onGeneratePdf: T(Zt),
|
|
2613
|
+
onGenerateCsv: Tn,
|
|
2614
|
+
onGenerateImage: Ln,
|
|
2615
|
+
onGenerateSvg: In,
|
|
2616
|
+
onToggleTable: Kt,
|
|
2617
|
+
onToggleTooltip: qt,
|
|
2618
|
+
onToggleAnnotator: Gt,
|
|
2619
|
+
onCopyAlt: Rn,
|
|
2620
|
+
style: b({ visibility: T(Nt) ? T(jt) ? "visible" : "hidden" : "visible" })
|
|
2621
|
+
}, xe({ _: 2 }, [
|
|
2621
2622
|
e.$slots.menuIcon ? {
|
|
2622
2623
|
name: "menuIcon",
|
|
2623
|
-
fn:
|
|
2624
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(v({
|
|
2624
2625
|
isOpen: t,
|
|
2625
2626
|
color: n
|
|
2626
2627
|
})), void 0, !0)]),
|
|
@@ -2628,37 +2629,37 @@ var Be = {
|
|
|
2628
2629
|
} : void 0,
|
|
2629
2630
|
e.$slots.optionTooltip ? {
|
|
2630
2631
|
name: "optionTooltip",
|
|
2631
|
-
fn:
|
|
2632
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
2632
2633
|
key: "1"
|
|
2633
2634
|
} : void 0,
|
|
2634
2635
|
e.$slots.optionPdf ? {
|
|
2635
2636
|
name: "optionPdf",
|
|
2636
|
-
fn:
|
|
2637
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
2637
2638
|
key: "2"
|
|
2638
2639
|
} : void 0,
|
|
2639
2640
|
e.$slots.optionCsv ? {
|
|
2640
2641
|
name: "optionCsv",
|
|
2641
|
-
fn:
|
|
2642
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
2642
2643
|
key: "3"
|
|
2643
2644
|
} : void 0,
|
|
2644
2645
|
e.$slots.optionImg ? {
|
|
2645
2646
|
name: "optionImg",
|
|
2646
|
-
fn:
|
|
2647
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
2647
2648
|
key: "4"
|
|
2648
2649
|
} : void 0,
|
|
2649
2650
|
e.$slots.optionSvg ? {
|
|
2650
2651
|
name: "optionSvg",
|
|
2651
|
-
fn:
|
|
2652
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
2652
2653
|
key: "5"
|
|
2653
2654
|
} : void 0,
|
|
2654
2655
|
e.$slots.optionTable ? {
|
|
2655
2656
|
name: "optionTable",
|
|
2656
|
-
fn:
|
|
2657
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
2657
2658
|
key: "6"
|
|
2658
2659
|
} : void 0,
|
|
2659
2660
|
e.$slots.optionFullscreen ? {
|
|
2660
2661
|
name: "optionFullscreen",
|
|
2661
|
-
fn:
|
|
2662
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(v({
|
|
2662
2663
|
toggleFullscreen: t,
|
|
2663
2664
|
isFullscreen: n
|
|
2664
2665
|
})), void 0, !0)]),
|
|
@@ -2666,7 +2667,7 @@ var Be = {
|
|
|
2666
2667
|
} : void 0,
|
|
2667
2668
|
e.$slots.optionAnnotator ? {
|
|
2668
2669
|
name: "optionAnnotator",
|
|
2669
|
-
fn:
|
|
2670
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(v({
|
|
2670
2671
|
toggleAnnotator: t,
|
|
2671
2672
|
isAnnotator: n
|
|
2672
2673
|
})), void 0, !0)]),
|
|
@@ -2674,30 +2675,30 @@ var Be = {
|
|
|
2674
2675
|
} : void 0,
|
|
2675
2676
|
e.$slots.optionAltCopy ? {
|
|
2676
2677
|
name: "optionAltCopy",
|
|
2677
|
-
fn:
|
|
2678
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
|
|
2678
2679
|
key: "9"
|
|
2679
2680
|
} : void 0,
|
|
2680
2681
|
e.$slots["custom-menu-before"] ? {
|
|
2681
2682
|
name: "custom-menu-before",
|
|
2682
|
-
fn:
|
|
2683
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
2683
2684
|
key: "10"
|
|
2684
2685
|
} : void 0,
|
|
2685
2686
|
e.$slots["custom-menu-after"] ? {
|
|
2686
2687
|
name: "custom-menu-after",
|
|
2687
|
-
fn:
|
|
2688
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
2688
2689
|
key: "11"
|
|
2689
2690
|
} : void 0
|
|
2690
|
-
]), 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("."))) :
|
|
2691
|
-
(
|
|
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.style".split("."))) : p("", !0),
|
|
2692
|
+
(x(), m("svg", {
|
|
2692
2693
|
ref_key: "svgRef",
|
|
2693
2694
|
ref: R,
|
|
2694
2695
|
viewBox: H.value.str,
|
|
2695
|
-
xmlns:
|
|
2696
|
-
class:
|
|
2696
|
+
xmlns: T(ie),
|
|
2697
|
+
class: Te({
|
|
2697
2698
|
"vue-data-ui-fullscreen--on": W.value,
|
|
2698
2699
|
"vue-data-ui-fullscreen--off": !W.value
|
|
2699
2700
|
}),
|
|
2700
|
-
style:
|
|
2701
|
+
style: b({
|
|
2701
2702
|
maxWidth: "100%",
|
|
2702
2703
|
overflow: B.value === "globe" ? "visible" : "hidden",
|
|
2703
2704
|
background: "transparent",
|
|
@@ -2707,117 +2708,127 @@ var Be = {
|
|
|
2707
2708
|
paddingBottom: F.value.style.chart.padding.bottom + "px",
|
|
2708
2709
|
paddingLeft: F.value.style.chart.padding.left + "px"
|
|
2709
2710
|
}),
|
|
2710
|
-
onMousedown:
|
|
2711
|
-
onMousemove:
|
|
2712
|
-
onMouseup:
|
|
2713
|
-
onMouseleave:
|
|
2714
|
-
onTouchstart:
|
|
2715
|
-
onTouchmove: Me(
|
|
2716
|
-
onTouchend:
|
|
2711
|
+
onMousedown: _n,
|
|
2712
|
+
onMousemove: vn,
|
|
2713
|
+
onMouseup: yn,
|
|
2714
|
+
onMouseleave: yn,
|
|
2715
|
+
onTouchstart: bn,
|
|
2716
|
+
onTouchmove: Me(xn, ["prevent"]),
|
|
2717
|
+
onTouchend: Sn
|
|
2717
2718
|
}, [
|
|
2718
|
-
|
|
2719
|
-
e.$slots["chart-background"] ? (
|
|
2719
|
+
g(T(st)),
|
|
2720
|
+
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
2720
2721
|
key: 0,
|
|
2721
2722
|
x: H.value.minX,
|
|
2722
2723
|
y: H.value.minY,
|
|
2723
2724
|
width: H.value.width,
|
|
2724
2725
|
height: H.value.height,
|
|
2725
2726
|
style: { pointerEvents: "none" }
|
|
2726
|
-
}, [
|
|
2727
|
-
|
|
2728
|
-
B.value === "globe" ? (
|
|
2729
|
-
|
|
2730
|
-
|
|
2727
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
|
|
2728
|
+
dt.value ? (x(), m("g", Ke, [
|
|
2729
|
+
B.value === "globe" ? (x(), m(u, { key: 0 }, [
|
|
2730
|
+
h("defs", null, [
|
|
2731
|
+
g(he, {
|
|
2732
|
+
t: "radial",
|
|
2731
2733
|
id: `water-${k.value}`,
|
|
2732
2734
|
cx: .48,
|
|
2733
2735
|
cy: .52,
|
|
2734
2736
|
r: "0.55",
|
|
2735
2737
|
fx: "0.40",
|
|
2736
|
-
fy: "0.48"
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2738
|
+
fy: "0.48",
|
|
2739
|
+
stops: [
|
|
2740
|
+
[
|
|
2741
|
+
"0%",
|
|
2742
|
+
T(n)(F.value.style.chart.globe.waterColor, .4),
|
|
2743
|
+
1
|
|
2744
|
+
],
|
|
2745
|
+
[
|
|
2746
|
+
"45%",
|
|
2747
|
+
F.value.style.chart.globe.waterColor,
|
|
2748
|
+
1
|
|
2749
|
+
],
|
|
2750
|
+
[
|
|
2751
|
+
"80%",
|
|
2752
|
+
T(ee)(F.value.style.chart.globe.waterColor, .2),
|
|
2753
|
+
1
|
|
2754
|
+
],
|
|
2755
|
+
[
|
|
2756
|
+
"100%",
|
|
2757
|
+
T(ee)(F.value.style.chart.globe.waterColor, .5),
|
|
2758
|
+
.95
|
|
2759
|
+
]
|
|
2760
|
+
]
|
|
2761
|
+
}, null, 8, ["id", "stops"]),
|
|
2762
|
+
g(he, {
|
|
2763
|
+
t: "radial",
|
|
2757
2764
|
id: `atmo-realistic-${k.value}`,
|
|
2758
2765
|
cx: .5,
|
|
2759
2766
|
cy: .5,
|
|
2760
|
-
r: "0.54"
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2767
|
+
r: "0.54",
|
|
2768
|
+
stops: [
|
|
2769
|
+
[
|
|
2770
|
+
"87%",
|
|
2771
|
+
"rgba(120,200,255,0)",
|
|
2772
|
+
1
|
|
2773
|
+
],
|
|
2774
|
+
[
|
|
2775
|
+
"98%",
|
|
2776
|
+
F.value.style.chart.globe.waterColor,
|
|
2777
|
+
1
|
|
2778
|
+
],
|
|
2779
|
+
[
|
|
2780
|
+
"100%",
|
|
2781
|
+
"rgba(120,200,255,0)",
|
|
2782
|
+
1
|
|
2783
|
+
]
|
|
2784
|
+
]
|
|
2785
|
+
}, null, 8, ["id", "stops"]),
|
|
2786
|
+
h("filter", {
|
|
2776
2787
|
id: `blur-${k.value}`,
|
|
2777
2788
|
x: "-30%",
|
|
2778
2789
|
y: "-30%",
|
|
2779
2790
|
width: "160%",
|
|
2780
2791
|
height: "160%"
|
|
2781
|
-
}, [...
|
|
2792
|
+
}, [...t[4] ||= [h("feGaussianBlur", { stdDeviation: "8" }, null, -1)]], 8, qe)
|
|
2782
2793
|
]),
|
|
2783
|
-
e.$slots.pattern ? (
|
|
2794
|
+
e.$slots.pattern ? (x(), m("g", Je, [(x(!0), m(u, null, Oe(U.value, (t, n) => (x(), m("defs", null, [C(e.$slots, "pattern", Ce({ ref_for: !0 }, {
|
|
2784
2795
|
...t,
|
|
2785
2796
|
patternId: `pattern_${k.value}_${t.code}`
|
|
2786
|
-
}), void 0, !0)]))), 256))])) :
|
|
2787
|
-
|
|
2797
|
+
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
2798
|
+
h("circle", {
|
|
2788
2799
|
cx: H.value.width / 2 + 20,
|
|
2789
2800
|
cy: H.value.height / 2 + 20,
|
|
2790
2801
|
r: H.value.height / 2,
|
|
2791
2802
|
fill: `url(#water-${k.value})`
|
|
2792
|
-
}, null, 8,
|
|
2793
|
-
|
|
2803
|
+
}, null, 8, Ye),
|
|
2804
|
+
h("circle", {
|
|
2794
2805
|
cx: H.value.width / 2 + 20,
|
|
2795
2806
|
cy: H.value.height / 2 + 20,
|
|
2796
2807
|
r: H.value.height / 2 + 10,
|
|
2797
2808
|
fill: `url(#atmo-realistic-${k.value})`,
|
|
2798
2809
|
"pointer-events": "none",
|
|
2799
2810
|
filter: `url(#blur-${k.value})`
|
|
2800
|
-
}, null, 8,
|
|
2801
|
-
], 64)) :
|
|
2802
|
-
(
|
|
2811
|
+
}, null, 8, Xe)
|
|
2812
|
+
], 64)) : p("", !0),
|
|
2813
|
+
(x(!0), m(u, null, Oe(U.value, (t, n) => (x(), m(u, { key: t.code }, [h("path", {
|
|
2803
2814
|
d: t.path,
|
|
2804
2815
|
fill: t.category && Z.value.includes(t.category) ? F.value.style.chart.territory.emptyColor : t.color,
|
|
2805
2816
|
stroke: F.value.style.chart.territory.stroke,
|
|
2806
2817
|
"stroke-width": q.value && q.value.uid === t.uid ? F.value.style.chart.territory.strokeWidthSelected : F.value.style.chart.territory.strokeWidth,
|
|
2807
|
-
onMouseenter: (e) =>
|
|
2818
|
+
onMouseenter: (e) => on({
|
|
2808
2819
|
datapoint: t,
|
|
2809
2820
|
seriesIndex: n
|
|
2810
2821
|
}),
|
|
2811
|
-
onMouseleave: (e) =>
|
|
2822
|
+
onMouseleave: (e) => rn({
|
|
2812
2823
|
datapoint: t,
|
|
2813
2824
|
seriesIndex: n
|
|
2814
2825
|
}),
|
|
2815
|
-
onClick: (e) =>
|
|
2826
|
+
onClick: (e) => an({
|
|
2816
2827
|
datapoint: t,
|
|
2817
2828
|
seriesIndex: n
|
|
2818
2829
|
}),
|
|
2819
2830
|
class: "vue-ui-world-territory"
|
|
2820
|
-
}, [!A.value || !z.value.showTooltip ? (
|
|
2831
|
+
}, [!A.value || !z.value.showTooltip ? (x(), m("title", Qe, [Se(w(t.name) + " ", 1), typeof t.value == "number" ? (x(), m(u, { key: 0 }, [Se(" : " + w(t.value), 1)], 64)) : p("", !0)])) : p("", !0)], 40, Ze), e.$slots.pattern ? (x(), m("path", {
|
|
2821
2832
|
key: 0,
|
|
2822
2833
|
d: t.path,
|
|
2823
2834
|
fill: `url(#pattern_${k.value}_${t.code})`,
|
|
@@ -2825,63 +2836,63 @@ var Be = {
|
|
|
2825
2836
|
"stroke-width": F.value.style.chart.territory.strokeWidthSelected,
|
|
2826
2837
|
style: { "pointer-events": "none" },
|
|
2827
2838
|
class: "vue-ui-world-territory"
|
|
2828
|
-
}, null, 8,
|
|
2829
|
-
q.value ? (
|
|
2839
|
+
}, null, 8, $e)) : p("", !0)], 64))), 128)),
|
|
2840
|
+
q.value ? (x(), m("path", {
|
|
2830
2841
|
key: 1,
|
|
2831
|
-
d:
|
|
2842
|
+
d: en.value,
|
|
2832
2843
|
fill: "transparent",
|
|
2833
2844
|
stroke: F.value.style.chart.territory.stroke,
|
|
2834
2845
|
"stroke-width": F.value.style.chart.territory.strokeWidthSelected,
|
|
2835
2846
|
style: { "pointer-events": "none" },
|
|
2836
2847
|
class: "vue-ui-world-territory"
|
|
2837
|
-
}, null, 8,
|
|
2838
|
-
])) :
|
|
2839
|
-
|
|
2848
|
+
}, null, 8, et)) : p("", !0)
|
|
2849
|
+
])) : p("", !0),
|
|
2850
|
+
C(e.$slots, "svg", { svg: {
|
|
2840
2851
|
height: V.value.height,
|
|
2841
2852
|
width: V.value.width,
|
|
2842
|
-
isPrintingImg:
|
|
2853
|
+
isPrintingImg: T(Yt) || T(Xt) || M.value,
|
|
2843
2854
|
isPrintingSvg: N.value
|
|
2844
2855
|
} }, void 0, !0)
|
|
2845
2856
|
], 46, We)),
|
|
2846
|
-
e.$slots.watermark ? (
|
|
2847
|
-
|
|
2848
|
-
|
|
2857
|
+
e.$slots.watermark ? (x(), m("div", tt, [C(e.$slots, "watermark", y(v({ isPrinting: T(Yt) || T(Xt) || M.value || N.value })), void 0, !0)])) : p("", !0),
|
|
2858
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, nt),
|
|
2859
|
+
St.value && ft.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(be, {
|
|
2849
2860
|
key: 5,
|
|
2850
2861
|
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
2851
|
-
}, [
|
|
2862
|
+
}, [ft.value ? (x(), m("div", {
|
|
2852
2863
|
key: 0,
|
|
2853
2864
|
ref_key: "chartLegend",
|
|
2854
|
-
ref:
|
|
2855
|
-
}, [
|
|
2856
|
-
key: `legend_${
|
|
2865
|
+
ref: mt
|
|
2866
|
+
}, [C(e.$slots, "legend", { legend: Q.value }, () => [F.value.style.chart.legend.show ? (x(), f(T(Fe), {
|
|
2867
|
+
key: `legend_${vt.value}`,
|
|
2857
2868
|
legendSet: Q.value,
|
|
2858
|
-
config:
|
|
2869
|
+
config: On.value,
|
|
2859
2870
|
isCursorPointer: I.value,
|
|
2860
|
-
onClickMarker:
|
|
2861
|
-
},
|
|
2862
|
-
item:
|
|
2863
|
-
style:
|
|
2871
|
+
onClickMarker: t[0] ||= (e) => Dn(e)
|
|
2872
|
+
}, xe({
|
|
2873
|
+
item: E(({ legend: e, index: t }) => [h("div", {
|
|
2874
|
+
style: b(`opacity:${Z.value.includes(e.name) ? .5 : 1}`),
|
|
2864
2875
|
onClick: (t) => e.segregate()
|
|
2865
|
-
},
|
|
2866
|
-
legendToggle:
|
|
2876
|
+
}, w(e.name), 13, rt)]),
|
|
2877
|
+
legendToggle: E(() => [Q.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !T(At) ? (x(), f(ge, {
|
|
2867
2878
|
key: 0,
|
|
2868
2879
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2869
2880
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
2870
2881
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
2871
2882
|
checked: Z.value.length > 0,
|
|
2872
2883
|
isCursorPointer: I.value,
|
|
2873
|
-
onToggle:
|
|
2884
|
+
onToggle: En
|
|
2874
2885
|
}, null, 8, [
|
|
2875
2886
|
"backgroundColor",
|
|
2876
2887
|
"color",
|
|
2877
2888
|
"fontSize",
|
|
2878
2889
|
"checked",
|
|
2879
2890
|
"isCursorPointer"
|
|
2880
|
-
])) :
|
|
2891
|
+
])) : p("", !0)]),
|
|
2881
2892
|
_: 2
|
|
2882
2893
|
}, [e.$slots.pattern ? {
|
|
2883
2894
|
name: "legend-pattern",
|
|
2884
|
-
fn:
|
|
2895
|
+
fn: E(({ legend: e, index: t }) => [g(pe, {
|
|
2885
2896
|
shape: e.shape,
|
|
2886
2897
|
radius: 30,
|
|
2887
2898
|
stroke: "none",
|
|
@@ -2896,14 +2907,14 @@ var Be = {
|
|
|
2896
2907
|
"legendSet",
|
|
2897
2908
|
"config",
|
|
2898
2909
|
"isCursorPointer"
|
|
2899
|
-
])) :
|
|
2900
|
-
e.$slots.source ? (
|
|
2910
|
+
])) : p("", !0)], !0)], 512)) : p("", !0)], 8, ["to"])) : p("", !0),
|
|
2911
|
+
e.$slots.source ? (x(), m("div", {
|
|
2901
2912
|
key: 6,
|
|
2902
2913
|
ref_key: "source",
|
|
2903
|
-
ref:
|
|
2914
|
+
ref: ht,
|
|
2904
2915
|
dir: "auto"
|
|
2905
|
-
}, [
|
|
2906
|
-
|
|
2916
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
2917
|
+
g(T(Ie), {
|
|
2907
2918
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
2908
2919
|
show: z.value.showTooltip && A.value,
|
|
2909
2920
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
@@ -2917,7 +2928,7 @@ var Be = {
|
|
|
2917
2928
|
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
2918
2929
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
2919
2930
|
parent: O.value,
|
|
2920
|
-
content:
|
|
2931
|
+
content: bt.value,
|
|
2921
2932
|
isCustom: K.value,
|
|
2922
2933
|
isFullscreen: W.value,
|
|
2923
2934
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
@@ -2925,9 +2936,9 @@ var Be = {
|
|
|
2925
2936
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
2926
2937
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold
|
|
2927
2938
|
}, {
|
|
2928
|
-
"tooltip-before":
|
|
2929
|
-
tooltip:
|
|
2930
|
-
"tooltip-after":
|
|
2939
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(v({ ...$t.value })), void 0, !0)]),
|
|
2940
|
+
tooltip: E(() => [C(e.$slots, "tooltip", y(v({ ...$t.value })), void 0, !0)]),
|
|
2941
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(v({ ...$t.value })), void 0, !0)]),
|
|
2931
2942
|
_: 3
|
|
2932
2943
|
}, 8, [
|
|
2933
2944
|
"teleportTo",
|
|
@@ -2951,30 +2962,30 @@ var Be = {
|
|
|
2951
2962
|
"smoothForce",
|
|
2952
2963
|
"smoothSnapThreshold"
|
|
2953
2964
|
]),
|
|
2954
|
-
|
|
2965
|
+
dt.value && F.value.userOptions.buttons.table ? (x(), f(ke($.value.component), Ce({ key: 7 }, $.value.props, {
|
|
2955
2966
|
ref_key: "tableUnit",
|
|
2956
2967
|
ref: j,
|
|
2957
|
-
onClose:
|
|
2958
|
-
}),
|
|
2959
|
-
content:
|
|
2960
|
-
key: `table_${
|
|
2961
|
-
colNames:
|
|
2962
|
-
head:
|
|
2963
|
-
body:
|
|
2964
|
-
config:
|
|
2968
|
+
onClose: jn
|
|
2969
|
+
}), xe({
|
|
2970
|
+
content: E(() => [(x(), f(T(ze), {
|
|
2971
|
+
key: `table_${yt.value}`,
|
|
2972
|
+
colNames: wn.value.colNames,
|
|
2973
|
+
head: wn.value.head,
|
|
2974
|
+
body: wn.value.body,
|
|
2975
|
+
config: wn.value.config,
|
|
2965
2976
|
title: F.value.table.useDialog ? "" : $.value.title,
|
|
2966
2977
|
withCloseButton: !F.value.table.useDialog,
|
|
2967
2978
|
isCursorPointer: I.value,
|
|
2968
|
-
onClose:
|
|
2979
|
+
onClose: jn
|
|
2969
2980
|
}, {
|
|
2970
|
-
th:
|
|
2981
|
+
th: E(({ th: e }) => [h("div", {
|
|
2971
2982
|
innerHTML: e,
|
|
2972
2983
|
style: {
|
|
2973
2984
|
display: "flex",
|
|
2974
2985
|
"align-items": "center"
|
|
2975
2986
|
}
|
|
2976
|
-
}, null, 8,
|
|
2977
|
-
td:
|
|
2987
|
+
}, null, 8, it)]),
|
|
2988
|
+
td: E(({ td: e }) => [Se(w(e.name ? e.name : e.category ? e.category : T(c)(F.value.style.chart.dataLabels.formatter, e, T(o)({
|
|
2978
2989
|
p: F.value.style.chart.dataLabels.prefix,
|
|
2979
2990
|
v: e,
|
|
2980
2991
|
s: F.value.style.chart.dataLabels.suffix,
|
|
@@ -2993,24 +3004,24 @@ var Be = {
|
|
|
2993
3004
|
_: 2
|
|
2994
3005
|
}, [F.value.table.useDialog ? {
|
|
2995
3006
|
name: "title",
|
|
2996
|
-
fn:
|
|
3007
|
+
fn: E(() => [Se(w($.value.title), 1)]),
|
|
2997
3008
|
key: "0"
|
|
2998
3009
|
} : void 0, F.value.table.useDialog ? {
|
|
2999
3010
|
name: "actions",
|
|
3000
|
-
fn:
|
|
3011
|
+
fn: E(() => [h("button", {
|
|
3001
3012
|
tabindex: "0",
|
|
3002
3013
|
class: "vue-ui-user-options-button",
|
|
3003
|
-
onClick:
|
|
3004
|
-
style:
|
|
3005
|
-
}, [
|
|
3014
|
+
onClick: t[1] ||= (e) => Tn(F.value.userOptions.callbacks.csv),
|
|
3015
|
+
style: b({ cursor: I.value ? "pointer" : "default" })
|
|
3016
|
+
}, [g(T(Le), {
|
|
3006
3017
|
name: "fileCsv",
|
|
3007
3018
|
stroke: $.value.props.color
|
|
3008
3019
|
}, null, 8, ["stroke"])], 4)]),
|
|
3009
3020
|
key: "1"
|
|
3010
|
-
} : void 0]), 1040)) :
|
|
3011
|
-
|
|
3021
|
+
} : void 0]), 1040)) : p("", !0),
|
|
3022
|
+
C(e.$slots, "skeleton", {}, () => [T(At) ? (x(), f(le, { key: 0 })) : p("", !0)], !0)
|
|
3012
3023
|
], 46, He));
|
|
3013
3024
|
}
|
|
3014
|
-
}, [["__scopeId", "data-v-
|
|
3025
|
+
}, [["__scopeId", "data-v-bd5b965c"]]);
|
|
3015
3026
|
//#endregion
|
|
3016
|
-
export { Ve as n,
|
|
3027
|
+
export { Ve as n, ot as t };
|