@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.
Files changed (77) hide show
  1. package/es/data/identity/identity-events/index.d.ts +6 -3
  2. package/es/data/identity/identity-events/index.js +6 -3
  3. package/es/data/identity/identity-events/index.js.map +1 -1
  4. package/es/data/identity/index.d.ts +6 -4
  5. package/es/data/identity/index.js +6 -4
  6. package/es/data/identity/index.js.map +1 -1
  7. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts +7 -9
  8. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js +7 -64
  9. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
  10. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +7 -14
  11. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +7 -71
  12. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
  13. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +7 -11
  14. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +7 -61
  15. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
  16. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +7 -9
  17. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +7 -27
  18. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
  19. package/es/modules/corporate/company/identity/components/IdentityChange/index.d.ts +7 -8
  20. package/es/modules/corporate/company/identity/components/IdentityChange/index.js +7 -28
  21. package/es/modules/corporate/company/identity/components/IdentityChange/index.js.map +1 -1
  22. package/es/modules/corporate/company/identity/components/IdentityInformation/index.d.ts +7 -5
  23. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +7 -62
  24. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
  25. package/es/modules/corporate/company/identity/components/IdentityItem/index.d.ts +7 -8
  26. package/es/modules/corporate/company/identity/components/IdentityItem/index.js +7 -38
  27. package/es/modules/corporate/company/identity/components/IdentityItem/index.js.map +1 -1
  28. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +7 -8
  29. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js +7 -18
  30. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js.map +1 -1
  31. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.d.ts +7 -10
  32. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js +7 -15
  33. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js.map +1 -1
  34. package/package.json +2 -1
  35. package/es/data/identity/IdentityStore.d.ts +0 -35
  36. package/es/data/identity/IdentityStore.js +0 -119
  37. package/es/data/identity/IdentityStore.js.map +0 -1
  38. package/es/data/identity/hooks.d.ts +0 -6
  39. package/es/data/identity/hooks.js +0 -14
  40. package/es/data/identity/hooks.js.map +0 -1
  41. package/es/data/identity/identity-events/useAutoUpdateListData.d.ts +0 -4
  42. package/es/data/identity/identity-events/useAutoUpdateListData.js +0 -13
  43. package/es/data/identity/identity-events/useAutoUpdateListData.js.map +0 -1
  44. package/es/data/identity/identity-events/useOnDeleteIdentity.d.ts +0 -4
  45. package/es/data/identity/identity-events/useOnDeleteIdentity.js +0 -16
  46. package/es/data/identity/identity-events/useOnDeleteIdentity.js.map +0 -1
  47. package/es/data/identity/identity-events/useOnNewIdentity.d.ts +0 -4
  48. package/es/data/identity/identity-events/useOnNewIdentity.js +0 -16
  49. package/es/data/identity/identity-events/useOnNewIdentity.js.map +0 -1
  50. package/es/data/identity/interfaces.d.ts +0 -26
  51. package/es/data/identity/interfaces.js +0 -2
  52. package/es/data/identity/interfaces.js.map +0 -1
  53. package/es/data/identity/types.d.ts +0 -50
  54. package/es/data/identity/types.js +0 -2
  55. package/es/data/identity/types.js.map +0 -1
  56. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.css +0 -89
  57. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.css +0 -76
  58. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.css +0 -67
  59. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.css +0 -44
  60. package/es/modules/corporate/company/identity/components/IdentityInformation/state.d.ts +0 -14
  61. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +0 -94
  62. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +0 -1
  63. package/es/modules/corporate/company/identity/components/IdentityItem/index.css +0 -45
  64. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.d.ts +0 -6
  65. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js +0 -40
  66. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js.map +0 -1
  67. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.d.ts +0 -3
  68. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +0 -52
  69. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +0 -1
  70. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.d.ts +0 -3
  71. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js +0 -46
  72. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js.map +0 -1
  73. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.css +0 -65
  74. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.d.ts +0 -44
  75. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js +0 -188
  76. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js.map +0 -1
  77. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.css +0 -32
@@ -1,3 +1,6 @@
1
- export * from "./useOnNewIdentity";
2
- export * from "./useOnDeleteIdentity";
3
- export * from "./useAutoUpdateListData";
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
- export * from "./useOnNewIdentity";
2
- export * from "./useOnDeleteIdentity";
3
- export * from "./useAutoUpdateListData";
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,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
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
- export * from "./interfaces";
2
- export * from "./IdentityStore";
3
- export * from "./hooks";
4
- export * from "./types";
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
- export * from "./interfaces";
2
- export * from "./IdentityStore";
3
- export * from "./hooks";
4
- export * from "./types";
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,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/identity/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,4CAA4C,CAAC"}
@@ -1,9 +1,7 @@
1
- import React from "react";
2
- import "./index.css";
3
- declare const ContactIdentitySelectDialog: (props: {
4
- id: string;
5
- visible: boolean;
6
- onCancel?: () => void;
7
- onSelect?: (id: string) => void;
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";
@@ -1,65 +1,8 @@
1
- import { Button, Modal, Space } from "antd";
2
- import { useIdentityListEffect } from "../../../../../../data/identity";
3
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
4
- import React, { useState, useMemo } from "react";
5
- import { observe, useRenderOnChange } from "@voplus/morpho-ui";
6
- import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
7
- import { FontAwesomeIcon as FAIcon, faXmarkRegular } from "@voplus/morpho-ui/es/faIcons";
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAa,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,YAAY,MAAM,iB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Y,CAAC,IAAI,CAAC,CAAC;gCACpB,CAAC;gCAED,oBAAC,YAAY,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE,GAAI,CACxC,CACpB,GACA,CACwB,CACtB;gBACN,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,KAAK;wBACL,oBAAC,MAAM,IAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,aAAiB;wBAChD,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,QAAQ,sDAAG,QAAQ,CAAC,CAAA,EAAA,aAEvD,CACF,CACH,CACD;YACN,6BAAK,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,EAAE,YAAY,EAAE,CAAC,SAAS,EAAE,CAAC;gBAClF,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC;oBACjF,oBAAC,MAAM,IAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAC,kCAAkC,GAAG,CACrE;gBACT,4BAAI,SAAS,EAAC,gBAAgB,uBAAsB;gBACpD,oBAAC,cAAc,IAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,GAAI,CACtD;YACL,OAAO,IAAI,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAI,CAC5D,CAChB,CACR,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM,CAAC,MAAe;QACpC,UAAU,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
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
- import React from "react";
2
- import "./index.css";
3
- export type IdentifyDetailProps = {
4
- /** 用于请求 identity */
5
- identityId: string;
6
- /** 用于请求 identity 时 filter by UnitId */
7
- concatId?: string;
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
- import React, { useEffect, useState } from "react";
2
- import { InlineEdit, observe } from "@voplus/morpho-ui";
3
- import { Tabs } from "antd";
4
- import { faEyeRegular, faEyeLowVisionRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
5
- import { useIdentity, useIdentityStore } from "../../../../../../data/identity";
6
- import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
7
- import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
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,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACN,YAAY,EACZ,qBAAqB,EACrB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,uBAAuB,MAAM,oEAAoE,CAAC;AACzG,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,aAAa,CAAC;AAarB,M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EAAE,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,GAAI;6BACtD;4BACD;gCACC,GAAG,EAAE,WAAW;gCAChB,KAAK,EAAE,WAAW;gCAClB,QAAQ,EAAE,CACT,oBAAC,YAAY,IAAC,EAAE,EAAE,UAAU,EAAE,QAAQ,QAAC,SAAS,EAAC,cAAc,EAAC,WAAW,SAAG,CAC9E;6BACD;yBACD,GACA,CACG,CACN,CACI,CACM;QACZ,UAAU,IAAI,CACd,oBAAC,2BAA2B,IAC3B,EAAE,EAAE,QAAS,EACb,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EACpC,QAAQ,EAAE,YAAY,GACrB,CACF,CACe,CACjB,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;IAED,SAAS,YAAY,CAAC,GAAW;QAChC,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,IAAI,GAAG,EAAE,CAAC;YACT,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,GAAG,CAAC,CAAC;QACjB,CAAC;IACF,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,YAAY,EAAE,CAAC;YACnB,eAAe,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACpD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
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
- import React from "react";
2
- import "./index.css";
3
- declare const IdentifyProperties: (props: {
4
- /** 用于请求 identity */
5
- identityId: string;
6
- /** 用于请求 identity 时 filter by UnitId */
7
- concatId?: string;
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
- import React, { useEffect, useState } from "react";
2
- import { Row, Col, Tooltip } from "antd";
3
- import { InlineEdit, observe } from "@voplus/morpho-ui";
4
- import { useIdentity, useIdentityStore } from "../../../../../../data/identity";
5
- import { faAddressCardRegular, faUpRightFromSquareSolid, faEyeSolid, faEyeLowVisionSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
6
- import Prop from "@voplus/morpho-ui/es/controls/Prop";
7
- import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
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,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACN,oBAAoB,EACpB,wBAAwB,EACxB,UAAU,EACV,mBAAmB,EACnB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,uBAAuB,MAAM,oEAAoE,CAAC;AACzG,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,aAAa,CAAC;AAErB,MAAM,kBAAkB,GAAG,CAAC,KAO3B,EAAE,EAAE;IACJ,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ate/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
- import React from "react";
2
- import "./index.css";
3
- declare const IdentifyQuickViewDialog: (props: {
4
- identityId: string;
5
- identityName: string;
6
- visible?: boolean;
7
- onCancel?: () => void;
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
- import React, { useState, useEffect } from "react";
2
- import { observe } from "@voplus/morpho-ui";
3
- import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
4
- import { Close } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
5
- import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
6
- import IdentityMenu from "../../controls/IdentityMenu";
7
- import IdentityInformation from "../IdentityInformation";
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,0DAA0D,CAAC;AACjF,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,aAAa,CAAC;AAErB,MAAM,uBAAuB,GAAG,CAAC,KAKhC,EAAE,EAAE;IACJ,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE3C,sFAAsF;IACtF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAE1E,SAAS,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,UAAU,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,KAAK,EAAE,KAAK,EACZ,MAAM,EACL,6BAAK,SAAS,EAAE,kCAAkC;YACjD,6BAAK,SAAS,EAAC,0BAA0B,IAAE,GAAG,YAAY,WAAW,CAAO;YAC5E,6BAAK,SAAS,EAAC,WAAW;gBACzB,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK;oBAC7C,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,GAAI;oBACjC,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAC,QAAQ,GAAG,CAC3C,CACL,CACD,EAEP,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAEvD,6BAAK,SAAS,EAAE,mCAAmC;YAClD,oBAAC,mBAAmB,IAAC,EAAE,EAAE,UAAU,GAAI,CAClC,CACW,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
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
- import { IIdentity } from "../../../../../../data/identity";
2
- import React from "react";
3
- export type AddressProps = {
4
- value: IIdentity;
5
- onChange?: (v: IIdentity) => void;
6
- };
7
- declare const IdentityChange: (props: AddressProps) => React.JSX.Element;
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
- import { Form, Input, Select } from "antd";
2
- import { InputCountry, observe, UTCDatePicker as DatePicker } from "@voplus/morpho-ui";
3
- import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
4
- import React from "react";
5
- import { toJS } from "mobx";
6
- const IdentityChange = (props) => {
7
- const handleUpdate = (update) => {
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,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAE7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAO5B,MAAM,cAAc,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,MAAM,YAAY,GAAG,CAAC,MAA0B,EAAE,EAAE;QACnD,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QACzB,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACpB,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC;IACF,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,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QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,GAChE,CACS;QAEZ,oBAAC,IAAI,CAAC,IAAI,IACT,KAAK,EAAC,aAAa,EACnB,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAEtD,oBAAC,UAAU,IACV,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,EACnF,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAe,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,GAC5E,CACS,CACN,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
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
- import React from "react";
2
- declare const IdentityInformation: (props: {
3
- id: string;
4
- }) => React.JSX.Element;
5
- export default IdentityInformation;
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";