@voplus/morpho-csp 4.0.33 → 4.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/es/components/CurrencyView/index.d.ts +1 -1
  2. package/es/components/Header/index.d.ts +1 -1
  3. package/es/components/NewTypeDropdown/index.d.ts +1 -1
  4. package/es/data/CLDA/metas.d.ts +2 -2
  5. package/es/data/clda-form/CLDAFormContent.d.ts +2 -2
  6. package/es/data/clda-form/interfaces.d.ts +10 -0
  7. package/es/data/clda-form/types.d.ts +10 -0
  8. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js +2 -6
  9. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js.map +1 -1
  10. package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.d.ts +2 -2
  11. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.d.ts +2 -2
  12. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.d.ts +6 -12
  13. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +24 -87
  14. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
  15. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.less +1 -93
  16. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.d.ts +8 -0
  17. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js +19 -0
  18. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js.map +1 -0
  19. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.d.ts +9 -0
  20. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js +26 -0
  21. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js.map +1 -0
  22. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.d.ts +2 -0
  23. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.js +3 -0
  24. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.js.map +1 -0
  25. package/es/modules/corporate/clda/controls/CLDADataBar/index.d.ts +2 -2
  26. package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js +26 -12
  27. package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js.map +1 -1
  28. package/es/modules/corporate/clda/controls/filters/CLDASigningModeFilter/state.d.ts +2 -2
  29. package/es/modules/corporate/clda/pages/CLDAClientView/components/DigitalSigningStep/index.d.ts +2 -2
  30. package/es/modules/corporate/company/components/InlineEditCountry/index.d.ts +2 -2
  31. package/es/modules/corporate/company/components/InlineEditType/index.d.ts +2 -2
  32. package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js +6 -7
  33. package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js.map +1 -1
  34. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.d.ts +8 -13
  35. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js +28 -79
  36. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -1
  37. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.d.ts +8 -0
  38. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.js +38 -0
  39. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.js.map +1 -0
  40. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.d.ts +9 -0
  41. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.js +33 -0
  42. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.js.map +1 -0
  43. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.d.ts +2 -0
  44. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.js +3 -0
  45. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.js.map +1 -0
  46. package/es/modules/corporate/company/controls/CorporateMenu/index.d.ts +5 -12
  47. package/es/modules/corporate/company/controls/CorporateMenu/index.js +19 -96
  48. package/es/modules/corporate/company/controls/CorporateMenu/index.js.map +1 -1
  49. package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.d.ts +8 -0
  50. package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.js +18 -0
  51. package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.js.map +1 -0
  52. package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.d.ts +1 -1
  53. package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js +2 -2
  54. package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js.map +1 -1
  55. package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.d.ts +2 -2
  56. package/es/modules/corporate/company/officer-register/components/PositionSelect/index.d.ts +2 -2
  57. package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js +5 -11
  58. package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js.map +1 -1
  59. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +2 -2
  60. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.d.ts +2 -2
  61. package/es/modules/corporate/components/Statement/index.d.ts +2 -2
  62. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +2 -2
  63. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.d.ts +5 -11
  64. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js +4 -46
  65. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js.map +1 -1
  66. package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.d.ts +2 -2
  67. package/es/modules/corporate/legal-generation/components/AGM/Fields.d.ts +2 -2
  68. package/es/modules/corporate/legal-generation/components/AGM/Form.d.ts +2 -2
  69. package/es/modules/corporate/legal-generation/components/AGMNomineeStatement/index.d.ts +2 -2
  70. package/es/modules/corporate/legal-generation/components/AgentAppointment/Fields.d.ts +2 -2
  71. package/es/modules/corporate/legal-generation/components/AgentAppointment/Form.d.ts +2 -2
  72. package/es/modules/corporate/legal-generation/components/AppointOfficer/index.d.ts +2 -2
  73. package/es/modules/corporate/legal-generation/components/BankOpening/Fields.d.ts +2 -2
  74. package/es/modules/corporate/legal-generation/components/BankOpening/Form.d.ts +2 -2
  75. package/es/modules/corporate/legal-generation/components/ChangeAddress/Fields.d.ts +2 -2
  76. package/es/modules/corporate/legal-generation/components/ChangeAddress/Form.d.ts +2 -2
  77. package/es/modules/corporate/legal-generation/components/ChangeCompanyName/index.d.ts +2 -2
  78. package/es/modules/corporate/legal-generation/components/ChangeFYE/Fields.d.ts +2 -2
  79. package/es/modules/corporate/legal-generation/components/ChangeFYE/Form.d.ts +2 -2
  80. package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Fields.d.ts +2 -2
  81. package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Form.d.ts +2 -2
  82. package/es/modules/corporate/legal-generation/components/ContractAgreement/index.d.ts +2 -2
  83. package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.d.ts +2 -2
  84. package/es/modules/corporate/legal-generation/components/DispenseAGM/Fields.d.ts +2 -2
  85. package/es/modules/corporate/legal-generation/components/DispenseAGM/Form.d.ts +2 -2
  86. package/es/modules/corporate/legal-generation/components/EmptyResolution/index.d.ts +2 -2
  87. package/es/modules/corporate/legal-generation/components/Footer/index.d.ts +2 -2
  88. package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Fields.d.ts +2 -2
  89. package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Form.d.ts +2 -2
  90. package/es/modules/corporate/legal-generation/components/IssueShares/Fields.d.ts +2 -2
  91. package/es/modules/corporate/legal-generation/components/IssueShares/Form.d.ts +2 -2
  92. package/es/modules/corporate/legal-generation/components/NomineeAppointment/Fields.d.ts +2 -2
  93. package/es/modules/corporate/legal-generation/components/NomineeAppointment/Form.d.ts +2 -2
  94. package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Fields.d.ts +2 -2
  95. package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Form.d.ts +2 -2
  96. package/es/modules/corporate/legal-generation/components/NoticeOfResolution/index.d.ts +2 -2
  97. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.d.ts +2 -2
  98. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Form.d.ts +2 -2
  99. package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.d.ts +2 -2
  100. package/es/modules/corporate/legal-generation/components/ResignationLetter/Form.d.ts +2 -2
  101. package/es/modules/corporate/legal-generation/components/SettingDialog/index.d.ts +2 -2
  102. package/es/modules/corporate/legal-generation/components/ShareReduction/Fields.d.ts +2 -2
  103. package/es/modules/corporate/legal-generation/components/ShareReduction/Form.d.ts +2 -2
  104. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.d.ts +2 -2
  105. package/es/modules/corporate/legal-generation/components/ShareTransfer/Form.d.ts +2 -2
  106. package/es/modules/corporate/legal-generation/components/StrikeOff/index.d.ts +2 -2
  107. package/es/modules/corporate/legal-generation/components/SubmitButton/index.d.ts +2 -2
  108. package/es/modules/corporate/legal-generation/fields/AGMNomineeStatementFields.d.ts +2 -2
  109. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.d.ts +2 -2
  110. package/es/modules/corporate/legal-generation/fields/ChangeCompanyNameFields.d.ts +2 -2
  111. package/es/modules/corporate/legal-generation/fields/ContractAgreementFields.d.ts +2 -2
  112. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.d.ts +2 -2
  113. package/es/modules/corporate/legal-generation/fields/EmptyResolutionFields.d.ts +2 -2
  114. package/es/modules/corporate/legal-generation/fields/NoticeOfResolutionFields.d.ts +2 -2
  115. package/es/modules/corporate/legal-generation/fields/StrikeOffFields.d.ts +2 -2
  116. package/es/modules/corporate/legal-generation/form/AGMNomineeStatementForm.d.ts +2 -2
  117. package/es/modules/corporate/legal-generation/form/AppointOfficerForm.d.ts +2 -2
  118. package/es/modules/corporate/legal-generation/form/ChangeCompanyNameForm.d.ts +2 -2
  119. package/es/modules/corporate/legal-generation/form/ContractAgreementForm.d.ts +2 -2
  120. package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.d.ts +2 -2
  121. package/es/modules/corporate/legal-generation/form/EmptyResolutionForm.d.ts +2 -2
  122. package/es/modules/corporate/legal-generation/form/NoticeOfResolutionForm.d.ts +2 -2
  123. package/es/modules/corporate/legal-generation/form/StrikeOffForm.d.ts +2 -2
  124. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.d.ts +2 -2
  125. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.d.ts +2 -2
  126. package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.d.ts +2 -2
  127. package/es/modules/self-registration/clda-form/IncorporationFormRoutes.d.ts +2 -2
  128. package/es/modules/self-registration/clda-form/Upload/index.d.ts +2 -2
  129. package/es/modules/self-registration/clda-form/incorporation/agm/index.js +41 -5
  130. package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
  131. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +32 -4
  132. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
  133. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +2 -8
  134. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
  135. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +2 -7
  136. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
  137. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +2 -6
  138. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -1
  139. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +2 -8
  140. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
  141. package/es/modules/self-registration/components/Card/index.d.ts +2 -2
  142. package/es/modules/self-registration/components/CheckSection/index.d.ts +1 -1
  143. package/es/modules/self-registration/controls/Blink/index.d.ts +2 -2
  144. package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +2 -2
  145. package/es/modules/self-registration/controls/Section/index.d.ts +1 -1
  146. package/es/modules/self-registration/controls/Tips/BusinessActivityTip.d.ts +2 -2
  147. package/es/modules/self-registration/controls/Tips/BusinessNameTip.d.ts +2 -2
  148. package/es/modules/self-registration/controls/Tips/CapitalTip.d.ts +2 -2
  149. package/es/modules/self-registration/controls/Tips/DirectorTip.d.ts +2 -2
  150. package/es/modules/self-registration/controls/Tips/FYETip.d.ts +2 -2
  151. package/es/modules/self-registration/controls/Tips/IncorporationTip.d.ts +2 -2
  152. package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.d.ts +2 -2
  153. package/es/modules/self-registration/controls/Tips/SecretaryTip.d.ts +2 -2
  154. package/es/modules/self-registration/controls/Tips/ShareholderTip.d.ts +2 -2
  155. package/es/modules/self-registration/controls/Tips/SharesTip.d.ts +2 -2
  156. package/es/modules/self-registration/controls/Tips/Tip.d.ts +1 -1
  157. package/es/modules/self-registration/controls/Tips/vgb/BusinessNameTip.d.ts +2 -2
  158. package/es/modules/self-registration/controls/Tips/vgb/CapitalTip.d.ts +2 -2
  159. package/es/modules/self-registration/controls/Tips/vgb/RecordAddressTip.d.ts +2 -2
  160. package/es/modules/self-registration/controls/Tips/vgb/TradingAddressTip.d.ts +2 -2
  161. package/es/modules/self-registration/shopping-cart/Paid.d.ts +2 -2
  162. package/es/obsolete/order/controls/IncorporationStatusLabel/index.d.ts +2 -2
  163. package/es/routes.d.ts +27 -33
  164. package/es/routes.js +0 -13
  165. package/es/routes.js.map +1 -1
  166. package/es/services/CLDAActivityLogRenderer.d.ts +1 -1
  167. package/package.json +1 -1
  168. package/es/data/account/AccountStore.d.ts +0 -17
  169. package/es/data/account/AccountStore.js +0 -58
  170. package/es/data/account/AccountStore.js.map +0 -1
  171. package/es/data/account/hooks.d.ts +0 -9
  172. package/es/data/account/hooks.js +0 -19
  173. package/es/data/account/hooks.js.map +0 -1
  174. package/es/data/account/interfaces.d.ts +0 -15
  175. package/es/data/account/interfaces.js +0 -2
  176. package/es/data/account/interfaces.js.map +0 -1
  177. package/es/modules/account/components/AccountOrganizations/index.d.ts +0 -6
  178. package/es/modules/account/components/AccountOrganizations/index.js +0 -63
  179. package/es/modules/account/components/AccountOrganizations/index.js.map +0 -1
  180. package/es/modules/account/components/AccountOrganizations/index.less +0 -26
  181. package/es/modules/account/components/AccountPropertiesView/index.d.ts +0 -6
  182. package/es/modules/account/components/AccountPropertiesView/index.js +0 -20
  183. package/es/modules/account/components/AccountPropertiesView/index.js.map +0 -1
  184. package/es/modules/account/components/AccountPropertiesView/index.less +0 -10
  185. package/es/modules/account/pages/AccountDefaultView/index.d.ts +0 -4
  186. package/es/modules/account/pages/AccountDefaultView/index.js +0 -33
  187. package/es/modules/account/pages/AccountDefaultView/index.js.map +0 -1
  188. package/es/modules/account/pages/AccountDefaultView/index.less +0 -8
  189. package/es/modules/corporate/clda/components/CLDASendForm/index.d.ts +0 -12
  190. package/es/modules/corporate/clda/components/CLDASendForm/index.js +0 -43
  191. package/es/modules/corporate/clda/components/CLDASendForm/index.js.map +0 -1
  192. package/es/modules/corporate/clda/components/CLDASendForm/index.less +0 -48
  193. package/es/modules/corporate/clda/components/CLDASendForm/state.d.ts +0 -4
  194. package/es/modules/corporate/clda/components/CLDASendForm/state.js +0 -17
  195. package/es/modules/corporate/clda/components/CLDASendForm/state.js.map +0 -1
  196. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.less +0 -97
  197. package/es/modules/corporate/company/controls/CorporateMenu/index.less +0 -97
  198. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.less +0 -54
@@ -7,7 +7,7 @@ declare const CurrencyView: {
7
7
  className?: string | undefined;
8
8
  onChange?: ((currency: string) => void) | undefined;
9
9
  style?: React.CSSProperties | undefined;
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
11
11
  defaultProps: {
12
12
  style: {
13
13
  minWidth: string;
@@ -3,5 +3,5 @@ import React from "react";
3
3
  declare const Header: (props: {
4
4
  text: string;
5
5
  children?: React.ReactNode;
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  export default Header;
@@ -3,5 +3,5 @@ declare const NewTypeDropdown: (props: {
3
3
  menus: string[];
4
4
  onSelect?: ((type: string) => void) | undefined;
5
5
  style?: React.CSSProperties | undefined;
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  export default NewTypeDropdown;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
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
- /// <reference types="react" />
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
  }
@@ -62,10 +62,18 @@ export interface IAGMDeclaration {
62
62
  s199RecordsKept?: boolean;
63
63
  no205Notice?: boolean;
64
64
  auditExempt?: boolean;
65
+ dormant?: boolean;
66
+ fsExempt?: boolean;
65
67
  }
66
68
  export interface INewAddressDetails {
67
69
  newAddress?: IAddress;
68
70
  }
71
+ export interface INewNameDetails {
72
+ newName?: string;
73
+ }
74
+ export interface INewFYEDetailes {
75
+ newFYE?: string;
76
+ }
69
77
  export interface IBankOpeningDetails {
70
78
  bankOpenings?: IBankOpening[];
71
79
  }
@@ -184,6 +192,8 @@ export interface ICompanyGeneralFormEditOptions {
184
192
  };
185
193
  contacts?: IFormPeopleOptions[];
186
194
  newAddressDetails?: INewAddressDetails;
195
+ newNameDetails?: INewNameDetails;
196
+ newFYEDetails?: INewFYEDetailes;
187
197
  newOfficerAppointments?: INewOfficerAppointmentDetails;
188
198
  removeOfficerDetails?: IRemoveOfficerDetails;
189
199
  transferDetails?: ITransferDetails;
@@ -50,10 +50,18 @@ export declare type AGMDeclaration = {
50
50
  S199RecordsKept?: boolean;
51
51
  No205Notice?: boolean;
52
52
  AuditExempt?: boolean;
53
+ Dormant?: boolean;
54
+ FSExempt?: boolean;
53
55
  };
54
56
  export declare type NewAddressDetails = {
55
57
  NewAddress?: Address;
56
58
  };
59
+ export declare type NewNameDetails = {
60
+ NewName?: string;
61
+ };
62
+ export declare type NewFYEDetails = {
63
+ NewFYE?: string;
64
+ };
57
65
  export declare type BankOpeningDetails = {
58
66
  BankOpenings?: BankOpening[];
59
67
  };
@@ -243,6 +251,8 @@ export declare type CompanyGeneralFormEditOptions = {
243
251
  };
244
252
  Contacts?: FormPeopleOptions[];
245
253
  NewAddressDetails?: NewAddressDetails;
254
+ NewNameDetails?: NewNameDetails;
255
+ NewFYEDetails?: NewFYEDetails;
246
256
  NewOfficerAppointments?: NewOfficerAppointmentDetails;
247
257
  RemoveOfficerDetails?: RemoveOfficerDetails;
248
258
  TransferDetails?: TransferDetails;
@@ -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, footer: React.createElement(Row, { justify: "end" },
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,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,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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,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
+ {"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
- /// <reference types="react" />
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
- /// <reference types="react" />
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
- (props: {
4
- id: string;
5
- unitId: string;
6
- icon?: React.ReactNode;
7
- className?: string;
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;
@@ -1,100 +1,37 @@
1
- import React, { useState } from "react";
2
- import { useLayout } from "@voplus/morpho-data";
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, useRiskProfile } from "../../../../../../data/risk-profile";
6
- import { faTrashAlt, faCircleEllipsis, faMagnifyingGlass, faTableLayout, faFileUser, faFolderUser, faBuilding, faPanelEws, faPaste, faChartUser, faArrowUpRightFromSquare, } from "@fortawesome/pro-light-svg-icons";
7
- import { observe, useAsideContentContext } from "@voplus/morpho-ui";
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 classnames from "classnames";
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
- const layout = useLayout();
23
- const asideContext = useAsideContentContext();
24
- const [searchVisible, setSearchVisible] = useState(false);
25
- const pasteListVisible = move.info.length ? {} : { visible: false };
26
- return observe(() => (React.createElement(React.Fragment, null,
27
- React.createElement(Dropdown, { placement: "bottomRight", dropdownRender: () => (React.createElement(Menu, { className: classnames(styles["risk-profile-menu"], props.className) },
28
- !document.system &&
29
- ((!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
30
- document.readonly) ? (React.createElement(Menu.Item, { key: "Paste", disabled: (!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
31
- document.readonly, onClick: onPaste },
32
- React.createElement(FAIcon, { icon: faPaste }),
33
- React.createElement("span", { className: "type-name" }, "Paste"))) : (React.createElement(Popover, { placement: "left", content: React.createElement(PasteList, { move: move }), overlayStyle: { width: "400px" }, ...pasteListVisible },
34
- React.createElement(Menu.Item, { key: "Paste", disabled: (!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
35
- document.readonly, onClick: onPaste },
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,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EACN,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,wBAAwB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,qBAAqB,MAAM,sDAAsD,CAAC;AACzF,OAAO,EACN,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,GACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,SAAS,MAAM,+CAA+C,CAAC;AACtE,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,eAAe,GAAG,CAAC,KAMxB,EAAE,EAAE;IACJ,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,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AAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,EAAE;YACzC,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;YACzC,OAAO;SACP;QACD,IAAI,KAAK,CAAC,MAAM,EAAE;YACjB,MAAM,QAAQ,CAAC,KAAK,CACnB,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACtB,CAAC;YACF,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;SACpC;IACF,CAAC;IAED,SAAS,QAAQ;QAChB,6BAA6B;QAC7B,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;oBAC9B,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;oBAC5B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;gBACH,mBAAmB;gBACnB,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;oBAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;gBACjF,OAAO;YACR,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,gBAAgB,GAAI;CACxC,CAAC;AAEF,eAAe,eAAe,CAAC"}
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,O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AAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,97 +1,5 @@
1
1
  @import "~@voplus/morpho-theme/styles/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
- :global {
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,8 @@
1
+ /// <reference types="react" />
2
+ declare const ImportRelative: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default ImportRelative;
@@ -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,2 @@
1
+ export { default as Search } from "./Search";
2
+ export { default as ImportRelative } from "./ImportRelative";
@@ -0,0 +1,3 @@
1
+ export { default as Search } from "./Search";
2
+ export { default as ImportRelative } from "./ImportRelative";
3
+ //# sourceMappingURL=index.js.map
@@ -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
- /// <reference types="react" />
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 "../../../components/CLDASendForm";
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 = useCLDAStore();
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(() => (React.createElement(React.Fragment, null,
20
- !clda.system && !clda.assistantStatus ? (React.createElement(React.Fragment, null,
21
- React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
22
- React.createElement(FAIcon, { icon: faCircleEnvelope }),
23
- React.createElement("span", null, "Send CLDA")))) : null,
24
- visible && (sendForm === null || sendForm === void 0 ? void 0 : sendForm.Type) === "Dialog" && (React.createElement(CLDASendForm, { id: context.id, openType: "Modal", onCancel: () => setVisible(false) })))));
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, { id: context.id, onCancel: () => asideContext.closeAside() }), {
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