@hybridcore/ui 1.6.0 → 1.6.1
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/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
- package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
- package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
- package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
- package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
- package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
- package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
- package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/collapsible-card/index.js +1 -1
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-security-selectors/security-level/index.js +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/geometry-picker/index.js +13 -12
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4222 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +8 -8
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
- package/dist/components/template-form/index.js +32 -33
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
- package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
- package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
- package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +734 -298
- package/dist/main.js +15 -15
- package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
- package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
- package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +1 -1
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/Button-CvE2gnly.js +0 -370
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { TreeItem as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import c from "lodash";
|
|
3
|
+
import { ItemLabel as u } from "../item-label/index.js";
|
|
4
|
+
import { TreeItem as g } from "../styled.js";
|
|
5
|
+
const k = (a) => {
|
|
6
|
+
const {
|
|
7
|
+
id: n,
|
|
8
|
+
idKey: r,
|
|
9
|
+
name: h,
|
|
10
|
+
checked: t,
|
|
11
|
+
disabled: b,
|
|
12
|
+
disabledIds: l,
|
|
13
|
+
onChange: o,
|
|
14
|
+
children: m,
|
|
15
|
+
defaultSelected: s
|
|
16
|
+
} = a;
|
|
17
|
+
return /* @__PURE__ */ i(
|
|
18
|
+
g,
|
|
18
19
|
{
|
|
19
|
-
itemId: String(
|
|
20
|
-
label: /* @__PURE__ */
|
|
21
|
-
|
|
20
|
+
itemId: String(n),
|
|
21
|
+
label: /* @__PURE__ */ i(
|
|
22
|
+
u,
|
|
22
23
|
{
|
|
23
|
-
id:
|
|
24
|
-
name:
|
|
25
|
-
checked:
|
|
26
|
-
disabled:
|
|
27
|
-
onChange:
|
|
24
|
+
id: n,
|
|
25
|
+
name: h,
|
|
26
|
+
checked: t,
|
|
27
|
+
disabled: b,
|
|
28
|
+
onChange: o
|
|
28
29
|
}
|
|
29
30
|
),
|
|
30
|
-
checked:
|
|
31
|
-
children:
|
|
32
|
-
const
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
31
|
+
checked: t,
|
|
32
|
+
children: m && m.map((e, p) => {
|
|
33
|
+
const d = String(c.get(e, r ?? "id")), I = c.includes(s, d), f = c.includes(l, d);
|
|
34
|
+
return /* @__PURE__ */ i(
|
|
35
|
+
k,
|
|
35
36
|
{
|
|
36
|
-
id:
|
|
37
|
-
idKey:
|
|
38
|
-
name:
|
|
39
|
-
checked:
|
|
40
|
-
disabled:
|
|
41
|
-
disabledIds:
|
|
42
|
-
children:
|
|
43
|
-
onChange:
|
|
44
|
-
defaultSelected:
|
|
37
|
+
id: d,
|
|
38
|
+
idKey: r,
|
|
39
|
+
name: e.name,
|
|
40
|
+
checked: I,
|
|
41
|
+
disabled: f,
|
|
42
|
+
disabledIds: l,
|
|
43
|
+
children: e.children,
|
|
44
|
+
onChange: o,
|
|
45
|
+
defaultSelected: s
|
|
45
46
|
},
|
|
46
|
-
|
|
47
|
+
p
|
|
47
48
|
);
|
|
48
49
|
})
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
|
-
}
|
|
52
|
+
};
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
k as Item
|
|
54
55
|
};
|
|
@@ -1,46 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
checked: i,
|
|
9
|
-
disabled: r,
|
|
10
|
-
onChange: a
|
|
11
|
-
}) {
|
|
12
|
-
return /* @__PURE__ */ l(s, { display: "flex", alignItems: "center", children: [
|
|
13
|
-
/* @__PURE__ */ e(
|
|
14
|
-
p,
|
|
1
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { ItemLabelRoot as c, ItemCheckbox as s, ItemText as d } from "../styled.js";
|
|
3
|
+
const b = (o) => {
|
|
4
|
+
const { id: n, name: l, checked: r, disabled: i, onChange: t } = o;
|
|
5
|
+
return /* @__PURE__ */ h(c, { children: [
|
|
6
|
+
/* @__PURE__ */ a(
|
|
7
|
+
s,
|
|
15
8
|
{
|
|
16
9
|
size: "small",
|
|
17
|
-
checked:
|
|
18
|
-
value:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"& .MuiSvgIcon-root": { width: 14, height: 14 }
|
|
10
|
+
checked: r,
|
|
11
|
+
value: n,
|
|
12
|
+
disabled: i,
|
|
13
|
+
onChange: (e) => {
|
|
14
|
+
t && t(e.target.value, e.target.checked);
|
|
23
15
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
a && a(t.target.value, t.target.checked);
|
|
27
|
-
},
|
|
28
|
-
onClick: (t) => {
|
|
29
|
-
t.stopPropagation();
|
|
16
|
+
onClick: (e) => {
|
|
17
|
+
e.stopPropagation();
|
|
30
18
|
}
|
|
31
19
|
}
|
|
32
20
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
h,
|
|
35
|
-
{
|
|
36
|
-
variant: "subtitle1",
|
|
37
|
-
fontSize: "12px",
|
|
38
|
-
sx: { userSelect: "none" },
|
|
39
|
-
children: n
|
|
40
|
-
}
|
|
41
|
-
)
|
|
21
|
+
/* @__PURE__ */ a(d, { variant: "subtitle1", children: l })
|
|
42
22
|
] });
|
|
43
|
-
}
|
|
23
|
+
};
|
|
44
24
|
export {
|
|
45
|
-
|
|
25
|
+
b as ItemLabel
|
|
46
26
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useThemeProps as d } from "@mui/material";
|
|
2
|
+
import f from "lodash";
|
|
3
|
+
import s from "react";
|
|
4
|
+
import { flattenNestedTemplates as h } from "../../utils/ontology.js";
|
|
5
|
+
const p = 500, R = (u) => {
|
|
6
|
+
const a = d({ props: u, name: "HCTreeViewFilter" }), { data: r, idKey: n = "id" } = a, [t, c] = s.useState(""), o = s.useRef(
|
|
7
|
+
null
|
|
8
|
+
), i = h(
|
|
9
|
+
r
|
|
10
|
+
), l = s.useMemo(() => t.length > 0 ? f.uniqBy(
|
|
11
|
+
i.filter((e) => e.name.toLowerCase().includes(t)),
|
|
12
|
+
(e) => e.id
|
|
13
|
+
) : r, [t, r, i]), m = { ...a, idKey: n };
|
|
14
|
+
return {
|
|
15
|
+
refs: {},
|
|
16
|
+
state: { ownerState: m, search: t, filteredData: l, idKey: n },
|
|
17
|
+
actions: { handleSearch: (e) => {
|
|
18
|
+
o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
19
|
+
c(e.toLowerCase());
|
|
20
|
+
}, p);
|
|
21
|
+
}, handleSubmit: (e) => {
|
|
22
|
+
c(e ? e.toLowerCase() : "");
|
|
23
|
+
} }
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
R as useTreeViewFilterLogic
|
|
28
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { styled as t, Box as o, Divider as n, alpha as a, Checkbox as l, Typography as s } from "@mui/material";
|
|
2
|
+
import { SimpleTreeView as m, TreeItem as p } from "@mui/x-tree-view";
|
|
3
|
+
const r = (e) => e !== "ownerState" && e !== "checked", T = t(o, {
|
|
4
|
+
name: "HCTreeViewFilter",
|
|
5
|
+
slot: "root",
|
|
6
|
+
shouldForwardProp: r
|
|
7
|
+
})({}), g = t(o, {
|
|
8
|
+
name: "HCTreeViewFilter",
|
|
9
|
+
slot: "searchContainer"
|
|
10
|
+
})(({ theme: e }) => ({
|
|
11
|
+
paddingLeft: e.spacing(1),
|
|
12
|
+
paddingRight: e.spacing(1),
|
|
13
|
+
paddingTop: e.spacing(0.75)
|
|
14
|
+
})), C = t(n, {
|
|
15
|
+
name: "HCTreeViewFilter",
|
|
16
|
+
slot: "divider"
|
|
17
|
+
})(({ theme: e }) => ({
|
|
18
|
+
marginTop: e.spacing(1.75)
|
|
19
|
+
})), b = t(m, {
|
|
20
|
+
name: "HCTreeViewFilter",
|
|
21
|
+
slot: "tree"
|
|
22
|
+
})({}), w = t(p, {
|
|
23
|
+
name: "HCTreeViewFilter",
|
|
24
|
+
slot: "treeItem",
|
|
25
|
+
shouldForwardProp: r
|
|
26
|
+
})(({ theme: e, checked: i }) => ({
|
|
27
|
+
position: "relative",
|
|
28
|
+
"& .MuiTreeItem-content": {
|
|
29
|
+
flexDirection: "row-reverse",
|
|
30
|
+
borderBottom: "1px solid",
|
|
31
|
+
borderBottomColor: e.palette.divider,
|
|
32
|
+
boxSizing: "border-box",
|
|
33
|
+
borderRadius: 0
|
|
34
|
+
},
|
|
35
|
+
"& .MuiTreeItem-iconContainer": {
|
|
36
|
+
transition: ".3s all",
|
|
37
|
+
"& svg": {
|
|
38
|
+
fontSize: "20px !important"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
...i && {
|
|
42
|
+
"&:before": {
|
|
43
|
+
content: '""',
|
|
44
|
+
position: "absolute",
|
|
45
|
+
left: 0,
|
|
46
|
+
top: 0,
|
|
47
|
+
bottom: 0,
|
|
48
|
+
right: 0,
|
|
49
|
+
borderLeft: "1px solid",
|
|
50
|
+
borderLeftColor: e.palette.primary.main,
|
|
51
|
+
backgroundColor: a(e.palette.primary.main, 0.1)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
})), x = t(o, {
|
|
55
|
+
name: "HCTreeViewFilter",
|
|
56
|
+
slot: "itemLabel"
|
|
57
|
+
})({
|
|
58
|
+
display: "flex",
|
|
59
|
+
alignItems: "center"
|
|
60
|
+
}), f = t(l, {
|
|
61
|
+
name: "HCTreeViewFilter",
|
|
62
|
+
slot: "itemCheckbox"
|
|
63
|
+
})(({ theme: e }) => ({
|
|
64
|
+
padding: 0,
|
|
65
|
+
marginRight: e.spacing(0.85),
|
|
66
|
+
"& .MuiSvgIcon-root": {
|
|
67
|
+
width: 14,
|
|
68
|
+
height: 14
|
|
69
|
+
}
|
|
70
|
+
})), h = t(s, {
|
|
71
|
+
name: "HCTreeViewFilter",
|
|
72
|
+
slot: "itemText"
|
|
73
|
+
})({
|
|
74
|
+
fontSize: "12px",
|
|
75
|
+
userSelect: "none"
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
f as ItemCheckbox,
|
|
79
|
+
x as ItemLabelRoot,
|
|
80
|
+
h as ItemText,
|
|
81
|
+
g as SearchContainer,
|
|
82
|
+
b as TreeContainer,
|
|
83
|
+
w as TreeItem,
|
|
84
|
+
C as TreeViewDivider,
|
|
85
|
+
T as TreeViewFilterRoot
|
|
86
|
+
};
|