@hybridcore/ui 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
- package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
- package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
- package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
- package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
- package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
- package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
- package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/collapsible-card/index.js +1 -1
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-security-selectors/security-level/index.js +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/geometry-picker/index.js +13 -12
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4222 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +8 -8
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
- package/dist/components/template-form/index.js +32 -33
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
- package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
- package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
- package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +734 -298
- package/dist/main.js +15 -15
- package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
- package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
- package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +1 -1
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/Button-CvE2gnly.js +0 -370
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
|
@@ -1,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
|
|
4
|
-
import {
|
|
5
|
-
import { unstable_extendSxProp as
|
|
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-
|
|
10
|
-
function U(
|
|
11
|
-
return
|
|
7
|
+
import { c as f } from "./capitalize-quqpGCFu.js";
|
|
8
|
+
function U(a) {
|
|
9
|
+
return C("MuiTypography", a);
|
|
12
10
|
}
|
|
13
|
-
|
|
14
|
-
const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (
|
|
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:
|
|
17
|
-
gutterBottom:
|
|
14
|
+
align: o,
|
|
15
|
+
gutterBottom: r,
|
|
18
16
|
noWrap: n,
|
|
19
17
|
paragraph: i,
|
|
20
18
|
variant: e,
|
|
21
19
|
classes: h
|
|
22
|
-
} =
|
|
23
|
-
root: ["root", e,
|
|
20
|
+
} = a, p = {
|
|
21
|
+
root: ["root", e, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", n && "noWrap", i && "paragraph"]
|
|
24
22
|
};
|
|
25
|
-
return
|
|
26
|
-
}, L =
|
|
23
|
+
return N(p, U, h);
|
|
24
|
+
}, L = O("span", {
|
|
27
25
|
name: "MuiTypography",
|
|
28
26
|
slot: "Root",
|
|
29
|
-
overridesResolver: (
|
|
27
|
+
overridesResolver: (a, o) => {
|
|
30
28
|
const {
|
|
31
|
-
ownerState:
|
|
32
|
-
} =
|
|
33
|
-
return [
|
|
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:
|
|
37
|
-
ownerState:
|
|
34
|
+
theme: a,
|
|
35
|
+
ownerState: o
|
|
38
36
|
}) => s({
|
|
39
37
|
margin: 0
|
|
40
|
-
},
|
|
41
|
-
textAlign:
|
|
42
|
-
},
|
|
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
|
-
},
|
|
44
|
+
}, o.gutterBottom && {
|
|
47
45
|
marginBottom: "0.35em"
|
|
48
|
-
},
|
|
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
|
-
}, $ = (
|
|
69
|
-
const n =
|
|
70
|
-
props:
|
|
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 =
|
|
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:
|
|
79
|
-
noWrap:
|
|
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:
|
|
89
|
-
noWrap:
|
|
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:
|
|
94
|
+
ref: r,
|
|
97
95
|
ownerState: y,
|
|
98
|
-
className:
|
|
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:
|
|
108
|
+
align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
111
109
|
/**
|
|
112
110
|
* The content of the component.
|
|
113
111
|
*/
|
|
114
|
-
children:
|
|
112
|
+
children: t.node,
|
|
115
113
|
/**
|
|
116
114
|
* Override or extend the styles applied to the component.
|
|
117
115
|
*/
|
|
118
|
-
classes:
|
|
116
|
+
classes: t.object,
|
|
119
117
|
/**
|
|
120
118
|
* @ignore
|
|
121
119
|
*/
|
|
122
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
172
|
+
variantMapping: t.object
|
|
175
173
|
});
|
|
176
174
|
export {
|
|
177
175
|
w as T
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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
|
+
};
|