@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.
Files changed (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. 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 a, Box as i } from "@mui/material";
2
- const d = a(i)(
3
- ({ theme: o, width: t }) => ({
4
- position: "absolute",
5
- top: 0,
6
- right: 0,
7
- width: t === void 0 ? o.spacing(10) : t,
8
- background: o.palette.background.default
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
- d as DataGridActions
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 { S as r } from "../../utils-Bq0ye5vf.js";
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
- r as default
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,4 +1,4 @@
1
- import { a as r, d as t, e as s, b as p, g as y, i, r as o } from "../../utils-Bq0ye5vf.js";
1
+ import { a as r, d as t, e as s, b as p, g as y, i, r as o } from "../../utils-Cxu-fHjQ.js";
2
2
  export {
3
3
  r as authenticate,
4
4
  t as decrypt,
@@ -1,11 +1,17 @@
1
- import { jsx as r, Fragment as m } from "react/jsx-runtime";
2
- import { CircularProgress as n } from "@mui/material";
3
- import { Container as e } from "./styled.js";
4
- const f = ({
5
- show: o,
6
- indicatorColor: i = "primary",
7
- ...t
8
- }) => o ? /* @__PURE__ */ r(e, { ...t, children: /* @__PURE__ */ r(n, { color: i }) }) : /* @__PURE__ */ r(m, {});
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
- f as Loading
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 o } from "@mui/material";
2
- const a = r(o, {
3
- shouldForwardProp: (e) => e !== "overlay" && e !== "overlayColor"
4
- })(({ overlayColor: e, position: t = "relative" }) => ({
5
- width: "100%",
6
- height: "100%",
7
- display: "flex",
8
- alignItems: "center",
9
- justifyContent: "center",
10
- backgroundColor: e || "rgba(255,255,255,0.15)",
11
- ...t === "fixed" || t === "absolute" ? {
12
- top: 0,
13
- left: 0,
14
- zIndex: 99999
15
- } : t === "relative" ? {
16
- position: "relative"
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
- a as Container
26
+ d as LoadingIndicator,
27
+ s as LoadingRoot
21
28
  };
@@ -1,25 +1,21 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import p from "react-phone-number-input";
3
- import { Typography as i } from "@mui/material";
4
- import { Container as a } from "./styled.js";
5
- import '../../assets/index2.css';const u = ({
6
- label: n,
7
- value: o,
8
- placeholder: e,
9
- onChange: t
10
- }) => /* @__PURE__ */ m(a, { children: [
11
- n && /* @__PURE__ */ r(i, { children: n }),
12
- /* @__PURE__ */ r(
13
- p,
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
- u as PhoneInput
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 i = n(t)(({ theme: o }) => ({
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
- i as Container
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-CcdvNlgr.js";
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 R, Fragment as h } from "react/jsx-runtime";
2
- import { Box as f, TextField as u } from "@mui/material";
3
- import x from "../number-range/index.js";
4
- import I from "../string-range/index.js";
5
- import C from "../geometry-range/index.js";
6
- import c from "../date-range/index.js";
7
- function j({
8
- value: n,
9
- innerType: e,
10
- mapboxAccessToken: d,
11
- onChange: i,
12
- ...r
13
- }) {
14
- const a = (m) => {
15
- i({ ...n, innerRandomInfo: m });
16
- }, g = (m) => {
17
- const { name: l, value: s } = m.target;
18
- i({
19
- ...n,
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 = /* @__PURE__ */ o(h, {});
24
- return (e === "byte" || e === "double" || e === "integer" || e === "long") && (t = /* @__PURE__ */ o(
25
- x,
22
+ let t = null;
23
+ return n && E.includes(n) ? t = /* @__PURE__ */ o(
24
+ p,
26
25
  {
27
- value: n.innerRandomInfo ? n.innerRandomInfo : {
28
- minValue: "",
29
- maxValue: ""
30
- },
26
+ value: e.innerRandomInfo ?? x,
31
27
  onChange: a
32
28
  }
33
- )), (e === "string" || e === "text") && (t = /* @__PURE__ */ o(
34
- I,
29
+ ) : n && b.includes(n) ? t = /* @__PURE__ */ o(
30
+ d,
35
31
  {
36
- value: n.innerRandomInfo ? n.innerRandomInfo : {
37
- listOfPossibleValues: []
38
- },
32
+ value: e.innerRandomInfo ?? I,
39
33
  onChange: a
40
34
  }
41
- )), e === "geometry" && (t = /* @__PURE__ */ o(
35
+ ) : n === "geometry" ? t = /* @__PURE__ */ o(
42
36
  C,
43
37
  {
44
- mapboxAccessToken: d,
45
- value: n.innerRandomInfo ? n.innerRandomInfo : {
46
- geometryArea: ""
47
- },
38
+ mapboxAccessToken: l,
39
+ value: e.innerRandomInfo ?? v,
48
40
  onChange: a
49
41
  }
50
- )), e === "date" && (t = /* @__PURE__ */ o(
51
- c,
42
+ ) : n === "date" && (t = /* @__PURE__ */ o(
43
+ f,
52
44
  {
53
- value: n.innerRandomInfo ? n.innerRandomInfo : {
54
- startDate: r.minDate || "",
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
- ...r
53
+ minDate: i.minDate || "",
54
+ maxDate: i.maxDate || ""
62
55
  }
63
- )), /* @__PURE__ */ R(f, { display: "flex", alignItems: "flex-end", width: "100%", children: [
56
+ )), /* @__PURE__ */ c(h, { children: [
64
57
  /* @__PURE__ */ o(
65
- u,
58
+ T,
66
59
  {
67
60
  name: "count",
68
61
  label: "Count",
69
62
  type: "number",
70
63
  size: "small",
71
- sx: { mr: 0.5, minWidth: 50, width: 85 },
72
- value: n.count,
73
- onChange: g
64
+ value: e.count,
65
+ onChange: u
74
66
  }
75
67
  ),
76
- /* @__PURE__ */ o(f, { flex: 1, maxWidth: 300, children: t })
68
+ /* @__PURE__ */ o(D, { children: t })
77
69
  ] });
78
- }
70
+ };
79
71
  export {
80
- j as default
72
+ F as CompositeListRange
81
73
  };