@hybridcore/ui 1.0.2 → 1.1.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/Button-BZR43NHz.js +2025 -0
- package/dist/ButtonBase-B6WYZgVU.js +967 -0
- package/dist/CardContent-C8PxkJz4.js +73 -0
- package/dist/Checkbox-CxbQ9tJ5.js +673 -0
- package/dist/FormControl-C4PmH1vh.js +1491 -0
- package/dist/IconButton-CKHPuOyh.js +183 -0
- package/dist/Input-CH_JyT5B.js +324 -0
- package/dist/List-BX_5LP1i.js +132 -0
- package/dist/Object-DBPgar-D.js +688 -0
- package/dist/OutlinedInput-gnp48tDo.js +452 -0
- package/dist/Paper-CaiWdndQ.js +162 -0
- package/dist/Select-DOyHt8I_.js +2526 -0
- package/dist/Source-Bo1Eq6y-.js +4374 -0
- package/dist/Text-DVP2PrYM.js +2192 -0
- package/dist/Typography-XIiVCSto.js +178 -0
- package/dist/assertThisInitialized-BUtkG-md.js +13 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/chainPropTypes-DtBfUj5o.js +96 -0
- package/dist/components/access/helpers.js +32 -0
- package/dist/components/access/index.js +15 -0
- package/dist/components/card/index.js +159 -469
- package/dist/components/card/styled.js +75 -7
- package/dist/components/conditional-wrapper/index.js +9 -0
- package/dist/components/confirm/dialog.js +151 -0
- package/dist/components/confirm/index.js +23 -0
- package/dist/components/container/index.js +270 -0
- package/dist/components/context-menu/index.js +973 -0
- package/dist/components/data-management/instance-form/components/composite-list/index.js +12 -0
- package/dist/components/data-management/instance-form/components/composite-list/styled.js +64 -0
- package/dist/components/data-management/instance-form/components/policy-list/index.js +86 -0
- package/dist/components/data-management/instance-form/components/variable/index.js +15 -0
- package/dist/components/data-management/instance-form/components/variables/index.js +39 -0
- package/dist/components/data-management/instance-form/index.js +437 -0
- package/dist/components/data-security-selectors/dissemination-list/index.js +3201 -0
- package/dist/components/data-security-selectors/security-level/index.js +81 -0
- package/dist/components/date-time-picker/index.js +103 -0
- package/dist/components/geometry-picker/coordinate/index.js +93 -0
- package/dist/components/geometry-picker/edit/index.js +71 -0
- package/dist/components/geometry-picker/geometry/index.js +160 -0
- package/dist/components/geometry-picker/geometry/map-overlay.js +22 -0
- package/dist/components/geometry-picker/index.js +140 -0
- package/dist/components/geometry-picker/kml/index.js +62 -0
- package/dist/components/geometry-picker/kml/select-input-method.js +75 -0
- package/dist/components/geometry-picker/logic.js +69 -0
- package/dist/components/geometry-picker/map/index.js +42 -0
- package/dist/components/geometry-picker/map/logic.js +2360 -0
- package/dist/components/geometry-picker/map/style.js +88 -0
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +78 -0
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1305 -0
- package/dist/components/geometry-picker/parser/index.js +179 -0
- package/dist/components/geometry-picker/parser/logic.js +84 -0
- package/dist/components/geometry-picker/parser/styled.js +25 -0
- package/dist/components/geometry-picker/styled.js +48 -0
- package/dist/components/geometry-picker/wkt/index.js +59 -0
- package/dist/components/geometry-picker/wkt/select-input-method.js +75 -0
- package/dist/components/icon-button/index.js +18 -0
- package/dist/components/icon-button/styled.js +51 -0
- package/dist/components/key-protection/index.js +4 -0
- package/dist/components/key-protection/menu.js +85 -0
- package/dist/components/key-protection/utils.js +10 -0
- package/dist/components/loading/index.js +7 -0
- package/dist/components/loading/styled.js +16 -0
- package/dist/components/map/helpers/kml.js +45 -0
- package/dist/components/map/helpers/mapbox.js +48 -0
- package/dist/components/map/helpers/ol.js +25 -0
- package/dist/components/map/helpers/wkt.js +29 -0
- package/dist/components/map/index.js +30 -0
- package/dist/components/map/logic.js +140 -0
- package/dist/components/map/styled.js +8 -0
- package/dist/components/phone-input/index.js +25 -0
- package/dist/components/phone-input/styled.js +26 -0
- package/dist/components/search-input/index.js +76 -0
- package/dist/components/tree-select/index.js +70 -0
- package/dist/components/tree-select/styled.js +64 -0
- package/dist/components/treeview-filter/index.js +621 -0
- package/dist/components/treeview-filter/item/index.js +7 -0
- package/dist/components/treeview-filter/item-label/index.js +44 -0
- package/dist/createTheme-agWfFD64.js +2392 -0
- package/dist/exactProp-CI8dagM-.js +36 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/hooks/useMenuLogic.js +21 -0
- package/dist/hooks/useToggle.js +23 -0
- package/dist/index-BQE8B4sc.js +957 -0
- package/dist/index-DHFb1Qpn.js +1105 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/isMuiElement-CxT3_ACP.js +13 -0
- package/dist/main.d.ts +646 -0
- package/dist/ol-CMEkXXLJ.js +15041 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/styled-B22KrhDR.js +229 -0
- package/dist/styled-Iq9jsO4F.js +1033 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BHG98T5I.js +26 -0
- package/dist/useTheme-C0Dky5rV.js +17 -0
- package/dist/useTheme-CeyGVuQP.js +10 -0
- package/dist/useThemeProps-CzAjOL6F.js +26 -0
- package/dist/utils/ontology.js +37 -0
- package/dist/utils-Bq0ye5vf.js +115 -0
- package/dist/utils-C13eMoWa.js +365 -0
- package/package.json +26 -5
- package/dist/styled-BG5UIpPU.js +0 -3459
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { S as b, F as w, a as j, C as D, I as P, T as B } from "./Text-DVP2PrYM.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
|
+
};
|