@hybridcore/ui 1.1.2 → 1.2.0
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/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
- package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
- package/dist/Checkbox-DP6_qp1v.js +469 -0
- package/dist/Collapse-9egEADkh.js +296 -0
- package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
- package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
- package/dist/FormControlLabel-j_atSYQA.js +827 -0
- package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
- package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
- package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
- package/dist/ListItem-BFDUUjHt.js +428 -0
- package/dist/MenuItem-BejUFNIP.js +233 -0
- package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
- package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
- package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
- package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
- package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/index.js +34 -0
- package/dist/components/collapsible-card/style.js +575 -0
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +191 -603
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +2 -2
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/ol.js +2 -2
- package/dist/components/map/index.js +2 -2
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +89 -6
- package/dist/components/search-input/index.js +119 -48
- package/dist/components/template-property-filters/index.js +78 -0
- package/dist/components/template-property-filters/property.js +7019 -0
- package/dist/components/tree-select/index.js +14 -13
- package/dist/components/treeview-filter/index.js +263 -328
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
- package/dist/createSvgIcon-R_PakhKf.js +213 -0
- package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
- package/dist/index-C7W2wuUG.js +609 -0
- package/dist/index-DHnXB0CB.js +287 -0
- package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
- package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
- package/dist/main.d.ts +140 -0
- package/dist/main.js +1 -1
- package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
- package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
- package/dist/styled-CHMAYxVs.js +142 -0
- package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
- package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
- package/dist/useThemeProps-D4or2IlT.js +62 -0
- package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
- package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
- package/package.json +1 -1
- package/dist/Checkbox-DostZSwR.js +0 -673
- package/dist/index-Bw_m9ult.js +0 -1105
- package/dist/index-wW2D1aTG.js +0 -957
- package/dist/styled-C43K9x7T.js +0 -229
package/dist/styled-C43K9x7T.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { S as b, F as w, a as j, C as D, I as P, T as B } from "./Text-BT5kPHOo.js";
|
|
2
|
-
import { _ as E, a as l } from "./extends-C3382pL0.js";
|
|
3
|
-
import { a as G, i as H, s as J, c as K, g as Q, b as X, e as Y } from "./createTheme-agWfFD64.js";
|
|
4
|
-
const Z = ["ownerState"], ee = ["variants"], te = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
5
|
-
function oe(e) {
|
|
6
|
-
return Object.keys(e).length === 0;
|
|
7
|
-
}
|
|
8
|
-
function ne(e) {
|
|
9
|
-
return typeof e == "string" && // 96 is one less than the char code
|
|
10
|
-
// for "a" so this is checking that
|
|
11
|
-
// it's a lowercase character
|
|
12
|
-
e.charCodeAt(0) > 96;
|
|
13
|
-
}
|
|
14
|
-
function R(e) {
|
|
15
|
-
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
16
|
-
}
|
|
17
|
-
const re = G(), V = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
18
|
-
function x({
|
|
19
|
-
defaultTheme: e,
|
|
20
|
-
theme: n,
|
|
21
|
-
themeId: t
|
|
22
|
-
}) {
|
|
23
|
-
return oe(n) ? e : n[t] || n;
|
|
24
|
-
}
|
|
25
|
-
function se(e) {
|
|
26
|
-
return e ? (n, t) => t[e] : null;
|
|
27
|
-
}
|
|
28
|
-
function g(e, n) {
|
|
29
|
-
let {
|
|
30
|
-
ownerState: t
|
|
31
|
-
} = n, a = E(n, Z);
|
|
32
|
-
const c = typeof e == "function" ? e(l({
|
|
33
|
-
ownerState: t
|
|
34
|
-
}, a)) : e;
|
|
35
|
-
if (Array.isArray(c))
|
|
36
|
-
return c.flatMap((h) => g(h, l({
|
|
37
|
-
ownerState: t
|
|
38
|
-
}, a)));
|
|
39
|
-
if (c && typeof c == "object" && Array.isArray(c.variants)) {
|
|
40
|
-
const {
|
|
41
|
-
variants: h = []
|
|
42
|
-
} = c;
|
|
43
|
-
let m = E(c, ee);
|
|
44
|
-
return h.forEach((o) => {
|
|
45
|
-
let s = !0;
|
|
46
|
-
typeof o.props == "function" ? s = o.props(l({
|
|
47
|
-
ownerState: t
|
|
48
|
-
}, a, t)) : Object.keys(o.props).forEach((p) => {
|
|
49
|
-
(t == null ? void 0 : t[p]) !== o.props[p] && a[p] !== o.props[p] && (s = !1);
|
|
50
|
-
}), s && (Array.isArray(m) || (m = [m]), m.push(typeof o.style == "function" ? o.style(l({
|
|
51
|
-
ownerState: t
|
|
52
|
-
}, a, t)) : o.style));
|
|
53
|
-
}), m;
|
|
54
|
-
}
|
|
55
|
-
return c;
|
|
56
|
-
}
|
|
57
|
-
function ie(e = {}) {
|
|
58
|
-
const {
|
|
59
|
-
themeId: n,
|
|
60
|
-
defaultTheme: t = re,
|
|
61
|
-
rootShouldForwardProp: a = R,
|
|
62
|
-
slotShouldForwardProp: c = R
|
|
63
|
-
} = e, h = (u) => X(l({}, u, {
|
|
64
|
-
theme: x(l({}, u, {
|
|
65
|
-
defaultTheme: t,
|
|
66
|
-
themeId: n
|
|
67
|
-
}))
|
|
68
|
-
}));
|
|
69
|
-
return h.__mui_systemSx = !0, (u, m = {}) => {
|
|
70
|
-
H(u, (i) => i.filter((d) => !(d != null && d.__mui_systemSx)));
|
|
71
|
-
const {
|
|
72
|
-
name: o,
|
|
73
|
-
slot: s,
|
|
74
|
-
skipVariantsResolver: p,
|
|
75
|
-
skipSx: z,
|
|
76
|
-
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
77
|
-
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
78
|
-
overridesResolver: N = se(V(s))
|
|
79
|
-
} = m, L = E(m, te), M = p !== void 0 ? p : (
|
|
80
|
-
// TODO v6: remove `Root` in the next major release
|
|
81
|
-
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
82
|
-
s && s !== "Root" && s !== "root" || !1
|
|
83
|
-
), W = z || !1;
|
|
84
|
-
let F;
|
|
85
|
-
process.env.NODE_ENV !== "production" && o && (F = `${o}-${V(s || "Root")}`);
|
|
86
|
-
let v = R;
|
|
87
|
-
s === "Root" || s === "root" ? v = a : s ? v = c : ne(u) && (v = void 0);
|
|
88
|
-
const C = J(u, l({
|
|
89
|
-
shouldForwardProp: v,
|
|
90
|
-
label: F
|
|
91
|
-
}, L)), T = (i) => typeof i == "function" && i.__emotion_real !== i || Y(i) ? (d) => g(i, l({}, d, {
|
|
92
|
-
theme: x({
|
|
93
|
-
theme: d.theme,
|
|
94
|
-
defaultTheme: t,
|
|
95
|
-
themeId: n
|
|
96
|
-
})
|
|
97
|
-
})) : i, A = (i, ...d) => {
|
|
98
|
-
let k = T(i);
|
|
99
|
-
const S = d ? d.map(T) : [];
|
|
100
|
-
o && N && S.push((r) => {
|
|
101
|
-
const f = x(l({}, r, {
|
|
102
|
-
defaultTheme: t,
|
|
103
|
-
themeId: n
|
|
104
|
-
}));
|
|
105
|
-
if (!f.components || !f.components[o] || !f.components[o].styleOverrides)
|
|
106
|
-
return null;
|
|
107
|
-
const y = f.components[o].styleOverrides, _ = {};
|
|
108
|
-
return Object.entries(y).forEach(([U, q]) => {
|
|
109
|
-
_[U] = g(q, l({}, r, {
|
|
110
|
-
theme: f
|
|
111
|
-
}));
|
|
112
|
-
}), N(r, _);
|
|
113
|
-
}), o && !M && S.push((r) => {
|
|
114
|
-
var f;
|
|
115
|
-
const y = x(l({}, r, {
|
|
116
|
-
defaultTheme: t,
|
|
117
|
-
themeId: n
|
|
118
|
-
})), _ = y == null || (f = y.components) == null || (f = f[o]) == null ? void 0 : f.variants;
|
|
119
|
-
return g({
|
|
120
|
-
variants: _
|
|
121
|
-
}, l({}, r, {
|
|
122
|
-
theme: y
|
|
123
|
-
}));
|
|
124
|
-
}), W || S.push(h);
|
|
125
|
-
const I = S.length - d.length;
|
|
126
|
-
if (Array.isArray(i) && I > 0) {
|
|
127
|
-
const r = new Array(I).fill("");
|
|
128
|
-
k = [...i, ...r], k.raw = [...i.raw, ...r];
|
|
129
|
-
}
|
|
130
|
-
const O = C(k, ...S);
|
|
131
|
-
if (process.env.NODE_ENV !== "production") {
|
|
132
|
-
let r;
|
|
133
|
-
o && (r = `${o}${K(s || "")}`), r === void 0 && (r = `Styled(${Q(u)})`), O.displayName = r;
|
|
134
|
-
}
|
|
135
|
-
return u.muiName && (O.muiName = u.muiName), O;
|
|
136
|
-
};
|
|
137
|
-
return C.withConfig && (A.withConfig = C.withConfig), A;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
const le = ie(), $ = 0.4, ae = le("div")(
|
|
141
|
-
({ theme: e, cssPosition: n = "absolute" }) => ({
|
|
142
|
-
position: n,
|
|
143
|
-
width: "100%",
|
|
144
|
-
height: "100%",
|
|
145
|
-
// minHeight: 500,
|
|
146
|
-
backgroundColor: e.palette.background.paper,
|
|
147
|
-
"& .ol-zoom": {
|
|
148
|
-
backgroundColor: "transparent",
|
|
149
|
-
"& button": {
|
|
150
|
-
borderRadius: "50%",
|
|
151
|
-
fontSize: 20,
|
|
152
|
-
width: 34,
|
|
153
|
-
height: 34,
|
|
154
|
-
marginTop: 3
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
})
|
|
158
|
-
), me = new b({
|
|
159
|
-
fill: new w({
|
|
160
|
-
color: "rgba(255, 255, 255, 0.2)"
|
|
161
|
-
}),
|
|
162
|
-
stroke: new j({
|
|
163
|
-
color: "#2daae1",
|
|
164
|
-
width: 2
|
|
165
|
-
}),
|
|
166
|
-
image: new D({
|
|
167
|
-
radius: 7,
|
|
168
|
-
fill: new w({
|
|
169
|
-
color: "#2daae1"
|
|
170
|
-
})
|
|
171
|
-
})
|
|
172
|
-
}), ce = new b({
|
|
173
|
-
fill: new w({
|
|
174
|
-
color: "rgba(255, 255, 255, 0.4)"
|
|
175
|
-
}),
|
|
176
|
-
stroke: new j({
|
|
177
|
-
color: "#0f70b7",
|
|
178
|
-
width: 2
|
|
179
|
-
}),
|
|
180
|
-
image: new D({
|
|
181
|
-
radius: 7,
|
|
182
|
-
fill: new w({
|
|
183
|
-
color: "#0f70b7"
|
|
184
|
-
})
|
|
185
|
-
})
|
|
186
|
-
}), pe = (e) => {
|
|
187
|
-
const n = e.get("icon");
|
|
188
|
-
if (n)
|
|
189
|
-
return new b({
|
|
190
|
-
image: new P({
|
|
191
|
-
anchor: [0.5, 0.5],
|
|
192
|
-
src: n,
|
|
193
|
-
scale: $
|
|
194
|
-
}),
|
|
195
|
-
zIndex: 2
|
|
196
|
-
});
|
|
197
|
-
const t = e.get("features");
|
|
198
|
-
if (t) {
|
|
199
|
-
const a = t.length > 1 ? t[0].get("clusterIcon") : t[0].get("icon");
|
|
200
|
-
if (a)
|
|
201
|
-
return new b({
|
|
202
|
-
image: new P({
|
|
203
|
-
anchor: [0.5, 0.5],
|
|
204
|
-
src: a,
|
|
205
|
-
scale: $
|
|
206
|
-
}),
|
|
207
|
-
...t.length > 1 && {
|
|
208
|
-
text: new B({
|
|
209
|
-
text: t.length.toString(),
|
|
210
|
-
font: "14px sans-serif",
|
|
211
|
-
fill: new w({
|
|
212
|
-
color: "#fff"
|
|
213
|
-
})
|
|
214
|
-
})
|
|
215
|
-
},
|
|
216
|
-
zIndex: 2
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
return ce;
|
|
220
|
-
}, he = {
|
|
221
|
-
Container: ae
|
|
222
|
-
};
|
|
223
|
-
export {
|
|
224
|
-
he as M,
|
|
225
|
-
pe as a,
|
|
226
|
-
ce as b,
|
|
227
|
-
me as d,
|
|
228
|
-
le as s
|
|
229
|
-
};
|