@hybridcore/ui 1.6.0 → 1.6.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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { P as u } from "./index-C__OZmYy.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import p from "react";
|
|
4
|
+
import { _ as d } from "./setPrototypeOf-NPgp4cYc.js";
|
|
5
|
+
const _ = u.oneOfType([u.func, u.object]);
|
|
6
|
+
function m(e, t) {
|
|
7
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...o) {
|
|
8
|
+
return e(...o) || t(...o);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function y(e) {
|
|
12
|
+
const {
|
|
13
|
+
prototype: t = {}
|
|
14
|
+
} = e;
|
|
15
|
+
return !!t.isReactComponent;
|
|
16
|
+
}
|
|
17
|
+
function h(e, t, n, o, a) {
|
|
18
|
+
const c = e[t], l = a || t;
|
|
19
|
+
if (c == null || // When server-side rendering React doesn't warn either.
|
|
20
|
+
// This is not an accurate check for SSR.
|
|
21
|
+
// This is only in place for emotion compat.
|
|
22
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
23
|
+
typeof window > "u")
|
|
24
|
+
return null;
|
|
25
|
+
let s;
|
|
26
|
+
return typeof c == "function" && !y(c) && (s = "Did you accidentally provide a plain function component instead?"), s !== void 0 ? new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
27
|
+
}
|
|
28
|
+
const O = m(u.elementType, h);
|
|
29
|
+
function E(e, t) {
|
|
30
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
31
|
+
}
|
|
32
|
+
function $(...e) {
|
|
33
|
+
return r.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
34
|
+
e.forEach((n) => {
|
|
35
|
+
E(n, t);
|
|
36
|
+
});
|
|
37
|
+
}, e);
|
|
38
|
+
}
|
|
39
|
+
const T = typeof window < "u" ? r.useLayoutEffect : r.useEffect;
|
|
40
|
+
function b(e) {
|
|
41
|
+
const t = r.useRef(e);
|
|
42
|
+
return T(() => {
|
|
43
|
+
t.current = e;
|
|
44
|
+
}), r.useRef((...n) => (
|
|
45
|
+
// @ts-expect-error hide `this`
|
|
46
|
+
(0, t.current)(...n)
|
|
47
|
+
)).current;
|
|
48
|
+
}
|
|
49
|
+
const f = {};
|
|
50
|
+
function I(e, t) {
|
|
51
|
+
const n = r.useRef(f);
|
|
52
|
+
return n.current === f && (n.current = e(t)), n;
|
|
53
|
+
}
|
|
54
|
+
const R = [];
|
|
55
|
+
function w(e) {
|
|
56
|
+
r.useEffect(e, R);
|
|
57
|
+
}
|
|
58
|
+
class i {
|
|
59
|
+
constructor() {
|
|
60
|
+
this.currentId = null, this.clear = () => {
|
|
61
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
62
|
+
}, this.disposeEffect = () => this.clear;
|
|
63
|
+
}
|
|
64
|
+
static create() {
|
|
65
|
+
return new i();
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
69
|
+
*/
|
|
70
|
+
start(t, n) {
|
|
71
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
72
|
+
this.currentId = null, n();
|
|
73
|
+
}, t);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function x() {
|
|
77
|
+
const e = I(i.create).current;
|
|
78
|
+
return w(e.disposeEffect), e;
|
|
79
|
+
}
|
|
80
|
+
function L(e, t) {
|
|
81
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, d(e, t);
|
|
82
|
+
}
|
|
83
|
+
const N = p.createContext(null);
|
|
84
|
+
export {
|
|
85
|
+
i as T,
|
|
86
|
+
L as _,
|
|
87
|
+
T as a,
|
|
88
|
+
b,
|
|
89
|
+
m as c,
|
|
90
|
+
N as d,
|
|
91
|
+
x as e,
|
|
92
|
+
O as f,
|
|
93
|
+
_ as r,
|
|
94
|
+
E as s,
|
|
95
|
+
$ as u
|
|
96
|
+
};
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { a as s, _ as B } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
2
|
import * as W from "react";
|
|
3
|
-
import { P as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { s as N } from "./styled-eZwjUruw.js";
|
|
7
|
-
import { g as R } from "./createTheme-DYxDnE9u.js";
|
|
3
|
+
import { P as t } from "./index-C__OZmYy.js";
|
|
4
|
+
import { c as C } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { a as M, g as O, s as j, b as f, u as P, e as N, c as R } from "./generateUtilityClasses-C3ivN9Ie.js";
|
|
8
6
|
import { jsx as _ } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return R("MuiTypography", r);
|
|
7
|
+
function U(a) {
|
|
8
|
+
return M("MuiTypography", a);
|
|
12
9
|
}
|
|
13
|
-
|
|
14
|
-
const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (
|
|
10
|
+
O("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) => {
|
|
15
12
|
const {
|
|
16
|
-
align:
|
|
17
|
-
gutterBottom:
|
|
18
|
-
noWrap:
|
|
13
|
+
align: o,
|
|
14
|
+
gutterBottom: r,
|
|
15
|
+
noWrap: e,
|
|
19
16
|
paragraph: i,
|
|
20
|
-
variant:
|
|
17
|
+
variant: n,
|
|
21
18
|
classes: h
|
|
22
|
-
} =
|
|
23
|
-
root: ["root",
|
|
19
|
+
} = a, p = {
|
|
20
|
+
root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
|
|
24
21
|
};
|
|
25
|
-
return
|
|
26
|
-
}, L =
|
|
22
|
+
return R(p, U, h);
|
|
23
|
+
}, L = j("span", {
|
|
27
24
|
name: "MuiTypography",
|
|
28
25
|
slot: "Root",
|
|
29
|
-
overridesResolver: (
|
|
26
|
+
overridesResolver: (a, o) => {
|
|
30
27
|
const {
|
|
31
|
-
ownerState:
|
|
32
|
-
} =
|
|
33
|
-
return [
|
|
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];
|
|
34
31
|
}
|
|
35
32
|
})(({
|
|
36
|
-
theme:
|
|
37
|
-
ownerState:
|
|
33
|
+
theme: a,
|
|
34
|
+
ownerState: o
|
|
38
35
|
}) => s({
|
|
39
36
|
margin: 0
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
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
43
|
overflow: "hidden",
|
|
44
44
|
textOverflow: "ellipsis",
|
|
45
45
|
whiteSpace: "nowrap"
|
|
46
|
-
},
|
|
46
|
+
}, o.gutterBottom && {
|
|
47
47
|
marginBottom: "0.35em"
|
|
48
|
-
},
|
|
48
|
+
}, o.paragraph && {
|
|
49
49
|
marginBottom: 16
|
|
50
50
|
})), u = {
|
|
51
51
|
h1: "h1",
|
|
@@ -65,11 +65,11 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
|
|
|
65
65
|
secondary: "secondary.main",
|
|
66
66
|
textSecondary: "text.secondary",
|
|
67
67
|
error: "error.main"
|
|
68
|
-
}, $ = (
|
|
69
|
-
const
|
|
70
|
-
props:
|
|
68
|
+
}, $ = (a) => V[a] || a, z = /* @__PURE__ */ W.forwardRef(function(o, r) {
|
|
69
|
+
const e = P({
|
|
70
|
+
props: o,
|
|
71
71
|
name: "MuiTypography"
|
|
72
|
-
}), i = $(
|
|
72
|
+
}), i = $(e.color), n = N(s({}, e, {
|
|
73
73
|
color: i
|
|
74
74
|
})), {
|
|
75
75
|
align: h = "inherit",
|
|
@@ -80,7 +80,7 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
|
|
|
80
80
|
paragraph: c = !1,
|
|
81
81
|
variant: l = "body1",
|
|
82
82
|
variantMapping: m = u
|
|
83
|
-
} =
|
|
83
|
+
} = n, v = B(n, D), y = s({}, n, {
|
|
84
84
|
align: h,
|
|
85
85
|
color: i,
|
|
86
86
|
className: p,
|
|
@@ -93,43 +93,43 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
|
|
|
93
93
|
}), T = g || (c ? "p" : m[l] || u[l]) || "span", x = E(y);
|
|
94
94
|
return /* @__PURE__ */ _(L, s({
|
|
95
95
|
as: T,
|
|
96
|
-
ref:
|
|
96
|
+
ref: r,
|
|
97
97
|
ownerState: y,
|
|
98
|
-
className:
|
|
98
|
+
className: C(x.root, p)
|
|
99
99
|
}, v));
|
|
100
100
|
});
|
|
101
|
-
process.env.NODE_ENV !== "production" && (
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
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
106
|
/**
|
|
107
107
|
* Set the text-align on the component.
|
|
108
108
|
* @default 'inherit'
|
|
109
109
|
*/
|
|
110
|
-
align:
|
|
110
|
+
align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
111
111
|
/**
|
|
112
112
|
* The content of the component.
|
|
113
113
|
*/
|
|
114
|
-
children:
|
|
114
|
+
children: t.node,
|
|
115
115
|
/**
|
|
116
116
|
* Override or extend the styles applied to the component.
|
|
117
117
|
*/
|
|
118
|
-
classes:
|
|
118
|
+
classes: t.object,
|
|
119
119
|
/**
|
|
120
120
|
* @ignore
|
|
121
121
|
*/
|
|
122
|
-
className:
|
|
122
|
+
className: t.string,
|
|
123
123
|
/**
|
|
124
124
|
* The component used for the root node.
|
|
125
125
|
* Either a string to use a HTML element or a component.
|
|
126
126
|
*/
|
|
127
|
-
component:
|
|
127
|
+
component: t.elementType,
|
|
128
128
|
/**
|
|
129
129
|
* If `true`, the text will have a bottom margin.
|
|
130
130
|
* @default false
|
|
131
131
|
*/
|
|
132
|
-
gutterBottom:
|
|
132
|
+
gutterBottom: t.bool,
|
|
133
133
|
/**
|
|
134
134
|
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
135
135
|
*
|
|
@@ -137,21 +137,21 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
137
137
|
* (the element needs to have a width in order to overflow).
|
|
138
138
|
* @default false
|
|
139
139
|
*/
|
|
140
|
-
noWrap:
|
|
140
|
+
noWrap: t.bool,
|
|
141
141
|
/**
|
|
142
142
|
* If `true`, the element will be a paragraph element.
|
|
143
143
|
* @default false
|
|
144
144
|
*/
|
|
145
|
-
paragraph:
|
|
145
|
+
paragraph: t.bool,
|
|
146
146
|
/**
|
|
147
147
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
148
148
|
*/
|
|
149
|
-
sx:
|
|
149
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
150
150
|
/**
|
|
151
151
|
* Applies the theme typography styles.
|
|
152
152
|
* @default 'body1'
|
|
153
153
|
*/
|
|
154
|
-
variant:
|
|
154
|
+
variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
|
|
155
155
|
/**
|
|
156
156
|
* The component maps the variant prop to a range of different HTML element types.
|
|
157
157
|
* For instance, subtitle1 to `<h6>`.
|
|
@@ -171,8 +171,8 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
171
171
|
* inherit: 'p',
|
|
172
172
|
* }
|
|
173
173
|
*/
|
|
174
|
-
variantMapping:
|
|
174
|
+
variantMapping: t.object
|
|
175
175
|
});
|
|
176
176
|
export {
|
|
177
|
-
|
|
177
|
+
z as T
|
|
178
178
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.react-daterange-picker{display:inline-flex;position:relative}.react-daterange-picker,.react-daterange-picker *,.react-daterange-picker *:before,.react-daterange-picker *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-daterange-picker--disabled{background-color:#f0f0f0;color:#6d6d6d}.react-daterange-picker__wrapper{display:flex;flex-grow:1;flex-shrink:0;align-items:center;border:thin solid gray}.react-daterange-picker__inputGroup{min-width:calc((4px * 3) + .54em * 8 + .217em * 2);height:100%;flex-grow:1;padding:0 2px;box-sizing:content-box}.react-daterange-picker__inputGroup__divider{padding:1px 0;white-space:pre}.react-daterange-picker__inputGroup__divider,.react-daterange-picker__inputGroup__leadingZero{display:inline-block}.react-daterange-picker__inputGroup__input{min-width:.54em;height:100%;position:relative;padding:0 1px;border:0;background:none;color:currentColor;font:inherit;box-sizing:content-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.react-daterange-picker__inputGroup__input::-webkit-outer-spin-button,.react-daterange-picker__inputGroup__input::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.react-daterange-picker__inputGroup__input:invalid{background:#ff00001a}.react-daterange-picker__inputGroup__input--hasLeadingZero{margin-left:-.54em;padding-left:calc(1px + .54em)}.react-daterange-picker__button{border:0;background:transparent;padding:4px 6px}.react-daterange-picker__button:enabled{cursor:pointer}.react-daterange-picker__button:enabled:hover .react-daterange-picker__button__icon,.react-daterange-picker__button:enabled:focus .react-daterange-picker__button__icon{stroke:#0078d7}.react-daterange-picker__button:disabled .react-daterange-picker__button__icon{stroke:#6d6d6d}.react-daterange-picker__button svg{display:inherit}.react-daterange-picker__calendar{width:350px;max-width:100vw;z-index:1}.react-daterange-picker__calendar--closed{display:none}.react-daterange-picker__calendar .react-calendar{border-width:thin}.react-calendar{width:350px;max-width:100%;background:#fff;border:1px solid #a0a096;font-family:Arial,Helvetica,sans-serif;line-height:1.125em}.react-calendar--doubleView{width:700px}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar,.react-calendar *,.react-calendar *:before,.react-calendar *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-calendar button{margin:0;border:0;outline:none}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:44px;margin-bottom:1em}.react-calendar__navigation button{min-width:44px;background:none}.react-calendar__navigation button:disabled{background-color:#f0f0f0}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#e6e6e6}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font:inherit;font-size:.75em;font-weight:700}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekNumbers .react-calendar__tile{display:flex;align-items:center;justify-content:center;font:inherit;font-size:.75em;font-weight:700}.react-calendar__month-view__days__day--weekend{color:#d10000}.react-calendar__month-view__days__day--neighboringMonth,.react-calendar__decade-view__years__year--neighboringDecade,.react-calendar__century-view__decades__decade--neighboringCentury{color:#757575}.react-calendar__year-view .react-calendar__tile,.react-calendar__decade-view .react-calendar__tile,.react-calendar__century-view .react-calendar__tile{padding:2em .5em}.react-calendar__tile{max-width:100%;padding:10px 6.6667px;background:none;text-align:center;line-height:16px;font:inherit;font-size:.833em}.react-calendar__tile:disabled{background-color:#f0f0f0;color:#ababab}.react-calendar__month-view__days__day--neighboringMonth:disabled,.react-calendar__decade-view__years__year--neighboringDecade:disabled,.react-calendar__century-view__decades__decade--neighboringCentury:disabled{color:#cdcdcd}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{background-color:#e6e6e6}.react-calendar__tile--now{background:#ffff76}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{background:#ffffa9}.react-calendar__tile--hasActive{background:#76baff}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#a9d4ff}.react-calendar__tile--active{background:#006edc;color:#fff}.react-calendar__tile--active:enabled:hover,.react-calendar__tile--active:enabled:focus{background:#1087ff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#e6e6e6}.react-daterange-picker .react-daterange-picker__wrapper{height:40px;border-radius:4px;padding:4px 8px;border:1px solid rgba(0,0,0,.23)}.react-daterange-picker .react-daterange-picker__wrapper:hover{border-color:#000000de}.MuiTypography-root.react-daterange-picker__label{position:absolute;display:block;top:-6px;left:9px;font-size:12px;color:#0009;background-color:#fff;z-index:9;padding:0 4px;line-height:.75rem}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function a(r) {
|
|
2
|
+
var f, n, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
|
|
7
|
+
} else for (n in r) r[n] && (t && (t += " "), t += n);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
i as c
|
|
16
|
+
};
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appRoles: t,
|
|
9
|
-
fallback: i,
|
|
10
|
-
loading: e = !1,
|
|
11
|
-
children: r
|
|
12
|
-
}) {
|
|
13
|
-
return 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__ */ f(d, { show: !0, position: "fixed", top: 0, left: 0, zIndex: 99999 }) : o && m(o, t) && r ? r : i || null;
|
|
14
|
-
}
|
|
1
|
+
import { jsx as t, Fragment as n } from "react/jsx-runtime";
|
|
2
|
+
import { Loading as l } from "../loading/index.js";
|
|
3
|
+
import { useAccessLogic as a } from "./logic.js";
|
|
4
|
+
const m = (e) => {
|
|
5
|
+
const { state: r } = a(e), { loading: i, granted: c, isPagePath: o } = r;
|
|
6
|
+
return o && i ? /* @__PURE__ */ t(l, { show: !0, position: "fixed", top: 0, left: 0, zIndex: 99999 }) : c && e.children ? /* @__PURE__ */ t(n, { children: e.children }) : e.fallback ? /* @__PURE__ */ t(n, { children: e.fallback }) : null;
|
|
7
|
+
};
|
|
15
8
|
export {
|
|
16
|
-
|
|
9
|
+
m as Access
|
|
17
10
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useThemeProps as l } from "@mui/material";
|
|
2
|
+
import r from "lodash";
|
|
3
|
+
import { a as m } from "../../helpers-D4uXfBfO.js";
|
|
4
|
+
const h = (n) => {
|
|
5
|
+
const e = l({ props: n, name: "HCAccess" }), { pagePath: o, appRoles: c, loading: t = !1 } = e;
|
|
6
|
+
let { feature: s } = e;
|
|
7
|
+
if (o) {
|
|
8
|
+
const a = o.split("/").slice(1)[0] || "dashboard";
|
|
9
|
+
a === "dashboard" ? s = "MAIN" : a === "agent-based-simulations" ? s = "SIMULATION" : s = r.toUpper(r.snakeCase(a));
|
|
10
|
+
}
|
|
11
|
+
const p = !!(s && m(s, c)), i = { ...e, loading: t };
|
|
12
|
+
return {
|
|
13
|
+
refs: {},
|
|
14
|
+
state: {
|
|
15
|
+
ownerState: i,
|
|
16
|
+
loading: t,
|
|
17
|
+
granted: p,
|
|
18
|
+
isPagePath: !!o
|
|
19
|
+
},
|
|
20
|
+
actions: {}
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
h as useAccessLogic
|
|
25
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useButtonLogic as i } from "./logic.js";
|
|
3
|
+
import { ButtonRoot as s } from "./styled.js";
|
|
4
|
+
const u = (t) => {
|
|
5
|
+
const { state: o, actions: r } = i(t);
|
|
6
|
+
return /* @__PURE__ */ n(s, { ...o.rest, onClick: r.handleClick });
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
u as Button
|
|
10
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useThemeProps as f } from "@mui/material";
|
|
2
|
+
const m = (c) => {
|
|
3
|
+
const n = f({ props: c, name: "HCButton" }), { to: t, state: i, onNavigate: r, onNavigateBack: s, onClick: e, ...p } = n, u = { ...n };
|
|
4
|
+
return {
|
|
5
|
+
refs: {},
|
|
6
|
+
state: { ownerState: u, rest: p },
|
|
7
|
+
actions: { handleClick: (o) => {
|
|
8
|
+
if (t !== void 0) {
|
|
9
|
+
if (t === "go-back") {
|
|
10
|
+
s == null || s();
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (o.metaKey || o.ctrlKey || o.shiftKey) {
|
|
14
|
+
window.open(t, "_blank");
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
r == null || r(t, { state: i });
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
e == null || e(o);
|
|
21
|
+
} }
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
m as useButtonLogic
|
|
26
|
+
};
|