@voplus/morpho-csp 1.0.0-dev011 → 1.2.0-dev01
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.
- package/es/components/CompanyMemberSelect/index.js +2 -2
- package/es/components/CompanyMemberSelect/index.js.map +1 -1
- package/es/components/CurrencyView/state.d.ts +1 -0
- package/es/components/CurrencyView/state.js +20 -4
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/components/LegalContactSelect/index.js +4 -3
- package/es/components/LegalContactSelect/index.js.map +1 -1
- package/es/components/LegalContactSelect/state.d.ts +1 -0
- package/es/components/LegalContactSelect/state.js +20 -4
- package/es/components/LegalContactSelect/state.js.map +1 -1
- package/es/components/NewTypeDropdown/index.js +1 -1
- package/es/components/NewTypeDropdown/index.js.map +1 -1
- package/es/components/ShareTransactionPropertiesView/Content.js +2 -2
- package/es/components/ShareTransactionPropertiesView/Content.js.map +1 -1
- package/es/components/ShareTransactionPropertiesView/index.js +2 -2
- package/es/components/ShareTransactionPropertiesView/index.js.map +1 -1
- package/es/components/TableDragRow/index.js +2 -2
- package/es/components/TableDragRow/index.js.map +1 -1
- package/es/components/VerificationInformation/VerificationStore.js +12 -2
- package/es/components/VerificationInformation/VerificationStore.js.map +1 -1
- package/es/components/VerificationInformation/index.js +7 -46
- package/es/components/VerificationInformation/index.js.map +1 -1
- package/es/components/VerificationInformation/state.d.ts +9 -1
- package/es/components/VerificationInformation/state.js +91 -4
- package/es/components/VerificationInformation/state.js.map +1 -1
- package/es/controls/UnitAvatar/index.d.ts +16 -0
- package/es/controls/UnitAvatar/index.js +30 -0
- package/es/controls/UnitAvatar/index.js.map +1 -0
- package/es/controls/UnitAvatar/index.less +7 -0
- package/es/data/CLDA/store.js +12 -2
- package/es/data/CLDA/store.js.map +1 -1
- package/es/data/account/AccountStore.js +18 -3
- package/es/data/account/AccountStore.js.map +1 -1
- package/es/data/corporate/CorporateStore.js +18 -3
- package/es/data/corporate/CorporateStore.js.map +1 -1
- package/es/data/filingRecord/store.js +12 -2
- package/es/data/filingRecord/store.js.map +1 -1
- package/es/data/identity/IdentityStore.js +18 -3
- package/es/data/identity/IdentityStore.js.map +1 -1
- package/es/data/member/MemberStore.js +18 -3
- package/es/data/member/MemberStore.js.map +1 -1
- package/es/data/officer/OfficerStore.js +18 -3
- package/es/data/officer/OfficerStore.js.map +1 -1
- package/es/data/service/store.js +18 -3
- package/es/data/service/store.js.map +1 -1
- package/es/data/serviceType/store.js +18 -3
- package/es/data/serviceType/store.js.map +1 -1
- package/es/data/shareCertificate/store.js +18 -3
- package/es/data/shareCertificate/store.js.map +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js +6 -1
- package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
- package/es/data/shareTransaction/metas.js +6 -1
- package/es/data/shareTransaction/metas.js.map +1 -1
- package/es/modules/account/AccountDefaultView/index.js +2 -2
- package/es/modules/account/AccountDefaultView/index.js.map +1 -1
- package/es/modules/account/AccountOrganizations/index.js +7 -7
- package/es/modules/account/AccountOrganizations/index.js.map +1 -1
- package/es/modules/account/AccountOrganizations/index.less +1 -1
- package/es/modules/account/AccountPropertiesView/index.js +3 -3
- package/es/modules/account/AccountPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js +25 -3
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/CompletedStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/CompletedStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDADefaultView/index.js +3 -3
- package/es/modules/corporate/CLDA/CLDADefaultView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/index.d.ts +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/index.js +21 -14
- package/es/modules/corporate/CLDA/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/state.d.ts +2 -0
- package/es/modules/corporate/CLDA/CLDAListView/state.js +54 -4
- package/es/modules/corporate/CLDA/CLDAListView/state.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js +2 -2
- package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/ChangeAddress2021/index.js +13 -12
- package/es/modules/corporate/CLDA/ChangeAddress2021/index.js.map +1 -1
- package/es/modules/corporate/CLDA/ChangeAddress2021/state.d.ts +2 -0
- package/es/modules/corporate/CLDA/ChangeAddress2021/state.js +89 -11
- package/es/modules/corporate/CLDA/ChangeAddress2021/state.js.map +1 -1
- package/es/modules/corporate/CLDA/components/CLDADetails/index.js +2 -2
- package/es/modules/corporate/CLDA/components/CLDADetails/index.js.map +1 -1
- package/es/modules/corporate/CLDA/components/CLDAItem/index.js +2 -2
- package/es/modules/corporate/CLDA/components/CLDAItem/index.js.map +1 -1
- package/es/modules/corporate/CLDA/components/NewCLDA/index.js +2 -2
- package/es/modules/corporate/CLDA/components/NewCLDA/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/ModeIcon/index.js +3 -3
- package/es/modules/corporate/CLDA/controls/ModeIcon/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/index.js +2 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.d.ts +1 -0
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.js +8 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDASigningModeFilter/state.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/index.js +2 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.d.ts +1 -0
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.js +8 -2
- package/es/modules/corporate/CLDA/controls/filters/CLDAStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/CorporateDefaultView/index.js +2 -2
- package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/CorporateSelect/index.js +2 -2
- package/es/modules/corporate/CorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/DocumentIconList/index.js +3 -3
- package/es/modules/corporate/DocumentIconList/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/AnnualFilings/index.js +4 -3
- package/es/modules/corporate/FilingRecord/AnnualFilings/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/FilingRecordItem/index.js +2 -2
- package/es/modules/corporate/FilingRecord/FilingRecordItem/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.js +2 -2
- package/es/modules/corporate/FilingRecord/FilingRecordQuickView/index.js.map +1 -1
- package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.js +2 -2
- package/es/modules/corporate/FilingRecord/FilingYearTimeLine/index.js.map +1 -1
- package/es/modules/corporate/Service/ServiceItem/index.js +2 -2
- package/es/modules/corporate/Service/ServiceItem/index.js.map +1 -1
- package/es/modules/corporate/Service/ServiceList/index.js +4 -3
- package/es/modules/corporate/Service/ServiceList/index.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypeDefaultView/index.js +2 -2
- package/es/modules/corporate/ServiceType/ServiceTypeDefaultView/index.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.js +39 -33
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.d.ts +1 -0
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.js +38 -7
- package/es/modules/corporate/ServiceType/ServiceTypePropertiesView/state.js.map +1 -1
- package/es/modules/corporate/ServiceType/ServiceTypeSelect/index.js +2 -2
- package/es/modules/corporate/ServiceType/ServiceTypeSelect/index.js.map +1 -1
- package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.js +2 -2
- package/es/modules/corporate/ShareCertificate/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/CompanyDefaultView/index.js +2 -2
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/CompanyDetailsView/index.js +2 -2
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +2 -2
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js +6 -28
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +6 -1
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js +95 -8
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +24 -21
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +6 -5
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +10 -9
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +21 -18
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +6 -5
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +2 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +136 -27
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -1
- package/es/modules/corporate/company/InlineEditAddress/index.js +2 -2
- package/es/modules/corporate/company/InlineEditAddress/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.js +3 -3
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberAvatar/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.d.ts +1 -0
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.js +20 -4
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberList/state.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js +3 -3
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/Details/index.js +2 -2
- package/es/modules/corporate/company/MemberRegister/components/Details/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/ContactInformation/index.js +2 -2
- package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +2 -2
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js +2 -2
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerInformation/state.d.ts +1 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/state.js +11 -1
- package/es/modules/corporate/company/Officer/OfficerInformation/state.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js +3 -3
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js +2 -2
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js +3 -3
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +53 -42
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +2 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +32 -4
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +2 -2
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +4 -3
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.d.ts +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +11 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js +36 -8
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +15 -14
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.d.ts +2 -0
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js +38 -5
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +7 -6
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.d.ts +1 -0
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js +20 -4
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +5 -5
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.d.ts +1 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +8 -2
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -1
- package/es/routes.d.ts +1 -1
- package/es/style/common.less +0 -3
- package/package.json +14 -17
package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js
CHANGED
|
@@ -3,17 +3,45 @@ import { computed, observable } from "mobx";
|
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
export class TableDataContextState {
|
|
5
5
|
constructor() {
|
|
6
|
+
Object.defineProperty(this, "props", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: void 0
|
|
11
|
+
});
|
|
6
12
|
/** Array of new lines to be added. */
|
|
7
|
-
this
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
Object.defineProperty(this, "InvoiceLine", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: {
|
|
18
|
+
shareholder: "",
|
|
19
|
+
consideration: 0,
|
|
20
|
+
currency: "",
|
|
21
|
+
shares: 0,
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
/** Id of Delete of line */
|
|
25
|
+
Object.defineProperty(this, "hoverKey", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: void 0
|
|
30
|
+
});
|
|
13
31
|
/** lines of invoice */
|
|
14
|
-
this
|
|
32
|
+
Object.defineProperty(this, "invoiceLines", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
configurable: true,
|
|
35
|
+
writable: true,
|
|
36
|
+
value: []
|
|
37
|
+
});
|
|
15
38
|
/** loading of saving */
|
|
16
|
-
this
|
|
39
|
+
Object.defineProperty(this, "loading", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
writable: true,
|
|
43
|
+
value: false
|
|
44
|
+
});
|
|
17
45
|
}
|
|
18
46
|
/** Total of shares of line */
|
|
19
47
|
get sharesTotal() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableDataContext.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAKlD,MAAM,OAAO,qBAAqB;IAAlC;
|
|
1
|
+
{"version":3,"file":"TableDataContext.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.ts"],"names":[],"mapp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,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;CACD;AAlCY;IAAX,UAAU;uDAAyB;AAExB;IAAX,UAAU;2DAAiC;AAEhC;IAAX,UAAU;sDAAwB;AAInC;IADC,QAAQ;wDAOR;AAGD;IADC,QAAQ;+DAOR;AAGD;IADC,QAAQ;qDAGR;AAGD;IADC,QAAQ;qDAGR;AAGF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,IAAW,CAAC,CAAC;AAE3D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC"}
|
package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js
CHANGED
|
@@ -6,8 +6,8 @@ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
|
6
6
|
import ShareholderSelector from "../ShareholderSelector";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { isEqual } from "lodash-es";
|
|
9
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
10
|
import { useFormRowContext } from "../../../../components/TableDragRow/FormRowContext";
|
|
10
|
-
import { useObserver } from "mobx-react-lite";
|
|
11
11
|
import { useTableDataContext } from "./TableDataContext";
|
|
12
12
|
const DragTableCell = (props) => {
|
|
13
13
|
const { editable, dataIndex, record, rowIndex, children, onAdd, onDel, ...restProps } = props;
|
|
@@ -17,7 +17,7 @@ const DragTableCell = (props) => {
|
|
|
17
17
|
/** Open of shareType */
|
|
18
18
|
const [open, setOpen] = useState(false);
|
|
19
19
|
const ref = useRef();
|
|
20
|
-
return
|
|
20
|
+
return observe(() => (React.createElement("td", Object.assign({}, restProps, { ref: ref }), dataIndex === "Dnd" ? (record.added ? (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
|
|
21
21
|
React.createElement(FAIcon, { icon: faTrashAlt }))) : (formContext.connectDragSource(React.createElement("span", { style: { cursor: "move" } },
|
|
22
22
|
React.createElement(FAIcon, { icon: faBars }))))) : editable ? ((record && record.added) || editing ? (React.createElement(Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [{ required: true, message: `${dataIndex} is required.` }] }, dataIndex === "shareholder" ? (React.createElement(ShareholderSelector, { open: editing, defaultValue: record.shareholder, onChange: save })) : dataIndex === "class" ? (React.createElement(AutoComplete
|
|
23
23
|
// autoFocus
|
package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableDragCell.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TableDragCell.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,EAA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CAAC,OAAO,KAAK,EAAE;YAAE,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,SAAS,KAAK,UAAU;YAAE,OAAO;QACxD,WAAW,CAAC,IAAI;aACd,cAAc,EAAE;aAChB,IAAI,CAAC,GAAG,EAAE;YACV,KAAK,EAAE,CAAC;QACT,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,SAAc,EAAE,EAAE;YACzB,uCAAuC;QACxC,CAAC,CAAC,CAAC;QACJ,OAAO;IACR,CAAC;IACD,SAAS,aAAa,CAAC,KAAa,EAAE,UAAe;QACpD,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG;YACjC,GAAG,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC;YAClC,GAAG,UAAU;SACb,CAAC;QACF,WAAW,CAAC,YAAY,GAAG,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;AACF,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -7,10 +7,10 @@ import { DndProvider } from "react-dnd";
|
|
|
7
7
|
import DragTableCell from "./TableDragCell";
|
|
8
8
|
import DragTableRow from "../../../../components/TableDragRow";
|
|
9
9
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
10
|
+
import { observe } from "@voplus/morpho-ui";
|
|
10
11
|
import { toJS } from "mobx";
|
|
11
12
|
import update from "immutability-helper";
|
|
12
13
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
13
|
-
import { useObserver } from "mobx-react-lite";
|
|
14
14
|
const ShareTransactionItems = (props) => {
|
|
15
15
|
const { data } = props;
|
|
16
16
|
const [state] = useState(new TableDataContextState());
|
|
@@ -77,7 +77,7 @@ const ShareTransactionItems = (props) => {
|
|
|
77
77
|
useEffect(() => {
|
|
78
78
|
state.invoiceLines = toJS(data.lines);
|
|
79
79
|
}, [data.lines]);
|
|
80
|
-
return
|
|
80
|
+
return observe(() => (React.createElement(TableDataContext.Provider, { value: state },
|
|
81
81
|
React.createElement(DndProvider, { backend: HTML5Backend },
|
|
82
82
|
React.createElement(Table, { components: components, pagination: false, bordered: true, dataSource: state.invoiceLines, columns: columns, rowKey: "id", onRow: (record, index) => ({
|
|
83
83
|
index,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAGN,wBAAwB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAGN,wBAAwB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EA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AC;YAChE,OAAO;gBACN,WAAW,EAAE,WAAW,CAAC,IAAI;gBAC7B,aAAa,EAAE,aAAa;gBAC5B,QAAQ,EAAE,QAAQ;gBAClB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,MAAM,CAAC,KAAK;aACnB,CAAC;QACH,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QAC3F,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,oBAAoB,EAAE,CAAC;IACxB,CAAC;IACD,SAAS,SAAS,CAAC,SAAiB,EAAE,UAAkB;QACvD,MAAM,OAAO,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC9C,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE;YAC/C,OAAO,EAAE;gBACR,CAAC,SAAS,EAAE,CAAC,CAAC;gBACd,CAAC,UAAU,EAAE,CAAC,EAAE,OAAO,CAAC;aACxB;SACD,CAAC,CAAC;QACH,MAAM,EAAE,CAAC;IACV,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -3,7 +3,8 @@ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/da
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { useShareTransactionListEffect, useShareTransactionStore, } from "../../../../data/shareTransaction";
|
|
5
5
|
import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
|
|
6
|
-
import
|
|
6
|
+
import { FilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
7
|
+
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
|
7
8
|
import Header from "../../../../components/Header";
|
|
8
9
|
import { Input } from "@voplus/antd";
|
|
9
10
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
@@ -13,8 +14,9 @@ import ShareTransactionItem from "../ShareTransactionItem";
|
|
|
13
14
|
import ShareTransactionPropertiesView from "../../../../components/ShareTransactionPropertiesView";
|
|
14
15
|
import { State } from "./state";
|
|
15
16
|
import TransactionTypeFilter from "../TransactionTypeFilter";
|
|
17
|
+
import { observe } from "@voplus/morpho-ui";
|
|
18
|
+
import { runInAction } from "mobx";
|
|
16
19
|
import { useDeepMemo } from "@voplus/morpho-data";
|
|
17
|
-
import { useObserver } from "mobx-react-lite";
|
|
18
20
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
19
21
|
const ShareTransactionList = (props) => {
|
|
20
22
|
const { parentId, readonly, sidebar, header } = props;
|
|
@@ -29,8 +31,8 @@ const ShareTransactionList = (props) => {
|
|
|
29
31
|
useAutoUpdateListData(list, (d) => d.type === "ShareTransaction");
|
|
30
32
|
useRenderOnChange(() => list.filters.options);
|
|
31
33
|
useShareTransactionListEffect(list, (result) => list.union(result), list.filters.options);
|
|
32
|
-
return
|
|
33
|
-
header && (React.createElement(Header, { text: "ShareTransactions Register" },
|
|
34
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
35
|
+
React.createElement(FilterOptionsContext.Provider, { value: list.filters }, header && (React.createElement(Header, { text: "ShareTransactions Register" },
|
|
34
36
|
React.createElement("div", null,
|
|
35
37
|
React.createElement(FilterView, { columns: React.createElement(TransactionTypeFilter, null) }),
|
|
36
38
|
!readonly && (React.createElement(NewTypeDropdown, { menus: [
|
|
@@ -42,9 +44,10 @@ const ShareTransactionList = (props) => {
|
|
|
42
44
|
"Divide",
|
|
43
45
|
"Import",
|
|
44
46
|
"Others",
|
|
45
|
-
], onSelect: onSelect, style: { marginLeft: "10px" } }))))),
|
|
47
|
+
], onSelect: state.onSelect, style: { marginLeft: "10px" } })))))),
|
|
46
48
|
React.createElement(ListView, { headerProps: {
|
|
47
49
|
viewTitle: "ShareTransaction List",
|
|
50
|
+
visible: !header,
|
|
48
51
|
header: (React.createElement("div", { className: "share-transaction-list-header" },
|
|
49
52
|
React.createElement("div", { className: "view-title" }, "ShareTransaction List"),
|
|
50
53
|
React.createElement("div", null,
|
|
@@ -58,19 +61,15 @@ const ShareTransactionList = (props) => {
|
|
|
58
61
|
"Divide",
|
|
59
62
|
"Import",
|
|
60
63
|
"Others",
|
|
61
|
-
], onSelect: onSelect }))))),
|
|
64
|
+
], onSelect: state.onSelect }))))),
|
|
62
65
|
sortable: false,
|
|
63
66
|
addAble: false,
|
|
64
67
|
}, propertiesView: (id) => sidebar && React.createElement(ShareTransactionPropertiesView, { id: id }), renderItem: ({ item, index, connectDragSource }) => (React.createElement(ShareTransactionItem, { key: item.id, id: item.id, connectDragSource: connectDragSource, sidebar: sidebar, className: index === 0 ? "shareTransaction-item-first" : "" })), moveAfter: moveAfter }),
|
|
65
68
|
state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
|
|
66
|
-
React.createElement(Input, { autoFocus: true, value: state.name, onChange: (e) => (state.name = e.target.value), placeholder: `Name of ${state.type} for ShareTransaction`, suffix: state.loading ? React.createElement(LoadingOutlined, null) : "", onPressEnter: onSave, onKeyDown: (e) => {
|
|
69
|
+
React.createElement(Input, { autoFocus: true, value: state.name, onChange: (e) => runInAction(() => (state.name = e.target.value)), placeholder: `Name of ${state.type} for ShareTransaction`, suffix: state.loading ? React.createElement(LoadingOutlined, null) : "", onPressEnter: onSave, onKeyDown: (e) => {
|
|
67
70
|
if (e.keyCode === 27)
|
|
68
|
-
state.addAble = false;
|
|
71
|
+
runInAction(() => (state.addAble = false));
|
|
69
72
|
} }))))));
|
|
70
|
-
function onSelect(type) {
|
|
71
|
-
state.type = type;
|
|
72
|
-
state.addAble = !!type;
|
|
73
|
-
}
|
|
74
73
|
async function onSave() {
|
|
75
74
|
await shareStore.create({
|
|
76
75
|
data: {
|
|
@@ -81,8 +80,10 @@ const ShareTransactionList = (props) => {
|
|
|
81
80
|
},
|
|
82
81
|
error: "message",
|
|
83
82
|
});
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
runInAction(() => {
|
|
84
|
+
state.addAble = false;
|
|
85
|
+
state.name = "";
|
|
86
|
+
});
|
|
86
87
|
}
|
|
87
88
|
async function moveAfter(id, afterId) {
|
|
88
89
|
await documentStore.moveAfter(id, afterId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,E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CACN,CACyB,CAC3B,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;QACpB,MAAM,UAAU,CAAC,MAAM,CAAC;YACvB,IAAI,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,eAAe,EAAE,KAAK,CAAC,IAAI;gBAC3B,QAAQ,EAAE,KAAK;aACf;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,11 +1,41 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { observable } from "mobx";
|
|
2
|
+
import { action, makeAutoObservable, observable } from "mobx";
|
|
3
3
|
export class State {
|
|
4
4
|
constructor() {
|
|
5
|
-
this
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Object.defineProperty(this, "name", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: ""
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "type", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: "Allotment"
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "addAble", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: false
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(this, "loading", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: false
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(this, "onSelect", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: (type) => {
|
|
34
|
+
this.type = type;
|
|
35
|
+
this.addAble = !!type;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
makeAutoObservable(this);
|
|
9
39
|
}
|
|
10
40
|
}
|
|
11
41
|
__decorate([
|
|
@@ -20,4 +50,7 @@ __decorate([
|
|
|
20
50
|
__decorate([
|
|
21
51
|
observable
|
|
22
52
|
], State.prototype, "loading", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
action
|
|
55
|
+
], State.prototype, "onSelect", void 0);
|
|
23
56
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI9D,MAAM,OAAO,KAAK;IAMjB;QALY;;;;mBAAc,EAAE;WAAC;QACjB;;;;mBAAoC,WAAW;WAAC;QAChD;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAiB,KAAK;WAAC;QAOnC;;;;mBAAkB,CAAC,IAA0B,EAAE,EAAE;gBAChD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;gBACjB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC;YACvB,CAAC;WAAC;QAPD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAOD;AAdY;IAAX,UAAU;mCAAkB;AACjB;IAAX,UAAU;mCAAiD;AAChD;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB;AAOnC;IADC,MAAM;uCAIL"}
|
|
@@ -9,7 +9,7 @@ import ShareTransactionList from "../ShareTransactionList";
|
|
|
9
9
|
import ShareTransactionPropertiesView from "../../../../components/ShareTransactionPropertiesView";
|
|
10
10
|
import { Skeleton } from "@voplus/antd";
|
|
11
11
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
|
-
import {
|
|
12
|
+
import { observe } from "@voplus/morpho-ui";
|
|
13
13
|
import { useShareTransaction } from "../../../../data/shareTransaction";
|
|
14
14
|
import { useTabItem } from "@voplus/morpho-data";
|
|
15
15
|
const ShareTransactionRegisterDefaultView = () => {
|
|
@@ -26,7 +26,7 @@ const ShareTransactionRegisterDefaultView = () => {
|
|
|
26
26
|
tab.title = (shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name) || "";
|
|
27
27
|
}, [shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name]);
|
|
28
28
|
const AsideElement = React.createElement(ShareTransactionPropertiesView, { id: id, content: false });
|
|
29
|
-
return
|
|
29
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext, className: "share-transaction-aside-content" },
|
|
30
30
|
React.createElement("div", { className: "csp-default-view share-transaction-register-view" },
|
|
31
31
|
shareTransaction.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
32
32
|
React.createElement(Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,8BAA8B,MAAM,uDAAuD,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,8BAA8B,MAAM,uDAAuD,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,q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,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,CAAC,QAAQ;gBACd,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,IAAI,EACT,iBAAiB,EAAC,MAAM,EACxB,KAAK,EACJ,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE;wBACd,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;wBAC5B,oBAAC,OAAO,IACP,MAAM,EAAE,GAAG,EAAE,CACZ,YAAY,CAAC,YAAY;gCACxB,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE;gCAC3B,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAErD;wBACF,oBAAC,OAAO,OAAG,CACF,GAEV;gBACF,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,gBAAgB,CAAC,WAAW,EACzC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EACnC,OAAO,EAAC,eAAe,GACtB,CACc,CACjB;YAIA,MAAM,IAAI,oBAAC,oBAAoB,IAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,GAAI,CAEjF,CACQ,CACf,CAAC,CAAC;IACH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mCAAmC,CAAC"}
|
|
@@ -3,17 +3,18 @@ import { useUnitListEffect } from "@voplus/morpho-org";
|
|
|
3
3
|
import React, { useEffect, useState } from "react";
|
|
4
4
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
5
5
|
import { State } from "./state";
|
|
6
|
-
import {
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { runInAction } from "mobx";
|
|
7
8
|
const ShareholderSelector = (props) => {
|
|
8
9
|
const { defaultValue, open, onChange } = props;
|
|
9
10
|
// total contacts
|
|
10
11
|
const [state] = useState(new State());
|
|
11
12
|
const [items, setItems] = useState([]);
|
|
12
13
|
useEffect(() => {
|
|
13
|
-
state.value = defaultValue;
|
|
14
|
+
runInAction(() => (state.value = defaultValue));
|
|
14
15
|
}, [defaultValue]);
|
|
15
16
|
useEffect(() => {
|
|
16
|
-
state.open = open;
|
|
17
|
+
runInAction(() => (state.open = open));
|
|
17
18
|
}, [open]);
|
|
18
19
|
useUnitListEffect(null, (list) => {
|
|
19
20
|
setItems(list);
|
|
@@ -23,15 +24,15 @@ const ShareholderSelector = (props) => {
|
|
|
23
24
|
});
|
|
24
25
|
// set or add a new selection to values
|
|
25
26
|
const selectOnSelect = (value, option) => {
|
|
26
|
-
state.value = { id: option.key, name: value };
|
|
27
|
+
runInAction(() => (state.value = { id: option.key, name: value }));
|
|
27
28
|
if (onChange)
|
|
28
29
|
onChange(state.value);
|
|
29
30
|
};
|
|
30
|
-
return
|
|
31
|
+
return observe(() => (React.createElement(AutoComplete
|
|
31
32
|
// autoFocus
|
|
32
33
|
, {
|
|
33
34
|
// autoFocus
|
|
34
|
-
allowClear: true, open: state.open, defaultValue: defaultValue.name, filterOption: filterItems, onSelect: selectOnSelect, onChange: (value) => (state.value = { id: value, name: value }), onBlur: () => onChange && onChange(state.value), onDropdownVisibleChange: (open) => (state.open = open) }, state.loading ? (React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { spin: true }) })) : (items.map((contact) => (React.createElement(AutoComplete.Option, { key: contact.id, value: contact.name, title: contact.name }, contact.name)))))));
|
|
35
|
+
allowClear: true, open: state.open, defaultValue: defaultValue.name, filterOption: filterItems, onSelect: selectOnSelect, onChange: (value) => runInAction(() => (state.value = { id: value, name: value })), onBlur: () => onChange && onChange(state.value), onDropdownVisibleChange: (open) => (state.open = open) }, state.loading ? (React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { spin: true }) })) : (items.map((contact) => (React.createElement(AutoComplete.Option, { key: contact.id, value: contact.name, title: contact.name }, contact.name)))))));
|
|
35
36
|
function filterItems(input, option) {
|
|
36
37
|
return option.title.toLowerCase().includes(input.toLowerCase());
|
|
37
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAS,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAS,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,mBAAmB,GAAG,CAAC,KAI5B,EAAE,EAAE;IACJ,MAAM,EA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EAAE,KAAK,CAAC,IAAI,EAChB,YAAY,EAAE,YAAY,CAAC,IAAI,EAC/B,YAAY,EAAE,WAAW,EACzB,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,EAClF,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAC/C,uBAAuB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,IAErD,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,eAAe,IAAC,IAAI,SAAG,GAAI,CAC7C,CAAC,CAAC,CAAC,CACH,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACtB,oBAAC,YAAY,CAAC,MAAM,IAAC,GAAG,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,IAC5E,OAAO,CAAC,IAAI,CACQ,CACtB,CAAC,CACF,CACa,CACf,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;AACF,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { observable } from "mobx";
|
|
2
|
+
import { makeAutoObservable, observable } from "mobx";
|
|
3
3
|
export class State {
|
|
4
4
|
constructor() {
|
|
5
|
-
this
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Object.defineProperty(this, "value", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: { id: "", name: "" }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "loading", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "open", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: false
|
|
22
|
+
});
|
|
23
|
+
makeAutoObservable(this);
|
|
8
24
|
}
|
|
9
25
|
}
|
|
10
26
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEtD,MAAM,OAAO,KAAK;IAKjB;QAJY;;;;mBAAsC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;WAAC;QAC3D;;;;mBAAiB,IAAI;WAAC;QACtB;;;;mBAAc,KAAK;WAAC;QAG/B,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACD;AAPY;IAAX,UAAU;oCAA4D;AAC3D;IAAX,UAAU;sCAAuB;AACtB;IAAX,UAAU;mCAAqB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { State } from "./state";
|
|
3
3
|
import classnames from "classnames";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
5
|
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
5
|
-
import { useObserver } from "mobx-react-lite";
|
|
6
6
|
const menuList = [
|
|
7
7
|
"Allotment",
|
|
8
8
|
"Transfer",
|
|
@@ -15,12 +15,12 @@ const menuList = [
|
|
|
15
15
|
];
|
|
16
16
|
const TransactionTypeFilter = () => {
|
|
17
17
|
const context = useFilterOptionsContext();
|
|
18
|
-
const state = context.getFilterState("Status", () => new State());
|
|
19
|
-
return
|
|
18
|
+
const state = context === null || context === void 0 ? void 0 : context.getFilterState("Status", () => new State());
|
|
19
|
+
return observe(() => (React.createElement("div", { className: "transaction-type-filter" },
|
|
20
20
|
React.createElement("div", { className: "menu-item-title" }, "TransactionType"),
|
|
21
21
|
menuList.map((type) => (React.createElement("div", { key: type, className: classnames("filter-menu-item", {
|
|
22
|
-
bold: state.status.has(type),
|
|
23
|
-
}), onClick: () => state.onChangeStatus(type) },
|
|
22
|
+
bold: state === null || state === void 0 ? void 0 : state.status.has(type),
|
|
23
|
+
}), onClick: () => state === null || state === void 0 ? void 0 : state.onChangeStatus(type) },
|
|
24
24
|
React.createElement("div", { className: "filter-name" }, type)))))));
|
|
25
25
|
};
|
|
26
26
|
export default TransactionTypeFilter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.tsx"],"names":[],"mappings":"AAA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
|
3
3
|
export declare class State implements IFilterState {
|
|
4
4
|
/** Status of filter */
|
|
5
5
|
status: Map<string, boolean>;
|
|
6
|
+
constructor();
|
|
6
7
|
/** update status */
|
|
7
8
|
onChangeStatus(value: string): void;
|
|
8
9
|
get filters(): FilterOption[];
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { action, observable } from "mobx";
|
|
2
|
+
import { action, makeAutoObservable, observable } from "mobx";
|
|
3
3
|
export class State {
|
|
4
4
|
constructor() {
|
|
5
5
|
/** Status of filter */
|
|
6
|
-
this
|
|
6
|
+
Object.defineProperty(this, "status", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: new Map()
|
|
11
|
+
});
|
|
12
|
+
makeAutoObservable(this);
|
|
7
13
|
}
|
|
8
14
|
/** update status */
|
|
9
15
|
onChangeStatus(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK9D,MAAM,OAAO,KAAK;IAIjB;QAHA,uBAAuB;QACX;;;;mBAAsC,IAAI,GAAG,EAAE;WAAC;QAG3D,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,oBAAoB;IAEb,cAAc,CAAC,KAAa;QAClC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,IAAW,OAAO;QACjB,yCAAyC;QACzC,OAAO;YACN;gBACC,CAAC,EAAE,iBAAiB;gBACpB,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAClD,CAAC,EAAE,KAAK;aACQ;SACjB,CAAC;IACH,CAAC;IACM,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACD;AA1BY;IAAX,UAAU;qCAAiD;AAQ5D;IADC,MAAM;2CAGN"}
|
package/es/routes.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ declare const Routes: {
|
|
|
59
59
|
tabPattern: RegExp;
|
|
60
60
|
getUrl: (parentDocId: string) => string;
|
|
61
61
|
component: {
|
|
62
|
-
(
|
|
62
|
+
(props: {
|
|
63
63
|
parentId?: string | undefined;
|
|
64
64
|
assistantStatus?: string | undefined;
|
|
65
65
|
signingMode?: "Physical" | "Digital" | undefined;
|