@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
@@ -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,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAE5D,MAAM,QAAQ,GAAG,CAAC,KAOjB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,IAAI,GAAG,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,kBAAkB,EAAE,CAAC;IAEtC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAA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AC7B,KAAK,EAAE,SAAS;SAChB,CAAC;aACD,IAAI,CAAC,GAAG,EAAE;YACV,UAAU,CAAC,KAAK,CAAC,CAAC;YAClB,YAAY,aAAZ,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[];
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const DigitalSigningStep: () => JSX.Element;
1
+ import React from "react";
2
+ declare const DigitalSigningStep: () => React.JSX.Element;
3
3
  export default DigitalSigningStep;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  declare const InlineEditCountry: (props: {
3
3
  country?: string | undefined;
4
4
  /** 只显示list内的country */
5
5
  list?: string[] | undefined;
6
6
  onChange?: ((country?: string) => void) | undefined;
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
8
8
  export default InlineEditCountry;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  declare const InlineEditType: (props: {
3
3
  type: string;
4
4
  list: string[];
5
5
  readonly?: boolean | undefined;
6
6
  onSave?: ((value?: string) => Promise<void>) | undefined;
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
8
8
  export default InlineEditType;
@@ -1,4 +1,4 @@
1
- import { Button, Modal, Row, Space, message } from "antd";
1
+ import { Modal, message } from "antd";
2
2
  import React, { useState } from "react";
3
3
  import SelectControllerList from "../SelectControllerList";
4
4
  import { observe } from "@voplus/morpho-ui";
@@ -8,15 +8,14 @@ const SelectControllerFormDialog = (props) => {
8
8
  const store = useControllerStore();
9
9
  const [ids, setIds] = useState([]);
10
10
  const [loading, setLoading] = useState(false);
11
- return observe(() => (React.createElement(Modal, { title: "Select Controller Form", className: styles["select-controller-form-dialog"], open: true, closable: false, footer: React.createElement(Row, { justify: "end" },
12
- React.createElement(Space, null,
13
- React.createElement(Button, { onClick: onCancel }, "Cancel"),
14
- React.createElement(Button, { loading: loading, type: "primary", onClick: onSubmit }, "Submit"))), onCancel: props.onCancel },
11
+ return observe(() => (React.createElement(Modal, { title: "Select Controller Form", className: styles["select-controller-form-dialog"], open: true, okButtonProps: {
12
+ loading: loading,
13
+ }, closable: false, okText: "Submit", onCancel: onCancel, onOk: onSubmit },
15
14
  React.createElement(SelectControllerList, { parentId: props.parentId, onCheckedItem: (ids) => setIds(ids) }))));
16
15
  function onCancel() {
16
+ var _a;
17
17
  setIds([]);
18
- if (props.onCancel)
19
- props.onCancel();
18
+ (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
20
19
  }
21
20
  async function onSubmit() {
22
21
  if (!ids.length) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/SelectControllerForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,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CAAC,CAAC;QACjB,MAAM,KAAK,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACvE,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,QAAQ,EAAE,CAAC;IACZ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/SelectControllerForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,0BAA0B,GAAG,CAAC,KAInC,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,wBAAwB,EAC9B,SAAS,EAAE,MAAM,CAAC,+BAA+B,CAAC,EAClD,IAAI,QACJ,aAAa,EAAE;YACd,OAAO,EAAE,OAAO;SAChB,EACD,QAAQ,EAAE,KAAK,EACf,MAAM,EAAC,QAAQ,EACf,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,QAAQ;QAEd,oBAAC,oBAAoB,IAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAI,CAChF,CACR,CAAC,CAAC;IAEH,SAAS,QAAQ;;QAChB,MAAM,CAAC,EAAE,CAAC,CAAC;QACX,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;YAChB,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;YAC3C,OAAO;SACP;QACD,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,MAAM,KAAK,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACvE,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,QAAQ,EAAE,CAAC;IACZ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -2,17 +2,12 @@ import React from "react";
2
2
  import { MemberStore } from "../../../../../data/member";
3
3
  import { OfficerStore } from "../../../../../data/officer";
4
4
  import { ControllerStore } from "../../../../../data/controller";
5
- declare const CompanyRegisterMenu: {
6
- (props: {
7
- id: string;
8
- unitId: string;
9
- store: MemberStore | OfficerStore | ControllerStore;
10
- icon?: React.ReactNode;
11
- className?: string;
12
- closeAside?: boolean;
13
- }): JSX.Element;
14
- defaultProps: {
15
- icon: JSX.Element;
16
- };
17
- };
5
+ declare const CompanyRegisterMenu: (props: {
6
+ id: string;
7
+ unitId: string;
8
+ store: MemberStore | OfficerStore | ControllerStore;
9
+ icon?: React.ReactNode;
10
+ className?: string;
11
+ closeAside?: boolean;
12
+ }) => JSX.Element;
18
13
  export default CompanyRegisterMenu;
@@ -1,93 +1,42 @@
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";
3
+ import { Paste, PasteShortcut } from "./items";
4
4
  import { useUnit } from "@voplus/morpho-org";
5
- import { faTrashAlt, faCircleEllipsis, faUserEdit, faFolderUser, faBuilding, faPanelEws, faPaste, faAddressCard, faArrowUpRightFromSquare, faChartUser, } from "@fortawesome/pro-light-svg-icons";
5
+ import { faAngleLeft, faBuilding, faPanelEws, faAddressCard, faChartUser, } from "@fortawesome/pro-light-svg-icons";
6
6
  import { observe, useAsideContentContext } from "@voplus/morpho-ui";
7
7
  import { useListDataContext } from "@voplus/morpho-ui/es/data";
8
8
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
9
- import { useDocumentStore, useMoveNodeInfoService, useDocument, } from "@voplus/morpho-document-core";
10
- import PasteList from "@voplus/morpho-document/es/controls/PasteList";
11
- import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
12
9
  import Routes from "../../../../../routes";
13
- import classnames from "classnames";
14
- import styles from "./index.less";
10
+ import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
11
+ import { Access, Delete, Open } from "@voplus/morpho-org/es/controls/NodeMenu/items";
15
12
  const CompanyRegisterMenu = (props) => {
16
- const document = useDocument(props.id);
17
- const move = useMoveNodeInfoService();
18
- const docStore = useDocumentStore();
19
13
  const unit = useUnit(props.unitId);
20
- const layout = useLayout();
21
14
  const dataState = useListDataContext();
22
15
  const asideContext = useAsideContentContext();
23
- const [visible, setVisible] = useState(false);
24
- const pasteListVisible = move.info.length ? {} : { open: false };
25
- return observe(() => (React.createElement(React.Fragment, null,
26
- React.createElement(Dropdown, { placement: "bottomRight", dropdownRender: () => (React.createElement(Menu, { className: classnames(styles["company-registere-menu"], props.className) },
27
- !document.system &&
28
- ((!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
29
- document.readonly) ? (React.createElement(Menu.Item, { key: "Paste", disabled: (!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
30
- document.readonly, onClick: onPaste },
31
- React.createElement(FAIcon, { icon: faPaste }),
32
- React.createElement("span", { className: "type-name" }, "Paste"))) : (React.createElement(Popover, { placement: "left", content: React.createElement(PasteList, { move: move }), overlayStyle: { width: "400px" }, ...pasteListVisible },
33
- React.createElement(Menu.Item, { key: "Paste", disabled: (!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
34
- document.readonly, onClick: onPaste },
35
- React.createElement(FAIcon, { icon: faPaste }),
36
- React.createElement("span", { className: "type-name" }, "Paste")))),
37
- React.createElement(Menu.Item, { key: "Access", onClick: () => setVisible(!visible) },
38
- React.createElement(FAIcon, { icon: faUserEdit }),
39
- React.createElement("span", { className: "type-name" }, "Access")),
40
- React.createElement(Menu.SubMenu, { key: "Contact", title: "Contact", popupClassName: styles["company-registere-sub-menu"], icon: React.createElement(FAIcon, { icon: faFolderUser }) },
41
- React.createElement(Menu.Item, { key: "Open", disabled: !props.unitId, onClick: () => layout.history.push(`/units/${props.unitId}`) },
42
- React.createElement(FAIcon, { icon: faArrowUpRightFromSquare }),
43
- React.createElement("span", { className: "type-name" }, "Open")),
44
- (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)) },
45
- React.createElement(FAIcon, { icon: faBuilding }),
46
- React.createElement("span", { className: "type-name" }, "View Corporate"))),
47
- React.createElement(Menu.Item, { key: "ViewRiskProfile", disabled: !props.unitId, onClick: () => layout.history.push(Routes.UnitRiskProfilePage.getUrl(props.unitId)) },
48
- React.createElement(FAIcon, { icon: faAddressCard }),
49
- React.createElement("span", { className: "type-name" }, "View Risk Profile")),
50
- React.createElement(Menu.Item, { key: "ViewCustomer", disabled: !props.unitId, onClick: () => layout.history.push(`/customer-empty/${props.unitId}`) },
51
- React.createElement(FAIcon, { icon: faPanelEws }),
52
- React.createElement("span", { className: "type-name" }, "View Customer")),
53
- React.createElement(Menu.Item, { key: "Agent", disabled: !props.unitId, onClick: () => layout.history.push(`/agent-empty/${props.unitId}`) },
54
- React.createElement(FAIcon, { icon: faChartUser }),
55
- React.createElement("span", { className: "type-name" }, "View Agent"))),
56
- React.createElement(Menu.Item, { key: "Delete", onClick: onDelete },
57
- React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
58
- React.createElement("span", { className: "type-name delete" }, "Delete")))) },
59
- React.createElement(Button, { size: "small", type: "link" }, props.icon)),
60
- visible && React.createElement(PermissionModal, { id: props.id, onChange: () => setVisible(!visible) }))));
61
- async function onPaste() {
62
- const nodes = move.findRemove(["Document"]);
63
- if (nodes.some((x) => x.id === props.id)) {
64
- message.warning("Cannot move to itself");
65
- return;
66
- }
67
- if (nodes.length) {
68
- await docStore.paste(props.id, nodes.map((x) => x.id));
69
- message.success("Document pasted.");
70
- }
71
- }
72
- function onDelete() {
73
- /** 如果文件下有子文件, 询问是否删除所有子文件 */
74
- Modal.confirm({
75
- title: "Do you want to delete this item?",
76
- async onOk() {
77
- /** 删除后是否关闭Aside */
78
- await props.store.delete([props.id], { error: "message" }).then((res) => {
79
- if (!res)
80
- return;
81
- dataState.remove(props.id);
82
- if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
83
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
84
- });
85
- },
16
+ return observe(() => (React.createElement(NodeMenu, { id: props.id, icon: props.icon, menus: ({ onClickItem }) => (React.createElement(React.Fragment, null,
17
+ React.createElement(Paste, null),
18
+ React.createElement(PasteShortcut, null),
19
+ React.createElement(Access, { onClickItem: onClickItem }),
20
+ React.createElement(Delete, { action: onDelete }),
21
+ React.createElement(Dropdown, { dropdownRender: () => (React.createElement("div", { className: "sub-node-menu" },
22
+ React.createElement(Open, { disabled: !props.unitId, url: `/units/${props.unitId}` }),
23
+ (unit === null || unit === void 0 ? void 0 : unit.type) === "Organization" && (React.createElement(Open, { title: "View Corporate", icon: faBuilding, disabled: !props.unitId, url: Routes.UnitCorporatePage.getUrl(props.unitId) })),
24
+ React.createElement(Open, { title: "View Risk Profile", icon: faAddressCard, disabled: !props.unitId, url: Routes.UnitRiskProfilePage.getUrl(props.unitId) }),
25
+ React.createElement(Open, { title: "View Customer", icon: faPanelEws, disabled: !props.unitId, url: `/customer-empty/${props.unitId}` }),
26
+ React.createElement(Open, { title: "View Agent", icon: faChartUser, disabled: !props.unitId, url: `/agent-empty/${props.unitId}` }))) },
27
+ React.createElement(Button, { type: "link" },
28
+ React.createElement(FAIcon, { icon: faAngleLeft }),
29
+ React.createElement("span", null, "Contact"))))) })));
30
+ async function onDelete() {
31
+ /** 删除后是否关闭Aside */
32
+ await props.store.delete([props.id], { error: "message" }).then((res) => {
33
+ if (!res)
34
+ return;
35
+ dataState.remove(props.id);
36
+ if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
37
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
86
38
  });
87
39
  }
88
40
  };
89
- CompanyRegisterMenu.defaultProps = {
90
- icon: React.createElement(FAIcon, { icon: faCircleEllipsis }),
91
- };
92
41
  export default CompanyRegisterMenu;
93
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CompanyRegisterMenu/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,EACN,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,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YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;gBAClF,CAAC,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,gBAAgB,GAAI;CACxC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CompanyRegisterMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACN,WAAW,EACX,UAAU,EACV,UAAU,EACV,aAAa,EACb,WAAW,GACX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,+CAA+C,CAAC;AAErF,MAAM,mBAAmB,GAAG,CAAC,KAO5B,EAAE,EAAE;IACJ,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAC;IACvC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,OAAO,OAAO,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ClB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,CAAC,KAAK,CAAC,MAAM,EACvB,GAAG,EAAE,gBAAgB,KAAK,CAAC,MAAM,EAAE,GAClC,CACG,CACN;gBAED,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM;oBAClB,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;oBAC7B,4CAAoB,CACZ,CACC,CACT,CACH,GACA,CACF,CAAC,CAAC;IAEH,KAAK,UAAU,QAAQ;QACtB,mBAAmB;QACnB,MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACvE,IAAI,CAAC,GAAG;gBAAE,OAAO;YACjB,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC3B,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;gBAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;QAClF,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const Paste: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default Paste;
@@ -0,0 +1,38 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Button, message, Popover } from "antd";
4
+ import { useNodeMenuContext } from "@voplus/morpho-org/es/controls/NodeMenu/state";
5
+ import { useDocumentStore, useMoveNodeInfoService, useDocument, } from "@voplus/morpho-document-core";
6
+ import { faPaste } from "@fortawesome/pro-light-svg-icons";
7
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
8
+ import PasteList from "@voplus/morpho-org/es/controls/PasteList";
9
+ const Paste = (props) => {
10
+ const { disabled, action } = props;
11
+ const move = useMoveNodeInfoService();
12
+ const context = useNodeMenuContext();
13
+ const docStore = useDocumentStore();
14
+ const document = useDocument(context.id);
15
+ const pasteListVisible = move.info.length ? {} : { open: false };
16
+ return observe(() => (React.createElement("div", null, !document.system && (React.createElement(Popover, { placement: "left", content: React.createElement(PasteList, { move: move }), overlayStyle: { width: "400px" }, ...pasteListVisible },
17
+ React.createElement(Button, { type: "link", disabled: disabled ||
18
+ (!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
19
+ document.readonly, onClick: onClick },
20
+ React.createElement(FAIcon, { icon: faPaste }),
21
+ React.createElement("span", null, "Paste")))))));
22
+ function onClick() {
23
+ action ? action() : onPaste();
24
+ }
25
+ async function onPaste() {
26
+ const nodes = move.findRemove(["Document"]);
27
+ if (nodes.some((x) => x.id === context.id)) {
28
+ message.warning("Cannot move to itself");
29
+ return;
30
+ }
31
+ if (nodes.length) {
32
+ await docStore.paste(context.id, nodes.map((x) => x.id));
33
+ message.success("Document pasted.");
34
+ }
35
+ }
36
+ };
37
+ export default Paste;
38
+ //# sourceMappingURL=Paste.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Paste.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EACN,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,GACX,MAAM,8BAA8B,CAAC;AACtC,O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,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK,UAAU,OAAO;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QAC5C,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,CAAC,EAAE;YAC3C,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;YACzC,OAAO;SACP;QACD,IAAI,KAAK,CAAC,MAAM,EAAE;YACjB,MAAM,QAAQ,CAAC,KAAK,CACnB,OAAO,CAAC,EAAE,EACV,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;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare type PasteProps = {
3
+ /** disabled Button */
4
+ disabled?: boolean;
5
+ /** function of Click */
6
+ action?: (context?: any) => void;
7
+ };
8
+ declare const PasteShortcut: (props: PasteProps) => JSX.Element;
9
+ export default PasteShortcut;
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import { Button, Popover, message } from "antd";
3
+ import { useDocument, useDocumentStore, useMoveNodeInfoService, } from "@voplus/morpho-document-core";
4
+ import { useNodeMenuContext } from "@voplus/morpho-org/es/controls/NodeMenu/state";
5
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
+ import { faShare } from "@fortawesome/pro-light-svg-icons";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import PasteList from "@voplus/morpho-org/es/controls/PasteList";
9
+ const PasteShortcut = (props) => {
10
+ const { disabled, action } = props;
11
+ const context = useNodeMenuContext();
12
+ const move = useMoveNodeInfoService();
13
+ const store = useDocumentStore();
14
+ const document = useDocument(context.id);
15
+ const pasteListVisible = move.info.length ? {} : { open: false };
16
+ return observe(() => (React.createElement("div", null, !document.system && (React.createElement(Popover, { placement: "left", content: React.createElement(PasteList, { move: move, headerTitle: "Paste Shortcut List" }), overlayStyle: { width: "400px" }, ...pasteListVisible },
17
+ React.createElement(Button, { type: "link", disabled: disabled ||
18
+ (!move.hasTypes(["Document"]) && store.copyIds.length === 0) ||
19
+ document.readonly, onClick: pasteShortcut },
20
+ React.createElement(FAIcon, { icon: faShare }),
21
+ React.createElement("span", null, "Paste Shortcut")))))));
22
+ async function pasteShortcut() {
23
+ const nodes = move.findRemove(["Document"]);
24
+ if (nodes.some((x) => x.id === context.id)) {
25
+ return message.warning("Cannot link to itself");
26
+ }
27
+ const AddShortcuts = nodes.map((x) => ({ TargetId: x.id, ParentId: context.id, Name: "" }));
28
+ await store.createShortcuts({ data: AddShortcuts, error: "message" });
29
+ return;
30
+ }
31
+ };
32
+ export default PasteShortcut;
33
+ //# sourceMappingURL=PasteShortcut.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PasteShortcut.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EACN,WAAW,EACX,gBAAgB,EAChB,sBAAsB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,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AI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,CAAC,EAAE;YAC3C,OAAO,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;SAChD;QAED,MAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QAE5F,MAAM,KAAK,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAEtE,OAAO;IACR,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as Paste } from "./Paste";
2
+ export { default as PasteShortcut } from "./PasteShortcut";
@@ -0,0 +1,3 @@
1
+ export { default as Paste } from "./Paste";
2
+ export { default as PasteShortcut } from "./PasteShortcut";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controls/CompanyRegisterMenu/items/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,14 +1,7 @@
1
1
  import React from "react";
2
- declare const CorporateMenu: {
3
- (props: {
4
- id: string;
5
- unitId?: string;
6
- className?: string;
7
- closeAside?: boolean;
8
- icon?: React.ReactNode;
9
- }): JSX.Element;
10
- defaultProps: {
11
- icon: JSX.Element;
12
- };
13
- };
2
+ declare const CorporateMenu: (props: {
3
+ id: string;
4
+ unitId?: string;
5
+ icon?: React.ReactNode;
6
+ }) => JSX.Element;
14
7
  export default CorporateMenu;
@@ -1,106 +1,29 @@
1
- import { Button, Dropdown, Menu, message } from "antd";
2
- import React, { useState } from "react";
3
- import { faAddressCard, faArrowUpRightFromSquare, faChartUser, faCircleEllipsis, faFolderUser, faPanelEws, faPaste, faUserEdit, faUserLock, } from "@fortawesome/pro-light-svg-icons";
4
- import { observe, useAsideContentContext } from "@voplus/morpho-ui";
1
+ import { Button, Dropdown } from "antd";
2
+ import React from "react";
3
+ import { faAddressCard, faAngleLeft, faChartUser, faPanelEws, } from "@fortawesome/pro-light-svg-icons";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { Access, Open, Paste } from "@voplus/morpho-org/es/controls/NodeMenu/items";
6
+ import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
5
7
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
- import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
7
8
  import Routes from "../../../../../routes";
8
- import classnames from "classnames";
9
- import styles from "./index.less";
10
- import { useCorporateStore } from "../../../../../data/corporate";
11
- import { useDocumentStore } from "@voplus/morpho-document-core";
12
- import { useLayout } from "@voplus/morpho-data";
9
+ import Disabled from "./items/Disabled";
13
10
  const CorporateMenu = (props) => {
14
- const docStore = useDocumentStore();
15
- const layout = useLayout();
16
- const store = useCorporateStore();
17
- const asideContext = useAsideContentContext();
18
- const [visible, setVisible] = useState(false);
19
- // const corporate = useCorporate(props.id, {
20
- // reload: (i: ICorporate) => !i.actions,
21
- // includes: "actions",
22
- // });
23
- return observe(() => (React.createElement(React.Fragment, null,
24
- React.createElement(Dropdown, { placement: "bottomRight", dropdownRender: () => (React.createElement(Menu, { className: classnames(styles["corporate-menu"], props.className), items: [
25
- {
26
- key: "Disabled",
27
- label: "Disabled",
28
- icon: React.createElement(FAIcon, { icon: faUserLock }),
29
- disabled: true,
30
- },
31
- {
32
- key: "Contact",
33
- label: "Contact",
34
- icon: React.createElement(FAIcon, { icon: faFolderUser }),
35
- popupClassName: styles["corporate-sub-menu"],
36
- children: [
37
- {
38
- key: "Open",
39
- label: "Open",
40
- icon: React.createElement(FAIcon, { icon: faArrowUpRightFromSquare }),
41
- disabled: !props.unitId,
42
- },
43
- {
44
- key: "ViewRiskProfile",
45
- label: "View Risk Profile",
46
- icon: React.createElement(FAIcon, { icon: faAddressCard }),
47
- disabled: !props.unitId,
48
- },
49
- {
50
- key: "ViewCustomer",
51
- label: "View Customer",
52
- icon: React.createElement(FAIcon, { icon: faPanelEws }),
53
- disabled: !props.unitId,
54
- },
55
- {
56
- key: "Agent",
57
- label: "View Agent",
58
- icon: React.createElement(FAIcon, { icon: faChartUser }),
59
- disabled: !props.unitId,
60
- },
61
- ],
62
- },
63
- { key: "Access", label: "Access", icon: React.createElement(FAIcon, { icon: faUserEdit }) },
64
- {
65
- key: "Paste",
66
- label: "Paste",
67
- icon: React.createElement(FAIcon, { icon: faPaste }),
68
- disabled: docStore.moveIds.length === 0 && docStore.copyIds.length === 0,
69
- },
70
- ], onClick: (e) => onClick(e.key) })) },
71
- React.createElement(Button, { size: "small", type: "text" }, props.icon)),
72
- visible && React.createElement(PermissionModal, { id: props.id, onChange: () => setVisible(!visible) }))));
73
- function onClick(key) {
74
- if (key === "Disabled")
75
- onChangeStatus("Disabled");
76
- if (key === "Open")
77
- layout.history.push(`/units/${props.unitId}`);
78
- if (key === "ViewRiskProfile")
79
- layout.history.push(Routes.UnitRiskProfilePage.getUrl(props.unitId));
80
- if (key === "ViewCustomer")
81
- layout.history.push(`/customer-empty/${props.unitId}`);
82
- if (key === "Agent")
83
- layout.history.push(`/agent-empty/${props.unitId}`);
84
- if (key === "Access")
85
- setVisible(!visible);
86
- if (key === "Paste")
87
- onPaste();
88
- }
11
+ return observe(() => (React.createElement(NodeMenu, { id: props.id, icon: props.icon, menus: ({ onClickItem }) => (React.createElement(React.Fragment, null,
12
+ React.createElement(Paste, null),
13
+ React.createElement(Disabled, { disabled: true, action: () => onChangeStatus("Disabled") }),
14
+ React.createElement(Access, { onClickItem: onClickItem }),
15
+ React.createElement(Dropdown, { dropdownRender: () => (React.createElement("div", { className: "sub-node-menu" },
16
+ React.createElement(Open, { disabled: !props.unitId, url: `/units/${props.unitId}` }),
17
+ React.createElement(Open, { title: "View Risk Profile", icon: faAddressCard, disabled: !props.unitId, url: Routes.UnitRiskProfilePage.getUrl(props.unitId) }),
18
+ React.createElement(Open, { title: "View Customer", icon: faPanelEws, disabled: !props.unitId, url: `/customer-empty/${props.unitId}` }),
19
+ React.createElement(Open, { title: "View Agent", icon: faChartUser, disabled: !props.unitId, url: `/agent-empty/${props.unitId}` }))) },
20
+ React.createElement(Button, { type: "link" },
21
+ React.createElement(FAIcon, { icon: faAngleLeft }),
22
+ React.createElement("span", null, "Contact"))))) })));
89
23
  /** Disabled/Enable function */
90
24
  function onChangeStatus(status) {
91
25
  // store.edit(props.id, { data: { Status: status }, error: "message" });
92
26
  }
93
- async function onPaste() {
94
- if (docStore.moveIds.some((id) => id === props.id)) {
95
- return message.warning("Cannot move to itself");
96
- }
97
- await docStore.paste(props.id);
98
- message.success("Document pasted.");
99
- return;
100
- }
101
- };
102
- CorporateMenu.defaultProps = {
103
- icon: React.createElement(FAIcon, { icon: faCircleEllipsis }),
104
27
  };
105
28
  export default CorporateMenu;
106
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CorporateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,aAAa,EACb,wBAAwB,EACxB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,OAAO,EACP,UAAU,EACV,UAAU,GACV,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE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I,CAAC,CAAC,EAAU,EAAE,EAAE,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,EAAE;YAC3D,OAAO,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;SAChD;QACD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC/B,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QACpC,OAAO;IACR,CAAC;AACF,CAAC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG;IAC5B,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,gBAAgB,GAAI;CACxC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CorporateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,aAAa,EACb,WAAW,EACX,WAAW,EACX,UAAU,GACV,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAExC,MAAM,aAAa,GAAG,CAAC,KAA8D,EAAE,EAAE;IACxF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IACR,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,KAAK,EAAE,CAAC,EAAE,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0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const Disabled: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default Disabled;