@hybridcore/ui 1.5.5 → 1.5.8
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/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/policy-list/index.js +0 -1
- package/dist/components/instance-form/components/variable/index.js +2 -2
- package/dist/components/instance-form/components/variables/index.js +45 -41
- package/dist/components/instance-form/index.js +293 -276
- package/dist/components/property-mapping/index.js +47 -48
- package/dist/components/treeview-filter/index.js +37 -34
- package/dist/index-D-mTkx9Q.js +349 -0
- package/dist/main.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-JgBxaIU2.js +0 -353
|
@@ -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-D-mTkx9Q.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "lodash";
|
|
9
9
|
import "dayjs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "lodash";
|
|
3
3
|
import "dayjs";
|
|
4
|
-
import { V as g } from "../../../../index-
|
|
4
|
+
import { V as g } from "../../../../index-D-mTkx9Q.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
10
|
import "../../../../TextField-BjFXx91l.js";
|
|
11
|
-
import "../../../../Box-SSMZuKnS.js";
|
|
12
11
|
import "../../../../FormControlLabel-BNT5EI0b.js";
|
|
13
12
|
import "../../../../Checkbox-B0P8LhCl.js";
|
|
14
13
|
import "../../../../InputLabel-ClDXuWBr.js";
|
|
15
14
|
import "../../../../Select-ush_fSWy.js";
|
|
16
15
|
import "../../../../MenuItem-Lcjh1XlV.js";
|
|
16
|
+
import "../../../../Box-SSMZuKnS.js";
|
|
17
17
|
export {
|
|
18
18
|
g as default
|
|
19
19
|
};
|
|
@@ -1,55 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { V as
|
|
4
|
-
import
|
|
5
|
-
import { Box as
|
|
6
|
-
function
|
|
1
|
+
import { jsx as u, Fragment as l, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import _ from "react";
|
|
3
|
+
import { V as b } from "../../../../index-D-mTkx9Q.js";
|
|
4
|
+
import g from "lodash";
|
|
5
|
+
import { Box as i } from "@mui/material";
|
|
6
|
+
function B({
|
|
7
7
|
template: n,
|
|
8
|
-
value:
|
|
9
|
-
mapboxAccessToken:
|
|
10
|
-
variant:
|
|
11
|
-
fieldOptions:
|
|
12
|
-
onChange:
|
|
8
|
+
value: t,
|
|
9
|
+
mapboxAccessToken: c,
|
|
10
|
+
variant: s = "outlined",
|
|
11
|
+
fieldOptions: e,
|
|
12
|
+
onChange: f
|
|
13
13
|
}) {
|
|
14
|
-
const
|
|
15
|
-
let r = n == null ? void 0 : n.properties.filter((
|
|
16
|
-
return r =
|
|
17
|
-
}, [n]),
|
|
18
|
-
const
|
|
14
|
+
const m = _.useMemo(() => {
|
|
15
|
+
let r = n == null ? void 0 : n.properties.filter((o) => o.visible);
|
|
16
|
+
return r = g.orderBy(r, "id"), r;
|
|
17
|
+
}, [n]), h = (r) => {
|
|
18
|
+
const o = {
|
|
19
19
|
target: {
|
|
20
|
-
value: { ...
|
|
20
|
+
value: { ...t, ...r }
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
f(o);
|
|
24
24
|
};
|
|
25
|
-
return n === void 0 ? /* @__PURE__ */
|
|
26
|
-
var
|
|
27
|
-
return
|
|
28
|
-
}).map((r,
|
|
29
|
-
var
|
|
30
|
-
const
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
25
|
+
return n === void 0 ? /* @__PURE__ */ u(l, {}) : /* @__PURE__ */ u(i, { display: "flex", flexDirection: "column", children: m.filter((r) => {
|
|
26
|
+
var o;
|
|
27
|
+
return e ? !((o = e[r.propertyId]) != null && o.hidden) : !0;
|
|
28
|
+
}).map((r, o) => {
|
|
29
|
+
var d, a;
|
|
30
|
+
const x = t ? t[r.propertyId] : "";
|
|
31
|
+
return /* @__PURE__ */ I(
|
|
32
|
+
i,
|
|
33
33
|
{
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
mb: 2,
|
|
35
|
+
...e && ((d = e[r.propertyId]) == null ? void 0 : d.order) && {
|
|
36
|
+
order: e[r.propertyId].order
|
|
36
37
|
},
|
|
37
|
-
children:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ u(
|
|
40
|
+
b,
|
|
41
|
+
{
|
|
42
|
+
property: r,
|
|
43
|
+
value: x,
|
|
44
|
+
mapboxAccessToken: c,
|
|
45
|
+
variant: s,
|
|
46
|
+
fieldOptions: e,
|
|
47
|
+
onChange: h
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
e && ((a = e[r.propertyId]) == null ? void 0 : a.helperText)
|
|
51
|
+
]
|
|
48
52
|
},
|
|
49
|
-
|
|
53
|
+
o
|
|
50
54
|
);
|
|
51
55
|
}) });
|
|
52
56
|
}
|
|
53
57
|
export {
|
|
54
|
-
|
|
58
|
+
B as default
|
|
55
59
|
};
|