@voplus/morpho-csp 1.0.0-dev011 → 1.2.0-dev01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/CompanyMemberSelect/index.js +2 -2
- package/es/components/CompanyMemberSelect/index.js.map +1 -1
- package/es/components/CurrencyView/state.d.ts +1 -0
- package/es/components/CurrencyView/state.js +20 -4
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/components/LegalContactSelect/index.js +4 -3
- package/es/components/LegalContactSelect/index.js.map +1 -1
- package/es/components/LegalContactSelect/state.d.ts +1 -0
- package/es/components/LegalContactSelect/state.js +20 -4
- package/es/components/LegalContactSelect/state.js.map +1 -1
- package/es/components/NewTypeDropdown/index.js +1 -1
- package/es/components/NewTypeDropdown/index.js.map +1 -1
- package/es/components/ShareTransactionPropertiesView/Content.js +2 -2
- package/es/components/ShareTransactionPropertiesView/Content.js.map +1 -1
- package/es/components/ShareTransactionPropertiesView/index.js +2 -2
- package/es/components/ShareTransactionPropertiesView/index.js.map +1 -1
- package/es/components/TableDragRow/index.js +2 -2
- package/es/components/TableDragRow/index.js.map +1 -1
- package/es/components/VerificationInformation/VerificationStore.js +12 -2
- package/es/components/VerificationInformation/VerificationStore.js.map +1 -1
- package/es/components/VerificationInformation/index.js +7 -46
- package/es/components/VerificationInformation/index.js.map +1 -1
- package/es/components/VerificationInformation/state.d.ts +9 -1
- package/es/components/VerificationInformation/state.js +91 -4
- package/es/components/VerificationInformation/state.js.map +1 -1
- package/es/controls/UnitAvatar/index.d.ts +16 -0
- package/es/controls/UnitAvatar/index.js +30 -0
- package/es/controls/UnitAvatar/index.js.map +1 -0
- package/es/controls/UnitAvatar/index.less +7 -0
- package/es/data/CLDA/store.js +12 -2
- package/es/data/CLDA/store.js.map +1 -1
- package/es/data/account/AccountStore.js +18 -3
- package/es/data/account/AccountStore.js.map +1 -1
- package/es/data/corporate/CorporateStore.js +18 -3
- package/es/data/corporate/CorporateStore.js.map +1 -1
- package/es/data/filingRecord/store.js +12 -2
- package/es/data/filingRecord/store.js.map +1 -1
- package/es/data/identity/IdentityStore.js +18 -3
- package/es/data/identity/IdentityStore.js.map +1 -1
- package/es/data/member/MemberStore.js +18 -3
- package/es/data/member/MemberStore.js.map +1 -1
- package/es/data/officer/OfficerStore.js +18 -3
- package/es/data/officer/OfficerStore.js.map +1 -1
- package/es/data/service/store.js +18 -3
- package/es/data/service/store.js.map +1 -1
- package/es/data/serviceType/store.js +18 -3
- package/es/data/serviceType/store.js.map +1 -1
- package/es/data/shareCertificate/store.js +18 -3
- package/es/data/shareCertificate/store.js.map +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js +6 -1
- package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
- package/es/data/shareTransaction/metas.js +6 -1
- package/es/data/shareTransaction/metas.js.map +1 -1
- package/es/modules/account/AccountDefaultView/index.js +2 -2
- package/es/modules/account/AccountDefaultView/index.js.map +1 -1
- package/es/modules/account/AccountOrganizations/index.js +7 -7
- package/es/modules/account/AccountOrganizations/index.js.map +1 -1
- package/es/modules/account/AccountOrganizations/index.less +1 -1
- package/es/modules/account/AccountPropertiesView/index.js +3 -3
- package/es/modules/account/AccountPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js +25 -3
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/CompletedStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/CompletedStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDADefaultView/index.js +3 -3
- package/es/modules/corporate/CLDA/CLDADefaultView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/index.d.ts +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/index.js +21 -14
- package/es/modules/corporate/CLDA/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/state.d.ts +2 -0
- package/es/modules/corporate/CLDA/CLDAListView/state.js +54 -4
- package/es/modules/corporate/CLDA/CLDAListView/state.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/ChangeAddress2021/index.js +13 -12
- package/es/modules/corporate/CLDA/ChangeAddress2021/index.js.map +1 -1
- package/es/modules/corporate/CLDA/ChangeAddress2021/state.d.ts +2 -0
- package/es/modules/corporate/CLDA/ChangeAddress2021/state.js +89 -11
- package/es/modules/corporate/CLDA/ChangeAddress2021/state.js.map +1 -1
- package/es/modules/corporate/CLDA/components/CLDADetails/index.js +2 -2
- package/es/modules/corporate/CLDA/components/CLDADetails/index.js.map +1 -1
- package/es/modules/corporate/CLDA/components/CLDAItem/index.js +2 -2
- package/es/modules/corporate/CLDA/components/CLDAItem/index.js.map +1 -1
- package/es/modules/corporate/CLDA/components/NewCLDA/index.js +2 -2
- package/es/modules/corporate/CLDA/components/NewCLDA/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/ModeIcon/index.js +3 -3
- package/es/modules/corporate/CLDA/controls/ModeIcon/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/index.js +2 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.d.ts +1 -0
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.js +8 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/index.js +2 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.d.ts +1 -0
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.js +8 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/CorporateDefaultView/index.js +2 -2
- package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/CorporateSelect/index.js +2 -2
- package/es/modules/corporate/CorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/DocumentIconList/index.js +3 -3
- package/es/modules/corporate/DocumentIconList/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/AnnualFilings/index.js +4 -3
- package/es/modules/corporate/FilingRecord/AnnualFilings/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/FilingRecordItem/index.js +2 -2
- package/es/modules/corporate/FilingRecord/FilingRecordItem/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.js +2 -2
- package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.js +2 -2
- package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.js.map +1 -1
- package/es/modules/corporate/Service/ServiceItem/index.js +2 -2
- package/es/modules/corporate/Service/ServiceItem/index.js.map +1 -1
- package/es/modules/corporate/Service/ServiceList/index.js +4 -3
- package/es/modules/corporate/Service/ServiceList/index.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypeDefaultView/index.js +2 -2
- package/es/modules/corporate/ServiceType/ServiceTypeDefaultView/index.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.js +39 -33
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.d.ts +1 -0
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.js +38 -7
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypeSelect/index.js +2 -2
- package/es/modules/corporate/ServiceType/ServiceTypeSelect/index.js.map +1 -1
- package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.js +2 -2
- package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/CompanyDefaultView/index.js +2 -2
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/CompanyDetailsView/index.js +2 -2
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +2 -2
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js +6 -28
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +6 -1
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js +95 -8
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +24 -21
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +6 -5
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +10 -9
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +21 -18
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +6 -5
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +2 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +136 -27
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -1
- package/es/modules/corporate/company/InlineEditAddress/index.js +2 -2
- package/es/modules/corporate/company/InlineEditAddress/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.js +3 -3
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.d.ts +1 -0
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.js +20 -4
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js +3 -3
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/Details/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/components/Details/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/ContactInformation/index.js +2 -2
- package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +2 -2
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js +2 -2
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerInformation/state.d.ts +1 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/state.js +11 -1
- package/es/modules/corporate/company/Officer/OfficerInformation/state.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js +3 -3
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js +2 -2
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js +3 -3
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +53 -42
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +2 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +32 -4
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +2 -2
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +4 -3
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.d.ts +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +11 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js +36 -8
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +15 -14
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.d.ts +2 -0
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js +38 -5
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +7 -6
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.d.ts +1 -0
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js +20 -4
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +5 -5
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.d.ts +1 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +8 -2
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -1
- package/es/routes.d.ts +1 -1
- package/es/style/common.less +0 -3
- package/package.json +14 -17
|
@@ -5,11 +5,11 @@ import DocumentIconList from "../../../DocumentIconList";
|
|
|
5
5
|
import IdentityInformation from "../IdentityInformation";
|
|
6
6
|
import Scrollbars from "react-custom-scrollbars";
|
|
7
7
|
import VerificationInformation from "../../../../../components/VerificationInformation";
|
|
8
|
-
import {
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
9
|
const IdentifyDetail = (props) => {
|
|
10
10
|
const { id, officerId, allowEdit } = props;
|
|
11
11
|
const [visible, setVisible] = useState(false);
|
|
12
|
-
return
|
|
12
|
+
return observe(() => (React.createElement(Scrollbars, null,
|
|
13
13
|
React.createElement("div", { className: "identity-detail company-information" },
|
|
14
14
|
React.createElement("h3", null, "Verification Information"),
|
|
15
15
|
React.createElement(VerificationInformation, { id: id }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,uBAAuB,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,uBAAuB,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,cAAc,GAAG,CAAC,KAA6D,EAAE,EAAE;IACxF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE3C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU;QACV,6BAAK,SAAS,EAAC,qCAAqC;YACnD,2DAAiC;YACjC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;YAClC,CAAC,OAAO,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,gCAE1D,CACT,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,CAAC,QAAQ;gBAEd,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI;gBACrD,4CAAkB;gBAClB,oBAAC,gBAAgB,IAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAI,CAClC,CACjB,CACI,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,cAAc,CAAC,YAAY,GAAG;IAC7B,SAAS,EAAE,IAAI;CACf,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Button, DatePicker, Form, Input, Select, Skeleton, Tooltip,
|
|
1
|
+
import { Button, DatePicker, Form, Input, Select, Skeleton, Tooltip, } from "@voplus/antd";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { useIdentity, useIdentityStore } from "../../../../../data/identity";
|
|
4
4
|
import { EditOutlined } from "@ant-design/icons";
|
|
5
5
|
import { InputCountry } from "@voplus/morpho-ui";
|
|
6
6
|
import { State } from "./state";
|
|
7
7
|
import moment from "moment";
|
|
8
|
-
import {
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
9
|
const IdentityInformation = (props) => {
|
|
10
10
|
const { id, allowEdit } = props;
|
|
11
|
-
const [state] = useState(new State());
|
|
12
11
|
const identityStore = useIdentityStore();
|
|
12
|
+
const [state] = useState(new State(id, identityStore));
|
|
13
13
|
state.identity = useIdentity(id, { reload: true });
|
|
14
|
-
return
|
|
14
|
+
return observe(() => (React.createElement(React.Fragment, null, state.identity.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
|
|
15
15
|
React.createElement("div", { className: "identity-information" },
|
|
16
16
|
React.createElement("h3", null, "Identity Information"),
|
|
17
17
|
allowEdit && (React.createElement("div", null, state.editable ? (React.createElement(React.Fragment, null,
|
|
18
|
-
React.createElement(Button, { type: "text", onClick: cancel }, "Cancel"),
|
|
19
|
-
React.createElement(Button, { type: "link", loading: state.loading, onClick: onOk }, "Ok"))) : (React.createElement(Tooltip, { title: "Edit" },
|
|
18
|
+
React.createElement(Button, { type: "text", onClick: state.cancel }, "Cancel"),
|
|
19
|
+
React.createElement(Button, { type: "link", loading: state.loading, onClick: state.onOk }, "Ok"))) : (React.createElement(Tooltip, { title: "Edit" },
|
|
20
20
|
React.createElement(Button, { type: "link", onClick: onEdit },
|
|
21
21
|
React.createElement(EditOutlined, null))))))),
|
|
22
22
|
React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 } },
|
|
@@ -34,32 +34,10 @@ const IdentityInformation = (props) => {
|
|
|
34
34
|
.slice(-4)
|
|
35
35
|
.padStart(state.identity.number.toString().length, "*"))),
|
|
36
36
|
React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: state.Type === "Passport" }] }, state.editable ? (React.createElement(DatePicker, { defaultValue: moment(state.identity.expiryDate), value: state.identity.expiryDate, onChange: (date) => (state.identity.expiryDate = date) })) : (moment(state.identity.expiryDate).format("YYYY-MM-DD")))))))));
|
|
37
|
-
/** */
|
|
38
|
-
function cancel() {
|
|
39
|
-
state.editable = false;
|
|
40
|
-
}
|
|
41
37
|
/** hover edit IdentityInformation */
|
|
42
38
|
function onEdit() {
|
|
43
39
|
state.editable = !!allowEdit;
|
|
44
40
|
}
|
|
45
|
-
/** save Identity information */
|
|
46
|
-
async function onOk() {
|
|
47
|
-
if (!state.identity.number ||
|
|
48
|
-
!state.identity.country ||
|
|
49
|
-
(state.identity.type === "Passport" && !state.ExpiryDate))
|
|
50
|
-
return message.warn("Identity information required");
|
|
51
|
-
const { number, country, type, expiryDate } = state.identity;
|
|
52
|
-
const Options = {
|
|
53
|
-
Number: number,
|
|
54
|
-
Country: country,
|
|
55
|
-
Type: type,
|
|
56
|
-
ExpiryDate: moment(expiryDate).format("YYYY-MM-DD"),
|
|
57
|
-
};
|
|
58
|
-
state.loading = true;
|
|
59
|
-
await identityStore.edit(id, { data: Options, error: "message" });
|
|
60
|
-
state.loading = false;
|
|
61
|
-
return (state.editable = false);
|
|
62
|
-
}
|
|
63
41
|
};
|
|
64
42
|
IdentityInformation.defaultProps = {
|
|
65
43
|
allowEdit: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EAER,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EAER,OAAO,GAEP,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,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,CAAC,SAAS,CAAC;IAC9B,CAAC;AACF,CAAC,CAAC;AACF,mBAAmB,CAAC,YAAY,GAAG;IAClC,SAAS,EAAE,IAAI;CACf,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { IIdentity } from "../../../../../data/identity";
|
|
1
|
+
import { IIdentity, IdentityStore } from "../../../../../data/identity";
|
|
2
2
|
import moment from "moment";
|
|
3
3
|
export declare class State {
|
|
4
|
+
private id;
|
|
5
|
+
private identityStore;
|
|
4
6
|
/** hover on edit */
|
|
5
7
|
editable: boolean;
|
|
6
8
|
/** */
|
|
@@ -15,4 +17,7 @@ export declare class State {
|
|
|
15
17
|
identity: IIdentity;
|
|
16
18
|
/** loading of save */
|
|
17
19
|
loading: boolean;
|
|
20
|
+
constructor(id: string, identityStore: IdentityStore);
|
|
21
|
+
cancel: () => void;
|
|
22
|
+
onOk: () => Promise<any>;
|
|
18
23
|
}
|
|
@@ -1,20 +1,101 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeAutoObservable, observable } from "mobx";
|
|
3
|
+
import { message } from "@voplus/antd";
|
|
2
4
|
import moment from "moment";
|
|
3
|
-
import { observable } from "mobx";
|
|
4
5
|
export class State {
|
|
5
|
-
constructor() {
|
|
6
|
+
constructor(id, identityStore) {
|
|
7
|
+
Object.defineProperty(this, "id", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true,
|
|
11
|
+
value: id
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(this, "identityStore", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: identityStore
|
|
18
|
+
});
|
|
6
19
|
/** hover on edit */
|
|
7
|
-
this
|
|
20
|
+
Object.defineProperty(this, "editable", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: false
|
|
25
|
+
});
|
|
8
26
|
/** */
|
|
9
|
-
this
|
|
27
|
+
Object.defineProperty(this, "Number", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: ""
|
|
32
|
+
});
|
|
10
33
|
/** */
|
|
11
|
-
this
|
|
34
|
+
Object.defineProperty(this, "Type", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: ""
|
|
39
|
+
});
|
|
12
40
|
/** */
|
|
13
|
-
this
|
|
41
|
+
Object.defineProperty(this, "Country", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: ""
|
|
46
|
+
});
|
|
14
47
|
/** */
|
|
15
|
-
this
|
|
48
|
+
Object.defineProperty(this, "ExpiryDate", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true,
|
|
51
|
+
writable: true,
|
|
52
|
+
value: moment()
|
|
53
|
+
});
|
|
54
|
+
/** */
|
|
55
|
+
Object.defineProperty(this, "identity", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: void 0
|
|
60
|
+
});
|
|
16
61
|
/** loading of save */
|
|
17
|
-
this
|
|
62
|
+
Object.defineProperty(this, "loading", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true,
|
|
65
|
+
writable: true,
|
|
66
|
+
value: false
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(this, "cancel", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
configurable: true,
|
|
71
|
+
writable: true,
|
|
72
|
+
value: () => {
|
|
73
|
+
this.editable = false;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(this, "onOk", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
value: async () => {
|
|
81
|
+
if (!this.identity.number ||
|
|
82
|
+
!this.identity.country ||
|
|
83
|
+
(this.identity.type === "Passport" && !this.ExpiryDate))
|
|
84
|
+
return message.warn("Identity information required");
|
|
85
|
+
const { number, country, type, expiryDate } = this.identity;
|
|
86
|
+
const Options = {
|
|
87
|
+
Number: number,
|
|
88
|
+
Country: country,
|
|
89
|
+
Type: type,
|
|
90
|
+
ExpiryDate: moment(expiryDate).format("YYYY-MM-DD"),
|
|
91
|
+
};
|
|
92
|
+
this.loading = true;
|
|
93
|
+
await this.identityStore.edit(this.id, { data: Options, error: "message" });
|
|
94
|
+
this.loading = false;
|
|
95
|
+
return (this.editable = false);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
makeAutoObservable(this);
|
|
18
99
|
}
|
|
19
100
|
}
|
|
20
101
|
__decorate([
|
|
@@ -38,4 +119,10 @@ __decorate([
|
|
|
38
119
|
__decorate([
|
|
39
120
|
observable
|
|
40
121
|
], State.prototype, "loading", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
action
|
|
124
|
+
], State.prototype, "cancel", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
action
|
|
127
|
+
], State.prototype, "onOk", void 0);
|
|
41
128
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/state.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,OAAO,KAAK;IAgBjB,YAA2B,EAAU,EAA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I,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;YAChC,CAAC;WAAC;QA9BD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CA8BD;AA9CY;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;qCAAqC;AAEpC;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;sCAAqB;AAEpB;IAAX,UAAU;yCAA6C;AAE5C;IAAX,UAAU;uCAA4B;AAE3B;IAAX,UAAU;sCAAwB;AAQnC;IAFC,MAAM;qCAIL;AAIF;IAFC,MAAM;mCAqBL"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Button, Divider, Radio, Select, message } from "@voplus/antd";
|
|
2
2
|
import { useIdentityListEffect, useIdentityStore } from "../../../../../data/identity";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { runInAction } from "mobx";
|
|
4
6
|
import { useLegalContext } from "./state";
|
|
5
|
-
import { useObserver } from "mobx-react-lite";
|
|
6
7
|
import { useUnitStore } from "@voplus/morpho-org";
|
|
7
8
|
const Page1 = () => {
|
|
8
9
|
const legal = useLegalContext();
|
|
@@ -12,17 +13,17 @@ const Page1 = () => {
|
|
|
12
13
|
legal.contactList = list || [];
|
|
13
14
|
legal.loading = false;
|
|
14
15
|
});
|
|
15
|
-
return
|
|
16
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
16
17
|
React.createElement("div", { className: "select-legal-contact_title" }, "Select Legal Contact"),
|
|
17
18
|
React.createElement("div", { className: "select-legal-contact_content" },
|
|
18
|
-
React.createElement(Radio.Group, { value: legal.operate, onChange: (e) => (legal.operate = e.target.value) },
|
|
19
|
+
React.createElement(Radio.Group, { value: legal.operate, onChange: (e) => runInAction(() => (legal.operate = e.target.value)) },
|
|
19
20
|
React.createElement(Radio, { value: "Search", className: "padding-bottom-20" }, "Search an existing contact"),
|
|
20
21
|
React.createElement(Select, { value: legal.identityId, loading: legal.loading, showSearch: true, filterOption: filterItems, optionLabelProp: "title", onSelect: onSelect, style: { width: "100%" } }, legal.contactList.map((i) => (React.createElement(Select.Option, { key: i.id, value: i.id, title: i.identity }, i.identity)))),
|
|
21
22
|
React.createElement(Divider, { plain: true }, "or"),
|
|
22
23
|
React.createElement(Radio, { value: "Create" }, "Create a new contact"))),
|
|
23
24
|
React.createElement("div", { className: "select-legal-contact_footer" },
|
|
24
25
|
React.createElement(Button, { size: "middle", onClick: () => { var _a, _b; return (_b = (_a = legal.props).updateVisible) === null || _b === void 0 ? void 0 : _b.call(_a); } }, "Cancel"),
|
|
25
|
-
React.createElement(Button, { size: "middle", type: "primary", loading: legal.saving, onClick: () =>
|
|
26
|
+
React.createElement(Button, { size: "middle", type: "primary", loading: legal.saving, onClick: () => legal.operate === "Search" ? toPage5() : runInAction(() => (legal.step += 1)) }, "Next")))));
|
|
26
27
|
function filterItems(input, option) {
|
|
27
28
|
return option.title.toLowerCase().includes(input.toLowerCase());
|
|
28
29
|
}
|
|
@@ -35,23 +36,25 @@ const Page1 = () => {
|
|
|
35
36
|
async function toPage5() {
|
|
36
37
|
if (!legal.identityId)
|
|
37
38
|
return message.warning("Please choose an existing contact!");
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
39
|
+
runInAction(async () => {
|
|
40
|
+
legal.saving = true;
|
|
41
|
+
if (legal.identityId) {
|
|
42
|
+
const identity = await identityStore.load(legal.identityId, { reload: false });
|
|
43
|
+
legal.fistName = identity.fullName;
|
|
44
|
+
legal.number = identity.number || "";
|
|
45
|
+
legal.country = identity.country || "";
|
|
46
|
+
legal.expiryDate = identity.expiryDate;
|
|
47
|
+
}
|
|
48
|
+
if (legal.unitId) {
|
|
49
|
+
const unit = await unitStore.load(legal.unitId, { reload: false });
|
|
50
|
+
legal.phone = unit.phone || "";
|
|
51
|
+
legal.email = unit.email || "";
|
|
52
|
+
if (unit.address)
|
|
53
|
+
legal.address = unit.address;
|
|
54
|
+
}
|
|
55
|
+
legal.saving = false;
|
|
56
|
+
return (legal.step = 5);
|
|
57
|
+
});
|
|
55
58
|
}
|
|
56
59
|
};
|
|
57
60
|
export default Page1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page1.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAa,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAElG,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Page1.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAa,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAElG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAA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AAM,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC/E,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;gBACnC,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,EAAE,CAAC;gBACrC,KAAK,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;gBACvC,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAiB,CAAC;aAC9C;YACD,IAAI,KAAK,CAAC,MAAM,EAAE;gBACjB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBACnE,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC/B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC/B,IAAI,IAAI,CAAC,OAAO;oBAAE,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;aAC/C;YAED,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;YACrB,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { Button, Radio } from "@voplus/antd";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { runInAction } from "mobx";
|
|
3
5
|
import { useLegalContext } from "./state";
|
|
4
|
-
import { useObserver } from "mobx-react-lite";
|
|
5
6
|
const Page2 = () => {
|
|
6
7
|
const legal = useLegalContext();
|
|
7
|
-
return
|
|
8
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
8
9
|
React.createElement("div", { className: "select-legal-contact_title" }, "Create Legal Contact"),
|
|
9
10
|
React.createElement("div", { className: "select-legal-contact_content" },
|
|
10
11
|
React.createElement("h4", null, "Choose the type of contact are creating"),
|
|
11
|
-
React.createElement(Radio.Group, { value: legal.unitType, onChange: (e) => (legal.unitType = e.target.value) },
|
|
12
|
+
React.createElement(Radio.Group, { value: legal.unitType, onChange: (e) => runInAction(() => (legal.unitType = e.target.value)) },
|
|
12
13
|
React.createElement(Radio, { value: "Person", style: { padding: "10px 0" } }, "Person"),
|
|
13
14
|
React.createElement(Radio, { value: "Organization", style: { padding: "10px 0" } }, "Organization"))),
|
|
14
15
|
React.createElement("div", { className: "select-legal-contact_footer" },
|
|
15
|
-
React.createElement(Button, { size: "middle", onClick: () => (legal.step -= 1) }, "Back"),
|
|
16
|
-
React.createElement(Button, { size: "middle", type: "primary", onClick: () => (legal.step += 1) }, "Next")))));
|
|
16
|
+
React.createElement(Button, { size: "middle", onClick: () => runInAction(() => (legal.step -= 1)) }, "Back"),
|
|
17
|
+
React.createElement(Button, { size: "middle", type: "primary", onClick: () => runInAction(() => (legal.step += 1)) }, "Next")))));
|
|
17
18
|
};
|
|
18
19
|
export default Page2;
|
|
19
20
|
//# sourceMappingURL=Page2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page2.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Page2.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE7C,OA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AAC,WAE/E,CACJ,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { Button, Divider, Form, Input, Radio } from "@voplus/antd";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { runInAction } from "mobx";
|
|
3
5
|
import { useLegalContext } from "./state";
|
|
4
|
-
import { useObserver } from "mobx-react-lite";
|
|
5
6
|
const Page3 = () => {
|
|
6
7
|
const legal = useLegalContext();
|
|
7
|
-
return
|
|
8
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
8
9
|
React.createElement("div", { className: "select-legal-contact_title" }, "Input Name"),
|
|
9
10
|
React.createElement("div", { className: "select-legal-contact_content" }, legal.unitType === "Organization" ? (React.createElement(React.Fragment, null,
|
|
10
11
|
React.createElement("h4", { style: { marginBottom: "10px" } }, "Name of the Organization"),
|
|
11
|
-
React.createElement(Input, { value: legal.fistName, onChange: (e) => (legal.fistName = e.target.value) }))) : (React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement(Input, { value: legal.fistName, onChange: (e) => runInAction(() => (legal.fistName = e.target.value)) }))) : (React.createElement(React.Fragment, null,
|
|
12
13
|
React.createElement("h4", null, "Please choose correct name order and input name of the contact"),
|
|
13
14
|
React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
|
|
14
15
|
React.createElement("div", null, "Full Name Order"),
|
|
15
|
-
React.createElement(Radio.Group, { value: legal.orderName, onChange: (e) => (legal.orderName = e.target.value) },
|
|
16
|
+
React.createElement(Radio.Group, { value: legal.orderName, onChange: (e) => runInAction(() => (legal.orderName = e.target.value)) },
|
|
16
17
|
React.createElement(Radio, { value: "Western", style: { padding: "10px 0" } }, "Fist Middle Last ( Western )"),
|
|
17
18
|
React.createElement(Radio, { value: "Eastern", style: { padding: "10px 0" } }, "Last First ( Eastern )")),
|
|
18
19
|
React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
|
|
@@ -20,16 +21,16 @@ const Page3 = () => {
|
|
|
20
21
|
React.createElement("div", { className: "full-name-displayed" }, legal.fullName),
|
|
21
22
|
React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left", colon: false, className: "padding-top-15" },
|
|
22
23
|
React.createElement(Form.Item, { label: "First Name", name: "fistName", rules: [{ required: true, message: "Please input your First Name!" }] },
|
|
23
|
-
React.createElement(Input, { value: legal.fistName, onChange: (e) => (legal.fistName = e.target.value) })),
|
|
24
|
+
React.createElement(Input, { value: legal.fistName, onChange: (e) => runInAction(() => (legal.fistName = e.target.value)) })),
|
|
24
25
|
React.createElement(Form.Item, { label: "Last Name", name: "lastName", rules: [{ required: true, message: "Please input your Last Name!" }] },
|
|
25
|
-
React.createElement(Input, { value: legal.lastName, onChange: (e) => (legal.lastName = e.target.value) })),
|
|
26
|
+
React.createElement(Input, { value: legal.lastName, onChange: (e) => runInAction(() => (legal.lastName = e.target.value)) })),
|
|
26
27
|
React.createElement(Form.Item, { label: React.createElement("div", { style: { lineHeight: "15px" } },
|
|
27
28
|
"Middle Name",
|
|
28
29
|
React.createElement("span", { style: { display: "block" } }, "(Optional)")) },
|
|
29
|
-
React.createElement(Input, { value: legal.middleName, onChange: (e) => (legal.middleName = e.target.value) })))))),
|
|
30
|
+
React.createElement(Input, { value: legal.middleName, onChange: (e) => runInAction(() => (legal.middleName = e.target.value)) })))))),
|
|
30
31
|
React.createElement("div", { className: "select-legal-contact_footer" },
|
|
31
|
-
React.createElement(Button, { size: "middle", onClick: () => (legal.step -= 1) }, "Back"),
|
|
32
|
-
React.createElement(Button, { size: "middle", type: "primary", onClick: () => (legal.step += 1) }, "Next")))));
|
|
32
|
+
React.createElement(Button, { size: "middle", onClick: () => runInAction(() => (legal.step -= 1)) }, "Back"),
|
|
33
|
+
React.createElement(Button, { size: "middle", type: "primary", onClick: () => runInAction(() => (legal.step += 1)) }, "Next")))));
|
|
33
34
|
};
|
|
34
35
|
export default Page3;
|
|
35
36
|
//# sourceMappingURL=Page3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page3.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Page3.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,iBAAiB;QAE5D,6BAAK,SAAS,EAAC,8BAA8B,IAC3C,KAAK,CAAC,QAAQ,KAAK,cAAc,CAAC,CAAC,CAAC,CACpC,oBAAC,KAAK,CAAC,QAAQ;YACd,4BAAI,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,+BAA+B;YAClE,oBAAC,KAAK,IACL,KAAK,EAAE,KAAK,CAAC,QAAQ,EACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE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,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,WAE/E,CACJ,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -2,45 +2,48 @@ import { Button, DatePicker, Form, Input, Select, Tabs, message } from "@voplus/
|
|
|
2
2
|
import Address from "@voplus/morpho-org/es/components/Address";
|
|
3
3
|
import { InputCountry } from "@voplus/morpho-ui";
|
|
4
4
|
import React from "react";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { runInAction } from "mobx";
|
|
5
7
|
import { useLegalContext } from "./state";
|
|
6
|
-
import { useObserver } from "mobx-react-lite";
|
|
7
8
|
const Page4 = () => {
|
|
8
9
|
const legal = useLegalContext();
|
|
9
|
-
return
|
|
10
|
-
React.createElement(Tabs, { activeKey: legal.tabKey, tabPosition: "left", onChange: (key) => (legal.tabKey = key) },
|
|
10
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
11
|
+
React.createElement(Tabs, { activeKey: legal.tabKey, tabPosition: "left", onChange: (key) => runInAction(() => (legal.tabKey = key)) },
|
|
11
12
|
React.createElement(Tabs.TabPane, { tab: "Contact Info", key: "Contact" },
|
|
12
13
|
React.createElement(Form, { layout: "vertical" },
|
|
13
14
|
React.createElement(Form.Item, { label: "E-mail" },
|
|
14
|
-
React.createElement(Input, { value: legal.email, onChange: (e) => (legal.email = e.target.value) })),
|
|
15
|
+
React.createElement(Input, { value: legal.email, onChange: (e) => runInAction(() => (legal.email = e.target.value)) })),
|
|
15
16
|
React.createElement(Form.Item, { label: "Phone" },
|
|
16
|
-
React.createElement(Input, { value: legal.phone, onChange: (e) => (legal.phone = e.target.value) })),
|
|
17
|
-
React.createElement(Address, { value: legal.address, onChange: (v) => (legal.address = v) }))),
|
|
17
|
+
React.createElement(Input, { value: legal.phone, onChange: (e) => runInAction(() => (legal.phone = e.target.value)) })),
|
|
18
|
+
React.createElement(Address, { value: legal.address, onChange: (v) => runInAction(() => (legal.address = v)) }))),
|
|
18
19
|
React.createElement(Tabs.TabPane, { tab: "Identify Info", key: "Identify" },
|
|
19
20
|
React.createElement(Form, { layout: "vertical" },
|
|
20
21
|
React.createElement(Form.Item, { label: legal.unitType === "Organization" ? "Country of Registration" : "Country", name: "country", rules: [{ required: true }] },
|
|
21
|
-
React.createElement(InputCountry, { defaultValue: legal.country, onChange: (country) => (legal.country = country) })),
|
|
22
|
+
React.createElement(InputCountry, { defaultValue: legal.country, onChange: (country) => runInAction(() => (legal.country = country)) })),
|
|
22
23
|
legal.unitType === "Person" && (React.createElement(Form.Item, { label: "Identify Type", name: "identifyType", rules: [{ required: true }] },
|
|
23
24
|
React.createElement(Select, { defaultValue: legal.type, value: legal.type, onChange: (value) => (legal.type = value) },
|
|
24
25
|
React.createElement(Select.Option, { value: "Passport" }, "International Passport"),
|
|
25
26
|
React.createElement(Select.Option, { value: "IdentityCard" }, "Identify Card"),
|
|
26
27
|
React.createElement(Select.Option, { value: "BusinessRegistration" }, "Business Registration")))),
|
|
27
28
|
React.createElement(Form.Item, { label: legal.unitType === "Organization" ? "Registration #" : "Identify #", name: "identity", rules: [{ required: true }] },
|
|
28
|
-
React.createElement(Input, { defaultValue: legal.number, value: legal.number, onChange: (e) => (legal.number = e.target.value) })),
|
|
29
|
+
React.createElement(Input, { defaultValue: legal.number, value: legal.number, onChange: (e) => runInAction(() => (legal.number = e.target.value)) })),
|
|
29
30
|
legal.unitType === "Person" && (React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: legal.type === "Passport" }] },
|
|
30
|
-
React.createElement(DatePicker, { defaultValue: legal.expiryDate, value: legal.expiryDate, onChange: (date) => (legal.expiryDate = date) })))))),
|
|
31
|
+
React.createElement(DatePicker, { defaultValue: legal.expiryDate, value: legal.expiryDate, onChange: (date) => runInAction(() => (legal.expiryDate = date)) })))))),
|
|
31
32
|
React.createElement("div", { className: "select-legal-contact_footer" },
|
|
32
|
-
React.createElement(Button, { size: "middle", onClick: () => (legal.step -= 1) }, "Back"),
|
|
33
|
+
React.createElement(Button, { size: "middle", onClick: () => runInAction(() => (legal.step -= 1)) }, "Back"),
|
|
33
34
|
React.createElement(Button, { size: "middle", type: "primary", onClick: next }, "Next")))));
|
|
34
35
|
/** 下一个步骤, 如果是 create existing contact, 跳过Page2跟Page3 */
|
|
35
36
|
function next() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
runInAction(() => {
|
|
38
|
+
if (!legal.number || !legal.country) {
|
|
39
|
+
message.warn(legal.unitType === "Organization"
|
|
40
|
+
? "Country && Registration are required"
|
|
41
|
+
: "Country && Identify are required");
|
|
42
|
+
/** 如果 Identify Info 为空, 则跳转 Identify Tab */
|
|
43
|
+
return (legal.tabKey = "Identify");
|
|
44
|
+
}
|
|
45
|
+
return (legal.step += 1);
|
|
46
|
+
});
|
|
44
47
|
}
|
|
45
48
|
};
|
|
46
49
|
export default Page4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page4.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEtF,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Page4.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU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,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,WAEhE;YAET,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,IAAI,WAEzC,CACJ,CACU,CACjB,CAAC,CAAC;IACH,wDAAwD;IACxD,SAAS,IAAI;QACZ,WAAW,CAAC,GAAG,EAAE;YAChB,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;gBACpC,OAAO,CAAC,IAAI,CACX,KAAK,CAAC,QAAQ,KAAK,cAAc;oBAChC,CAAC,CAAC,sCAAsC;oBACxC,CAAC,CAAC,kCAAkC,CACrC,CAAC;gBACF,6CAA6C;gBAC7C,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;aACnC;YACD,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Button, Form } from "@voplus/antd";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import moment from "moment";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { runInAction } from "mobx";
|
|
4
6
|
import { useIdentityStore } from "../../../../../data/identity";
|
|
5
7
|
import { useLegalContext } from "./state";
|
|
6
|
-
import { useObserver } from "mobx-react-lite";
|
|
7
8
|
const Page5 = () => {
|
|
8
9
|
const legal = useLegalContext();
|
|
9
10
|
const identityStore = useIdentityStore();
|
|
10
|
-
return
|
|
11
|
+
return observe(() => {
|
|
11
12
|
var _a, _b, _c, _d, _e;
|
|
12
13
|
return (React.createElement(React.Fragment, null,
|
|
13
14
|
React.createElement("div", { className: "select-legal-contact_content page5" },
|
|
@@ -28,7 +29,7 @@ const Page5 = () => {
|
|
|
28
29
|
((_d = legal.address) === null || _d === void 0 ? void 0 : _d.state) ? legal.address.state + ", " : "", (_e = legal.address) === null || _e === void 0 ? void 0 :
|
|
29
30
|
_e.country))),
|
|
30
31
|
React.createElement("div", { className: "select-legal-contact_footer" },
|
|
31
|
-
React.createElement(Button, { size: "middle", onClick: () => (legal.operate === "Search" ? (legal.step = 1) : (legal.step -= 1)) }, "Back"),
|
|
32
|
+
React.createElement(Button, { size: "middle", onClick: () => runInAction(() => (legal.operate === "Search" ? (legal.step = 1) : (legal.step -= 1))) }, "Back"),
|
|
32
33
|
React.createElement(Button, { size: "middle", type: "primary", loading: legal.saving, onClick: legal.operate === "Search" ? Ok : create }, legal.operate === "Search" ? "Ok" : "Create"))));
|
|
33
34
|
});
|
|
34
35
|
function Ok() {
|
|
@@ -49,11 +50,11 @@ const Page5 = () => {
|
|
|
49
50
|
Address: legal.address,
|
|
50
51
|
UnitType: legal.unitType,
|
|
51
52
|
};
|
|
52
|
-
legal.saving = true;
|
|
53
|
+
runInAction(() => (legal.saving = true));
|
|
53
54
|
await identityStore.create({ data: Option, error: "message" }).then((res) => {
|
|
54
55
|
if (legal.props.updateVisible && res.unitId)
|
|
55
56
|
legal.props.updateVisible(res.unitId);
|
|
56
|
-
legal.saving = false;
|
|
57
|
+
runInAction(() => (legal.saving = false));
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
};
|