@voplus/morpho-csp 1.2.111 → 1.2.113

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 (257) hide show
  1. package/es/components/RegisteresMenuItem/index.js +6 -2
  2. package/es/components/RegisteresMenuItem/index.js.map +1 -1
  3. package/es/data/controller/ControllerStore.d.ts +27 -0
  4. package/es/data/controller/ControllerStore.js +93 -0
  5. package/es/data/controller/ControllerStore.js.map +1 -0
  6. package/es/data/controller/hooks.js +19 -0
  7. package/es/data/controller/hooks.js.map +1 -0
  8. package/es/data/controller/index.js.map +1 -0
  9. package/es/data/controller/interfaces.d.ts +25 -0
  10. package/es/data/controller/interfaces.js.map +1 -0
  11. package/es/data/controller/types.d.ts +42 -0
  12. package/es/data/controller/types.js.map +1 -0
  13. package/es/data/incorporation-form/interfaces.d.ts +3 -0
  14. package/es/data/incorporation-form/types.d.ts +3 -0
  15. package/es/modules/corporate/clda/components/CLDADetails/index.js +1 -1
  16. package/es/modules/corporate/clda/components/CLDADetails/index.js.map +1 -1
  17. package/es/modules/corporate/clda/components/CLDAListView/index.js +2 -2
  18. package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
  19. package/es/modules/corporate/clda/components/NewCLDAForm/index.d.ts +1 -1
  20. package/es/modules/corporate/clda/components/NewCLDAForm/index.js +42 -25
  21. package/es/modules/corporate/clda/components/NewCLDAForm/index.js.map +1 -1
  22. package/es/modules/corporate/clda/components/NewCLDAForm/state.d.ts +13 -0
  23. package/es/modules/corporate/clda/components/NewCLDAForm/state.js +80 -0
  24. package/es/modules/corporate/clda/components/NewCLDAForm/state.js.map +1 -0
  25. package/es/modules/corporate/company/{officer/components → components}/CorporateOfficerSelect/index.js +1 -1
  26. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -0
  27. package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js +60 -0
  28. package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js.map +1 -0
  29. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.d.ts +14 -0
  30. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js +44 -0
  31. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js.map +1 -0
  32. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.less +41 -0
  33. package/es/modules/corporate/company/controller-register/components/ControllerList/index.d.ts +7 -0
  34. package/es/modules/corporate/company/controller-register/components/ControllerList/index.js +75 -0
  35. package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +1 -0
  36. package/es/modules/corporate/company/controller-register/components/ControllerList/index.less +15 -0
  37. package/es/modules/corporate/company/controller-register/components/ControllerList/state.d.ts +9 -0
  38. package/es/modules/corporate/company/controller-register/components/ControllerList/state.js +49 -0
  39. package/es/modules/corporate/company/controller-register/components/ControllerList/state.js.map +1 -0
  40. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +58 -0
  41. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -0
  42. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +51 -0
  43. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.d.ts +3 -0
  44. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.js +21 -0
  45. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.js.map +1 -0
  46. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.less +5 -0
  47. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.d.ts +11 -0
  48. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.js +35 -0
  49. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.js.map +1 -0
  50. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.d.ts +10 -0
  51. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.js +14 -0
  52. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.js.map +1 -0
  53. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.less +25 -0
  54. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +21 -0
  55. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -0
  56. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +6 -0
  57. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +2 -1
  58. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +11 -3
  59. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
  60. package/es/modules/corporate/company/officer-register/components/OfficerInformation/index.js.map +1 -0
  61. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +7 -6
  62. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
  63. package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +1 -1
  64. package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
  65. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -0
  66. package/es/modules/corporate/company/officer-register/components/PositionSelect/index.js.map +1 -0
  67. package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -0
  68. package/es/modules/corporate/company/pages/CompanyDefaultView/index.js +4 -2
  69. package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +1 -1
  70. package/es/modules/corporate/company/pages/CompanyDefaultView/state.d.ts +1 -0
  71. package/es/modules/corporate/company/pages/CompanyDefaultView/state.js +8 -0
  72. package/es/modules/corporate/company/pages/CompanyDefaultView/state.js.map +1 -1
  73. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +1 -1
  74. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.js.map +1 -0
  75. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItem/index.js +2 -2
  76. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -0
  77. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -0
  78. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +2 -2
  79. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +1 -0
  80. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/index.d.ts +1 -1
  81. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/index.js +2 -2
  82. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -0
  83. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/index.js +3 -3
  84. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -0
  85. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/state.d.ts +1 -1
  86. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/state.js.map +1 -0
  87. package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/Content.js +4 -4
  88. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js.map +1 -0
  89. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -0
  90. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/index.js +1 -1
  91. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -0
  92. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/state.js.map +1 -0
  93. package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.js.map +1 -0
  94. package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.js.map +1 -0
  95. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionDefaultView/index.js +2 -2
  96. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -0
  97. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionDefaultView/index.less +1 -1
  98. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +2 -2
  99. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -0
  100. package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.less +5 -2
  101. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js +1 -1
  102. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js.map +1 -1
  103. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js +1 -1
  104. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js.map +1 -1
  105. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js +1 -1
  106. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js.map +1 -1
  107. package/es/modules/corporate/share-options-register/components/ShareOptionList/index.js +1 -1
  108. package/es/modules/corporate/share-options-register/components/ShareOptionList/index.js.map +1 -1
  109. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.d.ts +2 -0
  110. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js +6 -4
  111. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
  112. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.d.ts +4 -1
  113. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js +8 -1
  114. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js.map +1 -1
  115. package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js +2 -0
  116. package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js.map +1 -1
  117. package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.less +16 -0
  118. package/es/modules/self-registration/incorporation-form/components/InternalUse/index.d.ts +6 -0
  119. package/es/modules/self-registration/incorporation-form/components/InternalUse/index.js +45 -0
  120. package/es/modules/self-registration/incorporation-form/components/InternalUse/index.js.map +1 -0
  121. package/es/modules/self-registration/incorporation-form/components/InternalUse/state.d.ts +9 -0
  122. package/es/modules/self-registration/incorporation-form/components/InternalUse/state.js +34 -0
  123. package/es/modules/self-registration/incorporation-form/components/InternalUse/state.js.map +1 -0
  124. package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/index.d.ts +5 -0
  125. package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/index.js +50 -0
  126. package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/index.js.map +1 -0
  127. package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/state.d.ts +9 -0
  128. package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/state.js +34 -0
  129. package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/state.js.map +1 -0
  130. package/es/modules/self-registration/incorporation-form/components/NewSecretaryDialog/index.d.ts +9 -0
  131. package/es/modules/self-registration/incorporation-form/components/NewSecretaryDialog/index.js +94 -0
  132. package/es/modules/self-registration/incorporation-form/components/NewSecretaryDialog/index.js.map +1 -0
  133. package/es/modules/self-registration/incorporation-form/components/SecretaryList/index.d.ts +5 -0
  134. package/es/modules/self-registration/incorporation-form/components/SecretaryList/index.js +50 -0
  135. package/es/modules/self-registration/incorporation-form/components/SecretaryList/index.js.map +1 -0
  136. package/es/modules/self-registration/incorporation-form/components/SecretaryList/state.d.ts +9 -0
  137. package/es/modules/self-registration/incorporation-form/components/SecretaryList/state.js +34 -0
  138. package/es/modules/self-registration/incorporation-form/components/SecretaryList/state.js.map +1 -0
  139. package/es/{modules/corporate/company/officer-register/page → obsolete}/OfficerRegisterDefaultView/index.js +1 -1
  140. package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -0
  141. package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.d.ts +8 -0
  142. package/es/{modules/corporate → obsolete}/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js +1 -1
  143. package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js.map +1 -0
  144. package/es/obsolete/controller-register/components/ControllerInformation/index.d.ts +11 -0
  145. package/es/{modules/corporate → obsolete}/controller-register/components/ControllerInformation/index.js +1 -1
  146. package/es/obsolete/controller-register/components/ControllerInformation/index.js.map +1 -0
  147. package/es/obsolete/controller-register/components/ControllerItem/index.js.map +1 -0
  148. package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/index.js +4 -4
  149. package/es/obsolete/controller-register/components/ControllerList/index.js.map +1 -0
  150. package/es/obsolete/controller-register/components/ControllerList/state.js.map +1 -0
  151. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.d.ts +4 -0
  152. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js.map +1 -0
  153. package/es/obsolete/controllerRegister/ControllerStore.js.map +1 -0
  154. package/es/obsolete/controllerRegister/hooks.d.ts +10 -0
  155. package/es/obsolete/controllerRegister/hooks.js.map +1 -0
  156. package/es/obsolete/controllerRegister/index.d.ts +4 -0
  157. package/es/obsolete/controllerRegister/index.js +5 -0
  158. package/es/obsolete/controllerRegister/index.js.map +1 -0
  159. package/es/obsolete/controllerRegister/interfaces.js +2 -0
  160. package/es/obsolete/controllerRegister/interfaces.js.map +1 -0
  161. package/es/obsolete/controllerRegister/types.js +2 -0
  162. package/es/obsolete/controllerRegister/types.js.map +1 -0
  163. package/es/routes.js +4 -4
  164. package/es/routes.js.map +1 -1
  165. package/package.json +1 -1
  166. package/es/components/ShareTransactionPropertiesView/Content.js.map +0 -1
  167. package/es/components/ShareTransactionPropertiesView/index.js.map +0 -1
  168. package/es/data/controllerRegister/ControllerStore.js.map +0 -1
  169. package/es/data/controllerRegister/hooks.js.map +0 -1
  170. package/es/data/controllerRegister/index.js.map +0 -1
  171. package/es/data/controllerRegister/interfaces.js.map +0 -1
  172. package/es/data/controllerRegister/types.js.map +0 -1
  173. package/es/modules/corporate/company/officer/components/CorporateOfficerSelect/index.js.map +0 -1
  174. package/es/modules/corporate/company/officer/components/OfficerInformation/index.js.map +0 -1
  175. package/es/modules/corporate/company/officer/components/OfficerPropertiesView/index.js.map +0 -1
  176. package/es/modules/corporate/company/officer/components/PositionSelect/index.js.map +0 -1
  177. package/es/modules/corporate/company/officer/page/OfficerDefaultView/index.js.map +0 -1
  178. package/es/modules/corporate/company/officer-register/page/OfficerRegisterDefaultView/index.js.map +0 -1
  179. package/es/modules/corporate/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js.map +0 -1
  180. package/es/modules/corporate/controller-register/components/ControllerInformation/index.js.map +0 -1
  181. package/es/modules/corporate/controller-register/components/ControllerItem/index.js.map +0 -1
  182. package/es/modules/corporate/controller-register/components/ControllerList/index.js.map +0 -1
  183. package/es/modules/corporate/controller-register/components/ControllerList/state.js.map +0 -1
  184. package/es/modules/corporate/controller-register/pages/ControllerDefaultView/index.js.map +0 -1
  185. package/es/modules/legal-entity/share-transactions-register/components/ShareMovementsDataIcon/index.js.map +0 -1
  186. package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItem/index.js.map +0 -1
  187. package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +0 -1
  188. package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +0 -1
  189. package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItems/index.js.map +0 -1
  190. package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionList/index.js.map +0 -1
  191. package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionList/state.js.map +0 -1
  192. package/es/modules/legal-entity/share-transactions-register/components/ShareholderSelector/index.js.map +0 -1
  193. package/es/modules/legal-entity/share-transactions-register/components/ShareholderSelector/state.js.map +0 -1
  194. package/es/modules/legal-entity/share-transactions-register/controls/TransactionTypeFilter/index.js.map +0 -1
  195. package/es/modules/legal-entity/share-transactions-register/controls/TransactionTypeFilter/state.js.map +0 -1
  196. package/es/modules/legal-entity/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +0 -1
  197. package/es/modules/legal-entity/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +0 -1
  198. /package/es/data/{controllerRegister → controller}/hooks.d.ts +0 -0
  199. /package/es/data/{controllerRegister → controller}/index.d.ts +0 -0
  200. /package/es/data/{controllerRegister → controller}/index.js +0 -0
  201. /package/es/data/{controllerRegister → controller}/interfaces.js +0 -0
  202. /package/es/data/{controllerRegister → controller}/types.js +0 -0
  203. /package/es/modules/corporate/company/{officer/components → components}/CorporateOfficerSelect/index.d.ts +0 -0
  204. /package/es/modules/corporate/{controller-register → company/controller-register}/components/ControllerInformation/index.d.ts +0 -0
  205. /package/es/modules/corporate/{controller-register/components/ControllerInformation → company/controller-register/components}/ControllerPropertiesView/index.d.ts +0 -0
  206. /package/es/modules/corporate/{controller-register/pages → company/controller-register/page}/ControllerDefaultView/index.d.ts +0 -0
  207. /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerInformation/index.d.ts +0 -0
  208. /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerInformation/index.js +0 -0
  209. /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerPropertiesView/index.d.ts +0 -0
  210. /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerPropertiesView/index.js +0 -0
  211. /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerPropertiesView/index.less +0 -0
  212. /package/es/modules/corporate/company/{officer → officer-register}/components/PositionSelect/index.d.ts +0 -0
  213. /package/es/modules/corporate/company/{officer → officer-register}/components/PositionSelect/index.js +0 -0
  214. /package/es/modules/corporate/company/{officer → officer-register}/page/OfficerDefaultView/index.d.ts +0 -0
  215. /package/es/modules/corporate/company/{officer → officer-register}/page/OfficerDefaultView/index.js +0 -0
  216. /package/es/modules/corporate/company/{officer → officer-register}/page/OfficerDefaultView/index.less +0 -0
  217. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareMovementsDataIcon/index.js +0 -0
  218. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareMovementsDataIcon/index.less +0 -0
  219. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItem/index.d.ts +0 -0
  220. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItem/index.less +0 -0
  221. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDataContext.d.ts +0 -0
  222. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDataContext.js +0 -0
  223. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDragCell.d.ts +0 -0
  224. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/index.d.ts +0 -0
  225. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/index.less +0 -0
  226. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/state.js +0 -0
  227. /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/Content.d.ts +0 -0
  228. /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/index.d.ts +0 -0
  229. /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/index.js +0 -0
  230. /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/index.less +0 -0
  231. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/index.d.ts +0 -0
  232. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/state.d.ts +0 -0
  233. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/state.js +0 -0
  234. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/index.d.ts +0 -0
  235. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/index.js +0 -0
  236. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/index.less +0 -0
  237. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/state.d.ts +0 -0
  238. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/state.js +0 -0
  239. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionDefaultView/index.d.ts +0 -0
  240. /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.d.ts +0 -0
  241. /package/es/{modules/corporate/company/officer-register/page → obsolete}/OfficerRegisterDefaultView/index.d.ts +0 -0
  242. /package/es/{modules/corporate/company/officer-register/page → obsolete}/OfficerRegisterDefaultView/index.less +0 -0
  243. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerInformation/ControllerPropertiesView/index.less +0 -0
  244. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerItem/index.d.ts +0 -0
  245. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerItem/index.js +0 -0
  246. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerItem/index.less +0 -0
  247. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/index.d.ts +0 -0
  248. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/index.less +0 -0
  249. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/state.d.ts +0 -0
  250. /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/state.js +0 -0
  251. /package/es/{modules/corporate → obsolete}/controller-register/pages/ControllerDefaultView/index.js +0 -0
  252. /package/es/{modules/corporate → obsolete}/controller-register/pages/ControllerDefaultView/index.less +0 -0
  253. /package/es/{data → obsolete}/controllerRegister/ControllerStore.d.ts +0 -0
  254. /package/es/{data → obsolete}/controllerRegister/ControllerStore.js +0 -0
  255. /package/es/{data → obsolete}/controllerRegister/hooks.js +0 -0
  256. /package/es/{data → obsolete}/controllerRegister/interfaces.d.ts +0 -0
  257. /package/es/{data → obsolete}/controllerRegister/types.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateOfficerSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE/C,MAAM,IAAI,GAAG,sBAAsB,CAAW,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjE,oBAAoB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QAC1D,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE;QAClC,OAAO,EAAE;QACR,4DAA4D;QAC5D,IAAI;QACJ,cAAc;QACd,kBAAkB;QAClB,aAAa;QACb,YAAY;QACZ,IAAI;SACJ;KACD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,IACN,UAAU,QACV,UAAU,QACV,KAAK,EAAE,KAAK,EACZ,WAAW,EAAC,uBAAuB,KAE/B,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC5C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,CAAC,KAAa,EAAE,MAAW,EAAE,EAAE,CAC5C,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,KAAI,CAAC,EAEjE,aAAa,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,IAEzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;QAAC,OAAA,CAC3B,oBAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAE,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,IAC/C,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,mCAAI,MAAA,OAAO,CAAC,OAAO,0CAAE,IAAI,CACrC,CAChB,CAAA;KAAA,CAAC,CACM,CACT,CAAC,CAAC;IACH,qBAAqB;IACrB,KAAK,UAAU,QAAQ,CAAC,KAAa;QACpC,MAAM,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,KAAK,CAAC,CAAA,CAAC;IACzB,CAAC;IACD,kCAAkC;IAClC,sDAAsD;IAEtD,YAAY;IACZ,0FAA0F;IAC1F,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,MAAM;AACP,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;CACxB,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import React from "react";
2
+ import { Badge, Form, Skeleton } from "@voplus/antd";
3
+ import { useController, useControllerStore, } from "../../../../../../data/controller";
4
+ import { observe, InlineEdit } from "@voplus/morpho-ui";
5
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
6
+ import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
7
+ import Scrollbars from "react-custom-scrollbars";
8
+ import moment from "moment";
9
+ const ControllerInformation = (props) => {
10
+ const { id, allowEdit } = props;
11
+ const controller = useController(id);
12
+ const controllerStore = useControllerStore();
13
+ return observe(() => (React.createElement(Scrollbars, null, controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
14
+ React.createElement(Skeleton, { active: true }))) : (React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, className: "company-information" },
15
+ controller.status && (React.createElement(Form.Item, { label: "Status" }, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))),
16
+ React.createElement(Form.Item, { label: "Confimration Status" },
17
+ React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable: allowEdit, onChange: (status) => controllerStore.edit(id, { data: { ConfirmationStatus: status }, error: "message" }) })),
18
+ React.createElement(Form.Item, { label: "Confimration Date" },
19
+ React.createElement(InlineEdit, { defaultValue: moment(controller.confimrationDate), content: (v) => (React.createElement("span", null, controller.confimrationDate
20
+ ? moment(v.store.value).format("YYYY-MM-DD")
21
+ : allowEdit
22
+ ? "Add Confimration Date"
23
+ : "No Confimration Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
24
+ if (moment(date).isSame(controller.confimrationDate, "day"))
25
+ return;
26
+ edit({ ConfimrationDate: date !== null ? date : "" });
27
+ } })),
28
+ React.createElement(Form.Item, { label: "Appointment Date" },
29
+ React.createElement(InlineEdit, { defaultValue: moment(controller === null || controller === void 0 ? void 0 : controller.appointment), content: (v) => (React.createElement("span", null, (controller === null || controller === void 0 ? void 0 : controller.appointment)
30
+ ? moment(v.store.value).format("YYYY-MM-DD")
31
+ : allowEdit
32
+ ? "Add Appointment Date"
33
+ : "No Appointment Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
34
+ if (moment(date).isSame(controller === null || controller === void 0 ? void 0 : controller.appointment, "day"))
35
+ return;
36
+ edit({ Appointment: date !== null ? date : "" });
37
+ } })),
38
+ React.createElement(Form.Item, { label: "Cease Date" },
39
+ React.createElement(InlineEdit, { defaultValue: moment(controller === null || controller === void 0 ? void 0 : controller.cease), content: (v) => (React.createElement("span", null, (controller === null || controller === void 0 ? void 0 : controller.cease)
40
+ ? moment(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD")
41
+ : allowEdit
42
+ ? "Add Cease Date"
43
+ : "No Cease Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
44
+ if (moment(date).isSame(controller === null || controller === void 0 ? void 0 : controller.cease, "day"))
45
+ return;
46
+ edit({ Cease: date !== null ? date : "" });
47
+ } })),
48
+ React.createElement(Form.Item, { label: "Email" },
49
+ React.createElement(InlineEdit, { defaultValue: controller.email, content: (v) => React.createElement("div", null, controller.email ? controller.email : "Add Email"), onSave: (value) => controllerStore.edit(id, { data: { Email: value }, error: "message" }) })),
50
+ React.createElement(Form.Item, { label: "Phone" },
51
+ React.createElement(InlineEdit, { defaultValue: controller.phone, content: (v) => React.createElement("div", null, controller.phone ? controller.phone : "Add Phone"), onSave: (value) => controllerStore.edit(id, { data: { Phone: value }, error: "message" }) })))))));
52
+ async function edit(data) {
53
+ await controllerStore.edit(id, { data, error: "message" });
54
+ }
55
+ };
56
+ ControllerInformation.defaultProps = {
57
+ allowEdit: true,
58
+ };
59
+ export default ControllerInformation;
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mB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C"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const ControllerItem: (props: {
4
+ /** id of controller */
5
+ id: string;
6
+ /** id of unit */
7
+ unitId: string;
8
+ /** id of identity */
9
+ identityId: string;
10
+ /** index of controller list */
11
+ index: number;
12
+ className?: string;
13
+ }) => JSX.Element;
14
+ export default ControllerItem;
@@ -0,0 +1,44 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { useController } from "../../../../../../data/controller";
4
+ import { Badge } from "@voplus/antd";
5
+ import { faEnvelope, faPhone } from "@fortawesome/pro-light-svg-icons";
6
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
+ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
8
+ import moment from "moment";
9
+ import "./index.less";
10
+ const ControllerItem = (props) => {
11
+ const { id, unitId, index } = props;
12
+ const controller = useController(id);
13
+ return observe(() => {
14
+ var _a, _b, _c, _d, _e, _f, _g;
15
+ const phone = (_a = controller.phone) !== null && _a !== void 0 ? _a : (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.phone;
16
+ const email = (_c = controller.email) !== null && _c !== void 0 ? _c : (_d = controller.contact) === null || _d === void 0 ? void 0 : _d.email;
17
+ return (React.createElement("div", { className: "controller-item" },
18
+ React.createElement(React.Fragment, null,
19
+ React.createElement(UnitAvatar, { id: unitId, index: index, size: "large" }),
20
+ React.createElement("div", { className: "controller-info" },
21
+ React.createElement("div", { className: "title" }, (_f = (_e = controller.identity) === null || _e === void 0 ? void 0 : _e.fullName) !== null && _f !== void 0 ? _f : (_g = controller.contact) === null || _g === void 0 ? void 0 : _g.name),
22
+ React.createElement("div", { className: "controller-contact" },
23
+ email && (React.createElement("span", null,
24
+ React.createElement(FAIcon, { icon: faEnvelope }),
25
+ email)),
26
+ phone && (React.createElement("span", { className: "margin-left-15" },
27
+ React.createElement(FAIcon, { icon: faPhone }),
28
+ phone))),
29
+ React.createElement("div", null,
30
+ controller.appointment && (React.createElement("span", { className: "margin-right-15" },
31
+ "Appointment Date: ",
32
+ moment(controller.appointment).format("YYYY-MM-DD"))),
33
+ controller.cease && (React.createElement("span", { className: "margin-right-15" },
34
+ "Cease Date: ",
35
+ moment(controller.cease).format("YYYY-MM-DD"))),
36
+ controller.confimrationDate && (React.createElement("span", { className: "margin-right-15" },
37
+ "Confimration Date: ",
38
+ moment(controller.confimrationDate).format("YYYY-MM-DD"))))),
39
+ !controller.identity && React.createElement(Badge, { status: "warning", text: "Need Identity Info" }),
40
+ controller.status && controller.identity && (React.createElement("div", null, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))))));
41
+ });
42
+ };
43
+ export default ControllerItem;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,cAAc,CAAC;AAEtB,MAAM,cAAc,GAAG,CAAC,KAUvB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAErC,OAAO,OAAO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,gBAAgB,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CACtE,CACP,CACI,CACD;gBACL,CAAC,UAAU,CAAC,QAAQ,IAAI,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,oBAAoB,GAAG;gBAC5E,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,IAAI,CAC5C,iCACE,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAClC,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG,CACzC,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CACpC,CACI,CACN,CACe,CACZ,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,41 @@
1
+ :global {
2
+ .controller-item {
3
+ position: relative;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ align-items: center;
7
+ padding: 10px 20px;
8
+
9
+ &::after {
10
+ position: absolute;
11
+ content: "";
12
+ left: 20px;
13
+ bottom: 0;
14
+ right: 20px;
15
+ border-bottom: 1px solid #f2f2f2;
16
+ }
17
+
18
+ .controller-info {
19
+ flex: 1;
20
+ margin-left: 10px;
21
+
22
+ .title {
23
+ font-weight: 500;
24
+ }
25
+
26
+ .controller-contact {
27
+ color: rgba(0, 0, 0, 0.45);
28
+
29
+ .svg-inline--fa {
30
+ margin-right: 5px;
31
+ }
32
+ }
33
+ }
34
+
35
+ .appointment-date,
36
+ .cease-date {
37
+ font-size: 13px;
38
+ line-height: 22px;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const ControllerList: (props: {
4
+ parentId: string;
5
+ allowEdit?: boolean;
6
+ }) => JSX.Element;
7
+ export default ControllerList;
@@ -0,0 +1,75 @@
1
+ import React from "react";
2
+ import { useControllerListEffect, useControllerStore, } from "../../../../../../data/controller";
3
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
4
+ import { State } from "./state";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ import { runInAction } from "mobx";
7
+ import { useAutoUpdateListData } from "@voplus/morpho-document-core";
8
+ import { useDeepMemo } from "@voplus/morpho-data";
9
+ import { useRenderOnChange } from "@voplus/morpho-ui";
10
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
11
+ import NewTypeDropdown from "../../../../../../components/NewTypeDropdown";
12
+ import ControllerItem from "../ControllerItem";
13
+ import ControllerPropertiesView from "../ControllerPropertiesView";
14
+ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
15
+ import "./index.less";
16
+ const ControllerList = (props) => {
17
+ const { parentId, allowEdit } = props;
18
+ const controllerStore = useControllerStore();
19
+ const list = useCreateListDataState({
20
+ filterDefaults: {
21
+ filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }],
22
+ },
23
+ }, [parentId]);
24
+ const state = useDeepMemo(() => new State(), [parentId]);
25
+ useAutoUpdateListData(list, (d) => d.parentId === parentId);
26
+ useRenderOnChange(() => list.filters.options);
27
+ useControllerListEffect(list, (result) => list.union(result), list.filters.options);
28
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
29
+ React.createElement(ListView, { headerProps: {
30
+ viewTitle: "Controllers Register",
31
+ sortable: false,
32
+ addAble: allowEdit !== false,
33
+ addOptions: {
34
+ children: (React.createElement(NewTypeDropdown, { onSelect: state.onSelect, menus: [
35
+ "Director",
36
+ "Managing Director",
37
+ "Nominee Director",
38
+ "Secretary",
39
+ "CEO",
40
+ "Partner",
41
+ "Owner",
42
+ "Auditor",
43
+ "Manager",
44
+ ], style: { marginLeft: "10px" } })),
45
+ },
46
+ // filterViewProps: {
47
+ // columns: [
48
+ // <ControllerStatusFilter key="ControllerStatusFilter" />,
49
+ // ],
50
+ // onFilter,
51
+ // },
52
+ }, renderItem: ({ item, index }) => {
53
+ var _a;
54
+ return (React.createElement(ControllerItem, { key: item.id, id: item.id, unitId: item.contact.id, identityId: (_a = item.identity) === null || _a === void 0 ? void 0 : _a.id, index: index, className: index === 0 ? "shareTransaction-item-first" : "" }));
55
+ }, propertiesView: (id) => React.createElement(ControllerPropertiesView, { id: id, allowEdit: allowEdit }), className: "controller-list-view" }),
56
+ state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => runInAction(() => (state.addAble = false)) })))));
57
+ /** 新增controllerItem */
58
+ async function onSave(unit) {
59
+ /** SelectLegalContactDialog 选择/新增有identity信息的unit */
60
+ if (unit) {
61
+ const res = await controllerStore.create({
62
+ data: { RegisterId: parentId, UnitId: unit[0].id, Position: state.position },
63
+ error: "message",
64
+ });
65
+ list.union([res]);
66
+ }
67
+ runInAction(() => (state.addAble = false));
68
+ }
69
+ function onFilter(context) {
70
+ context.paging.Page = 1;
71
+ context.filter();
72
+ }
73
+ };
74
+ export default ControllerList;
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEN,uBAAuB,EACvB,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAA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WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,GACzD,CACF,CACyB,CAC3B,CAAC,CAAC;IAEH,uBAAuB;IACvB,KAAK,UAAU,MAAM,CAAC,IAAkD;QACvE,qDAAqD;QACrD,IAAI,IAAI,EAAE;YACT,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC;gBACxC,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;gBAC5E,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAClB;QACD,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,15 @@
1
+ @import "~@voplus/antd/es/style/themes/default.less";
2
+
3
+ :global {
4
+ .controller-list-view {
5
+ padding: 0 !important;
6
+
7
+ .list-view-header .view-title {
8
+ flex: 1;
9
+ }
10
+
11
+ aside {
12
+ border-top: 0;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,9 @@
1
+ export declare class State {
2
+ /** position of the new controller */
3
+ position: string;
4
+ /** can new Controller item */
5
+ addAble: boolean;
6
+ loading: boolean;
7
+ constructor();
8
+ onSelect: (position: string) => void;
9
+ }
@@ -0,0 +1,49 @@
1
+ import { __decorate } from "tslib";
2
+ import { action, makeAutoObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ /** position of the new controller */
6
+ Object.defineProperty(this, "position", {
7
+ enumerable: true,
8
+ configurable: true,
9
+ writable: true,
10
+ value: "Director"
11
+ });
12
+ /** can new Controller item */
13
+ Object.defineProperty(this, "addAble", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: false
18
+ });
19
+ Object.defineProperty(this, "loading", {
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true,
23
+ value: false
24
+ });
25
+ Object.defineProperty(this, "onSelect", {
26
+ enumerable: true,
27
+ configurable: true,
28
+ writable: true,
29
+ value: (position) => {
30
+ this.position = position;
31
+ this.addAble = true;
32
+ }
33
+ });
34
+ makeAutoObservable(this);
35
+ }
36
+ }
37
+ __decorate([
38
+ observable
39
+ ], State.prototype, "position", void 0);
40
+ __decorate([
41
+ observable
42
+ ], State.prototype, "addAble", void 0);
43
+ __decorate([
44
+ observable
45
+ ], State.prototype, "loading", void 0);
46
+ __decorate([
47
+ action
48
+ ], State.prototype, "onSelect", void 0);
49
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAOjB;QANA,qCAAqC;QACzB;;;;mBAAkB,UAAU;WAAC;QACzC,+BAA+B;QACnB;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAiB,KAAK;WAAC;QAQnC;;;;mBAAkB,CAAC,QAAgB,EAAE,EAAE;gBACtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;gBACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACrB,CAAC;WAAC;QARD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAQD;AAfY;IAAX,UAAU;uCAA8B;AAE7B;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB;AAQnC;IAFC,MAAM;uCAKL"}
@@ -0,0 +1,58 @@
1
+ import React, { useMemo } from "react";
2
+ import { useAsideContentContext, observe } from "@voplus/morpho-ui";
3
+ import { useListDataContext } from "@voplus/morpho-ui/es/data";
4
+ import { Delete, Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
5
+ import { Skeleton, Tabs } from "@voplus/antd";
6
+ import { useController, useControllerStore } from "../../../../../../data/controller";
7
+ import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
8
+ import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
9
+ import ContactInformation from "@voplus/morpho-org/es/components/ContactInformation";
10
+ import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
11
+ import IdentifyDetail from "../../../identity/components/IdentifyDetail";
12
+ import ControllerInformation from "../ControllerInformation";
13
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
14
+ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
15
+ import "./index.less";
16
+ const ControllerPropertiesView = (props) => {
17
+ const { id, allowEdit, toolbar } = props;
18
+ const controller = useController(id, { reload: true });
19
+ const controllerStore = useControllerStore();
20
+ const dataState = useListDataContext();
21
+ const asideContext = useAsideContentContext();
22
+ const view = useMemo(() => new ViewContextData("QuickView"), []);
23
+ return observe(() => {
24
+ var _a, _b, _c, _d;
25
+ return (React.createElement(ViewContext.Provider, { value: view },
26
+ React.createElement("div", { className: "controller-properties-view_content" },
27
+ controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
28
+ React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "controller-properties-view_header" },
29
+ React.createElement(UnitAvatar, { id: controller.contact.id, size: 70 }),
30
+ React.createElement("div", null, (_b = (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : (_c = controller.contact) === null || _c === void 0 ? void 0 : _c.name),
31
+ toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
32
+ React.createElement(Open, { url: `/controller/${id}` }),
33
+ allowEdit && React.createElement(Delete, { action: onDelete }))))),
34
+ React.createElement(Tabs, { defaultActiveKey: "Controller" },
35
+ React.createElement(Tabs.TabPane, { tab: "Controller Details", key: "Controller" },
36
+ React.createElement(ControllerInformation, { id: id, allowEdit: allowEdit })),
37
+ React.createElement(Tabs.TabPane, { tab: "Contact Details", key: "Contact" },
38
+ React.createElement(ContactInformation, { id: controller.contact.id, allowEdit: allowEdit })),
39
+ React.createElement(Tabs.TabPane, { tab: "Identify Details", key: "Identify" },
40
+ React.createElement(IdentifyDetail, { id: (_d = controller.identity) === null || _d === void 0 ? void 0 : _d.id, concatId: controller.contact.id, controllerId: id, allowEdit: allowEdit })),
41
+ React.createElement(Tabs.TabPane, { tab: "Documents", key: "Document" },
42
+ React.createElement(DocumentList, { id: id, header: false })),
43
+ React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" },
44
+ React.createElement(ActivityLog, { id: id, nodes: [controller.contact.id], bar: false }))))));
45
+ });
46
+ /** 删除controller item */
47
+ async function onDelete() {
48
+ await controllerStore.delete([id], { error: "message" }).then((res) => {
49
+ if (!res)
50
+ return;
51
+ dataState.remove(id);
52
+ if (asideContext)
53
+ asideContext.closeAside();
54
+ });
55
+ }
56
+ };
57
+ export default ControllerPropertiesView;
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAC,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE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W,EAAC,GAAG,EAAC,UAAU;wBAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI,CACzB;oBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY;wBAC9C,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,GAAI,CACrD,CACT,CACF,CACgB,CACvB,CAAA;KAAA,CAAC,CAAC;IAEH,wBAAwB;IACxB,KAAK,UAAU,QAAQ;QACtB,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACrE,IAAI,CAAC,GAAG;gBAAE,OAAO;YACjB,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACrB,IAAI,YAAY;gBAAE,YAAY,CAAC,UAAU,EAAE,CAAC;QAC7C,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,51 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .controller-properties-view_content {
5
+ display: flex;
6
+ flex-direction: column;
7
+ height: 100%;
8
+ overflow: hidden;
9
+ background-color: #fff;
10
+
11
+ .controller-properties-view_header {
12
+ position: relative;
13
+ text-align: center;
14
+ padding: 20px 0 10px 0;
15
+
16
+ .controller-person-name {
17
+ color: #000;
18
+ font-size: 16px;
19
+ font-weight: 500;
20
+ padding-top: 12px;
21
+ }
22
+
23
+ .tool-bar {
24
+ position: absolute;
25
+ top: 20px;
26
+ right: 20px;
27
+
28
+ .delete {
29
+ color: @delete-color;
30
+ }
31
+ }
32
+ }
33
+
34
+ .ant-tabs {
35
+ height: 100%;
36
+
37
+ .ant-tabs-nav {
38
+ margin: 0 20px;
39
+ }
40
+
41
+ .company-information {
42
+ padding: 15px 20px;
43
+
44
+ h3 {
45
+ margin-bottom: 15px;
46
+ color: #000;
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ControllerStatusFilter: () => JSX.Element;
3
+ export default ControllerStatusFilter;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { State } from "./state";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { runInAction } from "mobx";
5
+ import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
6
+ import classnames from "classnames";
7
+ const menuList = ["Present", "Past"];
8
+ const ControllerStatusFilter = () => {
9
+ /** 引入父組件的 FilterOptionsContextState */
10
+ const context = useFilterOptionsContext();
11
+ /** 尝试从 context 取得 State, 如果没有的话context会使用第二个factory参数创建一个State. */
12
+ const state = context.getFilterState("DocumentStatus", () => new State());
13
+ return observe(() => (React.createElement("div", { className: "transaction-type-filter" },
14
+ React.createElement("div", { className: "menu-item-title" }, "TransactionType"),
15
+ menuList.map((status) => (React.createElement("div", { key: status, className: classnames("filter-menu-item", {
16
+ bold: state.status === status,
17
+ }), onClick: () => runInAction(() => (state.status = status)) },
18
+ React.createElement("div", { className: "filter-name" }, status)))))));
19
+ };
20
+ export default ControllerStatusFilter;
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,QAAQ,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAErC,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACnC,uCAAuC;IACvC,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,mEAAmE;IACnE,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAE1E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,yBAAyB;QACvC,6BAAK,SAAS,EAAC,iBAAiB,sBAAsB;QACrD,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAc,EAAE,EAAE,CAAC,CACjC,6BACC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,CAAC,MAAM,KAAK,MAAM;aAC7B,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;YAEzD,6BAAK,SAAS,EAAC,aAAa,IAAE,MAAM,CAAO,CACtC,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,5 @@
1
+ :global {
2
+ .transaction-type-filter {
3
+ padding: 0 15px;
4
+ }
5
+ }
@@ -0,0 +1,11 @@
1
+ import { FilterOption } from "@voplus/morpho-data";
2
+ import { IFilterState } from "@voplus/morpho-ui/es/data";
3
+ /** DocumentStatusFilter的 State, 实现 IFilterState 接口 */
4
+ export declare class State implements IFilterState {
5
+ /** Status of document of filter */
6
+ status: string;
7
+ constructor();
8
+ /** 视乎State内容,返回正确的FilterOption[]. 在Filter时,Context 会使用此属性replace Context内FilterOption的资料。 */
9
+ get filters(): FilterOption[];
10
+ reset(): void;
11
+ }
@@ -0,0 +1,35 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeAutoObservable, observable } from "mobx";
3
+ /** DocumentStatusFilter的 State, 实现 IFilterState 接口 */
4
+ export class State {
5
+ constructor() {
6
+ /** Status of document of filter */
7
+ Object.defineProperty(this, "status", {
8
+ enumerable: true,
9
+ configurable: true,
10
+ writable: true,
11
+ value: void 0
12
+ });
13
+ makeAutoObservable(this);
14
+ }
15
+ /** 视乎State内容,返回正确的FilterOption[]. 在Filter时,Context 会使用此属性replace Context内FilterOption的资料。 */
16
+ get filters() {
17
+ if (!this.status)
18
+ return [];
19
+ return [
20
+ {
21
+ c: "CeaseDate",
22
+ o: "contains",
23
+ v1: this.status === "Present" ? null : "",
24
+ l: "And",
25
+ },
26
+ ];
27
+ }
28
+ reset() {
29
+ this.status = "";
30
+ }
31
+ }
32
+ __decorate([
33
+ observable
34
+ ], State.prototype, "status", void 0);
35
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAItD,sDAAsD;AACtD,MAAM,OAAO,KAAK;IAIjB;QAHA,mCAAmC;QACvB;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,6FAA6F;IAC7F,IAAW,OAAO;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QAC5B,OAAO;YACN;gBACC,CAAC,EAAE,WAAW;gBACd,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;gBACzC,CAAC,EAAE,KAAK;aACQ;SACjB,CAAC;IACH,CAAC;IAEM,KAAK;QACX,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IAClB,CAAC;CACD;AAtBY;IAAX,UAAU;qCAAuB"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { ConfirmationStatus } from "../../../../../../data/controller";
3
+ import "./index.less";
4
+ declare const ControllerStatusLabel: (props: {
5
+ status: string;
6
+ editable: boolean;
7
+ className?: string | undefined;
8
+ onChange: (status: ConfirmationStatus) => void;
9
+ }) => JSX.Element;
10
+ export default ControllerStatusLabel;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
4
+ import classnames from "classnames";
5
+ import "./index.less";
6
+ const ControllerStatusLabel = (props) => {
7
+ return observe(() => (React.createElement(DocumentStatusLabel, { className: classnames("controller-status", props.className), editable: props.editable, list: [
8
+ { name: "Unconfirmed" },
9
+ { name: "ConfirmedController" },
10
+ { name: "ConfirmedNotController" },
11
+ ], status: props.status, onChange: props.onChange })));
12
+ };
13
+ export default ControllerStatusLabel;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,CAAC,KAK9B,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC,EAC3D,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE;YACL,EAAE,IAAI,EAAE,aAAa,EAAE;YACvB,EAAE,IAAI,EAAE,qBAAqB,EAAE;YAC/B,EAAE,IAAI,EAAE,wBAAwB,EAAE;SAClC,EACD,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}