@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,78 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Archive, Reload, Sidebar, Versions, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
|
+
import { AsideContent, InlineEdit } from "@voplus/morpho-ui";
|
|
4
|
+
import React, { useEffect, useState } from "react";
|
|
5
|
+
import { useRouteMatch } from "react-router";
|
|
6
|
+
import { useShareOptionStore } from "../../../../data/shareOptionsRegister";
|
|
7
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
8
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
9
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
10
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
11
|
+
import ShareOptionItems from "../ShareOptionItems";
|
|
12
|
+
import { Skeleton } from "@voplus/antd";
|
|
13
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
14
|
+
import moment from "moment";
|
|
15
|
+
import { observe } from "@voplus/morpho-ui";
|
|
16
|
+
import { useTabItem } from "@voplus/morpho-data";
|
|
17
|
+
const ShareOptionDefaultView = () => {
|
|
18
|
+
const match = useRouteMatch();
|
|
19
|
+
const id = match.params.id;
|
|
20
|
+
const [reload, setReload] = useState(true);
|
|
21
|
+
// const shareOption = useShareOption(id, { reload, includes: "tags" });
|
|
22
|
+
const shareOption = {
|
|
23
|
+
id: "e1c06629-f110-4016-b206-ac7700311c7b",
|
|
24
|
+
date: "2021-03-11",
|
|
25
|
+
class: "Allotment",
|
|
26
|
+
schedule: [{ date: "2021-03-11", options: 5000 }],
|
|
27
|
+
loading: false,
|
|
28
|
+
};
|
|
29
|
+
const shareStore = useShareOptionStore();
|
|
30
|
+
const tab = useTabItem();
|
|
31
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
asideContext.openAside(AsideElement, { span: 11 });
|
|
34
|
+
}, []);
|
|
35
|
+
const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
|
|
36
|
+
React.createElement(DocumentTabs, { id: id })));
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
tab.title = (shareOption === null || shareOption === void 0 ? void 0 : shareOption.name) || "";
|
|
39
|
+
}, [shareOption === null || shareOption === void 0 ? void 0 : shareOption.name]);
|
|
40
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
|
41
|
+
React.createElement("div", { className: "share-option-default-view" },
|
|
42
|
+
shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
43
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement(DocumentHeader, { id: id, size: "h3", tools: React.createElement(React.Fragment, null,
|
|
44
|
+
React.createElement(ToolBar, { id: id },
|
|
45
|
+
React.createElement(Reload, { action: onReLoad }),
|
|
46
|
+
React.createElement(Sidebar, { action: () => asideContext.asideContent
|
|
47
|
+
? asideContext.closeAside()
|
|
48
|
+
: asideContext.openAside(AsideElement, { span: 12 }) }),
|
|
49
|
+
React.createElement(Archive, null),
|
|
50
|
+
React.createElement(Versions, null))) })),
|
|
51
|
+
shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
52
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "share-option-item-info" },
|
|
53
|
+
React.createElement("div", null,
|
|
54
|
+
React.createElement("div", { className: "bold" }, "Date"),
|
|
55
|
+
React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareOption.readonly, defaultValue: moment(shareOption.date), content: (v) => (React.createElement(React.Fragment, null, v.store.value ? moment(v.store.value).format("DD MMM YYYY") : "Add DateTime")), onSave: (v) => v
|
|
56
|
+
? shareStore.edit(id, {
|
|
57
|
+
data: {
|
|
58
|
+
Date: v.format("DD MMM YYYY"),
|
|
59
|
+
},
|
|
60
|
+
error: "message",
|
|
61
|
+
})
|
|
62
|
+
: null })),
|
|
63
|
+
React.createElement("div", null,
|
|
64
|
+
React.createElement("div", { className: "bold" }, "TransactionType"),
|
|
65
|
+
React.createElement("span", { className: "transaction-type" }, shareOption.class)))),
|
|
66
|
+
shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
67
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement(ShareOptionItems, { data: shareOption })),
|
|
68
|
+
shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
69
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: shareOption.description, readonly: shareOption.readonly, padding: "0.75rem 0" }))))));
|
|
70
|
+
function onReLoad() {
|
|
71
|
+
setReload(false);
|
|
72
|
+
setTimeout(() => {
|
|
73
|
+
setReload(true);
|
|
74
|
+
}, 100);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
export default ShareOptionDefaultView;
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,GACR,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QA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AI,CACvC;YACA,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CACtB,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,OAAO,EAAC,WAAW,GAClB,CACF,CACI,CACQ,CACf,CAAC,CAAC;IACH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@import "../../../../style/common.less";
|
|
2
|
+
:global {
|
|
3
|
+
.share-option-default-view {
|
|
4
|
+
// padding: 10px 0;
|
|
5
|
+
.ant-table {
|
|
6
|
+
margin: 0 20px;
|
|
7
|
+
}
|
|
8
|
+
.share-option-item-info {
|
|
9
|
+
display: flex;
|
|
10
|
+
padding: 0 15px 10px 15px;
|
|
11
|
+
> div {
|
|
12
|
+
flex: 1;
|
|
13
|
+
color: #000;
|
|
14
|
+
padding: 0 10px;
|
|
15
|
+
}
|
|
16
|
+
.bold {
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
font-size: 15px;
|
|
19
|
+
padding-bottom: 10px;
|
|
20
|
+
}
|
|
21
|
+
.morpho-inline-edit {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
|
|
24
|
+
.svg-inline--fa {
|
|
25
|
+
margin-right: 5px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.ant-select {
|
|
29
|
+
width: 130px !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.ant-table {
|
|
33
|
+
.ant-table-container {
|
|
34
|
+
overflow-x: auto;
|
|
35
|
+
}
|
|
36
|
+
.ant-input-number {
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
.ant-table-thead > tr > th {
|
|
40
|
+
padding: 10px;
|
|
41
|
+
}
|
|
42
|
+
.ant-table-tbody > tr > td {
|
|
43
|
+
padding: 5px 10px;
|
|
44
|
+
min-width: 120px;
|
|
45
|
+
height: 54px;
|
|
46
|
+
&.column-dnd {
|
|
47
|
+
min-width: 40px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.editable-cell-wrap {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
> div {
|
|
56
|
+
flex: 1;
|
|
57
|
+
}
|
|
58
|
+
.ant-empty {
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.ant-table-footer {
|
|
63
|
+
display: flex;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
align-items: center;
|
|
66
|
+
padding: 10px 0;
|
|
67
|
+
.operate {
|
|
68
|
+
flex: 1;
|
|
69
|
+
.cancel {
|
|
70
|
+
color: #666;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.total {
|
|
74
|
+
display: inline-block;
|
|
75
|
+
min-width: calc((100% - 40px) / 5);
|
|
76
|
+
padding-left: 10px;
|
|
77
|
+
span {
|
|
78
|
+
margin-left: 5px;
|
|
79
|
+
font-size: 15px;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
}
|
|
82
|
+
& + .total {
|
|
83
|
+
margin-left: calc((100% - 40px) / 5);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const ShareOptionItem: (props: {
|
|
4
|
+
/** id of item of the shareOption*/
|
|
5
|
+
id: string;
|
|
6
|
+
/** 拖拽源 */
|
|
7
|
+
connectDragSource?: any;
|
|
8
|
+
/** 是否有AsideContent侧边栏 */
|
|
9
|
+
sidebar?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default ShareOptionItem;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { useShareOptionStore, } from "../../../../data/shareOptionsRegister";
|
|
3
|
+
import { InlineEdit, useAsideContentContext } from "@voplus/morpho-ui";
|
|
4
|
+
import React, { useLayoutEffect, useState } from "react";
|
|
5
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
6
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
7
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
8
|
+
import ShareMovementsDataIcon from "../ShareMovementsDataIcon";
|
|
9
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
10
|
+
import classnames from "classnames";
|
|
11
|
+
import moment from "moment";
|
|
12
|
+
import { observe } from "@voplus/morpho-ui";
|
|
13
|
+
const ShareOptionItem = (props) => {
|
|
14
|
+
const { id, sidebar, className } = props;
|
|
15
|
+
// const shareOption = useShareOption(id, {
|
|
16
|
+
// reload: (i: IDocument & { transactionType: ShareOptionType }) => !i.tags || !i.transactionType,
|
|
17
|
+
// includes: "tags",
|
|
18
|
+
// });
|
|
19
|
+
const shareOption = {
|
|
20
|
+
id: "e1c06629-f110-4016-b206-ac7700311c7b",
|
|
21
|
+
date: "2021-03-11",
|
|
22
|
+
class: "Allotment",
|
|
23
|
+
schedule: [{ date: "2021-03-11", options: 5000 }],
|
|
24
|
+
};
|
|
25
|
+
const [hover, setHover] = useState(false);
|
|
26
|
+
const shareStore = useShareOptionStore();
|
|
27
|
+
const asideContext = useAsideContentContext();
|
|
28
|
+
/** 设置New ShareTransaction Form 宽度*/
|
|
29
|
+
useLayoutEffect(() => {
|
|
30
|
+
/** 需要打开AsideContent的时候才设置 */
|
|
31
|
+
if (sidebar) {
|
|
32
|
+
const ref = document.getElementsByClassName("create-shareOption-form")[0];
|
|
33
|
+
const listRef = document.getElementsByClassName("list-view-main")[0];
|
|
34
|
+
if (ref) {
|
|
35
|
+
if (listRef)
|
|
36
|
+
listRef.style.paddingBottom = "42px";
|
|
37
|
+
if (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
|
|
38
|
+
ref.style.width = "50%";
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
listRef.style = {};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
return observe(() => (React.createElement(DocumentHeader, { id: id, preVisible: false, flagVisible: false, itemHover: true, onMouse: (over) => setHover(over), className: classnames("share-option-item", className, { hover }, { sidebar }), quickDataBar: React.createElement("div", { className: "share-option-item-info" },
|
|
46
|
+
React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareOption.readonly, defaultValue: shareOption.date ? moment(shareOption.date) : undefined, content: (v) => (React.createElement("span", { className: "transaction-date" }, v.store.value ? moment(v.store.value).format("DD MMM YYYY") : "Add DateTime")), onSave: (v) => v
|
|
47
|
+
? shareStore.edit(id, {
|
|
48
|
+
data: {
|
|
49
|
+
Date: v.format("DD MMM YYYY"),
|
|
50
|
+
},
|
|
51
|
+
error: "message",
|
|
52
|
+
})
|
|
53
|
+
: null }),
|
|
54
|
+
React.createElement("span", { className: "transaction-type" }, shareOption.class),
|
|
55
|
+
!!(shareOption.schedule && shareOption.schedule.length) && (React.createElement(ShareMovementsDataIcon, { lines: shareOption.schedule }))), toolsVisible: !sidebar, tools: React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
|
|
56
|
+
React.createElement(Open, { size: "middle", url: `/shareOptions/${id}` })) })));
|
|
57
|
+
};
|
|
58
|
+
export default ShareOptionItem;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAIN,mBAAmB,GACnB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGzD,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,eAAe,GAAG,CAAC,KAQxB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEzC,2CAA2C;IAC3C,mGAAmG;IACnG,qBAAqB;IACrB,MAAM;IAEN,MAAM,WAAW,GAAG;QACnB,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,WAAW;QAClB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KACjC,CAAC;IAClB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,C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;
|
|
7
|
+
margin: 0 20px;
|
|
8
|
+
line-height: 28px;
|
|
9
|
+
border-bottom: 1px solid #f2f2f2;
|
|
10
|
+
&.share-option-item-first {
|
|
11
|
+
padding-top: 10px;
|
|
12
|
+
}
|
|
13
|
+
.tag-view {
|
|
14
|
+
line-height: 20px;
|
|
15
|
+
.add-tag-btn {
|
|
16
|
+
visibility: hidden;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&:hover {
|
|
20
|
+
.tag-view .add-tag-btn {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
visibility: visible;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
// &.sidebar {
|
|
26
|
+
// .add-tag-btn {
|
|
27
|
+
// display: none;
|
|
28
|
+
// }
|
|
29
|
+
// }
|
|
30
|
+
.task-move,
|
|
31
|
+
.clock {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
margin-right: 5px;
|
|
34
|
+
width: 14px;
|
|
35
|
+
}
|
|
36
|
+
.task-move {
|
|
37
|
+
cursor: move;
|
|
38
|
+
color: #000;
|
|
39
|
+
}
|
|
40
|
+
.share-option-item-info {
|
|
41
|
+
.morpho-inline-edit {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
min-width: 110px;
|
|
44
|
+
// margin-right: 30px;
|
|
45
|
+
}
|
|
46
|
+
.clock {
|
|
47
|
+
margin-right: 5px;
|
|
48
|
+
}
|
|
49
|
+
.transaction-date {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
.transaction-type {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
width: 100px;
|
|
55
|
+
}
|
|
56
|
+
.transaction-currency {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: 90px;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
.ant-select {
|
|
61
|
+
width: 100px !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tool-bar {
|
|
67
|
+
position: absolute;
|
|
68
|
+
display: none;
|
|
69
|
+
top: 50%;
|
|
70
|
+
right: 20px;
|
|
71
|
+
margin-top: -16px;
|
|
72
|
+
}
|
|
73
|
+
.transaction-currency:hover,
|
|
74
|
+
.share-movements-data-icon:hover,
|
|
75
|
+
.transaction-date:hover {
|
|
76
|
+
color: @primary-color;
|
|
77
|
+
}
|
|
78
|
+
&.hover {
|
|
79
|
+
.tool-bar {
|
|
80
|
+
display: block;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IVestingSchedule } from "../../../../data/shareOptionsRegister";
|
|
3
|
+
export declare class TableDataContextState {
|
|
4
|
+
props: any;
|
|
5
|
+
/** Array of new lines to be added. */
|
|
6
|
+
InvoiceLine: {
|
|
7
|
+
shareholder: string;
|
|
8
|
+
consideration: number;
|
|
9
|
+
currency: string;
|
|
10
|
+
shares: number;
|
|
11
|
+
};
|
|
12
|
+
/** Id of Delete of line */
|
|
13
|
+
hoverKey: number;
|
|
14
|
+
/** lines of invoice */
|
|
15
|
+
schedule: IVestingSchedule[];
|
|
16
|
+
/** loading of saving */
|
|
17
|
+
loading: boolean;
|
|
18
|
+
/** Total of shares of line */
|
|
19
|
+
get sharesTotal(): number;
|
|
20
|
+
/** readonly */
|
|
21
|
+
get readonly(): any;
|
|
22
|
+
/** Is Adding */
|
|
23
|
+
get isAdding(): boolean;
|
|
24
|
+
}
|
|
25
|
+
/** React context for TableDataContextState. */
|
|
26
|
+
export declare const TableDataContext: import("react").Context<any>;
|
|
27
|
+
/** React hook to retrieve the nearest TableDataContext. */
|
|
28
|
+
export declare const useTableDataContext: () => any;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { computed, observable } from "mobx";
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
export class TableDataContextState {
|
|
5
|
+
constructor() {
|
|
6
|
+
Object.defineProperty(this, "props", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: void 0
|
|
11
|
+
});
|
|
12
|
+
/** Array of new lines to be added. */
|
|
13
|
+
Object.defineProperty(this, "InvoiceLine", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: {
|
|
18
|
+
shareholder: "",
|
|
19
|
+
consideration: 0,
|
|
20
|
+
currency: "",
|
|
21
|
+
shares: 0,
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
/** Id of Delete of line */
|
|
25
|
+
Object.defineProperty(this, "hoverKey", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: void 0
|
|
30
|
+
});
|
|
31
|
+
/** lines of invoice */
|
|
32
|
+
Object.defineProperty(this, "schedule", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
configurable: true,
|
|
35
|
+
writable: true,
|
|
36
|
+
value: []
|
|
37
|
+
});
|
|
38
|
+
/** loading of saving */
|
|
39
|
+
Object.defineProperty(this, "loading", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
writable: true,
|
|
43
|
+
value: false
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/** Total of shares of line */
|
|
47
|
+
get sharesTotal() {
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = this.schedule) === null || _a === void 0 ? void 0 : _a.reduce((total, line) => Number.parseFloat((total + line.options).toFixed(2)), 0);
|
|
50
|
+
}
|
|
51
|
+
/** readonly */
|
|
52
|
+
get readonly() {
|
|
53
|
+
return this.props && this.props.data && !!this.props.data.readonly;
|
|
54
|
+
}
|
|
55
|
+
/** Is Adding */
|
|
56
|
+
get isAdding() {
|
|
57
|
+
return true;
|
|
58
|
+
// return this.invoiceLines?.some(({ added }) => !!added);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
observable
|
|
63
|
+
], TableDataContextState.prototype, "hoverKey", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
observable
|
|
66
|
+
], TableDataContextState.prototype, "schedule", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
observable
|
|
69
|
+
], TableDataContextState.prototype, "loading", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
computed
|
|
72
|
+
], TableDataContextState.prototype, "sharesTotal", null);
|
|
73
|
+
__decorate([
|
|
74
|
+
computed
|
|
75
|
+
], TableDataContextState.prototype, "readonly", null);
|
|
76
|
+
__decorate([
|
|
77
|
+
computed
|
|
78
|
+
], TableDataContextState.prototype, "isAdding", null);
|
|
79
|
+
/** React context for TableDataContextState. */
|
|
80
|
+
export const TableDataContext = createContext(null);
|
|
81
|
+
/** React hook to retrieve the nearest TableDataContext. */
|
|
82
|
+
export const useTableDataContext = () => useContext(TableDataContext);
|
|
83
|
+
//# sourceMappingURL=TableDataContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableDataContext.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAKlD,MAAM,OAAO,qBAAqB;IAAlC;QACC;;;;;WAAkB;QAClB,sCAAsC;QACtC;;;;mBAAqB;gBACpB,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,CAAC;gBAChB,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,CAAC;aACT;WAAC;QACF,2BAA2B;QACf;;;;;WAAwB;QACpC,uBAAuB;QACX;;;;mBAAsC,EAAE;WAAC;QACrD,wBAAwB;QACZ;;;;mBAAiB,KAAK;WAAC;IAsBpC,CAAC;IApBA,+BAA+B;IAE/B,IAAW,WAAW;;QACrB,OAAO,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,CAC3B,CAAC,KAAa,EAAE,IAAsB,EAAE,EAAE,CACzC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACrD,CAAC,CACD,CAAC;IACH,CAAC;IACD,eAAe;IAEf,IAAW,QAAQ;QAClB,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;IACpE,CAAC;IACD,gBAAgB;IAEhB,IAAW,QAAQ;QAClB,OAAO,IAAI,CAAC;QACZ,0DAA0D;IAC3D,CAAC;CACD;AA1BY;IAAX,UAAU;uDAAyB;AAExB;IAAX,UAAU;uDAA0C;AAEzC;IAAX,UAAU;sDAAwB;AAInC;IADC,QAAQ;wDAOR;AAGD;IADC,QAAQ;qDAGR;AAGD;IADC,QAAQ;qDAIR;AAGF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,IAAW,CAAC,CAAC;AAE3D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AutoComplete, Button, Form, InputNumber } from "@voplus/antd";
|
|
2
|
+
import React, { useRef, useState } from "react";
|
|
3
|
+
import { faBars, faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
+
import CurrencyView from "../../../../components/CurrencyView";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import { isEqual } from "lodash-es";
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
|
+
import { useFormRowContext } from "../../../../components/TableDragRow/FormRowContext";
|
|
10
|
+
import { useTableDataContext } from "./TableDataContext";
|
|
11
|
+
const DragTableCell = (props) => {
|
|
12
|
+
const { editable, dataIndex, record, rowIndex, children, onAdd, onDel, ...restProps } = props;
|
|
13
|
+
const formContext = useFormRowContext();
|
|
14
|
+
const dataContext = useTableDataContext();
|
|
15
|
+
const [editing, setEditing] = useState(false);
|
|
16
|
+
/** Open of shareType */
|
|
17
|
+
const [open, setOpen] = useState(false);
|
|
18
|
+
const ref = useRef();
|
|
19
|
+
return observe(() => (React.createElement("td", { ...restProps, ref: ref }, dataIndex === "Dnd" ? (record.added ? (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
|
|
20
|
+
React.createElement(FAIcon, { icon: faTrashAlt }))) : (formContext.connectDragSource(React.createElement("span", { style: { cursor: "move" } },
|
|
21
|
+
React.createElement(FAIcon, { icon: faBars }))))) : editable ? ((record && record.added) || editing ? (React.createElement(Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [{ required: true, message: `${dataIndex} is required.` }] }, dataIndex === "class" ? (React.createElement(AutoComplete
|
|
22
|
+
// autoFocus
|
|
23
|
+
, {
|
|
24
|
+
// autoFocus
|
|
25
|
+
open: open || editing, onSelect: save, onBlur: save, onDropdownVisibleChange: (open) => setOpen(open) },
|
|
26
|
+
React.createElement(AutoComplete.Option, { value: "Ordinary" }, "Ordinary"),
|
|
27
|
+
React.createElement(AutoComplete.Option, { value: "Preference" }, "Preference"))) : dataIndex === "currency" ? (React.createElement(CurrencyView, { currency: record.currency, editable: !!record.added, onChange: save })) : (React.createElement(InputNumber, { autoFocus: editing, min: dataIndex === "qty" ? 1 : 0, max: dataIndex === "discount" ? 100 : 100000000000, precision: dataIndex === "price" ? 2 : 0, onPressEnter: save, onBlur: save, onKeyDown: onKeyDown })))) : dataIndex === "shareholder" && record.shareholder ? (React.createElement("div", { onClick: toggleEdit }, record.shareholder.name)) : (React.createElement(React.Fragment, null,
|
|
28
|
+
React.createElement("div", { className: classnames({
|
|
29
|
+
"editable-cell-wrap": dataIndex === "consideration",
|
|
30
|
+
}) },
|
|
31
|
+
React.createElement("div", { onClick: toggleEdit }, children),
|
|
32
|
+
dataIndex === "consideration" && dataContext.hoverKey === rowIndex && (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
|
|
33
|
+
React.createElement(FAIcon, { icon: faTrashAlt }))))))) : dataIndex === "shareholder" && record.shareholder ? (record.shareholder.name) : (children))));
|
|
34
|
+
function toggleEdit() {
|
|
35
|
+
formContext.form.setFieldsValue(record);
|
|
36
|
+
setEditing(!editing);
|
|
37
|
+
}
|
|
38
|
+
function save() {
|
|
39
|
+
formContext.form
|
|
40
|
+
.validateFields()
|
|
41
|
+
.then((sharesLine) => {
|
|
42
|
+
const { added, shareholder, consideration, shares, currency } = record;
|
|
43
|
+
const line = {
|
|
44
|
+
shareholder: sharesLine.shareholder || shareholder,
|
|
45
|
+
class: sharesLine.class || record.class,
|
|
46
|
+
consideration: sharesLine.consideration || consideration,
|
|
47
|
+
shares: sharesLine.shares || shares,
|
|
48
|
+
currency: sharesLine.currency || currency,
|
|
49
|
+
};
|
|
50
|
+
const hasChange = !isEqual(line, {
|
|
51
|
+
shareholder,
|
|
52
|
+
class: record.class,
|
|
53
|
+
consideration,
|
|
54
|
+
shares,
|
|
55
|
+
currency,
|
|
56
|
+
});
|
|
57
|
+
/** Add or edit shareOption line */
|
|
58
|
+
if (added || hasChange) {
|
|
59
|
+
setSharesLine(rowIndex, sharesLine);
|
|
60
|
+
}
|
|
61
|
+
if (!added)
|
|
62
|
+
return toggleEdit();
|
|
63
|
+
})
|
|
64
|
+
.catch((errorInfo) => {
|
|
65
|
+
// console.log(errorInfo, "errorInfo");
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function onKeyDown(e) {
|
|
69
|
+
/** Esc to quit editing */
|
|
70
|
+
if (e.keyCode === 27)
|
|
71
|
+
return setEditing(false);
|
|
72
|
+
if (e.keyCode !== 9 || dataIndex !== "discount")
|
|
73
|
+
return;
|
|
74
|
+
formContext.form
|
|
75
|
+
.validateFields()
|
|
76
|
+
.then(() => {
|
|
77
|
+
onAdd();
|
|
78
|
+
})
|
|
79
|
+
.catch((errorInfo) => {
|
|
80
|
+
// console.log(errorInfo, "errorInfo");
|
|
81
|
+
});
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
function setSharesLine(index, sharesLine) {
|
|
85
|
+
dataContext.invoiceLines[index] = {
|
|
86
|
+
...dataContext.invoiceLines[index],
|
|
87
|
+
...sharesLine,
|
|
88
|
+
};
|
|
89
|
+
dataContext.invoiceLines = [...dataContext.invoiceLines];
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export default DragTableCell;
|
|
93
|
+
//# sourceMappingURL=TableDragCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableDragCell.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,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