@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
|
@@ -3,10 +3,11 @@ import f from "react";
|
|
|
3
3
|
import { TreeViewFilter as _ } from "../treeview-filter/index.js";
|
|
4
4
|
import r from "lodash";
|
|
5
5
|
import { flattenNestedTemplates as b } from "../../utils/ontology.js";
|
|
6
|
-
import { F as A, I as E } from "../../FormControl-
|
|
7
|
-
import { S as M
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { F as A, I as E } from "../../FormControl-Cj5nc-Nv.js";
|
|
7
|
+
import { S as M } from "../../Select-BGt6e73I.js";
|
|
8
|
+
import { M as j } from "../../MenuItem-BejUFNIP.js";
|
|
9
|
+
import { D as B, a as k, b as w, B as L } from "../../DialogContent-MMUsECN2.js";
|
|
10
|
+
const P = ({
|
|
10
11
|
data: h,
|
|
11
12
|
label: s,
|
|
12
13
|
selected: a,
|
|
@@ -14,22 +15,22 @@ const J = ({
|
|
|
14
15
|
idKey: o = "id",
|
|
15
16
|
onChange: v
|
|
16
17
|
}) => {
|
|
17
|
-
const [C,
|
|
18
|
-
(e) =>
|
|
19
|
-
) : [], [a,
|
|
18
|
+
const [C, m] = f.useState(!1), [S, u] = f.useState([]), i = b(h), l = f.useMemo(() => r.isArray(a) ? a.map(
|
|
19
|
+
(e) => i.find((t) => String(r.get(t, o)) === e)
|
|
20
|
+
) : [], [a, i]), D = (e, t) => {
|
|
20
21
|
v(e, t);
|
|
21
22
|
}, I = () => {
|
|
22
|
-
|
|
23
|
+
m(!0), F();
|
|
23
24
|
}, g = () => {
|
|
24
|
-
|
|
25
|
+
m(!1);
|
|
25
26
|
}, T = (e, t) => {
|
|
26
|
-
|
|
27
|
+
u(t);
|
|
27
28
|
}, F = () => {
|
|
28
29
|
let e = [];
|
|
29
30
|
l.length > 0 && l.forEach((t) => {
|
|
30
|
-
const
|
|
31
|
+
const d = t == null ? void 0 : t.parentKeys, O = i.filter((c) => d == null ? void 0 : d.includes(c.templateKey)).map((c) => String(r.get(c, o)));
|
|
31
32
|
e.push(...O);
|
|
32
|
-
}),
|
|
33
|
+
}), u(e);
|
|
33
34
|
};
|
|
34
35
|
return /* @__PURE__ */ p(W, { children: [
|
|
35
36
|
/* @__PURE__ */ p(A, { variant: "standard", fullWidth: !0, children: [
|
|
@@ -66,5 +67,5 @@ const J = ({
|
|
|
66
67
|
] });
|
|
67
68
|
};
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
P as TreeSelect
|
|
70
71
|
};
|