@voplus/morpho-csp 10.0.24 → 10.0.25
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/es/data/identity/identity-events/index.d.ts +6 -3
- package/es/data/identity/identity-events/index.js +6 -3
- package/es/data/identity/identity-events/index.js.map +1 -1
- package/es/data/identity/index.d.ts +6 -4
- package/es/data/identity/index.js +6 -4
- package/es/data/identity/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts +7 -9
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js +7 -64
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +7 -14
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +7 -71
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +7 -11
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +7 -61
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +7 -9
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +7 -27
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityChange/index.d.ts +7 -8
- package/es/modules/corporate/company/identity/components/IdentityChange/index.js +7 -28
- package/es/modules/corporate/company/identity/components/IdentityChange/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.d.ts +7 -5
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +7 -62
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityItem/index.d.ts +7 -8
- package/es/modules/corporate/company/identity/components/IdentityItem/index.js +7 -38
- package/es/modules/corporate/company/identity/components/IdentityItem/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +7 -8
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js +7 -18
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.d.ts +7 -10
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js +7 -15
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js.map +1 -1
- package/package.json +2 -1
- package/es/data/identity/IdentityStore.d.ts +0 -35
- package/es/data/identity/IdentityStore.js +0 -119
- package/es/data/identity/IdentityStore.js.map +0 -1
- package/es/data/identity/hooks.d.ts +0 -6
- package/es/data/identity/hooks.js +0 -14
- package/es/data/identity/hooks.js.map +0 -1
- package/es/data/identity/identity-events/useAutoUpdateListData.d.ts +0 -4
- package/es/data/identity/identity-events/useAutoUpdateListData.js +0 -13
- package/es/data/identity/identity-events/useAutoUpdateListData.js.map +0 -1
- package/es/data/identity/identity-events/useOnDeleteIdentity.d.ts +0 -4
- package/es/data/identity/identity-events/useOnDeleteIdentity.js +0 -16
- package/es/data/identity/identity-events/useOnDeleteIdentity.js.map +0 -1
- package/es/data/identity/identity-events/useOnNewIdentity.d.ts +0 -4
- package/es/data/identity/identity-events/useOnNewIdentity.js +0 -16
- package/es/data/identity/identity-events/useOnNewIdentity.js.map +0 -1
- package/es/data/identity/interfaces.d.ts +0 -26
- package/es/data/identity/interfaces.js +0 -2
- package/es/data/identity/interfaces.js.map +0 -1
- package/es/data/identity/types.d.ts +0 -50
- package/es/data/identity/types.js +0 -2
- package/es/data/identity/types.js.map +0 -1
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.css +0 -89
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.css +0 -76
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.css +0 -67
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.css +0 -44
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.d.ts +0 -14
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +0 -94
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +0 -1
- package/es/modules/corporate/company/identity/components/IdentityItem/index.css +0 -45
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.d.ts +0 -6
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js +0 -40
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js.map +0 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.d.ts +0 -3
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +0 -52
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +0 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.d.ts +0 -3
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js +0 -46
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js.map +0 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.css +0 -65
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.d.ts +0 -44
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js +0 -188
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js.map +0 -1
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.css +0 -32
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity/identity-events";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity/identity-events";
|
|
4
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/identity/identity-events/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/identity/identity-events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,4DAA4D,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity";
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/identity/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/identity/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,4CAA4C,CAAC"}
|
package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
export default ContactIdentitySelectDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { ContactIdentitySelectDialog } from "@voplus/morpho-compliance"
|
|
3
|
+
* instead. This component moved to its own package; this compatibility re-export will be
|
|
4
|
+
* removed in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js
CHANGED
|
@@ -1,65 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
9
|
-
import IdentifyDetail from "../IdentifyDetail";
|
|
10
|
-
import IdentityItem from "../IdentityItem";
|
|
11
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
12
|
-
import NewIdentityDialog from "../NewIdentityDialog";
|
|
13
|
-
import classnames from "classnames";
|
|
14
|
-
import "./index.css";
|
|
15
|
-
import { useAutoUpdateListData } from "../../../../../../data/identity/identity-events";
|
|
16
|
-
const ContactIdentitySelectDialog = (props) => {
|
|
17
|
-
const { id, visible } = props;
|
|
18
|
-
const [activeId, setActiveId] = useState("");
|
|
19
|
-
const [openAside, setOpenAside] = useState(false);
|
|
20
|
-
const [addAble, setAddAble] = useState(false);
|
|
21
|
-
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
22
|
-
// spec:1797 — CSP: Identity selection dialog filters identities by selected contact unit
|
|
23
|
-
const list = useCreateListDataState({
|
|
24
|
-
filterDefaults: {
|
|
25
|
-
filters: [{ c: "UnitId", o: "=", l: "And", v1: id }],
|
|
26
|
-
},
|
|
27
|
-
}, [id]);
|
|
28
|
-
useAutoUpdateListData(list, (d) => d.unitId === id);
|
|
29
|
-
useRenderOnChange(() => list.filters.options);
|
|
30
|
-
useIdentityListEffect(list, (result) => list.union(result), list.filters.options);
|
|
31
|
-
return observe(() => (React.createElement(Modal, { title: "", width: openAside ? "66vw" : "33vw", open: visible, closable: false, footer: null, style: { height: "500px" }, className: "contact-identity-select-dialog", onCancel: props.onCancel },
|
|
32
|
-
React.createElement(ViewContext.Provider, { value: view },
|
|
33
|
-
React.createElement("div", { className: "contact-identity-list" },
|
|
34
|
-
React.createElement(Button, { type: "link", className: "ant-modal-close", onClick: props.onCancel },
|
|
35
|
-
React.createElement(FAIcon, { icon: faXmarkRegular, className: "ant-modal-close-x identity-close" })),
|
|
36
|
-
React.createElement("h3", { className: "identity-title" }, "Contact Name Identities"),
|
|
37
|
-
React.createElement("div", { className: "identity-list" },
|
|
38
|
-
React.createElement(ListDataContext.Provider, { value: list },
|
|
39
|
-
React.createElement(ListView, { headerProps: {
|
|
40
|
-
viewTitle: " ",
|
|
41
|
-
sortable: false,
|
|
42
|
-
onAdd: () => setAddAble(true),
|
|
43
|
-
}, renderItem: ({ item, index }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
|
44
|
-
active: activeId === item.id,
|
|
45
|
-
}, onClick: () => {
|
|
46
|
-
setActiveId(item.id);
|
|
47
|
-
setOpenAside(true);
|
|
48
|
-
} },
|
|
49
|
-
React.createElement(IdentityItem, { id: item.id, active: activeId === item.id }))) }))),
|
|
50
|
-
React.createElement("div", { className: "ant-modal-footer" },
|
|
51
|
-
React.createElement(Space, null,
|
|
52
|
-
React.createElement(Button, { onClick: props.onCancel }, "Cancel"),
|
|
53
|
-
React.createElement(Button, { type: "primary", onClick: () => { var _a; return (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, activeId); } }, "Select")))),
|
|
54
|
-
React.createElement("div", { className: classnames("contact-identity-detail", { "aside-none": !openAside }) },
|
|
55
|
-
React.createElement(Button, { type: "link", className: "ant-modal-close", onClick: () => setOpenAside(false) },
|
|
56
|
-
React.createElement(FAIcon, { icon: faXmarkRegular, className: "ant-modal-close-x identity-close" })),
|
|
57
|
-
React.createElement("h3", { className: "identity-title" }, "Identity Details"),
|
|
58
|
-
React.createElement(IdentifyDetail, { identityId: activeId, isPassport: false })),
|
|
59
|
-
addAble && React.createElement(NewIdentityDialog, { id: id, visible: addAble, updateVisible: onSave })))));
|
|
60
|
-
async function onSave(unitId) {
|
|
61
|
-
setAddAble(false);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
export default ContactIdentitySelectDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { ContactIdentitySelectDialog } from "@voplus/morpho-compliance"
|
|
3
|
+
* instead. This component moved to its own package; this compatibility re-export will be
|
|
4
|
+
* removed in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
|
65
8
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,qEAAqE,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,qEAAqE,CAAC"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** Called with the selected identity id when the user picks/links an identity. */
|
|
9
|
-
onSelect?: (identityId: string) => void;
|
|
10
|
-
/** 是否显示 passport */
|
|
11
|
-
isPassport?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare const IdentifyDetail: ({ isPassport, ...props }: IdentifyDetailProps) => React.JSX.Element;
|
|
14
|
-
export default IdentifyDetail;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyDetail } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
@@ -1,72 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
9
|
-
import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
|
|
10
|
-
import IdentityInformation from "../IdentityInformation";
|
|
11
|
-
import Scrollbars from "react-custom-scrollbars-2";
|
|
12
|
-
import "./index.css";
|
|
13
|
-
const IdentifyDetail = ({ isPassport = true, ...props }) => {
|
|
14
|
-
const { identityId, concatId, onSelect } = props;
|
|
15
|
-
const [number, setNumber] = useState("");
|
|
16
|
-
const [numberEdit, setNumberEdit] = useState(false);
|
|
17
|
-
const [viewIdentity, setViewIdentity] = useState(false);
|
|
18
|
-
const [activeKey, setActiveKey] = useState("ID Details");
|
|
19
|
-
const identity = useIdentity(identityId);
|
|
20
|
-
const identityStore = useIdentityStore();
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
setNumber("");
|
|
23
|
-
setViewIdentity(false);
|
|
24
|
-
}, [identityId]);
|
|
25
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
26
|
-
React.createElement(Scrollbars, null,
|
|
27
|
-
React.createElement("div", { className: "identity-detail" },
|
|
28
|
-
React.createElement("div", { className: "identity-info" }, isPassport ? (React.createElement("h2", { className: "identity-passport" },
|
|
29
|
-
React.createElement("span", null, identity ? `${identity === null || identity === void 0 ? void 0 : identity.country} ${identity === null || identity === void 0 ? void 0 : identity.type}` : ""),
|
|
30
|
-
React.createElement(InlineEdit, { showEditIcon: (identity === null || identity === void 0 ? void 0 : identity.number) ? true : false, defaultValue: "", editable: false, content: (v) => observe(() => (React.createElement("div", null, (identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement("span", { className: "identity-number" },
|
|
31
|
-
!viewIdentity ? identity.number : number,
|
|
32
|
-
React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVisionRegular : faEyeRegular, onClick: onReveal }))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }))) : null),
|
|
33
|
-
identity && (React.createElement("div", { className: "identity-content" },
|
|
34
|
-
React.createElement("div", { className: "identity-verification" },
|
|
35
|
-
React.createElement(VerificationInformation, { id: identityId })),
|
|
36
|
-
React.createElement(Tabs, { className: "member-tabs", activeKey: activeKey, onChange: onChange, items: [
|
|
37
|
-
{
|
|
38
|
-
key: "ID Details",
|
|
39
|
-
label: "ID Details",
|
|
40
|
-
children: React.createElement(IdentityInformation, { id: identityId }),
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
key: "Activity",
|
|
44
|
-
label: "Activity",
|
|
45
|
-
children: React.createElement(ActivityLog, { id: identity.id, bar: false }),
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
key: "Documents",
|
|
49
|
-
label: "Documents",
|
|
50
|
-
children: (React.createElement(DocumentList, { id: identityId, multiple: true, viewTitle: "ID Documents", menuVisible: true })),
|
|
51
|
-
},
|
|
52
|
-
] }))))),
|
|
53
|
-
numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: handleSelect })))));
|
|
54
|
-
function onChange(activeKey) {
|
|
55
|
-
setActiveKey(activeKey);
|
|
56
|
-
}
|
|
57
|
-
function handleSelect(ids) {
|
|
58
|
-
setNumberEdit(false);
|
|
59
|
-
if (ids) {
|
|
60
|
-
onSelect === null || onSelect === void 0 ? void 0 : onSelect(ids);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
async function onReveal() {
|
|
64
|
-
if (!viewIdentity) {
|
|
65
|
-
setViewIdentity(true);
|
|
66
|
-
const data = await identityStore.reveal(identityId);
|
|
67
|
-
setNumber(data.number);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
export default IdentifyDetail;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyDetail } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
72
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,wDAAwD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wDAAwD,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** Called with the selected identity id when the user picks/links an identity. */
|
|
9
|
-
onSelect?: (identityId: string) => void;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
export default IdentifyProperties;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyProperties } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
@@ -1,62 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
|
|
9
|
-
import IdentifyQuickViewDialog from "../IdentifyQuickViewDialog";
|
|
10
|
-
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
11
|
-
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
12
|
-
import "./index.css";
|
|
13
|
-
const IdentifyProperties = (props) => {
|
|
14
|
-
const { identityId, concatId, onSelect } = props;
|
|
15
|
-
const view = useViewContext();
|
|
16
|
-
const [number, setNumber] = useState("");
|
|
17
|
-
const [numberEdit, setNumberEdit] = useState(false);
|
|
18
|
-
const [viewIdentity, setViewIdentity] = useState(false);
|
|
19
|
-
const [quickView, setQuickView] = useState(false);
|
|
20
|
-
const identity = useIdentity(identityId);
|
|
21
|
-
const identityStore = useIdentityStore();
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
setNumber("");
|
|
24
|
-
setViewIdentity(false);
|
|
25
|
-
}, [identityId]);
|
|
26
|
-
return observe(() => (React.createElement("div", { className: "identity-properties" },
|
|
27
|
-
React.createElement(PropertiesSection, { title: "IDENTITY INFORMATION", headerIcon: { icon: faUpRightFromSquareSolid, onIconClick: () => setQuickView(true) }, properties: () => (React.createElement(React.Fragment, null,
|
|
28
|
-
React.createElement(Prop, { label: "Identity No" },
|
|
29
|
-
React.createElement("div", { className: "identity-info" },
|
|
30
|
-
React.createElement("h2", { className: "identity-passport" },
|
|
31
|
-
React.createElement(InlineEdit, { showEditIcon: (identity === null || identity === void 0 ? void 0 : identity.number) ? true : false, defaultValue: "", editable: false, content: (v) => observe(() => (React.createElement("div", null,
|
|
32
|
-
React.createElement(FAIcon, { icon: faAddressCardRegular }),
|
|
33
|
-
(identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement(Row, { className: "identity-number" },
|
|
34
|
-
React.createElement(Col, { span: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView" ? undefined : 20, className: "number" },
|
|
35
|
-
React.createElement(Tooltip, { title: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView"
|
|
36
|
-
? undefined
|
|
37
|
-
: !viewIdentity
|
|
38
|
-
? identity.number
|
|
39
|
-
: number }, !viewIdentity ? identity.number : number)),
|
|
40
|
-
React.createElement(Col, { span: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView" ? undefined : 4 },
|
|
41
|
-
React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVisionSolid : faEyeSolid, onClick: onReveal })))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }),
|
|
42
|
-
identity ? React.createElement("span", { className: "identity_country" }, identity === null || identity === void 0 ? void 0 : identity.country) : null))),
|
|
43
|
-
React.createElement("div", { className: "identity-verification" },
|
|
44
|
-
React.createElement(VerificationInformation, { id: identityId, title: "" })))) }),
|
|
45
|
-
numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: handleSelect })),
|
|
46
|
-
quickView && (React.createElement(IdentifyQuickViewDialog, { visible: true, identityId: identityId, identityName: identity.fullName, onCancel: () => setQuickView(false) })))));
|
|
47
|
-
function handleSelect(ids) {
|
|
48
|
-
setNumberEdit(false);
|
|
49
|
-
if (ids) {
|
|
50
|
-
onSelect === null || onSelect === void 0 ? void 0 : onSelect(ids);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
async function onReveal() {
|
|
54
|
-
if (!viewIdentity) {
|
|
55
|
-
setViewIdentity(true);
|
|
56
|
-
const data = await identityStore.reveal(identityId);
|
|
57
|
-
setNumber(data.number);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
export default IdentifyProperties;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyProperties } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
62
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyProperties/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyProperties/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,4DAA4D,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
export default IdentifyQuickViewDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyQuickViewDialog } from "@voplus/morpho-compliance" instead.
|
|
3
|
+
* This component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { useIdentity } from "../../../../../../data/identity";
|
|
9
|
-
import "./index.css";
|
|
10
|
-
const IdentifyQuickViewDialog = (props) => {
|
|
11
|
-
const { identityId, identityName } = props;
|
|
12
|
-
// spec:1810 — CSP: Identity quick-view dialog surfaces load errors instead of content
|
|
13
|
-
const [error, setError] = useState(null);
|
|
14
|
-
const identity = useIdentity(identityId, { onError: (e) => setError(e) });
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
setError(null);
|
|
17
|
-
}, [identityId]);
|
|
18
|
-
return observe(() => (React.createElement(QuickViewDialog, { id: props.identityId, visible: props.visible, onCancel: props.onCancel, error: error, header: React.createElement("div", { className: "identify-quickView-dialog-header" },
|
|
19
|
-
React.createElement("div", { className: "identify-quickView-title" }, `${identityName} Identity`),
|
|
20
|
-
React.createElement("div", { className: "tools-bar" },
|
|
21
|
-
React.createElement(ToolBar, { id: props.identityId, showMenu: false },
|
|
22
|
-
React.createElement(Close, { action: props.onCancel }),
|
|
23
|
-
React.createElement(IdentityMenu, { id: props.identityId, size: "middle" })))), buttons: [{ name: "Document" }, { name: "Activities" }] },
|
|
24
|
-
React.createElement("div", { className: "identify-quickView-dialog-content" },
|
|
25
|
-
React.createElement(IdentityInformation, { id: identityId })))));
|
|
26
|
-
};
|
|
27
|
-
export default IdentifyQuickViewDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyQuickViewDialog } from "@voplus/morpho-compliance" instead.
|
|
3
|
+
* This component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
28
8
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,iEAAiE,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default IdentityChange;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentityChange } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const v = Object.assign({}, toJS(props.value));
|
|
9
|
-
Object.assign(v, update);
|
|
10
|
-
if (props.onChange) {
|
|
11
|
-
props.onChange(v);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
return observe(() => (React.createElement(Form, { labelAlign: "left", layout: "horizontal" },
|
|
15
|
-
React.createElement(Form.Item, { label: "Country", name: "country", rules: [{ required: true }] },
|
|
16
|
-
React.createElement(InputCountry, { defaultValue: props.value.country, onChange: (e) => handleUpdate({ country: e }) })),
|
|
17
|
-
React.createElement(Form.Item, { label: "Identify Type", name: "identifyType", rules: [{ required: true }] },
|
|
18
|
-
React.createElement(Select, { defaultValue: props.value.type, value: props.value.type, onChange: (value) => handleUpdate({ type: value }), options: [
|
|
19
|
-
{ value: "Passport", label: "International Passport" },
|
|
20
|
-
{ value: "IdentityCard", label: "Identify Card" },
|
|
21
|
-
{ value: "BusinessRegistration", label: "Business Registration" },
|
|
22
|
-
] })),
|
|
23
|
-
React.createElement(Form.Item, { label: "Identify #", name: "identity", rules: [{ required: true }] },
|
|
24
|
-
React.createElement(Input, { defaultValue: props.value.number, value: props.value.number, onChange: (value) => handleUpdate({ number: value.target.value }) })),
|
|
25
|
-
React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: props.value.type === "Passport" }] },
|
|
26
|
-
React.createElement(DatePicker, { defaultValue: props.value.expiryDate ? utcdayjs(props.value.expiryDate) : undefined, onChange: (date, dateString) => handleUpdate({ expiryDate: dateString }) })))));
|
|
27
|
-
};
|
|
28
|
-
export default IdentityChange;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentityChange } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
29
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentityChange/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentityChange/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,wDAAwD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wDAAwD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentityInformation } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentityInformation";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentityInformation";
|