@hybridcore/ui 1.3.7 → 1.4.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/AccordionDetails-CGs6GZQK.js +454 -0
- package/dist/Add-eepk2WTM.js +379 -0
- package/dist/Box-BPyg-Ybm.js +70 -0
- package/dist/Button-DLwB_sKd.js +354 -0
- package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
- package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
- package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
- package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
- package/dist/Delete-OHEw9lDi.js +22 -0
- package/dist/DialogContent-CxOSq6h9.js +519 -0
- package/dist/FormControlLabel-D9KFjcIx.js +193 -0
- package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
- package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
- package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
- package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
- package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
- package/dist/ListItem-CZbZ91vp.js +428 -0
- package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
- package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
- package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
- package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
- package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
- package/dist/Tabs-BzelDJKy.js +787 -0
- package/dist/TextField-D87qTh1k.js +457 -0
- package/dist/Typography-Bm7PFqUT.js +176 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +20 -466
- package/dist/components/confirm/dialog.js +8 -149
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +191 -604
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/data-security-selectors/security-level/index.js +42 -40
- package/dist/components/date-time-picker/index.js +18 -19
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +16 -16
- package/dist/components/geometry-picker/geometry/index.js +35 -35
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/geometry-picker/kml/index.js +14 -14
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +38 -37
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
- package/dist/components/geometry-picker/parser/logic.js +33 -32
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styled.js +0 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
- package/dist/components/instance-form/components/variable/index.js +19 -0
- package/dist/components/instance-form/components/variables/index.js +40 -0
- package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
- package/dist/components/instance-hierarchy-table/index.js +58 -0
- package/dist/components/instance-hierarchy-table/styled.js +29 -0
- package/dist/components/instance-table/index.js +125 -0
- package/dist/components/instance-table/styled.js +13 -0
- package/dist/components/map/helpers/ol.js +1 -1
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/property-mapping/index.js +558 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
- package/dist/components/range-selector/components/date-range/index.js +9 -0
- package/dist/components/range-selector/components/geometry-range/index.js +26 -0
- package/dist/components/range-selector/components/number-range/index.js +86 -0
- package/dist/components/range-selector/components/string-range/index.js +31 -0
- package/dist/components/range-selector/index.js +59 -0
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/appleTabs.style.js +55 -0
- package/dist/components/tabs/index.js +93 -0
- package/dist/components/tabs/tab-panel.js +18 -0
- package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
- package/dist/components/template-form/components/property-list/index.js +72 -0
- package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
- package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
- package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
- package/dist/components/template-form/components/property-list/types.js +8 -0
- package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
- package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
- package/dist/components/template-form/components/select-icon/index.js +186 -0
- package/dist/components/template-form/components/select-icon/styled.js +76 -0
- package/dist/components/template-form/index.js +338 -0
- package/dist/components/template-property-filters/property.js +48 -46
- package/dist/components/tree-select/index.js +16 -15
- package/dist/components/tree-select/styled.js +2 -2
- package/dist/components/treeview-filter/index.js +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +18 -17
- package/dist/constants/index.js +41 -0
- package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
- package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
- package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
- package/dist/dialog-v5-nL5yy.js +153 -0
- package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
- package/dist/extendSxProp-qqdkfHzS.js +30 -0
- package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
- package/dist/index-C1fczHEW.js +11042 -0
- package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
- package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
- package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
- package/dist/main.d.ts +561 -78
- package/dist/main.js +157 -157
- package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
- package/dist/property-list-form-BfP9gzSo.js +391 -0
- package/dist/requirePropFactory-BjhhI-AW.js +18 -0
- package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
- package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
- package/dist/utils/ontology.js +52 -30
- package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
- package/package.json +2 -1
- package/dist/DialogContent-BCYm_d1s.js +0 -864
- package/dist/FormControlLabel-DENNVXWL.js +0 -639
- package/dist/Typography-Dg-ROiTA.js +0 -201
- package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
- package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
- package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
- package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as d, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { useState as w } from "react";
|
|
3
3
|
import m from "dayjs";
|
|
4
4
|
import { RadioButtonUnchecked as F, CheckCircle as S, KeyboardArrowUp as Y, KeyboardArrowDown as y } from "@mui/icons-material";
|
|
5
|
-
import { Typography as
|
|
5
|
+
import { Typography as g, FormLabel as D, FormGroup as L, Button as B } from "@mui/material";
|
|
6
6
|
import { DatePicker as I } from "@mui/x-date-pickers";
|
|
7
|
-
import { T as x
|
|
8
|
-
import { B as f
|
|
9
|
-
import { F as
|
|
10
|
-
|
|
7
|
+
import { T as x } from "../../TextField-D87qTh1k.js";
|
|
8
|
+
import { B as f } from "../../Box-BPyg-Ybm.js";
|
|
9
|
+
import { F as C } from "../../FormControlLabel-D9KFjcIx.js";
|
|
10
|
+
import { C as V } from "../../Checkbox-qy3cjvnb.js";
|
|
11
|
+
import { F as T } from "../../InputLabel-CWkW8NtU.js";
|
|
12
|
+
function E({
|
|
11
13
|
property: e,
|
|
12
|
-
value:
|
|
13
|
-
size:
|
|
14
|
+
value: a,
|
|
15
|
+
size: r = "medium",
|
|
14
16
|
onChange: h
|
|
15
17
|
}) {
|
|
16
|
-
var
|
|
18
|
+
var p;
|
|
17
19
|
const u = (o) => (n) => {
|
|
18
|
-
let l = { ...
|
|
20
|
+
let l = { ...a };
|
|
19
21
|
const i = n.target.type === "checkbox" ? n.target.checked : n.target.value;
|
|
20
22
|
l[o] = String(i), h({
|
|
21
23
|
[n.target.name]: l
|
|
22
24
|
});
|
|
23
25
|
}, M = (o) => {
|
|
24
26
|
var c;
|
|
25
|
-
const n = { ...
|
|
27
|
+
const n = { ...a }, { value: l, checked: i, name: s } = o.target;
|
|
26
28
|
i ? (n.list || (n.list = []), n.list.push(l)) : n.list = (c = n.list) == null ? void 0 : c.filter((P) => P !== l), h({
|
|
27
29
|
[s]: n
|
|
28
30
|
});
|
|
29
31
|
}, b = (o) => (n) => {
|
|
30
|
-
let l = { ...
|
|
32
|
+
let l = { ...a };
|
|
31
33
|
l[o] = m(n).format("YYYY-MM-DD"), h({
|
|
32
34
|
[e.propertyId]: l
|
|
33
35
|
});
|
|
34
36
|
};
|
|
35
37
|
if (["string", "text", "list"].includes(e.type))
|
|
36
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ t(
|
|
37
39
|
x,
|
|
38
40
|
{
|
|
39
41
|
label: e.name,
|
|
40
42
|
name: e.propertyId,
|
|
41
|
-
value:
|
|
42
|
-
size:
|
|
43
|
+
value: a.exact ?? e.defaultValue ?? "",
|
|
44
|
+
size: r,
|
|
43
45
|
onChange: u("exact"),
|
|
44
46
|
variant: "standard",
|
|
45
47
|
type: "text",
|
|
@@ -53,14 +55,14 @@ function R({
|
|
|
53
55
|
}
|
|
54
56
|
);
|
|
55
57
|
if (["integer", "double", "long", "byte"].includes(e.type))
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ d(f, { display: "flex", alignItems: "center", mb: 2, children: [
|
|
59
|
+
/* @__PURE__ */ t(
|
|
58
60
|
x,
|
|
59
61
|
{
|
|
60
62
|
label: `${e.name} (Min)`,
|
|
61
63
|
name: e.propertyId,
|
|
62
|
-
value:
|
|
63
|
-
size:
|
|
64
|
+
value: a.min ?? e.defaultValue ?? "",
|
|
65
|
+
size: r,
|
|
64
66
|
onChange: u("min"),
|
|
65
67
|
variant: "standard",
|
|
66
68
|
type: "number",
|
|
@@ -71,14 +73,14 @@ function R({
|
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ t(g, { px: 1, children: "-" }),
|
|
77
|
+
/* @__PURE__ */ t(
|
|
76
78
|
x,
|
|
77
79
|
{
|
|
78
80
|
label: `${e.name} (Max)`,
|
|
79
81
|
name: e.propertyId,
|
|
80
|
-
value:
|
|
81
|
-
size:
|
|
82
|
+
value: a.max ?? e.defaultValue ?? "",
|
|
83
|
+
size: r,
|
|
82
84
|
onChange: u("max"),
|
|
83
85
|
variant: "standard",
|
|
84
86
|
type: "number",
|
|
@@ -91,9 +93,9 @@ function R({
|
|
|
91
93
|
)
|
|
92
94
|
] });
|
|
93
95
|
if (e.type === "date") {
|
|
94
|
-
const o = "DD/MM/YYYY", n = "YYYY-MM-DD", l =
|
|
95
|
-
return /* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
const o = "DD/MM/YYYY", n = "YYYY-MM-DD", l = a.min && m(a.min, n, !0).isValid() ? m(a.min, n) : null, i = a.max && m(a.max, n, !0).isValid() ? m(a.max, n) : null;
|
|
97
|
+
return /* @__PURE__ */ d(f, { mb: 2, display: "flex", alignItems: "end", children: [
|
|
98
|
+
/* @__PURE__ */ t(
|
|
97
99
|
I,
|
|
98
100
|
{
|
|
99
101
|
label: `${e.name} (Min)`,
|
|
@@ -104,7 +106,7 @@ function R({
|
|
|
104
106
|
textField: {
|
|
105
107
|
variant: "standard",
|
|
106
108
|
name: e.propertyId,
|
|
107
|
-
size:
|
|
109
|
+
size: r,
|
|
108
110
|
fullWidth: !0,
|
|
109
111
|
InputLabelProps: { sx: { fontSize: 14 } },
|
|
110
112
|
inputProps: { sx: { fontSize: 14 } }
|
|
@@ -113,8 +115,8 @@ function R({
|
|
|
113
115
|
onChange: b("min")
|
|
114
116
|
}
|
|
115
117
|
),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ t(g, { px: 1, children: "-" }),
|
|
119
|
+
/* @__PURE__ */ t(
|
|
118
120
|
I,
|
|
119
121
|
{
|
|
120
122
|
label: `${e.name} (Max)`,
|
|
@@ -126,7 +128,7 @@ function R({
|
|
|
126
128
|
textField: {
|
|
127
129
|
variant: "standard",
|
|
128
130
|
name: e.propertyId,
|
|
129
|
-
size:
|
|
131
|
+
size: r,
|
|
130
132
|
fullWidth: !0,
|
|
131
133
|
InputLabelProps: { sx: { fontSize: 14 } },
|
|
132
134
|
inputProps: { sx: { fontSize: 14 } }
|
|
@@ -138,18 +140,18 @@ function R({
|
|
|
138
140
|
] });
|
|
139
141
|
}
|
|
140
142
|
if (e.type === "boolean")
|
|
141
|
-
return /* @__PURE__ */
|
|
143
|
+
return /* @__PURE__ */ t(f, { mb: 2, children: /* @__PURE__ */ t(
|
|
142
144
|
C,
|
|
143
145
|
{
|
|
144
146
|
label: e.name,
|
|
145
|
-
control: /* @__PURE__ */
|
|
147
|
+
control: /* @__PURE__ */ t(
|
|
146
148
|
V,
|
|
147
149
|
{
|
|
148
|
-
size:
|
|
150
|
+
size: r,
|
|
149
151
|
name: e.propertyId,
|
|
150
|
-
checked: !!
|
|
151
|
-
icon: /* @__PURE__ */
|
|
152
|
-
checkedIcon: /* @__PURE__ */
|
|
152
|
+
checked: !!a,
|
|
153
|
+
icon: /* @__PURE__ */ t(F, {}),
|
|
154
|
+
checkedIcon: /* @__PURE__ */ t(S, {}),
|
|
153
155
|
onChange: u("exact")
|
|
154
156
|
}
|
|
155
157
|
),
|
|
@@ -163,20 +165,20 @@ function R({
|
|
|
163
165
|
if (e.type === "enum") {
|
|
164
166
|
const [o, n] = w(!1), l = 10;
|
|
165
167
|
let i = [];
|
|
166
|
-
return (
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
168
|
+
return (p = e.dataTypeInfo) != null && p.enumValues && (i = e.dataTypeInfo.enumValues), /* @__PURE__ */ d(f, { mb: 2, children: [
|
|
169
|
+
/* @__PURE__ */ d(T, { fullWidth: !0, component: "fieldset", variant: "standard", children: [
|
|
170
|
+
/* @__PURE__ */ t(D, { component: "legend", sx: { mb: 1 }, children: e.name }),
|
|
171
|
+
/* @__PURE__ */ t(L, { children: i.slice(0, o ? 9999 : l).map((s, c) => /* @__PURE__ */ t(
|
|
170
172
|
C,
|
|
171
173
|
{
|
|
172
174
|
label: s,
|
|
173
|
-
control: /* @__PURE__ */
|
|
175
|
+
control: /* @__PURE__ */ t(
|
|
174
176
|
V,
|
|
175
177
|
{
|
|
176
178
|
name: e.propertyId,
|
|
177
179
|
value: s,
|
|
178
180
|
size: "small",
|
|
179
|
-
checked:
|
|
181
|
+
checked: a.list ? a.list.includes(s) : !1,
|
|
180
182
|
onChange: M
|
|
181
183
|
}
|
|
182
184
|
),
|
|
@@ -189,12 +191,12 @@ function R({
|
|
|
189
191
|
c
|
|
190
192
|
)) })
|
|
191
193
|
] }),
|
|
192
|
-
i.length > l && /* @__PURE__ */
|
|
194
|
+
i.length > l && /* @__PURE__ */ d(
|
|
193
195
|
B,
|
|
194
196
|
{
|
|
195
197
|
size: "small",
|
|
196
198
|
sx: { p: 0, textTransform: "none" },
|
|
197
|
-
endIcon: o ? /* @__PURE__ */
|
|
199
|
+
endIcon: o ? /* @__PURE__ */ t(Y, {}) : /* @__PURE__ */ t(y, {}),
|
|
198
200
|
onClick: () => n((s) => !s),
|
|
199
201
|
children: [
|
|
200
202
|
"Show ",
|
|
@@ -204,8 +206,8 @@ function R({
|
|
|
204
206
|
)
|
|
205
207
|
] });
|
|
206
208
|
}
|
|
207
|
-
return /* @__PURE__ */
|
|
209
|
+
return /* @__PURE__ */ t(k, {});
|
|
208
210
|
}
|
|
209
211
|
export {
|
|
210
|
-
|
|
212
|
+
E as default
|
|
211
213
|
};
|
|
@@ -3,44 +3,45 @@ import f from "react";
|
|
|
3
3
|
import { TreeViewFilter as b } from "../treeview-filter/index.js";
|
|
4
4
|
import r from "lodash";
|
|
5
5
|
import { flattenNestedTemplates as A } from "../../utils/ontology.js";
|
|
6
|
-
import { F as E, I as M } from "../../
|
|
7
|
-
import { S as j } from "../../Select-
|
|
8
|
-
import { M as B } from "../../MenuItem-
|
|
9
|
-
import { D as k, a as w, b as L
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
import { F as E, I as M } from "../../InputLabel-CWkW8NtU.js";
|
|
7
|
+
import { S as j } from "../../Select-ClaBvSqf.js";
|
|
8
|
+
import { M as B } from "../../MenuItem-D-INSvZa.js";
|
|
9
|
+
import { D as k, a as w, b as L } from "../../DialogContent-CxOSq6h9.js";
|
|
10
|
+
import { B as N } from "../../Button-DLwB_sKd.js";
|
|
11
|
+
const U = ({
|
|
12
|
+
data: m,
|
|
12
13
|
label: s,
|
|
13
14
|
selected: o,
|
|
14
15
|
disabled: C,
|
|
15
16
|
idKey: l = "id",
|
|
16
|
-
variant:
|
|
17
|
+
variant: h = "outlined",
|
|
17
18
|
onChange: S
|
|
18
19
|
}) => {
|
|
19
|
-
const [D,
|
|
20
|
+
const [D, u] = f.useState(!1), [I, g] = f.useState([]), i = A(m), a = f.useMemo(() => r.isArray(o) ? o.map(
|
|
20
21
|
(e) => i.find((t) => String(r.get(t, l)) === e)
|
|
21
22
|
) : [], [o, i]), v = (e, t) => {
|
|
22
23
|
S(e, t);
|
|
23
24
|
}, T = () => {
|
|
24
|
-
|
|
25
|
+
u(!0), O();
|
|
25
26
|
}, x = () => {
|
|
26
|
-
|
|
27
|
+
u(!1);
|
|
27
28
|
}, F = (e, t) => {
|
|
28
29
|
g(t);
|
|
29
30
|
}, O = () => {
|
|
30
|
-
|
|
31
|
+
const e = [];
|
|
31
32
|
a.length > 0 && a.forEach((t) => {
|
|
32
33
|
const d = t == null ? void 0 : t.parentKeys, W = i.filter((c) => d == null ? void 0 : d.includes(c.templateKey)).map((c) => String(r.get(c, l)));
|
|
33
34
|
e.push(...W);
|
|
34
35
|
}), g(e);
|
|
35
36
|
};
|
|
36
37
|
return /* @__PURE__ */ p(_, { children: [
|
|
37
|
-
/* @__PURE__ */ p(E, { variant:
|
|
38
|
+
/* @__PURE__ */ p(E, { variant: h, fullWidth: !0, children: [
|
|
38
39
|
s !== void 0 && /* @__PURE__ */ n(M, { id: "select-label", children: s }),
|
|
39
40
|
/* @__PURE__ */ n(
|
|
40
41
|
j,
|
|
41
42
|
{
|
|
42
43
|
label: s,
|
|
43
|
-
variant:
|
|
44
|
+
variant: h,
|
|
44
45
|
id: "select",
|
|
45
46
|
labelId: "select-label",
|
|
46
47
|
value: o,
|
|
@@ -54,7 +55,7 @@ const Q = ({
|
|
|
54
55
|
/* @__PURE__ */ n(w, { sx: { p: 1, pt: 2 }, children: /* @__PURE__ */ n(
|
|
55
56
|
b,
|
|
56
57
|
{
|
|
57
|
-
data:
|
|
58
|
+
data: m,
|
|
58
59
|
selected: r.isArray(o) ? o : void 0,
|
|
59
60
|
disabled: C,
|
|
60
61
|
expanded: I,
|
|
@@ -68,5 +69,5 @@ const Q = ({
|
|
|
68
69
|
] });
|
|
69
70
|
};
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
U as TreeSelect
|
|
72
73
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import Ne, { jsx as C, jsxs as it, Fragment as ut } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import Se from "react";
|
|
4
|
-
import { r as Oe, i as Te } from "../../createSvgIcon-
|
|
5
|
-
import { T as dt, D as ft, I as pt } from "../../index-
|
|
4
|
+
import { r as Oe, i as Te } from "../../createSvgIcon-Cfm1LkEe.js";
|
|
5
|
+
import { T as dt, D as ft, I as pt } from "../../index-B0JPwFI9.js";
|
|
6
6
|
import we from "lodash";
|
|
7
7
|
import { Box as ht } from "@mui/material";
|
|
8
8
|
import { SearchInput as mt } from "../search-input/index.js";
|
|
9
9
|
import { flattenNestedTemplates as xt } from "../../utils/ontology.js";
|
|
10
|
-
import { g as gt, u as bt, c as St, a as wt } from "../../useThemeProps-
|
|
11
|
-
import { P as o } from "../../createStyled-
|
|
12
|
-
import { g as yt, s as It } from "../../styled-
|
|
13
|
-
import { u as Ct } from "../../useTheme-
|
|
10
|
+
import { g as gt, u as bt, c as St, a as wt } from "../../useThemeProps-uYx_RkOH.js";
|
|
11
|
+
import { P as o } from "../../createStyled-BzvgQjjR.js";
|
|
12
|
+
import { g as yt, s as It } from "../../styled-LNCprp4n.js";
|
|
13
|
+
import { u as Ct } from "../../useTheme-DBiahn6p.js";
|
|
14
14
|
import { u as Nt } from "../../useId-BHG98T5I.js";
|
|
15
|
-
import { a as Ot } from "../../ButtonBase-
|
|
16
|
-
import { u as ye } from "../../
|
|
15
|
+
import { a as Ot } from "../../ButtonBase-D0qccOVb.js";
|
|
16
|
+
import { u as ye } from "../../useControlled-BYdyS7Pn.js";
|
|
17
17
|
import { o as Tt } from "../../ownerDocument-CUrv0DIK.js";
|
|
18
18
|
function Rt(d) {
|
|
19
19
|
return yt("MuiTreeView", d);
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { RadioButtonUnchecked as l, CheckCircle as
|
|
3
|
-
import { B as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { RadioButtonUnchecked as l, CheckCircle as p } from "@mui/icons-material";
|
|
3
|
+
import { B as s } from "../../../Box-BPyg-Ybm.js";
|
|
4
|
+
import { C as h } from "../../../Checkbox-qy3cjvnb.js";
|
|
5
|
+
import { T as d } from "../../../Typography-Bm7PFqUT.js";
|
|
6
|
+
function y({
|
|
6
7
|
id: t,
|
|
7
8
|
name: n,
|
|
8
|
-
checked:
|
|
9
|
-
disabled:
|
|
10
|
-
onChange:
|
|
9
|
+
checked: r,
|
|
10
|
+
disabled: i,
|
|
11
|
+
onChange: a
|
|
11
12
|
}) {
|
|
12
|
-
return /* @__PURE__ */ c(
|
|
13
|
-
/* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ c(s, { display: "flex", alignItems: "center", py: 1, children: [
|
|
14
|
+
/* @__PURE__ */ o(
|
|
14
15
|
h,
|
|
15
16
|
{
|
|
16
17
|
size: "small",
|
|
17
|
-
checked:
|
|
18
|
+
checked: r,
|
|
18
19
|
value: t,
|
|
19
20
|
sx: { padding: 0, marginRight: 0.85 },
|
|
20
|
-
icon: /* @__PURE__ */
|
|
21
|
-
checkedIcon: /* @__PURE__ */
|
|
22
|
-
disabled:
|
|
21
|
+
icon: /* @__PURE__ */ o(l, {}),
|
|
22
|
+
checkedIcon: /* @__PURE__ */ o(p, {}),
|
|
23
|
+
disabled: i,
|
|
23
24
|
onChange: (e) => {
|
|
24
|
-
|
|
25
|
+
a && a(e.target.value, e.target.checked);
|
|
25
26
|
},
|
|
26
27
|
onClick: (e) => {
|
|
27
28
|
e.stopPropagation();
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ o(
|
|
32
33
|
d,
|
|
33
34
|
{
|
|
34
35
|
variant: "subtitle1",
|
|
@@ -40,5 +41,5 @@ function k({
|
|
|
40
41
|
] });
|
|
41
42
|
}
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
y as default
|
|
44
45
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const o = [
|
|
2
|
+
"bank-account",
|
|
3
|
+
"boolean",
|
|
4
|
+
"byte",
|
|
5
|
+
"composite-list",
|
|
6
|
+
"coordinate",
|
|
7
|
+
"date",
|
|
8
|
+
"double",
|
|
9
|
+
"enum",
|
|
10
|
+
"geometry",
|
|
11
|
+
"integer",
|
|
12
|
+
"list",
|
|
13
|
+
"long",
|
|
14
|
+
"phone-number",
|
|
15
|
+
"string",
|
|
16
|
+
"text"
|
|
17
|
+
], t = [
|
|
18
|
+
"RANDOMIZATION",
|
|
19
|
+
"SWAPPING",
|
|
20
|
+
"ENCRYPTION"
|
|
21
|
+
], E = ["EVENT", "PROPERTY"], T = [
|
|
22
|
+
"TRIGGER",
|
|
23
|
+
"NER",
|
|
24
|
+
"POS",
|
|
25
|
+
"LOCATION_GEOMETRY",
|
|
26
|
+
"LOCATION_TEXT",
|
|
27
|
+
"DOCUMENT_HEADLINE",
|
|
28
|
+
"RELATION",
|
|
29
|
+
"TIME",
|
|
30
|
+
"DICTIONARY"
|
|
31
|
+
], O = ["ALL", "ORDER", "EXACT"], n = ["DMS", "MGRS", "LAT/LONG", "UTM"], R = "https://smartnavigator.blob.core.windows.net/ontology-icon/Event-4.svg", N = "https://smartnavigator.blob.core.windows.net/ontology-icon/object-4.svg";
|
|
32
|
+
export {
|
|
33
|
+
n as COORDINATE_FORMAT,
|
|
34
|
+
o as DATA_TYPES,
|
|
35
|
+
R as EVENT_FALLBACK_ICON,
|
|
36
|
+
N as OBJECT_FALLBACK_ICON,
|
|
37
|
+
t as PRIVACY_PRESERVATION_METHOD,
|
|
38
|
+
E as RECOGNITION_PROPERTY_OWNER_TYPE,
|
|
39
|
+
O as RECOGNITION_PROPERTY_TERM_MATCH,
|
|
40
|
+
T as RECOGNITION_PROPERTY_TYPE
|
|
41
|
+
};
|