@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
|
@@ -1,176 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { CloseOutlined as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}) => {
|
|
27
|
-
const [$, j] = G(H), [L, N] = G(/* @__PURE__ */ new Map());
|
|
28
|
-
ue(() => (N(/* @__PURE__ */ new Map()), () => {
|
|
29
|
-
}), [F]);
|
|
30
|
-
const Q = () => {
|
|
31
|
-
a ? g(a, !0) : g($);
|
|
32
|
-
}, D = (n) => {
|
|
33
|
-
const { name: d, value: p } = n.target;
|
|
34
|
-
let o = p;
|
|
35
|
-
d === "criticalityScore" && (o = o.replace(",", "."), o = o.replace(/[^\d.-]+/g, "")), X(d)(o);
|
|
36
|
-
}, X = (n) => (d) => {
|
|
37
|
-
a && g({ ...a, [n]: d });
|
|
38
|
-
}, A = (n, d, p, o) => (r) => {
|
|
39
|
-
if (a) {
|
|
40
|
-
let t = [...a.propertyInfoMap];
|
|
41
|
-
const e = t.findIndex(
|
|
42
|
-
(l) => l.policyKey === n && l.key === d
|
|
43
|
-
);
|
|
44
|
-
if (t[e]) {
|
|
45
|
-
let l = r.value;
|
|
46
|
-
t.splice(e, 1, {
|
|
47
|
-
...t[e],
|
|
48
|
-
value: l,
|
|
49
|
-
source: p ? p || "" : t[e].source,
|
|
50
|
-
sourceField: o !== void 0 ? o || "" : t[e].sourceField
|
|
51
|
-
}), g && g({ ...a, propertyInfoMap: t });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}, Y = (n) => () => {
|
|
55
|
-
const { policyKey: d, key: p, source: o, sourceField: r } = n;
|
|
56
|
-
let t = "";
|
|
57
|
-
if (o === "OBJECT")
|
|
58
|
-
t = h.get(
|
|
59
|
-
I,
|
|
60
|
-
`variables.${n.dataType.type}.${r}`
|
|
61
|
-
);
|
|
62
|
-
else if (o) {
|
|
63
|
-
const e = parseInt(String(o)), l = v == null ? void 0 : v.find((u) => u.id === e);
|
|
64
|
-
l ? t = h.get(
|
|
65
|
-
l.variables,
|
|
66
|
-
`${n.dataType.type}.${r}`
|
|
67
|
-
) : console.log(
|
|
68
|
-
"Catalogue instance could not be found!",
|
|
69
|
-
o,
|
|
70
|
-
v
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
t && (A(d, p)({ value: t }), N((e) => {
|
|
74
|
-
const l = new Map(e);
|
|
75
|
-
return l.set(
|
|
76
|
-
`${h.get(a, "referenceObjectInstanceId")}:${d}:${p}`,
|
|
77
|
-
"Updated"
|
|
78
|
-
), l;
|
|
79
|
-
}), setTimeout(() => {
|
|
80
|
-
N((e) => {
|
|
81
|
-
const l = new Map(e);
|
|
82
|
-
return l.set(
|
|
83
|
-
`${h.get(
|
|
84
|
-
a,
|
|
85
|
-
"referenceObjectInstanceId"
|
|
86
|
-
)}:${d}:${p}`,
|
|
87
|
-
"Default"
|
|
88
|
-
), l;
|
|
89
|
-
});
|
|
90
|
-
}, 2e3));
|
|
91
|
-
}, Z = (n, d) => (p) => {
|
|
92
|
-
if (a) {
|
|
93
|
-
let o = [...a.propertyInfoMap];
|
|
94
|
-
const r = o.findIndex(
|
|
95
|
-
(t) => t.policyKey === n && t.key === d
|
|
96
|
-
);
|
|
97
|
-
o[r] && (o.splice(r, 1, {
|
|
98
|
-
...o[r],
|
|
99
|
-
randomInfo: p
|
|
100
|
-
}), g && g({ ...a, propertyInfoMap: o }));
|
|
101
|
-
}
|
|
102
|
-
}, ee = (n) => (d) => {
|
|
103
|
-
const p = d.target.name;
|
|
104
|
-
let o = [...$];
|
|
105
|
-
const r = o[n], t = r.propertyMappings.findIndex(
|
|
106
|
-
(l) => l.key === p
|
|
107
|
-
), e = r.propertyMappings[t];
|
|
108
|
-
h.set(
|
|
109
|
-
o,
|
|
110
|
-
`${n}.propertyMappings.${t}.source`,
|
|
111
|
-
d.target.value
|
|
112
|
-
), h.set(
|
|
113
|
-
o,
|
|
114
|
-
`${n}.propertyMappings.${t}.sourceField`,
|
|
115
|
-
""
|
|
116
|
-
), j(o), a && A(
|
|
117
|
-
r.key,
|
|
118
|
-
e.key,
|
|
119
|
-
String(d.target.value),
|
|
120
|
-
""
|
|
121
|
-
)({ value: "" });
|
|
122
|
-
}, re = (n) => (d) => {
|
|
123
|
-
const p = d.target.name;
|
|
124
|
-
let o = [...$];
|
|
125
|
-
const r = o[n], t = r.propertyMappings.findIndex(
|
|
126
|
-
(l) => l.key === p
|
|
127
|
-
), e = r.propertyMappings[t];
|
|
128
|
-
if (h.set(
|
|
129
|
-
o,
|
|
130
|
-
`${n}.propertyMappings.${t}.sourceField`,
|
|
131
|
-
d.target.value
|
|
132
|
-
), j(o), S && a) {
|
|
133
|
-
const l = h.get(
|
|
134
|
-
o,
|
|
135
|
-
`${n}.propertyMappings.${t}.source`
|
|
136
|
-
);
|
|
137
|
-
if (l === "OBJECT") {
|
|
138
|
-
if (I) {
|
|
139
|
-
const u = h.get(
|
|
140
|
-
I.variables,
|
|
141
|
-
`${e.dataType.type}.${d.target.value}`
|
|
142
|
-
) || "";
|
|
143
|
-
A(
|
|
144
|
-
r.key,
|
|
145
|
-
e.key,
|
|
146
|
-
void 0,
|
|
147
|
-
d.target.value
|
|
148
|
-
)({ value: u });
|
|
149
|
-
}
|
|
150
|
-
} else if (l !== "STATIC") {
|
|
151
|
-
if (l !== "RANDOM") {
|
|
152
|
-
if (l !== "SMART_RANDOM") {
|
|
153
|
-
const u = v == null ? void 0 : v.find(
|
|
154
|
-
(y) => y.id === Number(l)
|
|
155
|
-
);
|
|
156
|
-
if (u) {
|
|
157
|
-
const y = h.get(
|
|
158
|
-
u.variables,
|
|
159
|
-
`${e.dataType.type}.${d.target.value}`
|
|
160
|
-
) || "";
|
|
161
|
-
A(
|
|
162
|
-
r.key,
|
|
163
|
-
e.key,
|
|
164
|
-
void 0,
|
|
165
|
-
d.target.value
|
|
166
|
-
)({ value: y });
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}, te = (n, d) => {
|
|
173
|
-
let p = {
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { CloseOutlined as W, ChevronRight as $, ErrorOutline as q, Refresh as J, Check as U } from "@mui/icons-material";
|
|
3
|
+
import { Button as N, IconButton as _, FormControl as O, Select as D, MenuItem as C, Typography as H } from "@mui/material";
|
|
4
|
+
import F from "lodash";
|
|
5
|
+
import { V as G } from "../../index-BtlzPygz.js";
|
|
6
|
+
import { d as L } from "../../ol-yOE-NV0X.js";
|
|
7
|
+
import { RangeSelector as Q } from "../range-selector/index.js";
|
|
8
|
+
import { usePropertyMappingLogic as X } from "./logic.js";
|
|
9
|
+
import { PropertyMappingRoot as Y, PropertyMappingTitle as Z, PropertyMappingTitleContent as ee, PropertyMappingTitleHeading as te, PropertyMappingTitleSubtitle as re, PropertyMappingTitleAgentForm as ne, PropertyMappingTitleAgentFields as le, PropertyMappingTitleAgentNameInput as ae, PropertyMappingTitleAgentDescriptionInput as ie, PropertyMappingTitleAgentMetaRow as oe, PropertyMappingTitleAgentCountInput as pe, PropertyMappingTitleAgentCriticalityInput as de, PropertyMappingTitleClose as ce, PropertyMappingTitleCloseButton as ue, PropertyMappingContent as se, PropertyMappingPolicyCard as ye, PropertyMappingPolicyCardHeader as he, PropertyMappingPolicyCardCatalogueNames as ge, PropertyMappingPolicyCardArrow as fe, PropertyMappingPolicyCardPolicyName as me, PropertyMappingDataGrid as Ce, PropertyMappingActions as Me, PropertyMappingValueErrorIcon as Te, PropertyMappingValueCell as be, PropertyMappingValueCellInner as ve, PropertyMappingNameCell as Pe, PropertyMappingRequiredAsterisk as Ie, PropertyMappingDataTypeCell as Ae, PropertyMappingValueUpdatedIcon as Se } from "./styled.js";
|
|
10
|
+
const Be = (A) => {
|
|
11
|
+
const {
|
|
12
|
+
open: V,
|
|
13
|
+
objectTemplate: j,
|
|
14
|
+
agent: i,
|
|
15
|
+
enableValueInput: b,
|
|
16
|
+
loading: S,
|
|
17
|
+
agentTemplates: x,
|
|
18
|
+
catalogueInstances: P,
|
|
19
|
+
scenario: y,
|
|
20
|
+
mapboxAccessToken: R,
|
|
21
|
+
disableCatalogueSource: B,
|
|
22
|
+
disableObjectSource: E,
|
|
23
|
+
onClose: I
|
|
24
|
+
} = A, { refs: z, state: v, actions: c } = X(A), K = (p, M) => {
|
|
25
|
+
const T = {
|
|
174
26
|
field: "value",
|
|
175
27
|
headerName: "Value",
|
|
176
28
|
sortable: !1,
|
|
@@ -178,95 +30,84 @@ const $e = ({
|
|
|
178
30
|
disableColumnMenu: !0,
|
|
179
31
|
flex: 2.5,
|
|
180
32
|
renderCell: (r) => {
|
|
181
|
-
var
|
|
182
|
-
const { key:
|
|
183
|
-
let
|
|
184
|
-
if (
|
|
185
|
-
const
|
|
186
|
-
(
|
|
33
|
+
var u, g;
|
|
34
|
+
const { key: o, dataType: t } = r.row;
|
|
35
|
+
let d = "", f = /* @__PURE__ */ e(m, {}), h = /* @__PURE__ */ e(m, {}), l = r.row.source;
|
|
36
|
+
if (b && i) {
|
|
37
|
+
const n = i.propertyInfoMap.find(
|
|
38
|
+
(s) => s.key === o && s.policyKey === p.key
|
|
187
39
|
);
|
|
188
|
-
if (
|
|
189
|
-
const { valid:
|
|
190
|
-
|
|
191
|
-
|
|
40
|
+
if (n) {
|
|
41
|
+
const { valid: s, validationErrors: w } = n;
|
|
42
|
+
d = n.value, l = n.source, s === !1 && (f = /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(
|
|
43
|
+
q,
|
|
192
44
|
{
|
|
193
45
|
color: "error",
|
|
194
46
|
fontSize: "small",
|
|
195
|
-
|
|
196
|
-
titleAccess: z ? z.join(", ") : "Value is not valid!"
|
|
47
|
+
titleAccess: w ? w.join(", ") : "Value is not valid!"
|
|
197
48
|
}
|
|
198
|
-
)),
|
|
199
|
-
`${
|
|
200
|
-
) === "Updated" ?
|
|
201
|
-
|
|
49
|
+
) })), l && (v.valueRefreshStatus.get(
|
|
50
|
+
`${F.get(i, "referenceObjectInstanceId")}:${n.policyKey}:${n.key}`
|
|
51
|
+
) === "Updated" ? h = /* @__PURE__ */ e(Se, { children: /* @__PURE__ */ e(U, { color: "success", titleAccess: "Updated" }) }) : h = /* @__PURE__ */ e(
|
|
52
|
+
_,
|
|
202
53
|
{
|
|
203
|
-
onClick:
|
|
204
|
-
title: `Reload value from the ${
|
|
205
|
-
children: /* @__PURE__ */
|
|
54
|
+
onClick: c.handleValueRefresh(n),
|
|
55
|
+
title: `Reload value from the ${l === "OBJECT" ? "Object" : "Catalogue"}`,
|
|
56
|
+
children: /* @__PURE__ */ e(J, {})
|
|
206
57
|
}
|
|
207
58
|
));
|
|
208
59
|
}
|
|
209
|
-
if (
|
|
210
|
-
const
|
|
211
|
-
return /* @__PURE__ */
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
|
|
60
|
+
if (l === "STATIC") {
|
|
61
|
+
const s = (u = y == null ? void 0 : y.environment.context) != null && u.boundingBox ? L(y.environment.context.boundingBox) : void 0;
|
|
62
|
+
return /* @__PURE__ */ a(m, { children: [
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
G,
|
|
214
65
|
{
|
|
215
|
-
mapboxAccessToken:
|
|
66
|
+
mapboxAccessToken: R,
|
|
216
67
|
property: {
|
|
217
68
|
propertyId: "value",
|
|
218
|
-
type:
|
|
69
|
+
type: t.type,
|
|
219
70
|
editable: !0,
|
|
220
71
|
dataTypeInfo: {
|
|
221
|
-
innerType:
|
|
72
|
+
innerType: t.innerType
|
|
222
73
|
}
|
|
223
74
|
},
|
|
224
75
|
variant: "outlined",
|
|
225
|
-
value:
|
|
76
|
+
value: d,
|
|
226
77
|
size: "small",
|
|
227
|
-
defaultExtent:
|
|
228
|
-
onChange:
|
|
78
|
+
defaultExtent: s,
|
|
79
|
+
onChange: c.handleValueChange(p.key, o)
|
|
229
80
|
}
|
|
230
81
|
),
|
|
231
|
-
|
|
82
|
+
f
|
|
232
83
|
] });
|
|
233
84
|
}
|
|
234
|
-
if (
|
|
235
|
-
return /* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
|
|
85
|
+
if (l === "RANDOM" || l === "SMART_RANDOM")
|
|
86
|
+
return /* @__PURE__ */ a(m, { children: [
|
|
87
|
+
/* @__PURE__ */ e(
|
|
88
|
+
Q,
|
|
238
89
|
{
|
|
239
|
-
type:
|
|
240
|
-
value:
|
|
241
|
-
innerType: (
|
|
242
|
-
minDate:
|
|
243
|
-
maxDate:
|
|
244
|
-
mapboxAccessToken:
|
|
245
|
-
onChange:
|
|
90
|
+
type: t.type,
|
|
91
|
+
value: n == null ? void 0 : n.randomInfo,
|
|
92
|
+
innerType: (g = t.innerType) == null ? void 0 : g.type,
|
|
93
|
+
minDate: y ? y.startTime : "",
|
|
94
|
+
maxDate: y ? y.endTime : "",
|
|
95
|
+
mapboxAccessToken: R,
|
|
96
|
+
onChange: c.handleRandomInfoChange(p.key, o)
|
|
246
97
|
}
|
|
247
98
|
),
|
|
248
|
-
|
|
99
|
+
f
|
|
249
100
|
] });
|
|
250
101
|
}
|
|
251
|
-
return
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
children: [
|
|
259
|
-
/* @__PURE__ */ f(m, { flex: 1, children: [
|
|
260
|
-
l,
|
|
261
|
-
u
|
|
262
|
-
] }),
|
|
263
|
-
y
|
|
264
|
-
]
|
|
265
|
-
}
|
|
266
|
-
);
|
|
102
|
+
return F.isArray(d) && (d = d.join(", ")), /* @__PURE__ */ a(be, { children: [
|
|
103
|
+
/* @__PURE__ */ a(ve, { children: [
|
|
104
|
+
d,
|
|
105
|
+
f
|
|
106
|
+
] }),
|
|
107
|
+
h
|
|
108
|
+
] });
|
|
267
109
|
}
|
|
268
|
-
}
|
|
269
|
-
const o = [
|
|
110
|
+
}, k = [
|
|
270
111
|
{
|
|
271
112
|
field: "name",
|
|
272
113
|
headerName: "Policy Field",
|
|
@@ -274,22 +115,10 @@ const $e = ({
|
|
|
274
115
|
filterable: !1,
|
|
275
116
|
disableColumnMenu: !0,
|
|
276
117
|
flex: 1,
|
|
277
|
-
renderCell: (r) => /* @__PURE__ */
|
|
278
|
-
|
|
279
|
-
{
|
|
280
|
-
|
|
281
|
-
overflow: "hidden",
|
|
282
|
-
whiteSpace: "nowrap",
|
|
283
|
-
textOverflow: "ellipsis",
|
|
284
|
-
width: "100%"
|
|
285
|
-
},
|
|
286
|
-
title: r.row.name || r.row.key,
|
|
287
|
-
children: [
|
|
288
|
-
r.row.name || r.row.key,
|
|
289
|
-
r.row.required ? /* @__PURE__ */ i(b, { color: "red", ml: 1, title: "Required", display: "inline", children: "*" }) : null
|
|
290
|
-
]
|
|
291
|
-
}
|
|
292
|
-
)
|
|
118
|
+
renderCell: (r) => /* @__PURE__ */ a(Pe, { title: r.row.name || r.row.key, children: [
|
|
119
|
+
r.row.name || r.row.key,
|
|
120
|
+
r.row.required ? /* @__PURE__ */ e(Ie, { title: "Required", children: "*" }) : null
|
|
121
|
+
] })
|
|
293
122
|
},
|
|
294
123
|
{
|
|
295
124
|
field: "description",
|
|
@@ -307,21 +136,9 @@ const $e = ({
|
|
|
307
136
|
disableColumnMenu: !0,
|
|
308
137
|
flex: 1,
|
|
309
138
|
renderCell: (r) => {
|
|
310
|
-
const { dataType:
|
|
311
|
-
let
|
|
312
|
-
return
|
|
313
|
-
m,
|
|
314
|
-
{
|
|
315
|
-
sx: {
|
|
316
|
-
overflow: "hidden",
|
|
317
|
-
whiteSpace: "nowrap",
|
|
318
|
-
textOverflow: "ellipsis",
|
|
319
|
-
width: "100%"
|
|
320
|
-
},
|
|
321
|
-
title: e,
|
|
322
|
-
children: e
|
|
323
|
-
}
|
|
324
|
-
);
|
|
139
|
+
const { dataType: o } = r.row;
|
|
140
|
+
let t = o.type;
|
|
141
|
+
return o.type === "composite-list" && (t += ` <${o.innerType.type}>`), /* @__PURE__ */ e(Ae, { title: t, children: t });
|
|
325
142
|
}
|
|
326
143
|
},
|
|
327
144
|
{
|
|
@@ -332,24 +149,24 @@ const $e = ({
|
|
|
332
149
|
disableColumnMenu: !0,
|
|
333
150
|
flex: 1,
|
|
334
151
|
renderCell: (r) => {
|
|
335
|
-
let
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
(
|
|
152
|
+
let o = r.row.source || "";
|
|
153
|
+
if (i) {
|
|
154
|
+
const t = i.propertyInfoMap.find(
|
|
155
|
+
(d) => d.policyKey === p.key && d.key === r.id
|
|
339
156
|
);
|
|
340
|
-
|
|
157
|
+
t && (o = t.source || "");
|
|
341
158
|
}
|
|
342
|
-
return /* @__PURE__ */
|
|
343
|
-
|
|
159
|
+
return /* @__PURE__ */ e(O, { fullWidth: !0, size: "small", children: /* @__PURE__ */ a(
|
|
160
|
+
D,
|
|
344
161
|
{
|
|
345
|
-
onChange:
|
|
162
|
+
onChange: c.handleSourceChange(M),
|
|
346
163
|
name: String(r.id),
|
|
347
|
-
value:
|
|
164
|
+
value: o,
|
|
348
165
|
children: [
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
!
|
|
351
|
-
!
|
|
352
|
-
|
|
166
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(H, { fontStyle: "italic", color: "GrayText", children: "Undefined" }) }),
|
|
167
|
+
!E && /* @__PURE__ */ e(C, { value: "OBJECT", children: "OBJECT" }),
|
|
168
|
+
!B && p.catalogInstances.map((t) => /* @__PURE__ */ e(C, { value: t.id, children: t.name }, t.id)),
|
|
169
|
+
b && ["STATIC", "RANDOM", "SMART_RANDOM"].map((t) => /* @__PURE__ */ e(C, { value: t, children: t }, t))
|
|
353
170
|
]
|
|
354
171
|
}
|
|
355
172
|
) });
|
|
@@ -363,48 +180,48 @@ const $e = ({
|
|
|
363
180
|
disableColumnMenu: !0,
|
|
364
181
|
flex: 1,
|
|
365
182
|
renderCell: (r) => {
|
|
366
|
-
const { dataType:
|
|
367
|
-
let
|
|
368
|
-
if (
|
|
369
|
-
const
|
|
370
|
-
(
|
|
183
|
+
const { dataType: o } = r.row;
|
|
184
|
+
let t = r.row.source, d = r.row.sourceField;
|
|
185
|
+
if (i) {
|
|
186
|
+
const l = i.propertyInfoMap.find(
|
|
187
|
+
(u) => u.policyKey === p.key && u.key === r.id
|
|
371
188
|
);
|
|
372
|
-
|
|
189
|
+
l && (t = l.source, d = l.sourceField || "");
|
|
373
190
|
}
|
|
374
|
-
|
|
375
|
-
if (
|
|
376
|
-
return /* @__PURE__ */
|
|
377
|
-
let
|
|
378
|
-
if (
|
|
379
|
-
|
|
380
|
-
value:
|
|
381
|
-
text:
|
|
191
|
+
const f = d || "";
|
|
192
|
+
if (t === "RANDOM" || t === "STATIC" || t === "SMART_RANDOM")
|
|
193
|
+
return /* @__PURE__ */ e(m, {});
|
|
194
|
+
let h = [];
|
|
195
|
+
if (t === "OBJECT")
|
|
196
|
+
h = j.properties.map((l) => ({
|
|
197
|
+
value: l.propertyId,
|
|
198
|
+
text: l.name
|
|
382
199
|
}));
|
|
383
|
-
else if (
|
|
384
|
-
const
|
|
385
|
-
(
|
|
200
|
+
else if (t !== null) {
|
|
201
|
+
const l = Number(t), u = P == null ? void 0 : P.find(
|
|
202
|
+
(g) => g.id === l
|
|
386
203
|
);
|
|
387
|
-
if (
|
|
388
|
-
const
|
|
389
|
-
(
|
|
204
|
+
if (u && x) {
|
|
205
|
+
const g = x.find(
|
|
206
|
+
(n) => n.templateKey === u.template.templateKey
|
|
390
207
|
);
|
|
391
|
-
|
|
392
|
-
value:
|
|
393
|
-
text:
|
|
208
|
+
g && (h = g.properties.filter((n) => n.type === o.type).sort((n, s) => n.name < s.name ? -1 : n.name > s.name ? 1 : 0).map((n) => ({
|
|
209
|
+
value: n.propertyId,
|
|
210
|
+
text: n.name
|
|
394
211
|
})));
|
|
395
212
|
}
|
|
396
213
|
}
|
|
397
|
-
return /* @__PURE__ */
|
|
398
|
-
|
|
214
|
+
return /* @__PURE__ */ e(O, { fullWidth: !0, size: "small", children: /* @__PURE__ */ a(
|
|
215
|
+
D,
|
|
399
216
|
{
|
|
400
|
-
onChange:
|
|
217
|
+
onChange: c.handleSourceFieldChange(M),
|
|
401
218
|
name: String(r.id),
|
|
402
|
-
value:
|
|
219
|
+
value: f,
|
|
403
220
|
children: [
|
|
404
|
-
|
|
405
|
-
|
|
221
|
+
h.map((l, u) => /* @__PURE__ */ e(C, { value: l.value, children: l.text }, u)),
|
|
222
|
+
h.length === 0 && /* @__PURE__ */ a(C, { disabled: !0, children: [
|
|
406
223
|
"No ",
|
|
407
|
-
|
|
224
|
+
o.type,
|
|
408
225
|
" property found!"
|
|
409
226
|
] })
|
|
410
227
|
]
|
|
@@ -413,146 +230,110 @@ const $e = ({
|
|
|
413
230
|
}
|
|
414
231
|
}
|
|
415
232
|
];
|
|
416
|
-
return
|
|
233
|
+
return b ? [...k, T] : k;
|
|
417
234
|
};
|
|
418
|
-
return /* @__PURE__ */
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
size: "small",
|
|
460
|
-
value: a.description,
|
|
461
|
-
placeholder: "Add description",
|
|
462
|
-
onChange: D,
|
|
463
|
-
sx: {
|
|
464
|
-
"& .MuiInputBase-root:before": {
|
|
465
|
-
border: "none"
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
)
|
|
470
|
-
]
|
|
471
|
-
}
|
|
472
|
-
),
|
|
473
|
-
/* @__PURE__ */ f(m, { ml: 4, children: [
|
|
474
|
-
"count" in a && /* @__PURE__ */ i(
|
|
475
|
-
R,
|
|
235
|
+
return /* @__PURE__ */ a(
|
|
236
|
+
Y,
|
|
237
|
+
{
|
|
238
|
+
ref: z.rootRef,
|
|
239
|
+
open: V,
|
|
240
|
+
fullWidth: !0,
|
|
241
|
+
maxWidth: "lg",
|
|
242
|
+
onClose: I,
|
|
243
|
+
sx: v.sx,
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ a(Z, { component: "div", children: [
|
|
246
|
+
/* @__PURE__ */ e(ee, { children: i === void 0 ? /* @__PURE__ */ a(m, { children: [
|
|
247
|
+
/* @__PURE__ */ e(te, { variant: "h6", children: "Property Mapping" }),
|
|
248
|
+
/* @__PURE__ */ e(re, { variant: "caption", children: "Map policy properties with object template or catalog istance properties" })
|
|
249
|
+
] }) : /* @__PURE__ */ a(ne, { children: [
|
|
250
|
+
/* @__PURE__ */ a(le, { children: [
|
|
251
|
+
/* @__PURE__ */ e(
|
|
252
|
+
ae,
|
|
253
|
+
{
|
|
254
|
+
name: "name",
|
|
255
|
+
variant: "standard",
|
|
256
|
+
value: i.name,
|
|
257
|
+
placeholder: "Add name",
|
|
258
|
+
onChange: c.handleInputChange
|
|
259
|
+
}
|
|
260
|
+
),
|
|
261
|
+
"description" in i && /* @__PURE__ */ e(
|
|
262
|
+
ie,
|
|
263
|
+
{
|
|
264
|
+
name: "description",
|
|
265
|
+
variant: "standard",
|
|
266
|
+
size: "small",
|
|
267
|
+
value: i.description,
|
|
268
|
+
placeholder: "Add description",
|
|
269
|
+
onChange: c.handleInputChange
|
|
270
|
+
}
|
|
271
|
+
)
|
|
272
|
+
] }),
|
|
273
|
+
/* @__PURE__ */ a(oe, { children: [
|
|
274
|
+
"count" in i && /* @__PURE__ */ e(
|
|
275
|
+
pe,
|
|
476
276
|
{
|
|
477
277
|
name: "count",
|
|
478
278
|
label: "Count",
|
|
479
279
|
size: "small",
|
|
480
280
|
required: !0,
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
onChange: D
|
|
281
|
+
value: i.count,
|
|
282
|
+
onChange: c.handleInputChange
|
|
484
283
|
}
|
|
485
284
|
),
|
|
486
|
-
"criticalityScore" in
|
|
487
|
-
|
|
285
|
+
"criticalityScore" in i && /* @__PURE__ */ e(
|
|
286
|
+
de,
|
|
488
287
|
{
|
|
489
288
|
name: "criticalityScore",
|
|
490
289
|
label: "Criticality Score",
|
|
491
290
|
size: "small",
|
|
492
291
|
type: "text",
|
|
493
292
|
title: "Should be between 0 and 1",
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
onChange: D
|
|
293
|
+
value: i.criticalityScore,
|
|
294
|
+
onChange: c.handleInputChange
|
|
497
295
|
}
|
|
498
296
|
)
|
|
499
297
|
] })
|
|
500
298
|
] }) }),
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
-
]
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
boxShadow: (p) => p.shadows[1],
|
|
509
|
-
mt: 0.1,
|
|
510
|
-
mb: 2,
|
|
511
|
-
overflow: "hidden",
|
|
512
|
-
borderRadius: 1,
|
|
513
|
-
children: [
|
|
514
|
-
/* @__PURE__ */ f(m, { display: "flex", alignItems: "center", p: 2, children: [
|
|
515
|
-
/* @__PURE__ */ i(b, { children: n.catalogInstances.map((p) => p.name).join(", ") }),
|
|
516
|
-
/* @__PURE__ */ i(ie, { color: "disabled", sx: { mx: 1 } }),
|
|
517
|
-
/* @__PURE__ */ i(b, { variant: "caption", color: "GrayText", children: n.name || n.key })
|
|
299
|
+
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ e(ue, { onClick: I, children: /* @__PURE__ */ e(W, {}) }) })
|
|
300
|
+
] }),
|
|
301
|
+
/* @__PURE__ */ e(se, { children: v.data.map((p, M) => /* @__PURE__ */ a(ye, { children: [
|
|
302
|
+
/* @__PURE__ */ a(he, { children: [
|
|
303
|
+
/* @__PURE__ */ e(ge, { children: p.catalogInstances.map((T) => T.name).join(", ") }),
|
|
304
|
+
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e($, { color: "disabled" }) }),
|
|
305
|
+
/* @__PURE__ */ e(me, { variant: "caption", children: p.name || p.key })
|
|
518
306
|
] }),
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
-
|
|
307
|
+
/* @__PURE__ */ e(
|
|
308
|
+
Ce,
|
|
521
309
|
{
|
|
522
|
-
columns:
|
|
523
|
-
rows:
|
|
310
|
+
columns: K(p, M),
|
|
311
|
+
rows: p.propertyMappings,
|
|
524
312
|
autoHeight: !0,
|
|
525
|
-
density:
|
|
526
|
-
sx: {
|
|
527
|
-
border: "none",
|
|
528
|
-
"& .MuiDataGrid-columnHeadersInner": {
|
|
529
|
-
backgroundColor: (p) => p.palette.grey[200]
|
|
530
|
-
}
|
|
531
|
-
},
|
|
313
|
+
density: b ? "comfortable" : "standard",
|
|
532
314
|
hideFooterPagination: !0,
|
|
533
315
|
hideFooter: !0,
|
|
534
|
-
getRowId: (
|
|
316
|
+
getRowId: (T) => T.key
|
|
535
317
|
}
|
|
536
318
|
)
|
|
537
|
-
]
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
] });
|
|
319
|
+
] }, M)) }),
|
|
320
|
+
/* @__PURE__ */ a(Me, { children: [
|
|
321
|
+
/* @__PURE__ */ e(N, { color: "inherit", variant: "contained", onClick: I, children: "Cancel" }),
|
|
322
|
+
/* @__PURE__ */ e(
|
|
323
|
+
N,
|
|
324
|
+
{
|
|
325
|
+
color: "primary",
|
|
326
|
+
variant: "contained",
|
|
327
|
+
disabled: v.data.length === 0 || S,
|
|
328
|
+
onClick: c.handleSubmit,
|
|
329
|
+
children: S ? "Saving..." : "Save"
|
|
330
|
+
}
|
|
331
|
+
)
|
|
332
|
+
] })
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
);
|
|
555
336
|
};
|
|
556
337
|
export {
|
|
557
|
-
|
|
338
|
+
Be as PropertyMapping
|
|
558
339
|
};
|