@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,51 +1,49 @@
1
1
  import { a as s, _ as B } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
2
  import * as W from "react";
3
- import { P as o } from "./index-C__OZmYy.js";
4
- import { g as C, u as M, c as O, a as j } from "./useThemeProps-BzzHcQyd.js";
5
- import { unstable_extendSxProp as P } from "@mui/system";
6
- import { s as N } from "./styled-eZwjUruw.js";
7
- import { g as R } from "./createTheme-DYxDnE9u.js";
3
+ import { P as t } from "./index-C__OZmYy.js";
4
+ import { b as C, g as M, s as O, u as j, c as P, a as N } from "./styled-Bsjp3kFh.js";
5
+ import { unstable_extendSxProp as R } from "@mui/system";
8
6
  import { jsx as _ } from "react/jsx-runtime";
9
- import { c as f } from "./capitalize-ciszXJ7R.js";
10
- function U(r) {
11
- return R("MuiTypography", r);
7
+ import { c as f } from "./capitalize-quqpGCFu.js";
8
+ function U(a) {
9
+ return C("MuiTypography", a);
12
10
  }
13
- C("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
14
- const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (r) => {
11
+ M("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
12
+ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (a) => {
15
13
  const {
16
- align: t,
17
- gutterBottom: a,
14
+ align: o,
15
+ gutterBottom: r,
18
16
  noWrap: n,
19
17
  paragraph: i,
20
18
  variant: e,
21
19
  classes: h
22
- } = r, p = {
23
- root: ["root", e, r.align !== "inherit" && `align${f(t)}`, a && "gutterBottom", n && "noWrap", i && "paragraph"]
20
+ } = a, p = {
21
+ root: ["root", e, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", n && "noWrap", i && "paragraph"]
24
22
  };
25
- return j(p, U, h);
26
- }, L = N("span", {
23
+ return N(p, U, h);
24
+ }, L = O("span", {
27
25
  name: "MuiTypography",
28
26
  slot: "Root",
29
- overridesResolver: (r, t) => {
27
+ overridesResolver: (a, o) => {
30
28
  const {
31
- ownerState: a
32
- } = r;
33
- return [t.root, a.variant && t[a.variant], a.align !== "inherit" && t[`align${f(a.align)}`], a.noWrap && t.noWrap, a.gutterBottom && t.gutterBottom, a.paragraph && t.paragraph];
29
+ ownerState: r
30
+ } = a;
31
+ return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
34
32
  }
35
33
  })(({
36
- theme: r,
37
- ownerState: t
34
+ theme: a,
35
+ ownerState: o
38
36
  }) => s({
39
37
  margin: 0
40
- }, t.variant && r.typography[t.variant], t.align !== "inherit" && {
41
- textAlign: t.align
42
- }, t.noWrap && {
38
+ }, o.variant && a.typography[o.variant], o.align !== "inherit" && {
39
+ textAlign: o.align
40
+ }, o.noWrap && {
43
41
  overflow: "hidden",
44
42
  textOverflow: "ellipsis",
45
43
  whiteSpace: "nowrap"
46
- }, t.gutterBottom && {
44
+ }, o.gutterBottom && {
47
45
  marginBottom: "0.35em"
48
- }, t.paragraph && {
46
+ }, o.paragraph && {
49
47
  marginBottom: 16
50
48
  })), u = {
51
49
  h1: "h1",
@@ -65,18 +63,18 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
65
63
  secondary: "secondary.main",
66
64
  textSecondary: "text.secondary",
67
65
  error: "error.main"
68
- }, $ = (r) => V[r] || r, w = /* @__PURE__ */ W.forwardRef(function(t, a) {
69
- const n = M({
70
- props: t,
66
+ }, $ = (a) => V[a] || a, w = /* @__PURE__ */ W.forwardRef(function(o, r) {
67
+ const n = j({
68
+ props: o,
71
69
  name: "MuiTypography"
72
- }), i = $(n.color), e = P(s({}, n, {
70
+ }), i = $(n.color), e = R(s({}, n, {
73
71
  color: i
74
72
  })), {
75
73
  align: h = "inherit",
76
74
  className: p,
77
75
  component: g,
78
- gutterBottom: d = !1,
79
- noWrap: b = !1,
76
+ gutterBottom: b = !1,
77
+ noWrap: d = !1,
80
78
  paragraph: c = !1,
81
79
  variant: l = "body1",
82
80
  variantMapping: m = u
@@ -85,17 +83,17 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
85
83
  color: i,
86
84
  className: p,
87
85
  component: g,
88
- gutterBottom: d,
89
- noWrap: b,
86
+ gutterBottom: b,
87
+ noWrap: d,
90
88
  paragraph: c,
91
89
  variant: l,
92
90
  variantMapping: m
93
91
  }), T = g || (c ? "p" : m[l] || u[l]) || "span", x = E(y);
94
92
  return /* @__PURE__ */ _(L, s({
95
93
  as: T,
96
- ref: a,
94
+ ref: r,
97
95
  ownerState: y,
98
- className: O(x.root, p)
96
+ className: P(x.root, p)
99
97
  }, v));
100
98
  });
101
99
  process.env.NODE_ENV !== "production" && (w.propTypes = {
@@ -107,29 +105,29 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
107
105
  * Set the text-align on the component.
108
106
  * @default 'inherit'
109
107
  */
110
- align: o.oneOf(["center", "inherit", "justify", "left", "right"]),
108
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
111
109
  /**
112
110
  * The content of the component.
113
111
  */
114
- children: o.node,
112
+ children: t.node,
115
113
  /**
116
114
  * Override or extend the styles applied to the component.
117
115
  */
118
- classes: o.object,
116
+ classes: t.object,
119
117
  /**
120
118
  * @ignore
121
119
  */
122
- className: o.string,
120
+ className: t.string,
123
121
  /**
124
122
  * The component used for the root node.
125
123
  * Either a string to use a HTML element or a component.
126
124
  */
127
- component: o.elementType,
125
+ component: t.elementType,
128
126
  /**
129
127
  * If `true`, the text will have a bottom margin.
130
128
  * @default false
131
129
  */
132
- gutterBottom: o.bool,
130
+ gutterBottom: t.bool,
133
131
  /**
134
132
  * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
135
133
  *
@@ -137,21 +135,21 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
137
135
  * (the element needs to have a width in order to overflow).
138
136
  * @default false
139
137
  */
140
- noWrap: o.bool,
138
+ noWrap: t.bool,
141
139
  /**
142
140
  * If `true`, the element will be a paragraph element.
143
141
  * @default false
144
142
  */
145
- paragraph: o.bool,
143
+ paragraph: t.bool,
146
144
  /**
147
145
  * The system prop that allows defining system overrides as well as additional CSS styles.
148
146
  */
149
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
147
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
150
148
  /**
151
149
  * Applies the theme typography styles.
152
150
  * @default 'body1'
153
151
  */
154
- variant: o.oneOfType([o.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), o.string]),
152
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
155
153
  /**
156
154
  * The component maps the variant prop to a range of different HTML element types.
157
155
  * For instance, subtitle1 to `<h6>`.
@@ -171,7 +169,7 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
171
169
  * inherit: 'p',
172
170
  * }
173
171
  */
174
- variantMapping: o.object
172
+ variantMapping: t.object
175
173
  });
176
174
  export {
177
175
  w as T
@@ -1,4 +1,4 @@
1
- import { f as e } from "./createTheme-DYxDnE9u.js";
1
+ import { f as e } from "./styled-Bsjp3kFh.js";
2
2
  function o(r) {
3
3
  if (typeof r != "string")
4
4
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : e(7));
@@ -1,17 +1,10 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { a as m } from "../../helpers-B4UL9NMD.js";
3
- import n from "lodash";
4
- import { Loading as d } from "../loading/index.js";
5
- function x({
6
- pagePath: s,
7
- feature: o,
8
- appRoles: t,
9
- fallback: i,
10
- loading: e = !1,
11
- children: r
12
- }) {
13
- return s && (s = s.split("/").slice(1)[0] || "dashboard", s === "dashboard" ? o = "MAIN" : s === "agent-based-simulations" ? o = "SIMULATION" : o = n.toUpper(n.snakeCase(s))), s && e ? /* @__PURE__ */ f(d, { show: !0, position: "fixed", top: 0, left: 0, zIndex: 99999 }) : o && m(o, t) && r ? r : i || null;
14
- }
1
+ import { jsx as t, Fragment as n } from "react/jsx-runtime";
2
+ import { Loading as l } from "../loading/index.js";
3
+ import { useAccessLogic as a } from "./logic.js";
4
+ const m = (e) => {
5
+ const { state: r } = a(e), { loading: i, granted: c, isPagePath: o } = r;
6
+ return o && i ? /* @__PURE__ */ t(l, { show: !0, position: "fixed", top: 0, left: 0, zIndex: 99999 }) : c && e.children ? /* @__PURE__ */ t(n, { children: e.children }) : e.fallback ? /* @__PURE__ */ t(n, { children: e.fallback }) : null;
7
+ };
15
8
  export {
16
- x as Access
9
+ m as Access
17
10
  };
@@ -0,0 +1,25 @@
1
+ import { useThemeProps as l } from "@mui/material";
2
+ import r from "lodash";
3
+ import { a as m } from "../../helpers-B4UL9NMD.js";
4
+ const h = (n) => {
5
+ const e = l({ props: n, name: "HCAccess" }), { pagePath: o, appRoles: c, loading: t = !1 } = e;
6
+ let { feature: s } = e;
7
+ if (o) {
8
+ const a = o.split("/").slice(1)[0] || "dashboard";
9
+ a === "dashboard" ? s = "MAIN" : a === "agent-based-simulations" ? s = "SIMULATION" : s = r.toUpper(r.snakeCase(a));
10
+ }
11
+ const p = !!(s && m(s, c)), i = { ...e, loading: t };
12
+ return {
13
+ refs: {},
14
+ state: {
15
+ ownerState: i,
16
+ loading: t,
17
+ granted: p,
18
+ isPagePath: !!o
19
+ },
20
+ actions: {}
21
+ };
22
+ };
23
+ export {
24
+ h as useAccessLogic
25
+ };