@voplus/morpho-csp 4.0.32 → 4.0.34
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/CurrencyView/index.d.ts +1 -1
- package/es/components/Header/index.d.ts +1 -1
- package/es/components/NewTypeDropdown/index.d.ts +1 -1
- package/es/data/CLDA/metas.d.ts +2 -2
- package/es/data/clda-form/CLDAFormContent.d.ts +2 -2
- package/es/data/clda-form/interfaces.d.ts +1 -1
- package/es/data/clda-form/types.d.ts +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js +2 -6
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.d.ts +2 -2
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.d.ts +2 -2
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.d.ts +6 -12
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +24 -87
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.less +1 -93
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.d.ts +8 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js +19 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js.map +1 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.d.ts +9 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js +26 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js.map +1 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.d.ts +2 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.js +3 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.js.map +1 -0
- package/es/modules/corporate/clda/controls/CLDADataBar/index.d.ts +2 -2
- package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js +26 -12
- package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js.map +1 -1
- package/es/modules/corporate/clda/controls/filters/CLDASigningModeFilter/state.d.ts +2 -2
- package/es/modules/corporate/clda/pages/CLDAClientView/components/DigitalSigningStep/index.d.ts +2 -2
- package/es/modules/corporate/company/components/InlineEditCountry/index.d.ts +2 -2
- package/es/modules/corporate/company/components/InlineEditType/index.d.ts +2 -2
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js +6 -7
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.d.ts +8 -13
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js +28 -79
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.d.ts +8 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.js +38 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.js.map +1 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.d.ts +9 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.js +33 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.js.map +1 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.d.ts +2 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.js +3 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.js.map +1 -0
- package/es/modules/corporate/company/controls/CorporateMenu/index.d.ts +5 -12
- package/es/modules/corporate/company/controls/CorporateMenu/index.js +19 -96
- package/es/modules/corporate/company/controls/CorporateMenu/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.d.ts +8 -0
- package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.js +18 -0
- package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.js.map +1 -0
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.d.ts +1 -1
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js +2 -2
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.d.ts +2 -2
- package/es/modules/corporate/company/officer-register/components/PositionSelect/index.d.ts +2 -2
- package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js +5 -11
- package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.d.ts +2 -2
- package/es/modules/corporate/components/Statement/index.d.ts +2 -2
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +2 -2
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.d.ts +5 -11
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js +4 -46
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AGM/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AGM/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AGMNomineeStatement/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AgentAppointment/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AgentAppointment/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AppointOfficer/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/BankOpening/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/BankOpening/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeAddress/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeAddress/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeCompanyName/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeFYE/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeFYE/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ContractAgreement/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/DispenseAGM/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/DispenseAGM/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/EmptyResolution/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/Footer/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IssueShares/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IssueShares/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeAppointment/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeAppointment/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NoticeOfResolution/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ResignationLetter/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/SettingDialog/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareReduction/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareReduction/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/StrikeOff/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/SubmitButton/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/AGMNomineeStatementFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/ChangeCompanyNameFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/ContractAgreementFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/EmptyResolutionFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/NoticeOfResolutionFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/StrikeOffFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/AGMNomineeStatementForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/AppointOfficerForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/ChangeCompanyNameForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/ContractAgreementForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/EmptyResolutionForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/NoticeOfResolutionForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/StrikeOffForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.d.ts +2 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.d.ts +2 -2
- package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.d.ts +2 -2
- package/es/modules/self-registration/clda-form/IncorporationFormRoutes.d.ts +2 -2
- package/es/modules/self-registration/clda-form/Upload/index.d.ts +2 -2
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +2 -8
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +2 -7
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +2 -6
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +2 -8
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
- package/es/modules/self-registration/components/Card/index.d.ts +2 -2
- package/es/modules/self-registration/components/CheckSection/index.d.ts +1 -1
- package/es/modules/self-registration/controls/Blink/index.d.ts +2 -2
- package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +2 -2
- package/es/modules/self-registration/controls/Section/index.d.ts +1 -1
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/CapitalTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/DirectorTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/FYETip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/IncorporationTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/SecretaryTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/ShareholderTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/SharesTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/Tip.d.ts +1 -1
- package/es/modules/self-registration/controls/Tips/vgb/BusinessNameTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/vgb/CapitalTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/vgb/RecordAddressTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/vgb/TradingAddressTip.d.ts +2 -2
- package/es/modules/self-registration/shopping-cart/Paid.d.ts +2 -2
- package/es/obsolete/order/controls/IncorporationStatusLabel/index.d.ts +2 -2
- package/es/routes.d.ts +27 -33
- package/es/routes.js +0 -13
- package/es/routes.js.map +1 -1
- package/es/services/CLDAActivityLogRenderer.d.ts +1 -1
- package/package.json +1 -1
- package/es/data/account/AccountStore.d.ts +0 -17
- package/es/data/account/AccountStore.js +0 -58
- package/es/data/account/AccountStore.js.map +0 -1
- package/es/data/account/hooks.d.ts +0 -9
- package/es/data/account/hooks.js +0 -19
- package/es/data/account/hooks.js.map +0 -1
- package/es/data/account/interfaces.d.ts +0 -15
- package/es/data/account/interfaces.js +0 -2
- package/es/data/account/interfaces.js.map +0 -1
- package/es/modules/account/components/AccountOrganizations/index.d.ts +0 -6
- package/es/modules/account/components/AccountOrganizations/index.js +0 -63
- package/es/modules/account/components/AccountOrganizations/index.js.map +0 -1
- package/es/modules/account/components/AccountOrganizations/index.less +0 -26
- package/es/modules/account/components/AccountPropertiesView/index.d.ts +0 -6
- package/es/modules/account/components/AccountPropertiesView/index.js +0 -20
- package/es/modules/account/components/AccountPropertiesView/index.js.map +0 -1
- package/es/modules/account/components/AccountPropertiesView/index.less +0 -10
- package/es/modules/account/pages/AccountDefaultView/index.d.ts +0 -4
- package/es/modules/account/pages/AccountDefaultView/index.js +0 -33
- package/es/modules/account/pages/AccountDefaultView/index.js.map +0 -1
- package/es/modules/account/pages/AccountDefaultView/index.less +0 -8
- package/es/modules/corporate/clda/components/CLDASendForm/index.d.ts +0 -12
- package/es/modules/corporate/clda/components/CLDASendForm/index.js +0 -43
- package/es/modules/corporate/clda/components/CLDASendForm/index.js.map +0 -1
- package/es/modules/corporate/clda/components/CLDASendForm/index.less +0 -48
- package/es/modules/corporate/clda/components/CLDASendForm/state.d.ts +0 -4
- package/es/modules/corporate/clda/components/CLDASendForm/state.js +0 -17
- package/es/modules/corporate/clda/components/CLDASendForm/state.js.map +0 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.less +0 -97
- package/es/modules/corporate/company/controls/CorporateMenu/index.less +0 -97
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.less +0 -54
package/es/data/CLDA/metas.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { IDocument, DocumentNewFormProps } from "@voplus/morpho-document-core";
|
|
3
3
|
import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
|
|
4
4
|
export declare class CLDATypeMeta extends DefaultDocumentTypeMeta {
|
|
5
5
|
static TypeName: string;
|
|
6
6
|
get name(): string;
|
|
7
7
|
getIcon(document: IDocument): JSX.Element;
|
|
8
|
-
getNewForm(document: IDocument, props: DocumentNewFormProps): JSX.Element;
|
|
8
|
+
getNewForm(document: IDocument, props: DocumentNewFormProps): React.JSX.Element;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare type CLDAFormProps = {
|
|
3
3
|
/** Id of the clda form. */
|
|
4
4
|
id: string;
|
|
@@ -6,5 +6,5 @@ export declare type CLDAFormProps = {
|
|
|
6
6
|
};
|
|
7
7
|
/** Meta information for Incorporation Form document. */
|
|
8
8
|
export declare class CLDAFormContent {
|
|
9
|
-
getCLDAFormContent(meta: string, country: string, props: CLDAFormProps): JSX.Element;
|
|
9
|
+
getCLDAFormContent(meta: string, country: string, props: CLDAFormProps): React.JSX.Element;
|
|
10
10
|
}
|
|
@@ -231,7 +231,7 @@ export declare type AGMFormEditOptions = {
|
|
|
231
231
|
}[];
|
|
232
232
|
Others?: string;
|
|
233
233
|
Declaration?: AGMDeclaration;
|
|
234
|
-
|
|
234
|
+
IncludeShortNotice?: boolean;
|
|
235
235
|
IncludeDispenseResolutions?: boolean;
|
|
236
236
|
IncludeDirectorsStatement?: boolean;
|
|
237
237
|
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { Button, Form, Row, Select, Space } from "antd";
|
|
2
|
-
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
|
3
1
|
import React from "react";
|
|
2
|
+
import { Form, Select, Modal } from "antd";
|
|
4
3
|
import { observe } from "@voplus/morpho-ui";
|
|
5
4
|
import { useRiskProfileReload } from "../../../risk-profile/pages/RiskProfileDefaultView/RiskProfileContext";
|
|
6
5
|
import { useRiskProfileStore } from "../../../../../../data/risk-profile";
|
|
7
6
|
const RiskMatchSearchDialog = (props) => {
|
|
8
7
|
const store = useRiskProfileStore();
|
|
9
8
|
const riskMatchReload = useRiskProfileReload();
|
|
10
|
-
return observe(() => (React.createElement(Modal, { title: "Risk Match Search Dialog", open: true, destroyOnClose: true,
|
|
11
|
-
React.createElement(Space, null,
|
|
12
|
-
React.createElement(Button, { className: "btn-cancel", onClick: onCancel }, "Cancel"),
|
|
13
|
-
React.createElement(Button, { type: "primary", onClick: onSearch }, "Search"))) },
|
|
9
|
+
return observe(() => (React.createElement(Modal, { title: "Risk Match Search Dialog", open: true, destroyOnClose: true, onCancel: onCancel, okText: "Search", onOk: onSearch },
|
|
14
10
|
React.createElement("div", null,
|
|
15
11
|
React.createElement(Form, { layout: "vertical" },
|
|
16
12
|
React.createElement(Form.Item, { label: "Channel" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAC;AAC7G,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,qBAAqB,GAAG,CAAC,KAI9B,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,MAAM,eAAe,GAAG,oBAAoB,EAAE,CAAC;IAE/C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,0BAA0B,EAChC,IAAI,QACJ,cAAc,QACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAC,QAAQ,EACf,IAAI,EAAE,QAAQ;QAEd;YACC,oBAAC,IAAI,IAAC,MAAM,EAAC,UAAU;gBACtB,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS;oBACzB,oBAAC,MAAM,IAAC,YAAY,EAAC,QAAQ,EAAC,QAAQ,QAAC,QAAQ,EAAE,YAAY;wBAC5D,oBAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,aAAuB,CAC5C,CACE,CACN,CACF,CACC,CACR,CAAC,CAAC;IAEH,SAAS,YAAY,CAAC,KAAa;QAClC,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC;IAClC,CAAC;IAED,SAAS,QAAQ;QAChB,eAAe,CAAC,SAAS,GAAG,KAAK,CAAC;QAClC,UAAU,CAAC,GAAG,EAAE;YACf,eAAe,CAAC,SAAS,GAAG,IAAI,CAAC;QAClC,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YAC5D,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,QAAQ;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
declare const RiskMatchDataBar: (props: {
|
|
3
3
|
/** id of riskMatch */
|
|
4
4
|
id: string;
|
|
@@ -6,5 +6,5 @@ declare const RiskMatchDataBar: (props: {
|
|
|
6
6
|
visible?: boolean | undefined;
|
|
7
7
|
/** props click function */
|
|
8
8
|
onClick?: ((key?: string) => void) | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
export default RiskMatchDataBar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
declare const RiskProfileDataBar: (props: {
|
|
3
3
|
/** id of riskProfile */
|
|
4
4
|
id: string;
|
|
@@ -6,5 +6,5 @@ declare const RiskProfileDataBar: (props: {
|
|
|
6
6
|
visible?: boolean | undefined;
|
|
7
7
|
/** props click function */
|
|
8
8
|
onClick?: ((key?: string) => void) | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
export default RiskProfileDataBar;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const RiskProfileMenu: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
closeAside?: boolean;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
defaultProps: {
|
|
11
|
-
icon: JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
2
|
+
declare const RiskProfileMenu: (props: {
|
|
3
|
+
id: string;
|
|
4
|
+
unitId: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
closeAside?: boolean;
|
|
7
|
+
}) => JSX.Element;
|
|
14
8
|
export default RiskProfileMenu;
|
package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js
CHANGED
|
@@ -1,100 +1,37 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
import { Button, Dropdown, Menu, Modal, Popover, message } from "antd";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Dropdown } from "antd";
|
|
4
3
|
import { useUnit } from "@voplus/morpho-org";
|
|
5
|
-
import { useRiskProfileStore
|
|
6
|
-
import {
|
|
7
|
-
import { observe
|
|
4
|
+
import { useRiskProfileStore } from "../../../../../../data/risk-profile";
|
|
5
|
+
import { faAngleLeft, faTableLayout, faBuilding, faPanelEws, faChartUser, } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
8
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
-
import RiskMatchSearchDialog from "../../../risk-match/components/RiskMatchSearchDialog";
|
|
10
|
-
import { useDocumentStore, useMoveNodeInfoService, useDocument, } from "@voplus/morpho-document-core";
|
|
11
|
-
import PasteList from "@voplus/morpho-document/es/controls/PasteList";
|
|
12
8
|
import Routes from "../../../../../../routes";
|
|
13
|
-
import
|
|
9
|
+
import { Open, Delete } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
10
|
+
import Paste from "../../../../company/controls/CompanyRegisterMenu/items/Paste";
|
|
11
|
+
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
12
|
+
import { Search, ImportRelative } from "./items";
|
|
14
13
|
import styles from "./index.less";
|
|
14
|
+
import classnames from "classnames";
|
|
15
15
|
const RiskProfileMenu = (props) => {
|
|
16
|
-
const riskProfile = useRiskProfile(props.id);
|
|
17
|
-
const document = useDocument(props.id);
|
|
18
16
|
const store = useRiskProfileStore();
|
|
19
|
-
const move = useMoveNodeInfoService();
|
|
20
|
-
const docStore = useDocumentStore();
|
|
21
17
|
const unit = useUnit(props.unitId);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
React.createElement(
|
|
33
|
-
|
|
34
|
-
React.createElement(
|
|
35
|
-
|
|
36
|
-
React.createElement(FAIcon, { icon: faPaste }),
|
|
37
|
-
React.createElement("span", { className: "type-name" }, "Paste")))),
|
|
38
|
-
React.createElement(Menu.Item, { key: "Search", disabled: riskProfile.identity === undefined, onClick: () => setSearchVisible(true) },
|
|
39
|
-
React.createElement(FAIcon, { icon: faMagnifyingGlass }),
|
|
40
|
-
React.createElement("span", { className: "type-name" }, "Search")),
|
|
41
|
-
React.createElement(Menu.Item, { key: "ImportRelative", onClick: onImport },
|
|
42
|
-
React.createElement(FAIcon, { icon: faFileUser }),
|
|
43
|
-
React.createElement("span", { className: "type-name" }, "Import Relative")),
|
|
44
|
-
React.createElement(Menu.Item, { key: "ViewRelationShip", disabled: true, onClick: () => layout.history.push(Routes.CorporateRelationshipView.getUrl(props.unitId)) },
|
|
45
|
-
React.createElement(FAIcon, { icon: faTableLayout }),
|
|
46
|
-
React.createElement("span", { className: "type-name" }, "View Relationship")),
|
|
47
|
-
React.createElement(Menu.SubMenu, { key: "Contact", title: "Contact", popupClassName: styles["risk-profile-sub-menu"], icon: React.createElement(FAIcon, { icon: faFolderUser }) },
|
|
48
|
-
React.createElement(Menu.Item, { key: "Open", disabled: !props.unitId, onClick: () => layout.history.push(`/units/${props.unitId}`) },
|
|
49
|
-
React.createElement(FAIcon, { icon: faArrowUpRightFromSquare }),
|
|
50
|
-
React.createElement("span", { className: "type-name" }, "Open")),
|
|
51
|
-
(unit === null || unit === void 0 ? void 0 : unit.type) === "Organization" && (React.createElement(Menu.Item, { key: "ViewCorporate", disabled: !props.unitId, onClick: () => layout.history.push(Routes.UnitCorporatePage.getUrl(props.unitId)) },
|
|
52
|
-
React.createElement(FAIcon, { icon: faBuilding }),
|
|
53
|
-
React.createElement("span", { className: "type-name" }, "View Corporate"))),
|
|
54
|
-
React.createElement(Menu.Item, { key: "ViewCustomer", disabled: !props.unitId, onClick: () => layout.history.push(`/customer-empty/${props.unitId}`) },
|
|
55
|
-
React.createElement(FAIcon, { icon: faPanelEws }),
|
|
56
|
-
React.createElement("span", { className: "type-name" }, "View Customer")),
|
|
57
|
-
React.createElement(Menu.Item, { key: "Agent", disabled: !props.unitId, onClick: () => layout.history.push(`/agent-empty/${props.unitId}`) },
|
|
58
|
-
React.createElement(FAIcon, { icon: faChartUser }),
|
|
59
|
-
React.createElement("span", { className: "type-name" }, "View Agent"))),
|
|
60
|
-
React.createElement(Menu.Item, { key: "Delete", onClick: onDelete },
|
|
61
|
-
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
|
|
62
|
-
React.createElement("span", { className: "type-name delete" }, "Delete")))) },
|
|
63
|
-
React.createElement(Button, { size: "small", type: "link" }, props.icon)),
|
|
64
|
-
searchVisible && (React.createElement(RiskMatchSearchDialog, { id: props.id, onCancel: () => setSearchVisible(false) })))));
|
|
18
|
+
return observe(() => (React.createElement(NodeMenu, { id: props.id, icon: props.icon, store: store, menus: ({ onClickItem }) => (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement(Paste, null),
|
|
20
|
+
React.createElement(Search, { onClickItem: onClickItem }),
|
|
21
|
+
React.createElement(ImportRelative, { action: onImport }),
|
|
22
|
+
React.createElement(Open, { title: "View Relationship", icon: faTableLayout, url: Routes.CorporateRelationshipView.getUrl(props.unitId) }),
|
|
23
|
+
React.createElement(Delete, null),
|
|
24
|
+
React.createElement(Dropdown, { dropdownRender: () => (React.createElement("div", { className: classnames("sub-node-menu", styles["risk-profile-sub-menu"]) },
|
|
25
|
+
React.createElement(Open, { disabled: !props.unitId, url: `/units/${props.unitId}` }),
|
|
26
|
+
(unit === null || unit === void 0 ? void 0 : unit.type) === "Organization" && (React.createElement(Open, { title: "View Corporate", icon: faBuilding, disabled: !props.unitId, url: Routes.UnitRiskProfilePage.getUrl(props.unitId) })),
|
|
27
|
+
React.createElement(Open, { title: "View Customer", icon: faPanelEws, disabled: !props.unitId, url: `/customer-empty/${props.unitId}` }),
|
|
28
|
+
React.createElement(Open, { title: "View Agent", icon: faChartUser, disabled: !props.unitId, url: `/agent-empty/${props.unitId}` }))) },
|
|
29
|
+
React.createElement(Button, { type: "link" },
|
|
30
|
+
React.createElement(FAIcon, { icon: faAngleLeft }),
|
|
31
|
+
React.createElement("span", null, "Contact"))))) })));
|
|
65
32
|
async function onImport() {
|
|
66
33
|
await store.importRelative(props.id, { error: "message" });
|
|
67
34
|
}
|
|
68
|
-
async function onPaste() {
|
|
69
|
-
const nodes = move.findRemove(["Document"]);
|
|
70
|
-
if (nodes.some((x) => x.id === props.id)) {
|
|
71
|
-
message.warning("Cannot move to itself");
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
if (nodes.length) {
|
|
75
|
-
await docStore.paste(props.id, nodes.map((x) => x.id));
|
|
76
|
-
message.success("Document pasted.");
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function onDelete() {
|
|
80
|
-
/** 如果文件下有子文件, 询问是否删除所有子文件 */
|
|
81
|
-
Modal.confirm({
|
|
82
|
-
title: "Do you want to delete this item?",
|
|
83
|
-
async onOk() {
|
|
84
|
-
await store.delete([props.id], {
|
|
85
|
-
data: { DeleteChilds: true },
|
|
86
|
-
error: "message",
|
|
87
|
-
});
|
|
88
|
-
/** 删除后是否关闭Aside */
|
|
89
|
-
if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
|
|
90
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
|
|
91
|
-
return;
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
RiskProfileMenu.defaultProps = {
|
|
97
|
-
icon: React.createElement(FAIcon, { icon: faCircleEllipsis }),
|
|
98
35
|
};
|
|
99
36
|
export default RiskProfileMenu;
|
|
100
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EACN,WAAW,EACX,a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index.less";
|
|
2
2
|
|
|
3
|
-
.risk-profile-menu {
|
|
4
|
-
border-radius: @border-radius;
|
|
5
|
-
padding: 4px 8px !important;
|
|
6
|
-
|
|
7
|
-
:global {
|
|
8
|
-
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
|
|
10
|
-
|
|
11
|
-
.type-name {
|
|
12
|
-
margin-left: 10px;
|
|
13
|
-
display: inline-block;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.del-btn {
|
|
17
|
-
color: #f5222d;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ant-dropdown-menu-submenu {
|
|
21
|
-
svg {
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ant-dropdown-menu-item {
|
|
27
|
-
color: @cancel-color !important;
|
|
28
|
-
|
|
29
|
-
&.ant-dropdown-menu-item-disabled {
|
|
30
|
-
color: @disabled-color !important;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ant-dropdown-menu-submenu-disabled {
|
|
35
|
-
color: @disabled-color !important;
|
|
36
|
-
|
|
37
|
-
.ant-dropdown-menu-submenu-title {
|
|
38
|
-
color: @disabled-color !important;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ant-dropdown-menu-submenu-title {
|
|
43
|
-
color: @cancel-color !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.ant-dropdown-menu-item-active {
|
|
47
|
-
border-radius: @border-radius !important;
|
|
48
|
-
background: @ant-menu-hover-color !important;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.ant-menu:not(.ant-menu-inline) .ant-dropdown-menu-submenu-open,
|
|
52
|
-
.ant-dropdown-menu-submenu-active {
|
|
53
|
-
border-radius: @border-radius;
|
|
54
|
-
background: @ant-menu-hover-color;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ant-dropdown-menu-submenu-arrow {
|
|
58
|
-
height: 22px;
|
|
59
|
-
display: inline-flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
3
|
.risk-profile-sub-menu {
|
|
66
|
-
:
|
|
67
|
-
.type-name {
|
|
68
|
-
margin-left: 10px;
|
|
69
|
-
display: inline-block;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ant-dropdown-menu-item,
|
|
73
|
-
.ant-dropdown-menu-submenu-title {
|
|
74
|
-
margin: 4px 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ant-dropdown-menu-item:hover,
|
|
78
|
-
.ant-dropdown-menu-submenu-title:hover {
|
|
79
|
-
border-radius: @border-radius;
|
|
80
|
-
background: @ant-menu-hover-color;
|
|
81
|
-
box-shadow: @hover-button-shadow;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ant-dropdown-menu-item-active {
|
|
85
|
-
border-radius: @border-radius !important;
|
|
86
|
-
background: @ant-menu-hover-color !important;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.ant-dropdown-menu-item {
|
|
90
|
-
color: @cancel-color !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ant-dropdown-menu-item-disabled {
|
|
94
|
-
color: @disabled-color !important;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
4
|
+
left: -175px;
|
|
97
5
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { faFileUser } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import { useNodeMenuContext } from "@voplus/morpho-org/es/controls/NodeMenu/state";
|
|
7
|
+
const ImportRelative = (props) => {
|
|
8
|
+
const { disabled, action } = props;
|
|
9
|
+
const context = useNodeMenuContext();
|
|
10
|
+
return observe(() => (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
11
|
+
React.createElement(FAIcon, { icon: faFileUser }),
|
|
12
|
+
React.createElement("span", null, "Import Relative"))));
|
|
13
|
+
function onClick() {
|
|
14
|
+
if (action)
|
|
15
|
+
action();
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export default ImportRelative;
|
|
19
|
+
//# sourceMappingURL=ImportRelative.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImportRelative.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAEnF,MAAM,cAAc,GAAG,CAAC,KAKvB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;QACvD,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;QAC5B,oDAA4B,CACpB,CACT,CAAC,CAAC;IACH,SAAS,OAAO;QACf,IAAI,MAAM;YAAE,MAAM,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Search: (props: {
|
|
3
|
+
/** disabled Button */
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
/** function of Click */
|
|
6
|
+
action?: ((context?: any) => void) | undefined;
|
|
7
|
+
onClickItem?: ((open?: boolean) => void) | undefined;
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default Search;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { faMagnifyingGlass } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import RiskMatchSearchDialog from "../../../../risk-match/components/RiskMatchSearchDialog";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { Button } from "antd";
|
|
7
|
+
import { useNodeMenuContext } from "@voplus/morpho-org/es/controls/NodeMenu/state";
|
|
8
|
+
const Search = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const [visible, setVisible] = useState(false);
|
|
11
|
+
const context = useNodeMenuContext();
|
|
12
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
13
|
+
React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
14
|
+
React.createElement(FAIcon, { icon: faMagnifyingGlass }),
|
|
15
|
+
React.createElement("span", null, "Search")),
|
|
16
|
+
visible && React.createElement(RiskMatchSearchDialog, { id: context.id, onCancel: () => setVisible(false) }))));
|
|
17
|
+
function onClick() {
|
|
18
|
+
props.onClickItem && props.onClickItem();
|
|
19
|
+
if (action)
|
|
20
|
+
return action();
|
|
21
|
+
if (context.id)
|
|
22
|
+
setVisible(!visible);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export default Search;
|
|
26
|
+
//# sourceMappingURL=Search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,qBAAqB,MAAM,yDAAyD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAEnF,MAAM,MAAM,GAAG,CAAC,KAOf,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;YACvD,oBAAC,MAAM,IAAC,IAAI,EAAE,iBAAiB,GAAI;YACnC,2CAAmB,CACX;QACR,OAAO,IAAI,oBAAC,qBAAqB,IAAC,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACxE,CACjB,CAAC,CAAC;IACH,SAAS,OAAO;QACf,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;QAEzC,IAAI,MAAM;YAAE,OAAO,MAAM,EAAE,CAAC;QAC5B,IAAI,OAAO,CAAC,EAAE;YAAE,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
declare const CLDADataBar: (props: {
|
|
3
3
|
/** id of clda */
|
|
4
4
|
id: string;
|
|
@@ -6,5 +6,5 @@ declare const CLDADataBar: (props: {
|
|
|
6
6
|
visible?: boolean | undefined;
|
|
7
7
|
/** props click function */
|
|
8
8
|
onClick?: ((key?: string) => void) | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
export default CLDADataBar;
|
|
@@ -3,34 +3,48 @@ import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { Button } from "antd";
|
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { faCircleEnvelope } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { useCLDAStore } from "../../../../../../data/CLDA";
|
|
7
6
|
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
8
|
-
import { useIncorporationCLDA } from "../../../../../../data/incorporation-clda";
|
|
7
|
+
import { useIncorporationCLDA, useIncorporationCLDAStore, } from "../../../../../../data/incorporation-clda";
|
|
9
8
|
import { useSendFormContext } from "@voplus/morpho-document-core/es/data/context/SendFormContext";
|
|
10
|
-
import CLDASendForm from "
|
|
9
|
+
import CLDASendForm from "@voplus/morpho-document/es/components/SendForm";
|
|
11
10
|
const SendCLDA = (props) => {
|
|
12
11
|
const { disabled, action } = props;
|
|
13
12
|
const asideContext = useAsideContentContext();
|
|
14
13
|
const context = useDocumentMenuContext();
|
|
15
|
-
const clda = useIncorporationCLDA(context.id);
|
|
16
|
-
const store =
|
|
14
|
+
const clda = useIncorporationCLDA(context.id, { reload: true, includes: "client-texts" });
|
|
15
|
+
const store = useIncorporationCLDAStore();
|
|
17
16
|
const sendForm = useSendFormContext();
|
|
18
17
|
const [visible, setVisible] = useState(false);
|
|
19
|
-
return observe(() =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
React.createElement(
|
|
24
|
-
|
|
18
|
+
return observe(() => {
|
|
19
|
+
var _a;
|
|
20
|
+
return (React.createElement(React.Fragment, null,
|
|
21
|
+
!clda.system && !clda.assistantStatus ? (React.createElement(React.Fragment, null,
|
|
22
|
+
React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
23
|
+
React.createElement(FAIcon, { icon: faCircleEnvelope }),
|
|
24
|
+
React.createElement("span", null, "Send CLDA")))) : null,
|
|
25
|
+
visible && (sendForm === null || sendForm === void 0 ? void 0 : sendForm.Type) === "Dialog" && (React.createElement(CLDASendForm, { name: "CLDA", openType: "Modal", defaultDescription: (_a = clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, onCancel: () => setVisible(false), onSend: onSend }))));
|
|
26
|
+
});
|
|
25
27
|
function onClick(e) {
|
|
28
|
+
var _a;
|
|
26
29
|
e.stopPropagation();
|
|
27
30
|
props.onClickItem && props.onClickItem();
|
|
28
31
|
(sendForm === null || sendForm === void 0 ? void 0 : sendForm.Type) === "Dialog"
|
|
29
32
|
? setVisible(true)
|
|
30
|
-
: asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(CLDASendForm, {
|
|
33
|
+
: asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(CLDASendForm, { name: "CLDA", defaultDescription: (_a = clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, onCancel: () => asideContext.closeAside(), onSend: onSend }), {
|
|
31
34
|
span: 9,
|
|
32
35
|
});
|
|
33
36
|
}
|
|
37
|
+
async function onSend(data) {
|
|
38
|
+
await store
|
|
39
|
+
.send(context.id, {
|
|
40
|
+
data: { Email: data.Message },
|
|
41
|
+
error: "message",
|
|
42
|
+
})
|
|
43
|
+
.then(() => {
|
|
44
|
+
setVisible(false);
|
|
45
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
|
|
46
|
+
});
|
|
47
|
+
}
|
|
34
48
|
};
|
|
35
49
|
export default SendCLDA;
|
|
36
50
|
//# sourceMappingURL=SendCLDA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendCLDA.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SendCLDA.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAA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,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FilterOption } from "@voplus/morpho-data";
|
|
3
2
|
import { IFilterState } from "@voplus/morpho-ui/es/data";
|
|
3
|
+
import React from "react";
|
|
4
4
|
/** TypeFilter的 State, 实现 IFilterState 接口 */
|
|
5
5
|
export declare class State implements IFilterState {
|
|
6
6
|
/** Types of document of filter */
|
|
@@ -11,7 +11,7 @@ export declare class State implements IFilterState {
|
|
|
11
11
|
get menus(): {
|
|
12
12
|
name: string;
|
|
13
13
|
value: string;
|
|
14
|
-
icon: JSX.Element;
|
|
14
|
+
icon: React.JSX.Element;
|
|
15
15
|
}[];
|
|
16
16
|
/** 视乎State内容,返回正确的FilterOption[]. 在Filter时,Context 会使用此属性replace Context内FilterOption的资料。 */
|
|
17
17
|
get filters(): FilterOption[];
|
package/es/modules/corporate/clda/pages/CLDAClientView/components/DigitalSigningStep/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const DigitalSigningStep: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const DigitalSigningStep: () => React.JSX.Element;
|
|
3
3
|
export default DigitalSigningStep;
|