vue-data-ui 3.23.0 → 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/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-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-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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- 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 +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- 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-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Gt as t, Jt as n, S as r, q as i, t as a, xt as o } from "./lib-
|
|
2
|
+
import { Gt as t, Jt as n, S as r, q as i, t as a, xt as o } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as s } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as c } from "./useConfig-
|
|
5
|
-
import { t as l } from "./usePrinter-
|
|
4
|
+
import { t as c } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as l } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as u, t as d } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as f } from "./
|
|
8
|
-
import { t as p } from "./
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { l as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { Fragment as
|
|
7
|
+
import { t as f } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as p } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ee } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
+
import { t as te } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as ne } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as ie, t as ae } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as oe } from "./A11yDataTable-DdRsVULz.js";
|
|
15
|
+
import { t as se } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
+
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
+
import { t as le } from "./usePanZoom-CYU3B4T3.js";
|
|
18
|
+
import { t as ue } from "./BaseZoomControls-BZvCnZEi.js";
|
|
19
|
+
import { t as de } from "./geoProjections-CEo3dVaL.js";
|
|
20
|
+
import { t as fe } from "./vue_ui_geo-B8TODs-G.js";
|
|
21
|
+
import { Fragment as pe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as me, createVNode as he, defineAsyncComponent as ge, guardReactiveProps as y, mergeProps as _e, nextTick as ve, normalizeClass as ye, normalizeProps as b, normalizeStyle as be, onBeforeUnmount as xe, onMounted as Se, openBlock as x, ref as S, renderList as Ce, renderSlot as C, toDisplayString as we, toRefs as Te, unref as w, watch as T, withCtx as E } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-geo.vue
|
|
23
|
-
var
|
|
23
|
+
var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke = { style: { position: "relative" } }, Ae = [
|
|
24
24
|
"xmlns",
|
|
25
25
|
"viewBox",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"id"
|
|
28
|
-
],
|
|
28
|
+
], je = ["transform"], Me = [
|
|
29
29
|
"d",
|
|
30
30
|
"fill",
|
|
31
31
|
"stroke",
|
|
@@ -33,14 +33,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
33
33
|
"onMouseenter",
|
|
34
34
|
"onMouseleave",
|
|
35
35
|
"onClick"
|
|
36
|
-
],
|
|
36
|
+
], Ne = [
|
|
37
37
|
"d",
|
|
38
38
|
"stroke",
|
|
39
39
|
"stroke-width",
|
|
40
40
|
"onMouseenter",
|
|
41
41
|
"onMouseleave",
|
|
42
42
|
"onClick"
|
|
43
|
-
],
|
|
43
|
+
], Pe = [
|
|
44
44
|
"cx",
|
|
45
45
|
"cy",
|
|
46
46
|
"r",
|
|
@@ -48,7 +48,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
48
48
|
"stroke",
|
|
49
49
|
"stroke-width",
|
|
50
50
|
"onMouseenter"
|
|
51
|
-
],
|
|
51
|
+
], Fe = [
|
|
52
52
|
"cx",
|
|
53
53
|
"cy",
|
|
54
54
|
"r",
|
|
@@ -58,12 +58,12 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
58
58
|
"onMouseenter",
|
|
59
59
|
"onMouseleave",
|
|
60
60
|
"onClick"
|
|
61
|
-
],
|
|
61
|
+
], Ie = [
|
|
62
62
|
"x",
|
|
63
63
|
"y",
|
|
64
64
|
"fill",
|
|
65
65
|
"font-size"
|
|
66
|
-
],
|
|
66
|
+
], Le = {
|
|
67
67
|
key: 0,
|
|
68
68
|
style: {
|
|
69
69
|
position: "absolute",
|
|
@@ -73,10 +73,10 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
73
73
|
},
|
|
74
74
|
"data-dom-to-png-ignore": "",
|
|
75
75
|
"aria-hidden": "true"
|
|
76
|
-
},
|
|
76
|
+
}, Re = {
|
|
77
77
|
key: 6,
|
|
78
78
|
class: "vue-data-ui-watermark"
|
|
79
|
-
},
|
|
79
|
+
}, ze = 1.5, Be = /*#__PURE__*/ re({
|
|
80
80
|
__name: "vue-ui-geo",
|
|
81
81
|
props: {
|
|
82
82
|
config: {
|
|
@@ -93,34 +93,34 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
emits: ["copyAlt"],
|
|
96
|
-
setup(e, { expose:
|
|
97
|
-
let
|
|
96
|
+
setup(e, { expose: re, emit: Ee }) {
|
|
97
|
+
let Be = ge(() => import("./Tooltip-DhjyfHwz.js")), Ve = ge(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), He = ge(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ue = ge(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), D = e, We = Ee, { vue_ui_geo: Ge } = c(), { isThemeValid: Ke, warnInvalidTheme: qe } = p(), O = S(i()), Je = S(0), Ye = S(0), k = S(null), A = S(!1), j = S(null), Xe = S(null), Ze = S(null), Qe = S(null), M = S(null), N = S(null), $e = S(null), et = S(null), P = S(null), tt = S({
|
|
98
98
|
x: 0,
|
|
99
99
|
y: 0
|
|
100
|
-
}), F =
|
|
101
|
-
function
|
|
102
|
-
I.value = e,
|
|
100
|
+
}), F = S("pointer"), nt = S(!1), I = S(!1);
|
|
101
|
+
function rt(e) {
|
|
102
|
+
I.value = e, Je.value += 1;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
let e =
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
104
|
+
function it() {
|
|
105
|
+
let e = f({
|
|
106
|
+
userConfig: D.config,
|
|
107
|
+
defaultConfig: Ge
|
|
108
108
|
}), t = e.theme;
|
|
109
109
|
if (!t) return e;
|
|
110
|
-
if (!
|
|
111
|
-
let n =
|
|
112
|
-
userConfig:
|
|
110
|
+
if (!Ke.value(e)) return qe(e), e;
|
|
111
|
+
let n = f({
|
|
112
|
+
userConfig: fe[t] || D.config,
|
|
113
113
|
defaultConfig: e
|
|
114
114
|
});
|
|
115
|
-
return
|
|
116
|
-
userConfig:
|
|
115
|
+
return f({
|
|
116
|
+
userConfig: D.config,
|
|
117
117
|
defaultConfig: n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
let L =
|
|
120
|
+
let L = S(it());
|
|
121
121
|
s({
|
|
122
122
|
config: () => L.value,
|
|
123
|
-
dataset: () =>
|
|
123
|
+
dataset: () => D.dataset,
|
|
124
124
|
component: "VueUiGeo",
|
|
125
125
|
rules: [{
|
|
126
126
|
test: (e) => e.length > 100,
|
|
@@ -131,7 +131,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
131
131
|
]
|
|
132
132
|
}]
|
|
133
133
|
});
|
|
134
|
-
let
|
|
134
|
+
let at = m(() => L.value.userOptions.useCursorPointer), { userOptionsVisible: ot, keepUserOptionState: st } = se({ config: L.value }), { svgRef: R } = ce({ config: L.value.style.chart.title }), ct = m(() => n({
|
|
135
135
|
defaultConfig: {
|
|
136
136
|
map: { geoJson: {
|
|
137
137
|
type: "FeatureCollection",
|
|
@@ -205,59 +205,59 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
205
205
|
} }
|
|
206
206
|
},
|
|
207
207
|
userConfig: L.value.skeletonConfig ?? {}
|
|
208
|
-
})), { loading:
|
|
209
|
-
...
|
|
208
|
+
})), { loading: lt, FINAL_DATASET: ut } = u({
|
|
209
|
+
...Te(D),
|
|
210
210
|
FINAL_CONFIG: L,
|
|
211
|
-
prepareConfig:
|
|
211
|
+
prepareConfig: it,
|
|
212
212
|
allowEmptyDataset: !0,
|
|
213
|
-
skeletonDataset:
|
|
213
|
+
skeletonDataset: D.config?.skeletonDataset ?? [],
|
|
214
214
|
skeletonConfig: n({
|
|
215
215
|
defaultConfig: L.value,
|
|
216
|
-
userConfig:
|
|
216
|
+
userConfig: ct.value
|
|
217
217
|
})
|
|
218
|
-
}), { isPrinting:
|
|
219
|
-
elementId: `vue-ui-geo_${
|
|
218
|
+
}), { isPrinting: dt, isImaging: ft, generatePdf: pt, generateImage: mt } = l({
|
|
219
|
+
elementId: `vue-ui-geo_${O.value}`,
|
|
220
220
|
fileName: L.value.style.chart.title.text || "vue-ui-geo",
|
|
221
221
|
options: L.value.userOptions.print
|
|
222
|
-
}),
|
|
223
|
-
function
|
|
222
|
+
}), ht = m(() => L.value.style.chart.controls.show ? L.value.style.chart.controls.position === "top" ? $e.value?.$el ?? null : L.value.style.chart.controls.position === "bottom" ? et.value?.$el ?? null : null : null);
|
|
223
|
+
function gt() {
|
|
224
224
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect(), M.value = null, N.value = null);
|
|
225
225
|
}
|
|
226
|
-
let z =
|
|
227
|
-
|
|
226
|
+
let z = m(() => !!L.value.responsive && !I.value);
|
|
227
|
+
T(() => I.value, async (e) => {
|
|
228
228
|
if (e) {
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
gt(), V.value = Number(L.value.style.chart.dimensions.width) || V.value, H.value = Number(L.value.style.chart.dimensions.height) || H.value, await ve(), A.value = !1, requestAnimationFrame(() => {
|
|
230
|
+
A.value || en();
|
|
231
231
|
});
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
L.value.responsive && (await
|
|
234
|
+
L.value.responsive && (await ve(), _t());
|
|
235
235
|
});
|
|
236
|
-
function
|
|
237
|
-
if (
|
|
238
|
-
let e =
|
|
239
|
-
if (!
|
|
240
|
-
let { width: e, height: t } =
|
|
241
|
-
chart:
|
|
242
|
-
noTitle:
|
|
243
|
-
title: L.value.style.chart.title.text ?
|
|
244
|
-
legend:
|
|
245
|
-
source:
|
|
236
|
+
function _t() {
|
|
237
|
+
if (gt(), !z.value) return;
|
|
238
|
+
let e = ie(() => {
|
|
239
|
+
if (!k.value) return;
|
|
240
|
+
let { width: e, height: t } = ae({
|
|
241
|
+
chart: k.value,
|
|
242
|
+
noTitle: vt.value ? Ze.value : null,
|
|
243
|
+
title: L.value.style.chart.title.text ? Xe.value : null,
|
|
244
|
+
legend: ht.value,
|
|
245
|
+
source: Qe.value
|
|
246
246
|
});
|
|
247
247
|
requestAnimationFrame(() => {
|
|
248
248
|
V.value = Math.max(.1, Number(e) || .1), H.value = Math.max(.1, Number(t) || .1) - 24;
|
|
249
249
|
});
|
|
250
250
|
});
|
|
251
|
-
M.value = new ResizeObserver(e), N.value =
|
|
251
|
+
M.value = new ResizeObserver(e), N.value = k.value ? k.value.parentNode : null, N.value && M.value.observe(N.value), e();
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
|
|
255
|
-
L.value =
|
|
253
|
+
let vt = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), yt = S({ showTooltip: L.value.style.chart.tooltip.show }), B = S(L.value.style.chart.zoom.active);
|
|
254
|
+
T(() => D.config, () => {
|
|
255
|
+
L.value = it(), yt.value.showTooltip = L.value.style.chart.tooltip.show, B.value = L.value.style.chart.zoom.active, V.value = L.value.style.chart.dimensions.width, H.value = L.value.style.chart.dimensions.height, _t(), Ye.value += 1, Je.value += 1;
|
|
256
256
|
}, { deep: !0 });
|
|
257
|
-
let { projections:
|
|
258
|
-
let e =
|
|
259
|
-
return typeof e == "function" ? e :
|
|
260
|
-
}),
|
|
257
|
+
let { projections: bt } = de, xt = m(() => L.value?.projection || "equirectangular"), St = m(() => {
|
|
258
|
+
let e = bt?.[xt.value];
|
|
259
|
+
return typeof e == "function" ? e : bt.equirectangular;
|
|
260
|
+
}), Ct = m(() => L.value.map.geoJson ?? null), wt = {
|
|
261
261
|
aitoff: {
|
|
262
262
|
width: 1e3,
|
|
263
263
|
height: 500
|
|
@@ -310,14 +310,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
310
310
|
width: 1e3,
|
|
311
311
|
height: 1e3
|
|
312
312
|
}
|
|
313
|
-
}, V =
|
|
314
|
-
let e =
|
|
313
|
+
}, V = S(L.value.style.chart.dimensions.width), H = S(L.value.style.chart.dimensions.height), Tt = m(() => {
|
|
314
|
+
let e = wt[xt.value] || wt.equirectangular;
|
|
315
315
|
return {
|
|
316
316
|
width: e.width,
|
|
317
317
|
height: e.height
|
|
318
318
|
};
|
|
319
|
-
}), U =
|
|
320
|
-
let e =
|
|
319
|
+
}), U = m(() => {
|
|
320
|
+
let e = Tt.value, t = V.value, n = H.value, r = Number.isFinite(t) && t > 0, i = Number.isFinite(n) && n > 0;
|
|
321
321
|
return r && i ? {
|
|
322
322
|
width: t,
|
|
323
323
|
height: n
|
|
@@ -331,16 +331,16 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
331
331
|
width: e.width,
|
|
332
332
|
height: e.height
|
|
333
333
|
};
|
|
334
|
-
}),
|
|
334
|
+
}), Et = m(() => {
|
|
335
335
|
let e = L.value?.map?.center, t = [0, 0];
|
|
336
336
|
if (!Array.isArray(e) || e.length !== 2) return t;
|
|
337
337
|
let n = Number(e[0]), r = Number(e[1]);
|
|
338
338
|
return !Number.isFinite(n) || !Number.isFinite(r) ? t : [n, r];
|
|
339
339
|
});
|
|
340
340
|
function W([e, t]) {
|
|
341
|
-
return
|
|
341
|
+
return St.value([e, t], Tt.value.width, Tt.value.height, Et.value);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Dt(e, t = {}) {
|
|
344
344
|
let { defaultName: n = "", namePropertyCandidates: r = [
|
|
345
345
|
"name",
|
|
346
346
|
"nom",
|
|
@@ -454,7 +454,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
454
454
|
features: f
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Ot(e) {
|
|
458
458
|
let t = Array.isArray(e?.features) ? e.features : [];
|
|
459
459
|
function n(e) {
|
|
460
460
|
if (!e || typeof e != "object") return "";
|
|
@@ -487,18 +487,18 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
487
487
|
geometry: e.geometry,
|
|
488
488
|
properties: r,
|
|
489
489
|
name: i,
|
|
490
|
-
uid: `map-feature-${
|
|
490
|
+
uid: `map-feature-${O.value}-${t}`,
|
|
491
491
|
index: t
|
|
492
492
|
};
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
let
|
|
495
|
+
let kt = m(() => Dt(Ct.value, {
|
|
496
496
|
defaultName: "",
|
|
497
497
|
includeNullGeometries: !1
|
|
498
|
-
})),
|
|
499
|
-
function
|
|
498
|
+
})), At = m(() => Ot(kt.value));
|
|
499
|
+
function jt(e) {
|
|
500
500
|
if (!e || typeof e.type != "string") return "";
|
|
501
|
-
if (e.type === "GeometryCollection") return (Array.isArray(e.geometries) ? e.geometries : []).map((e) =>
|
|
501
|
+
if (e.type === "GeometryCollection") return (Array.isArray(e.geometries) ? e.geometries : []).map((e) => jt(e)).filter(Boolean).join(" ");
|
|
502
502
|
let t = (e) => {
|
|
503
503
|
if (!Array.isArray(e) || e.length < 2) return null;
|
|
504
504
|
let t = Number(e[0]), n = Number(e[1]);
|
|
@@ -516,34 +516,34 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
516
516
|
}).filter(Boolean).join(" ");
|
|
517
517
|
return e.type === "Polygon" ? r(e.coordinates) : e.type === "MultiPolygon" ? (e.coordinates || []).map(r).filter(Boolean).join(" ") : e.type === "LineString" ? n(e.coordinates) : e.type === "MultiLineString" ? (e.coordinates || []).map(n).filter(Boolean).join(" ") : "";
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) =>
|
|
519
|
+
function Mt(e) {
|
|
520
|
+
return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) => Mt(e)) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" && Array.isArray(e.coordinates) ? e.coordinates : [] : [];
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) =>
|
|
522
|
+
function Nt(e) {
|
|
523
|
+
return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) => Nt(e)) : e.type === "Point" || e.type === "MultiPoint";
|
|
524
524
|
}
|
|
525
|
-
let
|
|
525
|
+
let Pt = m(() => At.value.filter((e) => {
|
|
526
526
|
let t = e.geometry;
|
|
527
527
|
return t ? t.type === "GeometryCollection" ? (Array.isArray(t.geometries) ? t.geometries : []).some((e) => e?.type === "Polygon" || e?.type === "MultiPolygon") : t.type === "Polygon" || t.type === "MultiPolygon" : !1;
|
|
528
|
-
})),
|
|
528
|
+
})), Ft = m(() => At.value.filter((e) => {
|
|
529
529
|
let t = e.geometry;
|
|
530
530
|
return t ? t.type === "GeometryCollection" ? (Array.isArray(t.geometries) ? t.geometries : []).some((e) => e?.type === "LineString" || e?.type === "MultiLineString") : t.type === "LineString" || t.type === "MultiLineString" : !1;
|
|
531
|
-
})),
|
|
531
|
+
})), It = m(() => At.value.filter((e) => {
|
|
532
532
|
let t = e.geometry;
|
|
533
|
-
return t ?
|
|
534
|
-
})),
|
|
535
|
-
let t =
|
|
533
|
+
return t ? Nt(t) : !1;
|
|
534
|
+
})), Lt = m(() => Pt.value.map((e) => {
|
|
535
|
+
let t = jt(e.geometry);
|
|
536
536
|
return t ? {
|
|
537
537
|
...e,
|
|
538
538
|
path: t
|
|
539
539
|
} : null;
|
|
540
|
-
}).filter(Boolean)),
|
|
541
|
-
let t =
|
|
540
|
+
}).filter(Boolean)), Rt = m(() => Ft.value.map((e) => {
|
|
541
|
+
let t = jt(e.geometry);
|
|
542
542
|
return t ? {
|
|
543
543
|
...e,
|
|
544
544
|
path: t
|
|
545
545
|
} : null;
|
|
546
|
-
}).filter(Boolean)),
|
|
546
|
+
}).filter(Boolean)), zt = m(() => {
|
|
547
547
|
let e = [];
|
|
548
548
|
function t(e = {}) {
|
|
549
549
|
let t = e?.style && typeof e.style == "object" ? e.style : {}, n = e.radius ?? e.r ?? t.radius ?? t.r, i = e.color ?? e.fill ?? t.color ?? t.fill, a = e.stroke ?? t.stroke, o = e.strokeWidth ?? e.stroke_width ?? t.strokeWidth ?? t.stroke_width;
|
|
@@ -554,8 +554,8 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
554
554
|
strokeWidth: Number.isFinite(Number(o)) ? Number(o) : Number(L.value.style.chart.points.strokeWidth)
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
for (let n of
|
|
558
|
-
let r =
|
|
557
|
+
for (let n of It.value) {
|
|
558
|
+
let r = Mt(n.geometry);
|
|
559
559
|
for (let i = 0; i < r.length; i += 1) {
|
|
560
560
|
let a = r[i];
|
|
561
561
|
if (!Array.isArray(a) || a.length < 2) continue;
|
|
@@ -578,7 +578,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
578
578
|
}
|
|
579
579
|
return e;
|
|
580
580
|
});
|
|
581
|
-
function
|
|
581
|
+
function Bt(e) {
|
|
582
582
|
if (!e || typeof e.type != "string") return [];
|
|
583
583
|
let t = [], n = (e) => {
|
|
584
584
|
if (!Array.isArray(e) || e.length < 2) return;
|
|
@@ -596,14 +596,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
598
|
if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
|
|
599
|
-
for (let n of e.geometries) t.push(...
|
|
599
|
+
for (let n of e.geometries) t.push(...Bt(n));
|
|
600
600
|
return t;
|
|
601
601
|
}
|
|
602
602
|
return e.type === "Point" ? (n(e.coordinates), t) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(n), t) : (r(e.coordinates), t);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Vt(e) {
|
|
605
605
|
let t = [];
|
|
606
|
-
for (let n of e) t.push(...
|
|
606
|
+
for (let n of e) t.push(...Bt(n.geometry));
|
|
607
607
|
if (!t.length) return null;
|
|
608
608
|
let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
|
|
609
609
|
for (let [e, o] of t) e < n && (n = e), o < r && (r = o), e > i && (i = e), o > a && (a = o);
|
|
@@ -617,24 +617,24 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
617
617
|
height: s
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
let
|
|
621
|
-
function
|
|
620
|
+
let Ht = m(() => Vt(At.value));
|
|
621
|
+
function Ut({ bounds: e, targetWidth: t, targetHeight: n, padding: r }) {
|
|
622
622
|
if (!e || !(e.width > 0) || !(e.height > 0)) return {
|
|
623
623
|
scale: 1,
|
|
624
624
|
translateX: 0,
|
|
625
625
|
translateY: 0,
|
|
626
626
|
transform: ""
|
|
627
627
|
};
|
|
628
|
-
let i = Number.isFinite(Number(r)) ? Number(r) : 0, a = Math.max(1, t - i * 2), o = Math.max(1, n - i * 2), s = a / e.width, c = o / e.height, l = Math.min(s, c), u = e.width * l, d = e.height * l, f = i + (a - u) / 2, p = i + (o - d) / 2,
|
|
628
|
+
let i = Number.isFinite(Number(r)) ? Number(r) : 0, a = Math.max(1, t - i * 2), o = Math.max(1, n - i * 2), s = a / e.width, c = o / e.height, l = Math.min(s, c), u = e.width * l, d = e.height * l, f = i + (a - u) / 2, p = i + (o - d) / 2, ee = f - e.minX * l, te = p - e.minY * l;
|
|
629
629
|
return {
|
|
630
630
|
scale: l,
|
|
631
|
-
translateX:
|
|
632
|
-
translateY:
|
|
633
|
-
transform: `translate(${
|
|
631
|
+
translateX: ee,
|
|
632
|
+
translateY: te,
|
|
633
|
+
transform: `translate(${ee} ${te}) scale(${l})`
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
let
|
|
637
|
-
let e =
|
|
636
|
+
let Wt = m(() => {
|
|
637
|
+
let e = Ht.value;
|
|
638
638
|
if (!e) return {
|
|
639
639
|
scale: 1,
|
|
640
640
|
translateX: 0,
|
|
@@ -642,29 +642,29 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
642
642
|
transform: ""
|
|
643
643
|
};
|
|
644
644
|
let t = L.value?.map?.fitPadding, n = Number.isFinite(Number(t)) ? Number(t) : 0;
|
|
645
|
-
return
|
|
645
|
+
return Ut({
|
|
646
646
|
bounds: e,
|
|
647
647
|
targetWidth: U.value.width,
|
|
648
648
|
targetHeight: U.value.height,
|
|
649
649
|
padding: n
|
|
650
650
|
});
|
|
651
|
-
}),
|
|
651
|
+
}), Gt = m(() => `0 0 ${U.value.width} ${U.value.height}`), { viewBox: Kt, resetZoom: qt, setInitialViewBox: Jt, scale: Yt, zoomByFactor: Xt } = le(R, {
|
|
652
652
|
x: 0,
|
|
653
653
|
y: 0,
|
|
654
654
|
width: U.value.width,
|
|
655
655
|
height: U.value.height
|
|
656
656
|
}, 1, B);
|
|
657
|
-
function
|
|
657
|
+
function Zt() {
|
|
658
658
|
B.value = !B.value;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
let t =
|
|
660
|
+
function Qt(e) {
|
|
661
|
+
let t = Wt.value, n = Number(t?.scale) || 1, r = Number(t?.translateX) || 0, i = Number(t?.translateY) || 0;
|
|
662
662
|
return {
|
|
663
663
|
x: e.x * n + r,
|
|
664
664
|
y: e.y * n + i
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function $t() {
|
|
668
668
|
let e = L.value?.map?.center, t = Number(e?.[0]), n = Number(e?.[1]), r = Array.isArray(e) && e.length === 2 && Number.isFinite(t) && Number.isFinite(n) && (t !== 0 || n !== 0), i = U.value.width, a = U.value.height;
|
|
669
669
|
if (!r) return {
|
|
670
670
|
x: 0,
|
|
@@ -679,7 +679,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
679
679
|
width: i,
|
|
680
680
|
height: a
|
|
681
681
|
};
|
|
682
|
-
let l =
|
|
682
|
+
let l = Qt({
|
|
683
683
|
x: s,
|
|
684
684
|
y: c
|
|
685
685
|
});
|
|
@@ -690,53 +690,53 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
690
690
|
height: a
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
let e =
|
|
695
|
-
|
|
693
|
+
function en() {
|
|
694
|
+
let e = $t();
|
|
695
|
+
Jt(e, { overwriteCurrentIfNotZoomed: !0 }), A.value = !0;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
let e =
|
|
699
|
-
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` :
|
|
697
|
+
let tn = m(() => {
|
|
698
|
+
let e = Kt.value;
|
|
699
|
+
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : Gt.value;
|
|
700
700
|
});
|
|
701
|
-
function
|
|
702
|
-
|
|
701
|
+
function nn() {
|
|
702
|
+
Xt(ze, !0);
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
|
|
704
|
+
function rn() {
|
|
705
|
+
Xt(1 / ze, !0);
|
|
706
706
|
}
|
|
707
|
-
async function
|
|
708
|
-
let e =
|
|
709
|
-
|
|
707
|
+
async function an() {
|
|
708
|
+
let e = $t();
|
|
709
|
+
Jt(e, { overwriteCurrentIfNotZoomed: !0 }), qt(!0);
|
|
710
710
|
}
|
|
711
|
-
|
|
711
|
+
T(() => [
|
|
712
712
|
L.value.projection,
|
|
713
713
|
L.value.map.center?.[0],
|
|
714
714
|
L.value.map.center?.[1],
|
|
715
715
|
L.value.map.fitPadding,
|
|
716
|
-
|
|
716
|
+
Ct.value
|
|
717
717
|
], async () => {
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
A.value = !1, await ve(), requestAnimationFrame(() => {
|
|
719
|
+
A.value || en();
|
|
720
720
|
});
|
|
721
|
-
}, { deep: !1 }),
|
|
721
|
+
}, { deep: !1 }), T(() => [
|
|
722
722
|
V.value,
|
|
723
723
|
H.value,
|
|
724
724
|
z.value
|
|
725
725
|
], async () => {
|
|
726
|
-
z.value && (await
|
|
726
|
+
z.value && (await ve(), Jt({
|
|
727
727
|
x: 0,
|
|
728
728
|
y: 0,
|
|
729
729
|
width: U.value.width,
|
|
730
730
|
height: U.value.height
|
|
731
|
-
}, { overwriteCurrentIfNotZoomed: !0 }),
|
|
732
|
-
|
|
731
|
+
}, { overwriteCurrentIfNotZoomed: !0 }), A.value = !1, requestAnimationFrame(() => {
|
|
732
|
+
A.value || en();
|
|
733
733
|
}));
|
|
734
734
|
}, { flush: "post" });
|
|
735
|
-
function
|
|
735
|
+
function on(e) {
|
|
736
736
|
return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter((e) => e?.type === "Feature" && e.geometry?.type === "Point").map((e, t) => {
|
|
737
737
|
let n = e.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, i = e.geometry.coordinates;
|
|
738
738
|
return {
|
|
739
|
-
uid: `map-point-${
|
|
739
|
+
uid: `map-point-${O.value}-${t}`,
|
|
740
740
|
name: r,
|
|
741
741
|
coordinates: i,
|
|
742
742
|
color: n.color ?? null,
|
|
@@ -751,7 +751,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
751
751
|
Array.isArray(e) && e.length >= 2 ? n = [Number(e[0]), Number(e[1])] : e && typeof e == "object" && (Array.isArray(e.coordinates) && e.coordinates.length >= 2 ? n = [Number(e.coordinates[0]), Number(e.coordinates[1])] : Number.isFinite(Number(e.lon)) && Number.isFinite(Number(e.lat)) && (n = [Number(e.lon), Number(e.lat)]), typeof e.name == "string" && e.name.trim() && (r = e.name), e.description != null && (i = e.description), e.color != null && (a = e.color), e.radius != null && (o = e.radius));
|
|
752
752
|
let s = n ? n[0] : NaN, c = n ? n[1] : NaN;
|
|
753
753
|
return !Number.isFinite(s) || !Number.isFinite(c) ? null : {
|
|
754
|
-
uid: `map-point-${
|
|
754
|
+
uid: `map-point-${O.value}-${t}`,
|
|
755
755
|
name: r,
|
|
756
756
|
coordinates: [s, c],
|
|
757
757
|
color: a,
|
|
@@ -767,7 +767,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
767
767
|
if (!r || r.length < 2) return null;
|
|
768
768
|
let i = Number(r[0]), a = Number(r[1]);
|
|
769
769
|
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
770
|
-
uid: `map-point-${
|
|
770
|
+
uid: `map-point-${O.value}-${n}-${e}`,
|
|
771
771
|
name: t.name || e,
|
|
772
772
|
coordinates: [i, a],
|
|
773
773
|
color: t.color ?? null,
|
|
@@ -779,7 +779,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
779
779
|
};
|
|
780
780
|
}).filter(Boolean) : [] : [];
|
|
781
781
|
}
|
|
782
|
-
let
|
|
782
|
+
let sn = m(() => on(ut.value)), cn = m(() => sn.value.map((e) => {
|
|
783
783
|
let t = W(e.coordinates), n = t?.[0], i = t?.[1];
|
|
784
784
|
return !Number.isFinite(n) || !Number.isFinite(i) ? null : {
|
|
785
785
|
...e,
|
|
@@ -788,44 +788,44 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
788
788
|
fill: e.color ? r(e.color) : L.value.style.chart.points.fill,
|
|
789
789
|
radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : L.value.style.chart.points.radius
|
|
790
790
|
};
|
|
791
|
-
}).filter(Boolean)), G =
|
|
791
|
+
}).filter(Boolean)), G = m(() => cn.value.map((e, t) => ({
|
|
792
792
|
...e,
|
|
793
793
|
keyboardIndex: t
|
|
794
794
|
})));
|
|
795
|
-
function
|
|
796
|
-
let n =
|
|
797
|
-
r && (
|
|
795
|
+
function ln(e) {
|
|
796
|
+
let n = Qt(e), r = t(n.x, n.y, R.value);
|
|
797
|
+
r && (tt.value = {
|
|
798
798
|
x: r.x,
|
|
799
799
|
y: r.y
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
|
-
let
|
|
803
|
-
function
|
|
804
|
-
|
|
802
|
+
let un = S(!1), dn = S(""), K = S(!1), q = S(null), J = S(null);
|
|
803
|
+
function fn(e) {
|
|
804
|
+
dn.value = e, un.value = !0;
|
|
805
805
|
}
|
|
806
806
|
function Y() {
|
|
807
|
-
|
|
807
|
+
un.value = !1, dn.value = "";
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function pn(e) {
|
|
810
810
|
return String(e ?? "").replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
|
|
812
|
+
function mn(e) {
|
|
813
|
+
j.value = {
|
|
814
814
|
datapoint: e,
|
|
815
815
|
seriesIndex: e.index,
|
|
816
|
-
series:
|
|
816
|
+
series: sn.value,
|
|
817
817
|
config: L.value
|
|
818
818
|
}, K.value = !1;
|
|
819
819
|
let t = L.value.style.chart.tooltip.customFormat;
|
|
820
820
|
if (o(t)) try {
|
|
821
|
-
let e = t(
|
|
821
|
+
let e = t(j.value);
|
|
822
822
|
if (typeof e == "string") return K.value = !0, e;
|
|
823
823
|
} catch {
|
|
824
824
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
825
825
|
}
|
|
826
|
-
return `<div><div style="font-weight:600">${
|
|
826
|
+
return `<div><div style="font-weight:600">${pn(e.name)}</div>${e.description == null ? "" : `<div style="margin-top:6px">${pn(e.description)}</div>`}</div>`;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function hn(e) {
|
|
829
829
|
K.value = !1;
|
|
830
830
|
let t = L.value.style.chart.tooltip.customFormat;
|
|
831
831
|
if (o(t)) try {
|
|
@@ -838,9 +838,9 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
838
838
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
839
839
|
}
|
|
840
840
|
let n = typeof e?.name == "string" ? e.name.trim() : "";
|
|
841
|
-
return n ? `<div><div style="font-weight:600">${
|
|
841
|
+
return n ? `<div><div style="font-weight:600">${pn(n)}</div></div>` : (K.value = !1, "");
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function gn(e) {
|
|
844
844
|
if (L.value.events.territoryEnter && L.value.events.territoryEnter({
|
|
845
845
|
datapoint: e,
|
|
846
846
|
seriesIndex: e.index
|
|
@@ -848,41 +848,41 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
848
848
|
J.value = null, Y();
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
-
J.value = e.uid,
|
|
851
|
+
J.value = e.uid, fn(hn(e));
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function _n(e) {
|
|
854
854
|
J.value = null, Y(), L.value.events.territoryLeave && L.value.events.territoryLeave({
|
|
855
855
|
datapoint: e,
|
|
856
856
|
seriesIndex: e.index
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function vn(e) {
|
|
860
860
|
L.value.events.territoryClick && L.value.events.territoryClick({
|
|
861
861
|
datapoint: e,
|
|
862
862
|
seriesIndex: e.index
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" &&
|
|
865
|
+
function yn(e, t = null, n = "pointer") {
|
|
866
|
+
F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" && ln(e), fn(mn(e)), L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
867
867
|
datapoint: e,
|
|
868
868
|
seriesIndex: e.index
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
872
|
-
t
|
|
871
|
+
function bn(e, t = "pointer") {
|
|
872
|
+
(t !== "pointer" || F.value !== "keyboard") && (q.value = null, Y(), t !== "pointer" && (P.value = null, F.value = "pointer"), L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
873
873
|
datapoint: e,
|
|
874
874
|
seriesIndex: e.index
|
|
875
875
|
}));
|
|
876
876
|
}
|
|
877
|
-
let
|
|
878
|
-
function
|
|
879
|
-
|
|
877
|
+
let xn = m(() => !!L.value.events.datapointClick && typeof L.value.events.datapointClick == "function");
|
|
878
|
+
function Sn(e) {
|
|
879
|
+
xn.value && L.value.events.datapointClick({
|
|
880
880
|
datapoint: e,
|
|
881
881
|
seriesIndex: e.index
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
let X =
|
|
885
|
-
function
|
|
884
|
+
let X = m(() => L.value.style.chart.territory), Cn = m(() => L.value.style.chart.points);
|
|
885
|
+
function wn(e) {
|
|
886
886
|
let t = typeof e?.name == "string" ? e.name.trim() : "";
|
|
887
887
|
if (!t) {
|
|
888
888
|
J.value = null, Y();
|
|
@@ -894,59 +894,34 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
894
894
|
index: e.featureIndex,
|
|
895
895
|
properties: {}
|
|
896
896
|
};
|
|
897
|
-
J.value = e.uid,
|
|
897
|
+
J.value = e.uid, fn(hn(n));
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Tn() {
|
|
900
900
|
J.value = null, Y();
|
|
901
901
|
}
|
|
902
|
-
let Z =
|
|
903
|
-
function
|
|
902
|
+
let Z = S(!1);
|
|
903
|
+
function En() {
|
|
904
904
|
Z.value = !Z.value;
|
|
905
905
|
}
|
|
906
|
-
|
|
906
|
+
T(() => Z.value, (e) => {
|
|
907
907
|
B.value = !e;
|
|
908
908
|
});
|
|
909
|
-
function
|
|
910
|
-
|
|
909
|
+
function Dn() {
|
|
910
|
+
yt.value.showTooltip = !yt.value.showTooltip;
|
|
911
911
|
}
|
|
912
|
-
let
|
|
912
|
+
let On = m(() => L.value.style.chart.backgroundColor), kn = m(() => L.value.style.chart.title), { isCallbackImaging: An, isCallbackSvg: jn, generateSvg: Mn, onGenerateImage: Nn } = ee({
|
|
913
913
|
svg: R,
|
|
914
|
-
title:
|
|
915
|
-
legend:
|
|
916
|
-
legendItems:
|
|
917
|
-
backgroundColor:
|
|
914
|
+
title: kn,
|
|
915
|
+
legend: null,
|
|
916
|
+
legendItems: null,
|
|
917
|
+
backgroundColor: On,
|
|
918
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
919
|
+
generateImage: mt
|
|
918
920
|
});
|
|
919
|
-
async function
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Mn();
|
|
924
|
-
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
925
|
-
blob: e,
|
|
926
|
-
url: t,
|
|
927
|
-
text: n,
|
|
928
|
-
dataUrl: r
|
|
929
|
-
}));
|
|
930
|
-
} else await Promise.resolve(jn());
|
|
931
|
-
} finally {
|
|
932
|
-
Xe.value = !1;
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
function Pn(e) {
|
|
936
|
-
if (e?.stage === "start") {
|
|
937
|
-
Ye.value = !0;
|
|
938
|
-
return;
|
|
939
|
-
}
|
|
940
|
-
if (e?.stage === "end") {
|
|
941
|
-
Ye.value = !1;
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
gt();
|
|
945
|
-
}
|
|
946
|
-
async function Fn({ scale: e = 2 } = {}) {
|
|
947
|
-
if (!A.value) return;
|
|
948
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ee({
|
|
949
|
-
domElement: A.value,
|
|
921
|
+
async function Pn({ scale: e = 2 } = {}) {
|
|
922
|
+
if (!k.value) return;
|
|
923
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
|
|
924
|
+
domElement: k.value,
|
|
950
925
|
base64: !0,
|
|
951
926
|
img: !0,
|
|
952
927
|
scale: e
|
|
@@ -960,30 +935,30 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
960
935
|
aspectRatio: r
|
|
961
936
|
};
|
|
962
937
|
}
|
|
963
|
-
let Q =
|
|
964
|
-
function
|
|
938
|
+
let Q = S(!1), $ = null;
|
|
939
|
+
function Fn() {
|
|
965
940
|
B.value && (Q.value = !0);
|
|
966
941
|
}
|
|
967
|
-
function
|
|
942
|
+
function In() {
|
|
968
943
|
Q.value = !1;
|
|
969
944
|
}
|
|
970
|
-
function
|
|
945
|
+
function Ln() {
|
|
971
946
|
B.value && (Q.value = !0, $ && clearTimeout($), $ = setTimeout(() => {
|
|
972
947
|
Q.value = !1, $ = null;
|
|
973
948
|
}, 140));
|
|
974
949
|
}
|
|
975
|
-
|
|
950
|
+
xe(() => {
|
|
976
951
|
$ && clearTimeout($);
|
|
977
952
|
});
|
|
978
|
-
async function
|
|
953
|
+
async function Rn([e, t], { animated: n = !0 } = {}) {
|
|
979
954
|
let r = Number(e), i = Number(t);
|
|
980
955
|
if (!Number.isFinite(r) || !Number.isFinite(i)) return;
|
|
981
956
|
let a = W([r, i]), o = a?.[0], s = a?.[1];
|
|
982
957
|
if (!Number.isFinite(o) || !Number.isFinite(s)) return;
|
|
983
|
-
let c =
|
|
958
|
+
let c = Qt({
|
|
984
959
|
x: o,
|
|
985
960
|
y: s
|
|
986
|
-
}), l =
|
|
961
|
+
}), l = Kt.value ? { ...Kt.value } : {
|
|
987
962
|
x: 0,
|
|
988
963
|
y: 0,
|
|
989
964
|
width: U.value.width,
|
|
@@ -995,42 +970,42 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
995
970
|
height: l.height
|
|
996
971
|
};
|
|
997
972
|
if (!n) {
|
|
998
|
-
|
|
973
|
+
Kt.value = u;
|
|
999
974
|
return;
|
|
1000
975
|
}
|
|
1001
|
-
let d = { ...l }, f = { ...u }, p = null,
|
|
976
|
+
let d = { ...l }, f = { ...u }, p = null, ee = (e) => {
|
|
1002
977
|
p ??= e;
|
|
1003
978
|
let t = Math.min((e - p) / 250, 1);
|
|
1004
|
-
|
|
979
|
+
Kt.value = {
|
|
1005
980
|
x: d.x + (f.x - d.x) * t,
|
|
1006
981
|
y: d.y + (f.y - d.y) * t,
|
|
1007
982
|
width: d.width + (f.width - d.width) * t,
|
|
1008
983
|
height: d.height + (f.height - d.height) * t
|
|
1009
|
-
}, t < 1 && requestAnimationFrame(
|
|
984
|
+
}, t < 1 && requestAnimationFrame(ee);
|
|
1010
985
|
};
|
|
1011
|
-
requestAnimationFrame(
|
|
986
|
+
requestAnimationFrame(ee);
|
|
1012
987
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
988
|
+
Se(async () => {
|
|
989
|
+
_t(), await ve(), requestAnimationFrame(() => {
|
|
990
|
+
A.value || (en(), (L.value.map.center?.[0] || L.value.map.center?.[1]) && Rn(L.value.map.center, { animated: !1 }));
|
|
1016
991
|
});
|
|
1017
|
-
}),
|
|
1018
|
-
|
|
992
|
+
}), xe(() => {
|
|
993
|
+
gt();
|
|
1019
994
|
});
|
|
1020
|
-
async function
|
|
1021
|
-
if (
|
|
995
|
+
async function zn() {
|
|
996
|
+
if (We("copyAlt", {
|
|
1022
997
|
config: L.value,
|
|
1023
|
-
dataset:
|
|
998
|
+
dataset: ut.value
|
|
1024
999
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
1025
1000
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1026
1001
|
return;
|
|
1027
1002
|
}
|
|
1028
1003
|
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
1029
1004
|
config: L.value,
|
|
1030
|
-
dataset:
|
|
1005
|
+
dataset: ut.value
|
|
1031
1006
|
}));
|
|
1032
1007
|
}
|
|
1033
|
-
function
|
|
1008
|
+
function Bn(e, t) {
|
|
1034
1009
|
let n = G.value;
|
|
1035
1010
|
if (!n.length) return null;
|
|
1036
1011
|
let r = n[e];
|
|
@@ -1045,45 +1020,45 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1045
1020
|
}
|
|
1046
1021
|
return i;
|
|
1047
1022
|
}
|
|
1048
|
-
function
|
|
1023
|
+
function Vn(e) {
|
|
1049
1024
|
let t = G.value;
|
|
1050
1025
|
return t.length ? e === "right" ? t.reduce((e, t, n, r) => t.x < r[e].x ? n : e, 0) : e === "left" ? t.reduce((e, t, n, r) => t.x > r[e].x ? n : e, 0) : e === "down" ? t.reduce((e, t, n, r) => t.y < r[e].y ? n : e, 0) : e === "up" ? t.reduce((e, t, n, r) => t.y > r[e].y ? n : e, 0) : 0 : null;
|
|
1051
1026
|
}
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1027
|
+
function Hn() {
|
|
1028
|
+
nt.value = !0;
|
|
1054
1029
|
}
|
|
1055
|
-
function
|
|
1030
|
+
function Un() {
|
|
1056
1031
|
let e = P.value == null ? null : G.value[P.value];
|
|
1057
|
-
e ?
|
|
1032
|
+
e ? bn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null), nt.value = !1;
|
|
1058
1033
|
}
|
|
1059
|
-
function
|
|
1034
|
+
function Wn(e) {
|
|
1060
1035
|
if (!R.value || Z.value || document.activeElement !== R.value || !G.value.length) return;
|
|
1061
1036
|
let t = e.key === "ArrowRight", n = e.key === "ArrowLeft", r = e.key === "ArrowDown", i = e.key === "ArrowUp", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1062
1037
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1063
1038
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1064
1039
|
let e = P.value == null ? null : G.value[P.value];
|
|
1065
|
-
e ?
|
|
1040
|
+
e ? bn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null);
|
|
1066
1041
|
return;
|
|
1067
1042
|
}
|
|
1068
1043
|
if (a) {
|
|
1069
1044
|
let e = P.value == null ? null : G.value[P.value];
|
|
1070
1045
|
if (!e) return;
|
|
1071
|
-
|
|
1046
|
+
Sn(e);
|
|
1072
1047
|
return;
|
|
1073
1048
|
}
|
|
1074
1049
|
let s = t ? "right" : n ? "left" : r ? "down" : "up", c = null;
|
|
1075
|
-
if (P.value == null ? c =
|
|
1050
|
+
if (P.value == null ? c = Vn(s) : (c = Bn(P.value, s), c ??= Vn(s)), c == null) return;
|
|
1076
1051
|
let l = G.value[c];
|
|
1077
|
-
l &&
|
|
1052
|
+
l && yn(l, c, "keyboard");
|
|
1078
1053
|
}
|
|
1079
|
-
let
|
|
1054
|
+
let Gn = m(() => ({
|
|
1080
1055
|
headers: [
|
|
1081
1056
|
"Name",
|
|
1082
1057
|
"Latitude",
|
|
1083
1058
|
"Longitude",
|
|
1084
1059
|
"Description"
|
|
1085
1060
|
],
|
|
1086
|
-
rows:
|
|
1061
|
+
rows: sn.value.map((e) => {
|
|
1087
1062
|
let t = Array.isArray(e.coordinates) ? e.coordinates[1] : null, n = Array.isArray(e.coordinates) ? e.coordinates[0] : null;
|
|
1088
1063
|
return [
|
|
1089
1064
|
e.name ?? "",
|
|
@@ -1093,41 +1068,41 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1093
1068
|
];
|
|
1094
1069
|
})
|
|
1095
1070
|
}));
|
|
1096
|
-
return
|
|
1097
|
-
getImage:
|
|
1098
|
-
generatePdf:
|
|
1099
|
-
generateImage:
|
|
1100
|
-
generateSvg:
|
|
1101
|
-
toggleTooltip:
|
|
1102
|
-
toggleAnnotator:
|
|
1103
|
-
toggleFullscreen:
|
|
1104
|
-
zoomIn:
|
|
1105
|
-
zoomOut:
|
|
1106
|
-
resetZoom:
|
|
1107
|
-
focusLocation:
|
|
1108
|
-
copyAlt:
|
|
1109
|
-
}), (e, t) => (
|
|
1110
|
-
class:
|
|
1071
|
+
return re({
|
|
1072
|
+
getImage: Pn,
|
|
1073
|
+
generatePdf: pt,
|
|
1074
|
+
generateImage: mt,
|
|
1075
|
+
generateSvg: Mn,
|
|
1076
|
+
toggleTooltip: Dn,
|
|
1077
|
+
toggleAnnotator: En,
|
|
1078
|
+
toggleFullscreen: rt,
|
|
1079
|
+
zoomIn: nn,
|
|
1080
|
+
zoomOut: rn,
|
|
1081
|
+
resetZoom: qt,
|
|
1082
|
+
focusLocation: Rn,
|
|
1083
|
+
copyAlt: zn
|
|
1084
|
+
}), (e, t) => (x(), _("div", {
|
|
1085
|
+
class: ye(`vue-data-ui-component vue-ui-geo ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value ? "vue-ui-geo-responsive" : ""} ${Q.value ? "vue-ui-geo-interacting" : ""}`),
|
|
1111
1086
|
ref_key: "geoChart",
|
|
1112
|
-
ref:
|
|
1113
|
-
id: `map_${
|
|
1087
|
+
ref: k,
|
|
1088
|
+
id: `map_${O.value}`,
|
|
1114
1089
|
dir: "auto",
|
|
1115
|
-
style:
|
|
1090
|
+
style: be({
|
|
1116
1091
|
fontFamily: L.value.style.fontFamily,
|
|
1117
1092
|
width: "100%",
|
|
1118
1093
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1119
1094
|
height: z.value ? `${H.value}px` : void 0
|
|
1120
1095
|
})
|
|
1121
1096
|
}, [
|
|
1122
|
-
|
|
1123
|
-
id: `chart-instructions-${
|
|
1097
|
+
v("div", {
|
|
1098
|
+
id: `chart-instructions-${O.value}`,
|
|
1124
1099
|
class: "sr-only"
|
|
1125
|
-
}, [
|
|
1126
|
-
|
|
1100
|
+
}, [v("p", null, we(L.value.a11y.translations.keyboardNavigation), 1)], 8, Oe),
|
|
1101
|
+
Gn.value?.rows?.length ? (x(), h(oe, {
|
|
1127
1102
|
key: 0,
|
|
1128
|
-
uid:
|
|
1129
|
-
head:
|
|
1130
|
-
body:
|
|
1103
|
+
uid: O.value,
|
|
1104
|
+
head: Gn.value.headers,
|
|
1105
|
+
body: Gn.value.rows,
|
|
1131
1106
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1132
1107
|
caption: L.value.a11y.translations.tableCaption
|
|
1133
1108
|
}, null, 8, [
|
|
@@ -1136,21 +1111,21 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1136
1111
|
"body",
|
|
1137
1112
|
"notice",
|
|
1138
1113
|
"caption"
|
|
1139
|
-
])) :
|
|
1140
|
-
|
|
1114
|
+
])) : g("", !0),
|
|
1115
|
+
vt.value ? (x(), _("div", {
|
|
1141
1116
|
key: 1,
|
|
1142
1117
|
ref_key: "noTitle",
|
|
1143
|
-
ref:
|
|
1118
|
+
ref: Ze,
|
|
1144
1119
|
class: "vue-data-ui-no-title-space",
|
|
1145
1120
|
style: "height:36px; width: 100%;background:transparent"
|
|
1146
|
-
}, null, 512)) :
|
|
1147
|
-
L.value.style.chart.title.text ? (
|
|
1121
|
+
}, null, 512)) : g("", !0),
|
|
1122
|
+
L.value.style.chart.title.text ? (x(), _("div", {
|
|
1148
1123
|
key: 2,
|
|
1149
1124
|
ref_key: "chartTitle",
|
|
1150
|
-
ref:
|
|
1125
|
+
ref: Xe,
|
|
1151
1126
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1152
|
-
}, [(
|
|
1153
|
-
key: `title_${
|
|
1127
|
+
}, [(x(), h(ne, {
|
|
1128
|
+
key: `title_${Ye.value}`,
|
|
1154
1129
|
config: {
|
|
1155
1130
|
title: {
|
|
1156
1131
|
cy: "geo-title",
|
|
@@ -1161,22 +1136,22 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1161
1136
|
...L.value.style.chart.title.subtitle
|
|
1162
1137
|
}
|
|
1163
1138
|
}
|
|
1164
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1165
|
-
L.value.userOptions.buttons.annotator ? (
|
|
1139
|
+
}, null, 8, ["config"]))], 512)) : g("", !0),
|
|
1140
|
+
L.value.userOptions.buttons.annotator ? (x(), h(w(He), {
|
|
1166
1141
|
key: 3,
|
|
1167
|
-
svgRef:
|
|
1142
|
+
svgRef: w(R),
|
|
1168
1143
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1169
1144
|
color: L.value.style.chart.color,
|
|
1170
1145
|
active: Z.value,
|
|
1171
|
-
isCursorPointer:
|
|
1172
|
-
onClose:
|
|
1146
|
+
isCursorPointer: at.value,
|
|
1147
|
+
onClose: En
|
|
1173
1148
|
}, {
|
|
1174
|
-
"annotator-action-close":
|
|
1175
|
-
"annotator-action-color":
|
|
1176
|
-
"annotator-action-draw":
|
|
1177
|
-
"annotator-action-undo":
|
|
1178
|
-
"annotator-action-redo":
|
|
1179
|
-
"annotator-action-delete":
|
|
1149
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1150
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
1151
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
1152
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
1153
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
1154
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
1180
1155
|
_: 3
|
|
1181
1156
|
}, 8, [
|
|
1182
1157
|
"svgRef",
|
|
@@ -1184,15 +1159,15 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1184
1159
|
"color",
|
|
1185
1160
|
"active",
|
|
1186
1161
|
"isCursorPointer"
|
|
1187
|
-
])) :
|
|
1188
|
-
L.value.userOptions.show && (
|
|
1162
|
+
])) : g("", !0),
|
|
1163
|
+
L.value.userOptions.show && (w(st) || w(ot)) ? (x(), h(w(Ve), {
|
|
1189
1164
|
ref: "userOptionsRef",
|
|
1190
|
-
key: `user_options_${
|
|
1165
|
+
key: `user_options_${Je.value}`,
|
|
1191
1166
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1192
1167
|
color: L.value.style.chart.color,
|
|
1193
|
-
isPrinting:
|
|
1194
|
-
isImaging:
|
|
1195
|
-
uid:
|
|
1168
|
+
isPrinting: w(dt),
|
|
1169
|
+
isImaging: w(ft),
|
|
1170
|
+
uid: O.value,
|
|
1196
1171
|
hasXls: !1,
|
|
1197
1172
|
hasTable: !1,
|
|
1198
1173
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
@@ -1205,27 +1180,27 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1205
1180
|
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1206
1181
|
isZoom: B.value,
|
|
1207
1182
|
isFullscreen: I.value,
|
|
1208
|
-
isTooltip:
|
|
1183
|
+
isTooltip: yt.value.showTooltip,
|
|
1209
1184
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1210
|
-
chartElement:
|
|
1185
|
+
chartElement: k.value,
|
|
1211
1186
|
position: L.value.userOptions.position,
|
|
1212
1187
|
isAnnotation: Z.value,
|
|
1213
1188
|
callbacks: L.value.userOptions.callbacks,
|
|
1214
1189
|
printScale: L.value.userOptions.print.scale,
|
|
1215
|
-
isCursorPointer:
|
|
1216
|
-
onToggleFullscreen:
|
|
1217
|
-
onGeneratePdf:
|
|
1218
|
-
onGenerateImage:
|
|
1219
|
-
onGenerateSvg:
|
|
1220
|
-
onToggleTooltip:
|
|
1221
|
-
onToggleAnnotator:
|
|
1222
|
-
onToggleZoom:
|
|
1223
|
-
onCopyAlt:
|
|
1224
|
-
style:
|
|
1225
|
-
},
|
|
1190
|
+
isCursorPointer: at.value,
|
|
1191
|
+
onToggleFullscreen: rt,
|
|
1192
|
+
onGeneratePdf: w(pt),
|
|
1193
|
+
onGenerateImage: w(Nn),
|
|
1194
|
+
onGenerateSvg: w(Mn),
|
|
1195
|
+
onToggleTooltip: Dn,
|
|
1196
|
+
onToggleAnnotator: En,
|
|
1197
|
+
onToggleZoom: Zt,
|
|
1198
|
+
onCopyAlt: zn,
|
|
1199
|
+
style: be({ visibility: w(st) ? w(ot) ? "visible" : "hidden" : "visible" })
|
|
1200
|
+
}, me({ _: 2 }, [
|
|
1226
1201
|
e.$slots.menuIcon ? {
|
|
1227
1202
|
name: "menuIcon",
|
|
1228
|
-
fn:
|
|
1203
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", b(y({
|
|
1229
1204
|
isOpen: t,
|
|
1230
1205
|
color: n
|
|
1231
1206
|
})), void 0, !0)]),
|
|
@@ -1233,27 +1208,27 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1233
1208
|
} : void 0,
|
|
1234
1209
|
e.$slots.optionTooltip ? {
|
|
1235
1210
|
name: "optionTooltip",
|
|
1236
|
-
fn:
|
|
1211
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1237
1212
|
key: "1"
|
|
1238
1213
|
} : void 0,
|
|
1239
1214
|
e.$slots.optionPdf ? {
|
|
1240
1215
|
name: "optionPdf",
|
|
1241
|
-
fn:
|
|
1216
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1242
1217
|
key: "2"
|
|
1243
1218
|
} : void 0,
|
|
1244
1219
|
e.$slots.optionImg ? {
|
|
1245
1220
|
name: "optionImg",
|
|
1246
|
-
fn:
|
|
1221
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1247
1222
|
key: "3"
|
|
1248
1223
|
} : void 0,
|
|
1249
1224
|
e.$slots.optionSvg ? {
|
|
1250
1225
|
name: "optionSvg",
|
|
1251
|
-
fn:
|
|
1226
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1252
1227
|
key: "4"
|
|
1253
1228
|
} : void 0,
|
|
1254
1229
|
e.$slots.optionFullscreen ? {
|
|
1255
1230
|
name: "optionFullscreen",
|
|
1256
|
-
fn:
|
|
1231
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", b(y({
|
|
1257
1232
|
toggleFullscreen: t,
|
|
1258
1233
|
isFullscreen: n
|
|
1259
1234
|
})), void 0, !0)]),
|
|
@@ -1261,7 +1236,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1261
1236
|
} : void 0,
|
|
1262
1237
|
e.$slots.optionAnnotator ? {
|
|
1263
1238
|
name: "optionAnnotator",
|
|
1264
|
-
fn:
|
|
1239
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", b(y({
|
|
1265
1240
|
toggleAnnotator: t,
|
|
1266
1241
|
isAnnotator: n
|
|
1267
1242
|
})), void 0, !0)]),
|
|
@@ -1269,7 +1244,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1269
1244
|
} : void 0,
|
|
1270
1245
|
e.$slots.optionZoom ? {
|
|
1271
1246
|
name: "optionZoom",
|
|
1272
|
-
fn:
|
|
1247
|
+
fn: E(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", b(y({
|
|
1273
1248
|
toggleZoom: t,
|
|
1274
1249
|
isZoomLocked: n
|
|
1275
1250
|
})), void 0, !0)]),
|
|
@@ -1277,72 +1252,46 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1277
1252
|
} : void 0,
|
|
1278
1253
|
e.$slots.optionAltCopy ? {
|
|
1279
1254
|
name: "optionAltCopy",
|
|
1280
|
-
fn:
|
|
1255
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1281
1256
|
key: "8"
|
|
1282
1257
|
} : void 0,
|
|
1283
1258
|
e.$slots["custom-menu-before"] ? {
|
|
1284
1259
|
name: "custom-menu-before",
|
|
1285
|
-
fn:
|
|
1260
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1286
1261
|
key: "9"
|
|
1287
1262
|
} : void 0,
|
|
1288
1263
|
e.$slots["custom-menu-after"] ? {
|
|
1289
1264
|
name: "custom-menu-after",
|
|
1290
|
-
fn:
|
|
1265
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1291
1266
|
key: "10"
|
|
1292
1267
|
} : void 0
|
|
1293
|
-
]), 1032,
|
|
1294
|
-
|
|
1295
|
-
"color",
|
|
1296
|
-
"isPrinting",
|
|
1297
|
-
"isImaging",
|
|
1298
|
-
"uid",
|
|
1299
|
-
"hasTooltip",
|
|
1300
|
-
"hasPdf",
|
|
1301
|
-
"hasImg",
|
|
1302
|
-
"hasSvg",
|
|
1303
|
-
"hasFullscreen",
|
|
1304
|
-
"hasAltCopy",
|
|
1305
|
-
"hasAnnotator",
|
|
1306
|
-
"hasZoom",
|
|
1307
|
-
"isZoom",
|
|
1308
|
-
"isFullscreen",
|
|
1309
|
-
"isTooltip",
|
|
1310
|
-
"titles",
|
|
1311
|
-
"chartElement",
|
|
1312
|
-
"position",
|
|
1313
|
-
"isAnnotation",
|
|
1314
|
-
"callbacks",
|
|
1315
|
-
"printScale",
|
|
1316
|
-
"isCursorPointer",
|
|
1317
|
-
"onGeneratePdf",
|
|
1318
|
-
"style"
|
|
1319
|
-
])) : _("", !0),
|
|
1320
|
-
L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !E(dt) ? (C(), g(le, {
|
|
1268
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasFullscreen.hasAltCopy.hasAnnotator.hasZoom.isZoom.isFullscreen.isTooltip.titles.chartElement.position.isAnnotation.callbacks.printScale.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : g("", !0),
|
|
1269
|
+
L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !w(lt) ? (x(), h(ue, {
|
|
1321
1270
|
key: 5,
|
|
1322
1271
|
ref_key: "zoomControlsTop",
|
|
1323
|
-
ref:
|
|
1272
|
+
ref: $e,
|
|
1324
1273
|
config: L.value,
|
|
1325
|
-
scale:
|
|
1274
|
+
scale: w(Yt),
|
|
1326
1275
|
isFullscreen: I.value,
|
|
1327
|
-
isCursorPointer:
|
|
1328
|
-
onZoomIn:
|
|
1329
|
-
onZoomOut:
|
|
1330
|
-
onResetZoom:
|
|
1276
|
+
isCursorPointer: at.value,
|
|
1277
|
+
onZoomIn: nn,
|
|
1278
|
+
onZoomOut: rn,
|
|
1279
|
+
onResetZoom: an
|
|
1331
1280
|
}, null, 8, [
|
|
1332
1281
|
"config",
|
|
1333
1282
|
"scale",
|
|
1334
1283
|
"isFullscreen",
|
|
1335
1284
|
"isCursorPointer"
|
|
1336
|
-
])) :
|
|
1337
|
-
|
|
1285
|
+
])) : g("", !0),
|
|
1286
|
+
v("div", ke, [(x(), _("svg", {
|
|
1338
1287
|
ref_key: "svgRef",
|
|
1339
1288
|
ref: R,
|
|
1340
|
-
xmlns:
|
|
1341
|
-
viewBox:
|
|
1289
|
+
xmlns: w(a),
|
|
1290
|
+
viewBox: tn.value,
|
|
1342
1291
|
preserveAspectRatio: "xMidYMid meet",
|
|
1343
|
-
"aria-describedby": `map-keyboard-instructions-${
|
|
1292
|
+
"aria-describedby": `map-keyboard-instructions-${O.value}`,
|
|
1344
1293
|
tabindex: "0",
|
|
1345
|
-
style:
|
|
1294
|
+
style: be({
|
|
1346
1295
|
display: "block",
|
|
1347
1296
|
width: "100%",
|
|
1348
1297
|
height: z.value ? `${H.value}px` : "auto",
|
|
@@ -1350,20 +1299,20 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1350
1299
|
touchAction: B.value ? "none" : "auto",
|
|
1351
1300
|
cursor: B.value ? Q.value ? "grabbing" : "grab" : "default"
|
|
1352
1301
|
}),
|
|
1353
|
-
id: `vue-ui-geo_${
|
|
1354
|
-
onPointerdown:
|
|
1355
|
-
onPointerup:
|
|
1356
|
-
onPointercancel:
|
|
1357
|
-
onPointerleave:
|
|
1358
|
-
onWheel:
|
|
1359
|
-
onFocus:
|
|
1360
|
-
onBlur:
|
|
1361
|
-
onKeydown:
|
|
1362
|
-
}, [
|
|
1363
|
-
transform:
|
|
1364
|
-
style:
|
|
1302
|
+
id: `vue-ui-geo_${O.value}`,
|
|
1303
|
+
onPointerdown: Fn,
|
|
1304
|
+
onPointerup: In,
|
|
1305
|
+
onPointercancel: In,
|
|
1306
|
+
onPointerleave: In,
|
|
1307
|
+
onWheel: Ln,
|
|
1308
|
+
onFocus: Hn,
|
|
1309
|
+
onBlur: Un,
|
|
1310
|
+
onKeydown: Wn
|
|
1311
|
+
}, [he(w(Ue)), v("g", {
|
|
1312
|
+
transform: Wt.value.transform,
|
|
1313
|
+
style: be({ pointerEvents: Q.value ? "none" : "auto" })
|
|
1365
1314
|
}, [
|
|
1366
|
-
|
|
1315
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Lt.value, (e) => (x(), _("path", {
|
|
1367
1316
|
class: "vue-ui-geo-territory",
|
|
1368
1317
|
key: e.uid,
|
|
1369
1318
|
d: e.path,
|
|
@@ -1371,11 +1320,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1371
1320
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1372
1321
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1373
1322
|
"vector-effect": "non-scaling-stroke",
|
|
1374
|
-
onMouseenter: (t) =>
|
|
1375
|
-
onMouseleave: (t) =>
|
|
1376
|
-
onClick: (t) =>
|
|
1377
|
-
}, null, 40,
|
|
1378
|
-
|
|
1323
|
+
onMouseenter: (t) => gn(e),
|
|
1324
|
+
onMouseleave: (t) => _n(e),
|
|
1325
|
+
onClick: (t) => vn(e)
|
|
1326
|
+
}, null, 40, Me))), 128))]),
|
|
1327
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Rt.value, (e) => (x(), _("path", {
|
|
1379
1328
|
class: "vue-ui-geo-territory",
|
|
1380
1329
|
key: e.uid,
|
|
1381
1330
|
d: e.path,
|
|
@@ -1383,11 +1332,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1383
1332
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1384
1333
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1385
1334
|
"vector-effect": "non-scaling-stroke",
|
|
1386
|
-
onMouseenter: (t) =>
|
|
1387
|
-
onMouseleave: (t) =>
|
|
1388
|
-
onClick: (t) =>
|
|
1389
|
-
}, null, 40,
|
|
1390
|
-
|
|
1335
|
+
onMouseenter: (t) => gn(e),
|
|
1336
|
+
onMouseleave: (t) => _n(e),
|
|
1337
|
+
onClick: (t) => vn(e)
|
|
1338
|
+
}, null, 40, Ne))), 128))]),
|
|
1339
|
+
v("g", null, [(x(!0), _(pe, null, Ce(zt.value, (e) => (x(), _("circle", {
|
|
1391
1340
|
key: e.uid,
|
|
1392
1341
|
cx: e.x,
|
|
1393
1342
|
cy: e.y,
|
|
@@ -1396,31 +1345,31 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1396
1345
|
stroke: e.stroke,
|
|
1397
1346
|
"stroke-width": e.strokeWidth,
|
|
1398
1347
|
"vector-effect": "non-scaling-stroke",
|
|
1399
|
-
onMouseenter: (t) =>
|
|
1400
|
-
onMouseleave:
|
|
1401
|
-
}, null, 40,
|
|
1402
|
-
(
|
|
1348
|
+
onMouseenter: (t) => wn(e),
|
|
1349
|
+
onMouseleave: Tn
|
|
1350
|
+
}, null, 40, Pe))), 128))]),
|
|
1351
|
+
(x(!0), _(pe, null, Ce(cn.value, (t, n) => (x(), _("g", { key: t.uid }, [C(e.$slots, "datapoint", _e({ ref_for: !0 }, {
|
|
1403
1352
|
point: t,
|
|
1404
|
-
onPointEnter:
|
|
1405
|
-
onPointLeave:
|
|
1406
|
-
onPointClick:
|
|
1353
|
+
onPointEnter: yn,
|
|
1354
|
+
onPointLeave: bn,
|
|
1355
|
+
onPointClick: Sn,
|
|
1407
1356
|
highlighted: q.value === t.uid
|
|
1408
|
-
}), () => [
|
|
1409
|
-
class:
|
|
1357
|
+
}), () => [v("circle", {
|
|
1358
|
+
class: ye({
|
|
1410
1359
|
"vue-ui-geo-point": !0,
|
|
1411
|
-
"vue-ui-geo-point-with-event":
|
|
1360
|
+
"vue-ui-geo-point-with-event": xn.value && at.value
|
|
1412
1361
|
}),
|
|
1413
1362
|
cx: t.x,
|
|
1414
1363
|
cy: t.y,
|
|
1415
1364
|
r: q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
|
|
1416
1365
|
fill: t.fill,
|
|
1417
|
-
stroke:
|
|
1418
|
-
"stroke-width":
|
|
1366
|
+
stroke: Cn.value.stroke,
|
|
1367
|
+
"stroke-width": Cn.value.strokeWidth,
|
|
1419
1368
|
"vector-effect": "non-scaling-stroke",
|
|
1420
|
-
onMouseenter: (e) =>
|
|
1421
|
-
onMouseleave: (e) =>
|
|
1422
|
-
onClick: (e) =>
|
|
1423
|
-
}, null, 42,
|
|
1369
|
+
onMouseenter: (e) => yn(t, n),
|
|
1370
|
+
onMouseleave: (e) => bn(t),
|
|
1371
|
+
onClick: (e) => Sn(t)
|
|
1372
|
+
}, null, 42, Fe)], !0), L.value.style.chart.points.labels.show ? (x(), _("text", {
|
|
1424
1373
|
key: 0,
|
|
1425
1374
|
class: "vue-ui-geo-point-label",
|
|
1426
1375
|
x: t.x,
|
|
@@ -1428,47 +1377,47 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1428
1377
|
"text-anchor": "middle",
|
|
1429
1378
|
fill: L.value.style.chart.points.labels.color,
|
|
1430
1379
|
"font-size": 1 * L.value.style.chart.points.labels.fontSizeRatio
|
|
1431
|
-
},
|
|
1432
|
-
|
|
1433
|
-
drawingArea:
|
|
1434
|
-
x:
|
|
1435
|
-
y:
|
|
1436
|
-
width:
|
|
1437
|
-
height:
|
|
1438
|
-
isPrintingImg:
|
|
1439
|
-
isPrintingSvg:
|
|
1380
|
+
}, we(t.name), 9, Ie)) : g("", !0)]))), 128)),
|
|
1381
|
+
C(e.$slots, "svg", { svg: {
|
|
1382
|
+
drawingArea: tn.value,
|
|
1383
|
+
x: Ht.value?.minX ?? 0,
|
|
1384
|
+
y: Ht.value?.minY ?? 0,
|
|
1385
|
+
width: Ht.value?.width ?? 0,
|
|
1386
|
+
height: Ht.value?.height ?? 0,
|
|
1387
|
+
isPrintingImg: w(dt) || w(ft) || w(An),
|
|
1388
|
+
isPrintingSvg: w(jn),
|
|
1440
1389
|
data: {
|
|
1441
|
-
areaPaths:
|
|
1442
|
-
linePaths:
|
|
1443
|
-
geoJsonPoints:
|
|
1444
|
-
projectedPoints:
|
|
1390
|
+
areaPaths: Lt.value,
|
|
1391
|
+
linePaths: Rt.value,
|
|
1392
|
+
geoJsonPoints: zt.value,
|
|
1393
|
+
projectedPoints: cn.value
|
|
1445
1394
|
}
|
|
1446
1395
|
} }, void 0, !0)
|
|
1447
|
-
], 12,
|
|
1396
|
+
], 12, je)], 44, Ae)), e.$slots.hint ? (x(), _("div", Le, [C(e.$slots, "hint", b(y({
|
|
1448
1397
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1449
|
-
isVisible:
|
|
1450
|
-
})), void 0, !0)])) :
|
|
1451
|
-
e.$slots.watermark ? (
|
|
1452
|
-
L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !
|
|
1398
|
+
isVisible: nt.value
|
|
1399
|
+
})), void 0, !0)])) : g("", !0)]),
|
|
1400
|
+
e.$slots.watermark ? (x(), _("div", Re, [C(e.$slots, "watermark", b(y({ isPrinting: w(dt) || w(ft) || w(An) || w(jn) })), void 0, !0)])) : g("", !0),
|
|
1401
|
+
L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !w(lt) ? (x(), h(ue, {
|
|
1453
1402
|
key: 7,
|
|
1454
1403
|
ref_key: "zoomControlsBottom",
|
|
1455
|
-
ref:
|
|
1404
|
+
ref: et,
|
|
1456
1405
|
config: L.value,
|
|
1457
|
-
scale:
|
|
1406
|
+
scale: w(Yt),
|
|
1458
1407
|
isFullscreen: I.value,
|
|
1459
|
-
isCursorPointer:
|
|
1460
|
-
onZoomIn:
|
|
1461
|
-
onZoomOut:
|
|
1462
|
-
onResetZoom:
|
|
1408
|
+
isCursorPointer: at.value,
|
|
1409
|
+
onZoomIn: nn,
|
|
1410
|
+
onZoomOut: rn,
|
|
1411
|
+
onResetZoom: an
|
|
1463
1412
|
}, null, 8, [
|
|
1464
1413
|
"config",
|
|
1465
1414
|
"scale",
|
|
1466
1415
|
"isFullscreen",
|
|
1467
1416
|
"isCursorPointer"
|
|
1468
|
-
])) :
|
|
1469
|
-
|
|
1417
|
+
])) : g("", !0),
|
|
1418
|
+
he(w(Be), {
|
|
1470
1419
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1471
|
-
show:
|
|
1420
|
+
show: yt.value.showTooltip && un.value,
|
|
1472
1421
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1473
1422
|
color: L.value.style.chart.tooltip.color,
|
|
1474
1423
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -1479,8 +1428,8 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1479
1428
|
position: L.value.style.chart.tooltip.position,
|
|
1480
1429
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1481
1430
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1482
|
-
parent:
|
|
1483
|
-
content:
|
|
1431
|
+
parent: k.value,
|
|
1432
|
+
content: dn.value,
|
|
1484
1433
|
isCustom: K.value,
|
|
1485
1434
|
isFullscreen: I.value,
|
|
1486
1435
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
@@ -1488,11 +1437,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1488
1437
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1489
1438
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1490
1439
|
isA11yMode: F.value === "keyboard",
|
|
1491
|
-
a11yPosition:
|
|
1440
|
+
a11yPosition: tt.value
|
|
1492
1441
|
}, {
|
|
1493
|
-
"tooltip-before":
|
|
1494
|
-
tooltip:
|
|
1495
|
-
"tooltip-after":
|
|
1442
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", b(y({ ...j.value })), void 0, !0)]),
|
|
1443
|
+
tooltip: E(() => [C(e.$slots, "tooltip", b(y({ ...j.value })), void 0, !0)]),
|
|
1444
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", b(y({ ...j.value })), void 0, !0)]),
|
|
1496
1445
|
_: 3
|
|
1497
1446
|
}, 8, [
|
|
1498
1447
|
"teleportTo",
|
|
@@ -1518,15 +1467,15 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1518
1467
|
"isA11yMode",
|
|
1519
1468
|
"a11yPosition"
|
|
1520
1469
|
]),
|
|
1521
|
-
e.$slots.source ? (
|
|
1470
|
+
e.$slots.source ? (x(), _("div", {
|
|
1522
1471
|
key: 8,
|
|
1523
1472
|
ref_key: "source",
|
|
1524
|
-
ref:
|
|
1473
|
+
ref: Qe,
|
|
1525
1474
|
dir: "auto"
|
|
1526
|
-
}, [
|
|
1527
|
-
|
|
1528
|
-
], 14,
|
|
1475
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1476
|
+
C(e.$slots, "skeleton", {}, () => [w(lt) ? (x(), h(d, { key: 0 })) : g("", !0)], !0)
|
|
1477
|
+
], 14, De));
|
|
1529
1478
|
}
|
|
1530
|
-
}, [["__scopeId", "data-v-
|
|
1479
|
+
}, [["__scopeId", "data-v-0dc55d82"]]);
|
|
1531
1480
|
//#endregion
|
|
1532
|
-
export {
|
|
1481
|
+
export { Ee as n, Be as t };
|