@voplus/morpho-csp 1.2.0-dev09 → 1.2.2
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/Modules.js +1 -1
- package/es/Modules.js.map +1 -1
- package/es/components/CompanyMemberSelect/index.js +1 -1
- package/es/components/CompanyMemberSelect/index.js.map +1 -1
- package/es/components/RegisteresMenuItem/index.d.ts +7 -0
- package/es/components/RegisteresMenuItem/index.js +37 -0
- package/es/components/RegisteresMenuItem/index.js.map +1 -0
- package/es/components/TableDragRow/index.js +1 -1
- package/es/components/TableDragRow/index.js.map +1 -1
- package/es/data/controllerRegister/ControllerStore.d.ts +27 -0
- package/es/data/controllerRegister/ControllerStore.js +93 -0
- package/es/data/controllerRegister/ControllerStore.js.map +1 -0
- package/es/data/controllerRegister/hooks.d.ts +10 -0
- package/es/data/controllerRegister/hooks.js +19 -0
- package/es/data/controllerRegister/hooks.js.map +1 -0
- package/es/data/controllerRegister/index.d.ts +4 -0
- package/es/data/controllerRegister/index.js +5 -0
- package/es/data/controllerRegister/index.js.map +1 -0
- package/es/data/controllerRegister/interfaces.d.ts +15 -0
- package/es/data/controllerRegister/interfaces.js +2 -0
- package/es/data/controllerRegister/interfaces.js.map +1 -0
- package/es/data/controllerRegister/types.d.ts +35 -0
- package/es/data/controllerRegister/types.js +2 -0
- package/es/data/controllerRegister/types.js.map +1 -0
- package/es/data/relationship/CorporateRelationshipContext.d.ts +18 -0
- package/es/data/relationship/CorporateRelationshipContext.js +43 -0
- package/es/data/relationship/CorporateRelationshipContext.js.map +1 -0
- package/es/data/relationship/RelationshipStore.d.ts +16 -0
- package/es/data/relationship/RelationshipStore.js +48 -0
- package/es/data/relationship/RelationshipStore.js.map +1 -0
- package/es/data/relationship/hooks.d.ts +6 -0
- package/es/data/relationship/hooks.js +12 -0
- package/es/data/relationship/hooks.js.map +1 -0
- package/es/data/relationship/index.d.ts +4 -0
- package/es/data/relationship/index.js +5 -0
- package/es/data/relationship/index.js.map +1 -0
- package/es/data/relationship/interfaces.d.ts +18 -0
- package/es/data/relationship/interfaces.js +2 -0
- package/es/data/relationship/interfaces.js.map +1 -0
- package/es/data/relationship/types.d.ts +7 -0
- package/es/data/relationship/types.js +2 -0
- package/es/data/relationship/types.js.map +1 -0
- package/es/data/shareOptionsRegister/ShareOptionStore.d.ts +12 -0
- package/es/data/shareOptionsRegister/ShareOptionStore.js +22 -0
- package/es/data/shareOptionsRegister/ShareOptionStore.js.map +1 -0
- package/es/data/shareOptionsRegister/hooks.d.ts +9 -0
- package/es/data/shareOptionsRegister/hooks.js +20 -0
- package/es/data/shareOptionsRegister/hooks.js.map +1 -0
- package/es/data/shareOptionsRegister/index.d.ts +4 -0
- package/es/data/shareOptionsRegister/index.js +5 -0
- package/es/data/shareOptionsRegister/index.js.map +1 -0
- package/es/data/shareOptionsRegister/interfaces.d.ts +28 -0
- package/es/data/shareOptionsRegister/interfaces.js +2 -0
- package/es/data/shareOptionsRegister/interfaces.js.map +1 -0
- package/es/data/shareOptionsRegister/metas.d.ts +6 -0
- package/es/data/shareOptionsRegister/metas.js +14 -0
- package/es/data/shareOptionsRegister/metas.js.map +1 -0
- package/es/data/shareOptionsRegister/types.d.ts +29 -0
- package/es/data/shareOptionsRegister/types.js +2 -0
- package/es/data/shareOptionsRegister/types.js.map +1 -0
- package/es/modules/account/AccountPropertiesView/index.js +1 -1
- package/es/modules/account/AccountPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/index.js +8 -18
- package/es/modules/corporate/CLDA/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/state.d.ts +1 -1
- package/es/modules/corporate/CLDA/CLDAListView/state.js +3 -1
- package/es/modules/corporate/CLDA/CLDAListView/state.js.map +1 -1
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.d.ts +4 -0
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.js +21 -0
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.less +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerInformation/index.d.ts +11 -0
- package/es/modules/corporate/ControllerRegister/ControllerInformation/index.js +53 -0
- package/es/modules/corporate/ControllerRegister/ControllerInformation/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.d.ts +13 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.js +32 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.less +29 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.d.ts +7 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.js +72 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.less +12 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/state.d.ts +9 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/state.js +49 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/state.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.d.ts +8 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.js +67 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.less +39 -0
- package/es/modules/corporate/CorporateSelect/index.js +1 -1
- package/es/modules/corporate/CorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/DocumentIconList/index.js +1 -1
- package/es/modules/corporate/DocumentIconList/index.js.map +1 -1
- package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js +3 -3
- package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js.map +1 -1
- package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js +7 -7
- package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js.map +1 -1
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.d.ts +4 -0
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.js +36 -0
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.js.map +1 -0
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.less +5 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.d.ts +5 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.js +259 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.js.map +1 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.d.ts +11 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.js +46 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.d.ts +7 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.js +26 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.less +11 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.d.ts +4 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.js +78 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.less +89 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.d.ts +12 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.js +59 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.less +84 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.d.ts +28 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.js +83 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.d.ts +3 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.js +93 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.d.ts +6 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.js +132 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.d.ts +10 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.js +95 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.less +22 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.d.ts +9 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.js +56 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.d.ts +6 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.js +48 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.d.ts +12 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.js +15 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.less +89 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js +1 -1
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js +1 -1
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.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/routes.d.ts +12 -0
- package/es/routes.js +27 -1
- package/es/routes.js.map +1 -1
- package/package.json +21 -24
- package/changelog.md +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DocumentTypeStore, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useStore } from "@voplus/morpho-data";
|
|
3
|
+
const StoreName = "ShareOptionStore";
|
|
4
|
+
/** ShareOption store supply backend functions. */
|
|
5
|
+
export class ShareOptionStore extends DocumentTypeStore {
|
|
6
|
+
constructor(endpoint, documents) {
|
|
7
|
+
super(endpoint, "/api/documents", documents);
|
|
8
|
+
/** Name of the store */
|
|
9
|
+
Object.defineProperty(this, "name", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true,
|
|
13
|
+
value: StoreName
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** 响应钩子检索 ShareOptionStore */
|
|
18
|
+
export const useShareOptionStore = () => {
|
|
19
|
+
const documents = useDocumentStore();
|
|
20
|
+
return useStore(StoreName, (context) => new ShareOptionStore(context.api.currentEndPoint, documents));
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=ShareOptionStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareOptionStore.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/ShareOptionStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,MAAM,SAAS,GAAG,kBAAkB,CAAC;AAErC,kDAAkD;AAClD,MAAM,OAAO,gBAAiB,SAAQ,iBAOrC;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;QAJ9C,wBAAwB;QACxB;;;;mBAA+B,SAAS;WAAC;IAIzC,CAAC;CACD;AAED,8BAA8B;AAC9B,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACvC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,QAAQ,CACd,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CACzE,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IShareOption } from ".";
|
|
2
|
+
import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
+
/** React hook to retrieve a quotation
|
|
5
|
+
* @param {string} id - id of the quotation
|
|
6
|
+
* @param {LoadDocumentOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export declare const useShareOption: (id: string, options?: LoadDocumentOptions | undefined) => IShareOption;
|
|
9
|
+
export declare const useShareOptionListEffect: (list: ListDataContextState<any> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions | undefined) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useShareOptionStore } from ".";
|
|
2
|
+
import { useDocumentListLoaderEffect, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
3
|
+
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
4
|
+
/** React hook to retrieve a quotation
|
|
5
|
+
* @param {string} id - id of the quotation
|
|
6
|
+
* @param {LoadDocumentOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export const useShareOption = (id, options) => {
|
|
9
|
+
options = options ? options : {};
|
|
10
|
+
const store = useShareOptionStore();
|
|
11
|
+
const documents = useDocumentStore();
|
|
12
|
+
return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
|
|
13
|
+
};
|
|
14
|
+
export const useShareOptionListEffect = (list, effect, options) => {
|
|
15
|
+
const deps = options ? options : {};
|
|
16
|
+
const tasks = useShareOptionStore();
|
|
17
|
+
// Call useDocumentListEffect and ensure won't load twice for same loading options.
|
|
18
|
+
return useDocumentListLoaderEffect(list, effect, () => tasks.loadList(options), [deps]);
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,GAAG,CAAC;AACtD,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IAC3E,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACvC,IAAsC,EACtC,MAA6B,EAC7B,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IAEpC,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AACzF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IDocument } from "@voplus/morpho-document-core";
|
|
2
|
+
export interface IShareOption extends IDocument {
|
|
3
|
+
/** Share option issued to*/
|
|
4
|
+
to?: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
/** Reference number of the share option*/
|
|
9
|
+
number: string;
|
|
10
|
+
/** */
|
|
11
|
+
currency: string;
|
|
12
|
+
/** ShareType of option*/
|
|
13
|
+
class: string;
|
|
14
|
+
/** 总股权数 */
|
|
15
|
+
options: number;
|
|
16
|
+
/** 行权日历. */
|
|
17
|
+
schedule?: IVestingSchedule[];
|
|
18
|
+
}
|
|
19
|
+
export interface IVestingSchedule {
|
|
20
|
+
/** Index of the line. */
|
|
21
|
+
sequence: number;
|
|
22
|
+
/** Id of the line. */
|
|
23
|
+
id: number;
|
|
24
|
+
/** 最早行权日期*/
|
|
25
|
+
date: string;
|
|
26
|
+
/** 可行权股权数 */
|
|
27
|
+
options: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
|
|
2
|
+
/** Meta information for Meeting document. */
|
|
3
|
+
export class ShareOptionTypeMeta extends DefaultDocumentTypeMeta {
|
|
4
|
+
get name() {
|
|
5
|
+
return ShareOptionTypeMeta.TypeName;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(ShareOptionTypeMeta, "TypeName", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true,
|
|
12
|
+
value: "ShareOption"
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=metas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,6CAA6C;AAC7C,MAAM,OAAO,mBAAoB,SAAQ,uBAAuB;IAG/D,IAAW,IAAI;QACd,OAAO,mBAAmB,CAAC,QAAQ,CAAC;IACrC,CAAC;;AAJD;;;;WAAyB,aAAa;GAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CreateDocumentOptions, EditDocumentDataOptions } from "@voplus/morpho-document-core";
|
|
2
|
+
export declare type ShareOptionType = "Allotment" | "Transfer" | "Cancel" | "Convert" | "Consolidate" | "Divide" | "Import" | "Others";
|
|
3
|
+
export declare type ShareLineCreateOptions = {
|
|
4
|
+
/** Shareholder of the new share line. */
|
|
5
|
+
Shareholder?: string;
|
|
6
|
+
/** Consideration of the new share line */
|
|
7
|
+
Consideration: number;
|
|
8
|
+
/** Currency of the new share line.*/
|
|
9
|
+
Currency: string;
|
|
10
|
+
/** Shares of the new share line. */
|
|
11
|
+
Shares: number;
|
|
12
|
+
/** Type of share line(Ordinary | Preference | undefined )*/
|
|
13
|
+
Class: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type ShareOptionCreateOptions = {
|
|
16
|
+
ParentId: string;
|
|
17
|
+
/** ShareOptionType of the ShareOption */
|
|
18
|
+
TransactionType: ShareOptionType;
|
|
19
|
+
/** Currency of the ShareOption */
|
|
20
|
+
Currency: string;
|
|
21
|
+
/** DateTime of the ShareOption */
|
|
22
|
+
Date?: Date;
|
|
23
|
+
} & CreateDocumentOptions;
|
|
24
|
+
export declare type ShareOptionEditOptions = {
|
|
25
|
+
/** Currency of the ShareOption */
|
|
26
|
+
Currency?: string;
|
|
27
|
+
/** Array of lines to be updated */
|
|
28
|
+
Lines?: ShareLineCreateOptions[];
|
|
29
|
+
} & EditDocumentDataOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/types.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import ContactInformation from "../../../modules/corporate/company/Officer/Conta
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Scrollbars } from "react-custom-scrollbars";
|
|
5
5
|
import { Skeleton } from "@voplus/antd";
|
|
6
|
-
import UnitAvatar from "
|
|
6
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
|
8
8
|
import { useUnit } from "@voplus/morpho-org";
|
|
9
9
|
const AccountPropertiesView = (props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account/AccountPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account/AccountPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,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,6 +1,6 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import { CLDASigningModeFilter, CLDAStatusFilter } from "../controls/filters";
|
|
3
|
-
import { useCLDAListEffect
|
|
3
|
+
import { useCLDAListEffect } from "../../../../data/CLDA";
|
|
4
4
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
5
5
|
import React, { useEffect, useState } from "react";
|
|
6
6
|
import { useRouteMatch } from "react-router";
|
|
@@ -10,7 +10,7 @@ import CLDAPropertiesView from "../CLDAPropertiesView";
|
|
|
10
10
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
11
11
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
12
12
|
import NewCLDA from "../components/NewCLDA";
|
|
13
|
-
import SearchHeader from "@voplus/morpho-ui/es/components/layout/ListView/
|
|
13
|
+
import SearchHeader from "@voplus/morpho-ui/es/components/layout/ListView/headers/SearchHeader";
|
|
14
14
|
import { State } from "./state";
|
|
15
15
|
import classnames from "classnames";
|
|
16
16
|
import { observe } from "@voplus/morpho-ui";
|
|
@@ -20,24 +20,17 @@ import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
|
20
20
|
import { useTabItem } from "@voplus/morpho-data";
|
|
21
21
|
const CLDAList = (props) => {
|
|
22
22
|
const match = useRouteMatch();
|
|
23
|
-
const [state] = useState(new State());
|
|
24
23
|
const { searchHeader, filterable } = props;
|
|
25
|
-
state.update(props.parentId || match.params.parentDocId);
|
|
26
|
-
const CLDAStore = useCLDAStore();
|
|
27
|
-
const tab = useTabItem();
|
|
28
24
|
const [activeId, setActiveId] = useState("");
|
|
25
|
+
const tab = useTabItem();
|
|
26
|
+
const [state] = useState(new State());
|
|
27
|
+
state.update(props.parentId || match.params.parentDocId, props.assistantStatus, props.signingMode);
|
|
29
28
|
const list = useCreateListDataState({
|
|
30
|
-
filterDefaults: { includes: "tags" },
|
|
31
|
-
}, [state.
|
|
29
|
+
filterDefaults: { includes: "tags", filters: state.filters },
|
|
30
|
+
}, [state.filters]);
|
|
32
31
|
useEffect(() => {
|
|
33
32
|
runInAction(() => (tab.title = "CLDA"));
|
|
34
33
|
}, []);
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
runInAction(() => (state.assistantStatus = props.assistantStatus));
|
|
37
|
-
}, [props.assistantStatus]);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
runInAction(() => (state.signingMode = props.signingMode));
|
|
40
|
-
}, [props.signingMode]);
|
|
41
34
|
const header = observe(() => (React.createElement(React.Fragment, null,
|
|
42
35
|
React.createElement(SearchHeader, { onChange: onChangeName }),
|
|
43
36
|
state.remindAll && (React.createElement(Button, { className: "remind-all", type: "primary", size: "small", loading: state.loading, onClick: onRemindAll }, "Remind All")))));
|
|
@@ -51,10 +44,7 @@ const CLDAList = (props) => {
|
|
|
51
44
|
}, [state.assistantStatus, state.signingMode]);
|
|
52
45
|
useAutoUpdateListData(list, (d) => d.parentId === state.id);
|
|
53
46
|
useRenderOnChange(() => list.filters.options);
|
|
54
|
-
useCLDAListEffect(list, (result) => list.union(result),
|
|
55
|
-
...list.filters.options,
|
|
56
|
-
Filters: state.filters,
|
|
57
|
-
});
|
|
47
|
+
useCLDAListEffect(list, (result) => list.union(result), list.filters.options);
|
|
58
48
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
59
49
|
React.createElement(ListView, { className: classnames({
|
|
60
50
|
"CLDA-list-view": state.remindAll,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/CLDA/CLDAListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAS,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/CLDA/CLDAListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAS,iBAAiB,EAAgB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,YAAY,MAAM,sEAAsE,CAAC;AAChG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM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AC,CAAC;SAC5B;QACD,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC/B,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;gBACrB,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC;gBACpB,IAAI,CAAC,KAAK,EAAE,CAAC;YACd,CAAC,EAAE,IAAI,CAAC,CAAC;QACV,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,WAAW;QACnB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC7B,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,8BAA8B;QAC9B,4DAA4D;QAC5D,qBAAqB;QACrB,MAAM;QACN,yBAAyB;IAC1B,CAAC;AACF,CAAC,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACvB,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -15,7 +15,7 @@ export declare class State {
|
|
|
15
15
|
/** loading of the Remind All */
|
|
16
16
|
loading?: boolean;
|
|
17
17
|
constructor();
|
|
18
|
-
update(id: string): void;
|
|
18
|
+
update(id: string, assistantStatus?: string, signingMode?: string): void;
|
|
19
19
|
/** Remind All */
|
|
20
20
|
get remindAll(): boolean;
|
|
21
21
|
/**
|
|
@@ -53,8 +53,10 @@ export class State {
|
|
|
53
53
|
});
|
|
54
54
|
makeAutoObservable(this);
|
|
55
55
|
}
|
|
56
|
-
update(id) {
|
|
56
|
+
update(id, assistantStatus, signingMode) {
|
|
57
57
|
this.id = id;
|
|
58
|
+
this.assistantStatus = assistantStatus;
|
|
59
|
+
this.signingMode = signingMode;
|
|
58
60
|
}
|
|
59
61
|
/** Remind All */
|
|
60
62
|
get remindAll() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/CLDA/CLDAListView/state.ts"],"names":[],"mappings":";AA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AAC;IAChB,CAAC;CACD;AAzDY;IAAX,UAAU;iCAAoB;AAEnB;IAAX,UAAU;8CAAiC;AAEhC;IAAX,UAAU;0CAA6B;AAE5B;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;sCAA4B;AAE3B;IAAX,UAAU;yCAAyC;AAExC;IAAX,UAAU;sCAA0B;AAOrC;IADC,MAAM;mCAKN;AAID;IADC,QAAQ;sCAOR;AAOD;IADC,QAAQ;oCAiBR"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { AsideContent } from "@voplus/morpho-ui";
|
|
4
|
+
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
5
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { useRouteMatch } from "react-router";
|
|
8
|
+
const ControllerDefaultView = () => {
|
|
9
|
+
const match = useRouteMatch();
|
|
10
|
+
const id = match.params.id;
|
|
11
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
asideContext.openAside(AsideElement, { span: 12 });
|
|
14
|
+
}, []);
|
|
15
|
+
const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
|
|
16
|
+
React.createElement(DocumentTabs, { id: id })));
|
|
17
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
|
18
|
+
React.createElement(ControllerPropertiesView, { id: id, toolbar: false }))));
|
|
19
|
+
};
|
|
20
|
+
export default ControllerDefaultView;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerDefaultView/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,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,KAAK,GAAG,aAAa,EAAmC,CAAC;IAC/D,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACd,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,YAAY,GAAG,CACpB,6BAAK,SAAS,EAAC,wBAAwB;QACtC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CACnB,CACN,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;QAClC,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI,CACtC,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Badge, Form, Skeleton } from "@voplus/antd";
|
|
2
|
+
import { useControllerStore, } from "../../../../data/controllerRegister";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
5
|
+
import { InlineEdit } from "@voplus/morpho-ui";
|
|
6
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
7
|
+
import moment from "moment";
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
|
+
const ControllerInformation = (props) => {
|
|
10
|
+
const { id, allowEdit } = props;
|
|
11
|
+
// const controller = useController(id);
|
|
12
|
+
const controller = {
|
|
13
|
+
id: "",
|
|
14
|
+
name: "Controller",
|
|
15
|
+
unitId: "dfb9661a-b3fd-4dbc-b0aa-8f65c39c6ae0",
|
|
16
|
+
confirmDate: "2021-03-10",
|
|
17
|
+
ceaseDate: "2021-03-10",
|
|
18
|
+
status: "Present",
|
|
19
|
+
loading: false,
|
|
20
|
+
};
|
|
21
|
+
const controllerStore = useControllerStore();
|
|
22
|
+
return observe(() => (React.createElement(Scrollbars, null, controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
23
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement(Form, { labelAlign: "left", labelCol: { span: 6 }, className: "company-information" },
|
|
24
|
+
controller.status && (React.createElement(Form.Item, { label: "Status" }, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))),
|
|
25
|
+
React.createElement(Form.Item, { label: "Appointment Date" },
|
|
26
|
+
React.createElement(InlineEdit, { defaultValue: moment(controller === null || controller === void 0 ? void 0 : controller.confirmDate), content: (v) => (React.createElement("span", null, (controller === null || controller === void 0 ? void 0 : controller.confirmDate)
|
|
27
|
+
? moment(v.store.value).format("YYYY-MM-DD")
|
|
28
|
+
: allowEdit
|
|
29
|
+
? "Add Appointment Date"
|
|
30
|
+
: "No Appointment Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
|
|
31
|
+
if (moment(date).isSame(controller === null || controller === void 0 ? void 0 : controller.confirmDate, "day"))
|
|
32
|
+
return;
|
|
33
|
+
edit({ Appointment: date });
|
|
34
|
+
} })),
|
|
35
|
+
React.createElement(Form.Item, { label: "Cease Date" },
|
|
36
|
+
React.createElement(InlineEdit, { defaultValue: moment(controller === null || controller === void 0 ? void 0 : controller.ceaseDate), content: (v) => (React.createElement("span", null, (controller === null || controller === void 0 ? void 0 : controller.ceaseDate)
|
|
37
|
+
? moment(v.store.value).format("YYYY-MM-DD")
|
|
38
|
+
: allowEdit
|
|
39
|
+
? "Add Cease Date"
|
|
40
|
+
: "No Cease Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
|
|
41
|
+
if (moment(date).isSame(controller === null || controller === void 0 ? void 0 : controller.ceaseDate, "day"))
|
|
42
|
+
return;
|
|
43
|
+
edit({ Cease: date });
|
|
44
|
+
} })))))));
|
|
45
|
+
async function edit(data) {
|
|
46
|
+
await controllerStore.edit(id, { data, error: "message" });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
ControllerInformation.defaultProps = {
|
|
50
|
+
allowEdit: true,
|
|
51
|
+
};
|
|
52
|
+
export default ControllerInformation;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAS,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAGN,kBAAkB,GAClB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,qBAAqB,GAAG,CAAC,KAA0C,EAAE,EAAE;IAC5E,MAAM,EA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AC,CAAC;gBAC9B,CAAC,GACA,CACS,CACN,CACP,CACW,CACb,CAAC,CAAC;IACH,KAAK,UAAU,IAAI,CAAC,IAA+B;QAClD,MAAM,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AACF,qBAAqB,CAAC,YAAY,GAAG;IACpC,SAAS,EAAE,IAAI;CACf,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const ControllerItem: (props: {
|
|
4
|
+
/** id of officer */
|
|
5
|
+
id: string;
|
|
6
|
+
/** id of unit */
|
|
7
|
+
/** id of identity */
|
|
8
|
+
identityId: string;
|
|
9
|
+
/** index of officer list */
|
|
10
|
+
index: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
}) => JSX.Element;
|
|
13
|
+
export default ControllerItem;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Badge } from "@voplus/antd";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
5
|
+
import moment from "moment";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
const ControllerItem = (props) => {
|
|
8
|
+
const { id, index } = props;
|
|
9
|
+
// const controller = useController(id);
|
|
10
|
+
const controller = {
|
|
11
|
+
id: "",
|
|
12
|
+
name: "Controller",
|
|
13
|
+
unitId: "dfb9661a-b3fd-4dbc-b0aa-8f65c39c6ae0",
|
|
14
|
+
confirmDate: "2021-03-10",
|
|
15
|
+
ceaseDate: "2021-03-10",
|
|
16
|
+
status: "Present",
|
|
17
|
+
};
|
|
18
|
+
return observe(() => (React.createElement("div", { className: "controller-item" },
|
|
19
|
+
React.createElement(React.Fragment, null,
|
|
20
|
+
React.createElement(UnitAvatar, { id: controller.unitId, index: index, size: "large" }),
|
|
21
|
+
React.createElement("div", { className: "controller-info" },
|
|
22
|
+
React.createElement("div", { className: "title" }, controller.name),
|
|
23
|
+
controller.confirmDate && (React.createElement("div", { className: "appointment-date" },
|
|
24
|
+
"confirmDate Date: ",
|
|
25
|
+
moment(controller.confirmDate).format("YYYY-MM-DD"))),
|
|
26
|
+
controller.ceaseDate && (React.createElement("div", { className: "cease-date" },
|
|
27
|
+
"Cease Date: ",
|
|
28
|
+
moment(controller.ceaseDate).format("YYYY-MM-DD")))),
|
|
29
|
+
controller.status && (React.createElement("div", null, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" }))))))));
|
|
30
|
+
};
|
|
31
|
+
export default ControllerItem;
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAqB,MAAM,cAAc,CAAC;AAIxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,cAAc,GAAG,CAAC,KAUvB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE5B,wCAAwC;IAExC,MAAM,UAAU,GAAG;QAClB,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,sCAAsC;QAC9C,WAAW,EAAE,YAAY;QACzB,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,SAAS;KACjB,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iBAAiB;QAI/B,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,UAAU,IAAC,EAAE,EAAE,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,OAAO,GAAG;YAChE,6BAAK,SAAS,EAAC,iBAAiB;gBAC/B,6BAAK,SAAS,EAAC,OAAO,IAAE,UAAU,CAAC,IAAI,CAAO;gBAC7C,UAAU,CAAC,WAAW,IAAI,CAC1B,6BAAK,SAAS,EAAC,kBAAkB;;oBACb,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CACjE,CACN;gBACA,UAAU,CAAC,SAAS,IAAI,CACxB,6BAAK,SAAS,EAAC,YAAY;;oBACb,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CACzD,CACN,CACI;YACL,UAAU,CAAC,MAAM,IAAI,CACrB,iCACE,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAClC,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG,CACzC,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CACpC,CACI,CACN,CACe,CAEZ,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.controller-item {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: 10px 20px;
|
|
8
|
+
&::after {
|
|
9
|
+
position: absolute;
|
|
10
|
+
content: "";
|
|
11
|
+
left: 20px;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
right: 20px;
|
|
14
|
+
border-bottom: 1px solid #f2f2f2;
|
|
15
|
+
}
|
|
16
|
+
.controller-info {
|
|
17
|
+
flex: 1;
|
|
18
|
+
margin-left: 10px;
|
|
19
|
+
.title {
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.appointment-date,
|
|
24
|
+
.cease-date {
|
|
25
|
+
font-size: 13px;
|
|
26
|
+
line-height: 22px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { useControllerStore, } from "../../../../data/controllerRegister";
|
|
3
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
+
import ControllerItem from "../ControllerItem";
|
|
5
|
+
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
6
|
+
import { FilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
7
|
+
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
|
8
|
+
import Header from "../../../../components/Header";
|
|
9
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
10
|
+
import NewTypeDropdown from "../../../../components/NewTypeDropdown";
|
|
11
|
+
import OfficerStatusFilter from "../../company/OfficerRegister/OfficerStatusFilter";
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { State } from "./state";
|
|
14
|
+
import { observe } from "@voplus/morpho-ui";
|
|
15
|
+
import { runInAction } from "mobx";
|
|
16
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
17
|
+
import { useDeepMemo } from "@voplus/morpho-data";
|
|
18
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
19
|
+
const ControllerList = (props) => {
|
|
20
|
+
const { corporateId, allowEdit } = props;
|
|
21
|
+
const controllerStore = useControllerStore();
|
|
22
|
+
const list = useCreateListDataState({
|
|
23
|
+
filterDefaults: {
|
|
24
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: corporateId }],
|
|
25
|
+
},
|
|
26
|
+
}, [corporateId]);
|
|
27
|
+
const state = useDeepMemo(() => new State(), [corporateId]);
|
|
28
|
+
useAutoUpdateListData(list, (d) => d.parentId === corporateId);
|
|
29
|
+
useRenderOnChange(() => list.filters.options);
|
|
30
|
+
// useControllerListEffect(
|
|
31
|
+
// list,
|
|
32
|
+
// (result) => list.union(result),
|
|
33
|
+
// list.filters.options
|
|
34
|
+
// );
|
|
35
|
+
list.union([{ id: "1", unitId: "" }]);
|
|
36
|
+
console.log(list.data, "data");
|
|
37
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
38
|
+
React.createElement(FilterOptionsContext.Provider, { value: list.filters },
|
|
39
|
+
React.createElement(Header, { text: "Controller Register" },
|
|
40
|
+
React.createElement("div", null,
|
|
41
|
+
React.createElement(FilterView, { columns: [React.createElement(OfficerStatusFilter, { key: "ControllerStatusFilter" })] }),
|
|
42
|
+
allowEdit !== false && (React.createElement(NewTypeDropdown, { onSelect: state.onSelect, menus: [
|
|
43
|
+
"Director",
|
|
44
|
+
"Managing Director",
|
|
45
|
+
"Nominee Director",
|
|
46
|
+
"Secretary",
|
|
47
|
+
"CEO",
|
|
48
|
+
"Partner",
|
|
49
|
+
"Owner",
|
|
50
|
+
"Auditor",
|
|
51
|
+
"Manager",
|
|
52
|
+
], style: { marginLeft: "10px" } }))))),
|
|
53
|
+
React.createElement(ListView, { headerProps: {
|
|
54
|
+
visible: false,
|
|
55
|
+
sortable: false,
|
|
56
|
+
addAble: false,
|
|
57
|
+
}, renderItem: ({ item, index }) => (React.createElement(ControllerItem, { key: item.id, id: item.id, identityId: "", index: index, className: index === 0 ? "shareTransaction-item-first" : "" })), propertiesView: (id) => React.createElement(ControllerPropertiesView, { id: id, allowEdit: allowEdit }), className: "controller-list-view" }))));
|
|
58
|
+
/** 新增officerItem */
|
|
59
|
+
async function onSave(unitId) {
|
|
60
|
+
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
61
|
+
if (unitId) {
|
|
62
|
+
const res = await controllerStore.create({
|
|
63
|
+
data: { RegisterId: corporateId, UnitId: unitId },
|
|
64
|
+
error: "message",
|
|
65
|
+
});
|
|
66
|
+
list.union([res]);
|
|
67
|
+
}
|
|
68
|
+
runInAction(() => (state.addAble = false));
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export default ControllerList;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,kBAAkB,GAClB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEpG,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,mBAAmB,MAAM,mDAAmD,CAAC;AACpF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MA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