@voplus/morpho-csp 6.0.96 → 6.0.97
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Divider } from "antd";
|
|
3
3
|
import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
|
|
4
4
|
import { faUserTag } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
-
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
6
6
|
import { useIncorporationFormContext } from "../../incorporation/context";
|
|
7
7
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
@@ -16,7 +16,7 @@ const DataProtectionOfficer = (props) => {
|
|
|
16
16
|
const context = useIncorporationFormContext();
|
|
17
17
|
const incorporation = useCLDAForm(props.id);
|
|
18
18
|
return observe(() => {
|
|
19
|
-
var _a
|
|
19
|
+
var _a;
|
|
20
20
|
return (React.createElement(Section, { title: React.createElement(React.Fragment, null,
|
|
21
21
|
React.createElement(FontAwesomeIcon, { icon: faUserTag }),
|
|
22
22
|
"Data Protection Officer",
|
|
@@ -32,13 +32,13 @@ const DataProtectionOfficer = (props) => {
|
|
|
32
32
|
React.createElement("div", { className: "internal-use-section secretary-list" },
|
|
33
33
|
React.createElement("div", { className: "sub-title" }, "DPO"),
|
|
34
34
|
React.createElement(Divider, { style: { margin: "10px 0" } }),
|
|
35
|
-
React.createElement("
|
|
36
|
-
|
|
35
|
+
React.createElement(InlineEdit, { defaultValue: "", showEditIcon: (_a = context.editable) !== null && _a !== void 0 ? _a : true, editable: false, onEditIconClick: () => setShowDialog(true), content: (v) => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
return ((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.dpo) ? (React.createElement(UnitReference, { id: (_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.dpo, symbol: true })) : (React.createElement("div", { style: { minHeight: "26px" } },
|
|
38
|
+
React.createElement("span", { className: "add-info-style" }, "Select Contact")));
|
|
39
|
+
} }),
|
|
37
40
|
showDialog && (React.createElement(UnitsSelectDialog, { type: "click", isEmptyData: true, multiSelect: false, onSelect: onSave, onCancel: () => setShowDialog(false) })))));
|
|
38
41
|
});
|
|
39
|
-
function setAdd() {
|
|
40
|
-
setShowDialog(true);
|
|
41
|
-
}
|
|
42
42
|
async function onSave(unit) {
|
|
43
43
|
var _a;
|
|
44
44
|
await store
|
package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/DataProtectionOfficer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/DataProtectionOfficer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,aAAa,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