@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.
- package/dist/ButtonBase-BYmh3G5j.js +967 -0
- package/dist/CardContent-C8PxkJz4.js +73 -0
- package/dist/Checkbox-DostZSwR.js +673 -0
- package/dist/DialogContent-2aPOjKE7.js +2025 -0
- package/dist/FormControl-BiAFm76F.js +1491 -0
- package/dist/IconButton-CQJ8wZE8.js +183 -0
- package/dist/Input-Bf5G3tFN.js +324 -0
- package/dist/OutlinedInput-BEVE8VZQ.js +452 -0
- package/dist/Paper-CaiWdndQ.js +162 -0
- package/dist/Select-DxpxZbJp.js +2526 -0
- package/dist/Source-CnCcu5UP.js +4374 -0
- package/dist/Text-BT5kPHOo.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 +8 -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/has-9_asnBxn.js +688 -0
- package/dist/hooks/useMenuLogic.js +21 -0
- package/dist/hooks/useToggle.js +23 -0
- package/dist/index-Bw_m9ult.js +1105 -0
- package/dist/index-IvOfmM1F.js +34 -0
- package/dist/index-wW2D1aTG.js +957 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/isMuiElement-CxT3_ACP.js +13 -0
- package/dist/listItemTextClasses-BvXFz-Oc.js +132 -0
- package/dist/main.d.ts +1317 -0
- package/dist/main.js +41 -2
- package/dist/ol-DXmSLlWv.js +15041 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/styled-C43K9x7T.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-DLpkeyhZ.js +365 -0
- package/package.json +26 -5
- package/dist/styled-BG5UIpPU.js +0 -3459
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { a as s, _ as B } from "./extends-C3382pL0.js";
|
|
2
|
+
import * as W from "react";
|
|
3
|
+
import { c as f, P as t } from "./createTheme-agWfFD64.js";
|
|
4
|
+
import { g as C, u as M, c as O, a as j } from "./chainPropTypes-DtBfUj5o.js";
|
|
5
|
+
import { g as P, s as N, e as R } from "./styled-Iq9jsO4F.js";
|
|
6
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
7
|
+
function U(a) {
|
|
8
|
+
return P("MuiTypography", a);
|
|
9
|
+
}
|
|
10
|
+
C("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
11
|
+
const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (a) => {
|
|
12
|
+
const {
|
|
13
|
+
align: o,
|
|
14
|
+
gutterBottom: r,
|
|
15
|
+
noWrap: e,
|
|
16
|
+
paragraph: i,
|
|
17
|
+
variant: n,
|
|
18
|
+
classes: h
|
|
19
|
+
} = a, p = {
|
|
20
|
+
root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
|
|
21
|
+
};
|
|
22
|
+
return j(p, U, h);
|
|
23
|
+
}, L = N("span", {
|
|
24
|
+
name: "MuiTypography",
|
|
25
|
+
slot: "Root",
|
|
26
|
+
overridesResolver: (a, o) => {
|
|
27
|
+
const {
|
|
28
|
+
ownerState: r
|
|
29
|
+
} = a;
|
|
30
|
+
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];
|
|
31
|
+
}
|
|
32
|
+
})(({
|
|
33
|
+
theme: a,
|
|
34
|
+
ownerState: o
|
|
35
|
+
}) => s({
|
|
36
|
+
margin: 0
|
|
37
|
+
}, o.variant === "inherit" && {
|
|
38
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
39
|
+
font: "inherit"
|
|
40
|
+
}, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
|
|
41
|
+
textAlign: o.align
|
|
42
|
+
}, o.noWrap && {
|
|
43
|
+
overflow: "hidden",
|
|
44
|
+
textOverflow: "ellipsis",
|
|
45
|
+
whiteSpace: "nowrap"
|
|
46
|
+
}, o.gutterBottom && {
|
|
47
|
+
marginBottom: "0.35em"
|
|
48
|
+
}, o.paragraph && {
|
|
49
|
+
marginBottom: 16
|
|
50
|
+
})), u = {
|
|
51
|
+
h1: "h1",
|
|
52
|
+
h2: "h2",
|
|
53
|
+
h3: "h3",
|
|
54
|
+
h4: "h4",
|
|
55
|
+
h5: "h5",
|
|
56
|
+
h6: "h6",
|
|
57
|
+
subtitle1: "h6",
|
|
58
|
+
subtitle2: "h6",
|
|
59
|
+
body1: "p",
|
|
60
|
+
body2: "p",
|
|
61
|
+
inherit: "p"
|
|
62
|
+
}, V = {
|
|
63
|
+
primary: "primary.main",
|
|
64
|
+
textPrimary: "text.primary",
|
|
65
|
+
secondary: "secondary.main",
|
|
66
|
+
textSecondary: "text.secondary",
|
|
67
|
+
error: "error.main"
|
|
68
|
+
}, $ = (a) => V[a] || a, z = /* @__PURE__ */ W.forwardRef(function(o, r) {
|
|
69
|
+
const e = M({
|
|
70
|
+
props: o,
|
|
71
|
+
name: "MuiTypography"
|
|
72
|
+
}), i = $(e.color), n = R(s({}, e, {
|
|
73
|
+
color: i
|
|
74
|
+
})), {
|
|
75
|
+
align: h = "inherit",
|
|
76
|
+
className: p,
|
|
77
|
+
component: g,
|
|
78
|
+
gutterBottom: d = !1,
|
|
79
|
+
noWrap: b = !1,
|
|
80
|
+
paragraph: c = !1,
|
|
81
|
+
variant: l = "body1",
|
|
82
|
+
variantMapping: m = u
|
|
83
|
+
} = n, v = B(n, D), y = s({}, n, {
|
|
84
|
+
align: h,
|
|
85
|
+
color: i,
|
|
86
|
+
className: p,
|
|
87
|
+
component: g,
|
|
88
|
+
gutterBottom: d,
|
|
89
|
+
noWrap: b,
|
|
90
|
+
paragraph: c,
|
|
91
|
+
variant: l,
|
|
92
|
+
variantMapping: m
|
|
93
|
+
}), T = g || (c ? "p" : m[l] || u[l]) || "span", x = E(y);
|
|
94
|
+
return /* @__PURE__ */ _(L, s({
|
|
95
|
+
as: T,
|
|
96
|
+
ref: r,
|
|
97
|
+
ownerState: y,
|
|
98
|
+
className: O(x.root, p)
|
|
99
|
+
}, v));
|
|
100
|
+
});
|
|
101
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
102
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
103
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
104
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
105
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
106
|
+
/**
|
|
107
|
+
* Set the text-align on the component.
|
|
108
|
+
* @default 'inherit'
|
|
109
|
+
*/
|
|
110
|
+
align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
111
|
+
/**
|
|
112
|
+
* The content of the component.
|
|
113
|
+
*/
|
|
114
|
+
children: t.node,
|
|
115
|
+
/**
|
|
116
|
+
* Override or extend the styles applied to the component.
|
|
117
|
+
*/
|
|
118
|
+
classes: t.object,
|
|
119
|
+
/**
|
|
120
|
+
* @ignore
|
|
121
|
+
*/
|
|
122
|
+
className: t.string,
|
|
123
|
+
/**
|
|
124
|
+
* The component used for the root node.
|
|
125
|
+
* Either a string to use a HTML element or a component.
|
|
126
|
+
*/
|
|
127
|
+
component: t.elementType,
|
|
128
|
+
/**
|
|
129
|
+
* If `true`, the text will have a bottom margin.
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
gutterBottom: t.bool,
|
|
133
|
+
/**
|
|
134
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
135
|
+
*
|
|
136
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
137
|
+
* (the element needs to have a width in order to overflow).
|
|
138
|
+
* @default false
|
|
139
|
+
*/
|
|
140
|
+
noWrap: t.bool,
|
|
141
|
+
/**
|
|
142
|
+
* If `true`, the element will be a paragraph element.
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
paragraph: t.bool,
|
|
146
|
+
/**
|
|
147
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
148
|
+
*/
|
|
149
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
150
|
+
/**
|
|
151
|
+
* Applies the theme typography styles.
|
|
152
|
+
* @default 'body1'
|
|
153
|
+
*/
|
|
154
|
+
variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
|
|
155
|
+
/**
|
|
156
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
157
|
+
* For instance, subtitle1 to `<h6>`.
|
|
158
|
+
* If you wish to change that mapping, you can provide your own.
|
|
159
|
+
* Alternatively, you can use the `component` prop.
|
|
160
|
+
* @default {
|
|
161
|
+
* h1: 'h1',
|
|
162
|
+
* h2: 'h2',
|
|
163
|
+
* h3: 'h3',
|
|
164
|
+
* h4: 'h4',
|
|
165
|
+
* h5: 'h5',
|
|
166
|
+
* h6: 'h6',
|
|
167
|
+
* subtitle1: 'h6',
|
|
168
|
+
* subtitle2: 'h6',
|
|
169
|
+
* body1: 'p',
|
|
170
|
+
* body2: 'p',
|
|
171
|
+
* inherit: 'p',
|
|
172
|
+
* }
|
|
173
|
+
*/
|
|
174
|
+
variantMapping: t.object
|
|
175
|
+
});
|
|
176
|
+
export {
|
|
177
|
+
z as T
|
|
178
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function n(e, r) {
|
|
2
|
+
return n = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
|
|
3
|
+
return t.__proto__ = i, t;
|
|
4
|
+
}, n(e, r);
|
|
5
|
+
}
|
|
6
|
+
function o(e) {
|
|
7
|
+
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8
|
+
return e;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
n as _,
|
|
12
|
+
o as a
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--PhoneInput-color--focus: #03b2cb;--PhoneInputInternationalIconPhone-opacity: .8;--PhoneInputInternationalIconGlobe-opacity: .65;--PhoneInputCountrySelect-marginRight: .35em;--PhoneInputCountrySelectArrow-width: .3em;--PhoneInputCountrySelectArrow-marginLeft: var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth: 1px;--PhoneInputCountrySelectArrow-opacity: .45;--PhoneInputCountrySelectArrow-color: currentColor;--PhoneInputCountrySelectArrow-color--focus: var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform: rotate(45deg);--PhoneInputCountryFlag-aspectRatio: 1.5;--PhoneInputCountryFlag-height: 1em;--PhoneInputCountryFlag-borderWidth: 1px;--PhoneInputCountryFlag-borderColor: rgba(0,0,0,.5);--PhoneInputCountryFlag-borderColor--focus: var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading: rgba(0,0,0,.1)}.PhoneInput{display:flex;align-items:center}.PhoneInputInput{flex:1;min-width:0}.PhoneInputCountryIcon{width:calc(var(--PhoneInputCountryFlag-height) * var(--PhoneInputCountryFlag-aspectRatio));height:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--square{width:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--border{background-color:var(--PhoneInputCountryFlag-backgroundColor--loading);box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor)}.PhoneInputCountryIconImg{display:block;width:100%;height:100%}.PhoneInputInternationalIconPhone{opacity:var(--PhoneInputInternationalIconPhone-opacity)}.PhoneInputInternationalIconGlobe{opacity:var(--PhoneInputInternationalIconGlobe-opacity)}.PhoneInputCountry{position:relative;align-self:stretch;display:flex;align-items:center;margin-right:var(--PhoneInputCountrySelect-marginRight)}.PhoneInputCountrySelect{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1;border:0;opacity:0;cursor:pointer}.PhoneInputCountrySelect[disabled],.PhoneInputCountrySelect[readonly]{cursor:default}.PhoneInputCountrySelectArrow{display:block;content:"";width:var(--PhoneInputCountrySelectArrow-width);height:var(--PhoneInputCountrySelectArrow-width);margin-left:var(--PhoneInputCountrySelectArrow-marginLeft);border-style:solid;border-color:var(--PhoneInputCountrySelectArrow-color);border-top-width:0;border-bottom-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-left-width:0;border-right-width:var(--PhoneInputCountrySelectArrow-borderWidth);transform:var(--PhoneInputCountrySelectArrow-transform);opacity:var(--PhoneInputCountrySelectArrow-opacity)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon+.PhoneInputCountrySelectArrow{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon--border{box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon .PhoneInputInternationalIconGlobe{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { P as u } from "./createTheme-agWfFD64.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import { a as c } from "./extends-C3382pL0.js";
|
|
5
|
+
import { g as h } from "./styled-Iq9jsO4F.js";
|
|
6
|
+
function d(e) {
|
|
7
|
+
var o, n, t = "";
|
|
8
|
+
if (typeof e == "string" || typeof e == "number") t += e;
|
|
9
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
10
|
+
var r = e.length;
|
|
11
|
+
for (o = 0; o < r; o++) e[o] && (n = d(e[o])) && (t && (t += " "), t += n);
|
|
12
|
+
} else for (n in e) e[n] && (t && (t += " "), t += n);
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
function O() {
|
|
16
|
+
for (var e, o, n = 0, t = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (o = d(e)) && (t && (t += " "), t += o);
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
function P(e, o, n = void 0) {
|
|
20
|
+
const t = {};
|
|
21
|
+
return Object.keys(e).forEach(
|
|
22
|
+
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
23
|
+
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
24
|
+
(r) => {
|
|
25
|
+
t[r] = e[r].reduce((s, i) => {
|
|
26
|
+
if (i) {
|
|
27
|
+
const l = o(i);
|
|
28
|
+
l !== "" && s.push(l), n && n[i] && s.push(n[i]);
|
|
29
|
+
}
|
|
30
|
+
return s;
|
|
31
|
+
}, []).join(" ");
|
|
32
|
+
}
|
|
33
|
+
), t;
|
|
34
|
+
}
|
|
35
|
+
function f(e, o) {
|
|
36
|
+
const n = c({}, o);
|
|
37
|
+
return Object.keys(e).forEach((t) => {
|
|
38
|
+
if (t.toString().match(/^(components|slots)$/))
|
|
39
|
+
n[t] = c({}, e[t], n[t]);
|
|
40
|
+
else if (t.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
41
|
+
const r = e[t] || {}, s = o[t];
|
|
42
|
+
n[t] = {}, !s || !Object.keys(s) ? n[t] = r : !r || !Object.keys(r) ? n[t] = s : (n[t] = c({}, s), Object.keys(r).forEach((i) => {
|
|
43
|
+
n[t][i] = f(r[i], s[i]);
|
|
44
|
+
}));
|
|
45
|
+
} else n[t] === void 0 && (n[t] = e[t]);
|
|
46
|
+
}), n;
|
|
47
|
+
}
|
|
48
|
+
const v = /* @__PURE__ */ a.createContext(void 0);
|
|
49
|
+
process.env.NODE_ENV !== "production" && (u.node, u.object);
|
|
50
|
+
function y(e) {
|
|
51
|
+
const {
|
|
52
|
+
theme: o,
|
|
53
|
+
name: n,
|
|
54
|
+
props: t
|
|
55
|
+
} = e;
|
|
56
|
+
if (!o || !o.components || !o.components[n])
|
|
57
|
+
return t;
|
|
58
|
+
const r = o.components[n];
|
|
59
|
+
return r.defaultProps ? f(r.defaultProps, t) : !r.styleOverrides && !r.variants ? f(r, t) : t;
|
|
60
|
+
}
|
|
61
|
+
function g({
|
|
62
|
+
props: e,
|
|
63
|
+
name: o
|
|
64
|
+
}) {
|
|
65
|
+
const n = a.useContext(v);
|
|
66
|
+
return y({
|
|
67
|
+
props: e,
|
|
68
|
+
name: o,
|
|
69
|
+
theme: {
|
|
70
|
+
components: n
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
process.env.NODE_ENV !== "production" && (u.node, u.object.isRequired);
|
|
75
|
+
function p(e) {
|
|
76
|
+
return g(e);
|
|
77
|
+
}
|
|
78
|
+
function x(e, o, n = "Mui") {
|
|
79
|
+
const t = {};
|
|
80
|
+
return o.forEach((r) => {
|
|
81
|
+
t[r] = h(e, r, n);
|
|
82
|
+
}), t;
|
|
83
|
+
}
|
|
84
|
+
function C(e, o) {
|
|
85
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...t) {
|
|
86
|
+
return e(...t) || o(...t);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
P as a,
|
|
91
|
+
C as b,
|
|
92
|
+
O as c,
|
|
93
|
+
x as g,
|
|
94
|
+
f as r,
|
|
95
|
+
p as u
|
|
96
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import f from "lodash";
|
|
2
|
+
const i = (s, e) => !!f.get(e, s, !1), a = (s, e) => {
|
|
3
|
+
if (!e || !i("UI", e)) return !1;
|
|
4
|
+
if (f.get(e, "UI.access") === "ALL") return !0;
|
|
5
|
+
if (s.includes(".")) {
|
|
6
|
+
let r = "UI";
|
|
7
|
+
const t = s.split(".");
|
|
8
|
+
for (const n of t)
|
|
9
|
+
if (r += `.permissions.${n}`, i(`${r}.access`, e)) return !0;
|
|
10
|
+
return !1;
|
|
11
|
+
}
|
|
12
|
+
return i(`UI.permissions.${s}`, e);
|
|
13
|
+
}, u = (s, e, r) => {
|
|
14
|
+
const t = f.get(r, s, null);
|
|
15
|
+
return t === e || e === "READ" && (t === "ALL" || t === "SUPER_ADMIN") || e === "ALL" && t === "SUPER_ADMIN";
|
|
16
|
+
}, A = (s, e, r) => {
|
|
17
|
+
const [t, n, o] = s.split(".");
|
|
18
|
+
return !!(u("DATA.access", e, r) || u(`DATA.permissions.${t}.access`, e, r) || u(
|
|
19
|
+
`DATA.permissions.${t}.permissions.${n}.access`,
|
|
20
|
+
e,
|
|
21
|
+
r
|
|
22
|
+
) || u(
|
|
23
|
+
`DATA.permissions.${t}.permissions.${n}.permissions.${o}.access`,
|
|
24
|
+
e,
|
|
25
|
+
r
|
|
26
|
+
));
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
u as hasAccess,
|
|
30
|
+
A as hasDataAccess,
|
|
31
|
+
a as hasUIAccess
|
|
32
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { hasUIAccess as f } from "./helpers.js";
|
|
3
|
+
import n from "lodash";
|
|
4
|
+
import { Loading as d } from "../loading/index.js";
|
|
5
|
+
const A = ({
|
|
6
|
+
pagePath: s,
|
|
7
|
+
feature: o,
|
|
8
|
+
appRoles: t,
|
|
9
|
+
fallback: i,
|
|
10
|
+
loading: e = !1,
|
|
11
|
+
children: r
|
|
12
|
+
}) => (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__ */ m(d, { show: !0, position: "fixed", top: 0, left: 0, zIndex: 99999 }) : o && f(o, t) && r ? r : i || null);
|
|
13
|
+
export {
|
|
14
|
+
A as Access
|
|
15
|
+
};
|