@hybridcore/ui 1.6.1 → 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-C5yquWAB.js +357 -0
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
- package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
- package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
- 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-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
- 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/logic.js +1 -1
- 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/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/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 +18 -15
- package/dist/components/data-security-selectors/security-level/logic.js +18 -63
- package/dist/components/data-security-selectors/security-level/styled.js +23 -17
- 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 -86
- 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 -9
- 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/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +11 -11
- 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/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/styled.js +1106 -1034
- 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-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 -12
- 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 -22
- 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 -308
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- 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 +1 -1
- 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-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
- 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-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
- package/dist/main.d.ts +1054 -330
- package/dist/main.js +163 -130
- 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/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-CMg08YSA.js +0 -739
- package/dist/Add-DuVVJeQU.js +0 -380
- package/dist/ButtonBase-sObABYY2.js +0 -965
- package/dist/FormControl-BCurCxRj.js +0 -1294
- package/dist/FormControlLabel-BkRfrhNy.js +0 -601
- package/dist/InputAdornment-C7PEvvYr.js +0 -155
- package/dist/Modal-DlB6GH-f.js +0 -1659
- package/dist/Paper-q9kKjAKx.js +0 -527
- package/dist/TextField-DSDIEEKu.js +0 -3161
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-quqpGCFu.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 -47
- package/dist/components/key-protection/logic.js +0 -40
- package/dist/components/key-protection/styled.js +0 -45
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/createSvgIcon-BM3-TsGy.js +0 -70
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-DPKUmQnz.js +0 -501
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isMuiElement-BkJ72LB3.js +0 -26
- package/dist/property-list-form-DL_dEoNn.js +0 -381
- package/dist/styled-Bsjp3kFh.js +0 -668
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/utils-Cxu-fHjQ.js +0 -115
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { f as e } from "./styled-Bsjp3kFh.js";
|
|
2
|
-
function o(r) {
|
|
3
|
-
if (typeof r != "string")
|
|
4
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : e(7));
|
|
5
|
-
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
o as c
|
|
9
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { styled as i, Box as r, Button as n } from "@mui/material";
|
|
2
|
-
const p = i(r)(({ theme: o, variant: t }) => ({
|
|
3
|
-
position: "relative",
|
|
4
|
-
width: "100%",
|
|
5
|
-
boxSizing: "border-box",
|
|
6
|
-
...t === "outlined" ? {
|
|
7
|
-
border: "1px solid",
|
|
8
|
-
padding: "10px 60px 10px 10px",
|
|
9
|
-
borderRadius: o.spacing(0.5),
|
|
10
|
-
"& .MuiButton-root": {
|
|
11
|
-
margin: "14px 8px"
|
|
12
|
-
},
|
|
13
|
-
"& .MuiTypography-root": {
|
|
14
|
-
position: "absolute",
|
|
15
|
-
top: -15,
|
|
16
|
-
left: 10,
|
|
17
|
-
paddingLeft: 4,
|
|
18
|
-
paddingRight: 4,
|
|
19
|
-
backgroundColor: o.palette.background.default
|
|
20
|
-
}
|
|
21
|
-
} : {
|
|
22
|
-
borderBottom: "1px solid",
|
|
23
|
-
paddingBottom: o.spacing(0.5)
|
|
24
|
-
},
|
|
25
|
-
borderColor: o.palette.action.disabled,
|
|
26
|
-
"&:hover": {
|
|
27
|
-
borderColor: o.palette.action.active
|
|
28
|
-
}
|
|
29
|
-
})), d = i(r)(({ theme: o }) => ({
|
|
30
|
-
minHeight: 33,
|
|
31
|
-
whiteSpace: "normal",
|
|
32
|
-
"& .MuiChip-root": {
|
|
33
|
-
marginRight: o.spacing(0.5),
|
|
34
|
-
marginTop: o.spacing(0.5)
|
|
35
|
-
},
|
|
36
|
-
"& .MuiChip-root:first-of-type": {
|
|
37
|
-
marginLeft: 0
|
|
38
|
-
}
|
|
39
|
-
})), e = i(n)(({ theme: o, variant: t }) => ({
|
|
40
|
-
position: "absolute",
|
|
41
|
-
top: 0,
|
|
42
|
-
right: 0,
|
|
43
|
-
fontSize: 10,
|
|
44
|
-
padding: "3px 8px",
|
|
45
|
-
minWidth: "auto",
|
|
46
|
-
boxShadow: o.shadows[1],
|
|
47
|
-
textTransform: "none",
|
|
48
|
-
borderRadius: 13,
|
|
49
|
-
marginLeft: o.spacing(0.5),
|
|
50
|
-
"& .MuiButton-startIcon": {
|
|
51
|
-
marginRight: 0.25,
|
|
52
|
-
"& > :nth-of-type(1)": {
|
|
53
|
-
fontSize: 14
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
...t === "contained" && {
|
|
57
|
-
"&:hover": {
|
|
58
|
-
backgroundColor: o.palette.grey[300],
|
|
59
|
-
boxShadow: o.shadows[1]
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
...t === "text" && {
|
|
63
|
-
backgroundColor: o.palette.common.white,
|
|
64
|
-
"&:hover": {
|
|
65
|
-
backgroundColor: o.palette.grey[300]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}));
|
|
69
|
-
export {
|
|
70
|
-
p as Container,
|
|
71
|
-
e as MiniButton,
|
|
72
|
-
d as Values
|
|
73
|
-
};
|
package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { styled as t, Box as n, Button as r } from "@mui/material";
|
|
2
|
-
const p = t(n)(({ theme: o, variant: i }) => ({
|
|
3
|
-
position: "relative",
|
|
4
|
-
width: "100%",
|
|
5
|
-
height: "100%",
|
|
6
|
-
...i === "outlined" ? {
|
|
7
|
-
border: "1px solid",
|
|
8
|
-
padding: "2.5px 60px 2.5px 2.5px",
|
|
9
|
-
borderRadius: o.spacing(0.5),
|
|
10
|
-
"& .MuiButton-root": {
|
|
11
|
-
margin: "7px 8px"
|
|
12
|
-
}
|
|
13
|
-
} : {
|
|
14
|
-
borderBottom: "1px solid",
|
|
15
|
-
paddingBottom: o.spacing(0.5)
|
|
16
|
-
},
|
|
17
|
-
borderColor: o.palette.action.disabled,
|
|
18
|
-
"&:hover": {
|
|
19
|
-
borderColor: o.palette.action.active
|
|
20
|
-
}
|
|
21
|
-
})), d = t(n)(({ theme: o }) => ({
|
|
22
|
-
minHeight: 33,
|
|
23
|
-
paddingTop: o.spacing(1),
|
|
24
|
-
paddingBottom: o.spacing(1),
|
|
25
|
-
overflow: "hidden",
|
|
26
|
-
whiteSpace: "nowrap",
|
|
27
|
-
textOverflow: "ellipsis",
|
|
28
|
-
"& .MuiChip-root": {
|
|
29
|
-
marginRight: o.spacing(0.5),
|
|
30
|
-
marginTop: o.spacing(0.5)
|
|
31
|
-
},
|
|
32
|
-
"& .MuiChip-root:first-of-type": {
|
|
33
|
-
marginLeft: 0
|
|
34
|
-
}
|
|
35
|
-
})), e = t(r)(({ theme: o, variant: i }) => ({
|
|
36
|
-
position: "absolute",
|
|
37
|
-
top: 0,
|
|
38
|
-
right: 0,
|
|
39
|
-
fontSize: 10,
|
|
40
|
-
padding: "3px 8px",
|
|
41
|
-
minWidth: "auto",
|
|
42
|
-
boxShadow: o.shadows[1],
|
|
43
|
-
textTransform: "none",
|
|
44
|
-
borderRadius: 13,
|
|
45
|
-
marginLeft: o.spacing(0.5),
|
|
46
|
-
"& .MuiButton-startIcon": {
|
|
47
|
-
marginRight: 0.25,
|
|
48
|
-
"& > :nth-of-type(1)": {
|
|
49
|
-
fontSize: 14
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
...i === "contained" && {
|
|
53
|
-
"&:hover": {
|
|
54
|
-
backgroundColor: o.palette.grey[300],
|
|
55
|
-
boxShadow: o.shadows[1]
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
...i === "text" && {
|
|
59
|
-
backgroundColor: o.palette.common.white,
|
|
60
|
-
"&:hover": {
|
|
61
|
-
backgroundColor: o.palette.grey[300]
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
65
|
-
export {
|
|
66
|
-
p as Container,
|
|
67
|
-
e as MiniButton,
|
|
68
|
-
d as Values
|
|
69
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Key as i, Add as h } from "@mui/icons-material";
|
|
3
|
-
import { useKeyProtectionMenuLogic as d } from "./logic.js";
|
|
4
|
-
import { KeyProtectionRoot as m, KeyIconButton as p, KeyMenu as y, KeyMenuItem as c, KeyMenuItemIcon as a } from "./styled.js";
|
|
5
|
-
const x = (r) => {
|
|
6
|
-
const { state: l, actions: o } = d(r), { ownerState: s, isOpen: n, anchorEl: u } = l;
|
|
7
|
-
return /* @__PURE__ */ t(m, { ownerState: s, sx: r.sx, children: [
|
|
8
|
-
/* @__PURE__ */ e(
|
|
9
|
-
p,
|
|
10
|
-
{
|
|
11
|
-
size: "large",
|
|
12
|
-
"aria-label": "account of current user",
|
|
13
|
-
onClick: o.open,
|
|
14
|
-
color: "inherit",
|
|
15
|
-
"aria-controls": n ? "key-protection-menu" : void 0,
|
|
16
|
-
"aria-haspopup": "true",
|
|
17
|
-
"aria-expanded": n ? "true" : void 0,
|
|
18
|
-
children: /* @__PURE__ */ e(i, {})
|
|
19
|
-
}
|
|
20
|
-
),
|
|
21
|
-
/* @__PURE__ */ t(
|
|
22
|
-
y,
|
|
23
|
-
{
|
|
24
|
-
id: "key-protection-menu",
|
|
25
|
-
anchorEl: u,
|
|
26
|
-
keepMounted: !0,
|
|
27
|
-
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
28
|
-
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
29
|
-
open: n,
|
|
30
|
-
onClose: o.close,
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ t(c, { onClick: o.handleRegister, children: [
|
|
33
|
-
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(h, { fontSize: "small" }) }),
|
|
34
|
-
"Register Key"
|
|
35
|
-
] }),
|
|
36
|
-
/* @__PURE__ */ t(c, { onClick: o.handleAuth, children: [
|
|
37
|
-
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(i, { fontSize: "small" }) }),
|
|
38
|
-
"Authenticate"
|
|
39
|
-
] })
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
] });
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
x as KeyProtectionMenu
|
|
47
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { useThemeProps as u } from "@mui/material";
|
|
2
|
-
import p from "lodash";
|
|
3
|
-
import d from "../../hooks/useMenuLogic.js";
|
|
4
|
-
import { alert as r } from "../confirm/index.js";
|
|
5
|
-
import { r as m, a as f } from "../../utils-Cxu-fHjQ.js";
|
|
6
|
-
let o;
|
|
7
|
-
const E = (c) => {
|
|
8
|
-
const n = u({
|
|
9
|
-
props: c,
|
|
10
|
-
name: "HCKeyProtectionMenu"
|
|
11
|
-
}), { state: s, action: e } = d(), a = { ...n }, i = async () => {
|
|
12
|
-
e.close();
|
|
13
|
-
const t = await m();
|
|
14
|
-
t ? (o = p.get(t, "rawId"), new Uint8Array(o).toString(), r("Successfull", "Key successfully registered")) : r("Error!", "The key couldn't be registered!");
|
|
15
|
-
}, l = async () => {
|
|
16
|
-
e.close();
|
|
17
|
-
try {
|
|
18
|
-
await f(o), r("Successfull", "Successfully authenticated");
|
|
19
|
-
} catch (t) {
|
|
20
|
-
r("Error!", "Couldn't be authenticated!"), console.error(t);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
refs: {},
|
|
25
|
-
state: {
|
|
26
|
-
ownerState: a,
|
|
27
|
-
isOpen: s.isOpen,
|
|
28
|
-
anchorEl: s.anchorEl
|
|
29
|
-
},
|
|
30
|
-
actions: {
|
|
31
|
-
open: e.open,
|
|
32
|
-
close: e.close,
|
|
33
|
-
handleRegister: i,
|
|
34
|
-
handleAuth: l
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
E as useKeyProtectionMenuLogic
|
|
40
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { styled as o, IconButton as t, Menu as n, MenuItem as r, ListItemIcon as i } from "@mui/material";
|
|
2
|
-
const a = (e) => e !== "ownerState", s = o("div", {
|
|
3
|
-
name: "HCKeyProtectionMenu",
|
|
4
|
-
slot: "root",
|
|
5
|
-
shouldForwardProp: a
|
|
6
|
-
})({
|
|
7
|
-
display: "inline-flex"
|
|
8
|
-
}), u = o(t, {
|
|
9
|
-
name: "HCKeyProtectionMenu",
|
|
10
|
-
slot: "iconButton"
|
|
11
|
-
})({}), l = o(n, {
|
|
12
|
-
name: "HCKeyProtectionMenu",
|
|
13
|
-
slot: "menu"
|
|
14
|
-
})(({ theme: e }) => ({
|
|
15
|
-
"& .MuiPaper-root": {
|
|
16
|
-
overflow: "visible",
|
|
17
|
-
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
|
|
18
|
-
marginTop: e.spacing(1.5),
|
|
19
|
-
"&:before": {
|
|
20
|
-
content: '""',
|
|
21
|
-
display: "block",
|
|
22
|
-
position: "absolute",
|
|
23
|
-
top: 0,
|
|
24
|
-
right: 14,
|
|
25
|
-
width: 10,
|
|
26
|
-
height: 10,
|
|
27
|
-
backgroundColor: e.palette.background.paper,
|
|
28
|
-
transform: "translateY(-50%) rotate(45deg)",
|
|
29
|
-
zIndex: 0
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
})), m = o(r, {
|
|
33
|
-
name: "HCKeyProtectionMenu",
|
|
34
|
-
slot: "menuItem"
|
|
35
|
-
})({}), p = o(i, {
|
|
36
|
-
name: "HCKeyProtectionMenu",
|
|
37
|
-
slot: "menuItemIcon"
|
|
38
|
-
})({});
|
|
39
|
-
export {
|
|
40
|
-
u as KeyIconButton,
|
|
41
|
-
l as KeyMenu,
|
|
42
|
-
m as KeyMenuItem,
|
|
43
|
-
p as KeyMenuItemIcon,
|
|
44
|
-
s as KeyProtectionRoot
|
|
45
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { g as f } from "./_commonjsHelpers-BVfed4GL.js";
|
|
2
|
-
import { c as p } from "./createSvgIcon-DX-SqL8M.js";
|
|
3
|
-
import { C as d } from "./styled-Bsjp3kFh.js";
|
|
4
|
-
import { c as g, o as _, a as v, u as b } from "./useId-B4-oF9Mq.js";
|
|
5
|
-
import { d as h, i as E } from "./isMuiElement-BkJ72LB3.js";
|
|
6
|
-
import { r as N, u as C } from "./unsupportedProp-BND8AB6O.js";
|
|
7
|
-
import { s as I, u as S, b as x, a as y, d as q } from "./ButtonBase-sObABYY2.js";
|
|
8
|
-
import { c as $ } from "./capitalize-quqpGCFu.js";
|
|
9
|
-
import { u as D } from "./useControlled-BYdyS7Pn.js";
|
|
10
|
-
var n = { exports: {} };
|
|
11
|
-
(function(e) {
|
|
12
|
-
function t(r) {
|
|
13
|
-
return r && r.__esModule ? r : {
|
|
14
|
-
default: r
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
18
|
-
})(n);
|
|
19
|
-
var U = n.exports, o = {};
|
|
20
|
-
function M(e, t) {
|
|
21
|
-
return process.env.NODE_ENV === "production" ? () => null : (r, a, u, i, c) => {
|
|
22
|
-
const l = u || "<<anonymous>>", m = c || a;
|
|
23
|
-
return typeof r[a] < "u" ? new Error(`The ${i} \`${m}\` of \`${l}\` is deprecated. ${t}`) : null;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const O = {
|
|
27
|
-
configure: (e) => {
|
|
28
|
-
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
29
|
-
`)), d.configure(e);
|
|
30
|
-
}
|
|
31
|
-
}, P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
|
-
__proto__: null,
|
|
33
|
-
capitalize: $,
|
|
34
|
-
createChainedFunction: g,
|
|
35
|
-
createSvgIcon: p,
|
|
36
|
-
debounce: h,
|
|
37
|
-
deprecatedPropType: M,
|
|
38
|
-
isMuiElement: E,
|
|
39
|
-
ownerDocument: _,
|
|
40
|
-
ownerWindow: v,
|
|
41
|
-
requirePropFactory: N,
|
|
42
|
-
setRef: I,
|
|
43
|
-
unstable_ClassNameGenerator: O,
|
|
44
|
-
unstable_useEnhancedEffect: S,
|
|
45
|
-
unstable_useId: b,
|
|
46
|
-
unsupportedProp: C,
|
|
47
|
-
useControlled: D,
|
|
48
|
-
useEventCallback: x,
|
|
49
|
-
useForkRef: y,
|
|
50
|
-
useIsFocusVisible: q
|
|
51
|
-
}, Symbol.toStringTag, { value: "Module" })), R = /* @__PURE__ */ f(P);
|
|
52
|
-
var s;
|
|
53
|
-
function W() {
|
|
54
|
-
return s || (s = 1, function(e) {
|
|
55
|
-
"use client";
|
|
56
|
-
Object.defineProperty(e, "__esModule", {
|
|
57
|
-
value: !0
|
|
58
|
-
}), Object.defineProperty(e, "default", {
|
|
59
|
-
enumerable: !0,
|
|
60
|
-
get: function() {
|
|
61
|
-
return t.createSvgIcon;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
var t = R;
|
|
65
|
-
}(o)), o;
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
U as i,
|
|
69
|
-
W as r
|
|
70
|
-
};
|
package/dist/index-BMS1Otro.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
var P = { exports: {} }, t = {};
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-is.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
var F;
|
|
12
|
-
function se() {
|
|
13
|
-
if (F) return t;
|
|
14
|
-
F = 1;
|
|
15
|
-
var S = Symbol.for("react.element"), p = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), u = Symbol.for("react.context"), R = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), _;
|
|
16
|
-
_ = Symbol.for("react.module.reference");
|
|
17
|
-
function n(e) {
|
|
18
|
-
if (typeof e == "object" && e !== null) {
|
|
19
|
-
var y = e.$$typeof;
|
|
20
|
-
switch (y) {
|
|
21
|
-
case S:
|
|
22
|
-
switch (e = e.type, e) {
|
|
23
|
-
case i:
|
|
24
|
-
case c:
|
|
25
|
-
case a:
|
|
26
|
-
case m:
|
|
27
|
-
case d:
|
|
28
|
-
return e;
|
|
29
|
-
default:
|
|
30
|
-
switch (e = e && e.$$typeof, e) {
|
|
31
|
-
case R:
|
|
32
|
-
case u:
|
|
33
|
-
case l:
|
|
34
|
-
case v:
|
|
35
|
-
case E:
|
|
36
|
-
case f:
|
|
37
|
-
return e;
|
|
38
|
-
default:
|
|
39
|
-
return y;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
case p:
|
|
43
|
-
return y;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return t.ContextConsumer = u, t.ContextProvider = f, t.Element = S, t.ForwardRef = l, t.Fragment = i, t.Lazy = v, t.Memo = E, t.Portal = p, t.Profiler = c, t.StrictMode = a, t.Suspense = m, t.SuspenseList = d, t.isAsyncMode = function() {
|
|
48
|
-
return !1;
|
|
49
|
-
}, t.isConcurrentMode = function() {
|
|
50
|
-
return !1;
|
|
51
|
-
}, t.isContextConsumer = function(e) {
|
|
52
|
-
return n(e) === u;
|
|
53
|
-
}, t.isContextProvider = function(e) {
|
|
54
|
-
return n(e) === f;
|
|
55
|
-
}, t.isElement = function(e) {
|
|
56
|
-
return typeof e == "object" && e !== null && e.$$typeof === S;
|
|
57
|
-
}, t.isForwardRef = function(e) {
|
|
58
|
-
return n(e) === l;
|
|
59
|
-
}, t.isFragment = function(e) {
|
|
60
|
-
return n(e) === i;
|
|
61
|
-
}, t.isLazy = function(e) {
|
|
62
|
-
return n(e) === v;
|
|
63
|
-
}, t.isMemo = function(e) {
|
|
64
|
-
return n(e) === E;
|
|
65
|
-
}, t.isPortal = function(e) {
|
|
66
|
-
return n(e) === p;
|
|
67
|
-
}, t.isProfiler = function(e) {
|
|
68
|
-
return n(e) === c;
|
|
69
|
-
}, t.isStrictMode = function(e) {
|
|
70
|
-
return n(e) === a;
|
|
71
|
-
}, t.isSuspense = function(e) {
|
|
72
|
-
return n(e) === m;
|
|
73
|
-
}, t.isSuspenseList = function(e) {
|
|
74
|
-
return n(e) === d;
|
|
75
|
-
}, t.isValidElementType = function(e) {
|
|
76
|
-
return typeof e == "string" || typeof e == "function" || e === i || e === c || e === a || e === m || e === d || e === T || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === E || e.$$typeof === f || e.$$typeof === u || e.$$typeof === l || e.$$typeof === _ || e.getModuleId !== void 0);
|
|
77
|
-
}, t.typeOf = n, t;
|
|
78
|
-
}
|
|
79
|
-
var o = {};
|
|
80
|
-
/**
|
|
81
|
-
* @license React
|
|
82
|
-
* react-is.development.js
|
|
83
|
-
*
|
|
84
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the MIT license found in the
|
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/
|
|
89
|
-
var I;
|
|
90
|
-
function ie() {
|
|
91
|
-
return I || (I = 1, process.env.NODE_ENV !== "production" && function() {
|
|
92
|
-
var S = Symbol.for("react.element"), p = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), u = Symbol.for("react.context"), R = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), _ = !1, n = !1, e = !1, y = !1, L = !1, M;
|
|
93
|
-
M = Symbol.for("react.module.reference");
|
|
94
|
-
function w(r) {
|
|
95
|
-
return !!(typeof r == "string" || typeof r == "function" || r === i || r === c || L || r === a || r === m || r === d || y || r === T || _ || n || e || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === E || r.$$typeof === f || r.$$typeof === u || r.$$typeof === l || // This needs to include all possible module reference object
|
|
96
|
-
// types supported by any Flight configuration anywhere since
|
|
97
|
-
// we don't know which Flight build this will end up being used
|
|
98
|
-
// with.
|
|
99
|
-
r.$$typeof === M || r.getModuleId !== void 0));
|
|
100
|
-
}
|
|
101
|
-
function s(r) {
|
|
102
|
-
if (typeof r == "object" && r !== null) {
|
|
103
|
-
var C = r.$$typeof;
|
|
104
|
-
switch (C) {
|
|
105
|
-
case S:
|
|
106
|
-
var b = r.type;
|
|
107
|
-
switch (b) {
|
|
108
|
-
case i:
|
|
109
|
-
case c:
|
|
110
|
-
case a:
|
|
111
|
-
case m:
|
|
112
|
-
case d:
|
|
113
|
-
return b;
|
|
114
|
-
default:
|
|
115
|
-
var x = b && b.$$typeof;
|
|
116
|
-
switch (x) {
|
|
117
|
-
case R:
|
|
118
|
-
case u:
|
|
119
|
-
case l:
|
|
120
|
-
case v:
|
|
121
|
-
case E:
|
|
122
|
-
case f:
|
|
123
|
-
return x;
|
|
124
|
-
default:
|
|
125
|
-
return C;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
case p:
|
|
129
|
-
return C;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
var g = u, h = f, O = S, Y = l, N = i, D = v, z = E, V = p, q = c, j = a, U = m, W = d, $ = !1, A = !1;
|
|
134
|
-
function X(r) {
|
|
135
|
-
return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
136
|
-
}
|
|
137
|
-
function k(r) {
|
|
138
|
-
return A || (A = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
139
|
-
}
|
|
140
|
-
function G(r) {
|
|
141
|
-
return s(r) === u;
|
|
142
|
-
}
|
|
143
|
-
function H(r) {
|
|
144
|
-
return s(r) === f;
|
|
145
|
-
}
|
|
146
|
-
function Z(r) {
|
|
147
|
-
return typeof r == "object" && r !== null && r.$$typeof === S;
|
|
148
|
-
}
|
|
149
|
-
function B(r) {
|
|
150
|
-
return s(r) === l;
|
|
151
|
-
}
|
|
152
|
-
function J(r) {
|
|
153
|
-
return s(r) === i;
|
|
154
|
-
}
|
|
155
|
-
function K(r) {
|
|
156
|
-
return s(r) === v;
|
|
157
|
-
}
|
|
158
|
-
function Q(r) {
|
|
159
|
-
return s(r) === E;
|
|
160
|
-
}
|
|
161
|
-
function ee(r) {
|
|
162
|
-
return s(r) === p;
|
|
163
|
-
}
|
|
164
|
-
function re(r) {
|
|
165
|
-
return s(r) === c;
|
|
166
|
-
}
|
|
167
|
-
function te(r) {
|
|
168
|
-
return s(r) === a;
|
|
169
|
-
}
|
|
170
|
-
function oe(r) {
|
|
171
|
-
return s(r) === m;
|
|
172
|
-
}
|
|
173
|
-
function ne(r) {
|
|
174
|
-
return s(r) === d;
|
|
175
|
-
}
|
|
176
|
-
o.ContextConsumer = g, o.ContextProvider = h, o.Element = O, o.ForwardRef = Y, o.Fragment = N, o.Lazy = D, o.Memo = z, o.Portal = V, o.Profiler = q, o.StrictMode = j, o.Suspense = U, o.SuspenseList = W, o.isAsyncMode = X, o.isConcurrentMode = k, o.isContextConsumer = G, o.isContextProvider = H, o.isElement = Z, o.isForwardRef = B, o.isFragment = J, o.isLazy = K, o.isMemo = Q, o.isPortal = ee, o.isProfiler = re, o.isStrictMode = te, o.isSuspense = oe, o.isSuspenseList = ne, o.isValidElementType = w, o.typeOf = s;
|
|
177
|
-
}()), o;
|
|
178
|
-
}
|
|
179
|
-
process.env.NODE_ENV === "production" ? P.exports = se() : P.exports = ie();
|
|
180
|
-
var ae = P.exports;
|
|
181
|
-
export {
|
|
182
|
-
ae as r
|
|
183
|
-
};
|