@voplus/morpho-csp 1.2.123 → 1.2.124

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 (151) hide show
  1. package/es/components/Header/index.less +20 -20
  2. package/es/components/RegisteresMenuItem/index.less +10 -10
  3. package/es/data/clda-form/CLDAFormContent.js +4 -0
  4. package/es/data/clda-form/CLDAFormContent.js.map +1 -1
  5. package/es/data/clda-form/interfaces.d.ts +22 -2
  6. package/es/data/clda-form/types.d.ts +44 -17
  7. package/es/modules/account/components/AccountOrganizations/index.less +26 -26
  8. package/es/modules/account/components/AccountPropertiesView/index.less +10 -10
  9. package/es/modules/account/pages/AccountDefaultView/index.less +8 -8
  10. package/es/modules/corporate/clda/components/CLDADetails/index.less +5 -5
  11. package/es/modules/corporate/clda/components/CLDAItem/index.less +41 -41
  12. package/es/modules/corporate/clda/components/CLDAListView/index.less +30 -30
  13. package/es/modules/corporate/clda/components/CLDAProperties/index.less +15 -15
  14. package/es/modules/corporate/clda/components/CLDAPropertiesView/index.less +10 -10
  15. package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.less +13 -13
  16. package/es/modules/corporate/clda/components/CLDASendForm/index.less +47 -47
  17. package/es/modules/corporate/clda/components/NewCLDAForm/index.less +6 -6
  18. package/es/modules/corporate/clda/controls/CLDAStatusButton/index.less +58 -58
  19. package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.less +8 -8
  20. package/es/modules/corporate/clda/controls/ModeIcon/index.less +20 -20
  21. package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.less +14 -14
  22. package/es/modules/corporate/clda/pages/CLDAClientView/index.less +84 -84
  23. package/es/modules/corporate/clda/pages/CLDASettingsPage/index.less +59 -59
  24. package/es/modules/corporate/clda/pages/ChangeAddress2021/index.less +40 -40
  25. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.less +91 -91
  26. package/es/modules/corporate/company/components/CompanyDetailsView/index.less +40 -40
  27. package/es/modules/corporate/company/components/InlineEditAddress/index.less +16 -16
  28. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.less +41 -41
  29. package/es/modules/corporate/company/controller-register/components/ControllerList/index.less +15 -15
  30. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +51 -51
  31. package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.less +4 -4
  32. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.less +24 -24
  33. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +5 -5
  34. package/es/modules/corporate/company/controls/CorporateMenu/index.less +35 -35
  35. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.less +64 -64
  36. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.less +61 -61
  37. package/es/modules/corporate/company/identity/components/IdentityItem/index.less +48 -48
  38. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.less +55 -55
  39. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.less +59 -59
  40. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.less +54 -54
  41. package/es/modules/corporate/company/member-register/components/CompanyMemberAvatar/index.less +7 -7
  42. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +35 -35
  43. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +12 -12
  44. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.less +44 -44
  45. package/es/modules/corporate/company/member-register/components/Details/index.less +14 -14
  46. package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.less +12 -12
  47. package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.less +8 -8
  48. package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less +6 -6
  49. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +40 -40
  50. package/es/modules/corporate/company/officer-register/components/OfficerList/index.less +12 -12
  51. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less +44 -44
  52. package/es/modules/corporate/company/officer-register/controls/OfficerStatusFilter/index.less +5 -5
  53. package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +6 -6
  54. package/es/modules/corporate/company/pages/CompanyDefaultView/index.less +67 -67
  55. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.less +11 -11
  56. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +72 -72
  57. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.less +16 -16
  58. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +89 -89
  59. package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.less +5 -5
  60. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +89 -89
  61. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.less +20 -20
  62. package/es/modules/corporate/components/DocumentIconList/index.less +14 -14
  63. package/es/modules/corporate/components/Statement/index.less +16 -16
  64. package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +8 -8
  65. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.less +12 -12
  66. package/es/modules/corporate/filing-record/components/FilingRecordQuickView/index.less +56 -56
  67. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.less +71 -71
  68. package/es/modules/corporate/legal-generation/components/SettingDialog/index.less +14 -14
  69. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.less +72 -72
  70. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.less +5 -5
  71. package/es/modules/corporate/service/components/NewServiceDialog/index.less +27 -27
  72. package/es/modules/corporate/service/components/ServiceItem/index.less +23 -23
  73. package/es/modules/corporate/service-type/components/ServiceTypePropertiesView/index.less +48 -48
  74. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -30
  75. package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.less +11 -11
  76. package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.less +84 -84
  77. package/es/modules/corporate/share-options-register/components/ShareOptionList/index.less +22 -22
  78. package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/index.less +89 -89
  79. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.less +89 -89
  80. package/es/modules/order/components/OrderItem/index.less +21 -21
  81. package/es/modules/order/components/OrderItems/index.less +48 -48
  82. package/es/modules/order/components/OrderPropertiesView/index.less +13 -13
  83. package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -41
  84. package/es/modules/order/controls/OrderLabel/index.less +21 -21
  85. package/es/modules/order/pages/OrderDefaultView/index.less +13 -13
  86. package/es/modules/self-registration/clda-form/ApplicationProcessing/index.less +37 -37
  87. package/es/modules/self-registration/clda-form/CompanyInfoForm/index.less +25 -25
  88. package/es/modules/self-registration/clda-form/Download/index.less +41 -41
  89. package/es/modules/self-registration/clda-form/IncorporaitonCart/index.less +26 -26
  90. package/es/modules/self-registration/clda-form/Upload/index.less +15 -15
  91. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.d.ts +6 -0
  92. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js +163 -0
  93. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js.map +1 -0
  94. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.less +19 -0
  95. package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.less +13 -13
  96. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js +81 -87
  97. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js.map +1 -1
  98. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.less +19 -19
  99. package/es/modules/self-registration/clda-form/components/InternalUse/index.js.map +1 -1
  100. package/es/modules/self-registration/clda-form/components/ManagingDirectorList/index.js +4 -4
  101. package/es/modules/self-registration/clda-form/components/ManagingDirectorList/index.js.map +1 -1
  102. package/es/modules/self-registration/clda-form/components/ManagingDirectorList/state.d.ts +2 -1
  103. package/es/modules/self-registration/clda-form/components/ManagingDirectorList/state.js +10 -0
  104. package/es/modules/self-registration/clda-form/components/ManagingDirectorList/state.js.map +1 -1
  105. package/es/modules/self-registration/clda-form/components/MemberInfo/index.less +201 -201
  106. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js +14 -16
  107. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js.map +1 -1
  108. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.less +12 -12
  109. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +4 -4
  110. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
  111. package/es/modules/self-registration/clda-form/components/SecretaryList/state.d.ts +2 -2
  112. package/es/modules/self-registration/clda-form/components/SecretaryList/state.js +3 -3
  113. package/es/modules/self-registration/clda-form/components/SecretaryList/state.js.map +1 -1
  114. package/es/modules/self-registration/clda-form/components/ShareCapital/index.d.ts +10 -4
  115. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +54 -58
  116. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
  117. package/es/modules/self-registration/clda-form/components/ShareCapital/index.less +50 -50
  118. package/es/modules/self-registration/clda-form/incorporation/bvi/index.d.ts +4 -0
  119. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js +71 -0
  120. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js.map +1 -0
  121. package/es/modules/self-registration/clda-form/incorporation/bvi/index.less +36 -0
  122. package/es/modules/self-registration/clda-form/incorporation/bvi/state.d.ts +7 -0
  123. package/es/modules/self-registration/clda-form/incorporation/bvi/state.js +20 -0
  124. package/es/modules/self-registration/clda-form/incorporation/bvi/state.js.map +1 -0
  125. package/es/modules/self-registration/clda-form/incorporation/sgp/index.less +36 -36
  126. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.less +45 -45
  127. package/es/modules/self-registration/components/Card/index.less +51 -51
  128. package/es/modules/self-registration/components/CheckSection/index.less +20 -20
  129. package/es/modules/self-registration/components/MemberCard/index.less +53 -53
  130. package/es/modules/self-registration/components/StripeForm/index.less +36 -36
  131. package/es/modules/self-registration/controls/Blink/index.less +27 -27
  132. package/es/modules/self-registration/controls/Section/index.less +79 -79
  133. package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.less +12 -12
  134. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.less +10 -10
  135. package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.less +20 -20
  136. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/index.less +5 -5
  137. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +52 -52
  138. package/es/modules/self-registration/shopping-cart/ChooseService/index.js +2 -2
  139. package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -12
  140. package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -13
  141. package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -14
  142. package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -75
  143. package/es/modules/self-registration/shopping-cart/components/styles.less +23 -23
  144. package/es/modules/self-registration/shopping-cart/pages.less +6 -6
  145. package/es/obsolete/OfficerRegisterDefaultView/index.less +23 -23
  146. package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.less +39 -39
  147. package/es/obsolete/controller-register/components/ControllerItem/index.less +29 -29
  148. package/es/obsolete/controller-register/components/ControllerList/index.less +12 -12
  149. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.less +1 -1
  150. package/es/style/common.less +66 -66
  151. package/package.json +1 -1
@@ -9,6 +9,12 @@ export class State {
9
9
  writable: true,
10
10
  value: void 0
11
11
  });
12
+ Object.defineProperty(this, "content", {
13
+ enumerable: true,
14
+ configurable: true,
15
+ writable: true,
16
+ value: void 0
17
+ });
12
18
  /** 编辑 members 的 index */
13
19
  Object.defineProperty(this, "index", {
14
20
  enumerable: true,
@@ -20,11 +26,15 @@ export class State {
20
26
  }
21
27
  update(incorporationForm) {
22
28
  this.incorporationForm = incorporationForm;
29
+ this.content = incorporationForm.content;
23
30
  }
24
31
  }
25
32
  __decorate([
26
33
  observable
27
34
  ], State.prototype, "incorporationForm", void 0);
35
+ __decorate([
36
+ observable
37
+ ], State.prototype, "content", void 0);
28
38
  __decorate([
29
39
  observable
30
40
  ], State.prototype, "index", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/ManagingDirectorList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAMjB;QALA,OAAO;QACK;;;;;WAAoC;QAChD,yBAAyB;QACb;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEc,MAAM,CAAC,iBAA4B;QACjD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC5C,CAAC;CACD;AAXY;IAAX,UAAU;gDAAqC;AAEpC;IAAX,UAAU;oCAAuB;AAM1B;IAAP,MAAM;mCAEN"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/ManagingDirectorList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAOjB;QANA,OAAO;QACK;;;;;WAAoC;QACpC;;;;;WAAgC;QAC5C,yBAAyB;QACb;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEc,MAAM,CAAC,iBAA4B;QACjD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,OAA0B,CAAC;IAC7D,CAAC;CACD;AAbY;IAAX,UAAU;gDAAqC;AACpC;IAAX,UAAU;sCAAiC;AAEhC;IAAX,UAAU;oCAAuB;AAM1B;IAAP,MAAM;mCAGN"}
@@ -1,201 +1,201 @@
1
- @import "~@voplus/antd/es/style/themes/default.less";
2
- @import "~@voplus/morpho-theme/styles/index.less";
3
-
4
- .member-info {
5
- :global {
6
- .member-title {
7
- display: flex;
8
- align-items: center;
9
- // margin-bottom: 20px;
10
- .member-title-info {
11
- flex: 1;
12
- }
13
- .member-name {
14
- color: rgba(0, 0, 0, 0.85);
15
- font-weight: bold;
16
- font-size: 16px;
17
- }
18
-
19
- .action-button {
20
- font-size: 14px;
21
-
22
- > span {
23
- margin-left: 6px;
24
- cursor: pointer;
25
- }
26
- .delete-icon {
27
- // color: lightgray;
28
- &:hover {
29
- color: @delete-color;
30
- }
31
- }
32
- .edit-icon {
33
- &:hover {
34
- color: @primary-color;
35
- }
36
- }
37
- }
38
- }
39
-
40
- .placeholder {
41
- color: #00000040;
42
- }
43
-
44
- .halvingline {
45
- margin-bottom: 40px;
46
- }
47
-
48
- .basic-info {
49
- display: flex;
50
- line-height: 0;
51
- margin-top: 10px;
52
- .shares-input {
53
- flex: 1;
54
- display: flex;
55
- align-items: center;
56
- margin-right: 3em;
57
- .ant-input-number {
58
- width: 100%;
59
- }
60
- .ant-input-number-disabled {
61
- color: rgba(0, 0, 0, 0.85);
62
- background-color: transparent;
63
- cursor: auto;
64
- }
65
- }
66
- .ant-input-affix-wrapper {
67
- flex: 1;
68
- border-radius: 8px;
69
- margin-right: 3em;
70
- }
71
- .ant-input-affix-wrapper-disabled {
72
- color: rgba(0, 0, 0, 0.85);
73
- cursor: auto;
74
- padding: 4px 0;
75
- .ant-input[disabled] {
76
- color: rgba(0, 0, 0, 0.85);
77
- cursor: auto;
78
- }
79
- }
80
- .basic-val {
81
- font-size: 14px;
82
- font-weight: 400;
83
- color: rgba(0, 0, 0, 0.45);
84
- margin-right: 15px;
85
-
86
- .svg-inline--fa {
87
- margin-right: 5px;
88
- }
89
- }
90
- }
91
-
92
- .member-info-content {
93
- display: flex;
94
- .member-info-item {
95
- flex: 1;
96
- position: relative;
97
- padding-right: 3em;
98
- .buttons {
99
- position: absolute;
100
- right: 30px;
101
- top: 0;
102
- }
103
- .member-item-name {
104
- padding-bottom: 16px;
105
- svg {
106
- margin-right: 5px;
107
- }
108
- }
109
- .morpho-inline-edit {
110
- width: 80%;
111
- }
112
- }
113
- }
114
- .ant-alert-warning {
115
- margin-top: 10px;
116
- }
117
-
118
- .member-info-mobile {
119
- .basic-info {
120
- flex-direction: column;
121
- margin-top: 0;
122
- .ant-input-affix-wrapper {
123
- margin-top: 10px;
124
- margin-right: 0;
125
- }
126
- .shares-input {
127
- margin-top: 10px;
128
- margin-right: 0;
129
- }
130
- }
131
- .member-info-content {
132
- flex-direction: column;
133
- .member-info-item {
134
- padding-right: 0;
135
- }
136
- .member-info-item:first-child {
137
- margin-bottom: 10px;
138
- }
139
- }
140
- }
141
- }
142
- }
143
-
144
- .member-card {
145
- min-width: 200px;
146
- margin-right: 20px;
147
-
148
- :global {
149
- .member-title {
150
- font-size: 17px;
151
- color: white;
152
- padding: 8px 16px;
153
- background: @primary-color;
154
- display: flex;
155
- justify-content: space-between;
156
- align-items: center;
157
- border-radius: 8px 8px 0 0;
158
-
159
- .member-name {
160
- svg {
161
- color: #fff;
162
- margin-right: 6px;
163
- }
164
- }
165
-
166
- .errorIcon {
167
- color: rgba(255, 200, 200, 1);
168
- }
169
- }
170
-
171
- .member-content {
172
- display: flex;
173
- flex-direction: column;
174
- justify-content: space-between;
175
- font-size: 15px;
176
- padding: 10px 16px;
177
- border: 1px solid gainsboro;
178
- border-top: none;
179
- min-height: 100px;
180
- border-radius: 0 0 8px 8px;
181
-
182
- .actions {
183
- font-size: 14px;
184
- display: flex;
185
- justify-content: flex-end;
186
-
187
- > span {
188
- margin-left: 6px;
189
- color: lightgray;
190
-
191
- &:hover {
192
- color: @primary-color;
193
- cursor: pointer;
194
- }
195
- }
196
- }
197
-
198
- color: @primary-color;
199
- }
200
- }
201
- }
1
+ @import "~@voplus/antd/es/style/themes/default.less";
2
+ @import "~@voplus/morpho-theme/styles/index.less";
3
+
4
+ .member-info {
5
+ :global {
6
+ .member-title {
7
+ display: flex;
8
+ align-items: center;
9
+ // margin-bottom: 20px;
10
+ .member-title-info {
11
+ flex: 1;
12
+ }
13
+ .member-name {
14
+ color: rgba(0, 0, 0, 0.85);
15
+ font-weight: bold;
16
+ font-size: 16px;
17
+ }
18
+
19
+ .action-button {
20
+ font-size: 14px;
21
+
22
+ > span {
23
+ margin-left: 6px;
24
+ cursor: pointer;
25
+ }
26
+ .delete-icon {
27
+ // color: lightgray;
28
+ &:hover {
29
+ color: @delete-color;
30
+ }
31
+ }
32
+ .edit-icon {
33
+ &:hover {
34
+ color: @primary-color;
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ .placeholder {
41
+ color: #00000040;
42
+ }
43
+
44
+ .halvingline {
45
+ margin-bottom: 40px;
46
+ }
47
+
48
+ .basic-info {
49
+ display: flex;
50
+ line-height: 0;
51
+ margin-top: 10px;
52
+ .shares-input {
53
+ flex: 1;
54
+ display: flex;
55
+ align-items: center;
56
+ margin-right: 3em;
57
+ .ant-input-number {
58
+ width: 100%;
59
+ }
60
+ .ant-input-number-disabled {
61
+ color: rgba(0, 0, 0, 0.85);
62
+ background-color: transparent;
63
+ cursor: auto;
64
+ }
65
+ }
66
+ .ant-input-affix-wrapper {
67
+ flex: 1;
68
+ border-radius: 8px;
69
+ margin-right: 3em;
70
+ }
71
+ .ant-input-affix-wrapper-disabled {
72
+ color: rgba(0, 0, 0, 0.85);
73
+ cursor: auto;
74
+ padding: 4px 0;
75
+ .ant-input[disabled] {
76
+ color: rgba(0, 0, 0, 0.85);
77
+ cursor: auto;
78
+ }
79
+ }
80
+ .basic-val {
81
+ font-size: 14px;
82
+ font-weight: 400;
83
+ color: rgba(0, 0, 0, 0.45);
84
+ margin-right: 15px;
85
+
86
+ .svg-inline--fa {
87
+ margin-right: 5px;
88
+ }
89
+ }
90
+ }
91
+
92
+ .member-info-content {
93
+ display: flex;
94
+ .member-info-item {
95
+ flex: 1;
96
+ position: relative;
97
+ padding-right: 3em;
98
+ .buttons {
99
+ position: absolute;
100
+ right: 30px;
101
+ top: 0;
102
+ }
103
+ .member-item-name {
104
+ padding-bottom: 16px;
105
+ svg {
106
+ margin-right: 5px;
107
+ }
108
+ }
109
+ .morpho-inline-edit {
110
+ width: 80%;
111
+ }
112
+ }
113
+ }
114
+ .ant-alert-warning {
115
+ margin-top: 10px;
116
+ }
117
+
118
+ .member-info-mobile {
119
+ .basic-info {
120
+ flex-direction: column;
121
+ margin-top: 0;
122
+ .ant-input-affix-wrapper {
123
+ margin-top: 10px;
124
+ margin-right: 0;
125
+ }
126
+ .shares-input {
127
+ margin-top: 10px;
128
+ margin-right: 0;
129
+ }
130
+ }
131
+ .member-info-content {
132
+ flex-direction: column;
133
+ .member-info-item {
134
+ padding-right: 0;
135
+ }
136
+ .member-info-item:first-child {
137
+ margin-bottom: 10px;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ .member-card {
145
+ min-width: 200px;
146
+ margin-right: 20px;
147
+
148
+ :global {
149
+ .member-title {
150
+ font-size: 17px;
151
+ color: white;
152
+ padding: 8px 16px;
153
+ background: @primary-color;
154
+ display: flex;
155
+ justify-content: space-between;
156
+ align-items: center;
157
+ border-radius: 8px 8px 0 0;
158
+
159
+ .member-name {
160
+ svg {
161
+ color: #fff;
162
+ margin-right: 6px;
163
+ }
164
+ }
165
+
166
+ .errorIcon {
167
+ color: rgba(255, 200, 200, 1);
168
+ }
169
+ }
170
+
171
+ .member-content {
172
+ display: flex;
173
+ flex-direction: column;
174
+ justify-content: space-between;
175
+ font-size: 15px;
176
+ padding: 10px 16px;
177
+ border: 1px solid gainsboro;
178
+ border-top: none;
179
+ min-height: 100px;
180
+ border-radius: 0 0 8px 8px;
181
+
182
+ .actions {
183
+ font-size: 14px;
184
+ display: flex;
185
+ justify-content: flex-end;
186
+
187
+ > span {
188
+ margin-left: 6px;
189
+ color: lightgray;
190
+
191
+ &:hover {
192
+ color: @primary-color;
193
+ cursor: pointer;
194
+ }
195
+ }
196
+ }
197
+
198
+ color: @primary-color;
199
+ }
200
+ }
201
+ }
@@ -11,20 +11,19 @@ const NewSecretaryDialog = (props) => {
11
11
  const [showDialog, setShowDialog] = useState(false);
12
12
  const [contactId, setContactId] = useState();
13
13
  const store = useCLDAFormStore();
14
- const incorporation = useCLDAForm(id);
14
+ const content = useCLDAForm(id).content;
15
15
  return observe(() => {
16
- var _a, _b;
16
+ var _a;
17
17
  return (React.createElement(Modal, { width: 500, title: title, okText: "Add", onOk: onAdd, onCancel: onCancel, visible: visible },
18
18
  React.createElement(Form, { labelCol: { span: 4 }, labelAlign: "left" },
19
19
  React.createElement(Form.Item, { label: "Contact" },
20
20
  React.createElement(Select, { showSearch: true, placeholder: "Select or create a contact", optionFilterProp: "children", value: contactId, onChange: onChange, dropdownClassName: "director-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 },
21
- React.createElement(Select.Option, { value: "new" }, "New Contact"), (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts) === null || _b === void 0 ? void 0 :
22
- _b.map((item) => {
23
- var _a, _b, _c, _d;
24
- return (React.createElement(Select.Option, { key: item.id, value: item.id, disabled: (props.type === "secretary" &&
25
- ((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.secretaryIds) === null || _b === void 0 ? void 0 : _b.includes(item.id))) ||
21
+ React.createElement(Select.Option, { value: "new" }, "New Contact"), (_a = content === null || content === void 0 ? void 0 : content.contacts) === null || _a === void 0 ? void 0 :
22
+ _a.map((item) => {
23
+ var _a, _b;
24
+ return (React.createElement(Select.Option, { key: item.id, value: item.id, disabled: (props.type === "secretary" && ((_a = content === null || content === void 0 ? void 0 : content.secretaryIds) === null || _a === void 0 ? void 0 : _a.includes(item.id))) ||
26
25
  (props.type === "managingDirector" &&
27
- ((_d = (_c = incorporation.content) === null || _c === void 0 ? void 0 : _c.managingDirectorIds) === null || _d === void 0 ? void 0 : _d.includes(item.id))) ||
26
+ ((_b = content === null || content === void 0 ? void 0 : content.managingDirectorIds) === null || _b === void 0 ? void 0 : _b.includes(item.id))) ||
28
27
  item.type === "Organization" }, item.name));
29
28
  })))),
30
29
  showDialog && React.createElement(NewLegalContactDialog, { visible: true, type: "Person", updateVisible: onSave })));
@@ -39,7 +38,7 @@ const NewSecretaryDialog = (props) => {
39
38
  }
40
39
  }
41
40
  function onAdd() {
42
- var _a, _b, _c;
41
+ var _a;
43
42
  if (!contactId) {
44
43
  return message.warn("Please select contacts!");
45
44
  }
@@ -47,26 +46,25 @@ const NewSecretaryDialog = (props) => {
47
46
  store.edit(id, {
48
47
  data: props.type === "secretary"
49
48
  ? {
50
- SecretaryIds: ((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.secretaryIds)
51
- ? [...incorporation.content.secretaryIds, contactId]
49
+ SecretaryIds: (content === null || content === void 0 ? void 0 : content.secretaryIds)
50
+ ? [...content.secretaryIds, contactId]
52
51
  : [contactId],
53
52
  }
54
53
  : {
55
- ManagingDirectorIds: ((_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.managingDirectorIds)
56
- ? [...incorporation.content.managingDirectorIds, contactId]
54
+ ManagingDirectorIds: (content === null || content === void 0 ? void 0 : content.managingDirectorIds)
55
+ ? [...content.managingDirectorIds, contactId]
57
56
  : [contactId],
58
57
  },
59
58
  error: "message",
60
59
  });
61
60
  }
62
- return (_c = props.onCancel) === null || _c === void 0 ? void 0 : _c.call(props);
61
+ return (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
63
62
  }
64
63
  /** 新增 Item */
65
64
  async function onSave(info) {
66
- var _a;
67
65
  /** SelectLegalContactDialog 选择/新增有identity信息的unit */
68
66
  if (info) {
69
- const data = clone((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts);
67
+ const data = clone(content === null || content === void 0 ? void 0 : content.contacts);
70
68
  const officer = {
71
69
  id: uuid(),
72
70
  name: info.FullName,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/NewSecretaryDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,qBAAqB,MAAM,yEAAyE,CAAC;AAC5G,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,kBAAkB,GAAG,CAAC,KAM3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC/C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IACrD,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,KAAK,IACL,KAAK,EAAE,GAAG,EACV,KAAK,EAAE,KAAK,EACZ,MAAM,EAAC,KAAK,EACZ,IAAI,EAAE,KAAK,EACX,QA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,aAAa,CAAC,OAAO,0CAAE,QAAQ,CAAC,CAAC;YACpD,MAAM,OAAO,GAAG;gBACf,EAAE,EAAE,IAAI,EAAE;gBACV,IAAI,EAAE,IAAI,CAAC,QAAQ;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,QAAQ,EAAE;oBACT,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;iBACf;gBACD,IAAI,EAAE,IAAI,CAAC,QAAQ;aACnB,CAAC;YACF,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACvD,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;gBACpB,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE;gBACxC,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SACzB;QAED,aAAa,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/NewSecretaryDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAC/F,OAAO,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iBACf;gBACD,IAAI,EAAE,IAAI,CAAC,QAAQ;aACnB,CAAC;YACF,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACvD,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;gBACpB,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE;gBACxC,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SACzB;QAED,aAAa,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,12 +1,12 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- :global {
4
- .new-shareholder-dialog {
5
- .ant-input-number {
6
- width: 100%;
7
- }
8
- .subtitle {
9
- color: @heading-subtitle-color;
10
- }
11
- }
12
- }
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .new-shareholder-dialog {
5
+ .ant-input-number {
6
+ width: 100%;
7
+ }
8
+ .subtitle {
9
+ color: @heading-subtitle-color;
10
+ }
11
+ }
12
+ }
@@ -20,10 +20,10 @@ const SecretaryList = (props) => {
20
20
  return (React.createElement("div", { className: "internal-use-section secretary-list" },
21
21
  React.createElement("div", { className: "sub-title" }, "Secretary(s)"),
22
22
  React.createElement(Divider, { style: { margin: "10px 0" } }),
23
- ((_a = state.incorporationForm.content) === null || _a === void 0 ? void 0 : _a.secretaryIds) &&
24
- ((_b = state.incorporationForm.content) === null || _b === void 0 ? void 0 : _b.secretaryIds.map((m, i) => {
23
+ ((_a = state.content) === null || _a === void 0 ? void 0 : _a.secretaryIds) &&
24
+ ((_b = state.content) === null || _b === void 0 ? void 0 : _b.secretaryIds.map((m, i) => {
25
25
  var _a, _b;
26
- return (React.createElement(MemberInfo, { formId: id, memberId: m, contacts: (_a = state.incorporationForm.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((item) => item.id === m)[0], key: i, memberIndex: i, memberLength: (_b = state.incorporationForm.content.secretaryIds) === null || _b === void 0 ? void 0 : _b.length, onDeleteClick: () => remove(i) }));
26
+ return (React.createElement(MemberInfo, { formId: id, memberId: m, contacts: (_a = state.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((item) => item.id === m)[0], key: i, memberIndex: i, memberLength: (_b = state.content.secretaryIds) === null || _b === void 0 ? void 0 : _b.length, onDeleteClick: () => remove(i) }));
27
27
  })),
28
28
  (context ? context.editable : true) && (React.createElement(Button, { style: { marginTop: "20px" }, onClick: setAdd }, "Add Secretary")),
29
29
  showDialog && (React.createElement(NewSecretaryDialog, { id: id, visible: true, type: "secretary", title: "New Secretary", onCancel: () => setShowDialog(false) }))));
@@ -36,7 +36,7 @@ const SecretaryList = (props) => {
36
36
  return Modal.confirm({
37
37
  title: "Do you want to delete this item?",
38
38
  async onOk() {
39
- const members = clone(state.incorporationForm.content.secretaryIds);
39
+ const members = clone(state.content.secretaryIds);
40
40
  members.splice(index, 1);
41
41
  await store.edit(id, {
42
42
  data: { SecretaryIds: members },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAA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AAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,aAAa,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC5C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;IACjD,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5C,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAE5B,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAC,qCAAqC;YACnD,6BAAK,SAAS,EAAC,WAAW,mBAAmB;YAC7C,oBAAC,OAAO,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,QA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K,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,YAAa,CAAC,CAAC;gBACnD,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oBACpB,IAAI,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE;oBAC/B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
- import { ICLDAForm } from "../../../../../data/clda-form";
1
+ import { ICLDAForm, IINCFormContent } from "../../../../../data/clda-form";
2
2
  export declare class State {
3
3
  /** */
4
- incorporationForm: ICLDAForm;
4
+ content: IINCFormContent;
5
5
  /** 编辑 members 的 index */
6
6
  index?: number;
7
7
  constructor();
@@ -3,7 +3,7 @@ import { action, makeAutoObservable, observable } from "mobx";
3
3
  export class State {
4
4
  constructor() {
5
5
  /** */
6
- Object.defineProperty(this, "incorporationForm", {
6
+ Object.defineProperty(this, "content", {
7
7
  enumerable: true,
8
8
  configurable: true,
9
9
  writable: true,
@@ -19,12 +19,12 @@ export class State {
19
19
  makeAutoObservable(this);
20
20
  }
21
21
  update(incorporationForm) {
22
- this.incorporationForm = incorporationForm;
22
+ this.content = incorporationForm.content;
23
23
  }
24
24
  }
25
25
  __decorate([
26
26
  observable
27
- ], State.prototype, "incorporationForm", void 0);
27
+ ], State.prototype, "content", void 0);
28
28
  __decorate([
29
29
  observable
30
30
  ], State.prototype, "index", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAMjB;QALA,OAAO;QACK;;;;;WAAoC;QAChD,yBAAyB;QACb;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEc,MAAM,CAAC,iBAA4B;QACjD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC5C,CAAC;CACD;AAXY;IAAX,UAAU;gDAAqC;AAEpC;IAAX,UAAU;oCAAuB;AAM1B;IAAP,MAAM;mCAEN"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAMjB;QALA,OAAO;QACK;;;;;WAAgC;QAC5C,yBAAyB;QACb;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEc,MAAM,CAAC,iBAA4B;QACjD,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,OAA0B,CAAC;IAC7D,CAAC;CACD;AAXY;IAAX,UAAU;sCAAiC;AAEhC;IAAX,UAAU;oCAAuB;AAM1B;IAAP,MAAM;mCAEN"}
@@ -1,7 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import "./index.less";
3
- declare const ShareCapital: (props: {
4
- /** id of incorporate form */
5
- id: string;
6
- }) => JSX.Element;
3
+ declare const ShareCapital: {
4
+ (props: {
5
+ /** id of incorporate form */
6
+ id: string;
7
+ currencyVisible?: boolean;
8
+ }): JSX.Element;
9
+ defaultProps: {
10
+ currencyVisible: boolean;
11
+ };
12
+ };
7
13
  export default ShareCapital;