@voplus/morpho-csp 1.0.0-dev004 → 1.0.0-dev006

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 (742) hide show
  1. package/es/Modules.js +9 -1
  2. package/es/Modules.js.map +1 -1
  3. package/es/components/CompanyMemberSelect/index.d.ts +17 -0
  4. package/es/components/CompanyMemberSelect/index.js +35 -0
  5. package/es/components/CompanyMemberSelect/index.js.map +1 -0
  6. package/es/components/CurrencyView/index.d.ts +16 -8
  7. package/es/components/CurrencyView/index.js +6 -3
  8. package/es/components/CurrencyView/index.js.map +1 -1
  9. package/es/components/CurrencyView/state.js +1 -1
  10. package/es/components/Header/index.d.ts +7 -0
  11. package/es/components/Header/index.js +10 -0
  12. package/es/components/Header/index.js.map +1 -0
  13. package/es/components/Header/index.less +16 -0
  14. package/es/components/LegalContactSelect/index.d.ts +6 -0
  15. package/es/components/LegalContactSelect/index.js +25 -0
  16. package/es/components/LegalContactSelect/index.js.map +1 -0
  17. package/es/components/LegalContactSelect/state.d.ts +9 -0
  18. package/es/components/LegalContactSelect/state.js +22 -0
  19. package/es/components/LegalContactSelect/state.js.map +1 -0
  20. package/es/components/NewTypeDropdown/index.d.ts +7 -0
  21. package/es/{modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown → components/NewTypeDropdown}/index.js +5 -15
  22. package/es/components/NewTypeDropdown/index.js.map +1 -0
  23. package/es/components/ShareTransactionPropertiesView/Content.d.ts +6 -0
  24. package/es/components/ShareTransactionPropertiesView/Content.js +49 -0
  25. package/es/components/ShareTransactionPropertiesView/Content.js.map +1 -0
  26. package/es/components/ShareTransactionPropertiesView/index.d.ts +12 -0
  27. package/es/components/ShareTransactionPropertiesView/index.js +15 -0
  28. package/es/components/ShareTransactionPropertiesView/index.js.map +1 -0
  29. package/es/components/ShareTransactionPropertiesView/index.less +89 -0
  30. package/es/components/TableDragRow/index.js +6 -6
  31. package/es/components/TableDragRow/index.js.map +1 -1
  32. package/es/components/VerificationInformation/VerificationStore.d.ts +33 -0
  33. package/es/components/VerificationInformation/VerificationStore.js +40 -0
  34. package/es/components/VerificationInformation/VerificationStore.js.map +1 -0
  35. package/es/components/VerificationInformation/index.d.ts +5 -0
  36. package/es/components/VerificationInformation/index.js +71 -0
  37. package/es/components/VerificationInformation/index.js.map +1 -0
  38. package/es/components/VerificationInformation/state.d.ts +11 -0
  39. package/es/components/VerificationInformation/state.js +25 -0
  40. package/es/components/VerificationInformation/state.js.map +1 -0
  41. package/es/data/CLDA/hooks.d.ts +10 -0
  42. package/es/data/CLDA/hooks.js +26 -0
  43. package/es/data/CLDA/hooks.js.map +1 -0
  44. package/es/data/CLDA/index.d.ts +4 -0
  45. package/es/data/CLDA/index.js +5 -0
  46. package/es/data/CLDA/index.js.map +1 -0
  47. package/es/data/CLDA/interfaces.d.ts +32 -0
  48. package/es/data/CLDA/interfaces.js +2 -0
  49. package/es/data/CLDA/interfaces.js.map +1 -0
  50. package/es/data/CLDA/store.d.ts +20 -0
  51. package/es/data/CLDA/store.js +36 -0
  52. package/es/data/CLDA/store.js.map +1 -0
  53. package/es/data/CLDA/types.d.ts +26 -0
  54. package/es/data/CLDA/types.js +2 -0
  55. package/es/data/CLDA/types.js.map +1 -0
  56. package/es/data/account/AccountStore.d.ts +17 -0
  57. package/es/data/account/AccountStore.js +43 -0
  58. package/es/data/account/AccountStore.js.map +1 -0
  59. package/es/data/account/hooks.d.ts +9 -0
  60. package/es/data/account/hooks.js +19 -0
  61. package/es/data/account/hooks.js.map +1 -0
  62. package/es/data/account/interfaces.d.ts +15 -0
  63. package/es/data/account/interfaces.js +2 -0
  64. package/es/data/account/interfaces.js.map +1 -0
  65. package/es/data/corporate/CorporateStore.d.ts +11 -7
  66. package/es/data/corporate/CorporateStore.js +24 -6
  67. package/es/data/corporate/CorporateStore.js.map +1 -1
  68. package/es/data/corporate/hooks.d.ts +5 -5
  69. package/es/data/corporate/hooks.js +8 -3
  70. package/es/data/corporate/hooks.js.map +1 -1
  71. package/es/data/corporate/interfaces.d.ts +9 -4
  72. package/es/data/corporate/interfaces.js +1 -0
  73. package/es/data/corporate/types.d.ts +21 -5
  74. package/es/data/corporate/types.js +1 -0
  75. package/es/data/filingRecord/hooks.d.ts +9 -0
  76. package/es/data/filingRecord/hooks.js +20 -0
  77. package/es/data/filingRecord/hooks.js.map +1 -0
  78. package/es/data/filingRecord/interfaces.d.ts +9 -0
  79. package/es/data/filingRecord/interfaces.js +2 -0
  80. package/es/data/filingRecord/interfaces.js.map +1 -0
  81. package/es/data/filingRecord/store.d.ts +13 -0
  82. package/es/data/filingRecord/store.js +23 -0
  83. package/es/data/filingRecord/store.js.map +1 -0
  84. package/es/data/filingRecord/types.d.ts +18 -0
  85. package/es/data/filingRecord/types.js +2 -0
  86. package/es/data/filingRecord/types.js.map +1 -0
  87. package/es/{modules/corporate/company/Identity/data → data/identity}/IdentityStore.d.ts +12 -6
  88. package/es/{modules/corporate/company/Identity/data → data/identity}/IdentityStore.js +16 -9
  89. package/es/data/identity/IdentityStore.js.map +1 -0
  90. package/es/data/identity/hooks.d.ts +6 -0
  91. package/es/data/identity/hooks.js +15 -0
  92. package/es/data/identity/hooks.js.map +1 -0
  93. package/es/data/identity/index.js.map +1 -0
  94. package/es/{modules/corporate/company/Identity/data → data/identity}/interfaces.d.ts +9 -4
  95. package/es/data/identity/interfaces.js +2 -0
  96. package/es/data/identity/interfaces.js.map +1 -0
  97. package/es/data/identity/types.d.ts +29 -0
  98. package/es/data/identity/types.js +2 -0
  99. package/es/data/identity/types.js.map +1 -0
  100. package/es/data/member/MemberStore.d.ts +27 -0
  101. package/es/data/member/MemberStore.js +76 -0
  102. package/es/data/member/MemberStore.js.map +1 -0
  103. package/es/data/member/hooks.d.ts +9 -0
  104. package/es/data/member/hooks.js +19 -0
  105. package/es/data/member/hooks.js.map +1 -0
  106. package/es/data/member/index.d.ts +4 -0
  107. package/es/data/member/index.js +5 -0
  108. package/es/data/member/index.js.map +1 -0
  109. package/es/data/member/interfaces.d.ts +18 -0
  110. package/es/data/member/interfaces.js +2 -0
  111. package/es/data/member/interfaces.js.map +1 -0
  112. package/es/data/member/types.d.ts +25 -0
  113. package/es/data/member/types.js +2 -0
  114. package/es/data/member/types.js.map +1 -0
  115. package/es/data/officer/OfficerStore.d.ts +27 -0
  116. package/es/data/officer/OfficerStore.js +78 -0
  117. package/es/data/officer/OfficerStore.js.map +1 -0
  118. package/es/data/officer/hooks.d.ts +10 -0
  119. package/es/data/officer/hooks.js +19 -0
  120. package/es/data/officer/hooks.js.map +1 -0
  121. package/es/data/officer/index.d.ts +4 -0
  122. package/es/data/officer/index.js +5 -0
  123. package/es/data/officer/index.js.map +1 -0
  124. package/es/data/officer/interfaces.d.ts +19 -0
  125. package/es/data/officer/interfaces.js +2 -0
  126. package/es/data/officer/interfaces.js.map +1 -0
  127. package/es/data/officer/types.d.ts +35 -0
  128. package/es/data/officer/types.js +2 -0
  129. package/es/data/officer/types.js.map +1 -0
  130. package/es/data/service/hooks.d.ts +10 -0
  131. package/es/data/service/hooks.js +19 -0
  132. package/es/data/service/hooks.js.map +1 -0
  133. package/es/data/service/index.d.ts +4 -0
  134. package/es/data/service/index.js +5 -0
  135. package/es/data/service/index.js.map +1 -0
  136. package/es/data/service/interfaces.d.ts +13 -0
  137. package/es/data/service/interfaces.js +2 -0
  138. package/es/data/service/interfaces.js.map +1 -0
  139. package/es/data/service/store.d.ts +20 -0
  140. package/es/data/service/store.js +52 -0
  141. package/es/data/service/store.js.map +1 -0
  142. package/es/data/service/types.d.ts +25 -0
  143. package/es/data/service/types.js +2 -0
  144. package/es/data/service/types.js.map +1 -0
  145. package/es/data/serviceType/hooks.d.ts +10 -0
  146. package/es/data/serviceType/hooks.js +19 -0
  147. package/es/data/serviceType/hooks.js.map +1 -0
  148. package/es/data/serviceType/index.d.ts +3 -0
  149. package/es/data/serviceType/index.js +4 -0
  150. package/es/data/serviceType/index.js.map +1 -0
  151. package/es/data/serviceType/interfaces.d.ts +21 -0
  152. package/es/data/serviceType/interfaces.js +2 -0
  153. package/es/data/serviceType/interfaces.js.map +1 -0
  154. package/es/data/serviceType/store.d.ts +27 -0
  155. package/es/data/serviceType/store.js +68 -0
  156. package/es/data/serviceType/store.js.map +1 -0
  157. package/es/data/serviceType/types.d.ts +41 -0
  158. package/es/data/serviceType/types.js +2 -0
  159. package/es/data/serviceType/types.js.map +1 -0
  160. package/es/data/shareCertificate/hooks.d.ts +6 -0
  161. package/es/data/shareCertificate/hooks.js +12 -0
  162. package/es/data/shareCertificate/hooks.js.map +1 -0
  163. package/es/data/shareCertificate/index.d.ts +3 -0
  164. package/es/data/shareCertificate/index.js +4 -0
  165. package/es/data/shareCertificate/index.js.map +1 -0
  166. package/es/data/shareCertificate/interfaces.d.ts +22 -0
  167. package/es/data/shareCertificate/interfaces.js +2 -0
  168. package/es/data/shareCertificate/interfaces.js.map +1 -0
  169. package/es/data/shareCertificate/store.d.ts +15 -0
  170. package/es/data/shareCertificate/store.js +32 -0
  171. package/es/data/shareCertificate/store.js.map +1 -0
  172. package/es/data/shareTransaction/ShareTransactionStore.js +2 -2
  173. package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
  174. package/es/data/shareTransaction/hooks.js +1 -1
  175. package/es/data/shareTransaction/hooks.js.map +1 -1
  176. package/es/data/shareTransaction/interfaces/IShareTransaction.js +1 -0
  177. package/es/data/shareTransaction/interfaces/IShareTransactionLine.js +1 -0
  178. package/es/data/shareTransaction/types/ShareLineCreateOptions.js +1 -0
  179. package/es/data/shareTransaction/types/ShareTransactionCreateOptions.js +1 -0
  180. package/es/data/shareTransaction/types/ShareTransactionEditOptions.d.ts +2 -2
  181. package/es/data/shareTransaction/types/ShareTransactionEditOptions.js +1 -0
  182. package/es/data/shareTransaction/types/ShareTransactionType.js +1 -0
  183. package/es/modules/account/AccountDefaultView/index.d.ts +4 -0
  184. package/es/modules/account/AccountDefaultView/index.js +29 -0
  185. package/es/modules/account/AccountDefaultView/index.js.map +1 -0
  186. package/es/modules/account/AccountDefaultView/index.less +26 -0
  187. package/es/modules/account/AccountOrganizations/index.d.ts +6 -0
  188. package/es/modules/account/AccountOrganizations/index.js +63 -0
  189. package/es/modules/account/AccountOrganizations/index.js.map +1 -0
  190. package/es/modules/account/AccountOrganizations/index.less +26 -0
  191. package/es/modules/account/AccountPropertiesView/index.d.ts +6 -0
  192. package/es/modules/account/AccountPropertiesView/index.js +20 -0
  193. package/es/modules/account/AccountPropertiesView/index.js.map +1 -0
  194. package/es/modules/account/AccountPropertiesView/index.less +10 -0
  195. package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.d.ts +17 -0
  196. package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js +51 -0
  197. package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js.map +1 -0
  198. package/es/modules/corporate/CLDA/CLDAClientView/components/CompletedStep/index.d.ts +3 -0
  199. package/es/modules/corporate/CLDA/CLDAClientView/components/CompletedStep/index.js +9 -0
  200. package/es/modules/corporate/CLDA/CLDAClientView/components/CompletedStep/index.js.map +1 -0
  201. package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.d.ts +3 -0
  202. package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js +49 -0
  203. package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js.map +1 -0
  204. package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalSigningStep/index.d.ts +3 -0
  205. package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalSigningStep/index.js +16 -0
  206. package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalSigningStep/index.js.map +1 -0
  207. package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.d.ts +3 -0
  208. package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js +47 -0
  209. package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js.map +1 -0
  210. package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.d.ts +3 -0
  211. package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js +30 -0
  212. package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js.map +1 -0
  213. package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.d.ts +3 -0
  214. package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js +38 -0
  215. package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js.map +1 -0
  216. package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.d.ts +3 -0
  217. package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js +27 -0
  218. package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js.map +1 -0
  219. package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.d.ts +3 -0
  220. package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js +21 -0
  221. package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js.map +1 -0
  222. package/es/modules/corporate/CLDA/CLDAClientView/index.d.ts +4 -0
  223. package/es/modules/corporate/CLDA/CLDAClientView/index.js +65 -0
  224. package/es/modules/corporate/CLDA/CLDAClientView/index.js.map +1 -0
  225. package/es/modules/corporate/CLDA/CLDAClientView/index.less +86 -0
  226. package/es/modules/corporate/CLDA/CLDADefaultView/index.d.ts +4 -0
  227. package/es/modules/corporate/CLDA/CLDADefaultView/index.js +61 -0
  228. package/es/modules/corporate/CLDA/CLDADefaultView/index.js.map +1 -0
  229. package/es/modules/corporate/CLDA/CLDADefaultView/index.less +14 -0
  230. package/es/modules/corporate/CLDA/CLDAListView/index.d.ts +19 -0
  231. package/es/modules/corporate/CLDA/CLDAListView/index.js +112 -0
  232. package/es/modules/corporate/CLDA/CLDAListView/index.js.map +1 -0
  233. package/es/modules/corporate/CLDA/CLDAListView/index.less +16 -0
  234. package/es/modules/corporate/CLDA/CLDAListView/state.d.ts +24 -0
  235. package/es/modules/corporate/CLDA/CLDAListView/state.js +73 -0
  236. package/es/modules/corporate/CLDA/CLDAListView/state.js.map +1 -0
  237. package/es/modules/corporate/CLDA/CLDAPropertiesView/index.d.ts +6 -0
  238. package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js +20 -0
  239. package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js.map +1 -0
  240. package/es/modules/corporate/CLDA/CLDAPropertiesView/index.less +10 -0
  241. package/es/modules/corporate/CLDA/ChangeAddress2021/index.d.ts +3 -0
  242. package/es/modules/corporate/CLDA/ChangeAddress2021/index.js +61 -0
  243. package/es/modules/corporate/CLDA/ChangeAddress2021/index.js.map +1 -0
  244. package/es/modules/corporate/CLDA/ChangeAddress2021/index.less +45 -0
  245. package/es/modules/corporate/CLDA/ChangeAddress2021/state.d.ts +46 -0
  246. package/es/modules/corporate/CLDA/ChangeAddress2021/state.js +204 -0
  247. package/es/modules/corporate/CLDA/ChangeAddress2021/state.js.map +1 -0
  248. package/es/modules/corporate/CLDA/components/CLDADetails/index.d.ts +6 -0
  249. package/es/modules/corporate/CLDA/components/CLDADetails/index.js +54 -0
  250. package/es/modules/corporate/CLDA/components/CLDADetails/index.js.map +1 -0
  251. package/es/modules/corporate/CLDA/components/CLDADetails/index.less +5 -0
  252. package/es/modules/corporate/CLDA/components/CLDAItem/index.d.ts +6 -0
  253. package/es/modules/corporate/CLDA/components/CLDAItem/index.js +26 -0
  254. package/es/modules/corporate/CLDA/components/CLDAItem/index.js.map +1 -0
  255. package/es/modules/corporate/CLDA/components/CLDAItem/index.less +25 -0
  256. package/es/modules/corporate/CLDA/components/NewCLDA/index.d.ts +8 -0
  257. package/es/modules/corporate/CLDA/components/NewCLDA/index.js +46 -0
  258. package/es/modules/corporate/CLDA/components/NewCLDA/index.js.map +1 -0
  259. package/es/modules/corporate/CLDA/components/index.d.ts +8 -0
  260. package/es/modules/corporate/CLDA/components/index.js +9 -0
  261. package/es/modules/corporate/CLDA/components/index.js.map +1 -0
  262. package/es/modules/corporate/CLDA/controls/DocumentStatusLabel/index.d.ts +13 -0
  263. package/es/modules/corporate/CLDA/controls/DocumentStatusLabel/index.js +53 -0
  264. package/es/modules/corporate/CLDA/controls/DocumentStatusLabel/index.js.map +1 -0
  265. package/es/modules/corporate/CLDA/controls/DocumentStatusLabel/index.less +67 -0
  266. package/es/modules/corporate/CLDA/controls/ModeIcon/index.d.ts +17 -0
  267. package/es/modules/corporate/CLDA/controls/ModeIcon/index.js +44 -0
  268. package/es/modules/corporate/CLDA/controls/ModeIcon/index.js.map +1 -0
  269. package/es/modules/corporate/CLDA/controls/ModeIcon/index.less +20 -0
  270. package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/index.d.ts +3 -0
  271. package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/index.js +21 -0
  272. package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/index.js.map +1 -0
  273. package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.d.ts +18 -0
  274. package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.js +52 -0
  275. package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.js.map +1 -0
  276. package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/index.d.ts +3 -0
  277. package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/index.js +21 -0
  278. package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/index.js.map +1 -0
  279. package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.d.ts +16 -0
  280. package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.js +45 -0
  281. package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.js.map +1 -0
  282. package/es/modules/corporate/CLDA/controls/filters/index.d.ts +2 -0
  283. package/es/modules/corporate/CLDA/controls/filters/index.js +3 -0
  284. package/es/modules/corporate/CLDA/controls/filters/index.js.map +1 -0
  285. package/es/modules/corporate/CorporateDefaultView/index.js +7 -4
  286. package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -1
  287. package/es/modules/corporate/CorporateSelect/index.d.ts +18 -0
  288. package/es/modules/corporate/CorporateSelect/index.js +29 -0
  289. package/es/modules/corporate/CorporateSelect/index.js.map +1 -0
  290. package/es/modules/corporate/DocumentIconList/index.js +5 -5
  291. package/es/modules/corporate/DocumentIconList/index.js.map +1 -1
  292. package/es/modules/corporate/FilingRecord/AnnualFilings/index.d.ts +6 -0
  293. package/es/modules/corporate/FilingRecord/AnnualFilings/index.js +52 -0
  294. package/es/modules/corporate/FilingRecord/AnnualFilings/index.js.map +1 -0
  295. package/es/modules/corporate/FilingRecord/AnnualFilings/index.less +8 -0
  296. package/es/modules/corporate/FilingRecord/FilingRecordItem/index.d.ts +6 -0
  297. package/es/modules/corporate/FilingRecord/FilingRecordItem/index.js +36 -0
  298. package/es/modules/corporate/FilingRecord/FilingRecordItem/index.js.map +1 -0
  299. package/es/modules/corporate/FilingRecord/FilingRecordItem/index.less +12 -0
  300. package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.d.ts +8 -0
  301. package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.js +49 -0
  302. package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.js.map +1 -0
  303. package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.less +56 -0
  304. package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.d.ts +7 -0
  305. package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.js +47 -0
  306. package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.js.map +1 -0
  307. package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.less +71 -0
  308. package/es/modules/corporate/FilingRecord/NewFilingYearDialog/index.d.ts +6 -0
  309. package/es/modules/corporate/FilingRecord/NewFilingYearDialog/index.js +29 -0
  310. package/es/modules/corporate/FilingRecord/NewFilingYearDialog/index.js.map +1 -0
  311. package/es/modules/corporate/LegalGeneration/components/AGM/Fields.d.ts +3 -0
  312. package/es/modules/corporate/LegalGeneration/components/AGM/Fields.js +29 -0
  313. package/es/modules/corporate/LegalGeneration/components/AGM/Fields.js.map +1 -0
  314. package/es/modules/corporate/LegalGeneration/components/AGM/Form.d.ts +3 -0
  315. package/es/modules/corporate/LegalGeneration/components/AGM/Form.js +17 -0
  316. package/es/modules/corporate/LegalGeneration/components/AGM/Form.js.map +1 -0
  317. package/es/modules/corporate/LegalGeneration/components/AGM/interface.d.ts +19 -0
  318. package/es/modules/corporate/LegalGeneration/components/AGM/interface.js +2 -0
  319. package/es/modules/corporate/LegalGeneration/components/AGM/interface.js.map +1 -0
  320. package/es/modules/corporate/LegalGeneration/components/AGMNomineeStatement.d.ts +3 -0
  321. package/es/modules/corporate/LegalGeneration/components/AGMNomineeStatement.js +10 -0
  322. package/es/modules/corporate/LegalGeneration/components/AGMNomineeStatement.js.map +1 -0
  323. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/Fields.d.ts +3 -0
  324. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/Fields.js +21 -0
  325. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/Fields.js.map +1 -0
  326. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/Form.d.ts +3 -0
  327. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/Form.js +17 -0
  328. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/Form.js.map +1 -0
  329. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/interface.d.ts +11 -0
  330. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/interface.js +2 -0
  331. package/es/modules/corporate/LegalGeneration/components/AgentAppointment/interface.js.map +1 -0
  332. package/es/modules/corporate/LegalGeneration/components/AppointOfficer.d.ts +3 -0
  333. package/es/modules/corporate/LegalGeneration/components/AppointOfficer.js +10 -0
  334. package/es/modules/corporate/LegalGeneration/components/AppointOfficer.js.map +1 -0
  335. package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.d.ts +3 -0
  336. package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js +51 -0
  337. package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js.map +1 -0
  338. package/es/modules/corporate/LegalGeneration/components/BankOpening/Form.d.ts +3 -0
  339. package/es/modules/corporate/LegalGeneration/components/BankOpening/Form.js +20 -0
  340. package/es/modules/corporate/LegalGeneration/components/BankOpening/Form.js.map +1 -0
  341. package/es/modules/corporate/LegalGeneration/components/BankOpening/interface.d.ts +27 -0
  342. package/es/modules/corporate/LegalGeneration/components/BankOpening/interface.js +2 -0
  343. package/es/modules/corporate/LegalGeneration/components/BankOpening/interface.js.map +1 -0
  344. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/Fields.d.ts +3 -0
  345. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/Fields.js +16 -0
  346. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/Fields.js.map +1 -0
  347. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/Form.d.ts +3 -0
  348. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/Form.js +17 -0
  349. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/Form.js.map +1 -0
  350. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/interface.d.ts +11 -0
  351. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/interface.js +2 -0
  352. package/es/modules/corporate/LegalGeneration/components/ChangeAddress/interface.js.map +1 -0
  353. package/es/modules/corporate/LegalGeneration/components/ChangeCompanyName.d.ts +3 -0
  354. package/es/modules/corporate/LegalGeneration/components/ChangeCompanyName.js +10 -0
  355. package/es/modules/corporate/LegalGeneration/components/ChangeCompanyName.js.map +1 -0
  356. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/Fields.d.ts +3 -0
  357. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/Fields.js +15 -0
  358. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/Fields.js.map +1 -0
  359. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/Form.d.ts +3 -0
  360. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/Form.js +17 -0
  361. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/Form.js.map +1 -0
  362. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/interface.d.ts +11 -0
  363. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/interface.js +2 -0
  364. package/es/modules/corporate/LegalGeneration/components/ChangeFYE/interface.js.map +1 -0
  365. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/Fields.d.ts +3 -0
  366. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/Fields.js +43 -0
  367. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/Fields.js.map +1 -0
  368. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/Form.d.ts +3 -0
  369. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/Form.js +17 -0
  370. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/Form.js.map +1 -0
  371. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/interface.d.ts +19 -0
  372. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/interface.js +2 -0
  373. package/es/modules/corporate/LegalGeneration/components/ConsolidateDivide/interface.js.map +1 -0
  374. package/es/modules/corporate/LegalGeneration/components/ContractAgreement.d.ts +3 -0
  375. package/es/modules/corporate/LegalGeneration/components/ContractAgreement.js +10 -0
  376. package/es/modules/corporate/LegalGeneration/components/ContractAgreement.js.map +1 -0
  377. package/es/modules/corporate/LegalGeneration/components/CorporateRepresentative.d.ts +3 -0
  378. package/es/modules/corporate/LegalGeneration/components/CorporateRepresentative.js +10 -0
  379. package/es/modules/corporate/LegalGeneration/components/CorporateRepresentative.js.map +1 -0
  380. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/Fields.d.ts +3 -0
  381. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/Fields.js +11 -0
  382. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/Fields.js.map +1 -0
  383. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/Form.d.ts +3 -0
  384. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/Form.js +17 -0
  385. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/Form.js.map +1 -0
  386. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/interface.d.ts +7 -0
  387. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/interface.js +2 -0
  388. package/es/modules/corporate/LegalGeneration/components/DispenseAGM/interface.js.map +1 -0
  389. package/es/modules/corporate/LegalGeneration/components/EmptyResolution.d.ts +3 -0
  390. package/es/modules/corporate/LegalGeneration/components/EmptyResolution.js +10 -0
  391. package/es/modules/corporate/LegalGeneration/components/EmptyResolution.js.map +1 -0
  392. package/es/modules/corporate/LegalGeneration/components/Footer/index.d.ts +5 -0
  393. package/es/modules/corporate/LegalGeneration/components/Footer/index.js +9 -0
  394. package/es/modules/corporate/LegalGeneration/components/Footer/index.js.map +1 -0
  395. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/Fields.d.ts +3 -0
  396. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/Fields.js +27 -0
  397. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/Fields.js.map +1 -0
  398. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/Form.d.ts +3 -0
  399. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/Form.js +17 -0
  400. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/Form.js.map +1 -0
  401. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/interface.d.ts +17 -0
  402. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/interface.js +2 -0
  403. package/es/modules/corporate/LegalGeneration/components/IncorporationDocuments/interface.js.map +1 -0
  404. package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.d.ts +3 -0
  405. package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js +67 -0
  406. package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js.map +1 -0
  407. package/es/modules/corporate/LegalGeneration/components/IssueShares/Form.d.ts +3 -0
  408. package/es/modules/corporate/LegalGeneration/components/IssueShares/Form.js +20 -0
  409. package/es/modules/corporate/LegalGeneration/components/IssueShares/Form.js.map +1 -0
  410. package/es/modules/corporate/LegalGeneration/components/IssueShares/interface.d.ts +40 -0
  411. package/es/modules/corporate/LegalGeneration/components/IssueShares/interface.js +2 -0
  412. package/es/modules/corporate/LegalGeneration/components/IssueShares/interface.js.map +1 -0
  413. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/Fields.d.ts +3 -0
  414. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/Fields.js +15 -0
  415. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/Fields.js.map +1 -0
  416. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/Form.d.ts +3 -0
  417. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/Form.js +17 -0
  418. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/Form.js.map +1 -0
  419. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/interface.d.ts +11 -0
  420. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/interface.js +2 -0
  421. package/es/modules/corporate/LegalGeneration/components/NomineeAppointment/interface.js.map +1 -0
  422. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/Fields.d.ts +3 -0
  423. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/Fields.js +24 -0
  424. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/Fields.js.map +1 -0
  425. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/Form.d.ts +3 -0
  426. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/Form.js +17 -0
  427. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/Form.js.map +1 -0
  428. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/interface.d.ts +11 -0
  429. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/interface.js +2 -0
  430. package/es/modules/corporate/LegalGeneration/components/NomineeTerminationForm/interface.js.map +1 -0
  431. package/es/modules/corporate/LegalGeneration/components/NoticeOfResolution.d.ts +3 -0
  432. package/es/modules/corporate/LegalGeneration/components/NoticeOfResolution.js +10 -0
  433. package/es/modules/corporate/LegalGeneration/components/NoticeOfResolution.js.map +1 -0
  434. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/Fields.d.ts +3 -0
  435. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/Fields.js +32 -0
  436. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/Fields.js.map +1 -0
  437. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/Form.d.ts +3 -0
  438. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/Form.js +17 -0
  439. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/Form.js.map +1 -0
  440. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/interface.d.ts +21 -0
  441. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/interface.js +2 -0
  442. package/es/modules/corporate/LegalGeneration/components/PowerOfAttroney/interface.js.map +1 -0
  443. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/Fields.d.ts +3 -0
  444. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/Fields.js +29 -0
  445. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/Fields.js.map +1 -0
  446. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/Form.d.ts +3 -0
  447. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/Form.js +17 -0
  448. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/Form.js.map +1 -0
  449. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/interface.d.ts +17 -0
  450. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/interface.js +2 -0
  451. package/es/modules/corporate/LegalGeneration/components/ResignationLetter/interface.js.map +1 -0
  452. package/es/modules/corporate/LegalGeneration/components/SettingDialog/index.d.ts +7 -0
  453. package/es/modules/corporate/LegalGeneration/components/SettingDialog/index.js +29 -0
  454. package/es/modules/corporate/LegalGeneration/components/SettingDialog/index.js.map +1 -0
  455. package/es/modules/corporate/LegalGeneration/components/SettingDialog/index.less +14 -0
  456. package/es/modules/corporate/LegalGeneration/components/ShareReduction/Fields.d.ts +3 -0
  457. package/es/modules/corporate/LegalGeneration/components/ShareReduction/Fields.js +28 -0
  458. package/es/modules/corporate/LegalGeneration/components/ShareReduction/Fields.js.map +1 -0
  459. package/es/modules/corporate/LegalGeneration/components/ShareReduction/Form.d.ts +3 -0
  460. package/es/modules/corporate/LegalGeneration/components/ShareReduction/Form.js +17 -0
  461. package/es/modules/corporate/LegalGeneration/components/ShareReduction/Form.js.map +1 -0
  462. package/es/modules/corporate/LegalGeneration/components/ShareReduction/interface.d.ts +17 -0
  463. package/es/modules/corporate/LegalGeneration/components/ShareReduction/interface.js +2 -0
  464. package/es/modules/corporate/LegalGeneration/components/ShareReduction/interface.js.map +1 -0
  465. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/Fields.d.ts +3 -0
  466. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/Fields.js +43 -0
  467. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/Fields.js.map +1 -0
  468. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/Form.d.ts +3 -0
  469. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/Form.js +17 -0
  470. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/Form.js.map +1 -0
  471. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/interface.d.ts +29 -0
  472. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/interface.js +2 -0
  473. package/es/modules/corporate/LegalGeneration/components/ShareTransfer/interface.js.map +1 -0
  474. package/es/modules/corporate/LegalGeneration/components/StrikeOff.d.ts +3 -0
  475. package/es/modules/corporate/LegalGeneration/components/StrikeOff.js +10 -0
  476. package/es/modules/corporate/LegalGeneration/components/StrikeOff.js.map +1 -0
  477. package/es/modules/corporate/LegalGeneration/components/SubmitButton.d.ts +5 -0
  478. package/es/modules/corporate/LegalGeneration/components/SubmitButton.js +9 -0
  479. package/es/modules/corporate/LegalGeneration/components/SubmitButton.js.map +1 -0
  480. package/es/modules/corporate/LegalGeneration/components/index.d.ts +11 -0
  481. package/es/modules/corporate/LegalGeneration/components/index.js +12 -0
  482. package/es/modules/corporate/LegalGeneration/components/index.js.map +1 -0
  483. package/es/modules/corporate/LegalGeneration/fields/AGMNomineeStatementFields.d.ts +3 -0
  484. package/es/modules/corporate/LegalGeneration/fields/AGMNomineeStatementFields.js +11 -0
  485. package/es/modules/corporate/LegalGeneration/fields/AGMNomineeStatementFields.js.map +1 -0
  486. package/es/modules/corporate/LegalGeneration/fields/AppointOfficerFields.d.ts +3 -0
  487. package/es/modules/corporate/LegalGeneration/fields/AppointOfficerFields.js +71 -0
  488. package/es/modules/corporate/LegalGeneration/fields/AppointOfficerFields.js.map +1 -0
  489. package/es/modules/corporate/LegalGeneration/fields/ChangeCompanyNameFields.d.ts +3 -0
  490. package/es/modules/corporate/LegalGeneration/fields/ChangeCompanyNameFields.js +16 -0
  491. package/es/modules/corporate/LegalGeneration/fields/ChangeCompanyNameFields.js.map +1 -0
  492. package/es/modules/corporate/LegalGeneration/fields/ContractAgreementFields.d.ts +3 -0
  493. package/es/modules/corporate/LegalGeneration/fields/ContractAgreementFields.js +16 -0
  494. package/es/modules/corporate/LegalGeneration/fields/ContractAgreementFields.js.map +1 -0
  495. package/es/modules/corporate/LegalGeneration/fields/CorporateRepresentativeFields.d.ts +3 -0
  496. package/es/modules/corporate/LegalGeneration/fields/CorporateRepresentativeFields.js +38 -0
  497. package/es/modules/corporate/LegalGeneration/fields/CorporateRepresentativeFields.js.map +1 -0
  498. package/es/modules/corporate/LegalGeneration/fields/EmptyResolutionFields.d.ts +3 -0
  499. package/es/modules/corporate/LegalGeneration/fields/EmptyResolutionFields.js +17 -0
  500. package/es/modules/corporate/LegalGeneration/fields/EmptyResolutionFields.js.map +1 -0
  501. package/es/modules/corporate/LegalGeneration/fields/NoticeOfResolutionFields.d.ts +3 -0
  502. package/es/modules/corporate/LegalGeneration/fields/NoticeOfResolutionFields.js +28 -0
  503. package/es/modules/corporate/LegalGeneration/fields/NoticeOfResolutionFields.js.map +1 -0
  504. package/es/modules/corporate/LegalGeneration/fields/StrikeOffFields.d.ts +3 -0
  505. package/es/modules/corporate/LegalGeneration/fields/StrikeOffFields.js +36 -0
  506. package/es/modules/corporate/LegalGeneration/fields/StrikeOffFields.js.map +1 -0
  507. package/es/modules/corporate/LegalGeneration/fields/index.d.ts +8 -0
  508. package/es/modules/corporate/LegalGeneration/fields/index.js +9 -0
  509. package/es/modules/corporate/LegalGeneration/fields/index.js.map +1 -0
  510. package/es/modules/corporate/LegalGeneration/form/AGMNomineeStatementForm.d.ts +10 -0
  511. package/es/modules/corporate/LegalGeneration/form/AGMNomineeStatementForm.js +18 -0
  512. package/es/modules/corporate/LegalGeneration/form/AGMNomineeStatementForm.js.map +1 -0
  513. package/es/modules/corporate/LegalGeneration/form/AppointOfficerForm.d.ts +31 -0
  514. package/es/modules/corporate/LegalGeneration/form/AppointOfficerForm.js +46 -0
  515. package/es/modules/corporate/LegalGeneration/form/AppointOfficerForm.js.map +1 -0
  516. package/es/modules/corporate/LegalGeneration/form/ChangeCompanyNameForm.d.ts +14 -0
  517. package/es/modules/corporate/LegalGeneration/form/ChangeCompanyNameForm.js +20 -0
  518. package/es/modules/corporate/LegalGeneration/form/ChangeCompanyNameForm.js.map +1 -0
  519. package/es/modules/corporate/LegalGeneration/form/ContractAgreementForm.d.ts +14 -0
  520. package/es/modules/corporate/LegalGeneration/form/ContractAgreementForm.js +24 -0
  521. package/es/modules/corporate/LegalGeneration/form/ContractAgreementForm.js.map +1 -0
  522. package/es/modules/corporate/LegalGeneration/form/CorporateRepresentativeForm.d.ts +26 -0
  523. package/es/modules/corporate/LegalGeneration/form/CorporateRepresentativeForm.js +40 -0
  524. package/es/modules/corporate/LegalGeneration/form/CorporateRepresentativeForm.js.map +1 -0
  525. package/es/modules/corporate/LegalGeneration/form/EmptyResolutionForm.d.ts +14 -0
  526. package/es/modules/corporate/LegalGeneration/form/EmptyResolutionForm.js +25 -0
  527. package/es/modules/corporate/LegalGeneration/form/EmptyResolutionForm.js.map +1 -0
  528. package/es/modules/corporate/LegalGeneration/form/NoticeOfResolutionForm.d.ts +21 -0
  529. package/es/modules/corporate/LegalGeneration/form/NoticeOfResolutionForm.js +29 -0
  530. package/es/modules/corporate/LegalGeneration/form/NoticeOfResolutionForm.js.map +1 -0
  531. package/es/modules/corporate/LegalGeneration/form/StrikeOffForm.d.ts +19 -0
  532. package/es/modules/corporate/LegalGeneration/form/StrikeOffForm.js +27 -0
  533. package/es/modules/corporate/LegalGeneration/form/StrikeOffForm.js.map +1 -0
  534. package/es/modules/corporate/LegalGeneration/form/index.d.ts +8 -0
  535. package/es/modules/corporate/LegalGeneration/form/index.js +9 -0
  536. package/es/modules/corporate/LegalGeneration/form/index.js.map +1 -0
  537. package/es/modules/corporate/LegalGeneration/index.d.ts +11 -0
  538. package/es/modules/corporate/LegalGeneration/index.js +157 -0
  539. package/es/modules/corporate/LegalGeneration/index.js.map +1 -0
  540. package/es/modules/corporate/LegalGeneration/index.less +73 -0
  541. package/es/modules/corporate/Service/NewServiceDialog/index.d.ts +7 -0
  542. package/es/modules/corporate/Service/NewServiceDialog/index.js +43 -0
  543. package/es/modules/corporate/Service/NewServiceDialog/index.js.map +1 -0
  544. package/es/modules/corporate/Service/NewServiceDialog/index.less +27 -0
  545. package/es/modules/corporate/Service/ServiceItem/index.d.ts +8 -0
  546. package/es/modules/corporate/Service/ServiceItem/index.js +23 -0
  547. package/es/modules/corporate/Service/ServiceItem/index.js.map +1 -0
  548. package/es/modules/corporate/Service/ServiceItem/index.less +23 -0
  549. package/es/modules/corporate/Service/ServiceList/index.d.ts +6 -0
  550. package/es/modules/corporate/Service/ServiceList/index.js +59 -0
  551. package/es/modules/corporate/Service/ServiceList/index.js.map +1 -0
  552. package/es/modules/corporate/ServiceType/ServiceTypeDefaultView/index.d.ts +3 -0
  553. package/es/modules/corporate/ServiceType/ServiceTypeDefaultView/index.js +18 -0
  554. package/es/modules/corporate/ServiceType/ServiceTypeDefaultView/index.js.map +1 -0
  555. package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.d.ts +6 -0
  556. package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.js +126 -0
  557. package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.js.map +1 -0
  558. package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.less +48 -0
  559. package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.d.ts +20 -0
  560. package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.js +37 -0
  561. package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.js.map +1 -0
  562. package/es/modules/corporate/ServiceType/ServiceTypeSelect/index.d.ts +7 -0
  563. package/es/modules/corporate/ServiceType/ServiceTypeSelect/index.js +18 -0
  564. package/es/modules/corporate/ServiceType/ServiceTypeSelect/index.js.map +1 -0
  565. package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.d.ts +4 -0
  566. package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.js +65 -0
  567. package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.js.map +1 -0
  568. package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.less +30 -0
  569. package/es/modules/corporate/Statement/index.d.ts +4 -0
  570. package/es/modules/corporate/Statement/index.js +51 -0
  571. package/es/modules/corporate/Statement/index.js.map +1 -0
  572. package/es/modules/corporate/Statement/index.less +16 -0
  573. package/es/modules/corporate/company/CompanyDefaultView/index.d.ts +1 -2
  574. package/es/modules/corporate/company/CompanyDefaultView/index.js +51 -28
  575. package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -1
  576. package/es/modules/corporate/company/CompanyDefaultView/index.less +25 -0
  577. package/es/modules/corporate/company/CompanyDetailsView/index.js +69 -71
  578. package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -1
  579. package/es/modules/corporate/company/CompanyDetailsView/index.less +8 -4
  580. package/es/modules/corporate/company/Identity/IdentifyDetail/index.d.ts +10 -3
  581. package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +9 -15
  582. package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -1
  583. package/es/modules/corporate/company/Identity/IdentityInformation/index.d.ts +9 -3
  584. package/es/modules/corporate/company/Identity/IdentityInformation/index.js +39 -30
  585. package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -1
  586. package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +3 -0
  587. package/es/modules/corporate/company/Identity/IdentityInformation/state.js +3 -0
  588. package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -1
  589. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +43 -21
  590. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -1
  591. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +8 -5
  592. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -1
  593. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +13 -10
  594. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -1
  595. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +31 -16
  596. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -1
  597. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +43 -15
  598. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -1
  599. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +1 -1
  600. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +3 -49
  601. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -1
  602. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +37 -21
  603. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +79 -25
  604. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -1
  605. package/es/modules/corporate/company/InlineEditAddress/index.d.ts +14 -0
  606. package/es/modules/corporate/company/InlineEditAddress/index.js +48 -0
  607. package/es/modules/corporate/company/InlineEditAddress/index.js.map +1 -0
  608. package/es/modules/corporate/company/InlineEditAddress/index.less +16 -0
  609. package/es/modules/corporate/company/InlineEditCountry/index.d.ts +6 -0
  610. package/es/modules/corporate/company/InlineEditCountry/index.js +18 -0
  611. package/es/modules/corporate/company/InlineEditCountry/index.js.map +1 -0
  612. package/es/modules/corporate/company/InlineEditType/index.d.ts +8 -0
  613. package/es/modules/corporate/company/InlineEditType/index.js +27 -0
  614. package/es/modules/corporate/company/InlineEditType/index.js.map +1 -0
  615. package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.d.ts +4 -0
  616. package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.js +21 -0
  617. package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.js.map +1 -0
  618. package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.less +6 -0
  619. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.d.ts +16 -0
  620. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.js +26 -0
  621. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.js.map +1 -0
  622. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.less +7 -0
  623. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.d.ts +10 -0
  624. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.js +44 -0
  625. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.js.map +1 -0
  626. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.less +36 -0
  627. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.d.ts +7 -0
  628. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.js +34 -0
  629. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.js.map +1 -0
  630. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.less +12 -0
  631. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.d.ts +7 -0
  632. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.js +21 -0
  633. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.js.map +1 -0
  634. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.d.ts +15 -0
  635. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js +59 -0
  636. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js.map +1 -0
  637. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.less +39 -0
  638. package/es/modules/corporate/company/MemberRegister/components/Details/index.d.ts +7 -0
  639. package/es/modules/corporate/company/MemberRegister/components/Details/index.js +50 -0
  640. package/es/modules/corporate/company/MemberRegister/components/Details/index.js.map +1 -0
  641. package/es/modules/corporate/company/MemberRegister/components/Details/index.less +14 -0
  642. package/es/modules/corporate/company/MemberRegister/components/MemberShareTransactions/index.d.ts +11 -0
  643. package/es/modules/corporate/company/MemberRegister/components/MemberShareTransactions/index.js +46 -0
  644. package/es/modules/corporate/company/MemberRegister/components/MemberShareTransactions/index.js.map +1 -0
  645. package/es/modules/corporate/company/MemberRegister/components/MemberShareTransactions/index.less +12 -0
  646. package/es/modules/corporate/company/MemberRegister/components/ShareTransactionsDataIcon/index.d.ts +7 -0
  647. package/es/modules/corporate/company/MemberRegister/components/ShareTransactionsDataIcon/index.js +14 -0
  648. package/es/modules/corporate/company/MemberRegister/components/ShareTransactionsDataIcon/index.js.map +1 -0
  649. package/es/modules/corporate/company/MemberRegister/components/ShareTransactionsDataIcon/index.less +8 -0
  650. package/es/modules/corporate/company/Officer/ContactInformation/index.d.ts +1 -0
  651. package/es/modules/corporate/company/Officer/ContactInformation/index.js +30 -40
  652. package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -1
  653. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.d.ts +1 -3
  654. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +9 -21
  655. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -1
  656. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.less +1 -43
  657. package/es/modules/corporate/company/Officer/OfficerInformation/index.d.ts +9 -1
  658. package/es/modules/corporate/company/Officer/OfficerInformation/index.js +51 -11
  659. package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -1
  660. package/es/modules/corporate/company/Officer/OfficerInformation/state.d.ts +5 -0
  661. package/es/modules/corporate/company/Officer/OfficerInformation/state.js +8 -0
  662. package/es/modules/corporate/company/Officer/OfficerInformation/state.js.map +1 -0
  663. package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.d.ts +8 -0
  664. package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js +64 -0
  665. package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js.map +1 -0
  666. package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.less +39 -0
  667. package/es/modules/corporate/company/Officer/PositionSelect/index.d.ts +12 -0
  668. package/es/modules/corporate/company/Officer/PositionSelect/index.js +30 -0
  669. package/es/modules/corporate/company/Officer/PositionSelect/index.js.map +1 -0
  670. package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.d.ts +16 -0
  671. package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js +40 -0
  672. package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js.map +1 -0
  673. package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.d.ts +14 -0
  674. package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js +28 -0
  675. package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js.map +1 -0
  676. package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.less +29 -0
  677. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.d.ts +1 -1
  678. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +62 -57
  679. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -1
  680. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.less +7 -10
  681. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +3 -3
  682. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +4 -6
  683. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -1
  684. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.d.ts +2 -1
  685. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +7 -42
  686. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -1
  687. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.less +17 -14
  688. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +1 -1
  689. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -1
  690. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +2 -2
  691. package/es/modules/legalEntity/shareTransactionsRegister/ShareMovementsDataIcon/index.js +8 -7
  692. package/es/modules/legalEntity/shareTransactionsRegister/ShareMovementsDataIcon/index.js.map +1 -1
  693. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js +26 -19
  694. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
  695. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.less +4 -9
  696. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.d.ts +4 -0
  697. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +31 -16
  698. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
  699. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.less +14 -7
  700. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.d.ts +1 -1
  701. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js +1 -1
  702. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js +9 -5
  703. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js.map +1 -1
  704. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +25 -25
  705. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
  706. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.d.ts +3 -0
  707. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +51 -40
  708. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
  709. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.less +7 -0
  710. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +6 -8
  711. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
  712. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +7 -3
  713. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
  714. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +2 -2
  715. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
  716. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +3 -4
  717. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -1
  718. package/es/routes.d.ts +104 -0
  719. package/es/routes.js +191 -10
  720. package/es/routes.js.map +1 -1
  721. package/es/style/common.less +24 -2
  722. package/package.json +17 -13
  723. package/es/modules/corporate/company/CompanyDetailsView/state.d.ts +0 -20
  724. package/es/modules/corporate/company/CompanyDetailsView/state.js +0 -40
  725. package/es/modules/corporate/company/CompanyDetailsView/state.js.map +0 -1
  726. package/es/modules/corporate/company/Identity/data/IdentityStore.js.map +0 -1
  727. package/es/modules/corporate/company/Identity/data/hooks.d.ts +0 -13
  728. package/es/modules/corporate/company/Identity/data/hooks.js +0 -31
  729. package/es/modules/corporate/company/Identity/data/hooks.js.map +0 -1
  730. package/es/modules/corporate/company/Identity/data/index.js.map +0 -1
  731. package/es/modules/corporate/company/Identity/data/interfaces.js +0 -1
  732. package/es/modules/corporate/company/Identity/data/interfaces.js.map +0 -1
  733. package/es/modules/corporate/company/Identity/data/types.d.ts +0 -16
  734. package/es/modules/corporate/company/Identity/data/types.js +0 -1
  735. package/es/modules/corporate/company/Identity/data/types.js.map +0 -1
  736. package/es/modules/corporate/company/Officer/ContactInformation/state.d.ts +0 -20
  737. package/es/modules/corporate/company/Officer/ContactInformation/state.js +0 -30
  738. package/es/modules/corporate/company/Officer/ContactInformation/state.js.map +0 -1
  739. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.d.ts +0 -5
  740. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js.map +0 -1
  741. /package/es/{modules/corporate/company/Identity/data → data/identity}/index.d.ts +0 -0
  742. /package/es/{modules/corporate/company/Identity/data → data/identity}/index.js +0 -0
@@ -1,90 +1,88 @@
1
1
  import "./index.less";
2
- import { Button, DatePicker, Descriptions, Input, Table, Timeline, Tooltip } from "@voplus/antd";
3
- import React, { useState } from "react";
4
- import { useCorporate, useCorporateStore } from "../../../../data/corporate";
5
- import Address from "@voplus/morpho-org/es/components/Address";
2
+ import { useCorporate, useCorporateStore, } from "../../../../data/corporate";
3
+ import { Descriptions, Table, Timeline } from "@voplus/antd";
6
4
  import Card from "@voplus/morpho-ui/es/controls/Card";
7
- import { EditOutlined } from "@ant-design/icons";
8
- import { InputCountry } from "@voplus/morpho-ui";
9
- import Scrollbars from "react-custom-scrollbars";
10
- import { State } from "./state";
5
+ import Column from "@voplus/antd/es/table/Column";
6
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
7
+ import Header from "../../../../components/Header";
8
+ import { InlineEdit } from "@voplus/morpho-ui";
9
+ import InlineEditAddress from "../InlineEditAddress";
10
+ import InlineEditCountry from "../InlineEditCountry";
11
+ import InlineEditType from "../InlineEditType";
12
+ import React from "react";
11
13
  import moment from "moment";
12
14
  import { useObserver } from "mobx-react-lite";
13
15
  const CompanyDetailsView = (props) => {
14
16
  const { id } = props;
15
- const corporate = useCorporate(id);
16
- const [state] = useState(new State());
17
+ const corporate = useCorporate(id, { includes: "registers" });
17
18
  const corporateStore = useCorporateStore();
18
19
  const capital = [
19
20
  {
21
+ Id: "1",
20
22
  Currency: "SGD",
21
23
  Share: "Ordinary",
22
24
  Amount: "$50,000",
23
- UnpaidAmount: "$49,999"
24
- }
25
+ UnpaidAmount: "$49,999",
26
+ },
25
27
  ];
26
- const guaranteed = [{ Currency: "SGD", Amount: "$50,000" }];
27
- return useObserver(() => {
28
- var _a, _b, _c, _d, _e;
29
- return (React.createElement(Scrollbars, null,
30
- React.createElement("div", { className: "company-details-view" },
31
- React.createElement(Card, { shadow: true, className: "card-company" },
32
- React.createElement(Descriptions, { title: "Company", layout: state.editable ? "vertical" : "horizontal", extra: corporate.allowEdit ? (React.createElement(React.Fragment, null, state.editable ? (React.createElement(React.Fragment, null,
33
- React.createElement(Button, { type: "text", onClick: () => (state.editable = false) }, "Cancel"),
34
- React.createElement(Button, { type: "link", loading: state.loading, onClick: onOk }, "Ok"))) : (React.createElement(Tooltip, { title: "Edit" },
35
- React.createElement(Button, { type: "link", onClick: onEdit, className: "hover-edit-btn" },
36
- React.createElement(EditOutlined, null)))))) : ("") },
37
- React.createElement(Descriptions.Item, { label: "Country of Registration" }, state.editable ? (React.createElement(InputCountry, { defaultValue: state.jurisdiction, onChange: (v) => (state.jurisdiction = v) })) : (corporate.jurisdiction)),
38
- React.createElement(Descriptions.Item, { label: "Type" }, corporate.liabilityType),
39
- React.createElement(Descriptions.Item, { label: "Registration Number" }, state.editable ? (React.createElement(Input, { value: state.registrationNumber, onChange: e => (state.registrationNumber = e.target.value) })) : (corporate.registrationNumber)),
40
- React.createElement(Descriptions.Item, { label: "Registration Date" }, state.editable ? (React.createElement(DatePicker, { value: state.registrationDate, onChange: date => (state.registrationDate = date) })) : corporate.registrationDate ? (moment(moment.utc(corporate.registrationDate).toDate()).format("YYYY-MM-DD hh:mm:ss")) : ("")),
41
- React.createElement(Descriptions.Item, { label: "Registered Address" }, state.editable ? (React.createElement(Address, { value: state.registeredAddress, onChange: v => (state.registeredAddress = v) })) : (React.createElement(React.Fragment, null, (_a = corporate.registeredAddress) === null || _a === void 0 ? void 0 :
42
- _a.line1, (_b = corporate.registeredAddress) === null || _b === void 0 ? void 0 :
43
- _b.line2, (_c = corporate.registeredAddress) === null || _c === void 0 ? void 0 :
44
- _c.city, (_d = corporate.registeredAddress) === null || _d === void 0 ? void 0 :
45
- _d.state, (_e = corporate.registeredAddress) === null || _e === void 0 ? void 0 :
46
- _e.country))))),
47
- React.createElement(Card, { shadow: true },
48
- React.createElement("div", { className: "company-amount-title" }, "Capital / Guaranteed Amount"),
49
- React.createElement("h4", null, "Capital"),
50
- React.createElement(Table, { dataSource: capital, size: "middle", pagination: false, bordered: true },
51
- React.createElement(Table.Column, { title: "Currency", dataIndex: "Currency", key: "CapitalCurrency" }),
52
- React.createElement(Table.Column, { title: "Share", dataIndex: "Share", key: "Share" }),
53
- React.createElement(Table.Column, { title: "Amount", dataIndex: "Amount", key: "CapitalAmount" }),
54
- React.createElement(Table.Column, { title: "\u200BUnpaid Amount", dataIndex: "UnpaidAmount", key: "\u200BUnpaidAmount" })),
55
- React.createElement("h4", null, "Guaranteed"),
56
- React.createElement(Table, { dataSource: guaranteed, size: "middle", pagination: false, bordered: true },
57
- React.createElement(Table.Column, { title: "Currency", dataIndex: "Currency", key: "Currency" }),
58
- React.createElement(Table.Column, { title: "Amount", dataIndex: "Amount", key: "Amount" }))),
59
- React.createElement(Card, { shadow: true },
60
- React.createElement("div", { className: "ant-descriptions-title" }, "Upcoming Event"),
61
- React.createElement(Timeline, null,
62
- React.createElement(Timeline.Item, null, "Create a services site 2015-09-01"),
63
- React.createElement(Timeline.Item, null, "Solve initial network problems 2015-09-01"),
64
- React.createElement(Timeline.Item, null, "Technical testing 2015-09-01"),
65
- React.createElement(Timeline.Item, null, "Network problems being solved 2015-09-01"))))));
66
- });
67
- /** hover edit Company detail */
68
- function onEdit() {
69
- const { jurisdiction, registrationNumber, registrationDate, registeredAddress } = corporate;
70
- state.jurisdiction = jurisdiction || "";
71
- state.registrationNumber = registrationNumber;
72
- state.registrationDate = moment(moment.utc(registrationDate).toDate());
73
- state.registeredAddress = (registeredAddress === null || registeredAddress === void 0 ? void 0 : registeredAddress.country) ? registeredAddress : state.defaultAddress;
74
- state.editable = true;
28
+ const guaranteed = [{ Id: "1", Currency: "SGD", Amount: "$50,000" }];
29
+ return useObserver(() => (React.createElement(React.Fragment, null,
30
+ React.createElement(Header, { text: "Company Details" }),
31
+ React.createElement("div", { className: "company-details-view" },
32
+ React.createElement(Card, { shadow: true, className: "card-company" },
33
+ React.createElement(Descriptions, { title: "Company" },
34
+ React.createElement(Descriptions.Item, { label: "Country of Registration" },
35
+ React.createElement(InlineEditCountry, { country: corporate.jurisdiction })),
36
+ React.createElement(Descriptions.Item, { label: "Type" },
37
+ React.createElement(InlineEditType, { type: corporate.corporateType, list: ["Proprietorship", "Company", "Partnership"], readonly: !corporate.allowEdit, onSave: (value) => save({
38
+ CorporateType: value,
39
+ }) })),
40
+ React.createElement(Descriptions.Item, { label: "Liability Type" },
41
+ React.createElement(InlineEditType, { type: corporate.liabilityType, list: ["Unlimited", "LimitedByShares", "LimitedByGuarantee"], readonly: !corporate.allowEdit, onSave: (value) => save({
42
+ LiabilityType: value,
43
+ }) })),
44
+ React.createElement(Descriptions.Item, { label: "Registration Number" },
45
+ React.createElement(InlineEdit, { defaultValue: corporate.registrationNumber, editable: corporate.allowEdit, content: (v) => React.createElement("div", null, v.store.value || "No Registration Number"), onSave: (value) => value &&
46
+ value !== corporate.registrationNumber &&
47
+ save({
48
+ RegistrationNumber: value,
49
+ }) })),
50
+ React.createElement(Descriptions.Item, { label: "Registration Date" },
51
+ React.createElement(InlineEdit, { defaultValue: moment(corporate.registrationDate), editable: corporate.allowEdit, content: (v) => (React.createElement("span", null, v ? moment(v.store.value).format("YYYY-MM-DD") : "No Registration Date")), editor: DateInputEditor, onSave: changeRegistrationDate })),
52
+ React.createElement(Descriptions.Item, { label: "Registered Address" },
53
+ React.createElement(InlineEditAddress, { address: corporate.registeredAddress, readonly: !corporate.allowEdit, modal: true, onChange: (address) => save({
54
+ RegisteredAddress: address,
55
+ }) })))),
56
+ React.createElement(Card, { shadow: true },
57
+ React.createElement("div", { className: "company-amount-title" }, "Capital / Guaranteed Amount"),
58
+ React.createElement("h4", null, "Capital"),
59
+ React.createElement(Table, { dataSource: capital, rowKey: "Id", size: "middle", pagination: false, bordered: true },
60
+ React.createElement(Column, { title: "Currency", dataIndex: "Currency", key: "CapitalCurrency" }),
61
+ React.createElement(Column, { title: "Share", dataIndex: "Share", key: "Share" }),
62
+ React.createElement(Column, { title: "Amount", dataIndex: "Amount", key: "CapitalAmount" }),
63
+ React.createElement(Column, { title: "\u200BUnpaid Amount", dataIndex: "UnpaidAmount", key: "\u200BUnpaidAmount" })),
64
+ React.createElement("h4", null, "Guaranteed"),
65
+ React.createElement(Table, { dataSource: guaranteed, rowKey: "Id", size: "middle", pagination: false, bordered: true },
66
+ React.createElement(Column, { title: "Currency", dataIndex: "Currency", key: "Currency" }),
67
+ React.createElement(Column, { title: "Amount", dataIndex: "Amount", key: "Amount" }))),
68
+ React.createElement(Card, { shadow: true },
69
+ React.createElement("div", { className: "ant-descriptions-title" }, "Upcoming Event"),
70
+ React.createElement(Timeline, null,
71
+ React.createElement(Timeline.Item, null, "Create a services site 2015-09-01"),
72
+ React.createElement(Timeline.Item, null, "Solve initial network problems 2015-09-01"),
73
+ React.createElement(Timeline.Item, null, "Technical testing 2015-09-01"),
74
+ React.createElement(Timeline.Item, null, "Network problems being solved 2015-09-01")))))));
75
+ function changeRegistrationDate(v) {
76
+ // date未变更不保存
77
+ if (moment(v).isSame(corporate.registrationDate, "day"))
78
+ return;
79
+ save({ RegistrationDate: v });
75
80
  }
76
- /** confirm edit */
77
- async function onOk() {
78
- console.log(state, "state.editOption");
79
- state.loading = true;
81
+ async function save(options) {
80
82
  await corporateStore.edit(id, {
81
- RegistrationNumber: state.registrationNumber,
82
- Jurisdiction: state.jurisdiction,
83
- RegisteredAddress: state.registeredAddress,
84
- RegistrationDate: moment(state.registrationDate).format("YYYY-MM-DD")
83
+ data: options,
84
+ error: "message",
85
85
  });
86
- state.loading = false;
87
- state.editable = false;
88
86
  }
89
87
  };
90
88
  export default CompanyDetailsView;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/company/CompanyDetailsView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACjG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MA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F,eAAe,kBAAkB,CAAC"}
@@ -1,9 +1,6 @@
1
1
  :global {
2
2
  .company-details-view {
3
- margin: 20px;
4
- > div + div {
5
- margin-top: 20px;
6
- }
3
+ height: 100%;
7
4
  .company-amount-title {
8
5
  color: rgba(0, 0, 0, 0.85);
9
6
  font-weight: bold;
@@ -17,12 +14,19 @@
17
14
  .ant-timeline {
18
15
  margin-top: 20px;
19
16
  }
17
+ .card-amount {
18
+ margin-bottom: 15px;
19
+ }
20
20
  .card-company {
21
21
  position: relative;
22
+ margin-bottom: 15px;
22
23
  &:hover .hover-edit-btn {
23
24
  display: block;
24
25
  cursor: pointer;
25
26
  }
27
+ .ant-descriptions-item-label {
28
+ font-weight: 500;
29
+ }
26
30
  .ant-descriptions-extra .ant-btn {
27
31
  padding: 0 0 0 10px;
28
32
  height: auto;
@@ -1,6 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import "./index.less";
3
- declare const IdentifyDetail: (props: {
4
- id: string;
5
- }) => JSX.Element;
3
+ declare const IdentifyDetail: {
4
+ (props: {
5
+ id: string;
6
+ officerId: string;
7
+ allowEdit?: boolean;
8
+ }): JSX.Element;
9
+ defaultProps: {
10
+ allowEdit: boolean;
11
+ };
12
+ };
6
13
  export default IdentifyDetail;
@@ -1,31 +1,25 @@
1
1
  import "./index.less";
2
- import { Button, Form, Switch } from "@voplus/antd";
3
2
  import React, { useState } from "react";
3
+ import { Button } from "@voplus/antd";
4
4
  import DocumentIconList from "../../../DocumentIconList";
5
5
  import IdentityInformation from "../IdentityInformation";
6
6
  import Scrollbars from "react-custom-scrollbars";
7
- import { useIdentityStore } from "../data";
7
+ import VerificationInformation from "../../../../../components/VerificationInformation";
8
8
  import { useObserver } from "mobx-react-lite";
9
9
  const IdentifyDetail = (props) => {
10
- const { id } = props;
11
- // switch 下面就是verify, confirm的人和日期....日期要能改
10
+ const { id, officerId, allowEdit } = props;
12
11
  const [visible, setVisible] = useState(false);
13
- const identityStore = useIdentityStore();
14
- console.log(identityStore.load("14dacebf-e57f-49a5-9786-ac30001ec2ea", { reload: true }), "56565");
15
12
  return useObserver(() => (React.createElement(Scrollbars, null,
16
13
  React.createElement("div", { className: "identity-detail company-information" },
17
14
  React.createElement("h3", null, "Verification Information"),
18
- React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 } },
19
- React.createElement(Form.Item, { label: "Verified" },
20
- React.createElement(Switch, null),
21
- React.createElement("div", { className: "operate-record" }, "HaHa verified on 2020-0903")),
22
- React.createElement(Form.Item, { label: "Confirmed" },
23
- React.createElement(Switch, null),
24
- React.createElement("div", { className: "operate-record" }, "HaHa confirmed on 2020-0903"))),
15
+ React.createElement(VerificationInformation, { id: id }),
25
16
  !visible ? (React.createElement(Button, { type: "primary", size: "small", onClick: () => setVisible(true) }, "View Information/Document")) : (React.createElement(React.Fragment, null,
26
- React.createElement(IdentityInformation, { id: "14dacebf-e57f-49a5-9786-ac30001ec2ea" }),
17
+ React.createElement(IdentityInformation, { id: id, allowEdit: allowEdit }),
27
18
  React.createElement("h3", null, "Documents"),
28
- React.createElement(DocumentIconList, { id: id, scroll: false })))))));
19
+ React.createElement(DocumentIconList, { id: officerId, scroll: false })))))));
20
+ };
21
+ IdentifyDetail.defaultProps = {
22
+ allowEdit: true,
29
23
  };
30
24
  export default IdentifyDetail;
31
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAc,IAAI,EAAiB,MAAM,EAAW,MAAM,cAAc,CAAC;AACxF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AAEzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,OAAO,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oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI,CAC3B,CACjB,CACI,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,uBAAuB,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,cAAc,GAAG,CAAC,KAA6D,EAAE,EAAE;IACxF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE3C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,UAAU;QACV,6BAAK,SAAS,EAAC,qCAAqC;YACnD,2DAAiC;YACjC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;YAClC,CAAC,OAAO,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,gCAE1D,CACT,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,CAAC,QAAQ;gBAEd,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI;gBACrD,4CAAkB;gBAClB,oBAAC,gBAAgB,IAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAI,CAClC,CACjB,CACI,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,cAAc,CAAC,YAAY,GAAG;IAC7B,SAAS,EAAE,IAAI;CACf,CAAC;AACF,eAAe,cAAc,CAAC"}
@@ -1,5 +1,11 @@
1
1
  /// <reference types="react" />
2
- declare const IdentityInformation: (props: {
3
- id: string;
4
- }) => JSX.Element;
2
+ declare const IdentityInformation: {
3
+ (props: {
4
+ id: string;
5
+ allowEdit?: boolean;
6
+ }): JSX.Element;
7
+ defaultProps: {
8
+ allowEdit: boolean;
9
+ };
10
+ };
5
11
  export default IdentityInformation;
@@ -1,59 +1,68 @@
1
- import { Button, DatePicker, Form, Input, Select, Skeleton, Tooltip, message } from "@voplus/antd";
2
- import { useIdentity, useIdentityStore } from "../data";
1
+ import { Button, DatePicker, Form, Input, Select, Skeleton, Tooltip, message, } from "@voplus/antd";
3
2
  import React, { useState } from "react";
3
+ import { useIdentity, useIdentityStore } from "../../../../../data/identity";
4
4
  import { EditOutlined } from "@ant-design/icons";
5
5
  import { InputCountry } from "@voplus/morpho-ui";
6
6
  import { State } from "./state";
7
7
  import moment from "moment";
8
8
  import { useObserver } from "mobx-react-lite";
9
9
  const IdentityInformation = (props) => {
10
- const { id } = props;
10
+ const { id, allowEdit } = props;
11
11
  const [state] = useState(new State());
12
12
  const identityStore = useIdentityStore();
13
- const identity = useIdentity(id, { reload: true });
14
- return useObserver(() => (React.createElement(React.Fragment, null, identity.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
13
+ state.identity = useIdentity(id, { reload: true });
14
+ return useObserver(() => (React.createElement(React.Fragment, null, state.identity.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
15
15
  React.createElement("div", { className: "identity-information" },
16
16
  React.createElement("h3", null, "Identity Information"),
17
- React.createElement("div", null, state.editable ? (React.createElement(React.Fragment, null,
18
- React.createElement(Button, { type: "text", onClick: () => (state.editable = false) }, "Cancel"),
17
+ allowEdit && (React.createElement("div", null, state.editable ? (React.createElement(React.Fragment, null,
18
+ React.createElement(Button, { type: "text", onClick: cancel }, "Cancel"),
19
19
  React.createElement(Button, { type: "link", loading: state.loading, onClick: onOk }, "Ok"))) : (React.createElement(Tooltip, { title: "Edit" },
20
20
  React.createElement(Button, { type: "link", onClick: onEdit },
21
- React.createElement(EditOutlined, null)))))),
21
+ React.createElement(EditOutlined, null))))))),
22
22
  React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 } },
23
- React.createElement(Form.Item, { label: "Country", name: "Country", rules: [{ required: true }] }, state.editable ? (React.createElement(InputCountry, { defaultValue: state.Country, onChange: (v) => (state.Country = v) })) : (identity.country)),
24
- React.createElement(Form.Item, { label: "Identity Type", name: "identifyType", rules: [{ required: true }] }, state.editable ? (React.createElement(Select, { defaultValue: state.Type, value: state.Type, onChange: v => (state.Type = v) },
25
- React.createElement(Select.Option, { value: "International Passport" }, "International Passport"),
26
- React.createElement(Select.Option, { value: "Identify Card" }, "Identify Card"))) : (identity.type)),
27
- React.createElement(Form.Item, { label: "Identity #", name: "identity", rules: [{ required: true }] }, state.editable ? (React.createElement(Input, { value: state.Number, defaultValue: state.Number, onChange: e => (state.Number = e.target.value) })) : (identity.number)),
28
- React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: state.Type === "International Passport" }] }, state.editable ? (React.createElement(DatePicker, { defaultValue: state.ExpiryDate, value: state.ExpiryDate, onChange: date => (state.ExpiryDate = date || moment()) })) : (moment(identity.expiryDate).format("YYYY-MM-DD")))))))));
23
+ React.createElement(Form.Item, { label: "Country", name: "Country", rules: [{ required: true }] }, state.editable ? (React.createElement(InputCountry, { defaultValue: state.identity.country, onChange: (v) => (state.identity.country = v) })) : (state.identity.country)),
24
+ React.createElement(Form.Item, { label: "Identity Type", name: "identifyType", rules: [{ required: true }] }, state.editable ? (React.createElement(Select, { defaultValue: state.identity.type, value: state.identity.type, onChange: (v) => (state.identity.type = v) },
25
+ React.createElement(Select.Option, { value: "Passport" }, "International Passport"),
26
+ React.createElement(Select.Option, { value: "IdentityCard" }, "Identify Card"),
27
+ React.createElement(Select.Option, { value: "BusinessRegistration" }, "Business Registration"))) : (state.identity.type)),
28
+ React.createElement(Form.Item, { label: "Identity #", name: "identity", rules: [{ required: true }] }, state.editable ? (React.createElement(Input
29
+ // defaultValue={state.identity.number}
30
+ , {
31
+ // defaultValue={state.identity.number}
32
+ value: state.identity.number, onChange: (e) => (state.identity.number = e.target.value) })) : (state.identity.number
33
+ .toString()
34
+ .slice(-4)
35
+ .padStart(state.identity.number.toString().length, "*"))),
36
+ React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: state.Type === "Passport" }] }, state.editable ? (React.createElement(DatePicker, { defaultValue: moment(state.identity.expiryDate), value: state.identity.expiryDate, onChange: (date) => (state.identity.expiryDate = date) })) : (moment(state.identity.expiryDate).format("YYYY-MM-DD")))))))));
37
+ /** */
38
+ function cancel() {
39
+ state.editable = false;
40
+ }
29
41
  /** hover edit IdentityInformation */
30
42
  function onEdit() {
31
- const { number, country, type, expiryDate } = identity;
32
- state.Number = number || "";
33
- state.Country = country || "";
34
- state.Type = type || "International Passport";
35
- state.ExpiryDate = moment(expiryDate);
36
- state.editable = true;
43
+ state.editable = !!allowEdit;
37
44
  }
38
45
  /** save Identity information */
39
46
  async function onOk() {
40
- if (!state.Number ||
41
- !state.Country ||
42
- (state.Type === "International Passport" && !state.ExpiryDate))
47
+ if (!state.identity.number ||
48
+ !state.identity.country ||
49
+ (state.identity.type === "Passport" && !state.ExpiryDate))
43
50
  return message.warn("Identity information required");
44
- console.log(state, "state");
45
- const { Number, Country, Type, ExpiryDate } = state;
51
+ const { number, country, type, expiryDate } = state.identity;
46
52
  const Options = {
47
- Number,
48
- Country,
49
- Type,
50
- ExpiryDate: moment(ExpiryDate).format("YYYY-MM-DD HH:mm:ss")
53
+ Number: number,
54
+ Country: country,
55
+ Type: type,
56
+ ExpiryDate: moment(expiryDate).format("YYYY-MM-DD"),
51
57
  };
52
58
  state.loading = true;
53
- await identityStore.edit(id, Options);
59
+ await identityStore.edit(id, { data: Options, error: "message" });
54
60
  state.loading = false;
55
61
  return (state.editable = false);
56
62
  }
57
63
  };
64
+ IdentityInformation.defaultProps = {
65
+ allowEdit: true,
66
+ };
58
67
  export default IdentityInformation;
59
68
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EAER,OAAO,EACP,OAAO,EACP,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACrD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,EAAE,EA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,IAAI;YACJ,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC;SAC5D,CAAC;QACF,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,OAAc,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EAER,OAAO,EACP,OAAO,GACP,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,mBAAmB,GAAG,CAAC,KAA0C,EAAE,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,KAAK,CAAC,QAAQ,GAAG,WAAW,CAAC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CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;QAEtD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC7D,MAAM,OAAO,GAAG;YACf,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;SACnD,CAAC;QACF,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,OAAc,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACzE,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AACF,mBAAmB,CAAC,YAAY,GAAG;IAClC,SAAS,EAAE,IAAI;CACf,CAAC;AACF,eAAe,mBAAmB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { IIdentity } from "../../../../../data/identity";
1
2
  import moment from "moment";
2
3
  export declare class State {
3
4
  /** hover on edit */
@@ -10,6 +11,8 @@ export declare class State {
10
11
  Country: string;
11
12
  /** */
12
13
  ExpiryDate: moment.Moment;
14
+ /** */
15
+ identity: IIdentity;
13
16
  /** loading of save */
14
17
  loading: boolean;
15
18
  }
@@ -32,6 +32,9 @@ __decorate([
32
32
  __decorate([
33
33
  observable
34
34
  ], State.prototype, "ExpiryDate", void 0);
35
+ __decorate([
36
+ observable
37
+ ], State.prototype, "identity", void 0);
35
38
  __decorate([
36
39
  observable
37
40
  ], State.prototype, "loading", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/state.ts"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACC,oBAAoB;QACD,aAAQ,GAAG,KAAK,CAAC;QACpC,MAAM;QACa,WAAM,GAAoB,EAAE,CAAC;QAChD,MAAM;QACa,SAAI,GAAG,EAAE,CAAC;QAC7B,MAAM;QACa,YAAO,GAAG,EAAE,CAAC;QAChC,MAAM;QACa,eAAU,GAAkB,MAAM,EAAE,CAAC;QACxD,sBAAsB;QACH,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AAXY;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;qCAAqC;AAEpC;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;sCAAqB;AAEpB;IAAX,UAAU;yCAA6C;AAE5C;IAAX,UAAU;sCAAwB"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/state.ts"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACC,oBAAoB;QACD,aAAQ,GAAG,KAAK,CAAC;QACpC,MAAM;QACa,WAAM,GAAoB,EAAE,CAAC;QAChD,MAAM;QACa,SAAI,GAAG,EAAE,CAAC;QAC7B,MAAM;QACa,YAAO,GAAG,EAAE,CAAC;QAChC,MAAM;QACa,eAAU,GAAkB,MAAM,EAAE,CAAC;QAGxD,sBAAsB;QACH,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AAbY;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;qCAAqC;AAEpC;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;sCAAqB;AAEpB;IAAX,UAAU;yCAA6C;AAE5C;IAAX,UAAU;uCAA4B;AAE3B;IAAX,UAAU;sCAAwB"}
@@ -1,35 +1,57 @@
1
- import { Divider, Radio, Select } from "@voplus/antd";
2
- import { useUnitListEffect } from "@voplus/morpho-org";
1
+ import { Button, Divider, Radio, Select, message } from "@voplus/antd";
2
+ import { useIdentityListEffect, useIdentityStore } from "../../../../../data/identity";
3
3
  import React from "react";
4
4
  import { useLegalContext } from "./state";
5
5
  import { useObserver } from "mobx-react-lite";
6
+ import { useUnitStore } from "@voplus/morpho-org";
6
7
  const Page1 = () => {
7
- const legalContext = useLegalContext();
8
- useUnitListEffect(null, list => {
9
- legalContext.unitList = list || [];
10
- });
11
- return useObserver(() => {
12
- var _a;
13
- return (React.createElement(React.Fragment, null,
14
- React.createElement("div", { className: "select-legal-contact_title" }, "Select Legal Contact"),
15
- React.createElement("div", { className: "select-legal-contact_content" },
16
- React.createElement(Radio.Group, { value: legalContext.operate, onChange: e => (legalContext.operate = e.target.value) },
17
- React.createElement(Radio, { value: "Search", className: "padding-bottom-20" }, "Search an existing contact"),
18
- React.createElement(Select, { value: (_a = legalContext.unit) === null || _a === void 0 ? void 0 : _a.id, showSearch: true, filterOption: filterItems, optionLabelProp: "title", onSelect: onSelect, style: { width: "100%" } }, legalContext.unitList.map(i => (React.createElement(Select.Option, { key: i.id, value: i.id, title: i.name }, i.name)))),
19
- React.createElement(Divider, { plain: true }, "or"),
20
- React.createElement(Radio, { value: "Create" }, "Create a new contact")))));
8
+ const legal = useLegalContext();
9
+ const identityStore = useIdentityStore();
10
+ const unitStore = useUnitStore();
11
+ useIdentityListEffect(null, (list) => {
12
+ legal.contactList = list || [];
13
+ legal.loading = false;
21
14
  });
15
+ return useObserver(() => (React.createElement(React.Fragment, null,
16
+ React.createElement("div", { className: "select-legal-contact_title" }, "Select Legal Contact"),
17
+ React.createElement("div", { className: "select-legal-contact_content" },
18
+ React.createElement(Radio.Group, { value: legal.operate, onChange: (e) => (legal.operate = e.target.value) },
19
+ React.createElement(Radio, { value: "Search", className: "padding-bottom-20" }, "Search an existing contact"),
20
+ React.createElement(Select, { value: legal.identityId, loading: legal.loading, showSearch: true, filterOption: filterItems, optionLabelProp: "title", onSelect: onSelect, style: { width: "100%" } }, legal.contactList.map((i) => (React.createElement(Select.Option, { key: i.id, value: i.id, title: i.identity }, i.identity)))),
21
+ React.createElement(Divider, { plain: true }, "or"),
22
+ React.createElement(Radio, { value: "Create" }, "Create a new contact"))),
23
+ React.createElement("div", { className: "select-legal-contact_footer" },
24
+ React.createElement(Button, { size: "middle", onClick: () => { var _a, _b; return (_b = (_a = legal.props).updateVisible) === null || _b === void 0 ? void 0 : _b.call(_a); } }, "Cancel"),
25
+ React.createElement(Button, { size: "middle", type: "primary", loading: legal.saving, onClick: () => (legal.operate === "Search" ? toPage5() : (legal.step += 1)) }, "Next")))));
22
26
  function filterItems(input, option) {
23
27
  return option.title.toLowerCase().includes(input.toLowerCase());
24
28
  }
25
29
  /** select unit */
26
30
  function onSelect(id) {
27
- const unit = legalContext.unitList.find(x => x.id === id);
28
- if (unit) {
29
- legalContext.unit = unit;
30
- legalContext.identity.unitId = unit.id;
31
+ const contact = legal.contactList.find((x) => x.id === id);
32
+ legal.identityId = id;
33
+ legal.unitId = contact.unitId;
34
+ }
35
+ async function toPage5() {
36
+ if (!legal.identityId)
37
+ return message.warning("Please choose an existing contact!");
38
+ legal.saving = true;
39
+ if (legal.identityId) {
40
+ const identity = await identityStore.load(legal.identityId, { reload: false });
41
+ legal.fistName = identity.fullName;
42
+ legal.number = identity.number || "";
43
+ legal.country = identity.country || "";
44
+ legal.expiryDate = identity.expiryDate;
45
+ }
46
+ if (legal.unitId) {
47
+ const unit = await unitStore.load(legal.unitId, { reload: false });
48
+ legal.phone = unit.phone || "";
49
+ legal.email = unit.email || "";
50
+ if (unit.address)
51
+ legal.address = unit.address;
31
52
  }
32
- console.log(legalContext.unit, "unit");
53
+ legal.saving = false;
54
+ legal.step = 5;
33
55
  }
34
56
  };
35
57
  export default Page1;
@@ -1 +1 @@
1
- {"version":3,"file":"Page1.js","sourceRoot":"","sources":["../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,oBAAC,MAAM,CAAC,MAAM,IAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,IAClD,CAAC,CAAC,IAAI,CACQ,CAChB,CAAC,CACM;oBACT,oBAAC,OAAO,IAAC,KAAK,eAAa;oBAC3B,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,2BAA6B,CACrC,CACT,CACU,CACjB,CAAA;KAAA,CAAC,CAAC;IACH,SAAS,WAAW,CAAC,KAAU,EAAE,MAAW;QAC3C,OAAQ,MAAM,CAAC,KAAgB,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7E,CAAC;IACD,kBAAkB;IAClB,SAAS,QAAQ,CAAC,EAAU;QAC3B,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAU,CAAC;QACnE,IAAI,IAAI,EAAE;YACT,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;YACzB,YAAY,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;SACvC;QAED,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Page1.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAa,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAElG,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAA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