@hybridcore/ui 1.5.86 → 1.5.88
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/README.md +52 -2
- package/dist/{FormControlLabel-DzNokgFD.js → FormControlLabel-BrdX4R71.js} +1 -1
- package/dist/{Input-B7ry6o4t.js → Input-CoIrGZAh.js} +1 -1
- package/dist/{InputLabel-rrSJo8M_.js → InputLabel-CBuAYyuT.js} +163 -162
- package/dist/{OutlinedInput-BDK6qOwW.js → OutlinedInput-B-iZoc9l.js} +1 -1
- package/dist/{Select-jjAc5JX1.js → Select-t3ewnSdf.js} +3 -3
- package/dist/{TextField-Bf46COnQ.js → TextField-BQ8a50fA.js} +4 -4
- package/dist/components/card-alternate/index.js +52 -46
- package/dist/components/card-alternate/styled.js +12 -8
- package/dist/components/data-security-selectors/dissemination-list/index.js +652 -742
- package/dist/components/data-security-selectors/dissemination-list/logic.js +62 -0
- package/dist/components/data-security-selectors/dissemination-list/styled.js +88 -0
- package/dist/components/date-time-picker/index.js +57 -94
- package/dist/components/date-time-picker/logic.js +70 -0
- package/dist/components/date-time-picker/styled.js +83 -0
- package/dist/components/geometry-picker/index.js +45 -43
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +5 -5
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +1 -1
- package/dist/components/range-selector/components/number-range/index.js +38 -35
- package/dist/components/range-selector/components/string-range/index.js +15 -14
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/search-input/index.js +2 -2
- package/dist/components/template-form/components/property-list/index.js +1 -1
- package/dist/components/template-form/components/property-list/property-list-form.js +5 -5
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +3 -3
- package/dist/components/template-form/index.js +3 -3
- package/dist/components/template-property-filters/property.js +4 -4
- package/dist/components/tree-select/index.js +52 -50
- package/dist/{index-MMaYBAn0.js → index-CGNxsLVm.js} +6 -6
- package/dist/{index-NNOChRJ7.js → index-SpeaLUQD.js} +2 -2
- package/dist/main.d.ts +279 -84
- package/dist/main.js +1 -1
- package/dist/{property-list-form-BvnaooEW.js → property-list-form-C5hcK2y2.js} +4 -4
- package/package.json +2 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Box as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Box as r, Skeleton as t, Typography as l } from "@mui/material";
|
|
3
3
|
import { AlternateCardRoot as b, AlternateCardMenuContainer as v } from "./styled.js";
|
|
4
|
-
const
|
|
5
|
-
title:
|
|
6
|
-
subTitle:
|
|
7
|
-
text:
|
|
8
|
-
avatar:
|
|
9
|
-
footer:
|
|
10
|
-
menu:
|
|
11
|
-
extra:
|
|
4
|
+
const y = ({
|
|
5
|
+
title: p,
|
|
6
|
+
subTitle: d,
|
|
7
|
+
text: o,
|
|
8
|
+
avatar: h,
|
|
9
|
+
footer: c,
|
|
10
|
+
menu: s,
|
|
11
|
+
extra: w,
|
|
12
12
|
loading: i,
|
|
13
|
-
rightMenu:
|
|
14
|
-
onClick:
|
|
13
|
+
rightMenu: x,
|
|
14
|
+
onClick: a
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const m = () => {
|
|
17
|
+
a && a();
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ n(
|
|
20
20
|
b,
|
|
21
21
|
{
|
|
22
22
|
sx: {
|
|
23
23
|
display: "flex"
|
|
24
24
|
},
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ r
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */ r
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
/* @__PURE__ */ n(r, { flex: 1, children: [
|
|
27
|
+
s && /* @__PURE__ */ e(v, { className: "menu-container", children: s }),
|
|
28
|
+
/* @__PURE__ */ n(r, { display: "flex", alignItems: "center", children: [
|
|
29
|
+
h && /* @__PURE__ */ e(r, { mr: 2, children: i ? /* @__PURE__ */ e(
|
|
30
|
+
t,
|
|
31
31
|
{
|
|
32
32
|
animation: "wave",
|
|
33
33
|
variant: "circular",
|
|
34
34
|
width: 42,
|
|
35
35
|
height: 42
|
|
36
36
|
}
|
|
37
|
-
) :
|
|
38
|
-
/* @__PURE__ */ r
|
|
37
|
+
) : h }),
|
|
38
|
+
/* @__PURE__ */ n(r, { width: "100%", sx: { minWidth: 0 }, children: [
|
|
39
39
|
i ? /* @__PURE__ */ e(
|
|
40
|
-
|
|
40
|
+
t,
|
|
41
41
|
{
|
|
42
42
|
animation: "wave",
|
|
43
43
|
height: 10,
|
|
@@ -45,7 +45,7 @@ const g = ({
|
|
|
45
45
|
sx: { mb: 0.25, mt: 0.35 }
|
|
46
46
|
}
|
|
47
47
|
) : /* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
l,
|
|
49
49
|
{
|
|
50
50
|
gutterBottom: !0,
|
|
51
51
|
variant: "subtitle1",
|
|
@@ -57,15 +57,17 @@ const g = ({
|
|
|
57
57
|
display: "-webkit-box",
|
|
58
58
|
WebkitLineClamp: 3,
|
|
59
59
|
WebkitBoxOrient: "vertical",
|
|
60
|
-
cursor:
|
|
61
|
-
lineHeight: "22px"
|
|
60
|
+
cursor: a ? "pointer" : "default",
|
|
61
|
+
lineHeight: "22px",
|
|
62
|
+
overflowWrap: "break-word",
|
|
63
|
+
wordBreak: "break-word"
|
|
62
64
|
},
|
|
63
|
-
onClick:
|
|
64
|
-
children:
|
|
65
|
+
onClick: m,
|
|
66
|
+
children: p
|
|
65
67
|
}
|
|
66
68
|
),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
d && (i ? /* @__PURE__ */ e(
|
|
70
|
+
t,
|
|
69
71
|
{
|
|
70
72
|
animation: "wave",
|
|
71
73
|
height: 10,
|
|
@@ -73,7 +75,7 @@ const g = ({
|
|
|
73
75
|
sx: { mb: 0.25, mt: 0.35 }
|
|
74
76
|
}
|
|
75
77
|
) : /* @__PURE__ */ e(
|
|
76
|
-
|
|
78
|
+
l,
|
|
77
79
|
{
|
|
78
80
|
variant: "caption",
|
|
79
81
|
component: "p",
|
|
@@ -84,17 +86,19 @@ const g = ({
|
|
|
84
86
|
display: "-webkit-box",
|
|
85
87
|
WebkitLineClamp: 4,
|
|
86
88
|
WebkitBoxOrient: "vertical",
|
|
87
|
-
lineHeight: "16px"
|
|
89
|
+
lineHeight: "16px",
|
|
90
|
+
overflowWrap: "break-word",
|
|
91
|
+
wordBreak: "break-word"
|
|
88
92
|
},
|
|
89
|
-
children:
|
|
93
|
+
children: d
|
|
90
94
|
}
|
|
91
95
|
))
|
|
92
96
|
] })
|
|
93
97
|
] }),
|
|
94
|
-
i ? /* @__PURE__ */ r
|
|
95
|
-
/* @__PURE__ */ e(
|
|
98
|
+
i ? /* @__PURE__ */ n(r, { children: [
|
|
99
|
+
/* @__PURE__ */ e(t, { animation: "wave", height: 10, sx: { mb: 0.5, mt: 0.5 } }),
|
|
96
100
|
/* @__PURE__ */ e(
|
|
97
|
-
|
|
101
|
+
t,
|
|
98
102
|
{
|
|
99
103
|
animation: "wave",
|
|
100
104
|
height: 10,
|
|
@@ -103,7 +107,7 @@ const g = ({
|
|
|
103
107
|
}
|
|
104
108
|
)
|
|
105
109
|
] }) : /* @__PURE__ */ e(
|
|
106
|
-
|
|
110
|
+
l,
|
|
107
111
|
{
|
|
108
112
|
variant: "caption",
|
|
109
113
|
component: "p",
|
|
@@ -115,29 +119,31 @@ const g = ({
|
|
|
115
119
|
WebkitLineClamp: 4,
|
|
116
120
|
WebkitBoxOrient: "vertical",
|
|
117
121
|
lineHeight: "16px",
|
|
118
|
-
cursor:
|
|
119
|
-
my: 2
|
|
122
|
+
cursor: a ? "pointer" : "default",
|
|
123
|
+
my: 2,
|
|
124
|
+
overflowWrap: "break-word",
|
|
125
|
+
wordBreak: "break-word"
|
|
120
126
|
},
|
|
121
|
-
onClick:
|
|
122
|
-
children: /* @__PURE__ */ e("small", { children: typeof
|
|
127
|
+
onClick: m,
|
|
128
|
+
children: /* @__PURE__ */ e("small", { children: typeof o == "string" ? o.length > 350 ? `${o.substring(0, 350)}...` : o : null })
|
|
123
129
|
}
|
|
124
130
|
),
|
|
125
131
|
i ? /* @__PURE__ */ e(
|
|
126
|
-
|
|
132
|
+
t,
|
|
127
133
|
{
|
|
128
134
|
animation: "wave",
|
|
129
135
|
height: 10,
|
|
130
136
|
width: "100px",
|
|
131
137
|
sx: { mb: 1, mt: 1 }
|
|
132
138
|
}
|
|
133
|
-
) :
|
|
134
|
-
i ? null :
|
|
139
|
+
) : c,
|
|
140
|
+
i ? null : w
|
|
135
141
|
] }),
|
|
136
|
-
/* @__PURE__ */ e(
|
|
142
|
+
/* @__PURE__ */ e(r, { children: x })
|
|
137
143
|
]
|
|
138
144
|
}
|
|
139
145
|
);
|
|
140
146
|
};
|
|
141
147
|
export {
|
|
142
|
-
|
|
148
|
+
y as CardAlternate
|
|
143
149
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const r =
|
|
1
|
+
import { styled as i, Card as t, Box as n } from "@mui/material";
|
|
2
|
+
const r = i(t, {
|
|
3
3
|
name: "SNAlternateCard",
|
|
4
4
|
// The component name
|
|
5
5
|
slot: "root"
|
|
6
6
|
// The slot name
|
|
7
|
-
})(({ theme:
|
|
7
|
+
})(({ theme: a }) => ({
|
|
8
8
|
position: "relative",
|
|
9
9
|
display: "flex",
|
|
10
|
-
padding:
|
|
11
|
-
|
|
10
|
+
padding: a.spacing(3),
|
|
11
|
+
paddingTop: a.spacing(6),
|
|
12
|
+
gap: a.spacing(2),
|
|
12
13
|
"& .MuiCardMedia-root": {
|
|
13
|
-
borderRadius:
|
|
14
|
+
borderRadius: a.shape.borderRadius
|
|
14
15
|
},
|
|
15
16
|
"& .MuiCardContent-root, & .MuiCardContent-root:last-child": {
|
|
16
17
|
display: "flex",
|
|
17
18
|
flex: 1,
|
|
18
|
-
gap:
|
|
19
|
+
gap: a.spacing(3),
|
|
19
20
|
padding: 0,
|
|
20
21
|
margin: 0
|
|
21
22
|
},
|
|
@@ -23,7 +24,7 @@ const r = a(t, {
|
|
|
23
24
|
visibility: "visible",
|
|
24
25
|
opacity: 1
|
|
25
26
|
}
|
|
26
|
-
})), e =
|
|
27
|
+
})), e = i(n, {
|
|
27
28
|
name: "SNAlternateCard",
|
|
28
29
|
slot: "menuContainer"
|
|
29
30
|
})(() => ({
|
|
@@ -31,6 +32,9 @@ const r = a(t, {
|
|
|
31
32
|
top: 8,
|
|
32
33
|
right: 8,
|
|
33
34
|
display: "flex",
|
|
35
|
+
flexWrap: "wrap",
|
|
36
|
+
gap: 8,
|
|
37
|
+
alignItems: "center",
|
|
34
38
|
visibility: "hidden",
|
|
35
39
|
opacity: 0,
|
|
36
40
|
transition: "0.3s all"
|