@hybridcore/ui 1.0.2 → 1.1.2

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 (105) hide show
  1. package/dist/ButtonBase-BYmh3G5j.js +967 -0
  2. package/dist/CardContent-C8PxkJz4.js +73 -0
  3. package/dist/Checkbox-DostZSwR.js +673 -0
  4. package/dist/DialogContent-2aPOjKE7.js +2025 -0
  5. package/dist/FormControl-BiAFm76F.js +1491 -0
  6. package/dist/IconButton-CQJ8wZE8.js +183 -0
  7. package/dist/Input-Bf5G3tFN.js +324 -0
  8. package/dist/OutlinedInput-BEVE8VZQ.js +452 -0
  9. package/dist/Paper-CaiWdndQ.js +162 -0
  10. package/dist/Select-DxpxZbJp.js +2526 -0
  11. package/dist/Source-CnCcu5UP.js +4374 -0
  12. package/dist/Text-BT5kPHOo.js +2192 -0
  13. package/dist/Typography-XIiVCSto.js +178 -0
  14. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  15. package/dist/assets/index.css +1 -0
  16. package/dist/assets/index2.css +1 -0
  17. package/dist/chainPropTypes-DtBfUj5o.js +96 -0
  18. package/dist/components/access/helpers.js +32 -0
  19. package/dist/components/access/index.js +15 -0
  20. package/dist/components/card/index.js +159 -469
  21. package/dist/components/card/styled.js +75 -7
  22. package/dist/components/conditional-wrapper/index.js +9 -0
  23. package/dist/components/confirm/dialog.js +151 -0
  24. package/dist/components/confirm/index.js +23 -0
  25. package/dist/components/container/index.js +270 -0
  26. package/dist/components/context-menu/index.js +973 -0
  27. package/dist/components/data-management/instance-form/components/composite-list/index.js +12 -0
  28. package/dist/components/data-management/instance-form/components/composite-list/styled.js +64 -0
  29. package/dist/components/data-management/instance-form/components/policy-list/index.js +86 -0
  30. package/dist/components/data-management/instance-form/components/variable/index.js +15 -0
  31. package/dist/components/data-management/instance-form/components/variables/index.js +39 -0
  32. package/dist/components/data-management/instance-form/index.js +437 -0
  33. package/dist/components/data-security-selectors/dissemination-list/index.js +3201 -0
  34. package/dist/components/data-security-selectors/security-level/index.js +81 -0
  35. package/dist/components/date-time-picker/index.js +103 -0
  36. package/dist/components/geometry-picker/coordinate/index.js +93 -0
  37. package/dist/components/geometry-picker/edit/index.js +71 -0
  38. package/dist/components/geometry-picker/geometry/index.js +160 -0
  39. package/dist/components/geometry-picker/geometry/map-overlay.js +22 -0
  40. package/dist/components/geometry-picker/index.js +140 -0
  41. package/dist/components/geometry-picker/kml/index.js +62 -0
  42. package/dist/components/geometry-picker/kml/select-input-method.js +75 -0
  43. package/dist/components/geometry-picker/logic.js +69 -0
  44. package/dist/components/geometry-picker/map/index.js +42 -0
  45. package/dist/components/geometry-picker/map/logic.js +2360 -0
  46. package/dist/components/geometry-picker/map/style.js +88 -0
  47. package/dist/components/geometry-picker/parser/coordinate-input/index.js +78 -0
  48. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1305 -0
  49. package/dist/components/geometry-picker/parser/index.js +179 -0
  50. package/dist/components/geometry-picker/parser/logic.js +84 -0
  51. package/dist/components/geometry-picker/parser/styled.js +25 -0
  52. package/dist/components/geometry-picker/styled.js +48 -0
  53. package/dist/components/geometry-picker/wkt/index.js +59 -0
  54. package/dist/components/geometry-picker/wkt/select-input-method.js +75 -0
  55. package/dist/components/icon-button/index.js +18 -0
  56. package/dist/components/icon-button/styled.js +51 -0
  57. package/dist/components/key-protection/index.js +4 -0
  58. package/dist/components/key-protection/menu.js +85 -0
  59. package/dist/components/key-protection/utils.js +10 -0
  60. package/dist/components/loading/index.js +7 -0
  61. package/dist/components/loading/styled.js +16 -0
  62. package/dist/components/map/helpers/kml.js +45 -0
  63. package/dist/components/map/helpers/mapbox.js +48 -0
  64. package/dist/components/map/helpers/ol.js +25 -0
  65. package/dist/components/map/helpers/wkt.js +29 -0
  66. package/dist/components/map/index.js +8 -0
  67. package/dist/components/map/logic.js +140 -0
  68. package/dist/components/map/styled.js +8 -0
  69. package/dist/components/phone-input/index.js +25 -0
  70. package/dist/components/phone-input/styled.js +26 -0
  71. package/dist/components/search-input/index.js +76 -0
  72. package/dist/components/tree-select/index.js +70 -0
  73. package/dist/components/tree-select/styled.js +64 -0
  74. package/dist/components/treeview-filter/index.js +621 -0
  75. package/dist/components/treeview-filter/item/index.js +7 -0
  76. package/dist/components/treeview-filter/item-label/index.js +44 -0
  77. package/dist/createTheme-agWfFD64.js +2392 -0
  78. package/dist/exactProp-CI8dagM-.js +36 -0
  79. package/dist/extends-C3382pL0.js +22 -0
  80. package/dist/has-9_asnBxn.js +688 -0
  81. package/dist/hooks/useMenuLogic.js +21 -0
  82. package/dist/hooks/useToggle.js +23 -0
  83. package/dist/index-Bw_m9ult.js +1105 -0
  84. package/dist/index-IvOfmM1F.js +34 -0
  85. package/dist/index-wW2D1aTG.js +957 -0
  86. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  87. package/dist/isMuiElement-CxT3_ACP.js +13 -0
  88. package/dist/listItemTextClasses-BvXFz-Oc.js +132 -0
  89. package/dist/main.d.ts +1317 -0
  90. package/dist/main.js +41 -2
  91. package/dist/ol-DXmSLlWv.js +15041 -0
  92. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  93. package/dist/ownerWindow-niciwP7I.js +7 -0
  94. package/dist/styled-C43K9x7T.js +229 -0
  95. package/dist/styled-Iq9jsO4F.js +1033 -0
  96. package/dist/useFormControl-CatNKXAi.js +10 -0
  97. package/dist/useId-BHG98T5I.js +26 -0
  98. package/dist/useTheme-C0Dky5rV.js +17 -0
  99. package/dist/useTheme-CeyGVuQP.js +10 -0
  100. package/dist/useThemeProps-CzAjOL6F.js +26 -0
  101. package/dist/utils/ontology.js +37 -0
  102. package/dist/utils-Bq0ye5vf.js +115 -0
  103. package/dist/utils-DLpkeyhZ.js +365 -0
  104. package/package.json +26 -5
  105. package/dist/styled-BG5UIpPU.js +0 -3459
@@ -0,0 +1,6 @@
1
+ function o(n) {
2
+ return n && n.ownerDocument || document;
3
+ }
4
+ export {
5
+ o
6
+ };
@@ -0,0 +1,7 @@
1
+ import { o as n } from "./ownerDocument-CUrv0DIK.js";
2
+ function t(o) {
3
+ return n(o).defaultView || window;
4
+ }
5
+ export {
6
+ t as o
7
+ };
@@ -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-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
+ };