@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
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { useThemeProps as N } from "@mui/material";
|
|
2
|
+
import { GridActionsCellItem as S } from "@mui/x-data-grid";
|
|
3
|
+
import G from "dayjs";
|
|
4
|
+
import Y from "lodash";
|
|
5
|
+
import { useMemo as D, createElement as h } from "react";
|
|
6
|
+
import { TemplateIcon as H, TitleButton as R } from "./styled.js";
|
|
7
|
+
const L = (T) => {
|
|
8
|
+
const C = N({ props: T, name: "HCInstanceTable" }), {
|
|
9
|
+
template: o,
|
|
10
|
+
selectedIds: y = [],
|
|
11
|
+
sortColumnsBy: m = "type",
|
|
12
|
+
actions: u,
|
|
13
|
+
actionsWidth: b = 50,
|
|
14
|
+
enableCheckboxSelection: v = !1,
|
|
15
|
+
fieldOptions: e,
|
|
16
|
+
onSelect: w,
|
|
17
|
+
onTitleClick: f
|
|
18
|
+
} = C, I = u !== void 0, g = b, M = {
|
|
19
|
+
...C,
|
|
20
|
+
selectedIds: y,
|
|
21
|
+
sortColumnsBy: m,
|
|
22
|
+
actionsWidth: b,
|
|
23
|
+
enableCheckboxSelection: v,
|
|
24
|
+
hasActions: I,
|
|
25
|
+
resolvedActionsWidth: g
|
|
26
|
+
}, A = D(() => {
|
|
27
|
+
var l, i, n, d, p, k;
|
|
28
|
+
return [
|
|
29
|
+
...(l = e == null ? void 0 : e.templateIcon) != null && l.hidden ? [] : [
|
|
30
|
+
{
|
|
31
|
+
field: "template",
|
|
32
|
+
headerName: "",
|
|
33
|
+
sortable: !1,
|
|
34
|
+
filterable: !1,
|
|
35
|
+
align: "center",
|
|
36
|
+
width: 30,
|
|
37
|
+
renderCell: ((i = e == null ? void 0 : e.templateIcon) == null ? void 0 : i.renderCell) ?? (() => o ? h(H, { src: o.icon }) : null)
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
...(n = e == null ? void 0 : e.title) != null && n.hidden ? [] : [
|
|
41
|
+
{
|
|
42
|
+
field: "title",
|
|
43
|
+
headerName: "Title",
|
|
44
|
+
width: 400,
|
|
45
|
+
sortable: !1,
|
|
46
|
+
filterable: !1,
|
|
47
|
+
valueGetter: (t) => t.row.title,
|
|
48
|
+
renderCell: ((d = e == null ? void 0 : e.title) == null ? void 0 : d.renderCell) ?? ((t) => {
|
|
49
|
+
const { row: r, value: a } = t;
|
|
50
|
+
return f ? h(
|
|
51
|
+
R,
|
|
52
|
+
{
|
|
53
|
+
onClick: () => f(r),
|
|
54
|
+
disableRipple: !0
|
|
55
|
+
},
|
|
56
|
+
a
|
|
57
|
+
) : a;
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
...(p = e == null ? void 0 : e.description) != null && p.hidden ? [] : [
|
|
62
|
+
{
|
|
63
|
+
field: "description",
|
|
64
|
+
headerName: "Description",
|
|
65
|
+
width: 400,
|
|
66
|
+
sortable: !1,
|
|
67
|
+
filterable: !1,
|
|
68
|
+
valueGetter: (t) => t.row.description,
|
|
69
|
+
renderCell: (k = e == null ? void 0 : e.description) == null ? void 0 : k.renderCell
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
...o ? o.properties.filter(
|
|
73
|
+
(t) => (!e || !e[t.propertyId] || !e[t.propertyId].hidden) && t.visible && t.type !== "geometry" && t.type !== "coordinate"
|
|
74
|
+
).sort(
|
|
75
|
+
(t, r) => m === "type" ? t.type < r.type ? -1 : t.type > r.type ? 1 : 0 : t.name < r.name ? -1 : 1
|
|
76
|
+
).map((t) => {
|
|
77
|
+
var a;
|
|
78
|
+
const r = `variables.${t.type}.${t.propertyId}`;
|
|
79
|
+
return {
|
|
80
|
+
field: r,
|
|
81
|
+
headerName: t.name,
|
|
82
|
+
sortable: !1,
|
|
83
|
+
filterable: !1,
|
|
84
|
+
width: 150,
|
|
85
|
+
valueFormatter: (s) => s.value && t.type === "date" ? G(s.value).format("DD/MM/YYYY HH:mm") : s.value,
|
|
86
|
+
valueGetter: (s) => Y.get(s.row, r),
|
|
87
|
+
renderCell: e && ((a = e[t.propertyId]) == null ? void 0 : a.renderCell)
|
|
88
|
+
};
|
|
89
|
+
}) : []
|
|
90
|
+
];
|
|
91
|
+
}, [o, e, f, m]);
|
|
92
|
+
return {
|
|
93
|
+
refs: {},
|
|
94
|
+
state: {
|
|
95
|
+
ownerState: M,
|
|
96
|
+
columns: A,
|
|
97
|
+
selectedIds: y,
|
|
98
|
+
enableCheckboxSelection: v,
|
|
99
|
+
hasActions: I,
|
|
100
|
+
resolvedActionsWidth: g
|
|
101
|
+
},
|
|
102
|
+
actions: { onRowSelectionModelChange: (c) => {
|
|
103
|
+
w && w(c);
|
|
104
|
+
}, getActions: (c) => u ? u.map((l, i) => {
|
|
105
|
+
const { showInMenu: n, ...d } = l, p = {
|
|
106
|
+
key: i,
|
|
107
|
+
...d,
|
|
108
|
+
...n ? { showInMenu: n } : {},
|
|
109
|
+
onClick: () => {
|
|
110
|
+
l.onClick && l.onClick(c);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
return h(
|
|
114
|
+
S,
|
|
115
|
+
p
|
|
116
|
+
);
|
|
117
|
+
}) : [] }
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
L as useInstanceTableLogic
|
|
122
|
+
};
|
|
@@ -1,13 +1,55 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { styled as n, Box as e, ButtonBase as s } from "@mui/material";
|
|
2
|
+
import { DataGrid as a } from "@mui/x-data-grid";
|
|
3
|
+
const o = (t) => t !== "ownerState", c = n(e, {
|
|
4
|
+
name: "HCInstanceTable",
|
|
5
|
+
slot: "root",
|
|
6
|
+
shouldForwardProp: o
|
|
7
|
+
})({
|
|
8
|
+
position: "relative"
|
|
9
|
+
}), d = n(a, {
|
|
10
|
+
name: "HCInstanceTable",
|
|
11
|
+
slot: "dataGrid",
|
|
12
|
+
shouldForwardProp: o
|
|
13
|
+
})(({ ownerState: t }) => ({
|
|
14
|
+
border: "none",
|
|
15
|
+
"& .MuiDataGrid-main": {
|
|
16
|
+
marginRight: t.hasActions ? `${t.resolvedActionsWidth}px` : 0
|
|
17
|
+
}
|
|
18
|
+
})), m = n(e, {
|
|
19
|
+
name: "HCInstanceTable",
|
|
20
|
+
slot: "actionsContainer",
|
|
21
|
+
shouldForwardProp: o
|
|
22
|
+
})(({ theme: t, ownerState: i }) => ({
|
|
23
|
+
position: "absolute",
|
|
24
|
+
top: 0,
|
|
25
|
+
right: 0,
|
|
26
|
+
width: i.resolvedActionsWidth,
|
|
27
|
+
background: t.palette.background.default
|
|
28
|
+
})), b = n(a, {
|
|
29
|
+
name: "HCInstanceTable",
|
|
30
|
+
slot: "actionsGrid"
|
|
31
|
+
})({
|
|
32
|
+
border: "none"
|
|
33
|
+
}), p = n("img", {
|
|
34
|
+
name: "HCInstanceTable",
|
|
35
|
+
slot: "templateIcon"
|
|
36
|
+
})({
|
|
37
|
+
display: "inline",
|
|
38
|
+
height: 20,
|
|
39
|
+
maxWidth: 20
|
|
40
|
+
}), h = n(s, {
|
|
41
|
+
name: "HCInstanceTable",
|
|
42
|
+
slot: "titleButton"
|
|
43
|
+
})({
|
|
44
|
+
"&:hover": {
|
|
45
|
+
textDecoration: "underline"
|
|
46
|
+
}
|
|
47
|
+
});
|
|
11
48
|
export {
|
|
12
|
-
|
|
49
|
+
m as ActionsContainer,
|
|
50
|
+
b as ActionsDataGrid,
|
|
51
|
+
d as InstanceDataGrid,
|
|
52
|
+
c as InstanceTableRoot,
|
|
53
|
+
p as TemplateIcon,
|
|
54
|
+
h as TitleButton
|
|
13
55
|
};
|
|
@@ -1,4 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Key as i, Add as h } from "@mui/icons-material";
|
|
3
|
+
import { useKeyProtectionMenuLogic as d } from "./logic.js";
|
|
4
|
+
import { KeyProtectionRoot as m, KeyIconButton as p, KeyMenu as y, KeyMenuItem as c, KeyMenuItemIcon as a } from "./styled.js";
|
|
5
|
+
const x = (r) => {
|
|
6
|
+
const { state: l, actions: o } = d(r), { ownerState: s, isOpen: n, anchorEl: u } = l;
|
|
7
|
+
return /* @__PURE__ */ t(m, { ownerState: s, sx: r.sx, children: [
|
|
8
|
+
/* @__PURE__ */ e(
|
|
9
|
+
p,
|
|
10
|
+
{
|
|
11
|
+
size: "large",
|
|
12
|
+
"aria-label": "account of current user",
|
|
13
|
+
onClick: o.open,
|
|
14
|
+
color: "inherit",
|
|
15
|
+
"aria-controls": n ? "key-protection-menu" : void 0,
|
|
16
|
+
"aria-haspopup": "true",
|
|
17
|
+
"aria-expanded": n ? "true" : void 0,
|
|
18
|
+
children: /* @__PURE__ */ e(i, {})
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ t(
|
|
22
|
+
y,
|
|
23
|
+
{
|
|
24
|
+
id: "key-protection-menu",
|
|
25
|
+
anchorEl: u,
|
|
26
|
+
keepMounted: !0,
|
|
27
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
28
|
+
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
29
|
+
open: n,
|
|
30
|
+
onClose: o.close,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ t(c, { onClick: o.handleRegister, children: [
|
|
33
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(h, { fontSize: "small" }) }),
|
|
34
|
+
"Register Key"
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ t(c, { onClick: o.handleAuth, children: [
|
|
37
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(i, { fontSize: "small" }) }),
|
|
38
|
+
"Authenticate"
|
|
39
|
+
] })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] });
|
|
44
|
+
};
|
|
2
45
|
export {
|
|
3
|
-
|
|
46
|
+
x as KeyProtectionMenu
|
|
4
47
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useThemeProps as u } from "@mui/material";
|
|
2
|
+
import p from "lodash";
|
|
3
|
+
import d from "../../hooks/useMenuLogic.js";
|
|
4
|
+
import { alert as r } from "../confirm/index.js";
|
|
5
|
+
import { r as m, a as f } from "../../utils-Cxu-fHjQ.js";
|
|
6
|
+
let o;
|
|
7
|
+
const E = (c) => {
|
|
8
|
+
const n = u({
|
|
9
|
+
props: c,
|
|
10
|
+
name: "HCKeyProtectionMenu"
|
|
11
|
+
}), { state: s, action: e } = d(), a = { ...n }, i = async () => {
|
|
12
|
+
e.close();
|
|
13
|
+
const t = await m();
|
|
14
|
+
t ? (o = p.get(t, "rawId"), new Uint8Array(o).toString(), r("Successfull", "Key successfully registered")) : r("Error!", "The key couldn't be registered!");
|
|
15
|
+
}, l = async () => {
|
|
16
|
+
e.close();
|
|
17
|
+
try {
|
|
18
|
+
await f(o), r("Successfull", "Successfully authenticated");
|
|
19
|
+
} catch (t) {
|
|
20
|
+
r("Error!", "Couldn't be authenticated!"), console.error(t);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
refs: {},
|
|
25
|
+
state: {
|
|
26
|
+
ownerState: a,
|
|
27
|
+
isOpen: s.isOpen,
|
|
28
|
+
anchorEl: s.anchorEl
|
|
29
|
+
},
|
|
30
|
+
actions: {
|
|
31
|
+
open: e.open,
|
|
32
|
+
close: e.close,
|
|
33
|
+
handleRegister: i,
|
|
34
|
+
handleAuth: l
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
E as useKeyProtectionMenuLogic
|
|
40
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { styled as o, IconButton as t, Menu as n, MenuItem as r, ListItemIcon as i } from "@mui/material";
|
|
2
|
+
const a = (e) => e !== "ownerState", s = o("div", {
|
|
3
|
+
name: "HCKeyProtectionMenu",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: a
|
|
6
|
+
})({
|
|
7
|
+
display: "inline-flex"
|
|
8
|
+
}), u = o(t, {
|
|
9
|
+
name: "HCKeyProtectionMenu",
|
|
10
|
+
slot: "iconButton"
|
|
11
|
+
})({}), l = o(n, {
|
|
12
|
+
name: "HCKeyProtectionMenu",
|
|
13
|
+
slot: "menu"
|
|
14
|
+
})(({ theme: e }) => ({
|
|
15
|
+
"& .MuiPaper-root": {
|
|
16
|
+
overflow: "visible",
|
|
17
|
+
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
|
|
18
|
+
marginTop: e.spacing(1.5),
|
|
19
|
+
"&:before": {
|
|
20
|
+
content: '""',
|
|
21
|
+
display: "block",
|
|
22
|
+
position: "absolute",
|
|
23
|
+
top: 0,
|
|
24
|
+
right: 14,
|
|
25
|
+
width: 10,
|
|
26
|
+
height: 10,
|
|
27
|
+
backgroundColor: e.palette.background.paper,
|
|
28
|
+
transform: "translateY(-50%) rotate(45deg)",
|
|
29
|
+
zIndex: 0
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
})), m = o(r, {
|
|
33
|
+
name: "HCKeyProtectionMenu",
|
|
34
|
+
slot: "menuItem"
|
|
35
|
+
})({}), p = o(i, {
|
|
36
|
+
name: "HCKeyProtectionMenu",
|
|
37
|
+
slot: "menuItemIcon"
|
|
38
|
+
})({});
|
|
39
|
+
export {
|
|
40
|
+
u as KeyIconButton,
|
|
41
|
+
l as KeyMenu,
|
|
42
|
+
m as KeyMenuItem,
|
|
43
|
+
p as KeyMenuItemIcon,
|
|
44
|
+
s as KeyProtectionRoot
|
|
45
|
+
};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { jsx as r
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useLoadingLogic as c } from "./logic.js";
|
|
3
|
+
import { LoadingRoot as d, LoadingIndicator as s } from "./styled.js";
|
|
4
|
+
const v = (o) => {
|
|
5
|
+
const { state: t } = c(o), { ownerState: i, indicatorColor: n } = t, {
|
|
6
|
+
show: a,
|
|
7
|
+
overlay: m,
|
|
8
|
+
overlayColor: g,
|
|
9
|
+
indicatorColor: C,
|
|
10
|
+
sx: e,
|
|
11
|
+
...l
|
|
12
|
+
} = o;
|
|
13
|
+
return a ? /* @__PURE__ */ r(d, { ownerState: i, sx: e, ...l, children: /* @__PURE__ */ r(s, { color: n }) }) : null;
|
|
14
|
+
};
|
|
9
15
|
export {
|
|
10
|
-
|
|
16
|
+
v as Loading
|
|
11
17
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useThemeProps as e } from "@mui/material";
|
|
2
|
+
const a = (t) => {
|
|
3
|
+
const o = e({ props: t, name: "HCLoading" }), { indicatorColor: r = "primary" } = o, s = {
|
|
4
|
+
...o,
|
|
5
|
+
indicatorColor: r
|
|
6
|
+
};
|
|
7
|
+
return {
|
|
8
|
+
refs: {},
|
|
9
|
+
state: { ownerState: s, indicatorColor: r },
|
|
10
|
+
actions: {}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
a as useLoadingLogic
|
|
15
|
+
};
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { styled as r, Box as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { styled as r, Box as n, CircularProgress as a } from "@mui/material";
|
|
2
|
+
const i = (o) => o !== "ownerState" && o !== "overlay" && o !== "overlayColor", s = r(n, {
|
|
3
|
+
name: "HCLoading",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: i
|
|
6
|
+
})(({ ownerState: o }) => {
|
|
7
|
+
const { overlayColor: e, position: t = "relative" } = o;
|
|
8
|
+
return {
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "100%",
|
|
11
|
+
display: "flex",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
backgroundColor: e || "rgba(255,255,255,0.15)",
|
|
15
|
+
...t === "fixed" || t === "absolute" ? {
|
|
16
|
+
top: 0,
|
|
17
|
+
left: 0,
|
|
18
|
+
zIndex: 99999
|
|
19
|
+
} : t === "relative" ? { position: "relative" } : {}
|
|
20
|
+
};
|
|
21
|
+
}), d = r(a, {
|
|
22
|
+
name: "HCLoading",
|
|
23
|
+
slot: "indicator"
|
|
24
|
+
})({});
|
|
19
25
|
export {
|
|
20
|
-
|
|
26
|
+
d as LoadingIndicator,
|
|
27
|
+
s as LoadingRoot
|
|
21
28
|
};
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import '../../assets/index2.css';const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
value: o,
|
|
16
|
-
placeholder: e,
|
|
17
|
-
onChange: (h) => {
|
|
18
|
-
t(String(h));
|
|
1
|
+
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import h from "react-phone-number-input";
|
|
3
|
+
import { usePhoneInputLogic as r } from "./logic.js";
|
|
4
|
+
import { PhoneInputRoot as u, PhoneInputLabel as c } from "./styled.js";
|
|
5
|
+
import '../../assets/index2.css';const x = (e) => {
|
|
6
|
+
const { state: o, actions: t } = r(e), { ownerState: l } = o;
|
|
7
|
+
return /* @__PURE__ */ a(u, { ownerState: l, sx: e.sx, children: [
|
|
8
|
+
e.label && /* @__PURE__ */ n(c, { children: e.label }),
|
|
9
|
+
/* @__PURE__ */ n(
|
|
10
|
+
h,
|
|
11
|
+
{
|
|
12
|
+
value: e.value,
|
|
13
|
+
placeholder: e.placeholder,
|
|
14
|
+
onChange: t.handleChange
|
|
19
15
|
}
|
|
20
|
-
|
|
21
|
-
)
|
|
22
|
-
|
|
16
|
+
)
|
|
17
|
+
] });
|
|
18
|
+
};
|
|
23
19
|
export {
|
|
24
|
-
|
|
20
|
+
x as PhoneInput
|
|
25
21
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useThemeProps as s } from "@mui/material";
|
|
2
|
+
const p = (e) => {
|
|
3
|
+
const n = s({ props: e, name: "HCPhoneInput" }), o = { ...n };
|
|
4
|
+
return {
|
|
5
|
+
refs: {},
|
|
6
|
+
state: { ownerState: o },
|
|
7
|
+
actions: { handleChange: (t) => {
|
|
8
|
+
n.onChange(String(t));
|
|
9
|
+
} }
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
p as usePhoneInputLogic
|
|
14
|
+
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { styled as n, Box as t } from "@mui/material";
|
|
2
|
-
const
|
|
1
|
+
import { styled as n, Box as t, Typography as e } from "@mui/material";
|
|
2
|
+
const p = (o) => o !== "ownerState", a = n(t, {
|
|
3
|
+
name: "HCPhoneInput",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: p
|
|
6
|
+
})(({ theme: o }) => ({
|
|
3
7
|
marginBottom: o.spacing(2),
|
|
4
8
|
"& input.PhoneInputInput": {
|
|
5
9
|
border: "none",
|
|
@@ -20,7 +24,11 @@ const i = n(t)(({ theme: o }) => ({
|
|
|
20
24
|
"& .PhoneInputCountryIcon--border": {
|
|
21
25
|
boxShadow: "none"
|
|
22
26
|
}
|
|
23
|
-
}))
|
|
27
|
+
})), d = n(e, {
|
|
28
|
+
name: "HCPhoneInput",
|
|
29
|
+
slot: "label"
|
|
30
|
+
})({});
|
|
24
31
|
export {
|
|
25
|
-
|
|
32
|
+
d as PhoneInputLabel,
|
|
33
|
+
a as PhoneInputRoot
|
|
26
34
|
};
|
|
@@ -5,7 +5,7 @@ import { DataGrid as fe } from "@mui/x-data-grid";
|
|
|
5
5
|
import { useState as G, useEffect as ue } from "react";
|
|
6
6
|
import h from "lodash";
|
|
7
7
|
import { d as ye } from "../../ol-yOE-NV0X.js";
|
|
8
|
-
import { V as he } from "../../index-
|
|
8
|
+
import { V as he } from "../../index-DPKUmQnz.js";
|
|
9
9
|
import { RangeSelector as me } from "../range-selector/index.js";
|
|
10
10
|
const $e = ({
|
|
11
11
|
open: F,
|
|
@@ -1,81 +1,73 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
[l]: Number(s)
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { DateRange as f } from "../date-range/index.js";
|
|
3
|
+
import { GeometryRange as C } from "../geometry-range/index.js";
|
|
4
|
+
import { NumberRange as p } from "../number-range/index.js";
|
|
5
|
+
import { StringRange as d } from "../string-range/index.js";
|
|
6
|
+
import { CompositeRow as h, CompositeCount as T, CompositeChild as D } from "../../styled.js";
|
|
7
|
+
const E = ["byte", "double", "integer", "long"], b = ["string", "text"], x = {
|
|
8
|
+
minValue: "",
|
|
9
|
+
maxValue: ""
|
|
10
|
+
}, I = {
|
|
11
|
+
listOfPossibleValues: []
|
|
12
|
+
}, v = { geometryArea: "" }, F = (s) => {
|
|
13
|
+
const { value: e, innerType: n, mapboxAccessToken: l, onChange: r, ...i } = s, a = (m) => {
|
|
14
|
+
r({ ...e, innerRandomInfo: m });
|
|
15
|
+
}, u = (m) => {
|
|
16
|
+
const { name: g, value: R } = m.target;
|
|
17
|
+
r({
|
|
18
|
+
...e,
|
|
19
|
+
[g]: Number(R)
|
|
21
20
|
});
|
|
22
21
|
};
|
|
23
|
-
let t =
|
|
24
|
-
return
|
|
25
|
-
|
|
22
|
+
let t = null;
|
|
23
|
+
return n && E.includes(n) ? t = /* @__PURE__ */ o(
|
|
24
|
+
p,
|
|
26
25
|
{
|
|
27
|
-
value:
|
|
28
|
-
minValue: "",
|
|
29
|
-
maxValue: ""
|
|
30
|
-
},
|
|
26
|
+
value: e.innerRandomInfo ?? x,
|
|
31
27
|
onChange: a
|
|
32
28
|
}
|
|
33
|
-
)
|
|
34
|
-
|
|
29
|
+
) : n && b.includes(n) ? t = /* @__PURE__ */ o(
|
|
30
|
+
d,
|
|
35
31
|
{
|
|
36
|
-
value:
|
|
37
|
-
listOfPossibleValues: []
|
|
38
|
-
},
|
|
32
|
+
value: e.innerRandomInfo ?? I,
|
|
39
33
|
onChange: a
|
|
40
34
|
}
|
|
41
|
-
)
|
|
35
|
+
) : n === "geometry" ? t = /* @__PURE__ */ o(
|
|
42
36
|
C,
|
|
43
37
|
{
|
|
44
|
-
mapboxAccessToken:
|
|
45
|
-
value:
|
|
46
|
-
geometryArea: ""
|
|
47
|
-
},
|
|
38
|
+
mapboxAccessToken: l,
|
|
39
|
+
value: e.innerRandomInfo ?? v,
|
|
48
40
|
onChange: a
|
|
49
41
|
}
|
|
50
|
-
)
|
|
51
|
-
|
|
42
|
+
) : n === "date" && (t = /* @__PURE__ */ o(
|
|
43
|
+
f,
|
|
52
44
|
{
|
|
53
|
-
value:
|
|
54
|
-
startDate:
|
|
45
|
+
value: e.innerRandomInfo ?? {
|
|
46
|
+
startDate: i.minDate || "",
|
|
55
47
|
startRange: 0,
|
|
56
48
|
endRange: 0,
|
|
57
49
|
timeUnit: "MINUTE",
|
|
58
50
|
limitForScenarioTimeRange: !1
|
|
59
51
|
},
|
|
60
52
|
onChange: a,
|
|
61
|
-
|
|
53
|
+
minDate: i.minDate || "",
|
|
54
|
+
maxDate: i.maxDate || ""
|
|
62
55
|
}
|
|
63
|
-
)), /* @__PURE__ */
|
|
56
|
+
)), /* @__PURE__ */ c(h, { children: [
|
|
64
57
|
/* @__PURE__ */ o(
|
|
65
|
-
|
|
58
|
+
T,
|
|
66
59
|
{
|
|
67
60
|
name: "count",
|
|
68
61
|
label: "Count",
|
|
69
62
|
type: "number",
|
|
70
63
|
size: "small",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
onChange: g
|
|
64
|
+
value: e.count,
|
|
65
|
+
onChange: u
|
|
74
66
|
}
|
|
75
67
|
),
|
|
76
|
-
/* @__PURE__ */ o(
|
|
68
|
+
/* @__PURE__ */ o(D, { children: t })
|
|
77
69
|
] });
|
|
78
|
-
}
|
|
70
|
+
};
|
|
79
71
|
export {
|
|
80
|
-
|
|
72
|
+
F as CompositeListRange
|
|
81
73
|
};
|