@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,77 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { getNestedChildrenFromMap as Re } from "../../utils/ontology.js";
|
|
7
|
-
import { ConditionalWrapper as m } from "../conditional-wrapper/index.js";
|
|
1
|
+
import { jsxs as s, jsx as t, Fragment as se } from "react/jsx-runtime";
|
|
2
|
+
import { TextField as b, FormControlLabel as me, Checkbox as ue } from "@mui/material";
|
|
3
|
+
import pe from "react";
|
|
4
|
+
import { Controller as u } from "react-hook-form";
|
|
5
|
+
import { ConditionalWrapper as d } from "../conditional-wrapper/index.js";
|
|
8
6
|
import { Container as Be } from "../container/index.js";
|
|
9
|
-
import { DisseminationList as
|
|
10
|
-
import { SecurityLevel as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
k
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
reset: we,
|
|
33
|
-
watch: I
|
|
34
|
-
} = Ee({
|
|
35
|
-
defaultValues: e.defaultValues
|
|
36
|
-
}), a = (e == null ? void 0 : e.labelPosition) ?? "default", [Ie, Oe] = p.useState([]), [w, E] = p.useState(), [Ue, Ce] = p.useState(0), Le = p.useMemo(() => {
|
|
37
|
-
const i = [];
|
|
38
|
-
return e.mappedTemplates.forEach((n) => {
|
|
39
|
-
n.creatable || i.push(String(n.id));
|
|
40
|
-
}), i;
|
|
41
|
-
}, [e.mappedTemplates]);
|
|
42
|
-
p.useEffect(() => {
|
|
43
|
-
(async () => {
|
|
44
|
-
const i = { ...e.defaultValues }, n = e.mappedTemplates.get(i.templateId);
|
|
45
|
-
if (n) {
|
|
46
|
-
const r = n.properties.filter(
|
|
47
|
-
(o) => o.privacyPreservationMethod === "ENCRYPTION"
|
|
48
|
-
);
|
|
49
|
-
if (r.length > 0)
|
|
50
|
-
for (let o = 0; o < r.length; o++) {
|
|
51
|
-
const d = r[o], s = Fe.get(i, `variables.${d.propertyId}`);
|
|
52
|
-
if (s && e.keyAuth) {
|
|
53
|
-
const u = await Ne(Ke), g = await _e(u, String(s));
|
|
54
|
-
g.data && (T(`variables.${d.propertyId}`, g.data), Ce((b) => b + 1));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
})();
|
|
59
|
-
}, [e.defaultValues, e.mappedTemplates, e.keyAuth]);
|
|
60
|
-
const O = () => {
|
|
61
|
-
const i = k("templateId");
|
|
62
|
-
w && E(void 0);
|
|
63
|
-
const n = Re(e.mappedTemplates);
|
|
64
|
-
Oe(n);
|
|
65
|
-
for (const r of e.mappedTemplates.values())
|
|
66
|
-
if (r.id === i) {
|
|
67
|
-
E(r);
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
p.useImperativeHandle(be, () => ({
|
|
7
|
+
import { DisseminationList as Re } from "../data-security-selectors/dissemination-list/index.js";
|
|
8
|
+
import { SecurityLevel as Pe } from "../data-security-selectors/security-level/index.js";
|
|
9
|
+
import { TreeSelect as ke } from "../tree-select/index.js";
|
|
10
|
+
import { PolicyList as We } from "./components/policy-list/index.js";
|
|
11
|
+
import g from "./components/TopLabelWrapper.js";
|
|
12
|
+
import { Variables as Ae } from "./components/variables/index.js";
|
|
13
|
+
import { leftLayoutWrapper as h } from "./helpers.js";
|
|
14
|
+
import { useInstanceFormLogic as De } from "./logic.js";
|
|
15
|
+
import { InstanceFormForm as Ee, FieldContainer as p, CharCount as fe, TemplateGroup as qe, SecurityLevelContainer as Ue, ActionsRow as Ne, CancelButton as $e, SaveButtonsContainer as Ge, SaveButton as he, InstanceFormRoot as _e, CONTAINER_SX as je } from "./styled.js";
|
|
16
|
+
function He(e, ve) {
|
|
17
|
+
var V, w, S, F, B, R, P, k, W, A, D, E, q, U, N, $, G, _, j, H, X, z, J, K, M, Q, Y, Z, ee, te, ie, ne, ae, le, re, de;
|
|
18
|
+
const { refs: T, state: be, form: Ce, actions: o } = De(e), {
|
|
19
|
+
ownerState: y,
|
|
20
|
+
templates: Oe,
|
|
21
|
+
selectedTemplate: xe,
|
|
22
|
+
disabledTemplates: Le,
|
|
23
|
+
labelPosition: n,
|
|
24
|
+
loading: C,
|
|
25
|
+
hasPolicyList: ge,
|
|
26
|
+
errors: Te,
|
|
27
|
+
isDirty: ye
|
|
28
|
+
} = be, { register: I, handleSubmit: Ie, control: m, getValues: Ve, setValue: O, reset: we, watch: x } = Ce;
|
|
29
|
+
pe.useImperativeHandle(ve, () => ({
|
|
72
30
|
requestSubmit() {
|
|
73
31
|
var i;
|
|
74
|
-
(i =
|
|
32
|
+
(i = T.formRef.current) == null || i.requestSubmit();
|
|
75
33
|
},
|
|
76
34
|
resetForm() {
|
|
77
35
|
we({
|
|
@@ -79,501 +37,427 @@ function Me(e, be) {
|
|
|
79
37
|
description: "",
|
|
80
38
|
templateId: 0,
|
|
81
39
|
variables: {}
|
|
82
|
-
}),
|
|
40
|
+
}), o.handleTemplates();
|
|
83
41
|
},
|
|
84
|
-
setFormValue(i,
|
|
85
|
-
|
|
42
|
+
setFormValue(i, a) {
|
|
43
|
+
O(i, a);
|
|
86
44
|
},
|
|
87
45
|
getFormValue(i) {
|
|
88
|
-
return
|
|
46
|
+
return Ve(i);
|
|
89
47
|
},
|
|
90
48
|
isDirty() {
|
|
91
|
-
return
|
|
49
|
+
return ye;
|
|
92
50
|
},
|
|
93
51
|
getWatchedValue(i) {
|
|
94
|
-
return
|
|
95
|
-
}
|
|
96
|
-
})), p.useEffect(() => (O(), () => {
|
|
97
|
-
}), [e.mappedTemplates]), p.useEffect(() => {
|
|
98
|
-
e.onSelectedTemplateChange && e.onSelectedTemplateChange(w);
|
|
99
|
-
}, [w]);
|
|
100
|
-
const Ve = () => {
|
|
101
|
-
if (e.onCancel) {
|
|
102
|
-
e.onCancel(F);
|
|
103
|
-
return;
|
|
52
|
+
return x(i);
|
|
104
53
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const n = (d = (o = e == null ? void 0 : e.fieldOptions) == null ? void 0 : o[i]) == null ? void 0 : d.maxChar;
|
|
109
|
-
return n != null && !Number.isNaN(Number(n)) ? Number(n) : void 0;
|
|
110
|
-
};
|
|
111
|
-
return /* @__PURE__ */ t(
|
|
112
|
-
m,
|
|
54
|
+
}));
|
|
55
|
+
const Se = /* @__PURE__ */ s(
|
|
56
|
+
Ee,
|
|
113
57
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
children: /* @__PURE__ */ c(
|
|
124
|
-
"form",
|
|
125
|
-
{
|
|
126
|
-
ref: V,
|
|
127
|
-
onSubmit: xe(e.onSubmit),
|
|
128
|
-
style: { display: "flex", flexDirection: "column" },
|
|
129
|
-
children: [
|
|
130
|
-
!((R = (P = e.fieldOptions) == null ? void 0 : P.title) != null && R.hidden) && /* @__PURE__ */ t(
|
|
131
|
-
m,
|
|
132
|
-
{
|
|
133
|
-
condition: a === "left",
|
|
134
|
-
wrapper: (i) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
|
|
135
|
-
/* @__PURE__ */ t(y, { width: "32%", children: "Title *" }),
|
|
136
|
-
/* @__PURE__ */ t(l, { width: "68%", children: i })
|
|
137
|
-
] }),
|
|
138
|
-
children: /* @__PURE__ */ c(l, { mb: 2, children: [
|
|
139
|
-
/* @__PURE__ */ t(
|
|
140
|
-
m,
|
|
141
|
-
{
|
|
142
|
-
condition: a === "top",
|
|
143
|
-
wrapper: L("Title", !0),
|
|
144
|
-
children: /* @__PURE__ */ t(
|
|
145
|
-
x,
|
|
146
|
-
{
|
|
147
|
-
label: a === "default" ? "Title *" : void 0,
|
|
148
|
-
variant: e.inputVariant,
|
|
149
|
-
placeholder: ((A = (B = e.fieldOptions) == null ? void 0 : B.title) == null ? void 0 : A.placeholder) ?? "",
|
|
150
|
-
inputProps: v("title") ? { maxLength: v("title") } : void 0,
|
|
151
|
-
fullWidth: !0,
|
|
152
|
-
...S("title", { required: !0 }),
|
|
153
|
-
...Te.title && {
|
|
154
|
-
helperText: "This field is required!",
|
|
155
|
-
error: !0
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
)
|
|
159
|
-
}
|
|
160
|
-
),
|
|
161
|
-
v("title") && /* @__PURE__ */ t(ve, { sx: { textAlign: "right", mt: 0.5 }, children: `${(D = I("title")) == null ? void 0 : D.length}/${v("title")}` }),
|
|
162
|
-
e.fieldOptions && ((N = e.fieldOptions.title) == null ? void 0 : N.helperText)
|
|
163
|
-
] })
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
!((W = (_ = e.fieldOptions) == null ? void 0 : _.description) != null && W.hidden) && /* @__PURE__ */ t(pe, { children: ($ = (q = e.fieldOptions) == null ? void 0 : q.description) != null && $.component ? e.fieldOptions.description.component : (
|
|
167
|
-
// Otherwise fallback to TextField
|
|
58
|
+
ref: T.formRef,
|
|
59
|
+
onSubmit: Ie(e.onSubmit),
|
|
60
|
+
children: [
|
|
61
|
+
!((w = (V = e.fieldOptions) == null ? void 0 : V.title) != null && w.hidden) && /* @__PURE__ */ t(
|
|
62
|
+
d,
|
|
63
|
+
{
|
|
64
|
+
condition: n === "left",
|
|
65
|
+
wrapper: h("Title *"),
|
|
66
|
+
children: /* @__PURE__ */ s(p, { children: [
|
|
168
67
|
/* @__PURE__ */ t(
|
|
169
|
-
|
|
68
|
+
d,
|
|
170
69
|
{
|
|
171
|
-
condition:
|
|
172
|
-
wrapper: (
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
] }),
|
|
176
|
-
children: /* @__PURE__ */ c(l, { mb: 2, children: [
|
|
177
|
-
/* @__PURE__ */ t(
|
|
178
|
-
m,
|
|
179
|
-
{
|
|
180
|
-
condition: a === "top",
|
|
181
|
-
wrapper: L("Description", !1),
|
|
182
|
-
children: /* @__PURE__ */ t(
|
|
183
|
-
x,
|
|
184
|
-
{
|
|
185
|
-
label: a === "default" ? "Description" : void 0,
|
|
186
|
-
inputProps: v("description") ? { maxLength: v("description") } : void 0,
|
|
187
|
-
placeholder: ((M = (K = e.fieldOptions) == null ? void 0 : K.description) == null ? void 0 : M.placeholder) ?? "",
|
|
188
|
-
variant: e.inputVariant,
|
|
189
|
-
fullWidth: !0,
|
|
190
|
-
multiline: !0,
|
|
191
|
-
minRows: (j = (U = e.fieldOptions) == null ? void 0 : U.description) == null ? void 0 : j.minRows,
|
|
192
|
-
...S("description")
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
}
|
|
196
|
-
),
|
|
197
|
-
v("description") && /* @__PURE__ */ t(ve, { sx: { textAlign: "right", mt: 0.5 }, children: `${(G = I("description")) == null ? void 0 : G.length}/${v(
|
|
198
|
-
"description"
|
|
199
|
-
)}` }),
|
|
200
|
-
(J = (H = e.fieldOptions) == null ? void 0 : H.description) == null ? void 0 : J.helperText
|
|
201
|
-
] })
|
|
202
|
-
}
|
|
203
|
-
)
|
|
204
|
-
) }),
|
|
205
|
-
!((Y = (Q = e.fieldOptions) == null ? void 0 : Q.templateId) != null && Y.hidden) && /* @__PURE__ */ t(
|
|
206
|
-
m,
|
|
207
|
-
{
|
|
208
|
-
condition: a === "left",
|
|
209
|
-
wrapper: (i) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
|
|
210
|
-
/* @__PURE__ */ t(y, { width: "32%", children: "Template" }),
|
|
211
|
-
/* @__PURE__ */ t(l, { width: "68%", children: i })
|
|
212
|
-
] }),
|
|
213
|
-
children: /* @__PURE__ */ c(Pe, { sx: { mb: 2 }, children: [
|
|
214
|
-
/* @__PURE__ */ t(
|
|
215
|
-
m,
|
|
70
|
+
condition: n === "top",
|
|
71
|
+
wrapper: g("Title", !0),
|
|
72
|
+
children: /* @__PURE__ */ t(
|
|
73
|
+
b,
|
|
216
74
|
{
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
if ((o = (r = e.fieldOptions) == null ? void 0 : r.templateId) != null && o.disabled) {
|
|
227
|
-
const d = i ? e.mappedTemplates.get(i) : void 0;
|
|
228
|
-
return /* @__PURE__ */ t(
|
|
229
|
-
x,
|
|
230
|
-
{
|
|
231
|
-
label: a === "default" ? "Template" : void 0,
|
|
232
|
-
variant: e.inputVariant,
|
|
233
|
-
fullWidth: !0,
|
|
234
|
-
disabled: !0,
|
|
235
|
-
value: d == null ? void 0 : d.name,
|
|
236
|
-
InputLabelProps: {
|
|
237
|
-
shrink: a === "default" ? !0 : void 0
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
return /* @__PURE__ */ t(
|
|
243
|
-
We,
|
|
244
|
-
{
|
|
245
|
-
label: a === "default" ? "Template" : void 0,
|
|
246
|
-
data: Ie,
|
|
247
|
-
selected: i === 0 ? "" : [String(i)],
|
|
248
|
-
disabled: Le,
|
|
249
|
-
variant: e.inputVariant,
|
|
250
|
-
onChange: (d, s) => {
|
|
251
|
-
const u = {
|
|
252
|
-
target: {
|
|
253
|
-
value: s ? Number(d) : 0
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
n(u), O();
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
}
|
|
264
|
-
),
|
|
265
|
-
e.fieldOptions && ((z = e.fieldOptions.templateId) == null ? void 0 : z.helperText)
|
|
266
|
-
] })
|
|
267
|
-
}
|
|
268
|
-
),
|
|
269
|
-
"aliasList" in e.defaultValues && !((Z = (X = e.fieldOptions) == null ? void 0 : X.aliasList) != null && Z.hidden) && /* @__PURE__ */ t(
|
|
270
|
-
h,
|
|
271
|
-
{
|
|
272
|
-
name: "aliasList",
|
|
273
|
-
control: f,
|
|
274
|
-
render: ({ field: { value: i, onChange: n, ...r } }) => {
|
|
275
|
-
var d;
|
|
276
|
-
const o = (s) => {
|
|
277
|
-
const b = {
|
|
278
|
-
target: {
|
|
279
|
-
value: s.target.value.split(",").map((he) => he.trimStart())
|
|
75
|
+
label: n === "default" ? "Title *" : void 0,
|
|
76
|
+
variant: e.inputVariant,
|
|
77
|
+
placeholder: ((F = (S = e.fieldOptions) == null ? void 0 : S.title) == null ? void 0 : F.placeholder) ?? "",
|
|
78
|
+
inputProps: o.maxCharValidation("title") ? { maxLength: o.maxCharValidation("title") } : void 0,
|
|
79
|
+
fullWidth: !0,
|
|
80
|
+
...I("title", { required: !0 }),
|
|
81
|
+
...Te.title && {
|
|
82
|
+
helperText: "This field is required!",
|
|
83
|
+
error: !0
|
|
280
84
|
}
|
|
281
|
-
};
|
|
282
|
-
n(b);
|
|
283
|
-
};
|
|
284
|
-
return /* @__PURE__ */ t(
|
|
285
|
-
m,
|
|
286
|
-
{
|
|
287
|
-
condition: a === "left",
|
|
288
|
-
wrapper: (s) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
|
|
289
|
-
/* @__PURE__ */ t(y, { width: "32%", children: "Alias List" }),
|
|
290
|
-
/* @__PURE__ */ t(l, { width: "68%", children: s })
|
|
291
|
-
] }),
|
|
292
|
-
children: /* @__PURE__ */ c(l, { mb: 2, children: [
|
|
293
|
-
/* @__PURE__ */ t(
|
|
294
|
-
x,
|
|
295
|
-
{
|
|
296
|
-
label: a === "default" ? "Alias List" : void 0,
|
|
297
|
-
variant: e.inputVariant,
|
|
298
|
-
fullWidth: !0,
|
|
299
|
-
value: i,
|
|
300
|
-
helperText: "Add list values with the comma (,) separated string",
|
|
301
|
-
onChange: o,
|
|
302
|
-
...r
|
|
303
|
-
}
|
|
304
|
-
),
|
|
305
|
-
e.fieldOptions && ((d = e.fieldOptions.aliasList) == null ? void 0 : d.helperText)
|
|
306
|
-
] })
|
|
307
85
|
}
|
|
308
|
-
)
|
|
86
|
+
)
|
|
309
87
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
88
|
+
),
|
|
89
|
+
o.maxCharValidation("title") && /* @__PURE__ */ t(fe, { children: `${(B = x("title")) == null ? void 0 : B.length}/${o.maxCharValidation("title")}` }),
|
|
90
|
+
e.fieldOptions && ((R = e.fieldOptions.title) == null ? void 0 : R.helperText)
|
|
91
|
+
] })
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
!((k = (P = e.fieldOptions) == null ? void 0 : P.description) != null && k.hidden) && /* @__PURE__ */ t(se, { children: (A = (W = e.fieldOptions) == null ? void 0 : W.description) != null && A.component ? e.fieldOptions.description.component : /* @__PURE__ */ t(
|
|
95
|
+
d,
|
|
96
|
+
{
|
|
97
|
+
condition: n === "left",
|
|
98
|
+
wrapper: h("Description"),
|
|
99
|
+
children: /* @__PURE__ */ s(p, { children: [
|
|
100
|
+
/* @__PURE__ */ t(
|
|
101
|
+
d,
|
|
102
|
+
{
|
|
103
|
+
condition: n === "top",
|
|
104
|
+
wrapper: g("Description", !1),
|
|
105
|
+
children: /* @__PURE__ */ t(
|
|
106
|
+
b,
|
|
321
107
|
{
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
labelPosition: a,
|
|
333
|
-
value: i || void 0,
|
|
334
|
-
onChange: n
|
|
335
|
-
}
|
|
336
|
-
),
|
|
337
|
-
e.fieldOptions && ((r = e.fieldOptions.appliedPolicies) == null ? void 0 : r.helperText)
|
|
338
|
-
] })
|
|
108
|
+
label: n === "default" ? "Description" : void 0,
|
|
109
|
+
inputProps: o.maxCharValidation("description") ? {
|
|
110
|
+
maxLength: o.maxCharValidation("description")
|
|
111
|
+
} : void 0,
|
|
112
|
+
placeholder: ((E = (D = e.fieldOptions) == null ? void 0 : D.description) == null ? void 0 : E.placeholder) ?? "",
|
|
113
|
+
variant: e.inputVariant,
|
|
114
|
+
fullWidth: !0,
|
|
115
|
+
multiline: !0,
|
|
116
|
+
minRows: (U = (q = e.fieldOptions) == null ? void 0 : q.description) == null ? void 0 : U.minRows,
|
|
117
|
+
...I("description")
|
|
339
118
|
}
|
|
340
|
-
)
|
|
119
|
+
)
|
|
341
120
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
labelPosition: a,
|
|
357
|
-
fieldOptions: e.fieldOptions,
|
|
358
|
-
onChange: n
|
|
359
|
-
}
|
|
360
|
-
)
|
|
361
|
-
}
|
|
362
|
-
),
|
|
363
|
-
"fileInBase64" in e.defaultValues && !((ne = (ie = e.fieldOptions) == null ? void 0 : ie.fileInBase64) != null && ne.hidden) && /* @__PURE__ */ c(pe, { children: [
|
|
121
|
+
),
|
|
122
|
+
o.maxCharValidation("description") && /* @__PURE__ */ t(fe, { children: `${(N = x("description")) == null ? void 0 : N.length}/${o.maxCharValidation(
|
|
123
|
+
"description"
|
|
124
|
+
)}` }),
|
|
125
|
+
(G = ($ = e.fieldOptions) == null ? void 0 : $.description) == null ? void 0 : G.helperText
|
|
126
|
+
] })
|
|
127
|
+
}
|
|
128
|
+
) }),
|
|
129
|
+
!((j = (_ = e.fieldOptions) == null ? void 0 : _.templateId) != null && j.hidden) && /* @__PURE__ */ t(
|
|
130
|
+
d,
|
|
131
|
+
{
|
|
132
|
+
condition: n === "left",
|
|
133
|
+
wrapper: h("Template"),
|
|
134
|
+
children: /* @__PURE__ */ s(qe, { children: [
|
|
364
135
|
/* @__PURE__ */ t(
|
|
365
|
-
|
|
136
|
+
d,
|
|
366
137
|
{
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
return /* @__PURE__ */ t(
|
|
383
|
-
m,
|
|
384
|
-
{
|
|
385
|
-
condition: a === "left",
|
|
386
|
-
wrapper: (s) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
|
|
387
|
-
/* @__PURE__ */ t(y, { width: "32%", children: "File to Upload" }),
|
|
388
|
-
/* @__PURE__ */ t(l, { width: "68%", children: s })
|
|
389
|
-
] }),
|
|
390
|
-
children: /* @__PURE__ */ c(l, { mb: 2, children: [
|
|
391
|
-
/* @__PURE__ */ t(
|
|
392
|
-
x,
|
|
138
|
+
condition: n === "top",
|
|
139
|
+
wrapper: g("Template", !1),
|
|
140
|
+
children: /* @__PURE__ */ t(
|
|
141
|
+
u,
|
|
142
|
+
{
|
|
143
|
+
name: "templateId",
|
|
144
|
+
control: m,
|
|
145
|
+
render: ({ field: { value: i, onChange: a } }) => {
|
|
146
|
+
var r, c;
|
|
147
|
+
if ((c = (r = e.fieldOptions) == null ? void 0 : r.templateId) != null && c.disabled) {
|
|
148
|
+
const l = i ? e.templates.get(i) : void 0;
|
|
149
|
+
return /* @__PURE__ */ t(
|
|
150
|
+
b,
|
|
393
151
|
{
|
|
394
|
-
|
|
395
|
-
label: a === "default" ? "File to Upload" : void 0,
|
|
152
|
+
label: n === "default" ? "Template" : void 0,
|
|
396
153
|
variant: e.inputVariant,
|
|
397
154
|
fullWidth: !0,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
155
|
+
disabled: !0,
|
|
156
|
+
value: l == null ? void 0 : l.name,
|
|
157
|
+
InputLabelProps: {
|
|
158
|
+
shrink: n === "default" ? !0 : void 0
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
return /* @__PURE__ */ t(
|
|
164
|
+
ke,
|
|
165
|
+
{
|
|
166
|
+
label: n === "default" ? "Template" : void 0,
|
|
167
|
+
data: Oe,
|
|
168
|
+
selected: i === 0 ? "" : [String(i)],
|
|
169
|
+
disabled: Le,
|
|
170
|
+
variant: e.inputVariant,
|
|
171
|
+
onChange: (l, f) => {
|
|
172
|
+
const v = {
|
|
173
|
+
target: { value: f ? Number(l) : 0 }
|
|
174
|
+
};
|
|
175
|
+
a(v), o.handleTemplates();
|
|
402
176
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
] })
|
|
177
|
+
}
|
|
178
|
+
);
|
|
406
179
|
}
|
|
407
|
-
|
|
408
|
-
|
|
180
|
+
}
|
|
181
|
+
)
|
|
409
182
|
}
|
|
410
183
|
),
|
|
411
|
-
|
|
412
|
-
|
|
184
|
+
e.fieldOptions && ((H = e.fieldOptions.templateId) == null ? void 0 : H.helperText)
|
|
185
|
+
] })
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
"aliasList" in (e.values ?? {}) && !((z = (X = e.fieldOptions) == null ? void 0 : X.aliasList) != null && z.hidden) && /* @__PURE__ */ t(
|
|
189
|
+
u,
|
|
190
|
+
{
|
|
191
|
+
name: "aliasList",
|
|
192
|
+
control: m,
|
|
193
|
+
render: ({ field: { value: i, onChange: a, ...r } }) => {
|
|
194
|
+
var l;
|
|
195
|
+
const c = (f) => {
|
|
196
|
+
const L = f.target.value.split(",").map((oe) => oe.trimStart());
|
|
197
|
+
a({ target: { value: L } });
|
|
198
|
+
};
|
|
199
|
+
return /* @__PURE__ */ t(
|
|
200
|
+
d,
|
|
413
201
|
{
|
|
414
|
-
condition:
|
|
415
|
-
wrapper: (
|
|
416
|
-
|
|
417
|
-
/* @__PURE__ */ t(l, { width: "68%", children: i })
|
|
418
|
-
] }),
|
|
419
|
-
children: /* @__PURE__ */ c(l, { mb: 2, children: [
|
|
202
|
+
condition: n === "left",
|
|
203
|
+
wrapper: h("Alias List"),
|
|
204
|
+
children: /* @__PURE__ */ s(p, { children: [
|
|
420
205
|
/* @__PURE__ */ t(
|
|
421
|
-
|
|
206
|
+
b,
|
|
422
207
|
{
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
),
|
|
431
|
-
label: a === "default" ? "Redacted" : void 0
|
|
208
|
+
label: n === "default" ? "Alias List" : void 0,
|
|
209
|
+
variant: e.inputVariant,
|
|
210
|
+
fullWidth: !0,
|
|
211
|
+
value: i,
|
|
212
|
+
helperText: "Add list values with the comma (,) separated string",
|
|
213
|
+
onChange: c,
|
|
214
|
+
...r
|
|
432
215
|
}
|
|
433
216
|
),
|
|
434
|
-
e.fieldOptions && ((
|
|
217
|
+
e.fieldOptions && ((l = e.fieldOptions.aliasList) == null ? void 0 : l.helperText)
|
|
435
218
|
] })
|
|
436
219
|
}
|
|
437
|
-
)
|
|
438
|
-
|
|
439
|
-
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
ge && "appliedPolicies" in (e.values ?? {}) && !((K = (J = e.fieldOptions) == null ? void 0 : J.appliedPolicies) != null && K.hidden) && /* @__PURE__ */ t(
|
|
225
|
+
u,
|
|
226
|
+
{
|
|
227
|
+
name: "appliedPolicies",
|
|
228
|
+
control: m,
|
|
229
|
+
render: ({ field: { value: i, onChange: a } }) => {
|
|
230
|
+
var r;
|
|
231
|
+
return /* @__PURE__ */ t(
|
|
232
|
+
d,
|
|
440
233
|
{
|
|
441
|
-
condition:
|
|
442
|
-
wrapper: (
|
|
443
|
-
|
|
444
|
-
/* @__PURE__ */ t(l, { width: "68%", children: i })
|
|
445
|
-
] }),
|
|
446
|
-
children: /* @__PURE__ */ c(l, { mb: 2, children: [
|
|
234
|
+
condition: n === "left",
|
|
235
|
+
wrapper: h("Policy List"),
|
|
236
|
+
children: /* @__PURE__ */ s(p, { children: [
|
|
447
237
|
/* @__PURE__ */ t(
|
|
448
|
-
|
|
238
|
+
We,
|
|
449
239
|
{
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
control: f,
|
|
455
|
-
render: ({ field: { value: i, ...n } }) => /* @__PURE__ */ t(ge, { checked: !!i, ...n })
|
|
456
|
-
}
|
|
457
|
-
),
|
|
458
|
-
label: a === "default" ? "Content Encrypted" : void 0
|
|
240
|
+
policyList: e.policyList ?? [],
|
|
241
|
+
labelPosition: n,
|
|
242
|
+
value: i || void 0,
|
|
243
|
+
onChange: a
|
|
459
244
|
}
|
|
460
245
|
),
|
|
461
|
-
e.fieldOptions && ((
|
|
246
|
+
e.fieldOptions && ((r = e.fieldOptions.appliedPolicies) == null ? void 0 : r.helperText)
|
|
462
247
|
] })
|
|
463
248
|
}
|
|
464
|
-
)
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
/* @__PURE__ */ t(
|
|
254
|
+
u,
|
|
255
|
+
{
|
|
256
|
+
name: "variables",
|
|
257
|
+
control: m,
|
|
258
|
+
render: ({ field: { value: i, onChange: a } }) => /* @__PURE__ */ t(
|
|
259
|
+
Ae,
|
|
468
260
|
{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
n(s);
|
|
477
|
-
};
|
|
478
|
-
return /* @__PURE__ */ t(
|
|
479
|
-
Ae,
|
|
480
|
-
{
|
|
481
|
-
selectedIds: o,
|
|
482
|
-
memberedGroups: e.memberedGroups,
|
|
483
|
-
showError: !!r.error,
|
|
484
|
-
variant: e.inputVariant,
|
|
485
|
-
labelPosition: a,
|
|
486
|
-
onChange: d
|
|
487
|
-
}
|
|
488
|
-
);
|
|
489
|
-
}
|
|
261
|
+
template: xe,
|
|
262
|
+
value: i,
|
|
263
|
+
mapboxAccessToken: e.mapboxAccessToken,
|
|
264
|
+
variant: e.inputVariant,
|
|
265
|
+
labelPosition: n,
|
|
266
|
+
fieldOptions: e.fieldOptions,
|
|
267
|
+
onChange: a
|
|
490
268
|
}
|
|
491
|
-
)
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
269
|
+
)
|
|
270
|
+
}
|
|
271
|
+
),
|
|
272
|
+
"fileInBase64" in (e.values ?? {}) && !((Q = (M = e.fieldOptions) == null ? void 0 : M.fileInBase64) != null && Q.hidden) && /* @__PURE__ */ s(se, { children: [
|
|
273
|
+
/* @__PURE__ */ t(
|
|
274
|
+
u,
|
|
275
|
+
{
|
|
276
|
+
name: "fileInBase64",
|
|
277
|
+
control: m,
|
|
278
|
+
render: ({ field: { onChange: i, ...a } }) => {
|
|
279
|
+
var c;
|
|
280
|
+
const r = (l) => {
|
|
281
|
+
if (!l.target.files) return;
|
|
282
|
+
const f = new FileReader();
|
|
283
|
+
f.onload = (L) => {
|
|
284
|
+
var ce;
|
|
285
|
+
const Fe = ((ce = L.target) == null ? void 0 : ce.result).split("base64,")[1];
|
|
286
|
+
i(Fe);
|
|
504
287
|
};
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
children: [
|
|
532
|
-
e.onCancel && /* @__PURE__ */ t(
|
|
533
|
-
C,
|
|
534
|
-
{
|
|
535
|
-
color: "primary",
|
|
536
|
-
variant: "text",
|
|
537
|
-
disabled: e.loading,
|
|
538
|
-
sx: { textTransform: "none" },
|
|
539
|
-
onClick: Ve,
|
|
540
|
-
children: "Cancel"
|
|
541
|
-
}
|
|
542
|
-
),
|
|
543
|
-
/* @__PURE__ */ t(l, { sx: { flex: e.onCancel ? "none" : 1 }, children: e.customSaveButtons ? e.customSaveButtons : e.saveButtons ? e.saveButtons.map((i, n) => /* @__PURE__ */ t(
|
|
544
|
-
C,
|
|
545
|
-
{
|
|
546
|
-
type: "submit",
|
|
547
|
-
color: "primary",
|
|
548
|
-
variant: "contained",
|
|
549
|
-
disabled: e.loading,
|
|
550
|
-
startIcon: i.icon,
|
|
551
|
-
sx: { ml: 1, textTransform: "none" },
|
|
552
|
-
onClick: i.onClick,
|
|
553
|
-
children: i.label
|
|
554
|
-
},
|
|
555
|
-
n
|
|
556
|
-
)) : /* @__PURE__ */ t(
|
|
557
|
-
C,
|
|
558
|
-
{
|
|
559
|
-
type: "submit",
|
|
560
|
-
color: "primary",
|
|
561
|
-
variant: "contained",
|
|
562
|
-
disabled: e.loading,
|
|
563
|
-
sx: { textTransform: "none" },
|
|
564
|
-
children: e.loading ? "Saving..." : "Save"
|
|
565
|
-
}
|
|
566
|
-
) })
|
|
567
|
-
]
|
|
288
|
+
const v = l.target.files[0];
|
|
289
|
+
O("originalFileName", v.name), O("contentType", v.type), f.readAsDataURL(v);
|
|
290
|
+
};
|
|
291
|
+
return /* @__PURE__ */ t(
|
|
292
|
+
d,
|
|
293
|
+
{
|
|
294
|
+
condition: n === "left",
|
|
295
|
+
wrapper: h("File to Upload"),
|
|
296
|
+
children: /* @__PURE__ */ s(p, { children: [
|
|
297
|
+
/* @__PURE__ */ t(
|
|
298
|
+
b,
|
|
299
|
+
{
|
|
300
|
+
type: "file",
|
|
301
|
+
label: n === "default" ? "File to Upload" : void 0,
|
|
302
|
+
variant: e.inputVariant,
|
|
303
|
+
fullWidth: !0,
|
|
304
|
+
helperText: "Select a file to upload",
|
|
305
|
+
InputLabelProps: { shrink: !0 },
|
|
306
|
+
onChange: r,
|
|
307
|
+
...a
|
|
308
|
+
}
|
|
309
|
+
),
|
|
310
|
+
e.fieldOptions && ((c = e.fieldOptions.fileInBase64) == null ? void 0 : c.helperText)
|
|
311
|
+
] })
|
|
312
|
+
}
|
|
313
|
+
);
|
|
568
314
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
!((Z = (Y = e.fieldOptions) == null ? void 0 : Y.redacted) != null && Z.hidden) && /* @__PURE__ */ t(
|
|
318
|
+
d,
|
|
319
|
+
{
|
|
320
|
+
condition: n === "left",
|
|
321
|
+
wrapper: h("Redacted"),
|
|
322
|
+
children: /* @__PURE__ */ s(p, { children: [
|
|
323
|
+
/* @__PURE__ */ t(
|
|
324
|
+
me,
|
|
325
|
+
{
|
|
326
|
+
control: /* @__PURE__ */ t(
|
|
327
|
+
u,
|
|
328
|
+
{
|
|
329
|
+
name: "redacted",
|
|
330
|
+
control: m,
|
|
331
|
+
render: ({ field: { value: i, ...a } }) => /* @__PURE__ */ t(ue, { checked: !!i, ...a })
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
label: n === "default" ? "Redacted" : void 0
|
|
335
|
+
}
|
|
336
|
+
),
|
|
337
|
+
e.fieldOptions && ((ee = e.fieldOptions.redacted) == null ? void 0 : ee.helperText)
|
|
338
|
+
] })
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
!((ie = (te = e.fieldOptions) == null ? void 0 : te.contentEncrypted) != null && ie.hidden) && /* @__PURE__ */ t(
|
|
342
|
+
d,
|
|
343
|
+
{
|
|
344
|
+
condition: n === "left",
|
|
345
|
+
wrapper: h("Content Encrypted"),
|
|
346
|
+
children: /* @__PURE__ */ s(p, { children: [
|
|
347
|
+
/* @__PURE__ */ t(
|
|
348
|
+
me,
|
|
349
|
+
{
|
|
350
|
+
control: /* @__PURE__ */ t(
|
|
351
|
+
u,
|
|
352
|
+
{
|
|
353
|
+
name: "contentEncrypted",
|
|
354
|
+
control: m,
|
|
355
|
+
render: ({ field: { value: i, ...a } }) => /* @__PURE__ */ t(ue, { checked: !!i, ...a })
|
|
356
|
+
}
|
|
357
|
+
),
|
|
358
|
+
label: n === "default" ? "Content Encrypted" : void 0
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
e.fieldOptions && ((ne = e.fieldOptions.contentEncrypted) == null ? void 0 : ne.helperText)
|
|
362
|
+
] })
|
|
363
|
+
}
|
|
364
|
+
)
|
|
365
|
+
] }),
|
|
366
|
+
!((le = (ae = e.fieldOptions) == null ? void 0 : ae.disseminationList) != null && le.hidden) && /* @__PURE__ */ t(
|
|
367
|
+
u,
|
|
368
|
+
{
|
|
369
|
+
name: "disseminationList",
|
|
370
|
+
rules: { required: !0 },
|
|
371
|
+
control: m,
|
|
372
|
+
render: ({ field: { value: i, onChange: a }, fieldState: r }) => {
|
|
373
|
+
const c = i || [], l = (f) => {
|
|
374
|
+
a(f);
|
|
375
|
+
};
|
|
376
|
+
return /* @__PURE__ */ t(
|
|
377
|
+
Re,
|
|
378
|
+
{
|
|
379
|
+
selectedIds: c,
|
|
380
|
+
memberedGroups: e.memberedGroups,
|
|
381
|
+
showError: !!r.error,
|
|
382
|
+
variant: e.inputVariant,
|
|
383
|
+
labelPosition: n,
|
|
384
|
+
onChange: l
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
),
|
|
390
|
+
!((de = (re = e.fieldOptions) == null ? void 0 : re.securityLevelId) != null && de.hidden) && /* @__PURE__ */ t(Ue, { children: /* @__PURE__ */ t(
|
|
391
|
+
u,
|
|
392
|
+
{
|
|
393
|
+
name: "securityLevelId",
|
|
394
|
+
rules: { required: !0 },
|
|
395
|
+
control: m,
|
|
396
|
+
render: ({ field: { value: i, onChange: a }, fieldState: r }) => {
|
|
397
|
+
const c = (l) => {
|
|
398
|
+
a(l);
|
|
399
|
+
};
|
|
400
|
+
return /* @__PURE__ */ t(
|
|
401
|
+
Pe,
|
|
402
|
+
{
|
|
403
|
+
value: i || 0,
|
|
404
|
+
securityLevels: e.securityLevels,
|
|
405
|
+
showError: !!r.error,
|
|
406
|
+
variant: e.inputVariant,
|
|
407
|
+
labelPosition: n,
|
|
408
|
+
onChange: c
|
|
409
|
+
}
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
) }),
|
|
414
|
+
/* @__PURE__ */ s(Ne, { children: [
|
|
415
|
+
e.onCancel && /* @__PURE__ */ t(
|
|
416
|
+
$e,
|
|
417
|
+
{
|
|
418
|
+
color: "primary",
|
|
419
|
+
variant: "text",
|
|
420
|
+
disabled: C,
|
|
421
|
+
onClick: o.handleOnCancel,
|
|
422
|
+
children: "Cancel"
|
|
423
|
+
}
|
|
424
|
+
),
|
|
425
|
+
/* @__PURE__ */ t(Ge, { ownerState: y, children: e.customSaveButtons ? e.customSaveButtons : e.saveButtons ? e.saveButtons.map((i, a) => /* @__PURE__ */ t(
|
|
426
|
+
he,
|
|
427
|
+
{
|
|
428
|
+
type: "submit",
|
|
429
|
+
color: "primary",
|
|
430
|
+
variant: "contained",
|
|
431
|
+
disabled: C,
|
|
432
|
+
startIcon: i.icon,
|
|
433
|
+
onClick: i.onClick,
|
|
434
|
+
children: i.label
|
|
435
|
+
},
|
|
436
|
+
a
|
|
437
|
+
)) : /* @__PURE__ */ t(
|
|
438
|
+
he,
|
|
439
|
+
{
|
|
440
|
+
type: "submit",
|
|
441
|
+
color: "primary",
|
|
442
|
+
variant: "contained",
|
|
443
|
+
disabled: C,
|
|
444
|
+
children: C ? "Saving..." : "Save"
|
|
445
|
+
}
|
|
446
|
+
) })
|
|
447
|
+
] })
|
|
448
|
+
]
|
|
573
449
|
}
|
|
574
450
|
);
|
|
451
|
+
return /* @__PURE__ */ t(_e, { ownerState: y, sx: e.sx, children: /* @__PURE__ */ t(
|
|
452
|
+
d,
|
|
453
|
+
{
|
|
454
|
+
condition: e.variant === void 0 || e.variant === "inline",
|
|
455
|
+
wrapper: (i) => /* @__PURE__ */ t(Be, { disableHeader: !0, sx: je, children: i }),
|
|
456
|
+
children: Se
|
|
457
|
+
}
|
|
458
|
+
) });
|
|
575
459
|
}
|
|
576
|
-
const dt =
|
|
460
|
+
const dt = pe.forwardRef(He);
|
|
577
461
|
export {
|
|
578
462
|
dt as InstanceForm
|
|
579
463
|
};
|