@hybridcore/ui 1.1.3 → 1.2.0
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-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
- package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
- package/dist/Checkbox-DP6_qp1v.js +469 -0
- package/dist/Collapse-9egEADkh.js +296 -0
- package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
- package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
- package/dist/FormControlLabel-j_atSYQA.js +827 -0
- package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
- package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
- package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
- package/dist/ListItem-BFDUUjHt.js +428 -0
- package/dist/MenuItem-BejUFNIP.js +233 -0
- package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
- package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
- package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
- package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
- package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/index.js +34 -0
- package/dist/components/collapsible-card/style.js +575 -0
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +191 -603
- 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 +7 -5
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- 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/index.js +2 -2
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/ol.js +2 -2
- package/dist/components/map/index.js +2 -2
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +89 -6
- package/dist/components/search-input/index.js +3 -3
- package/dist/components/template-property-filters/index.js +78 -0
- package/dist/components/template-property-filters/property.js +7019 -0
- package/dist/components/tree-select/index.js +14 -13
- package/dist/components/treeview-filter/index.js +263 -328
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
- package/dist/createSvgIcon-R_PakhKf.js +213 -0
- package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
- package/dist/index-C7W2wuUG.js +609 -0
- package/dist/index-DHnXB0CB.js +287 -0
- package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
- package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
- package/dist/main.d.ts +138 -0
- package/dist/main.js +1 -1
- package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
- package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
- package/dist/styled-CHMAYxVs.js +142 -0
- package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
- package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
- package/dist/useThemeProps-D4or2IlT.js +62 -0
- package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
- package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
- package/package.json +1 -1
- package/dist/Checkbox-DostZSwR.js +0 -673
- package/dist/index-Bw_m9ult.js +0 -1105
- package/dist/index-wW2D1aTG.js +0 -957
- package/dist/styled-C43K9x7T.js +0 -229
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { jsxs as h, Fragment as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import T from "lodash";
|
|
3
|
+
import v from "dayjs";
|
|
4
|
+
import { Typography as F, Chip as B, Dialog as S, DialogTitle as j, DialogContent as N, DialogActions as W, Button as w, InputAdornment as Y, Tooltip as O, Stack as _ } from "@mui/material";
|
|
5
|
+
import { Container as y, Values as E, MiniButton as G } from "./components/data-management/instance-form/components/composite-list/styled.js";
|
|
6
|
+
import { Add as H, LockOutlined as R } from "@mui/icons-material";
|
|
7
|
+
import $ from "./hooks/useToggle.js";
|
|
8
|
+
import { GeometryPicker as q } from "./components/geometry-picker/index.js";
|
|
9
|
+
import { PhoneInput as J } from "./components/phone-input/index.js";
|
|
10
|
+
import { DateTimePicker as K } from "./components/date-time-picker/index.js";
|
|
11
|
+
import { T as D, F as Q } from "./FormControlLabel-j_atSYQA.js";
|
|
12
|
+
import { B as x, C as U } from "./Checkbox-DP6_qp1v.js";
|
|
13
|
+
import { F as X, I as Z } from "./FormControl-Cj5nc-Nv.js";
|
|
14
|
+
import { S as M } from "./Select-BGt6e73I.js";
|
|
15
|
+
import { M as z } from "./MenuItem-BejUFNIP.js";
|
|
16
|
+
import { useState as ee } from "react";
|
|
17
|
+
function ne({
|
|
18
|
+
property: m,
|
|
19
|
+
mapboxAccessToken: e,
|
|
20
|
+
value: l,
|
|
21
|
+
variant: u = "standard",
|
|
22
|
+
size: o = "medium",
|
|
23
|
+
onChange: a
|
|
24
|
+
}) {
|
|
25
|
+
var V;
|
|
26
|
+
const s = $(!1), [d, C] = ee(), g = (c) => {
|
|
27
|
+
C(T.get(c, m.propertyId));
|
|
28
|
+
}, k = () => {
|
|
29
|
+
a([...l || [], d]), C(""), s.action.close();
|
|
30
|
+
}, A = (c) => () => {
|
|
31
|
+
if (l) {
|
|
32
|
+
let r = [...l];
|
|
33
|
+
r.splice(c, 1), a(r);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ h(P, { children: [
|
|
37
|
+
/* @__PURE__ */ h(y, { variant: u, children: [
|
|
38
|
+
/* @__PURE__ */ n(F, { children: m.name }),
|
|
39
|
+
/* @__PURE__ */ n(E, { children: T.isArray(l) && l.map((c, r) => {
|
|
40
|
+
var f, t;
|
|
41
|
+
return /* @__PURE__ */ n(
|
|
42
|
+
B,
|
|
43
|
+
{
|
|
44
|
+
label: ((t = (f = m.dataTypeInfo) == null ? void 0 : f.innerType) == null ? void 0 : t.type) === "date" ? v(c).format("DD/MM/YYYY HH:mm:ss") : c,
|
|
45
|
+
size: o,
|
|
46
|
+
onDelete: A(r)
|
|
47
|
+
},
|
|
48
|
+
r
|
|
49
|
+
);
|
|
50
|
+
}) }),
|
|
51
|
+
/* @__PURE__ */ n(
|
|
52
|
+
G,
|
|
53
|
+
{
|
|
54
|
+
startIcon: /* @__PURE__ */ n(H, {}),
|
|
55
|
+
variant: "text",
|
|
56
|
+
onClick: s.action.open,
|
|
57
|
+
children: "Add"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ h(
|
|
62
|
+
S,
|
|
63
|
+
{
|
|
64
|
+
open: s.state.isOpen,
|
|
65
|
+
onClose: s.action.close,
|
|
66
|
+
maxWidth: "sm",
|
|
67
|
+
fullWidth: !0,
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ n(j, { children: "Add List Value" }),
|
|
70
|
+
/* @__PURE__ */ n(N, { children: (V = m.dataTypeInfo) != null && V.innerType ? /* @__PURE__ */ n(
|
|
71
|
+
te,
|
|
72
|
+
{
|
|
73
|
+
mapboxAccessToken: e,
|
|
74
|
+
property: {
|
|
75
|
+
...m,
|
|
76
|
+
name: "Value",
|
|
77
|
+
type: m.dataTypeInfo.innerType.type
|
|
78
|
+
},
|
|
79
|
+
value: d,
|
|
80
|
+
onChange: g
|
|
81
|
+
}
|
|
82
|
+
) : null }),
|
|
83
|
+
/* @__PURE__ */ h(W, { children: [
|
|
84
|
+
/* @__PURE__ */ n(
|
|
85
|
+
w,
|
|
86
|
+
{
|
|
87
|
+
variant: "contained",
|
|
88
|
+
color: "inherit",
|
|
89
|
+
onClick: s.action.close,
|
|
90
|
+
children: "Cancel"
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ n(w, { variant: "contained", color: "primary", onClick: k, children: "Ok" })
|
|
94
|
+
] })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] });
|
|
99
|
+
}
|
|
100
|
+
function te({
|
|
101
|
+
mapboxAccessToken: m,
|
|
102
|
+
property: e,
|
|
103
|
+
value: l,
|
|
104
|
+
variant: u = "standard",
|
|
105
|
+
size: o = "medium",
|
|
106
|
+
disableMargin: a = !1,
|
|
107
|
+
defaultExtent: s,
|
|
108
|
+
// keyAuth,
|
|
109
|
+
onChange: d
|
|
110
|
+
}) {
|
|
111
|
+
var f;
|
|
112
|
+
const C = (t) => {
|
|
113
|
+
const I = t.target.value.split(",").map((p) => p.trimStart());
|
|
114
|
+
d({
|
|
115
|
+
[e.propertyId]: I
|
|
116
|
+
});
|
|
117
|
+
}, g = (t) => {
|
|
118
|
+
const { name: i, type: I, checked: p, value: L } = t.target;
|
|
119
|
+
let b = L;
|
|
120
|
+
e.type === "double" && (b = b.replace(",", "."), b = b.replace(/[^\d.-]+/g, "")), d({
|
|
121
|
+
[i]: I === "checkbox" ? p : b
|
|
122
|
+
});
|
|
123
|
+
}, k = (t) => {
|
|
124
|
+
d({
|
|
125
|
+
[e.propertyId]: t
|
|
126
|
+
});
|
|
127
|
+
}, A = (t) => {
|
|
128
|
+
d({
|
|
129
|
+
[e.propertyId]: t.target.value
|
|
130
|
+
});
|
|
131
|
+
}, V = (t) => (i) => {
|
|
132
|
+
d({
|
|
133
|
+
[t]: i
|
|
134
|
+
});
|
|
135
|
+
}, c = (t) => (i) => {
|
|
136
|
+
d({
|
|
137
|
+
[t]: i
|
|
138
|
+
});
|
|
139
|
+
}, r = (t) => (i) => {
|
|
140
|
+
d({
|
|
141
|
+
[t]: i
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
if ([
|
|
145
|
+
"string",
|
|
146
|
+
"integer",
|
|
147
|
+
"double",
|
|
148
|
+
"text",
|
|
149
|
+
"long",
|
|
150
|
+
"byte",
|
|
151
|
+
"bank-account"
|
|
152
|
+
].includes(e.type))
|
|
153
|
+
return /* @__PURE__ */ n(
|
|
154
|
+
D,
|
|
155
|
+
{
|
|
156
|
+
label: e.name,
|
|
157
|
+
name: e.propertyId,
|
|
158
|
+
value: l ?? e.defaultValue ?? "",
|
|
159
|
+
defaultValue: l,
|
|
160
|
+
onChange: g,
|
|
161
|
+
variant: u,
|
|
162
|
+
type: "text",
|
|
163
|
+
multiline: e.type === "text",
|
|
164
|
+
disabled: !e.editable,
|
|
165
|
+
fullWidth: !0,
|
|
166
|
+
sx: { mb: a ? 0 : 2 },
|
|
167
|
+
InputProps: {
|
|
168
|
+
size: o,
|
|
169
|
+
...e.privacyPreservationMethod === "ENCRYPTION" ? {
|
|
170
|
+
endAdornment: /* @__PURE__ */ n(Y, { position: "end", children: /* @__PURE__ */ n(O, { title: "Encrypted Field", children: /* @__PURE__ */ n(R, {}) }) })
|
|
171
|
+
} : {}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
if (e.type === "date") {
|
|
176
|
+
const t = l !== void 0 ? v(l).format() : "";
|
|
177
|
+
return /* @__PURE__ */ h(_, { mb: a ? 0 : 2, children: [
|
|
178
|
+
/* @__PURE__ */ n(F, { variant: "subtitle2", children: e.name }),
|
|
179
|
+
/* @__PURE__ */ n(
|
|
180
|
+
K,
|
|
181
|
+
{
|
|
182
|
+
value: t,
|
|
183
|
+
variant: u,
|
|
184
|
+
size: o,
|
|
185
|
+
name: e.propertyId,
|
|
186
|
+
onChange: k
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
] });
|
|
190
|
+
}
|
|
191
|
+
if (e.type === "list") {
|
|
192
|
+
let t = "";
|
|
193
|
+
return e.defaultValue && (t = T.isArray(e.defaultValue) ? l.join(", ") : e.defaultValue), l && (t = T.isArray(l) ? l.join(",") : l), /* @__PURE__ */ n(
|
|
194
|
+
D,
|
|
195
|
+
{
|
|
196
|
+
label: e.name,
|
|
197
|
+
name: e.propertyId,
|
|
198
|
+
value: t,
|
|
199
|
+
onChange: C,
|
|
200
|
+
variant: u,
|
|
201
|
+
disabled: !e.editable,
|
|
202
|
+
fullWidth: !0,
|
|
203
|
+
helperText: o === "small" ? null : "Add list values with the comma (,) separated string",
|
|
204
|
+
sx: { mb: a ? 0 : 2 },
|
|
205
|
+
InputProps: {
|
|
206
|
+
size: o,
|
|
207
|
+
placeholder: o === "small" ? "Add list values with the comma (,) separated string" : ""
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
if (e.type === "boolean")
|
|
213
|
+
return /* @__PURE__ */ n(x, { mb: a ? 0 : 2, children: /* @__PURE__ */ n(
|
|
214
|
+
Q,
|
|
215
|
+
{
|
|
216
|
+
control: /* @__PURE__ */ n(
|
|
217
|
+
U,
|
|
218
|
+
{
|
|
219
|
+
name: e.propertyId,
|
|
220
|
+
checked: !!l,
|
|
221
|
+
onChange: g,
|
|
222
|
+
size: o
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
label: e.name
|
|
226
|
+
}
|
|
227
|
+
) });
|
|
228
|
+
if (e.type === "enum") {
|
|
229
|
+
let t = [];
|
|
230
|
+
return (f = e.dataTypeInfo) != null && f.enumValues && (t = e.dataTypeInfo.enumValues), /* @__PURE__ */ h(
|
|
231
|
+
X,
|
|
232
|
+
{
|
|
233
|
+
fullWidth: !0,
|
|
234
|
+
variant: u,
|
|
235
|
+
sx: { mb: a ? 0 : 2 },
|
|
236
|
+
size: o,
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ n(Z, { id: `${e.propertyId}-label`, children: e.name }),
|
|
239
|
+
/* @__PURE__ */ n(
|
|
240
|
+
M,
|
|
241
|
+
{
|
|
242
|
+
label: e.name,
|
|
243
|
+
name: e.name,
|
|
244
|
+
labelId: `${e.propertyId}-label`,
|
|
245
|
+
id: e.propertyId,
|
|
246
|
+
value: l ?? "",
|
|
247
|
+
onChange: A,
|
|
248
|
+
children: t.map((i, I) => /* @__PURE__ */ n(z, { value: i, children: i }, I))
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
return e.type === "geometry" ? /* @__PURE__ */ n(x, { sx: { mb: a ? 0 : 2, width: "100%" }, children: /* @__PURE__ */ n(
|
|
256
|
+
q,
|
|
257
|
+
{
|
|
258
|
+
mapboxAccessToken: m,
|
|
259
|
+
label: e.name,
|
|
260
|
+
value: l ?? e.defaultValue ?? "",
|
|
261
|
+
defaultExtent: s,
|
|
262
|
+
onChange: V(e.propertyId)
|
|
263
|
+
}
|
|
264
|
+
) }) : e.type === "phone-number" ? /* @__PURE__ */ n(x, { sx: { mb: a ? 0 : 2, width: "100%" }, children: /* @__PURE__ */ n(
|
|
265
|
+
J,
|
|
266
|
+
{
|
|
267
|
+
label: e.name,
|
|
268
|
+
placeholder: "Enter phone number",
|
|
269
|
+
value: l ?? e.defaultValue ?? "",
|
|
270
|
+
onChange: c(e.propertyId)
|
|
271
|
+
}
|
|
272
|
+
) }) : e.type === "composite-list" ? /* @__PURE__ */ n(x, { sx: { mb: a ? 0 : 2, width: "100%" }, children: /* @__PURE__ */ n(
|
|
273
|
+
ne,
|
|
274
|
+
{
|
|
275
|
+
property: e,
|
|
276
|
+
value: l ?? e.defaultValue ?? "",
|
|
277
|
+
variant: u,
|
|
278
|
+
size: o,
|
|
279
|
+
mapboxAccessToken: m,
|
|
280
|
+
onChange: r(e.propertyId)
|
|
281
|
+
}
|
|
282
|
+
) }) : /* @__PURE__ */ n(P, {});
|
|
283
|
+
}
|
|
284
|
+
export {
|
|
285
|
+
ne as C,
|
|
286
|
+
te as V
|
|
287
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import o from "react";
|
|
3
3
|
import f from "./components/map/logic.js";
|
|
4
|
-
import
|
|
4
|
+
import a from "./components/map/styled.js";
|
|
5
5
|
import './assets/index.css';const l = (e, i) => {
|
|
6
6
|
var t, r;
|
|
7
7
|
const { refs: s, action: m } = f(e);
|
|
8
|
-
return o.useImperativeHandle(i, () => m), /* @__PURE__ */
|
|
9
|
-
|
|
8
|
+
return o.useImperativeHandle(i, () => m), /* @__PURE__ */ n(
|
|
9
|
+
a.Container,
|
|
10
10
|
{
|
|
11
11
|
sx: {
|
|
12
12
|
position: "relative",
|
|
13
13
|
cursor: ((t = e.options) == null ? void 0 : t.cursor) || "default"
|
|
14
14
|
},
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
|
|
15
|
+
children: /* @__PURE__ */ n(
|
|
16
|
+
a.Container,
|
|
17
17
|
{
|
|
18
18
|
id: e.id || "map",
|
|
19
19
|
ref: s.mapContainer,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { g as s } from "./chainPropTypes-BmidnkZm.js";
|
|
2
|
+
import { g as e } from "./styled-Wx2vv4j8.js";
|
|
3
|
+
function n(t) {
|
|
4
|
+
return e("MuiListItemIcon", t);
|
|
5
|
+
}
|
|
6
|
+
const o = s("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
7
|
+
function l(t) {
|
|
8
|
+
return e("MuiListItemText", t);
|
|
9
|
+
}
|
|
10
|
+
const r = s("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
11
|
+
export {
|
|
12
|
+
o as a,
|
|
13
|
+
l as b,
|
|
14
|
+
n as g,
|
|
15
|
+
r as l
|
|
16
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -844,6 +844,144 @@ declare namespace AUTH {
|
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
+
declare namespace FV {
|
|
848
|
+
type TemplateType = "EVENT" | "OBJECT" | "DOCUMENT";
|
|
849
|
+
|
|
850
|
+
interface SearchDTO {
|
|
851
|
+
keyword: string;
|
|
852
|
+
sortCriteria: "RELEVANCE" | "DATE" | "DISTANCE" | "RANDOM";
|
|
853
|
+
boundingBox: BoundingBox | null;
|
|
854
|
+
operator: "AND" | "OR" | "RANGE" | "NOT" | "EQUALS" | "FUZZY";
|
|
855
|
+
pageNumber: number;
|
|
856
|
+
rows: number;
|
|
857
|
+
minimalDetails: boolean;
|
|
858
|
+
spatialFilter: SpatialFilter | null;
|
|
859
|
+
timelineFilter: TimelineFilter | null;
|
|
860
|
+
templateFilters: TemplateFilter[];
|
|
861
|
+
templateType: TemplateType | null;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
interface HierarchySearchDTO {
|
|
865
|
+
templatesPerPage: number;
|
|
866
|
+
pageNumber: number;
|
|
867
|
+
rowsPerTemplate: number;
|
|
868
|
+
keyword: string;
|
|
869
|
+
sortCriteria: "RELEVANCE" | "DATE" | "DISTANCE" | "RANDOM";
|
|
870
|
+
boundingBox: BoundingBox | null;
|
|
871
|
+
operator: "AND" | "OR" | "RANGE" | "NOT" | "EQUALS" | "FUZZY";
|
|
872
|
+
spatialFilter: SpatialFilter | null;
|
|
873
|
+
templateFilters: HierarchyTemplateFilter[];
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
interface BoundingBox {
|
|
877
|
+
bottomLeft: BottomLeft;
|
|
878
|
+
topRight: TopRight;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
interface BottomLeft {
|
|
882
|
+
latitude: number;
|
|
883
|
+
longitude: number;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
interface TopRight {
|
|
887
|
+
latitude: number;
|
|
888
|
+
longitude: number;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
interface SpatialFilter {
|
|
892
|
+
wkt: string;
|
|
893
|
+
buffer: number;
|
|
894
|
+
geoFilterType: string;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
interface TimelineFilter {
|
|
898
|
+
start: string;
|
|
899
|
+
end: string;
|
|
900
|
+
rangeGap: string;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
interface TemplateFilter {
|
|
904
|
+
templateKey: string;
|
|
905
|
+
filterOperator: string;
|
|
906
|
+
filters: PropertyFilter[];
|
|
907
|
+
exclusionTemplateKeys: string[];
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
interface HierarchyTemplateFilter {
|
|
911
|
+
templateKey: string;
|
|
912
|
+
includeChildTemplates: boolean;
|
|
913
|
+
filterOperator: string;
|
|
914
|
+
filters: PropertyFilter[];
|
|
915
|
+
exclusionTemplateKeys: string[];
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
interface PropertyFilter {
|
|
919
|
+
fieldName: string;
|
|
920
|
+
value: PropertyFilterValue;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
interface PropertyFilterValue {
|
|
924
|
+
min?: string;
|
|
925
|
+
max?: string;
|
|
926
|
+
exact?: string;
|
|
927
|
+
list?: string[];
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
interface SearchResults {
|
|
931
|
+
totalResultCount: number;
|
|
932
|
+
totalPageCount: number;
|
|
933
|
+
results: SearchResult[];
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
interface SearchResult {
|
|
937
|
+
id: number;
|
|
938
|
+
title: string;
|
|
939
|
+
templateId: number;
|
|
940
|
+
variables: INSTANCE.GroupedVariables;
|
|
941
|
+
description?: string;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
interface Location {
|
|
945
|
+
kml: string;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
interface HierarchySearchResults {
|
|
949
|
+
totalTemplateCount: number;
|
|
950
|
+
totalPageCount: number;
|
|
951
|
+
instanceCountsByTemplateType: InstanceCountsByTemplateType;
|
|
952
|
+
results: HierarchySearchResult[];
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
interface InstanceCountsByTemplateType {
|
|
956
|
+
EVENT: number;
|
|
957
|
+
OBJECT: number;
|
|
958
|
+
DOCUMENT: number;
|
|
959
|
+
DICTIONARY_AGENT: number;
|
|
960
|
+
DICTIONARY_DEFINITION: number;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
interface HierarchySearchResultInstance {
|
|
964
|
+
id: number;
|
|
965
|
+
title: string;
|
|
966
|
+
description?: string;
|
|
967
|
+
variables: INSTANCE.GroupedVariables;
|
|
968
|
+
highlights?: {};
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
interface HierarchySearchResult {
|
|
972
|
+
totalInstanceCount: number;
|
|
973
|
+
templateId: number;
|
|
974
|
+
instances: HierarchySearchResultInstance[];
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
interface KeywordSearchDTO {
|
|
978
|
+
keyword: string;
|
|
979
|
+
instanceId: number;
|
|
980
|
+
pageNumber: number;
|
|
981
|
+
rows: number;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
847
985
|
declare namespace INSTANCE {
|
|
848
986
|
interface String {
|
|
849
987
|
[key: string | number]: string;
|
package/dist/main.js
CHANGED
|
@@ -13,7 +13,7 @@ import { IconButton as k } from "./components/icon-button/index.js";
|
|
|
13
13
|
import { KeyProtectionMenu as F } from "./components/key-protection/menu.js";
|
|
14
14
|
import { S as g } from "./utils-Bq0ye5vf.js";
|
|
15
15
|
import { Loading as w } from "./components/loading/index.js";
|
|
16
|
-
import { i as B } from "./index-
|
|
16
|
+
import { i as B } from "./index-JrtqxUdI.js";
|
|
17
17
|
import { PhoneInput as U } from "./components/phone-input/index.js";
|
|
18
18
|
import { SearchInput as W } from "./components/search-input/index.js";
|
|
19
19
|
import { TreeSelect as j } from "./components/tree-select/index.js";
|
|
@@ -4,7 +4,7 @@ import { f as Ci, A as va, B as ze, D as Ir, i as tt, T as di, l as Z, O as ui,
|
|
|
4
4
|
import { s as Fr, b as Ga, d as xn, r as Ya, e as jn, f as ds, g as Fs, h as Xa, i as Ds, j as Yi, k as Os, l as lt, m as Jn, n as Mt, o as Wa, p as En, t as Ua, S as _t, F as Ve, I as Ht, a as tn, T as Ri, R as Ba, C as Ka, q as za, u as Va, v as ce, w as Rt, x as en, y as nn, z as Bt, A as Kt, B as sn, D as rn, E as on, G as xe, H as gi, J as an, K as Dr, L as Ha, M as Za, N as qa, O as Ms } from "./Text-BT5kPHOo.js";
|
|
5
5
|
import { Feature as me } from "ol";
|
|
6
6
|
import { getNumberCoordinates as us, validate as Or, parse as Mr, getGeometries as Qn, findPlacemarkCoordinates as ja, build as Ja } from "./components/map/helpers/kml.js";
|
|
7
|
-
import {
|
|
7
|
+
import { defaultStyle as Nr, selectStyleFunction as Qa } from "./components/map/styled.js";
|
|
8
8
|
import { parse as $a, findCoordinate as tl } from "./components/map/helpers/wkt.js";
|
|
9
9
|
const gt = {
|
|
10
10
|
/**
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { a as o } from "./extends-C3382pL0.js";
|
|
2
|
+
import { i as g } from "./isHostComponent-kiaBvYVo.js";
|
|
3
|
+
import { c as v } from "./chainPropTypes-BmidnkZm.js";
|
|
4
|
+
function O(n, s, e) {
|
|
5
|
+
return n === void 0 || g(n) ? s : o({}, s, {
|
|
6
|
+
ownerState: o({}, s.ownerState, e)
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function p(n, s = []) {
|
|
10
|
+
if (n === void 0)
|
|
11
|
+
return {};
|
|
12
|
+
const e = {};
|
|
13
|
+
return Object.keys(n).filter((t) => t.match(/^on[A-Z]/) && typeof n[t] == "function" && !s.includes(t)).forEach((t) => {
|
|
14
|
+
e[t] = n[t];
|
|
15
|
+
}), e;
|
|
16
|
+
}
|
|
17
|
+
function y(n) {
|
|
18
|
+
if (n === void 0)
|
|
19
|
+
return {};
|
|
20
|
+
const s = {};
|
|
21
|
+
return Object.keys(n).filter((e) => !(e.match(/^on[A-Z]/) && typeof n[e] == "function")).forEach((e) => {
|
|
22
|
+
s[e] = n[e];
|
|
23
|
+
}), s;
|
|
24
|
+
}
|
|
25
|
+
function P(n) {
|
|
26
|
+
const {
|
|
27
|
+
getSlotProps: s,
|
|
28
|
+
additionalProps: e,
|
|
29
|
+
externalSlotProps: t,
|
|
30
|
+
externalForwardedProps: l,
|
|
31
|
+
className: u
|
|
32
|
+
} = n;
|
|
33
|
+
if (!s) {
|
|
34
|
+
const f = v(e == null ? void 0 : e.className, u, l == null ? void 0 : l.className, t == null ? void 0 : t.className), m = o({}, e == null ? void 0 : e.style, l == null ? void 0 : l.style, t == null ? void 0 : t.style), i = o({}, e, l, t);
|
|
35
|
+
return f.length > 0 && (i.className = f), Object.keys(m).length > 0 && (i.style = m), {
|
|
36
|
+
props: i,
|
|
37
|
+
internalRef: void 0
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const N = p(o({}, l, t)), h = y(t), S = y(l), r = s(N), d = v(r == null ? void 0 : r.className, e == null ? void 0 : e.className, u, l == null ? void 0 : l.className, t == null ? void 0 : t.className), c = o({}, r == null ? void 0 : r.style, e == null ? void 0 : e.style, l == null ? void 0 : l.style, t == null ? void 0 : t.style), a = o({}, r, e, S, h);
|
|
41
|
+
return d.length > 0 && (a.className = d), Object.keys(c).length > 0 && (a.style = c), {
|
|
42
|
+
props: a,
|
|
43
|
+
internalRef: r.ref
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function k(n, s, e) {
|
|
47
|
+
return typeof n == "function" ? n(s, e) : n;
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
O as a,
|
|
51
|
+
p as e,
|
|
52
|
+
P as m,
|
|
53
|
+
k as r
|
|
54
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { _ as E, a as l } from "./extends-C3382pL0.js";
|
|
2
|
+
import { a as W, i as z, s as I, c as q, g as B, b as G, e as H } from "./createTheme-oOCi1S_n.js";
|
|
3
|
+
const J = ["ownerState"], K = ["variants"], Q = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
4
|
+
function U(e) {
|
|
5
|
+
return Object.keys(e).length === 0;
|
|
6
|
+
}
|
|
7
|
+
function X(e) {
|
|
8
|
+
return typeof e == "string" && // 96 is one less than the char code
|
|
9
|
+
// for "a" so this is checking that
|
|
10
|
+
// it's a lowercase character
|
|
11
|
+
e.charCodeAt(0) > 96;
|
|
12
|
+
}
|
|
13
|
+
function A(e) {
|
|
14
|
+
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
15
|
+
}
|
|
16
|
+
const Y = W(), $ = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
17
|
+
function w({
|
|
18
|
+
defaultTheme: e,
|
|
19
|
+
theme: i,
|
|
20
|
+
themeId: o
|
|
21
|
+
}) {
|
|
22
|
+
return U(i) ? e : i[o] || i;
|
|
23
|
+
}
|
|
24
|
+
function Z(e) {
|
|
25
|
+
return e ? (i, o) => o[e] : null;
|
|
26
|
+
}
|
|
27
|
+
function x(e, i) {
|
|
28
|
+
let {
|
|
29
|
+
ownerState: o
|
|
30
|
+
} = i, m = E(i, J);
|
|
31
|
+
const u = typeof e == "function" ? e(l({
|
|
32
|
+
ownerState: o
|
|
33
|
+
}, m)) : e;
|
|
34
|
+
if (Array.isArray(u))
|
|
35
|
+
return u.flatMap((h) => x(h, l({
|
|
36
|
+
ownerState: o
|
|
37
|
+
}, m)));
|
|
38
|
+
if (u && typeof u == "object" && Array.isArray(u.variants)) {
|
|
39
|
+
const {
|
|
40
|
+
variants: h = []
|
|
41
|
+
} = u;
|
|
42
|
+
let d = E(u, K);
|
|
43
|
+
return h.forEach((t) => {
|
|
44
|
+
let s = !0;
|
|
45
|
+
typeof t.props == "function" ? s = t.props(l({
|
|
46
|
+
ownerState: o
|
|
47
|
+
}, m, o)) : Object.keys(t.props).forEach((p) => {
|
|
48
|
+
(o == null ? void 0 : o[p]) !== t.props[p] && m[p] !== t.props[p] && (s = !1);
|
|
49
|
+
}), s && (Array.isArray(d) || (d = [d]), d.push(typeof t.style == "function" ? t.style(l({
|
|
50
|
+
ownerState: o
|
|
51
|
+
}, m, o)) : t.style));
|
|
52
|
+
}), d;
|
|
53
|
+
}
|
|
54
|
+
return u;
|
|
55
|
+
}
|
|
56
|
+
function g(e = {}) {
|
|
57
|
+
const {
|
|
58
|
+
themeId: i,
|
|
59
|
+
defaultTheme: o = Y,
|
|
60
|
+
rootShouldForwardProp: m = A,
|
|
61
|
+
slotShouldForwardProp: u = A
|
|
62
|
+
} = e, h = (a) => G(l({}, a, {
|
|
63
|
+
theme: w(l({}, a, {
|
|
64
|
+
defaultTheme: o,
|
|
65
|
+
themeId: i
|
|
66
|
+
}))
|
|
67
|
+
}));
|
|
68
|
+
return h.__mui_systemSx = !0, (a, d = {}) => {
|
|
69
|
+
z(a, (n) => n.filter((f) => !(f != null && f.__mui_systemSx)));
|
|
70
|
+
const {
|
|
71
|
+
name: t,
|
|
72
|
+
slot: s,
|
|
73
|
+
skipVariantsResolver: p,
|
|
74
|
+
skipSx: b,
|
|
75
|
+
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
76
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
77
|
+
overridesResolver: F = Z($(s))
|
|
78
|
+
} = d, j = E(d, Q), T = p !== void 0 ? p : (
|
|
79
|
+
// TODO v6: remove `Root` in the next major release
|
|
80
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
81
|
+
s && s !== "Root" && s !== "root" || !1
|
|
82
|
+
), D = b || !1;
|
|
83
|
+
let k;
|
|
84
|
+
process.env.NODE_ENV !== "production" && t && (k = `${t}-${$(s || "Root")}`);
|
|
85
|
+
let v = A;
|
|
86
|
+
s === "Root" || s === "root" ? v = m : s ? v = u : X(a) && (v = void 0);
|
|
87
|
+
const O = I(a, l({
|
|
88
|
+
shouldForwardProp: v,
|
|
89
|
+
label: k
|
|
90
|
+
}, j)), C = (n) => typeof n == "function" && n.__emotion_real !== n || H(n) ? (f) => x(n, l({}, f, {
|
|
91
|
+
theme: w({
|
|
92
|
+
theme: f.theme,
|
|
93
|
+
defaultTheme: o,
|
|
94
|
+
themeId: i
|
|
95
|
+
})
|
|
96
|
+
})) : n, P = (n, ...f) => {
|
|
97
|
+
let R = C(n);
|
|
98
|
+
const y = f ? f.map(C) : [];
|
|
99
|
+
t && F && y.push((r) => {
|
|
100
|
+
const c = w(l({}, r, {
|
|
101
|
+
defaultTheme: o,
|
|
102
|
+
themeId: i
|
|
103
|
+
}));
|
|
104
|
+
if (!c.components || !c.components[t] || !c.components[t].styleOverrides)
|
|
105
|
+
return null;
|
|
106
|
+
const S = c.components[t].styleOverrides, _ = {};
|
|
107
|
+
return Object.entries(S).forEach(([L, M]) => {
|
|
108
|
+
_[L] = x(M, l({}, r, {
|
|
109
|
+
theme: c
|
|
110
|
+
}));
|
|
111
|
+
}), F(r, _);
|
|
112
|
+
}), t && !T && y.push((r) => {
|
|
113
|
+
var c;
|
|
114
|
+
const S = w(l({}, r, {
|
|
115
|
+
defaultTheme: o,
|
|
116
|
+
themeId: i
|
|
117
|
+
})), _ = S == null || (c = S.components) == null || (c = c[t]) == null ? void 0 : c.variants;
|
|
118
|
+
return x({
|
|
119
|
+
variants: _
|
|
120
|
+
}, l({}, r, {
|
|
121
|
+
theme: S
|
|
122
|
+
}));
|
|
123
|
+
}), D || y.push(h);
|
|
124
|
+
const V = y.length - f.length;
|
|
125
|
+
if (Array.isArray(n) && V > 0) {
|
|
126
|
+
const r = new Array(V).fill("");
|
|
127
|
+
R = [...n, ...r], R.raw = [...n.raw, ...r];
|
|
128
|
+
}
|
|
129
|
+
const N = O(R, ...y);
|
|
130
|
+
if (process.env.NODE_ENV !== "production") {
|
|
131
|
+
let r;
|
|
132
|
+
t && (r = `${t}${q(s || "")}`), r === void 0 && (r = `Styled(${B(a)})`), N.displayName = r;
|
|
133
|
+
}
|
|
134
|
+
return a.muiName && (N.muiName = a.muiName), N;
|
|
135
|
+
};
|
|
136
|
+
return O.withConfig && (P.withConfig = O.withConfig), P;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
const oe = g();
|
|
140
|
+
export {
|
|
141
|
+
oe as s
|
|
142
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as A, o as De, d as P, e as _e, f as K, c as Pe, g as Re, p as Ie, a as xe, q as Ve, t as ze, u as ne, b as Oe, v as Fe } from "./createTheme-oOCi1S_n.js";
|
|
2
2
|
import { _ as W, a as _ } from "./extends-C3382pL0.js";
|
|
3
3
|
var U = {}, $e = { exports: {} };
|
|
4
4
|
(function(e) {
|