@voplus/morpho-csp 4.0.33 → 4.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/CurrencyView/index.d.ts +1 -1
- package/es/components/Header/index.d.ts +1 -1
- package/es/components/NewTypeDropdown/index.d.ts +1 -1
- package/es/data/CLDA/metas.d.ts +2 -2
- package/es/data/clda-form/CLDAFormContent.d.ts +2 -2
- package/es/data/clda-form/interfaces.d.ts +10 -0
- package/es/data/clda-form/types.d.ts +10 -0
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js +2 -6
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.d.ts +2 -2
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.d.ts +2 -2
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.d.ts +6 -12
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +24 -87
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.less +1 -93
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.d.ts +8 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js +19 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js.map +1 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.d.ts +9 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js +26 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js.map +1 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.d.ts +2 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.js +3 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/index.js.map +1 -0
- package/es/modules/corporate/clda/controls/CLDADataBar/index.d.ts +2 -2
- package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js +26 -12
- package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js.map +1 -1
- package/es/modules/corporate/clda/controls/filters/CLDASigningModeFilter/state.d.ts +2 -2
- package/es/modules/corporate/clda/pages/CLDAClientView/components/DigitalSigningStep/index.d.ts +2 -2
- package/es/modules/corporate/company/components/InlineEditCountry/index.d.ts +2 -2
- package/es/modules/corporate/company/components/InlineEditType/index.d.ts +2 -2
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js +6 -7
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.d.ts +8 -13
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js +28 -79
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.d.ts +8 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.js +38 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/Paste.js.map +1 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.d.ts +9 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.js +33 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/PasteShortcut.js.map +1 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.d.ts +2 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.js +3 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/index.js.map +1 -0
- package/es/modules/corporate/company/controls/CorporateMenu/index.d.ts +5 -12
- package/es/modules/corporate/company/controls/CorporateMenu/index.js +19 -96
- package/es/modules/corporate/company/controls/CorporateMenu/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.d.ts +8 -0
- package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.js +18 -0
- package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.js.map +1 -0
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.d.ts +1 -1
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js +2 -2
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.d.ts +2 -2
- package/es/modules/corporate/company/officer-register/components/PositionSelect/index.d.ts +2 -2
- package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js +5 -11
- package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.d.ts +2 -2
- package/es/modules/corporate/components/Statement/index.d.ts +2 -2
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +2 -2
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.d.ts +5 -11
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js +4 -46
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AGM/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AGM/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AGMNomineeStatement/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AgentAppointment/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AgentAppointment/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/AppointOfficer/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/BankOpening/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/BankOpening/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeAddress/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeAddress/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeCompanyName/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeFYE/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ChangeFYE/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ContractAgreement/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/DispenseAGM/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/DispenseAGM/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/EmptyResolution/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/Footer/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IssueShares/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/IssueShares/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeAppointment/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeAppointment/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/NoticeOfResolution/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ResignationLetter/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/SettingDialog/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareReduction/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareReduction/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Form.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/StrikeOff/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/components/SubmitButton/index.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/AGMNomineeStatementFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/ChangeCompanyNameFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/ContractAgreementFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/EmptyResolutionFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/NoticeOfResolutionFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/fields/StrikeOffFields.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/AGMNomineeStatementForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/AppointOfficerForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/ChangeCompanyNameForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/ContractAgreementForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/EmptyResolutionForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/NoticeOfResolutionForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/form/StrikeOffForm.d.ts +2 -2
- package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.d.ts +2 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.d.ts +2 -2
- package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.d.ts +2 -2
- package/es/modules/self-registration/clda-form/IncorporationFormRoutes.d.ts +2 -2
- package/es/modules/self-registration/clda-form/Upload/index.d.ts +2 -2
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +41 -5
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +32 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +2 -8
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +2 -7
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +2 -6
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +2 -8
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
- package/es/modules/self-registration/components/Card/index.d.ts +2 -2
- package/es/modules/self-registration/components/CheckSection/index.d.ts +1 -1
- package/es/modules/self-registration/controls/Blink/index.d.ts +2 -2
- package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +2 -2
- package/es/modules/self-registration/controls/Section/index.d.ts +1 -1
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/CapitalTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/DirectorTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/FYETip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/IncorporationTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/SecretaryTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/ShareholderTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/SharesTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/Tip.d.ts +1 -1
- package/es/modules/self-registration/controls/Tips/vgb/BusinessNameTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/vgb/CapitalTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/vgb/RecordAddressTip.d.ts +2 -2
- package/es/modules/self-registration/controls/Tips/vgb/TradingAddressTip.d.ts +2 -2
- package/es/modules/self-registration/shopping-cart/Paid.d.ts +2 -2
- package/es/obsolete/order/controls/IncorporationStatusLabel/index.d.ts +2 -2
- package/es/routes.d.ts +27 -33
- package/es/routes.js +0 -13
- package/es/routes.js.map +1 -1
- package/es/services/CLDAActivityLogRenderer.d.ts +1 -1
- package/package.json +1 -1
- package/es/data/account/AccountStore.d.ts +0 -17
- package/es/data/account/AccountStore.js +0 -58
- package/es/data/account/AccountStore.js.map +0 -1
- package/es/data/account/hooks.d.ts +0 -9
- package/es/data/account/hooks.js +0 -19
- package/es/data/account/hooks.js.map +0 -1
- package/es/data/account/interfaces.d.ts +0 -15
- package/es/data/account/interfaces.js +0 -2
- package/es/data/account/interfaces.js.map +0 -1
- package/es/modules/account/components/AccountOrganizations/index.d.ts +0 -6
- package/es/modules/account/components/AccountOrganizations/index.js +0 -63
- package/es/modules/account/components/AccountOrganizations/index.js.map +0 -1
- package/es/modules/account/components/AccountOrganizations/index.less +0 -26
- package/es/modules/account/components/AccountPropertiesView/index.d.ts +0 -6
- package/es/modules/account/components/AccountPropertiesView/index.js +0 -20
- package/es/modules/account/components/AccountPropertiesView/index.js.map +0 -1
- package/es/modules/account/components/AccountPropertiesView/index.less +0 -10
- package/es/modules/account/pages/AccountDefaultView/index.d.ts +0 -4
- package/es/modules/account/pages/AccountDefaultView/index.js +0 -33
- package/es/modules/account/pages/AccountDefaultView/index.js.map +0 -1
- package/es/modules/account/pages/AccountDefaultView/index.less +0 -8
- package/es/modules/corporate/clda/components/CLDASendForm/index.d.ts +0 -12
- package/es/modules/corporate/clda/components/CLDASendForm/index.js +0 -43
- package/es/modules/corporate/clda/components/CLDASendForm/index.js.map +0 -1
- package/es/modules/corporate/clda/components/CLDASendForm/index.less +0 -48
- package/es/modules/corporate/clda/components/CLDASendForm/state.d.ts +0 -4
- package/es/modules/corporate/clda/components/CLDASendForm/state.js +0 -17
- package/es/modules/corporate/clda/components/CLDASendForm/state.js.map +0 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.less +0 -97
- package/es/modules/corporate/company/controls/CorporateMenu/index.less +0 -97
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.less +0 -54
|
@@ -13,6 +13,6 @@ declare class CLDAActivityLogRenderer extends ActivityRenderer {
|
|
|
13
13
|
icon: React.ReactNode;
|
|
14
14
|
color: string;
|
|
15
15
|
};
|
|
16
|
-
protected Log(item: IActivityLog, options?: LogRenderOptions): JSX.Element;
|
|
16
|
+
protected Log(item: IActivityLog, options?: LogRenderOptions): React.JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export default CLDAActivityLogRenderer;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ApiEndPoint } from "@voplus/api";
|
|
2
|
-
import { CountedMap, Store } from "@voplus/morpho-data";
|
|
3
|
-
import { IAccount, LoadAccountOptions } from "./interfaces";
|
|
4
|
-
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
5
|
-
/** Corporate store supply backend functions. */
|
|
6
|
-
export declare class AccountStore extends Store {
|
|
7
|
-
readonly endpoint: ApiEndPoint;
|
|
8
|
-
/** Name of the store */
|
|
9
|
-
readonly name: string;
|
|
10
|
-
constructor(endpoint: ApiEndPoint);
|
|
11
|
-
/** All currently used corporate. */
|
|
12
|
-
readonly items: CountedMap<string, IAccount>;
|
|
13
|
-
load(id: string, options: LoadAccountOptions): Promise<IAccount>;
|
|
14
|
-
loadList(options?: LoadDocumentListOptions): Promise<IAccount[]>;
|
|
15
|
-
}
|
|
16
|
-
/** 响应钩子检索 AccountStore */
|
|
17
|
-
export declare const useAccountStore: () => AccountStore;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RequestBuilder } from "@voplus/api";
|
|
2
|
-
import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
|
|
3
|
-
import { observable } from "mobx";
|
|
4
|
-
const StoreName = "AccountStore";
|
|
5
|
-
/** Corporate store supply backend functions. */
|
|
6
|
-
export class AccountStore extends Store {
|
|
7
|
-
constructor(endpoint) {
|
|
8
|
-
super();
|
|
9
|
-
Object.defineProperty(this, "endpoint", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
writable: true,
|
|
13
|
-
value: endpoint
|
|
14
|
-
});
|
|
15
|
-
/** Name of the store */
|
|
16
|
-
Object.defineProperty(this, "name", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true,
|
|
20
|
-
value: StoreName
|
|
21
|
-
});
|
|
22
|
-
/** All currently used corporate. */
|
|
23
|
-
Object.defineProperty(this, "items", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: new CountedMap((key) => ({ loaded: false }), observable.map([], { deep: true }))
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
async load(id, options) {
|
|
31
|
-
let query = "";
|
|
32
|
-
if (options.includes)
|
|
33
|
-
query = query.concat(`includes=${options.includes}`);
|
|
34
|
-
if (query)
|
|
35
|
-
query = "?".concat(query);
|
|
36
|
-
const r = await this.endpoint.get(`/api/account/${id}${query}`);
|
|
37
|
-
return await r.json();
|
|
38
|
-
}
|
|
39
|
-
async loadList(options) {
|
|
40
|
-
let query = "";
|
|
41
|
-
if (options === null || options === void 0 ? void 0 : options.Includes) {
|
|
42
|
-
query = query.concat(`includes=${options.Includes}`);
|
|
43
|
-
}
|
|
44
|
-
if (query)
|
|
45
|
-
query = "?".concat(query);
|
|
46
|
-
const r = await this.endpoint.post(`/api/account${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
|
|
47
|
-
return (await r.json());
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/** 响应钩子检索 AccountStore */
|
|
51
|
-
export const useAccountStore = () => {
|
|
52
|
-
const context = useApplicationContext();
|
|
53
|
-
if (!context.getStore(StoreName)) {
|
|
54
|
-
context.addStore(new AccountStore(context.api.currentEndPoint));
|
|
55
|
-
}
|
|
56
|
-
return context.getStore(StoreName);
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=AccountStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountStore.js","sourceRoot":"","sources":["../../../src/data/account/AccountStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAI/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,gDAAgD;AAChD,MAAM,OAAO,YAAa,SAAQ,KAAK;IAItC,YAAmC,QAAqB;QACv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CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC9D,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAe,CAAC;IACvC,CAAC;CACD;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KAChE;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB,CAAC;AACrD,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IAccount, LoadAccountOptions } from "./interfaces";
|
|
2
|
-
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
3
|
-
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
-
/** React hook to retrieve a account
|
|
5
|
-
* @param {string} id - id of the account
|
|
6
|
-
* @param {LoadAccountOptions} options - options
|
|
7
|
-
*/
|
|
8
|
-
export declare const useAccount: (id: string, options?: LoadAccountOptions) => IAccount;
|
|
9
|
-
export declare const useAccountListEffect: (list: ListDataContextState<IAccount> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions) => void;
|
package/es/data/account/hooks.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useDocumentListLoaderEffect } from "@voplus/morpho-document-core";
|
|
2
|
-
import { useAccountStore } from "./AccountStore";
|
|
3
|
-
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
4
|
-
/** React hook to retrieve a account
|
|
5
|
-
* @param {string} id - id of the account
|
|
6
|
-
* @param {LoadAccountOptions} options - options
|
|
7
|
-
*/
|
|
8
|
-
export const useAccount = (id, options) => {
|
|
9
|
-
options = options ? options : {};
|
|
10
|
-
const store = useAccountStore();
|
|
11
|
-
return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
|
|
12
|
-
};
|
|
13
|
-
export const useAccountListEffect = (list, effect, options) => {
|
|
14
|
-
const deps = options ? options : {};
|
|
15
|
-
const officer = useAccountStore();
|
|
16
|
-
// Call useDocumentListEffect and ensure won't load twice for same loading options.
|
|
17
|
-
return useDocumentListLoaderEffect(list, effect, () => officer.loadList(options), [deps]);
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/account/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAGpG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,OAA4B,EAAE,EAAE;IACtE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAAyB,CAAC;IACzD,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CACnC,IAA2C,EAC3C,MAA6B,EAC7B,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;IAElC,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ILoadable, LoadOptions } from "@voplus/morpho-data";
|
|
2
|
-
/** Custom load account options type */
|
|
3
|
-
export declare type LoadAccountOptions = {
|
|
4
|
-
includes?: string;
|
|
5
|
-
} & LoadOptions<IAccount>;
|
|
6
|
-
export interface IAccount extends ILoadable {
|
|
7
|
-
id: string;
|
|
8
|
-
/** account number */
|
|
9
|
-
number: string;
|
|
10
|
-
/**account 拥有者 */
|
|
11
|
-
owner?: {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/account/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import { Col, Row } from "antd";
|
|
3
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
-
import AccountPropertiesView from "../AccountPropertiesView";
|
|
5
|
-
import Header from "../../../../components/Header";
|
|
6
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
7
|
-
import React from "react";
|
|
8
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
11
|
-
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
|
-
const AccountOrganizations = (props) => {
|
|
13
|
-
const { parentId } = props;
|
|
14
|
-
const list = useCreateListDataState({
|
|
15
|
-
filterDefaults: {
|
|
16
|
-
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }],
|
|
17
|
-
},
|
|
18
|
-
}, [parentId]);
|
|
19
|
-
// const state = useDeepMemo(() => new State(), [parentId]);
|
|
20
|
-
useAutoUpdateListData(list, (d) => d.parentId === parentId);
|
|
21
|
-
useRenderOnChange(() => list.filters.options);
|
|
22
|
-
list.union([
|
|
23
|
-
{
|
|
24
|
-
id: "1",
|
|
25
|
-
owner: { id: "2d582fc8-6b9c-434f-bc39-0175bf19dc06", name: "HaHa" },
|
|
26
|
-
number: "156",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: "2",
|
|
30
|
-
owner: { id: "66cd9a65-b5a2-48f0-9cd0-0175bf19dc06", name: "Yu Shui Dan" },
|
|
31
|
-
number: "156",
|
|
32
|
-
},
|
|
33
|
-
]);
|
|
34
|
-
// useAccountListEffect(list, result => list.union(result), list.filters.options);
|
|
35
|
-
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
36
|
-
React.createElement(Header, { text: "Organizations" }),
|
|
37
|
-
React.createElement(ListView, { headerProps: { visible: false }, renderItem: ({ item, index }) => {
|
|
38
|
-
var _a;
|
|
39
|
-
return (React.createElement("div", { className: "account-organizations-item" },
|
|
40
|
-
React.createElement(UnitAvatar, { id: item.id, index: index, size: "large" }),
|
|
41
|
-
React.createElement("div", { className: "organization-info" },
|
|
42
|
-
React.createElement("div", { className: "title" }, (_a = item.owner) === null || _a === void 0 ? void 0 : _a.name),
|
|
43
|
-
React.createElement(Row, { justify: "space-around" },
|
|
44
|
-
React.createElement(Col, { span: 12 },
|
|
45
|
-
"Balance: ", item === null || item === void 0 ? void 0 :
|
|
46
|
-
item.number,
|
|
47
|
-
" Pay"),
|
|
48
|
-
React.createElement(Col, { span: 12 }, "Upcoming Filing: Annual Return"))))
|
|
49
|
-
// <Row justify="space-around">
|
|
50
|
-
// <Col span={8}>{item?.owner?.name}</Col>
|
|
51
|
-
// <Col span={8}>{item?.number} Pay</Col>
|
|
52
|
-
// <Col span={8}>Annual Return</Col>
|
|
53
|
-
// </Row>
|
|
54
|
-
);
|
|
55
|
-
}, propertiesView: (id) => React.createElement(AccountPropertiesView, { id: getUnitId(id) }), className: "account-organizations-view" }))));
|
|
56
|
-
function getUnitId(id) {
|
|
57
|
-
var _a;
|
|
58
|
-
const unit = list.data.find((d) => d.id === id);
|
|
59
|
-
return unit && unit.owner ? (_a = unit.owner) === null || _a === void 0 ? void 0 : _a.id : "";
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
export default AccountOrganizations;
|
|
63
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/account/components/AccountOrganizations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEpG,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,oBAAoB,GAAG,CAAC,KAA2B,EAAE,EAAE;IAC5D,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAA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1B,oBAAC,GAAG,IAAC,IAAI,EAAE,EAAE;6CAAY,IAAI,aAAJ,IAAI;gCAAJ,IAAI,CAAE,MAAM;uCAAW;4BAChD,oBAAC,GAAG,IAAC,IAAI,EAAE,EAAE,qCAAsC,CAC9C,CACD,CACD;gBACN,+BAA+B;gBAC/B,2CAA2C;gBAC3C,0CAA0C;gBAC1C,qCAAqC;gBACrC,SAAS;iBACT,CAAA;aAAA,EACD,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,oBAAC,qBAAqB,IAAC,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC,GAAI,EACpE,SAAS,EAAC,4BAA4B,GACrC,CACwB,CAC3B,CAAC,CAAC;IAEH,SAAS,SAAS,CAAC,EAAU;;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAChD,OAAO,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,KAAK,0CAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjD,CAAC;AACF,CAAC,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
:global {
|
|
2
|
-
.account-organizations-view {
|
|
3
|
-
padding: 0 !important;
|
|
4
|
-
.account-organizations-item {
|
|
5
|
-
position: relative;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
padding: 10px 20px;
|
|
9
|
-
.organization-info {
|
|
10
|
-
flex: 1;
|
|
11
|
-
margin-left: 10px;
|
|
12
|
-
.title {
|
|
13
|
-
font-weight: 500;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
&::after {
|
|
17
|
-
position: absolute;
|
|
18
|
-
content: "";
|
|
19
|
-
left: 20px;
|
|
20
|
-
bottom: 0;
|
|
21
|
-
right: 20px;
|
|
22
|
-
border-bottom: 1px solid #f2f2f2;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import ContactInformation from "@voplus/morpho-org/es/components/ContactInformation";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { Scrollbars } from "react-custom-scrollbars";
|
|
5
|
-
import { Skeleton } from "antd";
|
|
6
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
7
|
-
import { observe } from "@voplus/morpho-ui";
|
|
8
|
-
import { useUnit } from "@voplus/morpho-org";
|
|
9
|
-
const AccountPropertiesView = (props) => {
|
|
10
|
-
const { id } = props;
|
|
11
|
-
const unit = useUnit(id, { reload: true });
|
|
12
|
-
return observe(() => (React.createElement(Scrollbars, null,
|
|
13
|
-
React.createElement("div", { className: "account-properties-view" },
|
|
14
|
-
unit.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement("div", { className: "account-properties-view_header" },
|
|
15
|
-
React.createElement(UnitAvatar, { id: id, size: 70 }),
|
|
16
|
-
React.createElement("div", null, unit.name))),
|
|
17
|
-
React.createElement(ContactInformation, { id: id, scrollbar: false })))));
|
|
18
|
-
};
|
|
19
|
-
export default AccountPropertiesView;
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/account/components/AccountPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,kBAAkB,MAAM,qDAAqD,CAAC;AACrF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU;QACV,6BAAK,SAAS,EAAC,yBAAyB;YACtC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,gCAAgC;gBAC9C,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,GAAI;gBAChC,iCAAM,IAAI,CAAC,IAAI,CAAO,CACjB,CACN;YAED,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,GAAI,CAC3C,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import { faCog, faUser, faUsersClass } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
-
import AccountOrganizations from "../../components/AccountOrganizations";
|
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import Header from "../../../../components/Header";
|
|
7
|
-
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
8
|
-
import { Menu } from "antd";
|
|
9
|
-
import Scrollbars from "react-custom-scrollbars";
|
|
10
|
-
import { observe } from "@voplus/morpho-ui";
|
|
11
|
-
import { useParams } from "react-router-dom";
|
|
12
|
-
const AccountDefaultView = () => {
|
|
13
|
-
const { id } = useParams();
|
|
14
|
-
const [menuKey, setMenuKey] = useState("AnnualFilings");
|
|
15
|
-
return observe(() => (React.createElement(MainContent, { className: "account-default-view" },
|
|
16
|
-
React.createElement(MainContent.Nav, { collapsible: true },
|
|
17
|
-
React.createElement(Scrollbars, { autoHide: true },
|
|
18
|
-
React.createElement(Menu, { mode: "inline", defaultSelectedKeys: ["Organizations"], onClick: onClick, items: [
|
|
19
|
-
{
|
|
20
|
-
key: "Organizations",
|
|
21
|
-
label: "Organizations",
|
|
22
|
-
icon: React.createElement(FAIcon, { icon: faUsersClass }),
|
|
23
|
-
},
|
|
24
|
-
{ key: "Users", label: "Users", icon: React.createElement(FAIcon, { icon: faUser }) },
|
|
25
|
-
{ key: "Settings", label: "Settings", icon: React.createElement(FAIcon, { icon: faCog }) },
|
|
26
|
-
] }))),
|
|
27
|
-
React.createElement("div", { className: "csp-default-view_content" }, menuKey === "Users" ? (React.createElement(Header, { text: "Organizations" })) : menuKey === "Users" ? (React.createElement(Header, { text: "Users" })) : (React.createElement(AccountOrganizations, { parentId: "" }))))));
|
|
28
|
-
function onClick({ key }) {
|
|
29
|
-
setMenuKey(key.toString());
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export default AccountDefaultView;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/account/pages/AccountDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OA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eAAe,GAAG,CAC/B,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CACzB,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,GAAG,CACvB,CAAC,CAAC,CAAC,CACH,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,EAAE,GAAG,CACpC,CACI,CACO,CACd,CAAC,CAAC;IACH,SAAS,OAAO,CAAC,EAAE,GAAG,EAAY;QACjC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC5B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const CLDASendForm: {
|
|
3
|
-
(props: {
|
|
4
|
-
id: string;
|
|
5
|
-
openType?: "Modal" | "SideForm" | undefined;
|
|
6
|
-
onCancel?: (() => void) | undefined;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
defaultProps: {
|
|
9
|
-
openType: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default CLDASendForm;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Button, Form, Row, Space } from "antd";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
4
|
-
import { useIncorporationCLDA, useIncorporationCLDAStore, } from "../../../../../data/incorporation-clda";
|
|
5
|
-
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
|
6
|
-
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
|
7
|
-
import SideForm from "@voplus/morpho-ui/es/controls/SideForm";
|
|
8
|
-
import { State } from "./state";
|
|
9
|
-
import styles from "./index.less";
|
|
10
|
-
const CLDASendForm = (props) => {
|
|
11
|
-
const clda = useIncorporationCLDA(props.id, { reload: true, includes: "client-texts" });
|
|
12
|
-
const store = useIncorporationCLDAStore();
|
|
13
|
-
const [state] = useState(new State());
|
|
14
|
-
useAutorunEffect(() => { var _a, _b; return (state.text = (_b = (_a = clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent) !== null && _b !== void 0 ? _b : ""); });
|
|
15
|
-
const content = observe(() => {
|
|
16
|
-
var _a;
|
|
17
|
-
return (React.createElement(Form, { layout: "vertical", className: styles["clda-send-form"] },
|
|
18
|
-
React.createElement(Form.Item, { label: "Email Content" },
|
|
19
|
-
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, defaultHtml: (_a = clda === null || clda === void 0 ? void 0 : clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, className: "proseMirror", onChange: (opt) => (state.text =
|
|
20
|
-
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
|
|
21
|
-
props.openType === "Modal" && (React.createElement(Row, { justify: "end" },
|
|
22
|
-
React.createElement(Space, null,
|
|
23
|
-
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
24
|
-
React.createElement(Button, { type: "primary", onClick: onSend }, "Send"))))));
|
|
25
|
-
});
|
|
26
|
-
return observe(() => props.openType === "Modal" ? (React.createElement(Modal, { title: "CLDA Send Form Dialog", open: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
|
|
27
|
-
React.createElement("div", { className: styles["clda-send-dialog"] }, content))) : (React.createElement(SideForm, { title: "CLDA Send Form", okText: "Send", onCancel: onCancel, onSubmit: onSend }, content)));
|
|
28
|
-
function onCancel() {
|
|
29
|
-
if (props.onCancel)
|
|
30
|
-
props.onCancel();
|
|
31
|
-
}
|
|
32
|
-
/** email send */
|
|
33
|
-
async function onSend() {
|
|
34
|
-
await store.send(props.id, { data: { Email: state.text }, error: "message" });
|
|
35
|
-
if (props.onCancel)
|
|
36
|
-
props.onCancel();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
CLDASendForm.defaultProps = {
|
|
40
|
-
openType: "SideForm",
|
|
41
|
-
};
|
|
42
|
-
export default CLDASendForm;
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDASendForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,YAAY,GAAG,CAAC,KAIrB,EAAE,EAAE;IACJ,MAAM,IAAI,GAAG,oBAAoB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IACxF,MAAM,KAAK,GAAG,yBAAyB,EAAE,CAAC;IAC1C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,gBAAgB,CAAC,GAAG,EAAE,eAAC,OAAA,CAAC,KAAK,CAAC,IAAI,GAAG,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,YAAY,mCAAI,EAAE,CAAC,CAAA,EAAA,CAAC,CAAC;IAE5E,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CAC7B,oBAAC,IAAI,IAAC,MAAM,EAAC,UAAU,EAAC,SAAS,EA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AM,EAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,IACjF,OAAO,CACE,CACX,CACD,CAAC;IAEF,SAAS,QAAQ;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;IAED,iBAAiB;IACjB,KAAK,UAAU,MAAM;QACpB,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC9E,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,YAAY,CAAC,YAAY,GAAG;IAC3B,QAAQ,EAAE,UAAU;CACpB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
.clda-send-form {
|
|
2
|
-
height: calc(100% - 30px);
|
|
3
|
-
|
|
4
|
-
:global {
|
|
5
|
-
.ant-form-item {
|
|
6
|
-
height: 100%;
|
|
7
|
-
|
|
8
|
-
.ant-form-item-row {
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
height: 100%;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ant-form-item-control {
|
|
15
|
-
height: 100%;
|
|
16
|
-
|
|
17
|
-
.ant-form-item-control-input {
|
|
18
|
-
height: 100%;
|
|
19
|
-
align-items: flex-start;
|
|
20
|
-
|
|
21
|
-
.ant-form-item-control-input-content {
|
|
22
|
-
height: 95%;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.proseMirror {
|
|
28
|
-
background: #fff;
|
|
29
|
-
|
|
30
|
-
.editor-toolbar .toolbar-button {
|
|
31
|
-
display: inline-block;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.clda-send-dialog {
|
|
38
|
-
:global {
|
|
39
|
-
.proseMirror {
|
|
40
|
-
height: 15rem !important;
|
|
41
|
-
background: #fff;
|
|
42
|
-
|
|
43
|
-
.editor-toolbar .toolbar-button {
|
|
44
|
-
display: inline-block;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { makeObservable, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
Object.defineProperty(this, "text", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true,
|
|
9
|
-
value: void 0
|
|
10
|
-
});
|
|
11
|
-
makeObservable(this);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
__decorate([
|
|
15
|
-
observable
|
|
16
|
-
], State.prototype, "text", void 0);
|
|
17
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDASendForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAU,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAGjB;QAFY;;;;;WAAoB;QAG/B,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AALY;IAAX,UAAU;mCAAqB"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
.company-registere-menu {
|
|
4
|
-
border-radius: @border-radius;
|
|
5
|
-
padding: 4px 8px !important;
|
|
6
|
-
|
|
7
|
-
:global {
|
|
8
|
-
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
9
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
|
|
10
|
-
|
|
11
|
-
.type-name {
|
|
12
|
-
margin-left: 10px;
|
|
13
|
-
display: inline-block;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.del-btn {
|
|
17
|
-
color: #f5222d;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ant-dropdown-menu-submenu {
|
|
21
|
-
svg {
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ant-dropdown-menu-item {
|
|
27
|
-
color: @cancel-color !important;
|
|
28
|
-
|
|
29
|
-
&.ant-dropdown-menu-item-disabled {
|
|
30
|
-
color: @disabled-color !important;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ant-dropdown-menu-submenu-disabled {
|
|
35
|
-
color: @disabled-color !important;
|
|
36
|
-
|
|
37
|
-
.ant-dropdown-menu-submenu-title {
|
|
38
|
-
color: @disabled-color !important;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ant-dropdown-menu-submenu-title {
|
|
43
|
-
color: @cancel-color !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.ant-dropdown-menu-item-active {
|
|
47
|
-
border-radius: @border-radius !important;
|
|
48
|
-
background: @ant-menu-hover-color !important;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.ant-menu:not(.ant-menu-inline) .ant-dropdown-menu-submenu-open,
|
|
52
|
-
.ant-dropdown-menu-submenu-active {
|
|
53
|
-
border-radius: @border-radius;
|
|
54
|
-
background: @ant-menu-hover-color;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ant-dropdown-menu-submenu-arrow {
|
|
58
|
-
height: 22px;
|
|
59
|
-
display: inline-flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.company-registere-sub-menu {
|
|
66
|
-
:global {
|
|
67
|
-
.type-name {
|
|
68
|
-
margin-left: 10px;
|
|
69
|
-
display: inline-block;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ant-dropdown-menu-item,
|
|
73
|
-
.ant-dropdown-menu-submenu-title {
|
|
74
|
-
margin: 4px 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ant-dropdown-menu-item:hover,
|
|
78
|
-
.ant-dropdown-menu-submenu-title:hover {
|
|
79
|
-
border-radius: @border-radius;
|
|
80
|
-
background: @ant-menu-hover-color;
|
|
81
|
-
box-shadow: @hover-button-shadow;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ant-dropdown-menu-item-active {
|
|
85
|
-
border-radius: @border-radius !important;
|
|
86
|
-
background: @ant-menu-hover-color !important;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.ant-dropdown-menu-item {
|
|
90
|
-
color: @cancel-color !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ant-dropdown-menu-item-disabled {
|
|
94
|
-
color: @disabled-color !important;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|