@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
@@ -1,26 +1,20 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { GeometryPicker as m } from "../../../geometry-picker/index.js";
3
- function l({
4
- value: e,
5
- mapboxAccessToken: r,
6
- onChange: o
7
- }) {
8
- const t = (a) => {
9
- o({
10
- geometryArea: a
11
- });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { GeometryPicker as s } from "../../../geometry-picker/index.js";
3
+ const l = (e) => {
4
+ const { value: o, mapboxAccessToken: r, onChange: a } = e, n = (t) => {
5
+ a({ geometryArea: t });
12
6
  };
13
- return /* @__PURE__ */ n(
14
- m,
7
+ return /* @__PURE__ */ m(
8
+ s,
15
9
  {
16
10
  mapboxAccessToken: r,
17
11
  label: "",
18
- value: e.geometryArea,
12
+ value: o.geometryArea,
19
13
  disableAddCoordinate: !0,
20
- onChange: t
14
+ onChange: n
21
15
  }
22
16
  );
23
- }
17
+ };
24
18
  export {
25
- l as default
19
+ l as GeometryRange
26
20
  };
@@ -1,89 +1,84 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { Box as r, TextField as u, FormControl as V, InputLabel as y, Select as C, MenuItem as h } from "@mui/material";
3
- import { useState as p } from "react";
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { TextField as C, FormControl as L, InputLabel as V, Select as M, MenuItem as d } from "@mui/material";
4
3
  import I from "lodash";
5
- function j({ value: t, onChange: i, variant: s = "outlined" }) {
6
- const [o, x] = p(
7
- "discreteList" in t && t.discreteList.length > 0 ? "list" : "range"
8
- ), [f, b] = p(
9
- "discreteList" in t ? t.discreteList.join(",") : ""
10
- ), g = (l) => {
11
- x(l.target.value), l.target.value === "list" ? i({ discreteList: [] }) : i({ minValue: "", maxValue: "" });
12
- }, L = (l) => {
13
- const a = l.target.value, d = I.trimEnd(a, ",").split(",").filter((m) => m).map((m) => Number(m.trimStart()));
14
- b(a), i({
15
- discreteList: d
16
- });
17
- }, c = (l) => {
18
- const { name: a, value: d } = l.target;
19
- i({
20
- ...t,
21
- [a]: Number(d)
4
+ import { useState as c } from "react";
5
+ import { NumberRow as h, NumberRangeRow as N, NumberInputMin as R, NumberInputMax as T, ModeColumn as y } from "../../styled.js";
6
+ const F = (p) => {
7
+ const { value: e, onChange: a, variant: n = "outlined" } = p, [m, g] = c(
8
+ "discreteList" in e && e.discreteList.length > 0 ? "list" : "range"
9
+ ), [b, x] = c(
10
+ "discreteList" in e ? e.discreteList.join(",") : ""
11
+ ), v = (l) => {
12
+ g(l.target.value), l.target.value === "list" ? a({ discreteList: [] }) : a({ minValue: "", maxValue: "" });
13
+ }, f = (l) => {
14
+ const i = l.target.value, s = I.trimEnd(i, ",").split(",").filter((u) => u).map((u) => Number(u.trimStart()));
15
+ x(i), a({ discreteList: s });
16
+ }, o = (l) => {
17
+ const { name: i, value: s } = l.target;
18
+ a({
19
+ ...e,
20
+ [i]: Number(s)
22
21
  });
23
22
  };
24
- return /* @__PURE__ */ n(r, { display: "flex", width: "100%", children: [
25
- /* @__PURE__ */ e(r, { flex: 2, children: o === "list" ? /* @__PURE__ */ e(
26
- u,
23
+ return /* @__PURE__ */ r(h, { children: [
24
+ m === "list" ? /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(
25
+ C,
27
26
  {
28
27
  size: "small",
29
28
  fullWidth: !0,
30
- variant: s,
31
- value: f,
32
- onChange: L,
33
- inputProps: {
34
- placeholder: "Comma separated number list"
35
- },
29
+ variant: n,
30
+ value: b,
31
+ onChange: f,
32
+ inputProps: { placeholder: "Comma separated number list" },
36
33
  title: "Add list values with the comma (,) separated numbers"
37
34
  }
38
- ) : /* @__PURE__ */ n(r, { display: "flex", width: "100%", children: [
39
- /* @__PURE__ */ e(
40
- u,
35
+ ) }) : /* @__PURE__ */ r(N, { children: [
36
+ /* @__PURE__ */ t(
37
+ R,
41
38
  {
42
39
  name: "minValue",
43
40
  label: "Min",
44
41
  type: "number",
45
42
  size: "small",
46
- variant: s,
43
+ variant: n,
47
44
  fullWidth: !0,
48
- sx: { mr: 0.25 },
49
- value: t.minValue,
50
- onChange: c
45
+ value: "minValue" in e ? e.minValue : "",
46
+ onChange: o
51
47
  }
52
48
  ),
53
- /* @__PURE__ */ e(
54
- u,
49
+ /* @__PURE__ */ t(
50
+ T,
55
51
  {
56
52
  name: "maxValue",
57
53
  label: "Max",
58
54
  type: "number",
59
55
  size: "small",
60
- variant: s,
56
+ variant: n,
61
57
  fullWidth: !0,
62
- sx: { ml: 0.25 },
63
- value: t.maxValue,
64
- onChange: c
58
+ value: "maxValue" in e ? e.maxValue : "",
59
+ onChange: o
65
60
  }
66
61
  )
67
- ] }) }),
68
- /* @__PURE__ */ e(r, { flex: 1, ml: 0.5, children: /* @__PURE__ */ n(V, { fullWidth: !0, size: "small", variant: s, children: [
69
- /* @__PURE__ */ e(y, { id: "mode-label", children: "Input Type" }),
70
- /* @__PURE__ */ n(
71
- C,
62
+ ] }),
63
+ /* @__PURE__ */ t(y, { children: /* @__PURE__ */ r(L, { fullWidth: !0, size: "small", variant: n, children: [
64
+ /* @__PURE__ */ t(V, { id: "mode-label", children: "Input Type" }),
65
+ /* @__PURE__ */ r(
66
+ M,
72
67
  {
73
68
  labelId: "mode-label",
74
69
  id: "mode",
75
- value: o,
70
+ value: m,
76
71
  label: "Input Type",
77
- onChange: g,
72
+ onChange: v,
78
73
  children: [
79
- /* @__PURE__ */ e(h, { value: "range", children: "Range" }),
80
- /* @__PURE__ */ e(h, { value: "list", children: "Discrete List" })
74
+ /* @__PURE__ */ t(d, { value: "range", children: "Range" }),
75
+ /* @__PURE__ */ t(d, { value: "list", children: "Discrete List" })
81
76
  ]
82
77
  }
83
78
  )
84
79
  ] }) })
85
80
  ] });
86
- }
81
+ };
87
82
  export {
88
- j as default
83
+ F as NumberRange
89
84
  };
@@ -1,24 +1,22 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { TextField as d } from "@mui/material";
3
- import { useState as p } from "react";
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { TextField as u } from "@mui/material";
4
3
  import h from "lodash";
5
- function C({ value: i, onChange: l, variant: a = "outlined" }) {
4
+ import { useState as c } from "react";
5
+ const L = (i) => {
6
6
  var e;
7
- const [r, o] = p(
8
- ((e = i.listOfPossibleValues) == null ? void 0 : e.join(",")) || ""
7
+ const { value: a, onChange: l, variant: r = "outlined" } = i, [n, o] = c(
8
+ ((e = a.listOfPossibleValues) == null ? void 0 : e.join(",")) || ""
9
9
  );
10
- return /* @__PURE__ */ u(
11
- d,
10
+ return /* @__PURE__ */ p(
11
+ u,
12
12
  {
13
13
  size: "small",
14
14
  fullWidth: !0,
15
- variant: a,
16
- value: r,
17
- onChange: (n) => {
18
- const s = n.target.value, m = h.trimEnd(s, ",").split(",").filter((t) => t).map((t) => t.trimStart());
19
- o(s), l({
20
- listOfPossibleValues: m
21
- });
15
+ variant: r,
16
+ value: n,
17
+ onChange: (m) => {
18
+ const s = m.target.value, d = h.trimEnd(s, ",").split(",").filter((t) => t).map((t) => t.trimStart());
19
+ o(s), l({ listOfPossibleValues: d });
22
20
  },
23
21
  inputProps: {
24
22
  placeholder: "Add list values with the comma (,) separated string"
@@ -26,7 +24,7 @@ function C({ value: i, onChange: l, variant: a = "outlined" }) {
26
24
  title: "Add list values with the comma (,) separated string"
27
25
  }
28
26
  );
29
- }
27
+ };
30
28
  export {
31
- C as default
29
+ L as StringRange
32
30
  };
@@ -1,59 +1,65 @@
1
- import { jsx as t, Fragment as a } from "react/jsx-runtime";
2
- import n from "lodash";
3
- import f from "./components/composite-list-range/index.js";
4
- import g from "./components/date-range/index.js";
5
- import u from "./components/geometry-range/index.js";
6
- import l from "./components/number-range/index.js";
7
- import s from "./components/string-range/index.js";
8
- const V = ({
9
- type: r,
10
- value: e,
11
- mapboxAccessToken: o,
12
- onChange: i,
13
- ...m
14
- }) => r === "byte" || r === "double" || r === "integer" || r === "long" ? /* @__PURE__ */ t(
15
- l,
16
- {
17
- value: e || { minValue: "", maxValue: "" },
18
- onChange: i
19
- }
20
- ) : r === "string" || r === "text" ? /* @__PURE__ */ t(
21
- s,
22
- {
23
- value: e || { listOfPossibleValues: [] },
24
- onChange: i
25
- }
26
- ) : r === "geometry" ? /* @__PURE__ */ t(
27
- u,
28
- {
29
- value: e || { geometryArea: "" },
30
- mapboxAccessToken: o,
31
- onChange: i
32
- }
33
- ) : r === "date" ? /* @__PURE__ */ t(
34
- g,
35
- {
36
- value: e || {
37
- startDate: n.get(m, "minDate", ""),
38
- timeUnit: "MINUTE",
39
- endRange: 0,
40
- startRange: 0,
41
- limitForScenarioTimeRange: !1
42
- },
43
- onChange: i,
44
- ...m
45
- }
46
- ) : r === "composite-list" ? /* @__PURE__ */ t(
47
- f,
48
- {
49
- value: e || {
50
- count: ""
51
- },
52
- mapboxAccessToken: o,
53
- onChange: i,
54
- ...m
55
- }
56
- ) : /* @__PURE__ */ t(a, {});
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import s from "lodash";
3
+ import { CompositeListRange as f } from "./components/composite-list-range/index.js";
4
+ import { DateRange as u } from "./components/date-range/index.js";
5
+ import { GeometryRange as c } from "./components/geometry-range/index.js";
6
+ import { NumberRange as R } from "./components/number-range/index.js";
7
+ import { StringRange as D } from "./components/string-range/index.js";
8
+ import { useRangeSelectorLogic as x } from "./logic.js";
9
+ import { RangeSelectorRoot as y } from "./styled.js";
10
+ const C = (t) => {
11
+ const { state: r } = x(t), { ownerState: l } = r, { type: e, value: o, mapboxAccessToken: m, onChange: i, sx: g } = t;
12
+ let a = null;
13
+ return e === "byte" || e === "double" || e === "integer" || e === "long" ? a = /* @__PURE__ */ n(
14
+ R,
15
+ {
16
+ value: o || {
17
+ minValue: "",
18
+ maxValue: ""
19
+ },
20
+ onChange: i
21
+ }
22
+ ) : e === "string" || e === "text" ? a = /* @__PURE__ */ n(
23
+ D,
24
+ {
25
+ value: o || {
26
+ listOfPossibleValues: []
27
+ },
28
+ onChange: i
29
+ }
30
+ ) : e === "geometry" ? a = /* @__PURE__ */ n(
31
+ c,
32
+ {
33
+ value: o || { geometryArea: "" },
34
+ mapboxAccessToken: m,
35
+ onChange: i
36
+ }
37
+ ) : e === "date" ? a = /* @__PURE__ */ n(
38
+ u,
39
+ {
40
+ value: o || {
41
+ startDate: s.get(t, "minDate", ""),
42
+ timeUnit: "MINUTE",
43
+ endRange: 0,
44
+ startRange: 0,
45
+ limitForScenarioTimeRange: !1
46
+ },
47
+ onChange: i,
48
+ minDate: t.minDate || "",
49
+ maxDate: t.maxDate || ""
50
+ }
51
+ ) : e === "composite-list" && (a = /* @__PURE__ */ n(
52
+ f,
53
+ {
54
+ value: o || { count: "" },
55
+ mapboxAccessToken: m,
56
+ onChange: i,
57
+ innerType: t.innerType,
58
+ minDate: t.minDate,
59
+ maxDate: t.maxDate
60
+ }
61
+ )), /* @__PURE__ */ n(y, { ownerState: l, sx: g, children: a });
62
+ };
57
63
  export {
58
- V as RangeSelector
64
+ C as RangeSelector
59
65
  };
@@ -0,0 +1,12 @@
1
+ import { useThemeProps as t } from "@mui/material";
2
+ const p = (e) => {
3
+ const o = { type: t({ props: e, name: "HCRangeSelector" }).type };
4
+ return {
5
+ refs: {},
6
+ state: { ownerState: o },
7
+ actions: {}
8
+ };
9
+ };
10
+ export {
11
+ p as useRangeSelectorLogic
12
+ };