@voplus/morpho-csp 10.0.23 → 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 (83) 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/controller-register/components/ControllerProperties/index.js +4 -1
  8. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
  9. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts +7 -9
  10. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js +7 -64
  11. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
  12. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +7 -18
  13. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +7 -86
  14. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
  15. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +7 -15
  16. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +7 -75
  17. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
  18. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +7 -9
  19. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +7 -27
  20. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
  21. package/es/modules/corporate/company/identity/components/IdentityChange/index.d.ts +7 -8
  22. package/es/modules/corporate/company/identity/components/IdentityChange/index.js +7 -28
  23. package/es/modules/corporate/company/identity/components/IdentityChange/index.js.map +1 -1
  24. package/es/modules/corporate/company/identity/components/IdentityInformation/index.d.ts +7 -5
  25. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +7 -62
  26. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
  27. package/es/modules/corporate/company/identity/components/IdentityItem/index.d.ts +7 -8
  28. package/es/modules/corporate/company/identity/components/IdentityItem/index.js +7 -38
  29. package/es/modules/corporate/company/identity/components/IdentityItem/index.js.map +1 -1
  30. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +7 -8
  31. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js +7 -18
  32. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js.map +1 -1
  33. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.d.ts +7 -10
  34. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js +7 -15
  35. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js.map +1 -1
  36. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +4 -1
  37. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
  38. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +4 -1
  39. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
  40. package/package.json +2 -1
  41. package/es/data/identity/IdentityStore.d.ts +0 -35
  42. package/es/data/identity/IdentityStore.js +0 -119
  43. package/es/data/identity/IdentityStore.js.map +0 -1
  44. package/es/data/identity/hooks.d.ts +0 -6
  45. package/es/data/identity/hooks.js +0 -14
  46. package/es/data/identity/hooks.js.map +0 -1
  47. package/es/data/identity/identity-events/useAutoUpdateListData.d.ts +0 -4
  48. package/es/data/identity/identity-events/useAutoUpdateListData.js +0 -13
  49. package/es/data/identity/identity-events/useAutoUpdateListData.js.map +0 -1
  50. package/es/data/identity/identity-events/useOnDeleteIdentity.d.ts +0 -4
  51. package/es/data/identity/identity-events/useOnDeleteIdentity.js +0 -16
  52. package/es/data/identity/identity-events/useOnDeleteIdentity.js.map +0 -1
  53. package/es/data/identity/identity-events/useOnNewIdentity.d.ts +0 -4
  54. package/es/data/identity/identity-events/useOnNewIdentity.js +0 -16
  55. package/es/data/identity/identity-events/useOnNewIdentity.js.map +0 -1
  56. package/es/data/identity/interfaces.d.ts +0 -26
  57. package/es/data/identity/interfaces.js +0 -2
  58. package/es/data/identity/interfaces.js.map +0 -1
  59. package/es/data/identity/types.d.ts +0 -50
  60. package/es/data/identity/types.js +0 -2
  61. package/es/data/identity/types.js.map +0 -1
  62. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.css +0 -89
  63. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.css +0 -76
  64. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.css +0 -67
  65. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.css +0 -44
  66. package/es/modules/corporate/company/identity/components/IdentityInformation/state.d.ts +0 -14
  67. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +0 -94
  68. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +0 -1
  69. package/es/modules/corporate/company/identity/components/IdentityItem/index.css +0 -45
  70. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.d.ts +0 -6
  71. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js +0 -40
  72. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js.map +0 -1
  73. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.d.ts +0 -3
  74. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +0 -52
  75. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +0 -1
  76. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.d.ts +0 -3
  77. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js +0 -46
  78. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js.map +0 -1
  79. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.css +0 -65
  80. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.d.ts +0 -44
  81. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js +0 -188
  82. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js.map +0 -1
  83. 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"}
@@ -36,7 +36,10 @@ const ControllerProperties = ({ controllerTitle = "CONTROLLER PROPERTIES", orgCo
36
36
  React.createElement(Scrollbars, { autoHide: true },
37
37
  headerVisible && React.createElement(ControllerHead, { id: id, menu: false }),
38
38
  React.createElement(PropertiesSection, { title: controllerTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, i.name === "Tags" ? (React.createElement(TagProp, { id: id, tags: controller.tags, items: controllerStore.items, editable: user.can("edit", controller.p, { asset: "Tags" }) })) : (React.createElement(Prop, { label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))))) }),
39
- React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.id, controllerId: id }),
39
+ React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.id, onSelect: (ids) => {
40
+ // spec:1798 — CSP: Selecting an identity assigns it to the originating registration role
41
+ controllerStore.edit(id, { data: { IdentityId: ids }, error: "message" });
42
+ } }),
40
43
  React.createElement(ContactProperties, { id: (_c = controller === null || controller === void 0 ? void 0 : controller.contact) === null || _c === void 0 ? void 0 : _c.id, title: orgContactTitle, customProperties: orgContactProperties }),
41
44
  React.createElement(FieldsProperties, { id: (_d = controller.contact) === null || _d === void 0 ? void 0 : _d.id }))));
42
45
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,gBAAgB,MAAM,sDAAsD,CAAC;AACpF,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAClE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AA4B/C,MAAM,oBAAoB,GAAG,CAAC,EAC7B,eAAe,GAAG,uBAAuB,EACzC,eAAe,GAAG,oBAAoB,EACtC,oBAAoB,GAAG;IACtB,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC/B,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAC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,CACN,oBAAC,UAAU,IACV,YAAY,EAAE,UAAU,CAAC,KAAK,EAC9B,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EACxC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAClB,8BAAM,SAAS,EAAC,kBAAkB,IAAE,UAAU,CAAC,KAAK,CAAQ,CAC5D,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,gBAAiB,CACjD,EAEF,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE;wBACtB,IAAI,KAAK,KAAK,UAAU,CAAC,KAAK;4BAAE,OAAO;wBACvC,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBACxE,CAAC,GACA,CACF,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;QACT,CAAC;IACF,CAAC;IAED,KAAK,UAAU,IAAI,CAAC,IAA+B;QAClD,MAAM,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD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tB,IAAI,KAAK,KAAK,UAAU,CAAC,KAAK;4BAAE,OAAO;wBACvC,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBACxE,CAAC,GACA,CACF,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;QACT,CAAC;IACF,CAAC;IAED,KAAK,UAAU,IAAI,CAAC,IAA+B;QAClD,MAAM,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,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,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AAO,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,18 +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
- /** officer-register id */
9
- officerId?: string;
10
- /** member-register id */
11
- memberId?: string;
12
- /** controller-register id */
13
- controllerId?: string;
14
- /** 是否显示 passport */
15
- isPassport?: boolean;
16
- };
17
- declare const IdentifyDetail: ({ isPassport, ...props }: IdentifyDetailProps) => React.JSX.Element;
18
- 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,87 +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 { useMemberStore } from "../../../../../../data/member";
6
- import { useOfficerStore } from "../../../../../../data/officer";
7
- import { useControllerStore } from "../../../../../../data/controller";
8
- import { useIdentity, useIdentityStore } from "../../../../../../data/identity";
9
- import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
10
- import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
11
- import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
12
- import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
13
- import IdentityInformation from "../IdentityInformation";
14
- import Scrollbars from "react-custom-scrollbars-2";
15
- import "./index.css";
16
- const IdentifyDetail = ({ isPassport = true, ...props }) => {
17
- const { identityId, concatId, officerId, controllerId, memberId } = props;
18
- const [number, setNumber] = useState("");
19
- const [numberEdit, setNumberEdit] = useState(false);
20
- const [viewIdentity, setViewIdentity] = useState(false);
21
- const [activeKey, setActiveKey] = useState("ID Details");
22
- const identity = useIdentity(identityId);
23
- const identityStore = useIdentityStore();
24
- const officerStore = useOfficerStore();
25
- const memberStore = useMemberStore();
26
- const controllerStore = useControllerStore();
27
- useEffect(() => {
28
- setNumber("");
29
- setViewIdentity(false);
30
- }, [identityId]);
31
- return observe(() => (React.createElement(React.Fragment, null,
32
- React.createElement(Scrollbars, null,
33
- React.createElement("div", { className: "identity-detail" },
34
- React.createElement("div", { className: "identity-info" }, isPassport ? (React.createElement("h2", { className: "identity-passport" },
35
- React.createElement("span", null, identity ? `${identity === null || identity === void 0 ? void 0 : identity.country} ${identity === null || identity === void 0 ? void 0 : identity.type}` : ""),
36
- 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" },
37
- !viewIdentity ? identity.number : number,
38
- React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVisionRegular : faEyeRegular, onClick: onReveal }))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }))) : null),
39
- identity && (React.createElement("div", { className: "identity-content" },
40
- React.createElement("div", { className: "identity-verification" },
41
- React.createElement(VerificationInformation, { id: identityId })),
42
- React.createElement(Tabs, { className: "member-tabs", activeKey: activeKey, onChange: onChange, items: [
43
- {
44
- key: "ID Details",
45
- label: "ID Details",
46
- children: React.createElement(IdentityInformation, { id: identityId }),
47
- },
48
- {
49
- key: "Activity",
50
- label: "Activity",
51
- children: React.createElement(ActivityLog, { id: identity.id, bar: false }),
52
- },
53
- {
54
- key: "Documents",
55
- label: "Documents",
56
- children: (React.createElement(DocumentList, { id: identityId, multiple: true, viewTitle: "ID Documents", menuVisible: true })),
57
- },
58
- ] }))))),
59
- numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })))));
60
- function onChange(activeKey) {
61
- setActiveKey(activeKey);
62
- }
63
- // spec:1798 — CSP: Selecting an identity assigns it to the originating registration role
64
- function onSelect(ids) {
65
- setNumberEdit(false);
66
- if (ids) {
67
- if (officerId) {
68
- officerStore.edit(officerId, { data: { IdentityId: ids }, error: "message" });
69
- }
70
- if (controllerId) {
71
- controllerStore.edit(controllerId, { data: { IdentityId: ids }, error: "message" });
72
- }
73
- if (memberId) {
74
- memberStore.edit(memberId, { data: { IdentityId: ids }, error: "message" });
75
- }
76
- }
77
- }
78
- async function onReveal() {
79
- if (!viewIdentity) {
80
- setViewIdentity(true);
81
- const data = await identityStore.reveal(identityId);
82
- setNumber(data.number);
83
- }
84
- }
85
- };
86
- 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";
87
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/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+ {"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,15 +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
- /** officer-register id */
9
- officerId?: string;
10
- /** member-register id */
11
- memberId?: string;
12
- /** controller-register id */
13
- controllerId?: string;
14
- }) => React.JSX.Element;
15
- 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,76 +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 { useControllerStore } from "../../../../../../data/controller";
7
- import { useMemberStore } from "../../../../../../data/member";
8
- import { useOfficerStore } from "../../../../../../data/officer";
9
- import Prop from "@voplus/morpho-ui/es/controls/Prop";
10
- import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
11
- import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
12
- import IdentifyQuickViewDialog from "../IdentifyQuickViewDialog";
13
- import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
14
- import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
15
- import "./index.css";
16
- const IdentifyProperties = (props) => {
17
- const { identityId, concatId, officerId, controllerId, memberId } = props;
18
- const view = useViewContext();
19
- const [number, setNumber] = useState("");
20
- const [numberEdit, setNumberEdit] = useState(false);
21
- const [viewIdentity, setViewIdentity] = useState(false);
22
- const [quickView, setQuickView] = useState(false);
23
- const identity = useIdentity(identityId);
24
- const identityStore = useIdentityStore();
25
- const officerStore = useOfficerStore();
26
- const memberStore = useMemberStore();
27
- const controllerStore = useControllerStore();
28
- useEffect(() => {
29
- setNumber("");
30
- setViewIdentity(false);
31
- }, [identityId]);
32
- return observe(() => (React.createElement("div", { className: "identity-properties" },
33
- React.createElement(PropertiesSection, { title: "IDENTITY INFORMATION", headerIcon: { icon: faUpRightFromSquareSolid, onIconClick: () => setQuickView(true) }, properties: () => (React.createElement(React.Fragment, null,
34
- React.createElement(Prop, { label: "Identity No" },
35
- React.createElement("div", { className: "identity-info" },
36
- React.createElement("h2", { className: "identity-passport" },
37
- 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,
38
- React.createElement(FAIcon, { icon: faAddressCardRegular }),
39
- (identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement(Row, { className: "identity-number" },
40
- React.createElement(Col, { span: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView" ? undefined : 20, className: "number" },
41
- React.createElement(Tooltip, { title: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView"
42
- ? undefined
43
- : !viewIdentity
44
- ? identity.number
45
- : number }, !viewIdentity ? identity.number : number)),
46
- React.createElement(Col, { span: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView" ? undefined : 4 },
47
- React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVisionSolid : faEyeSolid, onClick: onReveal })))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }),
48
- identity ? React.createElement("span", { className: "identity_country" }, identity === null || identity === void 0 ? void 0 : identity.country) : null))),
49
- React.createElement("div", { className: "identity-verification" },
50
- React.createElement(VerificationInformation, { id: identityId, title: "" })))) }),
51
- numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })),
52
- quickView && (React.createElement(IdentifyQuickViewDialog, { visible: true, identityId: identityId, identityName: identity.fullName, onCancel: () => setQuickView(false) })))));
53
- function onSelect(ids) {
54
- setNumberEdit(false);
55
- if (ids) {
56
- if (officerId) {
57
- officerStore.edit(officerId, { data: { IdentityId: ids }, error: "message" });
58
- }
59
- if (controllerId) {
60
- controllerStore.edit(controllerId, { data: { IdentityId: ids }, error: "message" });
61
- }
62
- if (memberId) {
63
- memberStore.edit(memberId, { data: { IdentityId: ids }, error: "message" });
64
- }
65
- }
66
- }
67
- async function onReveal() {
68
- if (!viewIdentity) {
69
- setViewIdentity(true);
70
- const data = await identityStore.reveal(identityId);
71
- setNumber(data.number);
72
- }
73
- }
74
- };
75
- 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";
76
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,EA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EF,eAAe,kBAAkB,CAAC"}
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
- 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,CA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K,CAAC,KAAK,CAAC,MAAM,EAChC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EACzB,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"}