@voplus/morpho-csp 1.0.0-dev002 → 1.0.0-dev004

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 (159) hide show
  1. package/es/components/CurrencyView/state.js +18 -22
  2. package/es/components/CurrencyView/state.js.map +1 -1
  3. package/es/data/corporate/CorporateStore.d.ts +24 -0
  4. package/es/data/corporate/CorporateStore.js +43 -0
  5. package/es/data/corporate/CorporateStore.js.map +1 -0
  6. package/es/data/corporate/hooks.d.ts +10 -0
  7. package/es/data/corporate/hooks.js +14 -0
  8. package/es/data/corporate/hooks.js.map +1 -0
  9. package/es/data/corporate/index.d.ts +4 -0
  10. package/es/data/corporate/index.js +5 -0
  11. package/es/data/corporate/index.js.map +1 -0
  12. package/es/data/corporate/interfaces.d.ts +26 -0
  13. package/es/data/corporate/interfaces.js +1 -0
  14. package/es/data/corporate/interfaces.js.map +1 -0
  15. package/es/data/corporate/types.d.ts +11 -0
  16. package/es/data/corporate/types.js +1 -0
  17. package/es/data/corporate/types.js.map +1 -0
  18. package/es/data/shareTransaction/ShareTransactionStore.d.ts +1 -1
  19. package/es/data/shareTransaction/ShareTransactionStore.js +1 -1
  20. package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
  21. package/es/data/shareTransaction/hooks.d.ts +1 -1
  22. package/es/data/shareTransaction/hooks.js +1 -1
  23. package/es/data/shareTransaction/hooks.js.map +1 -1
  24. package/es/data/shareTransaction/interfaces/IShareTransaction.d.ts +1 -3
  25. package/es/data/shareTransaction/metas.js +5 -9
  26. package/es/data/shareTransaction/metas.js.map +1 -1
  27. package/es/data/shareTransaction/types/ShareTransactionCreateOptions.d.ts +1 -1
  28. package/es/data/shareTransaction/types/ShareTransactionEditOptions.d.ts +1 -3
  29. package/es/modules/corporate/CorporateDefaultView/index.d.ts +3 -0
  30. package/es/modules/corporate/CorporateDefaultView/index.js +18 -0
  31. package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -0
  32. package/es/modules/corporate/DocumentIconList/index.d.ts +7 -0
  33. package/es/modules/corporate/DocumentIconList/index.js +32 -0
  34. package/es/modules/corporate/DocumentIconList/index.js.map +1 -0
  35. package/es/modules/corporate/DocumentIconList/index.less +14 -0
  36. package/es/modules/corporate/company/CompanyDefaultView/index.d.ts +7 -0
  37. package/es/modules/corporate/company/CompanyDefaultView/index.js +43 -0
  38. package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -0
  39. package/es/modules/corporate/company/CompanyDefaultView/index.less +25 -0
  40. package/es/modules/corporate/company/CompanyDetailsView/index.d.ts +6 -0
  41. package/es/modules/corporate/company/CompanyDetailsView/index.js +91 -0
  42. package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -0
  43. package/es/modules/corporate/company/CompanyDetailsView/index.less +36 -0
  44. package/es/modules/corporate/company/CompanyDetailsView/state.d.ts +20 -0
  45. package/es/modules/corporate/company/CompanyDetailsView/state.js +40 -0
  46. package/es/modules/corporate/company/CompanyDetailsView/state.js.map +1 -0
  47. package/es/modules/corporate/company/Identity/IdentifyDetail/index.d.ts +6 -0
  48. package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +31 -0
  49. package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -0
  50. package/es/modules/corporate/company/Identity/IdentifyDetail/index.less +22 -0
  51. package/es/modules/corporate/company/Identity/IdentityInformation/index.d.ts +5 -0
  52. package/es/modules/corporate/company/Identity/IdentityInformation/index.js +59 -0
  53. package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -0
  54. package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +15 -0
  55. package/es/modules/corporate/company/Identity/IdentityInformation/state.js +38 -0
  56. package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -0
  57. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.d.ts +3 -0
  58. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +36 -0
  59. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -0
  60. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.d.ts +3 -0
  61. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +16 -0
  62. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -0
  63. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.d.ts +3 -0
  64. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +32 -0
  65. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -0
  66. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.d.ts +3 -0
  67. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +32 -0
  68. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -0
  69. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.d.ts +3 -0
  70. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +33 -0
  71. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -0
  72. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +7 -0
  73. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +65 -0
  74. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -0
  75. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +55 -0
  76. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +37 -0
  77. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +71 -0
  78. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -0
  79. package/es/modules/corporate/company/Identity/data/IdentityStore.d.ts +23 -0
  80. package/es/modules/corporate/company/Identity/data/IdentityStore.js +55 -0
  81. package/es/modules/corporate/company/Identity/data/IdentityStore.js.map +1 -0
  82. package/es/modules/corporate/company/Identity/data/hooks.d.ts +13 -0
  83. package/es/modules/corporate/company/Identity/data/hooks.js +31 -0
  84. package/es/modules/corporate/company/Identity/data/hooks.js.map +1 -0
  85. package/es/modules/corporate/company/Identity/data/index.d.ts +4 -0
  86. package/es/modules/corporate/company/Identity/data/index.js +5 -0
  87. package/es/modules/corporate/company/Identity/data/index.js.map +1 -0
  88. package/es/modules/corporate/company/Identity/data/interfaces.d.ts +17 -0
  89. package/es/modules/corporate/company/Identity/data/interfaces.js +1 -0
  90. package/es/modules/corporate/company/Identity/data/interfaces.js.map +1 -0
  91. package/es/modules/corporate/company/Identity/data/types.d.ts +16 -0
  92. package/es/modules/corporate/company/Identity/data/types.js +1 -0
  93. package/es/modules/corporate/company/Identity/data/types.js.map +1 -0
  94. package/es/modules/corporate/company/Officer/ContactInformation/index.d.ts +6 -0
  95. package/es/modules/corporate/company/Officer/ContactInformation/index.js +54 -0
  96. package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -0
  97. package/es/modules/corporate/company/Officer/ContactInformation/state.d.ts +20 -0
  98. package/es/modules/corporate/company/Officer/ContactInformation/state.js +30 -0
  99. package/es/modules/corporate/company/Officer/ContactInformation/state.js.map +1 -0
  100. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.d.ts +6 -0
  101. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +33 -0
  102. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -0
  103. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.less +48 -0
  104. package/es/modules/corporate/company/Officer/OfficerInformation/index.d.ts +3 -0
  105. package/es/modules/corporate/company/Officer/OfficerInformation/index.js +15 -0
  106. package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -0
  107. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.d.ts +7 -0
  108. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +83 -0
  109. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -0
  110. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.less +15 -0
  111. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +7 -0
  112. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +23 -0
  113. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -0
  114. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.d.ts +6 -0
  115. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +51 -0
  116. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -0
  117. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.less +20 -0
  118. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.d.ts +3 -0
  119. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +20 -0
  120. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -0
  121. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.less +5 -0
  122. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.d.ts +10 -0
  123. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +25 -0
  124. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js.map +1 -0
  125. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js +4 -8
  126. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
  127. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +14 -10
  128. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
  129. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.less +2 -2
  130. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js +51 -55
  131. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js.map +1 -1
  132. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +2 -2
  133. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
  134. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +17 -21
  135. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
  136. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js +19 -23
  137. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js.map +1 -1
  138. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +13 -12
  139. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
  140. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.less +2 -6
  141. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +4 -2
  142. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
  143. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js +15 -19
  144. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js.map +1 -1
  145. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js +2 -2
  146. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js.map +1 -1
  147. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +8 -14
  148. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
  149. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.d.ts +10 -0
  150. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +34 -0
  151. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -0
  152. package/es/routes.d.ts +6 -0
  153. package/es/routes.js +14 -1
  154. package/es/routes.js.map +1 -1
  155. package/es/style/common.less +6 -0
  156. package/package.json +14 -25
  157. package/es/data/metas.d.ts +0 -0
  158. package/es/data/metas.js +0 -1
  159. package/es/data/metas.js.map +0 -1
@@ -0,0 +1,33 @@
1
+ import { Form } from "@voplus/antd";
2
+ import React from "react";
3
+ import moment from "moment";
4
+ import { useLegalContext } from "./state";
5
+ import { useObserver } from "mobx-react-lite";
6
+ const Page5 = () => {
7
+ const legalContext = useLegalContext();
8
+ return useObserver(() => {
9
+ var _a, _b, _c, _d, _e;
10
+ return (React.createElement(React.Fragment, null,
11
+ React.createElement("div", { className: "select-legal-contact_content page5" },
12
+ React.createElement("div", { className: "full-name" }, legalContext.fullName),
13
+ React.createElement("div", { className: "padding-bottom-20" },
14
+ legalContext.identity.country,
15
+ "\uFF08",
16
+ legalContext.identity.number,
17
+ legalContext.identity.expiryDate
18
+ ? " expiryDate:" + moment(legalContext.identity.expiryDate).format("YYYY-MM-DD")
19
+ : "",
20
+ "\uFF09"),
21
+ React.createElement(Form, { labelCol: { span: 4 }, labelAlign: "left", colon: false },
22
+ React.createElement(Form.Item, { label: "Phone" }, legalContext.identity.phone),
23
+ React.createElement(Form.Item, { label: "Email" }, legalContext.identity.email),
24
+ React.createElement(Form.Item, { label: "Address" },
25
+ ((_a = legalContext.identity.address) === null || _a === void 0 ? void 0 : _a.line1) ? legalContext.identity.address.line1 + ", " : "",
26
+ ((_b = legalContext.identity.address) === null || _b === void 0 ? void 0 : _b.line2) ? legalContext.identity.address.line2 + ", " : "",
27
+ ((_c = legalContext.identity.address) === null || _c === void 0 ? void 0 : _c.city) ? legalContext.identity.address.city + ", " : "",
28
+ ((_d = legalContext.identity.address) === null || _d === void 0 ? void 0 : _d.state) ? legalContext.identity.address.state + ", " : "", (_e = legalContext.identity.address) === null || _e === void 0 ? void 0 :
29
+ _e.country)))));
30
+ });
31
+ };
32
+ export default Page5;
33
+ //# sourceMappingURL=Page5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page5.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.tsx"],"names":[],"mapp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C,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE;wBACtF,OAAA,YAAY,CAAC,QAAQ,CAAC,OAAO,0CAAE,KAAK,EAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE;wBACtF,OAAA,YAAY,CAAC,QAAQ,CAAC,OAAO,0CAAE,IAAI,EAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE;wBACpF,OAAA,YAAY,CAAC,QAAQ,CAAC,OAAO,0CAAE,KAAK,EAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,QACtF,YAAY,CAAC,QAAQ,CAAC,OAAO;2BAAE,OAAO,CAC5B,CACN,CACF,CACU,CACjB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const SelectLegalContactDialog: (props: {
4
+ visible: boolean;
5
+ updateVisible?: () => void;
6
+ }) => JSX.Element;
7
+ export default SelectLegalContactDialog;
@@ -0,0 +1,65 @@
1
+ import "./index.less";
2
+ import { Button, Modal, message } from "@voplus/antd";
3
+ import { useIdentityStore } from "../data";
4
+ import { LegalContext, State } from "./state";
5
+ import React, { useState } from "react";
6
+ import Page1 from "./Page1";
7
+ import Page2 from "./Page2";
8
+ import Page3 from "./Page3";
9
+ import Page4 from "./Page4";
10
+ import Page5 from "./Page5";
11
+ import { useObserver } from "mobx-react-lite";
12
+ const SelectLegalContactDialog = (props) => {
13
+ const { visible, updateVisible } = props;
14
+ const [state] = useState(new State());
15
+ const identityStore = useIdentityStore();
16
+ return useObserver(() => (React.createElement(LegalContext.Provider, { value: state },
17
+ React.createElement(Modal, { width: 500, title: "", footer: null, closable: false, wrapClassName: "select-legal-contact-dialog", visible: visible },
18
+ state.step === 5 ? (React.createElement(Page5, null)) : state.step === 4 ? (React.createElement(Page4, null)) : state.step === 3 ? (React.createElement(Page3, null)) : state.step === 2 ? (React.createElement(Page2, null)) : (React.createElement(Page1, null)),
19
+ React.createElement("div", { className: "select-legal-contact_footer" },
20
+ React.createElement(Button, { size: "middle", onClick: back }, state.step === 1 ? "Cancel" : "Back"),
21
+ React.createElement(Button, { size: "middle", type: "primary", onClick: state.step === 5 ? create : next }, state.step === 5 ? "Create" : "Next"))))));
22
+ /** 回退上一个步骤, 如果是create existing contact 的, 无Page2跟Page3, 回退只有Page1跟Page4 */
23
+ function back() {
24
+ if (state.step === 1)
25
+ return;
26
+ state.operate === "Search" ? (state.step = state.step === 5 ? 4 : 1) : (state.step -= 1);
27
+ }
28
+ /** 下一个步骤, 如果是 create existing contact, 跳过Page2跟Page3 */
29
+ function next() {
30
+ var _a;
31
+ if (state.operate === "Search" && state.step === 1) {
32
+ return !((_a = state.unit) === null || _a === void 0 ? void 0 : _a.id) ? message.warn("Please Select existing Contact") : (state.step = 4);
33
+ }
34
+ if (state.step === 4 && (!state.identity.number || !state.identity.country)) {
35
+ message.warn(state.identity.unitType === "Organization"
36
+ ? "Country && Registration are required"
37
+ : "Country && Identify are required");
38
+ /** 如果 Identify Info 为空, 则跳转 Identify Tab */
39
+ return (state.tabKey = "Identify");
40
+ }
41
+ return (state.step += 1);
42
+ }
43
+ /** create a new contact */
44
+ async function create() {
45
+ const { unitId, number, country, expiryDate, type, unitType, email, phone } = state.identity;
46
+ let Option = {
47
+ FullName: state.fullName,
48
+ Number: number,
49
+ Country: country,
50
+ ExpiryDate: expiryDate,
51
+ Type: type,
52
+ Email: email,
53
+ Phone: phone
54
+ };
55
+ Option =
56
+ state.operate === "Search"
57
+ ? { ...Option, ...{ UnitId: unitId } }
58
+ : { ...Option, ...{ UnitType: unitType } };
59
+ await identityStore.create(Option);
60
+ if (updateVisible)
61
+ updateVisible();
62
+ }
63
+ };
64
+ export default SelectLegalContactDialog;
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,MAAM,EAKN,KAAK,EAIL,OAAO,EACP,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,wBAAwB,GAAG,CAAC,KAAuD,EAAE,EAAE;IAC5F,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QAClC,oBAAC,KAAK,IACL,KAAK,EAAE,GAAG,EACV,KAAK,EAAC,EAAE,EACR,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,EACf,aAAa,EAAC,6BAA6B,EAC3C,OAAO,E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AAC,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;gBACtC,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,CAAC;QAE7C,MAAM,aAAa,CAAC,MAAM,CAAC,MAAa,CAAC,CAAC;QAC1C,IAAI,aAAa;YAAE,aAAa,EAAE,CAAC;IACpC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,55 @@
1
+ :global {
2
+ .select-legal-contact-dialog {
3
+ .ant-modal-body {
4
+ padding: 20px 0;
5
+ }
6
+ h3,
7
+ h4 {
8
+ margin-bottom: 0;
9
+ }
10
+ .select-legal-contact_title {
11
+ padding: 0 20px 15px 20px;
12
+ color: rgba(0, 0, 0, 0.85);
13
+ font-weight: 500;
14
+ font-size: 16px;
15
+ line-height: 17px;
16
+ border-bottom: 1px solid #f0f0f0;
17
+ }
18
+ .select-legal-contact_content {
19
+ padding: 15px 20px;
20
+ &.page5 {
21
+ padding: 15px 30px;
22
+ }
23
+ .ant-radio-group,
24
+ .ant-radio-wrapper {
25
+ display: block;
26
+ }
27
+ .full-name-displayed {
28
+ padding: 10px 0;
29
+ border-bottom: 1px solid #f0f0f0;
30
+ }
31
+ .full-name {
32
+ padding-bottom: 8px;
33
+ color: rgba(0, 0, 0, 0.85);
34
+ font-weight: 500;
35
+ font-size: 16px;
36
+ }
37
+ .padding-top-15 {
38
+ padding-top: 15px;
39
+ }
40
+ }
41
+ .ant-tabs .ant-tabs-tabpane {
42
+ padding: 0 20px;
43
+ }
44
+ .ant-form .ant-form-item {
45
+ margin-bottom: 20px;
46
+ }
47
+ .select-legal-contact_footer {
48
+ padding: 0 20px;
49
+ text-align: right;
50
+ & .ant-btn {
51
+ margin-left: 10px;
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { IAddress, IUnit } from "@voplus/morpho-org";
3
+ import moment from "moment";
4
+ export declare class State {
5
+ /** step of Add Legal Contact */
6
+ step: number;
7
+ /** Search an existing contact or Create a new contact */
8
+ operate: "Search" | "Create";
9
+ /** type of unit */
10
+ unitType: string;
11
+ /** list of unit */
12
+ unitList: IUnit[];
13
+ /** unit */
14
+ unit: IUnit;
15
+ /** order name by Western or Eastern */
16
+ orderName: string;
17
+ /** key of tabPane of Page4 */
18
+ tabKey: "Contact" | "Identify";
19
+ /** Option of create new identity */
20
+ identity: {
21
+ unitId?: string;
22
+ fistName: string;
23
+ lastName: string;
24
+ middleName: string;
25
+ number: number | string;
26
+ email?: string;
27
+ phone?: string;
28
+ country: string;
29
+ expiryDate: moment.Moment | null;
30
+ type: string;
31
+ unitType?: "Person" | "Organization";
32
+ address: IAddress;
33
+ };
34
+ get fullName(): string;
35
+ }
36
+ export declare const LegalContext: import("react").Context<State>;
37
+ export declare const useLegalContext: () => State;
@@ -0,0 +1,71 @@
1
+ import { __decorate } from "tslib";
2
+ import { computed, observable } from "mobx";
3
+ import { createContext, useContext } from "react";
4
+ import { toJS } from "mobx";
5
+ export class State {
6
+ constructor() {
7
+ /** step of Add Legal Contact */
8
+ this.step = 1;
9
+ /** Search an existing contact or Create a new contact */
10
+ this.operate = "Search";
11
+ /** type of unit */
12
+ this.unitType = "People";
13
+ /** list of unit */
14
+ this.unitList = [];
15
+ /** order name by Western or Eastern */
16
+ this.orderName = "Western";
17
+ /** key of tabPane of Page4 */
18
+ this.tabKey = "Contact";
19
+ /** Option of create new identity */
20
+ this.identity = {
21
+ unitId: "",
22
+ fistName: "",
23
+ lastName: "",
24
+ middleName: "",
25
+ number: "",
26
+ country: "",
27
+ expiryDate: null,
28
+ type: "International Passport",
29
+ unitType: "Person",
30
+ address: { line1: "", line2: "", city: "", state: "", postalCode: "", country: "" }
31
+ };
32
+ }
33
+ get fullName() {
34
+ if (this.operate === "Search")
35
+ return this.unit ? this.unit.name : "";
36
+ const { fistName, lastName, middleName } = toJS(this.identity);
37
+ return this.orderName === "Western"
38
+ ? (fistName || "") + " " + (middleName || "") + " " + (lastName || "")
39
+ : (lastName || "") + " " + (fistName || "");
40
+ }
41
+ }
42
+ __decorate([
43
+ observable
44
+ ], State.prototype, "step", void 0);
45
+ __decorate([
46
+ observable
47
+ ], State.prototype, "operate", void 0);
48
+ __decorate([
49
+ observable
50
+ ], State.prototype, "unitType", void 0);
51
+ __decorate([
52
+ observable
53
+ ], State.prototype, "unitList", void 0);
54
+ __decorate([
55
+ observable
56
+ ], State.prototype, "unit", void 0);
57
+ __decorate([
58
+ observable
59
+ ], State.prototype, "orderName", void 0);
60
+ __decorate([
61
+ observable
62
+ ], State.prototype, "tabKey", void 0);
63
+ __decorate([
64
+ observable
65
+ ], State.prototype, "identity", void 0);
66
+ __decorate([
67
+ computed
68
+ ], State.prototype, "fullName", null);
69
+ export const LegalContext = createContext(null);
70
+ export const useLegalContext = () => useContext(LegalContext);
71
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,OAAO,KAAK;IAAlB;QACC,gCAAgC;QACb,SAAI,GAAG,CAAC,CAAC;QAC5B,yDAAyD;QACtC,YAAO,GAAwB,QAAQ,CAAC;QAC3D,mBAAmB;QACA,aAAQ,GAAG,QAAQ,CAAC;QACvC,mBAAmB;QACA,aAAQ,GAAY,EAAE,CAAC;QAG1C,uCAAuC;QACpB,cAAS,GAAG,SAAS,CAAC;QACzC,8BAA8B;QACX,WAAM,GAA2B,SAAS,CAAC;QAC9D,oCAAoC;QACjB,aAAQ,G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;IAAT,QAAQ;qCAQR;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAQ,IAAW,CAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { ApiEndPoint } from "@voplus/api";
2
+ import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
3
+ import { Store } from "@voplus/morpho-data";
4
+ import { IIdentity } from "./interfaces";
5
+ import { IdentityCreateOptions } from "./types";
6
+ /** Quotation store supply backend functions. */
7
+ export declare class IdentityStore extends Store {
8
+ readonly endpoint: ApiEndPoint;
9
+ /** Name of the store */
10
+ readonly name: string;
11
+ constructor(endpoint: ApiEndPoint);
12
+ /** Create a new Identity. */
13
+ create(options: IdentityCreateOptions): Promise<IIdentity>;
14
+ /** Edit an existing item on server. */
15
+ edit(id: string, options: IdentityCreateOptions): Promise<any>;
16
+ /** Load a list of documents from server.
17
+ * @param {LoadDocumentListOptions}
18
+ */
19
+ loadList(options?: LoadDocumentListOptions): Promise<IIdentity[]>;
20
+ load(id: string, options: LoadDocumentOptions): Promise<IIdentity>;
21
+ }
22
+ /** 响应钩子检索 IdentityStore */
23
+ export declare const useIdentityStore: () => IdentityStore;
@@ -0,0 +1,55 @@
1
+ import { RequestBuilder } from "@voplus/api";
2
+ import { Store, useApplicationContext } from "@voplus/morpho-data";
3
+ const StoreName = "IdentityStore";
4
+ /** Quotation store supply backend functions. */
5
+ export class IdentityStore extends Store {
6
+ constructor(endpoint) {
7
+ super();
8
+ this.endpoint = endpoint;
9
+ /** Name of the store */
10
+ this.name = StoreName;
11
+ }
12
+ /** Create a new Identity. */
13
+ async create(options) {
14
+ // invariant(options.name, "Name cannot be empty.");
15
+ const r = await this.endpoint.post(`/api/identities/create`, new RequestBuilder().json(options));
16
+ const t = (await r.json());
17
+ return t;
18
+ }
19
+ /** Edit an existing item on server. */
20
+ async edit(id, options) {
21
+ const r = await this.endpoint.post(`/api/identities/${id}/info`, new RequestBuilder().json(options));
22
+ return await r.json();
23
+ }
24
+ /** Load a list of documents from server.
25
+ * @param {LoadDocumentListOptions}
26
+ */
27
+ async loadList(options) {
28
+ let query = "";
29
+ if (options === null || options === void 0 ? void 0 : options.Includes) {
30
+ query = query.concat(`includes=${options.Includes}`);
31
+ }
32
+ if (query)
33
+ query = "?".concat(query);
34
+ const r = await this.endpoint.post(`/api/identities${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
35
+ return (await r.json());
36
+ }
37
+ async load(id, options) {
38
+ let query = "";
39
+ if (options.includes)
40
+ query = query.concat(`includes=${options.includes}`);
41
+ if (query)
42
+ query = "?".concat(query);
43
+ const r = await this.endpoint.get(`/api/identities/${id}${query}`);
44
+ return await r.json();
45
+ }
46
+ }
47
+ /** 响应钩子检索 IdentityStore */
48
+ export const useIdentityStore = () => {
49
+ const context = useApplicationContext();
50
+ if (!context.getStore(StoreName)) {
51
+ context.addStore(new IdentityStore(context.api.currentEndPoint));
52
+ }
53
+ return context.getStore(StoreName);
54
+ };
55
+ //# sourceMappingURL=IdentityStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityStore.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/IdentityStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAKnE,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,gDAAgD;AAChD,MAAM,OAAO,aAAc,SAAQ,KAAK;IAIvC,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QAD0B,aAAQ,GAAR,QAAQ,CAAa;QAHxD,wBAAwB;QACR,SAAI,GAAW,SAAS,CAAC;IAIzC,CAAC;IAED,6BAA6B;IACtB,KAAK,CAAC,MAAM,CAAC,OAA8B;QACjD,o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C;QACf,IAAI,OAAO,CAAC,QAAQ;YAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QACnE,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACD;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KACjE;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmB,CAAC;AACtD,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
2
+ import { IIdentity } from "./interfaces";
3
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
+ /** React hook to retrieve a corporate
5
+ * @param {string} id - id of the corporate
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ export declare const useIdentityListEffect: (list: ListDataContextState<IIdentity> | null, effect: (list: IIdentity[]) => void | null, options?: LoadDocumentListOptions | undefined) => void;
9
+ export declare const useIdentity: (id: string, options?: ({
10
+ includes?: string | undefined;
11
+ } & import("@voplus/morpho-data").LoadOptions<import("@voplus/morpho-document-core").IDocument> & {
12
+ unit?: boolean | undefined;
13
+ }) | undefined) => IIdentity;
@@ -0,0 +1,31 @@
1
+ import { useDocumentListLoaderEffect, useDocumentStore } from "@voplus/morpho-document-core";
2
+ import { useIdentityStore } from "./IdentityStore";
3
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
4
+ /** React hook to retrieve a corporate
5
+ * @param {string} id - id of the corporate
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ // export const useCorporate = (id: string, options?: LoadDocumentOptions & { unit?: boolean }) => {
9
+ // options = options ? options : ({} as LoadDocumentOptions);
10
+ // const store = useCorporateStore();
11
+ // const documents = useDocumentStore();
12
+ // return useLoadCountedMapItem(
13
+ // id,
14
+ // documents.items,
15
+ // () => store.load(id, options!),
16
+ // options
17
+ // ) as ICorporate;
18
+ // };
19
+ export const useIdentityListEffect = (list, effect, options) => {
20
+ const deps = options ? options : {};
21
+ const store = useDocumentStore();
22
+ // Call useDocumentListLoaderEffect and ensure won't load twice for same loading options.
23
+ return useDocumentListLoaderEffect(list, effect, () => store.loadList(options), [deps]);
24
+ };
25
+ export const useIdentity = (id, options) => {
26
+ options = options ? options : {};
27
+ const store = useIdentityStore();
28
+ const documents = useDocumentStore();
29
+ return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
30
+ };
31
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,EAChB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,oGAAoG;AACpG,8DAA8D;AAC9D,sCAAsC;AACtC,yCAAyC;AAEzC,iCAAiC;AACjC,QAAQ;AACR,qBAAqB;AACrB,oCAAoC;AACpC,YAAY;AACZ,oBAAoB;AACpB,KAAK;AAEL,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,IAA4C,EAC5C,MAA0C,EAC1C,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IAEjC,yFAAyF;IACzF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AACzF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,OAAkD,EAAE,EAAE;IAC7F,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACM,CAAC;AAChB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./IdentityStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./IdentityStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { IDocument } from "@voplus/morpho-document-core";
2
+ export interface IIdentity extends IDocument {
3
+ /** id of the unit */
4
+ unitId?: string;
5
+ /** full name of the identity */
6
+ fullName: string;
7
+ /** number of the identity */
8
+ number: number | string;
9
+ /** country of issued of the identity */
10
+ country: string;
11
+ /** expiry date of the identity */
12
+ expiryDate: Date;
13
+ /** type of the identity */
14
+ type: string;
15
+ /** type of the unit */
16
+ unitType?: "Person" | "Organization";
17
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export declare type IdentityCreateOptions = {
2
+ /** id of the unit */
3
+ UnitId?: string;
4
+ /** full name of the identity */
5
+ FullName?: string;
6
+ /** number of the identity */
7
+ Number: number;
8
+ /** country of issued of the identity */
9
+ Country: string;
10
+ /** expiry date of the identity */
11
+ ExpiryDate: Date;
12
+ /** type of the identity */
13
+ Type: string;
14
+ /** type of the unit */
15
+ UnitType?: "Person" | "Organization";
16
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const ContactInformation: (props: {
3
+ id: string;
4
+ scrollbar?: boolean;
5
+ }) => JSX.Element;
6
+ export default ContactInformation;
@@ -0,0 +1,54 @@
1
+ import { Button, DatePicker, Input, Radio, Space, Tooltip } from "@voplus/antd";
2
+ import React, { useState } from "react";
3
+ import Address from "@voplus/morpho-org/es/components/Address";
4
+ import { EditOutlined } from "@ant-design/icons";
5
+ import { Form } from "@voplus/antd";
6
+ import Scrollbars from "react-custom-scrollbars";
7
+ import { State } from "./state";
8
+ import moment from "moment";
9
+ import { useObserver } from "mobx-react-lite";
10
+ import { useUnit } from "@voplus/morpho-org";
11
+ const ContactInformation = (props) => {
12
+ const { id, scrollbar } = props;
13
+ const unit = useUnit(id);
14
+ const [state] = useState(new State());
15
+ const Information = useObserver(() => (React.createElement(Scrollbars, null,
16
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 4 }, className: "company-information" },
17
+ React.createElement("h3", null, "Contact Information"),
18
+ React.createElement(Form.Item, { label: "Phone" }, state.editable ? (React.createElement(Input, { value: state.contact.phone, onChange: e => (state.contact.phone = e.target.value) })) : (unit.phone)),
19
+ React.createElement(Form.Item, { label: "E-mail" }, state.editable ? (React.createElement(Input, { value: state.contact.email, onChange: e => (state.contact.email = e.target.value) })) : (unit.email)),
20
+ React.createElement(Form.Item, { label: "Address" }, state.editable ? (React.createElement(Address, { value: state.contact.address, onChange: v => (state.contact.address = v) })) : (React.createElement(React.Fragment, null,
21
+ unit.address.line1 ? unit.address.line1 + ", " : "",
22
+ unit.address.line2 ? unit.address.line2 + ", " : "",
23
+ unit.address.city ? unit.address.city + ", " : "",
24
+ unit.address.state ? unit.address.state + ", " : "",
25
+ unit.address.country ? unit.address.country + ", " : ""))),
26
+ React.createElement("h3", null, "Basic Information"),
27
+ React.createElement(Form.Item, { label: "Birthday" }, state.editable ? (React.createElement(DatePicker, { value: state.contact.birthday, onChange: date => (state.contact.birthday = date) })) : unit.birthday ? (moment(unit.birthday).format("YYYY-MM-DD")) : ("")),
28
+ React.createElement(Form.Item, { label: "Gender" }, state.editable ? (React.createElement(Radio.Group, { value: state.contact.gender, onChange: e => (state.contact.gender = e.target.value) },
29
+ React.createElement(Radio, { value: "Male" }, " Male"),
30
+ React.createElement(Radio, { value: "Female" }, "Female"))) : (unit.gender)),
31
+ state.editable && (React.createElement(Form.Item, { style: { textAlign: "right" } },
32
+ React.createElement(Space, { size: 10 },
33
+ React.createElement(Button, { size: "middle", onClick: () => (state.editable = false) }, "Cancel"),
34
+ React.createElement(Button, { type: "primary", size: "middle", onClick: onOk }, "Ok")))),
35
+ !state.editable && (React.createElement(Tooltip, { title: "Edit" },
36
+ React.createElement(Button, { type: "link", onClick: onEdit, className: "hover-edit-btn" },
37
+ React.createElement(EditOutlined, null))))))));
38
+ return (React.createElement(React.Fragment, null, scrollbar ? React.createElement(Scrollbars, null, Information) : Information));
39
+ /** hover edit Contact Info */
40
+ function onEdit() {
41
+ var _a;
42
+ state.contact.phone = unit.phone || "";
43
+ state.contact.email = unit.email || "";
44
+ state.contact.birthday = unit.birthday;
45
+ state.contact.address = ((_a = unit.address) === null || _a === void 0 ? void 0 : _a.line1) ? unit.address : state.defaultAddress;
46
+ state.contact.gender = unit.gender || "Male";
47
+ state.editable = true;
48
+ }
49
+ function onOk() {
50
+ console.log(state.contact, "ok");
51
+ }
52
+ };
53
+ export default ContactInformation;
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/ContactInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAgB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,kBAAkB,GAAG,CAAC,KAA0C,EAAE,EAAE;IACzE,MAAM,EAAE,EAAE,EAAE,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AAc,CAAC,CAAC,CAAC,WAAW,CACjD,CACjB,CAAC;IACF,8BAA8B;IAC9B,SAAS,MAAM;;QACd,KAAK,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACvC,KAAK,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACvC,KAAK,CAAC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAe,CAAC;QAC9C,KAAK,CAAC,OAAO,CAAC,OAAO,GAAG,OAAA,IAAI,CAAC,OAAO,0CAAE,KAAK,EAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;QAClF,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC;QAC7C,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IACD,SAAS,IAAI;QACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { IAddress } from "@voplus/morpho-org";
2
+ export declare class State {
3
+ editable: boolean;
4
+ /** default address */
5
+ defaultAddress: {
6
+ line1: string;
7
+ line2: string;
8
+ city: string;
9
+ state: string;
10
+ postalCode: string;
11
+ country: string;
12
+ };
13
+ contact: {
14
+ phone: string;
15
+ email: string;
16
+ address: IAddress;
17
+ birthday: string;
18
+ gender: "Male" | "Female";
19
+ };
20
+ }
@@ -0,0 +1,30 @@
1
+ import { __decorate } from "tslib";
2
+ import { observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ this.editable = false;
6
+ /** default address */
7
+ this.defaultAddress = {
8
+ line1: "",
9
+ line2: "",
10
+ city: "",
11
+ state: "",
12
+ postalCode: "",
13
+ country: ""
14
+ };
15
+ this.contact = {
16
+ phone: "",
17
+ email: "",
18
+ address: this.defaultAddress,
19
+ birthday: "",
20
+ gender: "Male"
21
+ };
22
+ }
23
+ }
24
+ __decorate([
25
+ observable
26
+ ], State.prototype, "editable", void 0);
27
+ __decorate([
28
+ observable
29
+ ], State.prototype, "contact", void 0);
30
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/ContactInformation/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,MAAM,CAAC;AAK5C,MAAM,OAAO,KAAK;IAAlB;QACoB,aAAQ,GAAG,KAAK,CAAC;QACpC,sBAAsB;QACf,mBAAc,GAAG;YACvB,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;YACT,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,EAAE;SACX,CAAC;QACiB,YAAO,GAMtB;YACH,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,IAAI,CAAC,cAAc;YAC5B,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,MAAM;SACd,CAAC;IACH,CAAC;CAAA;AAvBY;IAAX,UAAU;uCAAyB;AAUxB;IAAX,UAAU;sCAYT"}