@hybridcore/ui 1.3.1 → 1.3.3
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/{ButtonBase-DZH9mTSs.js → ButtonBase-DE8d_U2E.js} +9 -9
- package/dist/{CardContent-CUZ9jH0z.js → CardContent-Du2i427Y.js} +4 -4
- package/dist/{Checkbox-RTVyZJPK.js → Checkbox-BGNAqLl0.js} +7 -7
- package/dist/{Collapse-9zKUPtnk.js → Collapse-FRd0_2Pt.js} +7 -7
- package/dist/{DialogContent-ijWcBrtC.js → DialogContent-CKeAZ3Ts.js} +12 -12
- package/dist/{FormControl-C0mOl3mC.js → FormControl-ChTmxscy.js} +399 -545
- package/dist/{FormControlLabel-BK6N5zeb.js → FormControlLabel-Df7csguX.js} +12 -12
- package/dist/{IconButton-D7MS15zj.js → IconButton-Cu_XEJB2.js} +5 -5
- package/dist/{Input-CIRMXtVU.js → Input-DU22-Zbo.js} +6 -6
- package/dist/InputAdornment-6aeADcPO.js +155 -0
- package/dist/{List-D26ubZNL.js → List-nOXr-cFJ.js} +6 -6
- package/dist/{ListItem-B0ZWvhCF.js → ListItem-RJvRMwkZ.js} +6 -6
- package/dist/{MenuItem-CI7xGSGZ.js → MenuItem-DF45rx2m.js} +13 -13
- package/dist/{OutlinedInput-aT_qMbXR.js → OutlinedInput-DJCHjkR3.js} +6 -6
- package/dist/{Paper-DuVFfsLZ.js → Paper-CD_ma6NJ.js} +5 -5
- package/dist/{Select-B625rLnY.js → Select-C1jD_gBQ.js} +15 -15
- package/dist/{Source-CnCcu5UP.js → Source-Hf_SiWEW.js} +123 -123
- package/dist/{Text-BT5kPHOo.js → Text-D6oGbCdi.js} +41 -41
- package/dist/{Typography-CJu4IM_v.js → Typography-C2BkMNk-.js} +4 -4
- package/dist/{chainPropTypes-DHF53jrt.js → chainPropTypes-GRMJ22CO.js} +3 -3
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +10 -10
- package/dist/components/confirm/dialog.js +6 -6
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +10 -10
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/date-time-picker/index.js +4 -4
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +2 -2
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +7 -6
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +19 -19
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/mapbox.js +3 -3
- package/dist/components/map/helpers/ol.js +3 -3
- package/dist/components/map/logic.js +2 -2
- package/dist/components/map/styled.js +2 -2
- package/dist/components/search-input/index.js +10 -9
- package/dist/components/template-property-filters/index.js +49 -481
- package/dist/components/template-property-filters/property.js +4 -4
- package/dist/components/tree-select/index.js +4 -4
- package/dist/components/treeview-filter/index.js +9 -9
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-6wv0RQr3.js +63 -0
- package/dist/{createSvgIcon-uzHr0c0Y.js → createSvgIcon-DPZ7UbxM.js} +4 -4
- package/dist/{createTheme-BynOz6vJ.js → createTheme-C3DKplhE.js} +22 -22
- package/dist/{exactProp-BgztuVaT.js → exactProp--3vlJ9a9.js} +3 -3
- package/dist/{extends-C3382pL0.js → extends-Cyw62AD_.js} +2 -2
- package/dist/{has-9_asnBxn.js → has-CjQtZJa9.js} +26 -26
- package/dist/{index-C5fnQULf.js → index-CtuBGOmk.js} +10 -10
- package/dist/{index-CEj0z7vR.js → index-DzFccwzL.js} +6 -6
- package/dist/{listItemTextClasses-Lb51gZ03.js → listItemTextClasses-2BAu-hye.js} +4 -4
- package/dist/main.d.ts +6 -0
- package/dist/main.js +402 -45
- package/dist/{ol-q6vTiF_t.js → ol-BUKJ1urU.js} +3 -3
- package/dist/property-BSufYw1E.js +6888 -0
- package/dist/requirePropFactory-BItwGLRQ.js +18 -0
- package/dist/{resolveComponentProps-D6QBz-nM.js → resolveComponentProps-DozbaB8e.js} +8 -8
- package/dist/{styled-C3GYAbYC.js → styled-CVWGE9ik.js} +22 -22
- package/dist/{styled-B02_UC50.js → styled-iyoioZCr.js} +20 -20
- package/dist/{useTheme-rmCSkfoY.js → useTheme--x3BjP9A.js} +3 -4
- package/dist/{useTheme-BYHXX22B.js → useTheme-pWltVFb2.js} +2 -2
- package/dist/{useThemeProps-DzfjJKh1.js → useThemeProps-C90JF0Qc.js} +3 -3
- package/dist/{useThemeProps-CR6NzUGU.js → useThemeProps-DNZoozBw.js} +4 -5
- package/dist/{utils-CIiFkdEJ.js → utils-qcu0RzdN.js} +8 -8
- package/package.json +2 -2
- package/dist/createSvgIcon-CpwgcuKn.js +0 -77
- package/dist/property-DyLBS7uO.js +0 -7020
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as y, jsxs as D, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { P as t } from "../../createTheme-
|
|
4
|
-
import { B as W, b as z,
|
|
3
|
+
import { P as t } from "../../createTheme-C3DKplhE.js";
|
|
4
|
+
import { B as W, b as z, u as V, a as H } from "../../ButtonBase-DE8d_U2E.js";
|
|
5
5
|
import { o as k } from "../../ownerDocument-CUrv0DIK.js";
|
|
6
|
-
import { e as q, a as X } from "../../exactProp
|
|
7
|
-
import { L,
|
|
8
|
-
import { l as T, g as J, L as K } from "../../ListItem-
|
|
9
|
-
import {
|
|
10
|
-
import { u as $, c as R, a as w } from "../../chainPropTypes-
|
|
11
|
-
import { s as B, r as Q, a as C } from "../../styled-
|
|
12
|
-
import { g as Z, l as S,
|
|
13
|
-
import { T as E } from "../../Typography-
|
|
6
|
+
import { e as q, a as X } from "../../exactProp--3vlJ9a9.js";
|
|
7
|
+
import { a as L, L as Y } from "../../List-nOXr-cFJ.js";
|
|
8
|
+
import { l as T, g as J, L as K } from "../../ListItem-RJvRMwkZ.js";
|
|
9
|
+
import { _ as b, a as P } from "../../extends-Cyw62AD_.js";
|
|
10
|
+
import { u as $, c as R, a as w } from "../../chainPropTypes-GRMJ22CO.js";
|
|
11
|
+
import { s as B, r as Q, a as C } from "../../styled-iyoioZCr.js";
|
|
12
|
+
import { g as Z, l as S, a as ee } from "../../listItemTextClasses-2BAu-hye.js";
|
|
13
|
+
import { T as E } from "../../Typography-C2BkMNk-.js";
|
|
14
14
|
const te = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], oe = (e, o) => {
|
|
15
15
|
const {
|
|
16
16
|
ownerState: s
|
|
@@ -3,7 +3,7 @@ import "@mui/material";
|
|
|
3
3
|
import "./styled.js";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
5
|
import "../../../../../hooks/useToggle.js";
|
|
6
|
-
import { C as l } from "../../../../../index-
|
|
6
|
+
import { C as l } from "../../../../../index-CtuBGOmk.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "lodash";
|
|
9
9
|
import "dayjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "lodash";
|
|
3
3
|
import "dayjs";
|
|
4
|
-
import { V as b } from "../../../../../index-
|
|
4
|
+
import { V as b } from "../../../../../index-CtuBGOmk.js";
|
|
5
5
|
import "@mui/material";
|
|
6
6
|
import "@mui/icons-material";
|
|
7
7
|
import "../../../../geometry-picker/index.js";
|
|
8
8
|
import "../../../../phone-input/index.js";
|
|
9
9
|
import "../../../../date-time-picker/index.js";
|
|
10
|
-
import "../../../../../FormControlLabel-
|
|
11
|
-
import "../../../../../Checkbox-
|
|
12
|
-
import "../../../../../FormControl-
|
|
13
|
-
import "../../../../../Select-
|
|
14
|
-
import "../../../../../MenuItem-
|
|
10
|
+
import "../../../../../FormControlLabel-Df7csguX.js";
|
|
11
|
+
import "../../../../../Checkbox-BGNAqLl0.js";
|
|
12
|
+
import "../../../../../FormControl-ChTmxscy.js";
|
|
13
|
+
import "../../../../../Select-C1jD_gBQ.js";
|
|
14
|
+
import "../../../../../MenuItem-DF45rx2m.js";
|
|
15
15
|
export {
|
|
16
16
|
b as default
|
|
17
17
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as $t, jsx as ye } from "react/jsx-runtime";
|
|
|
2
2
|
import * as V from "react";
|
|
3
3
|
import { useLayoutEffect as _t, useContext as Kt, useRef as j, useState as te, createContext as qt, useMemo as ee, useCallback as P, Component as en, Fragment as Ne, useEffect as bt, forwardRef as tn } from "react";
|
|
4
4
|
import { Box as nn, FormLabel as un, FormHelperText as on } from "@mui/material";
|
|
5
|
-
import {
|
|
5
|
+
import { a as an, _ as A } from "../../../extends-Cyw62AD_.js";
|
|
6
6
|
import { _ as rn, a as ln } from "../../../assertThisInitialized-BUtkG-md.js";
|
|
7
7
|
import { keyframes as sn, jsx as C, css as pt } from "@emotion/react";
|
|
8
8
|
import { createPortal as cn } from "react-dom";
|
|
@@ -9,8 +9,8 @@ import { Schedule as Z } from "@mui/icons-material";
|
|
|
9
9
|
import $ from "../../hooks/useMenuLogic.js";
|
|
10
10
|
const K = ({
|
|
11
11
|
value: g,
|
|
12
|
-
name:
|
|
13
|
-
minDate:
|
|
12
|
+
name: Y,
|
|
13
|
+
minDate: D,
|
|
14
14
|
variant: M,
|
|
15
15
|
size: H = "small",
|
|
16
16
|
minuteStep: m = 30,
|
|
@@ -49,7 +49,7 @@ const K = ({
|
|
|
49
49
|
{
|
|
50
50
|
value: o,
|
|
51
51
|
format: "DD/MM/YYYY",
|
|
52
|
-
minDate:
|
|
52
|
+
minDate: D,
|
|
53
53
|
onChange: x,
|
|
54
54
|
slotProps: {
|
|
55
55
|
textField: {
|
|
@@ -95,7 +95,7 @@ const K = ({
|
|
|
95
95
|
children: v.map((t) => /* @__PURE__ */ e(E, { onClick: C(t), children: t }, t))
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
/* @__PURE__ */ e("input", { type: "hidden", name:
|
|
98
|
+
/* @__PURE__ */ e("input", { type: "hidden", name: Y, value: (o == null ? void 0 : o.format()) ?? "" })
|
|
99
99
|
] });
|
|
100
100
|
};
|
|
101
101
|
export {
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, Fragment as p, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button as a, Box as f } from "@mui/material";
|
|
3
3
|
import u from "../map/index.js";
|
|
4
4
|
import C from "../parser/index.js";
|
|
5
|
-
import { g as y, c as g } from "../../../ol-
|
|
5
|
+
import { g as y, c as g } from "../../../ol-BUKJ1urU.js";
|
|
6
6
|
import { useState as h } from "react";
|
|
7
7
|
import { Add as P } from "@mui/icons-material";
|
|
8
8
|
import { parse as v, convert as x } from "../../map/helpers/wkt.js";
|
|
@@ -2,10 +2,10 @@ import { jsxs as a, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
|
2
2
|
import E, { useState as F, useEffect as T } from "react";
|
|
3
3
|
import { Dialog as w, DialogContent as K, DialogActions as j, Button as c, Box as O } from "@mui/material";
|
|
4
4
|
import C from "../map/index.js";
|
|
5
|
-
import { c as P, a as R } from "../../../ol-
|
|
5
|
+
import { c as P, a as R } from "../../../ol-BUKJ1urU.js";
|
|
6
6
|
import { parse as S } from "../../map/helpers/wkt.js";
|
|
7
7
|
import _ from "lodash";
|
|
8
|
-
import { t as B } from "../../../Source-
|
|
8
|
+
import { t as B } from "../../../Source-Hf_SiWEW.js";
|
|
9
9
|
function z({
|
|
10
10
|
value: g,
|
|
11
11
|
disableActions: y,
|
|
@@ -3,7 +3,7 @@ import D, { useState as k } from "react";
|
|
|
3
3
|
import { Dialog as R, DialogContent as K, Box as t, Typography as x, DialogActions as F, Button as d } from "@mui/material";
|
|
4
4
|
import P from "../map/index.js";
|
|
5
5
|
import b from "../parser/index.js";
|
|
6
|
-
import { c as _ } from "../../../ol-
|
|
6
|
+
import { c as _ } from "../../../ol-BUKJ1urU.js";
|
|
7
7
|
import { Button as l } from "../styled.js";
|
|
8
8
|
import { HorizontalRule as j, ShowChart as O, CircleOutlined as I } from "@mui/icons-material";
|
|
9
9
|
import L from "./map-overlay.js";
|
|
@@ -8,9 +8,10 @@ import y from "./geometry/index.js";
|
|
|
8
8
|
import b from "./kml/index.js";
|
|
9
9
|
import g from "./wkt/index.js";
|
|
10
10
|
import { IconButton as s, Dialog as E, DialogTitle as W, DialogContent as K } from "@mui/material";
|
|
11
|
-
import { F as L, I as z
|
|
12
|
-
import { I as
|
|
13
|
-
|
|
11
|
+
import { F as L, I as z } from "../../FormControl-ChTmxscy.js";
|
|
12
|
+
import { I as G } from "../../Input-DU22-Zbo.js";
|
|
13
|
+
import { I as w } from "../../InputAdornment-6aeADcPO.js";
|
|
14
|
+
const Q = ({
|
|
14
15
|
label: c,
|
|
15
16
|
mapboxAccessToken: r,
|
|
16
17
|
value: e = "",
|
|
@@ -74,11 +75,11 @@ const J = ({
|
|
|
74
75
|
children: [
|
|
75
76
|
/* @__PURE__ */ o(z, { shrink: !0, children: c }),
|
|
76
77
|
/* @__PURE__ */ o(
|
|
77
|
-
|
|
78
|
+
G,
|
|
78
79
|
{
|
|
79
80
|
value: e,
|
|
80
81
|
readOnly: !0,
|
|
81
|
-
endAdornment: /* @__PURE__ */ o(
|
|
82
|
+
endAdornment: /* @__PURE__ */ o(w, { position: "end", children: e !== "" && /* @__PURE__ */ i(m, { children: [
|
|
82
83
|
/* @__PURE__ */ o(s, { size: "small", onClick: n.onEdit, children: /* @__PURE__ */ o(f, { fontSize: "small" }) }),
|
|
83
84
|
/* @__PURE__ */ o(s, { size: "small", onClick: n.onDelete, children: /* @__PURE__ */ o(D, { fontSize: "small" }) })
|
|
84
85
|
] }) })
|
|
@@ -136,5 +137,5 @@ const J = ({
|
|
|
136
137
|
] });
|
|
137
138
|
};
|
|
138
139
|
export {
|
|
139
|
-
|
|
140
|
+
Q as GeometryPicker
|
|
140
141
|
};
|
|
@@ -3,7 +3,7 @@ import { useState as i, useEffect as b } from "react";
|
|
|
3
3
|
import k from "./select-input-method.js";
|
|
4
4
|
import { Box as c, TextField as M, Button as d } from "@mui/material";
|
|
5
5
|
import { validate as C } from "../../map/helpers/kml.js";
|
|
6
|
-
import { b as L, c as T } from "../../../ol-
|
|
6
|
+
import { b as L, c as T } from "../../../ol-BUKJ1urU.js";
|
|
7
7
|
function W({ onCancel: m, onSubmit: a }) {
|
|
8
8
|
const [t, l] = i(), [o, f] = i(), [s, n] = i(), p = (e) => {
|
|
9
9
|
l(e);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import k from "react";
|
|
2
2
|
import { createMapboxLayer as Xe } from "../../map/helpers/mapbox.js";
|
|
3
|
-
import { I as $e, s as ke, n as ge, e as ve, C as fe, f as v, V as se, F as L, P as me, p as Ze, h as
|
|
4
|
-
import { T as
|
|
5
|
-
import {
|
|
3
|
+
import { I as $e, s as ke, n as ge, e as ve, C as fe, f as v, V as se, F as L, P as me, p as Ze, h as Je, i as _e, R as Ge, j as ye, k as Q, M as D, l as Qe, m as ze, o as et, q as tt, L as J, r as it, t as Ie, u as Re, G as st, v as nt, b as Fe, a as rt } from "../../../ol-BUKJ1urU.js";
|
|
4
|
+
import { T as z, g as F, d as ot, q as Te, a as ne, E as ee, f as at, F as Ae, x as ht, r as be, i as ct, l as q, u as oe } from "../../../has-CjQtZJa9.js";
|
|
5
|
+
import { O as xe } from "../../../Text-D6oGbCdi.js";
|
|
6
6
|
import { defaultStyle as lt, selectStyleFunction as dt, markerStyle as ut } from "./style.js";
|
|
7
|
-
import {
|
|
7
|
+
import { G as E, ax as ae, ac as U, aL as te, k as C, aM as I, h as ie, T as gt, aI as Oe, ay as Ne, aN as R, aO as Ve, aP as ft, aQ as Se, P as je, J as _t, aR as mt, aK as yt } from "../../../Source-Hf_SiWEW.js";
|
|
8
8
|
import { alert as xt } from "../../confirm/index.js";
|
|
9
9
|
const pt = {
|
|
10
10
|
/**
|
|
@@ -32,7 +32,7 @@ class pe extends $e {
|
|
|
32
32
|
* @param {Options} [options] Options.
|
|
33
33
|
*/
|
|
34
34
|
constructor(e) {
|
|
35
|
-
super(), this.on, this.once, this.un, e = e || {}, this.boundAddFeature_ = this.addFeature_.bind(this), this.boundRemoveFeature_ = this.removeFeature_.bind(this), this.condition_ = e.condition ? e.condition : ke, this.addCondition_ = e.addCondition ? e.addCondition : ge, this.removeCondition_ = e.removeCondition ? e.removeCondition : ge, this.toggleCondition_ = e.toggleCondition ? e.toggleCondition : ve, this.multi_ = e.multi ? e.multi : !1, this.filter_ = e.filter ? e.filter :
|
|
35
|
+
super(), this.on, this.once, this.un, e = e || {}, this.boundAddFeature_ = this.addFeature_.bind(this), this.boundRemoveFeature_ = this.removeFeature_.bind(this), this.condition_ = e.condition ? e.condition : ke, this.addCondition_ = e.addCondition ? e.addCondition : ge, this.removeCondition_ = e.removeCondition ? e.removeCondition : ge, this.toggleCondition_ = e.toggleCondition ? e.toggleCondition : ve, this.multi_ = e.multi ? e.multi : !1, this.filter_ = e.filter ? e.filter : z, this.hitTolerance_ = e.hitTolerance ? e.hitTolerance : 0, this.style_ = e.style !== void 0 ? e.style : Ft(), this.features_ = e.features || new fe();
|
|
36
36
|
let t;
|
|
37
37
|
if (e.layers)
|
|
38
38
|
if (typeof e.layers == "function")
|
|
@@ -44,7 +44,7 @@ class pe extends $e {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
else
|
|
47
|
-
t =
|
|
47
|
+
t = z;
|
|
48
48
|
this.layerFilter_ = t, this.featureLayerAssociation_ = {};
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
@@ -279,7 +279,7 @@ class Tt extends me {
|
|
|
279
279
|
/** @type {import("./Pointer.js").Options} */
|
|
280
280
|
e
|
|
281
281
|
), this.on, this.once, this.un, this.boundHandleFeatureChange_ = this.handleFeatureChange_.bind(this), this.condition_ = e.condition ? e.condition : Ze, this.defaultDeleteCondition_ = function(s) {
|
|
282
|
-
return
|
|
282
|
+
return Je(s) && ke(s);
|
|
283
283
|
}, this.deleteCondition_ = e.deleteCondition ? e.deleteCondition : this.defaultDeleteCondition_, this.insertVertexCondition_ = e.insertVertexCondition ? e.insertVertexCondition : _e, this.vertexFeature_ = null, this.vertexSegments_ = null, this.lastPixel_ = [0, 0], this.ignoreNextSingleClick_ = !1, this.featuresBeingModified_ = null, this.rBush_ = new Ge(), this.pixelTolerance_ = e.pixelTolerance !== void 0 ? e.pixelTolerance : 10, this.snappedToVertex_ = !1, this.changingFeature_ = !1, this.dragSegments_ = [], this.overlay_ = new se({
|
|
284
284
|
source: new ye({
|
|
285
285
|
useSpatialIndex: !1,
|
|
@@ -301,10 +301,10 @@ class Tt extends me {
|
|
|
301
301
|
}, this.source_ = null, this.hitDetection_ = null;
|
|
302
302
|
let t;
|
|
303
303
|
if (e.features ? t = e.features : e.source && (this.source_ = e.source, t = new fe(this.source_.getFeatures()), this.source_.addEventListener(
|
|
304
|
-
|
|
304
|
+
Q.ADDFEATURE,
|
|
305
305
|
this.handleSourceAdd_.bind(this)
|
|
306
306
|
), this.source_.addEventListener(
|
|
307
|
-
|
|
307
|
+
Q.REMOVEFEATURE,
|
|
308
308
|
this.handleSourceRemove_.bind(this)
|
|
309
309
|
)), !t)
|
|
310
310
|
throw new Error(
|
|
@@ -1111,7 +1111,7 @@ function $(l, e, t) {
|
|
|
1111
1111
|
return o;
|
|
1112
1112
|
}
|
|
1113
1113
|
function Be(l, e, t) {
|
|
1114
|
-
if (e instanceof
|
|
1114
|
+
if (e instanceof J) {
|
|
1115
1115
|
Z(l, e.getCoordinates(), !1, t);
|
|
1116
1116
|
return;
|
|
1117
1117
|
}
|
|
@@ -1235,13 +1235,13 @@ class Dt extends me {
|
|
|
1235
1235
|
e
|
|
1236
1236
|
);
|
|
1237
1237
|
t.stopDown || (t.stopDown = Ae), super(t), this.on, this.once, this.un, this.shouldHandle_ = !1, this.downPx_ = null, this.downTimeout_, this.lastDragTime_, this.pointerType_, this.freehand_ = !1, this.source_ = e.source ? e.source : null, this.features_ = e.features ? e.features : null, this.snapTolerance_ = e.snapTolerance ? e.snapTolerance : 12, this.type_ = /** @type {import("../geom/Geometry.js").Type} */
|
|
1238
|
-
e.type, this.mode_ = Lt(this.type_), this.stopClick_ = !!e.stopClick, this.minPoints_ = e.minPoints ? e.minPoints : this.mode_ === "Polygon" ? 3 : 2, this.maxPoints_ = this.mode_ === "Circle" ? 2 : e.maxPoints ? e.maxPoints : 1 / 0, this.finishCondition_ = e.finishCondition ? e.finishCondition :
|
|
1238
|
+
e.type, this.mode_ = Lt(this.type_), this.stopClick_ = !!e.stopClick, this.minPoints_ = e.minPoints ? e.minPoints : this.mode_ === "Polygon" ? 3 : 2, this.maxPoints_ = this.mode_ === "Circle" ? 2 : e.maxPoints ? e.maxPoints : 1 / 0, this.finishCondition_ = e.finishCondition ? e.finishCondition : z, this.geometryLayout_ = e.geometryLayout ? e.geometryLayout : "XY";
|
|
1239
1239
|
let s = e.geometryFunction;
|
|
1240
1240
|
if (!s) {
|
|
1241
1241
|
const i = this.mode_;
|
|
1242
1242
|
if (i === "Circle")
|
|
1243
1243
|
s = function(n, r, o) {
|
|
1244
|
-
const a = r || new
|
|
1244
|
+
const a = r || new Qe([NaN, NaN]), h = C(n[0]), c = R(
|
|
1245
1245
|
h,
|
|
1246
1246
|
C(n[n.length - 1])
|
|
1247
1247
|
);
|
|
@@ -1253,7 +1253,7 @@ class Dt extends me {
|
|
|
1253
1253
|
};
|
|
1254
1254
|
else {
|
|
1255
1255
|
let n;
|
|
1256
|
-
i === "Point" ? n = U : i === "LineString" ? n =
|
|
1256
|
+
i === "Point" ? n = U : i === "LineString" ? n = J : i === "Polygon" && (n = je), s = function(r, o, a) {
|
|
1257
1257
|
return o ? i === "Polygon" ? r[0].length ? o.setCoordinates(
|
|
1258
1258
|
[r[0].concat([r[0][0]])],
|
|
1259
1259
|
this.geometryLayout_
|
|
@@ -1268,7 +1268,7 @@ class Dt extends me {
|
|
|
1268
1268
|
}),
|
|
1269
1269
|
style: e.style ? e.style : Mt(),
|
|
1270
1270
|
updateWhileInteracting: !0
|
|
1271
|
-
}), this.geometryName_ = e.geometryName, this.condition_ = e.condition ? e.condition :
|
|
1271
|
+
}), this.geometryName_ = e.geometryName, this.condition_ = e.condition ? e.condition : ze, this.freehandCondition_, e.freehand ? this.freehandCondition_ = _e : this.freehandCondition_ = e.freehandCondition ? e.freehandCondition : ve, this.traceCondition_, this.setTrace(e.trace || !1), this.traceState_ = { active: !1 }, this.traceSource_ = e.traceSource || e.source || null, this.addChangeListener(et.ACTIVE, this.updateState_);
|
|
1272
1272
|
}
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Toggle tracing mode or set a tracing condition.
|
|
@@ -1550,7 +1550,7 @@ class Dt extends me {
|
|
|
1550
1550
|
s ? (s.setFlatCoordinates(
|
|
1551
1551
|
t.getLayout(),
|
|
1552
1552
|
t.getFlatCoordinates()
|
|
1553
|
-
), s.changed()) : (s = new
|
|
1553
|
+
), s.changed()) : (s = new J(
|
|
1554
1554
|
t.getFlatCoordinates(),
|
|
1555
1555
|
t.getLayout()
|
|
1556
1556
|
), this.sketchLine_.setGeometry(s));
|
|
@@ -1564,7 +1564,7 @@ class Dt extends me {
|
|
|
1564
1564
|
const t = this.getMap().getView().getProjection(), s = Se(this.geometryLayout_);
|
|
1565
1565
|
for (; e.length < s; )
|
|
1566
1566
|
e.push(0);
|
|
1567
|
-
this.finishCoordinate_ = e, this.mode_ === "Point" ? this.sketchCoords_ = e.slice() : this.mode_ === "Polygon" ? (this.sketchCoords_ = [[e.slice(), e.slice()]], this.sketchLineCoords_ = this.sketchCoords_[0]) : this.sketchCoords_ = [e.slice(), e.slice()], this.sketchLineCoords_ && (this.sketchLine_ = new L(new
|
|
1567
|
+
this.finishCoordinate_ = e, this.mode_ === "Point" ? this.sketchCoords_ = e.slice() : this.mode_ === "Polygon" ? (this.sketchCoords_ = [[e.slice(), e.slice()]], this.sketchLineCoords_ = this.sketchCoords_[0]) : this.sketchCoords_ = [e.slice(), e.slice()], this.sketchLineCoords_ && (this.sketchLine_ = new L(new J(this.sketchLineCoords_)));
|
|
1568
1568
|
const i = this.geometryFunction_(
|
|
1569
1569
|
this.sketchCoords_,
|
|
1570
1570
|
void 0,
|
|
@@ -1836,7 +1836,7 @@ class Gt extends me {
|
|
|
1836
1836
|
/** @type {import("./Pointer.js").Options} */
|
|
1837
1837
|
e
|
|
1838
1838
|
);
|
|
1839
|
-
t.handleDownEvent || (t.handleDownEvent =
|
|
1839
|
+
t.handleDownEvent || (t.handleDownEvent = z), t.stopDown || (t.stopDown = Ae), super(t), this.on, this.once, this.un, this.source_ = e.source ? e.source : null, this.vertex_ = e.vertex !== void 0 ? e.vertex : !0, this.edge_ = e.edge !== void 0 ? e.edge : !0, this.features_ = e.features ? e.features : null, this.featuresListenerKeys_ = [], this.featureChangeListenerKeys_ = {}, this.indexedFeaturesExtents_ = {}, this.pendingFeatures_ = {}, this.pixelTolerance_ = e.pixelTolerance !== void 0 ? e.pixelTolerance : 10, this.rBush_ = new Ge(), this.GEOMETRY_SEGMENTERS_ = {
|
|
1840
1840
|
Point: this.segmentPointGeometry_.bind(this),
|
|
1841
1841
|
LineString: this.segmentLineStringGeometry_.bind(this),
|
|
1842
1842
|
LinearRing: this.segmentLineStringGeometry_.bind(this),
|
|
@@ -1998,13 +1998,13 @@ class Gt extends me {
|
|
|
1998
1998
|
) : this.source_ && s.push(
|
|
1999
1999
|
q(
|
|
2000
2000
|
this.source_,
|
|
2001
|
-
|
|
2001
|
+
Q.ADDFEATURE,
|
|
2002
2002
|
this.handleFeatureAdd_,
|
|
2003
2003
|
this
|
|
2004
2004
|
),
|
|
2005
2005
|
q(
|
|
2006
2006
|
this.source_,
|
|
2007
|
-
|
|
2007
|
+
Q.REMOVEFEATURE,
|
|
2008
2008
|
this.handleFeatureRemove_,
|
|
2009
2009
|
this
|
|
2010
2010
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as e, F as t, a as c, I as o, C as w, T as g } from "../../../Text-
|
|
1
|
+
import { S as e, F as t, a as c, I as o, C as w, T as g } from "../../../Text-D6oGbCdi.js";
|
|
2
2
|
const i = "data:image/svg+xml,%3csvg%20id='Layer_1'%20height='512'%20viewBox='0%200%2064%2064'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20data-name='Layer%201'%3e%3clinearGradient%20id='linear-gradient'%20gradientUnits='userSpaceOnUse'%20x1='63.568'%20x2='14.149'%20y1='60.512'%20y2='11.093'%3e%3cstop%20offset='0'%20stop-color='%23c21500'/%3e%3cstop%20offset='1'%20stop-color='%23f85032'/%3e%3c/linearGradient%3e%3cpath%20d='m48.19%2017.36a19.2%2019.2%200%200%200%20-17.18-9.33%2018.905%2018.905%200%200%200%20-17.94%2018.9c0%2012.74%2013%2024.93%2016.98%2028.36a2.969%202.969%200%200%200%203.9%200c5.77-4.97%2023.84-22.39%2014.24-37.93zm-16.19%2018.54a9.825%209.825%200%201%201%209.82-9.83%209.833%209.833%200%200%201%20-9.82%209.83z'%20fill='url(%23linear-gradient)'/%3e%3c/svg%3e", s = 0.5, h = new e({
|
|
3
3
|
fill: new t({
|
|
4
4
|
color: "rgba(255, 255, 255, 0.2)"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { VerticalButton as m, MiniButton as c } from "./styled.js";
|
|
3
|
-
import { I as e } from "../../IconButton-
|
|
3
|
+
import { I as e } from "../../IconButton-Cu_XEJB2.js";
|
|
4
4
|
const a = ({
|
|
5
5
|
variant: i = "default",
|
|
6
6
|
startIcon: f,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import n from "mapbox-gl";
|
|
2
|
-
import { L as b,
|
|
2
|
+
import { L as b, aS as u, au as y } from "../../../Source-Hf_SiWEW.js";
|
|
3
3
|
const v = ({
|
|
4
4
|
id: r = "map",
|
|
5
5
|
center: s,
|
|
@@ -30,13 +30,13 @@ const v = ({
|
|
|
30
30
|
const p = t.rotation;
|
|
31
31
|
return e.jumpTo({
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
center:
|
|
33
|
+
center: u(t.center),
|
|
34
34
|
zoom: t.zoom - 1,
|
|
35
35
|
bearing: -p * 180 / Math.PI,
|
|
36
36
|
animate: !1
|
|
37
37
|
}), e._frame && (e._frame.cancel(), e._frame = null), e._render(), a;
|
|
38
38
|
},
|
|
39
|
-
source: new
|
|
39
|
+
source: new y({})
|
|
40
40
|
});
|
|
41
41
|
return {
|
|
42
42
|
map: e,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "lodash";
|
|
2
|
-
import "../../../Source-
|
|
3
|
-
import { x as K, c as n, D as T, E as i, b as p, a as u, z as M, y as L, d as l, w as k, B as W, g as f, J as g, A as x, H as C } from "../../../ol-
|
|
2
|
+
import "../../../Source-Hf_SiWEW.js";
|
|
3
|
+
import { x as K, c as n, D as T, E as i, b as p, a as u, z as M, y as L, d as l, w as k, B as W, g as f, J as g, A as x, H as C } from "../../../ol-BUKJ1urU.js";
|
|
4
4
|
import "ol";
|
|
5
5
|
import "./kml.js";
|
|
6
6
|
import "../styled.js";
|
|
7
7
|
import "./wkt.js";
|
|
8
|
-
import "../../../Text-
|
|
8
|
+
import "../../../Text-D6oGbCdi.js";
|
|
9
9
|
export {
|
|
10
10
|
K as convertFeaturesToKML,
|
|
11
11
|
n as convertFeaturesToWKT,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from "react";
|
|
2
|
-
import { d as R } from "../../ol-
|
|
3
|
-
import { a as _ } from "../../Source-
|
|
2
|
+
import { d as R } from "../../ol-BUKJ1urU.js";
|
|
3
|
+
import { a as _ } from "../../Source-Hf_SiWEW.js";
|
|
4
4
|
function U({
|
|
5
5
|
id: l = "map",
|
|
6
6
|
layers: c = [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as r, F as t, a, C as s, I as c, T as f } from "../../Text-
|
|
2
|
-
import { s as d } from "../../styled-
|
|
1
|
+
import { S as r, F as t, a, C as s, I as c, T as f } from "../../Text-D6oGbCdi.js";
|
|
2
|
+
import { s as d } from "../../styled-CVWGE9ik.js";
|
|
3
3
|
const i = 0.4, g = d("div")(
|
|
4
4
|
({ theme: o, cssPosition: n = "absolute" }) => ({
|
|
5
5
|
position: n,
|
|
@@ -2,14 +2,15 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import k, { useState as O } from "react";
|
|
3
3
|
import { Close as m, Search as u } from "@mui/icons-material";
|
|
4
4
|
import { FilledInput as b, Input as R } from "@mui/material";
|
|
5
|
-
import { F as _, I as j
|
|
6
|
-
import { O as v } from "../../OutlinedInput-
|
|
7
|
-
import { I as
|
|
5
|
+
import { F as _, I as j } from "../../FormControl-ChTmxscy.js";
|
|
6
|
+
import { O as v } from "../../OutlinedInput-DJCHjkR3.js";
|
|
7
|
+
import { I as g } from "../../InputAdornment-6aeADcPO.js";
|
|
8
|
+
import { I as t } from "../../IconButton-Cu_XEJB2.js";
|
|
8
9
|
const z = ({
|
|
9
10
|
defaultValue: x = "",
|
|
10
|
-
label:
|
|
11
|
+
label: I = "Search",
|
|
11
12
|
placeholder: i,
|
|
12
|
-
disableLabel:
|
|
13
|
+
disableLabel: C = !1,
|
|
13
14
|
fullWidth: w = !1,
|
|
14
15
|
variant: l = "outlined",
|
|
15
16
|
size: A = "small",
|
|
@@ -36,13 +37,13 @@ const z = ({
|
|
|
36
37
|
h(""), a && a("");
|
|
37
38
|
};
|
|
38
39
|
return /* @__PURE__ */ s(_, { sx: D, size: A, variant: l, fullWidth: w, children: [
|
|
39
|
-
!
|
|
40
|
+
!C && /* @__PURE__ */ e(j, { htmlFor: "search-input", children: I }),
|
|
40
41
|
l === "outlined" && /* @__PURE__ */ e(
|
|
41
42
|
v,
|
|
42
43
|
{
|
|
43
44
|
id: "search-input",
|
|
44
45
|
type: "text",
|
|
45
|
-
label:
|
|
46
|
+
label: C ? "" : I,
|
|
46
47
|
value: r,
|
|
47
48
|
placeholder: i,
|
|
48
49
|
onChange: c,
|
|
@@ -141,7 +142,7 @@ const z = ({
|
|
|
141
142
|
}
|
|
142
143
|
)
|
|
143
144
|
] });
|
|
144
|
-
},
|
|
145
|
+
}, M = k.forwardRef(z);
|
|
145
146
|
export {
|
|
146
|
-
|
|
147
|
+
M as SearchInput
|
|
147
148
|
};
|