@hybridcore/ui 1.6.13 → 1.6.14
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/AccordionSummary-DUtr16g6.js +781 -0
- package/dist/Add-Bk8R160M.js +403 -0
- package/dist/Button-Cem3nbwc.js +357 -0
- package/dist/ButtonBase-DObmf4Q_.js +886 -0
- package/dist/Delete-CVJ6FeDn.js +203 -0
- package/dist/FormGroup-BRj1o7-E.js +89 -0
- package/dist/InputLabel-CjD30ZHz.js +341 -0
- package/dist/MenuItem-BKvRGLvM.js +233 -0
- package/dist/Modal-BVYydOr5.js +1156 -0
- package/dist/Paper-B1HV8GyO.js +582 -0
- package/dist/Select-Bfhvigsx.js +3914 -0
- package/dist/Source-BSZST_GH.js +4410 -0
- package/dist/SwitchBase-BEK49kdS.js +235 -0
- package/dist/Text-ChJRuaD8.js +2197 -0
- package/dist/TextField-Ca9ykixI.js +696 -0
- package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
- package/dist/Typography-D3X-Y5fh.js +178 -0
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +126 -82
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/collapsible-card/index.js +30 -21
- package/dist/components/collapsible-card/styled.js +14 -16
- package/dist/components/color-picker/index.js +3358 -2228
- package/dist/components/color-picker/styled.js +7 -87
- package/dist/components/confirm/dialog.js +7 -89
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
- package/dist/components/date-range-picker/index.js +454 -466
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +3656 -145
- package/dist/components/geometry-picker/map/style.js +17 -18
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +1924 -77
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
- package/dist/components/instance-hierarchy-table/styled.js +16 -18
- package/dist/components/map/helpers/mapbox.js +15 -17
- package/dist/components/map/helpers/ol.js +27 -386
- package/dist/components/map/index.js +10 -11
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +27 -31
- package/dist/components/phone-input/index.js +9 -10
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +26 -27
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +57 -60
- package/dist/components/sortable-list/index.js +1264 -1091
- package/dist/components/template-form/components/property-list/index.js +32 -36
- package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
- package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
- package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
- package/dist/components/tree-select/index.js +16 -16
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/createSvgIcon-D7U1nd99.js +185 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/dialog-BtJhjyF5.js +664 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/index.esm-DAf19hyR.js +318 -0
- package/dist/math-Bvt2Ubuz.js +704 -0
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-DD4BkuVf.js +350 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useSlot-u4t0X96G.js +42 -0
- package/package.json +1 -1
- package/dist/index.esm-UfGMjYOL.js +0 -197
package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as io, jsx as Ii } from "react/jsx-runtime";
|
|
2
2
|
import { AlertTitle as na, Box as ia } from "@mui/material";
|
|
3
|
-
import { c as Ne,
|
|
3
|
+
import { c as Ne, g as ra } from "../../../../../../_commonjsHelpers-BkfeUUK-.js";
|
|
4
4
|
import qi, { useState as ro } from "react";
|
|
5
|
-
import { p as er } from "../../../../../../index-
|
|
5
|
+
import { p as er } from "../../../../../../index-CblbdqjE.js";
|
|
6
6
|
import { FlexCol as oa } from "../../../../../flex-col/index.js";
|
|
7
7
|
import { CompositeMatrixJsonAlert as sa } from "../../../../styled.js";
|
|
8
8
|
var Bi = { exports: {} }, Po = {}, gt = {}, vn = {}, Bn = {}, me = {}, zn = {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { styled as a, Box as
|
|
2
|
-
import t from "
|
|
3
|
-
|
|
4
|
-
import c from "@mui/material/AccordionSummary";
|
|
5
|
-
const s = (e) => e !== "ownerState", g = a(r, {
|
|
1
|
+
import { styled as a, Box as n, Typography as o, Chip as r } from "@mui/material";
|
|
2
|
+
import { A as t, a as c, b as i } from "../../AccordionSummary-DUtr16g6.js";
|
|
3
|
+
const s = (e) => e !== "ownerState", l = a(n, {
|
|
6
4
|
name: "HCInstanceHierarchyTable",
|
|
7
5
|
slot: "root",
|
|
8
6
|
shouldForwardProp: s
|
|
9
|
-
})({}),
|
|
7
|
+
})({}), p = a(t, {
|
|
10
8
|
name: "HCInstanceHierarchyTable",
|
|
11
9
|
slot: "accordion"
|
|
12
10
|
})(({ theme: e }) => ({
|
|
@@ -14,7 +12,7 @@ const s = (e) => e !== "ownerState", g = a(r, {
|
|
|
14
12
|
"&:before": {
|
|
15
13
|
display: "none"
|
|
16
14
|
}
|
|
17
|
-
})),
|
|
15
|
+
})), g = a(c, {
|
|
18
16
|
name: "HCInstanceHierarchyTable",
|
|
19
17
|
slot: "summary"
|
|
20
18
|
})(({ theme: e }) => ({
|
|
@@ -27,7 +25,7 @@ const s = (e) => e !== "ownerState", g = a(r, {
|
|
|
27
25
|
marginLeft: e.spacing(1),
|
|
28
26
|
alignItems: "center"
|
|
29
27
|
}
|
|
30
|
-
})),
|
|
28
|
+
})), h = a(i, {
|
|
31
29
|
name: "HCInstanceHierarchyTable",
|
|
32
30
|
slot: "details"
|
|
33
31
|
})(({ theme: e }) => ({
|
|
@@ -36,19 +34,19 @@ const s = (e) => e !== "ownerState", g = a(r, {
|
|
|
36
34
|
paddingBottom: 0,
|
|
37
35
|
borderTop: "1px solid rgba(0, 0, 0, .125)",
|
|
38
36
|
background: e.palette.grey[100]
|
|
39
|
-
})),
|
|
37
|
+
})), y = a("img", {
|
|
40
38
|
name: "HCInstanceHierarchyTable",
|
|
41
39
|
slot: "templateIcon"
|
|
42
40
|
})({
|
|
43
41
|
height: 22,
|
|
44
42
|
maxWidth: 22
|
|
45
|
-
}),
|
|
43
|
+
}), H = a(o, {
|
|
46
44
|
name: "HCInstanceHierarchyTable",
|
|
47
45
|
slot: "templateName"
|
|
48
46
|
})(({ theme: e }) => ({
|
|
49
47
|
fontWeight: 500,
|
|
50
48
|
marginLeft: e.spacing(2)
|
|
51
|
-
})),
|
|
49
|
+
})), b = a(r, {
|
|
52
50
|
name: "HCInstanceHierarchyTable",
|
|
53
51
|
slot: "countChip"
|
|
54
52
|
})(({ theme: e }) => ({
|
|
@@ -61,12 +59,12 @@ const s = (e) => e !== "ownerState", g = a(r, {
|
|
|
61
59
|
marginLeft: e.spacing(2)
|
|
62
60
|
}));
|
|
63
61
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
p as Accordion,
|
|
63
|
+
h as AccordionDetails,
|
|
64
|
+
g as AccordionSummary,
|
|
65
|
+
b as CountChip,
|
|
68
66
|
T as HierarchyLabel,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
l as HierarchyRoot,
|
|
68
|
+
y as TemplateIcon,
|
|
69
|
+
H as TemplateName
|
|
72
70
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import r from "mapbox-gl";
|
|
2
|
-
import b from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const L = ({ id: n = "map", center: s, style: i, accessToken: c }) => {
|
|
6
|
-
r.accessToken = c;
|
|
2
|
+
import { L as b, a as u, S as y } from "../../../Source-BSZST_GH.js";
|
|
3
|
+
const v = ({ id: n = "map", center: s, style: c, accessToken: i }) => {
|
|
4
|
+
r.accessToken = i;
|
|
7
5
|
const e = new r.Map({
|
|
8
|
-
style:
|
|
6
|
+
style: c,
|
|
9
7
|
attributionControl: !1,
|
|
10
8
|
boxZoom: !1,
|
|
11
9
|
center: s,
|
|
@@ -23,28 +21,28 @@ const L = ({ id: n = "map", center: s, style: i, accessToken: c }) => {
|
|
|
23
21
|
projection: {
|
|
24
22
|
name: "mercator"
|
|
25
23
|
}
|
|
26
|
-
}),
|
|
24
|
+
}), o = new b({
|
|
27
25
|
render: function(l) {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const f =
|
|
31
|
-
|
|
32
|
-
const p =
|
|
26
|
+
const a = e.getCanvas(), t = l.viewState, m = o.getVisible();
|
|
27
|
+
a.style.display = m ? "block" : "none", a.style.position = "absolute";
|
|
28
|
+
const f = o.getOpacity();
|
|
29
|
+
a.style.opacity = String(f);
|
|
30
|
+
const p = t.rotation;
|
|
33
31
|
return e.jumpTo({
|
|
34
32
|
// @ts-ignore
|
|
35
|
-
center: u(
|
|
36
|
-
zoom:
|
|
33
|
+
center: u(t.center),
|
|
34
|
+
zoom: t.zoom - 1,
|
|
37
35
|
bearing: -p * 180 / Math.PI,
|
|
38
36
|
animate: !1
|
|
39
|
-
}), e._frame && (e._frame.cancel(), e._frame = null), e._render(),
|
|
37
|
+
}), e._frame && (e._frame.cancel(), e._frame = null), e._render(), a;
|
|
40
38
|
},
|
|
41
39
|
source: new y({})
|
|
42
40
|
});
|
|
43
41
|
return {
|
|
44
42
|
map: e,
|
|
45
|
-
layer:
|
|
43
|
+
layer: o
|
|
46
44
|
};
|
|
47
45
|
};
|
|
48
46
|
export {
|
|
49
|
-
|
|
47
|
+
v as createMapboxLayer
|
|
50
48
|
};
|
|
@@ -1,388 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import j from "ol/layer/Tile";
|
|
13
|
-
import v from "ol/layer/Vector";
|
|
14
|
-
import A from "ol/Map";
|
|
15
|
-
import * as w from "ol/proj";
|
|
16
|
-
import E from "ol/source/Cluster";
|
|
17
|
-
import y from "ol/source/Vector";
|
|
18
|
-
import { Style as h, Icon as F, Text as k, Fill as V } from "ol/style";
|
|
19
|
-
import W from "ol/View";
|
|
20
|
-
import { defaultStyle as K, selectStyleFunction as B } from "../styled.js";
|
|
21
|
-
import { getNumberCoordinates as x, validate as M, parse as O, getGeometries as G, findPlacemarkCoordinates as X, build as $ } from "./kml.js";
|
|
22
|
-
import { parse as q, findCoordinate as H } from "./wkt.js";
|
|
23
|
-
const C = {
|
|
24
|
-
featureProjection: "EPSG:3857",
|
|
25
|
-
dataProjection: "EPSG:4326"
|
|
26
|
-
};
|
|
27
|
-
class J extends A {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments);
|
|
30
|
-
m(this, "centerToFeature", (e, r = [0, 0, 0, 0]) => {
|
|
31
|
-
const s = e.getGeometry();
|
|
32
|
-
if (s) {
|
|
33
|
-
const o = s.getExtent();
|
|
34
|
-
this.centerToExtent(o, 12, r);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
m(this, "getBoundingBox", () => {
|
|
38
|
-
let e = this.getView().calculateExtent();
|
|
39
|
-
return e = w.transformExtent(e, "EPSG:3857", "EPSG:4326"), {
|
|
40
|
-
bottomLeft: {
|
|
41
|
-
latitude: e[1],
|
|
42
|
-
longitude: e[0]
|
|
43
|
-
},
|
|
44
|
-
topRight: {
|
|
45
|
-
latitude: e[3],
|
|
46
|
-
longitude: e[2]
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
});
|
|
50
|
-
m(this, "getResolution", () => this.getView().getResolution());
|
|
51
|
-
m(this, "getResolutionForZoom", (e) => this.getView().getResolutionForZoom(e));
|
|
52
|
-
m(this, "getZoomLevel", () => this.getView().getZoom());
|
|
53
|
-
m(this, "insertLayerAt", (e, r) => {
|
|
54
|
-
this.getLayers().insertAt(e, r);
|
|
55
|
-
});
|
|
56
|
-
m(this, "removeOverlayById", (e) => {
|
|
57
|
-
const r = this.getOverlayById(e);
|
|
58
|
-
this.removeOverlay(r);
|
|
59
|
-
});
|
|
60
|
-
m(this, "setCenter", (e) => {
|
|
61
|
-
this.getView().setCenter(e);
|
|
62
|
-
});
|
|
63
|
-
m(this, "setZoomLevel", (e) => this.getView().setZoom(e));
|
|
64
|
-
m(this, "zoomIn", () => {
|
|
65
|
-
this.getView().animate({
|
|
66
|
-
zoom: (this.getView().getZoom() ?? 10) + 1,
|
|
67
|
-
duration: 250
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
m(this, "zoomOut", () => {
|
|
71
|
-
this.getView().animate({
|
|
72
|
-
zoom: (this.getView().getZoom() ?? 10) - 1,
|
|
73
|
-
duration: 250
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
centerToExtent(e, r = 12, s = [0, 0, 0, 0]) {
|
|
78
|
-
this.getView().fit(e, {
|
|
79
|
-
minResolution: r,
|
|
80
|
-
padding: s
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const he = (n, t, e, r = "map", s = {
|
|
85
|
-
doubleClickZoom: !0
|
|
86
|
-
}, o = {
|
|
87
|
-
zoom: !0,
|
|
88
|
-
zoomOptions: {
|
|
89
|
-
zoomInLabel: "+",
|
|
90
|
-
zoomOutLabel: "-",
|
|
91
|
-
zoomInClassName: "",
|
|
92
|
-
zoomOutClassName: ""
|
|
93
|
-
}
|
|
94
|
-
}) => new J({
|
|
95
|
-
target: r,
|
|
96
|
-
layers: n,
|
|
97
|
-
view: new W({
|
|
98
|
-
center: w.fromLonLat([t.longitude, t.latitude]),
|
|
99
|
-
zoom: e,
|
|
100
|
-
extent: w.transformExtent([-178, -88, 178, 88], "EPSG:4326", "EPSG:3857")
|
|
101
|
-
}),
|
|
102
|
-
interactions: _(s),
|
|
103
|
-
controls: R(o)
|
|
104
|
-
}), Fe = (n) => new j({
|
|
105
|
-
source: n
|
|
106
|
-
}), Se = ({
|
|
107
|
-
features: n,
|
|
108
|
-
writeStyles: t = !1,
|
|
109
|
-
projections: e = C
|
|
110
|
-
}) => {
|
|
111
|
-
const r = new S({
|
|
112
|
-
writeStyles: t
|
|
113
|
-
}), s = [];
|
|
114
|
-
return n.forEach((c) => {
|
|
115
|
-
var i;
|
|
116
|
-
if (((i = c.getGeometry()) == null ? void 0 : i.getType()) === "Circle") {
|
|
117
|
-
const u = c.getGeometry(), a = new g({
|
|
118
|
-
geometry: z(u),
|
|
119
|
-
type: "Circle",
|
|
120
|
-
center: u.getCenter().join(","),
|
|
121
|
-
radius: u.getRadius()
|
|
122
|
-
});
|
|
123
|
-
a.setStyle(c.getStyle()), s.push(a);
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
s.push(c);
|
|
127
|
-
}), r.writeFeatures(s, {
|
|
128
|
-
...e
|
|
129
|
-
});
|
|
130
|
-
}, Q = ({
|
|
131
|
-
features: n,
|
|
132
|
-
projections: t = C
|
|
133
|
-
}) => {
|
|
134
|
-
const e = new L(), r = [];
|
|
135
|
-
return n.forEach((o) => {
|
|
136
|
-
var c;
|
|
137
|
-
if (((c = o.getGeometry()) == null ? void 0 : c.getType()) === "Circle") {
|
|
138
|
-
const i = o.getGeometry(), u = new g({
|
|
139
|
-
geometry: z(i),
|
|
140
|
-
type: "Circle",
|
|
141
|
-
center: i.getCenter().join(","),
|
|
142
|
-
radius: i.getRadius()
|
|
143
|
-
});
|
|
144
|
-
r.push(u);
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
r.push(o);
|
|
148
|
-
}), e.writeFeatures(r, {
|
|
149
|
-
...t
|
|
150
|
-
});
|
|
151
|
-
}, Z = (n, t, e, r = 0.35) => {
|
|
152
|
-
p.isArray(n) && n.forEach((i) => Z(i, t, e));
|
|
153
|
-
const s = x(n.Point.coordinates), o = new g({
|
|
154
|
-
geometry: new P(w.fromLonLat(s)),
|
|
155
|
-
icon: t,
|
|
156
|
-
extraData: e
|
|
157
|
-
}), c = new h({
|
|
158
|
-
image: new F({
|
|
159
|
-
anchor: [0.5, 0.5],
|
|
160
|
-
src: t,
|
|
161
|
-
scale: r
|
|
162
|
-
}),
|
|
163
|
-
zIndex: 1
|
|
164
|
-
});
|
|
165
|
-
return o.setStyle(c), o;
|
|
166
|
-
}, Le = (n, t, e, r = 0.35) => {
|
|
167
|
-
if (M(n) === !0) {
|
|
168
|
-
const o = O(n), c = G(o);
|
|
169
|
-
if (p.has(c, "Placemark"))
|
|
170
|
-
return Z(c.Placemark, t, e, r);
|
|
171
|
-
} else return !1;
|
|
172
|
-
}, U = (n, t, e, r, s = 0.35) => {
|
|
173
|
-
if (M(n) === !0) {
|
|
174
|
-
const c = O(n), i = G(c);
|
|
175
|
-
if (p.has(i, "Placemark")) {
|
|
176
|
-
const u = p.isArray(i.Placemark) ? i.Placemark : [i.Placemark], a = X(u);
|
|
177
|
-
let l = G(c, ["Point"]);
|
|
178
|
-
l !== null && (l = $(l));
|
|
179
|
-
const f = new g({
|
|
180
|
-
geometry: new P(w.fromLonLat(a)),
|
|
181
|
-
icon: t,
|
|
182
|
-
clusterIcon: e,
|
|
183
|
-
extraData: r,
|
|
184
|
-
extraGeometries: l
|
|
185
|
-
}), d = new h({
|
|
186
|
-
image: new F({
|
|
187
|
-
anchor: [0.5, 0.5],
|
|
188
|
-
src: t,
|
|
189
|
-
scale: s
|
|
190
|
-
}),
|
|
191
|
-
zIndex: 1
|
|
192
|
-
});
|
|
193
|
-
return f.setStyle(d), [f];
|
|
194
|
-
}
|
|
195
|
-
return [];
|
|
196
|
-
}
|
|
197
|
-
return [];
|
|
198
|
-
}, Pe = (n, t = "EPSG:4326", e = "EPSG:3857") => {
|
|
199
|
-
var c;
|
|
200
|
-
const r = new S().readFeatures(n, {
|
|
201
|
-
dataProjection: t,
|
|
202
|
-
featureProjection: e
|
|
203
|
-
}), o = (c = new y({
|
|
204
|
-
features: r,
|
|
205
|
-
format: new S()
|
|
206
|
-
}).getFeatures()[0].getGeometry()) == null ? void 0 : c.getExtent();
|
|
207
|
-
return o ? T(o) : !1;
|
|
208
|
-
}, Ce = (n, t, e, r) => {
|
|
209
|
-
let s = [];
|
|
210
|
-
if (r.forEach((o) => {
|
|
211
|
-
o.geometry.forEach((c) => {
|
|
212
|
-
const i = U(c, o.icon, t, o.data);
|
|
213
|
-
i && i.length > 0 && (s = [...s, ...i]);
|
|
214
|
-
});
|
|
215
|
-
}), s.length > 0) {
|
|
216
|
-
const o = new y({
|
|
217
|
-
features: s
|
|
218
|
-
}), c = new E({
|
|
219
|
-
distance: 50,
|
|
220
|
-
source: o,
|
|
221
|
-
createCluster: function(u, a) {
|
|
222
|
-
const l = a.length, f = new g({
|
|
223
|
-
geometry: u,
|
|
224
|
-
features: a
|
|
225
|
-
}), d = new h({
|
|
226
|
-
image: new F({
|
|
227
|
-
anchor: [0.5, 0.5],
|
|
228
|
-
src: l === 1 ? a[0].get("icon") : a[0].get("clusterIcon"),
|
|
229
|
-
scale: e
|
|
230
|
-
}),
|
|
231
|
-
...l > 1 && {
|
|
232
|
-
text: new k({
|
|
233
|
-
text: l.toString(),
|
|
234
|
-
font: "12px sans-serif",
|
|
235
|
-
fill: new V({
|
|
236
|
-
color: "#fff"
|
|
237
|
-
})
|
|
238
|
-
})
|
|
239
|
-
},
|
|
240
|
-
zIndex: 1
|
|
241
|
-
});
|
|
242
|
-
return f.setStyle(d), f;
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
return new v({
|
|
246
|
-
source: c
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
return !1;
|
|
250
|
-
}, Ge = (n, t) => {
|
|
251
|
-
var s;
|
|
252
|
-
const r = (s = new y({
|
|
253
|
-
format: new S({
|
|
254
|
-
writeStyles: t
|
|
255
|
-
}),
|
|
256
|
-
wrapX: !1
|
|
257
|
-
}).getFormat()) == null ? void 0 : s.readFeatures(n, {
|
|
258
|
-
...C
|
|
259
|
-
});
|
|
260
|
-
return r && r.length > 0 ? r.map((c) => {
|
|
261
|
-
const { type: i, center: u, radius: a } = c.getProperties();
|
|
262
|
-
if (i === "Circle") {
|
|
263
|
-
const l = x(u);
|
|
264
|
-
c.setGeometry(new I(l, Number(a)));
|
|
265
|
-
}
|
|
266
|
-
return t || c.setStyle(K), c;
|
|
267
|
-
}) : !1;
|
|
268
|
-
}, Y = (n, t, e, r, s = 0.35) => {
|
|
269
|
-
let o = q(n);
|
|
270
|
-
if (o) {
|
|
271
|
-
p.isArray(o) && (o = o[0]);
|
|
272
|
-
const c = H(o);
|
|
273
|
-
let i = null;
|
|
274
|
-
o.type !== "Point" && (i = n);
|
|
275
|
-
const u = new g({
|
|
276
|
-
type: "INSTANCE",
|
|
277
|
-
geometry: new P(w.fromLonLat(c)),
|
|
278
|
-
icon: t,
|
|
279
|
-
clusterIcon: e,
|
|
280
|
-
extraData: r,
|
|
281
|
-
extraGeometries: i
|
|
282
|
-
});
|
|
283
|
-
r != null && r.id && u.setId(r.id);
|
|
284
|
-
const a = new h({
|
|
285
|
-
image: new F({
|
|
286
|
-
anchor: [0.5, 0.5],
|
|
287
|
-
src: t,
|
|
288
|
-
scale: s,
|
|
289
|
-
crossOrigin: "anonymous"
|
|
290
|
-
}),
|
|
291
|
-
zIndex: 1
|
|
292
|
-
});
|
|
293
|
-
return u.setStyle(a), [u];
|
|
294
|
-
}
|
|
295
|
-
return [];
|
|
296
|
-
}, xe = (n, t, e, r) => {
|
|
297
|
-
let s = [];
|
|
298
|
-
if (r.forEach((o) => {
|
|
299
|
-
o.geometry.forEach((c) => {
|
|
300
|
-
const i = Y(c, o.icon, t, o.data);
|
|
301
|
-
i && i.length > 0 && (s = [...s, ...i]);
|
|
302
|
-
});
|
|
303
|
-
}), s.length > 0) {
|
|
304
|
-
const o = new y({
|
|
305
|
-
features: s
|
|
306
|
-
}), c = new E({
|
|
307
|
-
distance: 50,
|
|
308
|
-
source: o,
|
|
309
|
-
createCluster: function(u, a) {
|
|
310
|
-
const l = a.length, f = new g({
|
|
311
|
-
geometry: u,
|
|
312
|
-
features: a
|
|
313
|
-
}), d = new h({
|
|
314
|
-
image: new F({
|
|
315
|
-
anchor: [0.5, 0.5],
|
|
316
|
-
src: l === 1 ? a[0].get("icon") : a[0].get("clusterIcon"),
|
|
317
|
-
scale: e
|
|
318
|
-
}),
|
|
319
|
-
...l > 1 && {
|
|
320
|
-
text: new k({
|
|
321
|
-
text: l.toString(),
|
|
322
|
-
font: "12px sans-serif",
|
|
323
|
-
fill: new V({
|
|
324
|
-
color: "#fff"
|
|
325
|
-
})
|
|
326
|
-
})
|
|
327
|
-
},
|
|
328
|
-
zIndex: 1
|
|
329
|
-
});
|
|
330
|
-
return f.setStyle(d), f;
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
return new v({
|
|
334
|
-
source: c,
|
|
335
|
-
style: B
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
return !1;
|
|
339
|
-
}, Te = (n, t, e = K) => {
|
|
340
|
-
var o;
|
|
341
|
-
const s = (o = new y({
|
|
342
|
-
format: new L(),
|
|
343
|
-
wrapX: !1
|
|
344
|
-
}).getFormat()) == null ? void 0 : o.readFeatures(n, {
|
|
345
|
-
...C
|
|
346
|
-
});
|
|
347
|
-
return s && s.length > 0 ? s.map((i) => {
|
|
348
|
-
const { type: u, center: a, radius: l } = i.getProperties();
|
|
349
|
-
if (u === "Circle") {
|
|
350
|
-
const f = x(a);
|
|
351
|
-
i.setGeometry(new I(f, Number(l)));
|
|
352
|
-
}
|
|
353
|
-
return i.setStyle(e), i.set("extraData", t), t != null && t.id && i.setId(t.id), i;
|
|
354
|
-
}) : !1;
|
|
355
|
-
}, Ie = (n, t = "EPSG:4326", e = "EPSG:3857") => {
|
|
356
|
-
var c;
|
|
357
|
-
const r = new L().readFeatures(n, {
|
|
358
|
-
dataProjection: t,
|
|
359
|
-
featureProjection: e
|
|
360
|
-
});
|
|
361
|
-
return (c = new y({
|
|
362
|
-
features: r,
|
|
363
|
-
format: new L()
|
|
364
|
-
}).getFeatures()[0].getGeometry()) == null ? void 0 : c.getExtent();
|
|
365
|
-
}, ze = (n) => {
|
|
366
|
-
const t = T(n), e = new g({
|
|
367
|
-
geometry: new P(t)
|
|
368
|
-
});
|
|
369
|
-
return Q({ features: [e] });
|
|
370
|
-
};
|
|
1
|
+
import "lodash";
|
|
2
|
+
import "ol";
|
|
3
|
+
import { v as M, x as n, c as T, B as u, E as L, a as k, t as l, z as W, y as f, b as g, w as x, A as y, g as C, d as v, k as E, D as d } from "../../../ol-yOE-NV0X.js";
|
|
4
|
+
import "../../../Source-BSZST_GH.js";
|
|
5
|
+
import "../../../Vector-BmuhQO4p.js";
|
|
6
|
+
import "../../../Vector-DfTqQEln.js";
|
|
7
|
+
import "../styled.js";
|
|
8
|
+
import "./kml.js";
|
|
9
|
+
import "./wkt.js";
|
|
10
|
+
import "../../../WKT-2wsDT-nq.js";
|
|
11
|
+
import "../../../Text-ChJRuaD8.js";
|
|
371
12
|
export {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
13
|
+
M as MyMap,
|
|
14
|
+
n as convertFeaturesToKML,
|
|
15
|
+
T as convertFeaturesToWKT,
|
|
16
|
+
u as createClusterFromKMLMarkers,
|
|
17
|
+
L as createClusterFromWKTMarkers,
|
|
18
|
+
k as createFeaturesFromKML,
|
|
19
|
+
l as createFeaturesFromWKT,
|
|
20
|
+
W as createKMLFeature,
|
|
21
|
+
f as createKMLPlacemark,
|
|
22
|
+
g as createMap,
|
|
23
|
+
x as createTileLayer,
|
|
24
|
+
y as findCenterOfKMLPolygon,
|
|
25
|
+
C as getWKTCenterOfExtent,
|
|
26
|
+
v as getWKTExtent,
|
|
27
|
+
E as kmlToIconFeatures,
|
|
28
|
+
d as wktToIconFeatures
|
|
388
29
|
};
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
3
|
import f from "./logic.js";
|
|
4
4
|
import a from "./styled.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
var e, r;
|
|
5
|
+
import '../../assets/index.css';const p = (o, i) => {
|
|
6
|
+
var t, n;
|
|
8
7
|
const { refs: s, action: m } = f(o);
|
|
9
|
-
return
|
|
8
|
+
return e.useImperativeHandle(i, () => m), /* @__PURE__ */ r(
|
|
10
9
|
a.Container,
|
|
11
10
|
{
|
|
12
11
|
sx: {
|
|
13
12
|
// position: 'relative',
|
|
14
|
-
cursor: ((
|
|
13
|
+
cursor: ((t = o.options) == null ? void 0 : t.cursor) || "default"
|
|
15
14
|
},
|
|
16
|
-
children: /* @__PURE__ */
|
|
15
|
+
children: /* @__PURE__ */ r(
|
|
17
16
|
a.Container,
|
|
18
17
|
{
|
|
19
18
|
id: o.id || "map",
|
|
20
19
|
ref: s.mapContainer,
|
|
21
|
-
cssPosition: (
|
|
20
|
+
cssPosition: (n = o.options) == null ? void 0 : n.cssPosition,
|
|
22
21
|
onContextMenu: (c) => c.preventDefault(),
|
|
23
22
|
className: "map"
|
|
24
23
|
}
|
|
25
24
|
)
|
|
26
25
|
}
|
|
27
26
|
);
|
|
28
|
-
},
|
|
27
|
+
}, x = e.memo(e.forwardRef(p));
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
x as Map
|
|
31
30
|
};
|