@voplus/morpho-csp 1.2.0-dev08 → 1.2.1-dev.1
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 +7 -3
- 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/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/controls/ModeIcon/index.d.ts +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/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/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/es/services/CLDAActivityLogRenderer.d.ts +18 -0
- package/es/services/CLDAActivityLogRenderer.js +42 -0
- package/es/services/CLDAActivityLogRenderer.js.map +1 -0
- package/package.json +21 -24
- package/changelog.md +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.officer-properties-view_content {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
|
|
9
|
+
.officer-properties-view_header {
|
|
10
|
+
position: relative;
|
|
11
|
+
text-align: center;
|
|
12
|
+
padding: 20px 0 10px 0;
|
|
13
|
+
.officer-person-name {
|
|
14
|
+
color: #000;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
padding-top: 12px;
|
|
18
|
+
}
|
|
19
|
+
.tool-bar {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 20px;
|
|
22
|
+
right: 20px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.ant-tabs {
|
|
26
|
+
height: 100%;
|
|
27
|
+
.ant-tabs-nav {
|
|
28
|
+
margin: 0 20px;
|
|
29
|
+
}
|
|
30
|
+
.company-information {
|
|
31
|
+
padding: 15px 20px;
|
|
32
|
+
h3 {
|
|
33
|
+
margin-bottom: 15px;
|
|
34
|
+
color: #000;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -18,7 +18,7 @@ const CorporateSelect = (props) => {
|
|
|
18
18
|
// }
|
|
19
19
|
],
|
|
20
20
|
});
|
|
21
|
-
return observe(() => (React.createElement(Select,
|
|
21
|
+
return observe(() => (React.createElement(Select, { showSearch: true, allowClear: true, style: style, placeholder: "Please Select Corporate", ...(!!multiple ? { mode: "multiple" } : {}), onChange: onSelect, loading: list.loading, filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0, dropdownStyle: { backgroundColor: "#fff" } }, [{ id: "123556", name: " Vouplus" }].map((c) => (React.createElement(Select.Option, { value: c.id, key: c.id }, c.name))))));
|
|
22
22
|
/** select Corporate */
|
|
23
23
|
async function onSelect(value) {
|
|
24
24
|
const corporate = multiple
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/corporate/CorporateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,eAAe,GAAG,CAAC,KAMxB,EAAE,EAAE;IACJ,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzD,MAAM,IAAI,GAAG,sBAAsB,CAAa,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAEnE,sBAAsB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QAC5D,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/B,OAAO,EAAE;YACR,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE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CAAC,CAAA,CAAC;IAC7D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;CACxB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -31,7 +31,7 @@ const BankOpeningFields = () => {
|
|
|
31
31
|
React.createElement(Radio, { value: "manually" }, "Enter new singature details manually"))),
|
|
32
32
|
singature === "select" ? (React.createElement(Form.List, { name: "Contacts" }, (fields, { add, remove }) => (React.createElement(React.Fragment, null,
|
|
33
33
|
fields.map((field) => (React.createElement(Space, { key: field.key, style: { display: "flex", marginBottom: 8 }, align: "baseline" },
|
|
34
|
-
React.createElement(Form.Item,
|
|
34
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "contact"], fieldKey: [field.fieldKey, "contact"], label: "Contact" },
|
|
35
35
|
React.createElement(Select, { placeholder: "Please select Contact" },
|
|
36
36
|
React.createElement(Select.Option, { value: "Ordinary" }, "Ordinary"),
|
|
37
37
|
React.createElement(Select.Option, { value: "Preference" }, "Preference"))),
|
|
@@ -39,9 +39,9 @@ const BankOpeningFields = () => {
|
|
|
39
39
|
React.createElement(Form.Item, null,
|
|
40
40
|
React.createElement(Button, { type: "dashed", onClick: () => add(), block: true, icon: React.createElement(PlusOutlined, null) }, "Add field")))))) : (React.createElement(Form.List, { name: "Singatures" }, (fields, { add, remove }) => (React.createElement(React.Fragment, null,
|
|
41
41
|
fields.map((field) => (React.createElement(Space, { key: field.key, style: { display: "flex", marginBottom: 8 }, align: "baseline" },
|
|
42
|
-
React.createElement(Form.Item,
|
|
42
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "Name"], fieldKey: [field.fieldKey, "Name"], label: "Name" },
|
|
43
43
|
React.createElement(Input, null)),
|
|
44
|
-
React.createElement(Form.Item,
|
|
44
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "IdentityNumber"], fieldKey: [field.fieldKey, "IdentityNumber"], label: "Identity Number" },
|
|
45
45
|
React.createElement(Input, null)),
|
|
46
46
|
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d", onClick: () => remove(field.name) })))),
|
|
47
47
|
React.createElement(Form.Item, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fields.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/LegalGeneration/components/BankOpening/Fields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErD,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ;QACd,mDAAyB;QACzB,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS;YACxC,oBAAC,eAAe,IAAC,WAAW,EAAC,EAAE,GAAG,CACvB;QACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM;YAClC,oBAAC,MAAM,IAAC,WAAW,EAAC,oBAAoB;gBACvC,oBAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,UAAU,eAAyB;gBACxD,oBAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,YAAY,iBAA2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AAC,CACtB,oBAAC,KAAK,IACL,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,EAC3C,KAAK,EAAC,UAAU;gBAEhB,oBAAC,IAAI,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"Fields.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/LegalGeneration/components/BankOpening/Fields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErD,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ;QACd,mDAAyB;QACzB,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS;YACxC,oBAAC,eAAe,IAAC,WAAW,EAAC,EAAE,GAAG,CACvB;QACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM;YAClC,oBAAC,MAAM,IAAC,WAAW,EAAC,oBAAoB;gBACvC,oBAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,UAAU,eAAyB;gBACxD,oBAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EA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YAAY,EAAE,CAAC,EAAE,EAC3C,KAAK,EAAC,UAAU;gBAEhB,oBAAC,IAAI,CAAC,IAAI,OACL,KAAK,EACT,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,EAC1B,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,EAClC,KAAK,EAAC,MAAM;oBAEZ,oBAAC,KAAK,OAAG,CACE;gBACZ,oBAAC,IAAI,CAAC,IAAI,OACL,KAAK,EACT,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,gBAAgB,CAAC,EACpC,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAC5C,KAAK,EAAC,iBAAiB;oBAEvB,oBAAC,KAAK,OAAG,CACE;gBACZ,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAI,CACxE,CACR,CAAC;YACF,oBAAC,IAAI,CAAC,IAAI;gBACT,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,KAAK,QAAC,IAAI,EAAE,oBAAC,YAAY,OAAG,gBAE/D,CACE,CACV,CACH,CACU,CACZ,CACe,CACjB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -36,7 +36,7 @@ const IssueSharesFields = () => {
|
|
|
36
36
|
React.createElement(Radio, { value: "manually" }, "Enter new shareholder details manually"))),
|
|
37
37
|
shareholder === "select" ? (React.createElement(Form.List, { name: "Contacts" }, (fields, { add, remove }) => (React.createElement(React.Fragment, null,
|
|
38
38
|
fields.map((field) => (React.createElement(Space, { key: field.key, style: { display: "flex", marginBottom: 8 }, align: "baseline" },
|
|
39
|
-
React.createElement(Form.Item,
|
|
39
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "contact"], fieldKey: [field.fieldKey, "contact"], label: "Contact" },
|
|
40
40
|
React.createElement(Select, { placeholder: "Please select Contact" },
|
|
41
41
|
React.createElement(Select.Option, { value: "Ordinary" }, "Ordinary"),
|
|
42
42
|
React.createElement(Select.Option, { value: "Preference" }, "Preference"))),
|
|
@@ -45,19 +45,19 @@ const IssueSharesFields = () => {
|
|
|
45
45
|
React.createElement(Button, { type: "dashed", onClick: () => add(), block: true, icon: React.createElement(PlusOutlined, null) }, "Add field")))))) : (React.createElement(Form.List, { name: "Shareholders" }, (fields, { add, remove }) => (React.createElement(React.Fragment, null,
|
|
46
46
|
fields.map((field) => (React.createElement(React.Fragment, { key: field.key },
|
|
47
47
|
React.createElement(Space, { style: { display: "flex", marginBottom: 8 }, align: "baseline" },
|
|
48
|
-
React.createElement(Form.Item,
|
|
48
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "Name"], fieldKey: [field.fieldKey, "Name"], label: "Name" },
|
|
49
49
|
React.createElement(Input, null)),
|
|
50
|
-
React.createElement(Form.Item,
|
|
50
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "Representative"], fieldKey: [field.fieldKey, "Representative"], label: "Representative" },
|
|
51
51
|
React.createElement(Input, null)),
|
|
52
|
-
React.createElement(Form.Item,
|
|
52
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "IdentityNumber"], fieldKey: [field.fieldKey, "IdentityNumber"], label: "Identity Number" },
|
|
53
53
|
React.createElement(Input, null)),
|
|
54
54
|
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d", onClick: () => remove(field.name) })),
|
|
55
55
|
React.createElement(Space, { style: { display: "flex", marginBottom: 8 }, align: "baseline" },
|
|
56
|
-
React.createElement(Form.Item,
|
|
56
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "NewShares"], fieldKey: [field.fieldKey, "NewShares"], label: "New Shares" },
|
|
57
57
|
React.createElement(Input, null)),
|
|
58
|
-
React.createElement(Form.Item,
|
|
58
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "Consideration"], fieldKey: [field.fieldKey, "Consideration"], label: "Consideration" },
|
|
59
59
|
React.createElement(Input, null)),
|
|
60
|
-
React.createElement(Form.Item,
|
|
60
|
+
React.createElement(Form.Item, { ...field, name: [field.name, "Pecentage"], fieldKey: [field.fieldKey, "Pecentage"], label: "Pecentage" },
|
|
61
61
|
React.createElement(Input, null)),
|
|
62
62
|
React.createElement("span", { style: { display: "inline-block", width: "0.875em" } }))))),
|
|
63
63
|
React.createElement(Form.Item, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fields.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/LegalGeneration/components/IssueShares/Fields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEzD,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ;QACd,mDAAyB;QACzB,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS;YACxC,oBAAC,eAAe,IAAC,WAAW,EAAC,EAAE,GAAG,CACvB;QACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC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AAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,WAAW;gBAC/E,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,uBAAyB;gBAC9C,oBAAC,KAAK,IAAC,KAAK,EAAC,UAAU,6CAA+C,CACzD,CACH;QACX,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,oBAAC,IAAI,CAAC,IAAI,IAAC,IAAI,EAAC,UAAU,IACxB,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAC7B;YACE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACtB,oBAAC,KAAK,IACL,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,EAC3C,KAAK,EAAC,UAAU;gBAEhB,oBAAC,IAAI,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"Fields.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/LegalGeneration/components/IssueShares/Fields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEzD,OAAO,CAC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;gBACT,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,KAAK,QAAC,IAAI,EAAE,oBAAC,YAAY,OAAG,gBAE/D,CACE,CACV,CACH,CACU,CACZ,CACe,CACjB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { AsideContent, observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { CorporateRelationshipContext, State, } from "../../../../data/relationship/CorporateRelationshipContext";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import CorporateRelationshipChart from "../components/CorporateRelationshipChart";
|
|
6
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
7
|
+
import { Spin } from "@voplus/antd";
|
|
8
|
+
import UnitPropertiesView from "@voplus/morpho-org/es/components/UnitPropertiesView";
|
|
9
|
+
import { runInAction } from "mobx";
|
|
10
|
+
import { useRelationshipStore } from "../../../../data/relationship";
|
|
11
|
+
import { useUnit } from "@voplus/morpho-org";
|
|
12
|
+
const CorporateRelationshipView = (props) => {
|
|
13
|
+
const store = useRelationshipStore();
|
|
14
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
15
|
+
const [state] = useState(new State());
|
|
16
|
+
const unit = useUnit("6178db3a-3c68-4aa5-9759-acad00bf5716", {
|
|
17
|
+
reload: true,
|
|
18
|
+
includes: "relationships",
|
|
19
|
+
});
|
|
20
|
+
state.update(unit);
|
|
21
|
+
// useEffect(() => {
|
|
22
|
+
// asideContext.openAside(<UnitPropertiesView id={"6178db3a-3c68-4aa5-9759-acad00bf5716"} />, {
|
|
23
|
+
// span: 12,
|
|
24
|
+
// });
|
|
25
|
+
// }, []);
|
|
26
|
+
window.addEventListener("resize", () => runInAction(() => (state.width = asideContext.asideContent ? window.innerWidth / 2 : window.innerWidth)));
|
|
27
|
+
return observe(() => (React.createElement(CorporateRelationshipContext.Provider, { value: state },
|
|
28
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
29
|
+
React.createElement("div", { className: "corporate-relationship-view" }, !state.loaded ? (React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) })) : (React.createElement(CorporateRelationshipChart, { onClick: onClick })))))));
|
|
30
|
+
function onClick(id) {
|
|
31
|
+
state.width = window.innerWidth ? window.innerWidth / 2 : undefined;
|
|
32
|
+
asideContext.openAside(React.createElement(UnitPropertiesView, { id: id }), { span: 12 });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default CorporateRelationshipView;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/Relationship/CorporateRelationshipView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACN,4BAA4B,EAC5B,KAAK,GACL,MAAM,4DAA4D,CAAC;AACpE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,0BAA0B,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,kBAAkB,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,yBAAyB,GAAG,CAAC,KAAU,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IAErC,MAAM,CAAC,YAAY,C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,SAAS,CAAC;QACpE,YAAY,CAAC,SAAS,CAAC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { Graph } from "@antv/x6";
|
|
2
|
+
import React, { useLayoutEffect, useState } from "react";
|
|
3
|
+
import { State } from "./state";
|
|
4
|
+
import dagre from "dagre";
|
|
5
|
+
import { debounce } from "lodash-es";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { useCorporateRelationshipContext } from "../../../../../data/relationship/CorporateRelationshipContext";
|
|
8
|
+
import { useRelationshipStore } from "../../../../../data/relationship";
|
|
9
|
+
const CorporateRelationshipChart = (props) => {
|
|
10
|
+
const store = useRelationshipStore();
|
|
11
|
+
const context = useCorporateRelationshipContext();
|
|
12
|
+
const [state] = useState(new State());
|
|
13
|
+
// 自定义节点
|
|
14
|
+
Graph.registerNode("org-node", {
|
|
15
|
+
id: "id",
|
|
16
|
+
data: "data",
|
|
17
|
+
width: 120,
|
|
18
|
+
height: 64,
|
|
19
|
+
markup: [
|
|
20
|
+
{
|
|
21
|
+
tagName: "rect",
|
|
22
|
+
attrs: {
|
|
23
|
+
class: "body",
|
|
24
|
+
cursor: state.cursor,
|
|
25
|
+
// event: "node:click",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
tagName: "image",
|
|
30
|
+
attrs: {
|
|
31
|
+
class: "image",
|
|
32
|
+
cursor: state.cursor,
|
|
33
|
+
// event: "node:click",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
tagName: "text",
|
|
38
|
+
attrs: {
|
|
39
|
+
class: "name",
|
|
40
|
+
cursor: state.cursor,
|
|
41
|
+
// event: "node:click",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
attrs: {
|
|
46
|
+
".body": {
|
|
47
|
+
refWidth: "100%",
|
|
48
|
+
refHeight: "100%",
|
|
49
|
+
fill: "#ffffff",
|
|
50
|
+
},
|
|
51
|
+
".name": {
|
|
52
|
+
refX: "50%",
|
|
53
|
+
textAnchor: "middle",
|
|
54
|
+
fontSize: 14,
|
|
55
|
+
textWrap: {
|
|
56
|
+
ellipsis: true,
|
|
57
|
+
width: -10,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
}, true);
|
|
62
|
+
// 自定义边
|
|
63
|
+
Graph.registerEdge("org-edge", {
|
|
64
|
+
// router: {
|
|
65
|
+
// name: "orth",
|
|
66
|
+
// },
|
|
67
|
+
attrs: {
|
|
68
|
+
line: {
|
|
69
|
+
stroke: "#000",
|
|
70
|
+
strokeWidth: 1,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
connector: {
|
|
74
|
+
name: "rounded",
|
|
75
|
+
args: { radius: 10 },
|
|
76
|
+
},
|
|
77
|
+
}, true);
|
|
78
|
+
// 布局方向
|
|
79
|
+
const dir = "TB"; // LR RL TB BT
|
|
80
|
+
const debounceClick = debounce((node) => click(node), 200);
|
|
81
|
+
useLayoutEffect(() => {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
// 创建画布
|
|
84
|
+
state.graph = new Graph({
|
|
85
|
+
container: document.getElementById("container"),
|
|
86
|
+
// interacting: false,
|
|
87
|
+
autoResize: true,
|
|
88
|
+
async: true,
|
|
89
|
+
frozen: true,
|
|
90
|
+
scroller: {
|
|
91
|
+
enabled: true,
|
|
92
|
+
pannable: true,
|
|
93
|
+
modifiers: "ctrl",
|
|
94
|
+
autoResize: true,
|
|
95
|
+
pageVisible: false,
|
|
96
|
+
pageBreak: false,
|
|
97
|
+
},
|
|
98
|
+
// panning: {
|
|
99
|
+
// enabled: true,
|
|
100
|
+
// modifiers: "ctrl",
|
|
101
|
+
// },
|
|
102
|
+
});
|
|
103
|
+
/** 点击 */
|
|
104
|
+
state.graph.on("node:click", ({ e, node, view }) => {
|
|
105
|
+
e.stopPropagation();
|
|
106
|
+
state.count += 1;
|
|
107
|
+
debounceClick(node);
|
|
108
|
+
});
|
|
109
|
+
/** 鼠标按下 */
|
|
110
|
+
// state.graph.on("cell:mousedown", ({ cell }: { cell: Cell }) => (state.cursor = "move"));
|
|
111
|
+
/** 鼠标抬起 */
|
|
112
|
+
// state.graph.on("node:mousemove", () => state.cursor = "po");
|
|
113
|
+
const root = createNode(context.root.id, context.root.name, context.root, context.root.type);
|
|
114
|
+
const nodes = (_a = context.root.relationships) === null || _a === void 0 ? void 0 : _a.map((r) => createNode(r.target.unit.id, r.target.unit.name, r, r.target.type));
|
|
115
|
+
const edges = (_b = context.root.relationships) === null || _b === void 0 ? void 0 : _b.map((r, index) => createEdge(root, nodes[index]));
|
|
116
|
+
state.graph.resetCells([root, ...(nodes || []), ...(edges || [])]);
|
|
117
|
+
layout();
|
|
118
|
+
}, [context.root]);
|
|
119
|
+
return observe(() => React.createElement("div", { id: "container", style: { width: context.width, height: "100%" } }));
|
|
120
|
+
async function click(node) {
|
|
121
|
+
var _a;
|
|
122
|
+
console.log(node.id, context.root.id, "node.id !=== context.root.id");
|
|
123
|
+
if (state.count === 2 && node.id !== context.root.id) {
|
|
124
|
+
const res = await store.load(node.id, { reload: true });
|
|
125
|
+
res.map((r) => {
|
|
126
|
+
const member = createNode(r.target.unit.id, r.target.unit.name, r, r.target.type);
|
|
127
|
+
state.graph.freeze();
|
|
128
|
+
state.graph.addCell([member, createEdge(node, member)]);
|
|
129
|
+
layout();
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
if (state.count === 1)
|
|
133
|
+
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, node.id);
|
|
134
|
+
state.count = 0;
|
|
135
|
+
}
|
|
136
|
+
// }
|
|
137
|
+
// 自动布局
|
|
138
|
+
function layout() {
|
|
139
|
+
const nodes = state.graph.getNodes();
|
|
140
|
+
const edges = state.graph.getEdges();
|
|
141
|
+
const g = new dagre.graphlib.Graph();
|
|
142
|
+
g.setGraph({ rankdir: dir, nodesep: 16, ranksep: 16 });
|
|
143
|
+
g.setDefaultEdgeLabel(() => ({}));
|
|
144
|
+
const width = 280;
|
|
145
|
+
const height = 140;
|
|
146
|
+
nodes.forEach((node) => {
|
|
147
|
+
g.setNode(node.id, { width, height });
|
|
148
|
+
});
|
|
149
|
+
edges.forEach((edge) => {
|
|
150
|
+
const source = edge.getSource();
|
|
151
|
+
const target = edge.getTarget();
|
|
152
|
+
g.setEdge(source.cell, target.cell);
|
|
153
|
+
});
|
|
154
|
+
dagre.layout(g);
|
|
155
|
+
state.graph.freeze();
|
|
156
|
+
g.nodes().forEach((id) => {
|
|
157
|
+
const node = state.graph.getCell(id);
|
|
158
|
+
if (node) {
|
|
159
|
+
const pos = g.node(id);
|
|
160
|
+
/** 因node上不存在position,npm run build不成功,暂时注释,需要修复 */
|
|
161
|
+
// node.position(pos.x, pos.y);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
edges.forEach((edge) => {
|
|
165
|
+
const source = edge.getSourceNode();
|
|
166
|
+
const target = edge.getTargetNode();
|
|
167
|
+
const sourceBBox = source.getBBox();
|
|
168
|
+
const targetBBox = target.getBBox();
|
|
169
|
+
if ((dir === "LR" || dir === "RL") && sourceBBox.y !== targetBBox.y) {
|
|
170
|
+
const gap = dir === "LR"
|
|
171
|
+
? targetBBox.x - sourceBBox.x - sourceBBox.width
|
|
172
|
+
: -sourceBBox.x + targetBBox.x + targetBBox.width;
|
|
173
|
+
const fix = dir === "LR" ? sourceBBox.width : 0;
|
|
174
|
+
const x = sourceBBox.x + fix + gap / 2;
|
|
175
|
+
edge.setVertices([
|
|
176
|
+
{ x, y: sourceBBox.center.y },
|
|
177
|
+
{ x, y: targetBBox.center.y },
|
|
178
|
+
]);
|
|
179
|
+
}
|
|
180
|
+
else if ((dir === "TB" || dir === "BT") && sourceBBox.x !== targetBBox.x) {
|
|
181
|
+
const gap = dir === "TB"
|
|
182
|
+
? targetBBox.y - sourceBBox.y - sourceBBox.height
|
|
183
|
+
: -sourceBBox.y + targetBBox.y + targetBBox.height;
|
|
184
|
+
const fix = dir === "TB" ? sourceBBox.height : 0;
|
|
185
|
+
const y = sourceBBox.y + fix + gap / 2;
|
|
186
|
+
edge.setVertices([
|
|
187
|
+
{ x: sourceBBox.center.x, y },
|
|
188
|
+
{ x: targetBBox.center.x, y },
|
|
189
|
+
]);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
edge.setVertices([]);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
state.graph.unfreeze();
|
|
196
|
+
state.graph.zoomTo(0.85);
|
|
197
|
+
// state.graph.positionContent("top");
|
|
198
|
+
}
|
|
199
|
+
function createNode(id, name, data, type) {
|
|
200
|
+
const attrs = type === "People"
|
|
201
|
+
? {
|
|
202
|
+
".image": {
|
|
203
|
+
width: 46,
|
|
204
|
+
height: 46,
|
|
205
|
+
refX: 37,
|
|
206
|
+
refY: 5,
|
|
207
|
+
xlinkHref: "/img/people.svg",
|
|
208
|
+
textAnchor: "middle",
|
|
209
|
+
},
|
|
210
|
+
".name": {
|
|
211
|
+
refY: 55,
|
|
212
|
+
text: name,
|
|
213
|
+
},
|
|
214
|
+
}
|
|
215
|
+
: {
|
|
216
|
+
".body": {
|
|
217
|
+
rx: 10,
|
|
218
|
+
ry: 10,
|
|
219
|
+
strokeWidth: 1,
|
|
220
|
+
fill: "#ffffff",
|
|
221
|
+
stroke: "#000",
|
|
222
|
+
},
|
|
223
|
+
".name": {
|
|
224
|
+
refY: "50%",
|
|
225
|
+
textVerticalAnchor: "middle",
|
|
226
|
+
text: name,
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
return state.graph.createNode({
|
|
230
|
+
shape: "org-node",
|
|
231
|
+
id: id,
|
|
232
|
+
data: data,
|
|
233
|
+
attrs: attrs,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
function createEdge(source, target) {
|
|
237
|
+
let line = {};
|
|
238
|
+
/** 高管 使用蓝色实心箭头 */
|
|
239
|
+
if (target.data.type === "Officer")
|
|
240
|
+
line = { stroke: "#2d85dc" };
|
|
241
|
+
/** 亲人 (人——人) 使用黑色虚线无箭头 */
|
|
242
|
+
if (target.data.type === "Family")
|
|
243
|
+
line = { sourceMarker: null, targetMarker: null, strokeDasharray: 2 };
|
|
244
|
+
/**最终拥有者 (人 -> 企业) 使用黑色虚线箭头边 */
|
|
245
|
+
if (target.data.type === "UBO")
|
|
246
|
+
line = { strokeDasharray: 2 };
|
|
247
|
+
return state.graph.createEdge({
|
|
248
|
+
shape: "org-edge",
|
|
249
|
+
source: { cell: source.id },
|
|
250
|
+
target: { cell: target.id },
|
|
251
|
+
label: target.data.title,
|
|
252
|
+
attrs: {
|
|
253
|
+
line: line,
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
export default CorporateRelationshipChart;
|
|
259
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/Relationship/components/CorporateRelationshipChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC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J,CAAC;IAED,SAAS,UAAU,CAAC,MAAY,EAAE,MAAY;QAC7C,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,kBAAkB;QAClB,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS;YAAE,IAAI,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QACjE,0BAA0B;QAC1B,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ;YAChC,IAAI,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;QACvE,+BAA+B;QAC/B,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK;YAAE,IAAI,GAAG,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;QAC9D,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC;YAC7B,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE;YAC3B,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE;YAC3B,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK;YACxB,KAAK,EAAE;gBACN,IAAI,EAAE,IAAI;aACV;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Graph } from "@antv/x6";
|
|
2
|
+
import { IUnitRelationship } from "src/data/relationship";
|
|
3
|
+
export declare class State {
|
|
4
|
+
graph: Graph;
|
|
5
|
+
/** 单击:count = 1, 双击: count = 2 */
|
|
6
|
+
count: number;
|
|
7
|
+
/** */
|
|
8
|
+
cursor: string;
|
|
9
|
+
/** */
|
|
10
|
+
relationships: IUnitRelationship[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "graph", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: void 0
|
|
10
|
+
});
|
|
11
|
+
/** 单击:count = 1, 双击: count = 2 */
|
|
12
|
+
Object.defineProperty(this, "count", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: 0
|
|
17
|
+
});
|
|
18
|
+
/** */
|
|
19
|
+
Object.defineProperty(this, "cursor", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: "pointer"
|
|
24
|
+
});
|
|
25
|
+
/** */
|
|
26
|
+
Object.defineProperty(this, "relationships", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true,
|
|
29
|
+
writable: true,
|
|
30
|
+
value: void 0
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
__decorate([
|
|
35
|
+
observable
|
|
36
|
+
], State.prototype, "graph", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
observable
|
|
39
|
+
], State.prototype, "count", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
observable
|
|
42
|
+
], State.prototype, "cursor", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
observable
|
|
45
|
+
], State.prototype, "relationships", void 0);
|
|
46
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/Relationship/components/CorporateRelationshipChart/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACa;;;;;WAAoB;QAChC,kCAAkC;QACtB;;;;mBAAe,CAAC;WAAC;QAC7B,OAAO;QACK;;;;mBAAgB,SAAS;WAAC;QACtC,OAAO;QACK;;;;;WAA0C;IACvD,CAAC;CAAA;AAPY;IAAX,UAAU;oCAAqB;AAEpB;IAAX,UAAU;oCAAkB;AAEjB;IAAX,UAAU;qCAA2B;AAE1B;IAAX,UAAU;4CAA2C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Popover, Table } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { faTable } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import moment from "moment";
|
|
7
|
+
const columns = [
|
|
8
|
+
{
|
|
9
|
+
title: "Date",
|
|
10
|
+
dataIndex: "shareholder",
|
|
11
|
+
render: (date, record) => moment(date).format("DD MMM YYYY"),
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
title: "Options",
|
|
15
|
+
dataIndex: "options",
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
const ShareMovementsDataIcon = (props) => {
|
|
19
|
+
const { lines } = props;
|
|
20
|
+
const content = React.createElement(Table, { columns: columns, rowKey: "id", dataSource: lines, pagination: false });
|
|
21
|
+
return (React.createElement(Popover, { placement: "topLeft", title: "ShareOption Schedule", content: content, overlayClassName: "share-movements-data-popover" },
|
|
22
|
+
React.createElement("span", null,
|
|
23
|
+
React.createElement(FAIcon, { icon: faTable, className: "share-movements-data-icon" }))));
|
|
24
|
+
};
|
|
25
|
+
export default ShareMovementsDataIcon;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAU,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,OAAO,GAAG;IACf;QACC,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,aAAa;QACxB,MAAM,EAAE,CAAC,IAAS,EAAE,MAAwB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;KACnF;IACD;QACC,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;KACpB;CACD,CAAC;AACF,MAAM,sBAAsB,GAAG,CAAC,KAAoC,EAAE,EAAE;IACvE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAExB,MAAM,OAAO,GAAG,oBAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAC,IAAI,EAAC,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,GAAI,CAAC;IAC9F,OAAO,CACN,oBAAC,OAAO,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,sBAAsB,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAC,8BAA8B;QAE/C;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAC,2BAA2B,GAAG,CACzD,CACE,CACV,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|