@voplus/morpho-csp 1.0.0-dev003 → 1.0.0-dev004
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/data/corporate/CorporateStore.d.ts +24 -0
- package/es/data/corporate/CorporateStore.js +43 -0
- package/es/data/corporate/CorporateStore.js.map +1 -0
- package/es/data/corporate/hooks.d.ts +10 -0
- package/es/data/corporate/hooks.js +14 -0
- package/es/data/corporate/hooks.js.map +1 -0
- package/es/data/corporate/index.d.ts +4 -0
- package/es/data/corporate/index.js +5 -0
- package/es/data/corporate/index.js.map +1 -0
- package/es/data/corporate/interfaces.d.ts +26 -0
- package/es/data/corporate/interfaces.js +1 -0
- package/es/data/corporate/interfaces.js.map +1 -0
- package/es/data/corporate/types.d.ts +11 -0
- package/es/data/corporate/types.js +1 -0
- package/es/data/corporate/types.js.map +1 -0
- package/es/modules/corporate/CorporateDefaultView/index.d.ts +3 -0
- package/es/modules/corporate/CorporateDefaultView/index.js +18 -0
- package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -0
- package/es/modules/corporate/DocumentIconList/index.d.ts +7 -0
- package/es/modules/corporate/DocumentIconList/index.js +32 -0
- package/es/modules/corporate/DocumentIconList/index.js.map +1 -0
- package/es/modules/corporate/DocumentIconList/index.less +14 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.d.ts +7 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.js +43 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.less +25 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.d.ts +6 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.js +91 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.less +36 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.d.ts +20 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.js +40 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.d.ts +6 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +31 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.less +22 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.d.ts +5 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js +59 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +15 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js +38 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +36 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +16 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +32 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +32 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +33 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +7 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +65 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +55 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +37 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +71 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.d.ts +23 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.js +55 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/hooks.d.ts +13 -0
- package/es/modules/corporate/company/Identity/data/hooks.js +31 -0
- package/es/modules/corporate/company/Identity/data/hooks.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/index.d.ts +4 -0
- package/es/modules/corporate/company/Identity/data/index.js +5 -0
- package/es/modules/corporate/company/Identity/data/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/interfaces.d.ts +17 -0
- package/es/modules/corporate/company/Identity/data/interfaces.js +1 -0
- package/es/modules/corporate/company/Identity/data/interfaces.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/types.d.ts +16 -0
- package/es/modules/corporate/company/Identity/data/types.js +1 -0
- package/es/modules/corporate/company/Identity/data/types.js.map +1 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.d.ts +6 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.js +54 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.d.ts +20 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.js +30 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.js.map +1 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.d.ts +6 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +33 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.less +48 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.d.ts +3 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js +15 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.d.ts +7 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +83 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.less +15 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +7 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +23 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.d.ts +6 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +51 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.less +20 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.d.ts +3 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +20 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.less +5 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.d.ts +10 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +25 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js.map +1 -0
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +12 -8
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.less +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +16 -20
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +11 -6
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.less +2 -6
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +4 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +8 -14
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.d.ts +10 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +34 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -0
- package/es/routes.d.ts +6 -0
- package/es/routes.js +14 -1
- package/es/routes.js.map +1 -1
- package/es/style/common.less +6 -0
- package/package.json +11 -20
- package/es/data/metas.d.ts +0 -0
- package/es/data/metas.js +0 -1
- package/es/data/metas.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,OAAO,KAAK;IAAlB;QACC,gCAAgC;QACb,SAAI,GAAG,CAAC,CAAC;QAC5B,yDAAyD;QACtC,YAAO,GAAwB,QAAQ,CAAC;QAC3D,mBAAmB;QACA,aAAQ,GAAG,QAAQ,CAAC;QACvC,mBAAmB;QACA,aAAQ,GAAY,EAAE,CAAC;QAG1C,uCAAuC;QACpB,cAAS,GAAG,SAAS,CAAC;QACzC,8BAA8B;QACX,WAAM,GAA2B,SAAS,CAAC;QAC9D,oCAAoC;QACjB,aAAQ,GAavB;YACH,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,wBAAwB;YAC9B,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;SACnF,CAAC;IAWH,CAAC;IATU,IAAW,QAAQ;QAC5B,IAAI,IAAI,CAAC,OAAO,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAEtE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,SAAS,KAAK,SAAS;YAClC,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;YACtE,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;CACD;AAjDY;IAAX,UAAU;mCAAiB;AAEhB;IAAX,UAAU;sCAAgD;AAE/C;IAAX,UAAU;uCAA4B;AAE3B;IAAX,UAAU;uCAA+B;AAE9B;IAAX,UAAU;mCAAoB;AAEnB;IAAX,UAAU;wCAA8B;AAE7B;IAAX,UAAU;qCAAmD;AAElD;IAAX,UAAU;uCAwBT;AAEQ;IAAT,QAAQ;qCAQR;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAQ,IAAW,CAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ApiEndPoint } from "@voplus/api";
|
|
2
|
+
import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { Store } from "@voplus/morpho-data";
|
|
4
|
+
import { IIdentity } from "./interfaces";
|
|
5
|
+
import { IdentityCreateOptions } from "./types";
|
|
6
|
+
/** Quotation store supply backend functions. */
|
|
7
|
+
export declare class IdentityStore extends Store {
|
|
8
|
+
readonly endpoint: ApiEndPoint;
|
|
9
|
+
/** Name of the store */
|
|
10
|
+
readonly name: string;
|
|
11
|
+
constructor(endpoint: ApiEndPoint);
|
|
12
|
+
/** Create a new Identity. */
|
|
13
|
+
create(options: IdentityCreateOptions): Promise<IIdentity>;
|
|
14
|
+
/** Edit an existing item on server. */
|
|
15
|
+
edit(id: string, options: IdentityCreateOptions): Promise<any>;
|
|
16
|
+
/** Load a list of documents from server.
|
|
17
|
+
* @param {LoadDocumentListOptions}
|
|
18
|
+
*/
|
|
19
|
+
loadList(options?: LoadDocumentListOptions): Promise<IIdentity[]>;
|
|
20
|
+
load(id: string, options: LoadDocumentOptions): Promise<IIdentity>;
|
|
21
|
+
}
|
|
22
|
+
/** 响应钩子检索 IdentityStore */
|
|
23
|
+
export declare const useIdentityStore: () => IdentityStore;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RequestBuilder } from "@voplus/api";
|
|
2
|
+
import { Store, useApplicationContext } from "@voplus/morpho-data";
|
|
3
|
+
const StoreName = "IdentityStore";
|
|
4
|
+
/** Quotation store supply backend functions. */
|
|
5
|
+
export class IdentityStore extends Store {
|
|
6
|
+
constructor(endpoint) {
|
|
7
|
+
super();
|
|
8
|
+
this.endpoint = endpoint;
|
|
9
|
+
/** Name of the store */
|
|
10
|
+
this.name = StoreName;
|
|
11
|
+
}
|
|
12
|
+
/** Create a new Identity. */
|
|
13
|
+
async create(options) {
|
|
14
|
+
// invariant(options.name, "Name cannot be empty.");
|
|
15
|
+
const r = await this.endpoint.post(`/api/identities/create`, new RequestBuilder().json(options));
|
|
16
|
+
const t = (await r.json());
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
/** Edit an existing item on server. */
|
|
20
|
+
async edit(id, options) {
|
|
21
|
+
const r = await this.endpoint.post(`/api/identities/${id}/info`, new RequestBuilder().json(options));
|
|
22
|
+
return await r.json();
|
|
23
|
+
}
|
|
24
|
+
/** Load a list of documents from server.
|
|
25
|
+
* @param {LoadDocumentListOptions}
|
|
26
|
+
*/
|
|
27
|
+
async loadList(options) {
|
|
28
|
+
let query = "";
|
|
29
|
+
if (options === null || options === void 0 ? void 0 : options.Includes) {
|
|
30
|
+
query = query.concat(`includes=${options.Includes}`);
|
|
31
|
+
}
|
|
32
|
+
if (query)
|
|
33
|
+
query = "?".concat(query);
|
|
34
|
+
const r = await this.endpoint.post(`/api/identities${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
|
|
35
|
+
return (await r.json());
|
|
36
|
+
}
|
|
37
|
+
async load(id, options) {
|
|
38
|
+
let query = "";
|
|
39
|
+
if (options.includes)
|
|
40
|
+
query = query.concat(`includes=${options.includes}`);
|
|
41
|
+
if (query)
|
|
42
|
+
query = "?".concat(query);
|
|
43
|
+
const r = await this.endpoint.get(`/api/identities/${id}${query}`);
|
|
44
|
+
return await r.json();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** 响应钩子检索 IdentityStore */
|
|
48
|
+
export const useIdentityStore = () => {
|
|
49
|
+
const context = useApplicationContext();
|
|
50
|
+
if (!context.getStore(StoreName)) {
|
|
51
|
+
context.addStore(new IdentityStore(context.api.currentEndPoint));
|
|
52
|
+
}
|
|
53
|
+
return context.getStore(StoreName);
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=IdentityStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityStore.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/IdentityStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAKnE,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,gDAAgD;AAChD,MAAM,OAAO,aAAc,SAAQ,KAAK;IAIvC,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QAD0B,aAAQ,GAAR,QAAQ,CAAa;QAHxD,wBAAwB;QACR,SAAI,GAAW,SAAS,CAAC;IAIzC,CAAC;IAED,6BAA6B;IACtB,KAAK,CAAC,MAAM,CAAC,O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AG,EAAE,CAAC;QACf,IAAI,OAAO,CAAC,QAAQ;YAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QACnE,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACD;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KACjE;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmB,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
2
|
+
import { IIdentity } from "./interfaces";
|
|
3
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
+
/** React hook to retrieve a corporate
|
|
5
|
+
* @param {string} id - id of the corporate
|
|
6
|
+
* @param {LoadDocumentOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export declare const useIdentityListEffect: (list: ListDataContextState<IIdentity> | null, effect: (list: IIdentity[]) => void | null, options?: LoadDocumentListOptions | undefined) => void;
|
|
9
|
+
export declare const useIdentity: (id: string, options?: ({
|
|
10
|
+
includes?: string | undefined;
|
|
11
|
+
} & import("@voplus/morpho-data").LoadOptions<import("@voplus/morpho-document-core").IDocument> & {
|
|
12
|
+
unit?: boolean | undefined;
|
|
13
|
+
}) | undefined) => IIdentity;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useDocumentListLoaderEffect, useDocumentStore } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useIdentityStore } from "./IdentityStore";
|
|
3
|
+
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
4
|
+
/** React hook to retrieve a corporate
|
|
5
|
+
* @param {string} id - id of the corporate
|
|
6
|
+
* @param {LoadDocumentOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
// export const useCorporate = (id: string, options?: LoadDocumentOptions & { unit?: boolean }) => {
|
|
9
|
+
// options = options ? options : ({} as LoadDocumentOptions);
|
|
10
|
+
// const store = useCorporateStore();
|
|
11
|
+
// const documents = useDocumentStore();
|
|
12
|
+
// return useLoadCountedMapItem(
|
|
13
|
+
// id,
|
|
14
|
+
// documents.items,
|
|
15
|
+
// () => store.load(id, options!),
|
|
16
|
+
// options
|
|
17
|
+
// ) as ICorporate;
|
|
18
|
+
// };
|
|
19
|
+
export const useIdentityListEffect = (list, effect, options) => {
|
|
20
|
+
const deps = options ? options : {};
|
|
21
|
+
const store = useDocumentStore();
|
|
22
|
+
// Call useDocumentListLoaderEffect and ensure won't load twice for same loading options.
|
|
23
|
+
return useDocumentListLoaderEffect(list, effect, () => store.loadList(options), [deps]);
|
|
24
|
+
};
|
|
25
|
+
export const useIdentity = (id, options) => {
|
|
26
|
+
options = options ? options : {};
|
|
27
|
+
const store = useIdentityStore();
|
|
28
|
+
const documents = useDocumentStore();
|
|
29
|
+
return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,gB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mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDocument } from "@voplus/morpho-document-core";
|
|
2
|
+
export interface IIdentity extends IDocument {
|
|
3
|
+
/** id of the unit */
|
|
4
|
+
unitId?: string;
|
|
5
|
+
/** full name of the identity */
|
|
6
|
+
fullName: string;
|
|
7
|
+
/** number of the identity */
|
|
8
|
+
number: number | string;
|
|
9
|
+
/** country of issued of the identity */
|
|
10
|
+
country: string;
|
|
11
|
+
/** expiry date of the identity */
|
|
12
|
+
expiryDate: Date;
|
|
13
|
+
/** type of the identity */
|
|
14
|
+
type: string;
|
|
15
|
+
/** type of the unit */
|
|
16
|
+
unitType?: "Person" | "Organization";
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type IdentityCreateOptions = {
|
|
2
|
+
/** id of the unit */
|
|
3
|
+
UnitId?: string;
|
|
4
|
+
/** full name of the identity */
|
|
5
|
+
FullName?: string;
|
|
6
|
+
/** number of the identity */
|
|
7
|
+
Number: number;
|
|
8
|
+
/** country of issued of the identity */
|
|
9
|
+
Country: string;
|
|
10
|
+
/** expiry date of the identity */
|
|
11
|
+
ExpiryDate: Date;
|
|
12
|
+
/** type of the identity */
|
|
13
|
+
Type: string;
|
|
14
|
+
/** type of the unit */
|
|
15
|
+
UnitType?: "Person" | "Organization";
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/data/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Button, DatePicker, Input, Radio, Space, Tooltip } from "@voplus/antd";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import Address from "@voplus/morpho-org/es/components/Address";
|
|
4
|
+
import { EditOutlined } from "@ant-design/icons";
|
|
5
|
+
import { Form } from "@voplus/antd";
|
|
6
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
7
|
+
import { State } from "./state";
|
|
8
|
+
import moment from "moment";
|
|
9
|
+
import { useObserver } from "mobx-react-lite";
|
|
10
|
+
import { useUnit } from "@voplus/morpho-org";
|
|
11
|
+
const ContactInformation = (props) => {
|
|
12
|
+
const { id, scrollbar } = props;
|
|
13
|
+
const unit = useUnit(id);
|
|
14
|
+
const [state] = useState(new State());
|
|
15
|
+
const Information = useObserver(() => (React.createElement(Scrollbars, null,
|
|
16
|
+
React.createElement(Form, { labelAlign: "left", labelCol: { span: 4 }, className: "company-information" },
|
|
17
|
+
React.createElement("h3", null, "Contact Information"),
|
|
18
|
+
React.createElement(Form.Item, { label: "Phone" }, state.editable ? (React.createElement(Input, { value: state.contact.phone, onChange: e => (state.contact.phone = e.target.value) })) : (unit.phone)),
|
|
19
|
+
React.createElement(Form.Item, { label: "E-mail" }, state.editable ? (React.createElement(Input, { value: state.contact.email, onChange: e => (state.contact.email = e.target.value) })) : (unit.email)),
|
|
20
|
+
React.createElement(Form.Item, { label: "Address" }, state.editable ? (React.createElement(Address, { value: state.contact.address, onChange: v => (state.contact.address = v) })) : (React.createElement(React.Fragment, null,
|
|
21
|
+
unit.address.line1 ? unit.address.line1 + ", " : "",
|
|
22
|
+
unit.address.line2 ? unit.address.line2 + ", " : "",
|
|
23
|
+
unit.address.city ? unit.address.city + ", " : "",
|
|
24
|
+
unit.address.state ? unit.address.state + ", " : "",
|
|
25
|
+
unit.address.country ? unit.address.country + ", " : ""))),
|
|
26
|
+
React.createElement("h3", null, "Basic Information"),
|
|
27
|
+
React.createElement(Form.Item, { label: "Birthday" }, state.editable ? (React.createElement(DatePicker, { value: state.contact.birthday, onChange: date => (state.contact.birthday = date) })) : unit.birthday ? (moment(unit.birthday).format("YYYY-MM-DD")) : ("")),
|
|
28
|
+
React.createElement(Form.Item, { label: "Gender" }, state.editable ? (React.createElement(Radio.Group, { value: state.contact.gender, onChange: e => (state.contact.gender = e.target.value) },
|
|
29
|
+
React.createElement(Radio, { value: "Male" }, " Male"),
|
|
30
|
+
React.createElement(Radio, { value: "Female" }, "Female"))) : (unit.gender)),
|
|
31
|
+
state.editable && (React.createElement(Form.Item, { style: { textAlign: "right" } },
|
|
32
|
+
React.createElement(Space, { size: 10 },
|
|
33
|
+
React.createElement(Button, { size: "middle", onClick: () => (state.editable = false) }, "Cancel"),
|
|
34
|
+
React.createElement(Button, { type: "primary", size: "middle", onClick: onOk }, "Ok")))),
|
|
35
|
+
!state.editable && (React.createElement(Tooltip, { title: "Edit" },
|
|
36
|
+
React.createElement(Button, { type: "link", onClick: onEdit, className: "hover-edit-btn" },
|
|
37
|
+
React.createElement(EditOutlined, null))))))));
|
|
38
|
+
return (React.createElement(React.Fragment, null, scrollbar ? React.createElement(Scrollbars, null, Information) : Information));
|
|
39
|
+
/** hover edit Contact Info */
|
|
40
|
+
function onEdit() {
|
|
41
|
+
var _a;
|
|
42
|
+
state.contact.phone = unit.phone || "";
|
|
43
|
+
state.contact.email = unit.email || "";
|
|
44
|
+
state.contact.birthday = unit.birthday;
|
|
45
|
+
state.contact.address = ((_a = unit.address) === null || _a === void 0 ? void 0 : _a.line1) ? unit.address : state.defaultAddress;
|
|
46
|
+
state.contact.gender = unit.gender || "Male";
|
|
47
|
+
state.editable = true;
|
|
48
|
+
}
|
|
49
|
+
function onOk() {
|
|
50
|
+
console.log(state.contact, "ok");
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
export default ContactInformation;
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/ContactInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAgB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,kBAAkB,GAAG,CAAC,KAA0C,EAAE,EAAE;IACzE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhC,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzB,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,CACrC,oBAAC,UAAU;QACV,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAC,qBAAqB;YAC7E,sDAA4B;YAC5B,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO,IACtB,KAAK,CAAC,QAAQ,CAAC,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QAClF,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC;QAC7C,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IACD,SAAS,IAAI;QACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAddress } from "@voplus/morpho-org";
|
|
2
|
+
export declare class State {
|
|
3
|
+
editable: boolean;
|
|
4
|
+
/** default address */
|
|
5
|
+
defaultAddress: {
|
|
6
|
+
line1: string;
|
|
7
|
+
line2: string;
|
|
8
|
+
city: string;
|
|
9
|
+
state: string;
|
|
10
|
+
postalCode: string;
|
|
11
|
+
country: string;
|
|
12
|
+
};
|
|
13
|
+
contact: {
|
|
14
|
+
phone: string;
|
|
15
|
+
email: string;
|
|
16
|
+
address: IAddress;
|
|
17
|
+
birthday: string;
|
|
18
|
+
gender: "Male" | "Female";
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.editable = false;
|
|
6
|
+
/** default address */
|
|
7
|
+
this.defaultAddress = {
|
|
8
|
+
line1: "",
|
|
9
|
+
line2: "",
|
|
10
|
+
city: "",
|
|
11
|
+
state: "",
|
|
12
|
+
postalCode: "",
|
|
13
|
+
country: ""
|
|
14
|
+
};
|
|
15
|
+
this.contact = {
|
|
16
|
+
phone: "",
|
|
17
|
+
email: "",
|
|
18
|
+
address: this.defaultAddress,
|
|
19
|
+
birthday: "",
|
|
20
|
+
gender: "Male"
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
observable
|
|
26
|
+
], State.prototype, "editable", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
observable
|
|
29
|
+
], State.prototype, "contact", void 0);
|
|
30
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/ContactInformation/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,MAAM,CAAC;AAK5C,MAAM,OAAO,KAAK;IAAlB;QACoB,aAAQ,GAAG,KAAK,CAAC;QACpC,sBAAsB;QACf,mBAAc,GAAG;YACvB,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;YACT,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,EAAE;SACX,CAAC;QACiB,YAAO,GAMtB;YACH,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,IAAI,CAAC,cAAc;YAC5B,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,MAAM;SACd,CAAC;IACH,CAAC;CAAA;AAvBY;IAAX,UAAU;uCAAyB;AAUxB;IAAX,UAAU;sCAYT"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { AsideContent } from "@voplus/morpho-ui";
|
|
4
|
+
import ContactInformation from "../ContactInformation";
|
|
5
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
|
+
import IdentifyDetail from "../../Identity/IdentifyDetail";
|
|
7
|
+
import OfficerInformation from "../OfficerInformation";
|
|
8
|
+
import { Tabs } from "@voplus/antd";
|
|
9
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
10
|
+
const OfficerDefaultView = (props) => {
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
asideContext.openAside(AsideElement, { span: props.id ? 10 : 12 });
|
|
15
|
+
}, []);
|
|
16
|
+
const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
|
|
17
|
+
React.createElement(DocumentTabs, { id: id })));
|
|
18
|
+
return (React.createElement(AsideContent, { context: asideContext, className: "officer-default-view" },
|
|
19
|
+
React.createElement("div", { className: "officer-default-view_content" },
|
|
20
|
+
React.createElement("div", { className: "officer-default-view_header" },
|
|
21
|
+
React.createElement(UnitAvatar, { id: props.id, size: 70 }),
|
|
22
|
+
React.createElement("div", { className: "officer-person-name" }, "Alex Kwok"),
|
|
23
|
+
React.createElement("div", null, "ABC Company")),
|
|
24
|
+
React.createElement(Tabs, { defaultActiveKey: "Officer" },
|
|
25
|
+
React.createElement(Tabs.TabPane, { tab: "Officer Details", key: "Officer" },
|
|
26
|
+
React.createElement(OfficerInformation, null)),
|
|
27
|
+
React.createElement(Tabs.TabPane, { tab: "Contact Details", key: "Contact" },
|
|
28
|
+
React.createElement(ContactInformation, { id: id })),
|
|
29
|
+
React.createElement(Tabs.TabPane, { tab: "Identify Details", key: "Identify" },
|
|
30
|
+
React.createElement(IdentifyDetail, { id: id }))))));
|
|
31
|
+
};
|
|
32
|
+
export default OfficerDefaultView;
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/OfficerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,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AAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CAChB;gBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,kBAAkB,EAAC,GAAG,EAAC,UAAU;oBAClD,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,CACZ,CACT,CACF,CACQ,CACf,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.officer-default-view {
|
|
3
|
+
padding: 0 !important;
|
|
4
|
+
.officer-default-view_content {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
}
|
|
11
|
+
.officer-default-view_header {
|
|
12
|
+
text-align: center;
|
|
13
|
+
padding: 20px 0 10px 0;
|
|
14
|
+
.officer-person-name {
|
|
15
|
+
color: #000;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
padding-top: 12px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.ant-tabs {
|
|
22
|
+
height: 100%;
|
|
23
|
+
.ant-tabs-nav {
|
|
24
|
+
margin: 0 20px;
|
|
25
|
+
}
|
|
26
|
+
.company-information {
|
|
27
|
+
padding: 15px 20px;
|
|
28
|
+
h3 {
|
|
29
|
+
margin-bottom: 15px;
|
|
30
|
+
color: #000;
|
|
31
|
+
}
|
|
32
|
+
&:hover {
|
|
33
|
+
.hover-edit-btn {
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.hover-edit-btn {
|
|
38
|
+
position: absolute;
|
|
39
|
+
display: none;
|
|
40
|
+
top: 15px;
|
|
41
|
+
right: 20px;
|
|
42
|
+
height: auto;
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Badge, Form } from "@voplus/antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
4
|
+
const OfficerInformation = () => {
|
|
5
|
+
return (React.createElement(Scrollbars, null,
|
|
6
|
+
React.createElement(Form, { labelAlign: "left", labelCol: { span: 6 }, className: "company-information" },
|
|
7
|
+
React.createElement(Form.Item, { label: "Status" },
|
|
8
|
+
React.createElement(Badge, { status: "success", text: "Present" }),
|
|
9
|
+
React.createElement("br", null),
|
|
10
|
+
React.createElement(Badge, { status: "error", text: "Past" })),
|
|
11
|
+
React.createElement(Form.Item, { label: "Appointment Date" }),
|
|
12
|
+
React.createElement(Form.Item, { label: "Cease Date" }))));
|
|
13
|
+
};
|
|
14
|
+
export default OfficerInformation;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/OfficerInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,OAAO,CACN,oBAAC,UAAU;QACV,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAC,qBAAqB;YAC7E,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ;gBACxB,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG;gBACzC,+BAAM;gBACN,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CACzB;YACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,kBAAkB,GAAa;YAChD,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,YAAY,GAAa,CACpC,CASK,CACb,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { FilterViewContextState } from "@voplus/morpho-ui/es/data/FilterViewContext";
|
|
3
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { useShareTransactionListEffect, useShareTransactionStore } from "../../../../../data/shareTransaction";
|
|
6
|
+
import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
|
|
7
|
+
import FilterView from "@voplus/morpho-ui/es/controls/FilterView/FilterView2";
|
|
8
|
+
import { Input } from "@voplus/antd";
|
|
9
|
+
import ListView2 from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
10
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
11
|
+
import OfficerStatusFilter from "../OfficerStatusFilter";
|
|
12
|
+
import ShareTransactionItem from "../../../../legalEntity/shareTransactionsRegister/ShareTransactionItem";
|
|
13
|
+
import { State } from "./state";
|
|
14
|
+
import TransactionTypeDropdown from "../../../../legalEntity/shareTransactionsRegister/TransactionTypeDropdown";
|
|
15
|
+
import TransactionTypeFilter from "../../../../legalEntity/shareTransactionsRegister/TransactionTypeFilter";
|
|
16
|
+
import { useDeepMemo } from "@voplus/morpho-data";
|
|
17
|
+
import { useObserver } from "mobx-react-lite";
|
|
18
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
19
|
+
const OfficerList = (props) => {
|
|
20
|
+
const { parentId, readonly } = props;
|
|
21
|
+
const shareStore = useShareTransactionStore();
|
|
22
|
+
const documentStore = useDocumentStore();
|
|
23
|
+
const list = useCreateListDataState({
|
|
24
|
+
filterDefaults: {
|
|
25
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }]
|
|
26
|
+
}
|
|
27
|
+
}, [parentId]);
|
|
28
|
+
const [filterViewState] = useState(new FilterViewContextState());
|
|
29
|
+
const state = useDeepMemo(() => new State(), []);
|
|
30
|
+
useAutoUpdateListData(list, d => d.type === "ShareTransaction");
|
|
31
|
+
useRenderOnChange(() => list.filters.options);
|
|
32
|
+
useShareTransactionListEffect(list, result => list.union(result), list.filters.options);
|
|
33
|
+
return useObserver(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
34
|
+
React.createElement(ListView2, { headerProps: {
|
|
35
|
+
header: (React.createElement("div", { className: "officer-list-header" },
|
|
36
|
+
React.createElement("div", { className: "view-title" }, "Officer List"),
|
|
37
|
+
React.createElement("div", null,
|
|
38
|
+
React.createElement(FilterView, { columns: [
|
|
39
|
+
React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter" }),
|
|
40
|
+
React.createElement(TransactionTypeFilter, { key: "TransactionTypeFilter" })
|
|
41
|
+
] }),
|
|
42
|
+
!readonly && React.createElement(TransactionTypeDropdown, { onSelect: onSelect })))),
|
|
43
|
+
sortable: false,
|
|
44
|
+
addAble: false
|
|
45
|
+
}, renderItem: ({ item, index, connectDragSource, checkbox }) => (React.createElement(ShareTransactionItem, { key: item.id, id: item.id, connectDragSource: connectDragSource, className: index === 0 ? "shareTransaction-item-first" : "" })), moveAfter: moveAfter }),
|
|
46
|
+
state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
|
|
47
|
+
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 => {
|
|
48
|
+
if (e.keyCode === 27)
|
|
49
|
+
state.addAble = false;
|
|
50
|
+
} }))))));
|
|
51
|
+
function onSelect(type) {
|
|
52
|
+
state.type = type;
|
|
53
|
+
state.addAble = !!type;
|
|
54
|
+
}
|
|
55
|
+
async function onSave() {
|
|
56
|
+
await shareStore.create({
|
|
57
|
+
ParentId: parentId,
|
|
58
|
+
Name: state.name,
|
|
59
|
+
TransactionType: state.type,
|
|
60
|
+
Currency: "SGD"
|
|
61
|
+
});
|
|
62
|
+
state.addAble = false;
|
|
63
|
+
state.name = "";
|
|
64
|
+
}
|
|
65
|
+
async function moveAfter(id, afterId) {
|
|
66
|
+
await documentStore.moveAfter(id, afterId);
|
|
67
|
+
}
|
|
68
|
+
function onFilter(value) {
|
|
69
|
+
list.reset();
|
|
70
|
+
const { customize } = value;
|
|
71
|
+
if (customize.transactionTypes && customize.transactionTypes.length)
|
|
72
|
+
list.filters.replace({
|
|
73
|
+
c: "TransactionType",
|
|
74
|
+
o: "contains",
|
|
75
|
+
v1: JSON.stringify(customize.transactionTypes),
|
|
76
|
+
l: "And"
|
|
77
|
+
});
|
|
78
|
+
if (!(filterViewState.customize && filterViewState.customize.transactionTypes))
|
|
79
|
+
filterViewState.customize = { transactionTypes: [] };
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export default OfficerList;
|
|
83
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/OfficerRegister/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEN,sBAAsB,EACtB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAEN,6BAA6B,EAC7B,wBAAwB,EACxB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,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C,MAAM;YAClE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;gBACpB,CAAC,EAAE,iBAAiB;gBACpB,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,CAAC;gBAC9C,CAAC,EAAE,KAAK;aACR,CAAC,CAAC;QAEJ,IAAI,CAAC,CAAC,eAAe,CAAC,SAAS,IAAI,eAAe,CAAC,SAAS,CAAC,gBAAgB,CAAC;YAC7E,eAAe,CAAC,SAAS,GAAG,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC;IACvD,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
:global {
|
|
3
|
+
.create-shareTransaction-form {
|
|
4
|
+
padding: 10px 20px;
|
|
5
|
+
border-top: 1px solid @border-color-base;
|
|
6
|
+
:global {
|
|
7
|
+
.ant-input {
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: 0;
|
|
10
|
+
box-shadow: none;
|
|
11
|
+
color: @heading-color;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.name = "";
|
|
6
|
+
this.type = "Allotment";
|
|
7
|
+
this.addAble = false;
|
|
8
|
+
this.loading = false;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
__decorate([
|
|
12
|
+
observable
|
|
13
|
+
], State.prototype, "name", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
observable
|
|
16
|
+
], State.prototype, "type", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
observable
|
|
19
|
+
], State.prototype, "addAble", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
observable
|
|
22
|
+
], State.prototype, "loading", void 0);
|
|
23
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/OfficerRegister/OfficerList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACoB,SAAI,GAAG,EAAE,CAAC;QACV,SAAI,GAAyB,WAAW,CAAC;QACzC,YAAO,GAAG,KAAK,CAAC;QAChB,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AAJY;IAAX,UAAU;mCAAkB;AACjB;IAAX,UAAU;mCAAiD;AAChD;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB"}
|