@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,84 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default";
|
|
2
|
+
:global {
|
|
3
|
+
.share-option-item {
|
|
4
|
+
position: relative;
|
|
5
|
+
flex: 1;
|
|
6
|
+
padding: 10px 0;
|
|
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,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE;IACpC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAE9F,MAAM,WAAW,GAAG,iBAAiB,EAAE,CAAC;IACxC,MAAM,WAAW,GAAG,mBAAmB,EAAE,CAAC;IAE1C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,wBAAwB;IACxB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;I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uCAAuC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC;IACD,SAAS,SAAS,CAAC,CAAM;QACxB,0BAA0B;QAC1B,IAAI,CAAC,CAAC,OAAO,KAAK,EAAE;YAAE,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,SAAS,KAAK,UAAU;YAAE,OAAO;QACxD,WAAW,CAAC,IAAI;aACd,cAAc,EAAE;aAChB,IAAI,CAAC,GAAG,EAAE;YACV,KAAK,EAAE,CAAC;QACT,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,SAAc,EAAE,EAAE;YACzB,uCAAuC;QACxC,CAAC,CAAC,CAAC;QACJ,OAAO;IACR,CAAC;IACD,SAAS,aAAa,CAAC,KAAa,EAAE,UAAe;QACpD,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG;YACjC,GAAG,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC;YAClC,GAAG,UAAU;SACb,CAAC;QACF,WAAW,CAAC,YAAY,GAAG,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;AACF,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Button, Modal, Table } from "@voplus/antd";
|
|
2
|
+
import { useShareOptionStore, } from "../../../../data/shareOptionsRegister";
|
|
3
|
+
import React, { useEffect, useState } from "react";
|
|
4
|
+
import { TableDataContext, TableDataContextState } from "./TableDataContext";
|
|
5
|
+
import { clone, isEqual } from "lodash-es";
|
|
6
|
+
import { DndProvider } from "react-dnd";
|
|
7
|
+
import DragTableCell from "./TableDragCell";
|
|
8
|
+
import DragTableRow from "../../../../components/TableDragRow";
|
|
9
|
+
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
10
|
+
import { observe } from "@voplus/morpho-ui";
|
|
11
|
+
import { toJS } from "mobx";
|
|
12
|
+
import update from "immutability-helper";
|
|
13
|
+
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
14
|
+
const ShareOptionItems = (props) => {
|
|
15
|
+
const { data } = props;
|
|
16
|
+
const [state] = useState(new TableDataContextState());
|
|
17
|
+
state.props = props;
|
|
18
|
+
const shareStore = useShareOptionStore();
|
|
19
|
+
const documents = useDocumentStore();
|
|
20
|
+
const columnsList = [
|
|
21
|
+
{
|
|
22
|
+
title: "",
|
|
23
|
+
dataIndex: "Dnd",
|
|
24
|
+
width: 40,
|
|
25
|
+
className: "column-dnd",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "Date",
|
|
29
|
+
dataIndex: "date",
|
|
30
|
+
editable: !state.readonly,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: "Options",
|
|
34
|
+
dataIndex: "option",
|
|
35
|
+
editable: !state.readonly,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
const components = {
|
|
39
|
+
body: {
|
|
40
|
+
row: DragTableRow,
|
|
41
|
+
cell: DragTableCell,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
const columns = columnsList.map((col) => {
|
|
45
|
+
return {
|
|
46
|
+
...col,
|
|
47
|
+
onCell: (record, rowIndex) => {
|
|
48
|
+
return {
|
|
49
|
+
record,
|
|
50
|
+
editable: col.editable,
|
|
51
|
+
dataIndex: col.dataIndex,
|
|
52
|
+
rowIndex: rowIndex,
|
|
53
|
+
onAdd,
|
|
54
|
+
onDel,
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
state.schedule = toJS(data.schedule);
|
|
61
|
+
}, [data.schedule]);
|
|
62
|
+
return observe(() => (React.createElement(TableDataContext.Provider, { value: state },
|
|
63
|
+
React.createElement(DndProvider, { backend: HTML5Backend },
|
|
64
|
+
React.createElement(Table, { components: components, pagination: false, bordered: true, dataSource: state.schedule, columns: columns, rowKey: "id", onRow: (record, index) => ({
|
|
65
|
+
index,
|
|
66
|
+
moveAfter: moveAfter,
|
|
67
|
+
onMouseEnter: () => (state.hoverKey = index),
|
|
68
|
+
onMouseLeave: () => (state.hoverKey = -1),
|
|
69
|
+
}), footer: () => {
|
|
70
|
+
var _a;
|
|
71
|
+
return (React.createElement(React.Fragment, null,
|
|
72
|
+
React.createElement("div", { className: "operate" }, !state.readonly && (React.createElement(React.Fragment, null,
|
|
73
|
+
React.createElement(Button, { type: "link", onClick: onAdd }, "Add an item"),
|
|
74
|
+
React.createElement(Button, { type: "link", className: "cancel", onClick: getSharesTransaction }, "Reset"),
|
|
75
|
+
React.createElement(Button, { loading: state.loading, disabled: isEqual(toJS(state.schedule), toJS(data.schedule)), type: "link", onClick: onSave }, "Save")))),
|
|
76
|
+
React.createElement("div", { className: "total" },
|
|
77
|
+
"TOTAL",
|
|
78
|
+
React.createElement("span", null, (_a = state.sharesTotal) === null || _a === void 0 ? void 0 : _a.toLocaleString(undefined, {
|
|
79
|
+
minimumFractionDigits: 2,
|
|
80
|
+
})))));
|
|
81
|
+
} })))));
|
|
82
|
+
/** reload invoice */
|
|
83
|
+
function getSharesTransaction() {
|
|
84
|
+
const document = documents.items.get(data.id);
|
|
85
|
+
state.schedule = clone(document.lines);
|
|
86
|
+
}
|
|
87
|
+
/** Add Invoice */
|
|
88
|
+
function onAdd() {
|
|
89
|
+
const id = Math.floor(Math.random() * 100000 + 1);
|
|
90
|
+
// state.schedule = [...state.schedule, { id, added: true, ...state.InvoiceLine }];
|
|
91
|
+
}
|
|
92
|
+
/** */
|
|
93
|
+
function onDel(id) {
|
|
94
|
+
if (state.isAdding)
|
|
95
|
+
return (state.schedule = state.schedule.filter((line) => line.id !== id));
|
|
96
|
+
return Modal.confirm({
|
|
97
|
+
title: "Do you want to delete this item?",
|
|
98
|
+
onOk() {
|
|
99
|
+
state.schedule = state.schedule.filter((line) => line.id !== id);
|
|
100
|
+
onSave();
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
async function onSave() {
|
|
105
|
+
// const Lines = state.schedule.map((record) => {
|
|
106
|
+
// const { shareholder, consideration, currency, shares } = record;
|
|
107
|
+
// return {
|
|
108
|
+
// Shareholder: shareholder.name,
|
|
109
|
+
// Consideration: consideration,
|
|
110
|
+
// Currency: currency,
|
|
111
|
+
// Shares: shares,
|
|
112
|
+
// Class: record.class,
|
|
113
|
+
// };
|
|
114
|
+
// });
|
|
115
|
+
// state.loading = true;
|
|
116
|
+
// await shareStore.edit(data.id, { data: { Lines }, error: "message" }).catch((e: any) => e);
|
|
117
|
+
// state.loading = false;
|
|
118
|
+
// getSharesTransaction();
|
|
119
|
+
}
|
|
120
|
+
function moveAfter(dragIndex, afterIndex) {
|
|
121
|
+
const dragRow = state.schedule[dragIndex];
|
|
122
|
+
state.schedule = update(state.schedule, {
|
|
123
|
+
$splice: [
|
|
124
|
+
[dragIndex, 1],
|
|
125
|
+
[afterIndex, 0, dragRow],
|
|
126
|
+
],
|
|
127
|
+
});
|
|
128
|
+
onSave();
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
export default ShareOptionItems;
|
|
132
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAGN,mBAAmB,GACnB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;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kC;YACzC,IAAI;gBACH,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;gBACjE,MAAM,EAAE,CAAC;YACV,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;IACD,KAAK,UAAU,MAAM;QACpB,iDAAiD;QACjD,oEAAoE;QACpE,YAAY;QACZ,mCAAmC;QACnC,kCAAkC;QAClC,wBAAwB;QACxB,oBAAoB;QACpB,yBAAyB;QACzB,MAAM;QACN,MAAM;QACN,wBAAwB;QACxB,8FAA8F;QAC9F,yBAAyB;QACzB,0BAA0B;IAC3B,CAAC;IACD,SAAS,SAAS,CAAC,SAAiB,EAAE,UAAkB;QACvD,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC1C,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE;YACvC,OAAO,EAAE;gBACR,CAAC,SAAS,EAAE,CAAC,CAAC;gBACd,CAAC,UAAU,EAAE,CAAC,EAAE,OAAO,CAAC;aACxB;SACD,CAAC,CAAC;QACH,MAAM,EAAE,CAAC;IACV,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const ShareOptionList: (props: {
|
|
4
|
+
parentId: string;
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
/** 是否有AsideContent侧边栏 */
|
|
7
|
+
sidebar?: boolean;
|
|
8
|
+
header?: boolean;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default ShareOptionList;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
|
|
5
|
+
import { useShareOptionStore, } from "../../../../data/shareOptionsRegister";
|
|
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 { Input } from "@voplus/antd";
|
|
10
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
11
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
12
|
+
import NewTypeDropdown from "../../../../components/NewTypeDropdown";
|
|
13
|
+
import ShareOptionItem from "../ShareOptionItem";
|
|
14
|
+
import ShareOptionPropertiesView from "../ShareOptionPropertiesView";
|
|
15
|
+
import { State } from "./state";
|
|
16
|
+
import TransactionTypeFilter from "../../../legalEntity/shareTransactionsRegister/TransactionTypeFilter";
|
|
17
|
+
import { observe } from "@voplus/morpho-ui";
|
|
18
|
+
import { runInAction } from "mobx";
|
|
19
|
+
import { useDeepMemo } from "@voplus/morpho-data";
|
|
20
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
21
|
+
const ShareOptionList = (props) => {
|
|
22
|
+
const { parentId, readonly, sidebar, header } = props;
|
|
23
|
+
const shareStore = useShareOptionStore();
|
|
24
|
+
const documentStore = useDocumentStore();
|
|
25
|
+
const list = useCreateListDataState({
|
|
26
|
+
filterDefaults: {
|
|
27
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }],
|
|
28
|
+
},
|
|
29
|
+
}, [parentId]);
|
|
30
|
+
const state = useDeepMemo(() => new State(), []);
|
|
31
|
+
useAutoUpdateListData(list, (d) => d.type === "ShareTransaction");
|
|
32
|
+
useRenderOnChange(() => list.filters.options);
|
|
33
|
+
// useShareOptionListEffect(list, (result) => list.union(result), list.filters.options);
|
|
34
|
+
list.union([{ id: "e1c06629-f110-4016-b206-ac7700311c7b" }]);
|
|
35
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
36
|
+
React.createElement(FilterOptionsContext.Provider, { value: list.filters }, header && (React.createElement(Header, { text: "ShareOptions Register" },
|
|
37
|
+
React.createElement("div", null,
|
|
38
|
+
React.createElement(FilterView, { columns: React.createElement(TransactionTypeFilter, null) }),
|
|
39
|
+
!readonly && (React.createElement(NewTypeDropdown, { menus: [
|
|
40
|
+
"Allotment",
|
|
41
|
+
"Transfer",
|
|
42
|
+
"Cancel",
|
|
43
|
+
"Convert",
|
|
44
|
+
"Consolidate",
|
|
45
|
+
"Divide",
|
|
46
|
+
"Import",
|
|
47
|
+
"Others",
|
|
48
|
+
], onSelect: state.onSelect, style: { marginLeft: "10px" } })))))),
|
|
49
|
+
React.createElement(ListView, { headerProps: {
|
|
50
|
+
viewTitle: "ShareOptions List",
|
|
51
|
+
visible: !header,
|
|
52
|
+
sortable: false,
|
|
53
|
+
addAble: !readonly,
|
|
54
|
+
filterViewProps: {
|
|
55
|
+
columns: [React.createElement(TransactionTypeFilter, { key: "TransactionTypeFilter" })],
|
|
56
|
+
},
|
|
57
|
+
addOptions: {
|
|
58
|
+
children: (React.createElement(NewTypeDropdown, { menus: [
|
|
59
|
+
"Allotment",
|
|
60
|
+
"Transfer",
|
|
61
|
+
"Cancel",
|
|
62
|
+
"Convert",
|
|
63
|
+
"Consolidate",
|
|
64
|
+
"Divide",
|
|
65
|
+
"Import",
|
|
66
|
+
"Others",
|
|
67
|
+
], onSelect: state.onSelect })),
|
|
68
|
+
},
|
|
69
|
+
}, propertiesView: (id) => React.createElement(ShareOptionPropertiesView, { id: id }), renderItem: ({ item, index, connectDragSource }) => (React.createElement(ShareOptionItem, { key: item.id, id: item.id, connectDragSource: connectDragSource, sidebar: sidebar, className: index === 0 ? "shareTransaction-item-first" : "" })), moveAfter: moveAfter }),
|
|
70
|
+
state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
|
|
71
|
+
React.createElement(Input, { autoFocus: true, value: state.name, onChange: (e) => runInAction(() => (state.name = e.target.value)), placeholder: `Name of ${state.type} for ShareTransaction`, suffix: state.loading ? React.createElement(LoadingOutlined, null) : "", onPressEnter: onSave, onKeyDown: (e) => {
|
|
72
|
+
if (e.keyCode === 27)
|
|
73
|
+
runInAction(() => (state.addAble = false));
|
|
74
|
+
} }))))));
|
|
75
|
+
async function onSave() {
|
|
76
|
+
await shareStore.create({
|
|
77
|
+
data: {
|
|
78
|
+
ParentId: parentId,
|
|
79
|
+
Name: state.name,
|
|
80
|
+
TransactionType: state.type,
|
|
81
|
+
Currency: "SGD",
|
|
82
|
+
},
|
|
83
|
+
error: "message",
|
|
84
|
+
});
|
|
85
|
+
runInAction(() => {
|
|
86
|
+
state.addAble = false;
|
|
87
|
+
state.name = "";
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
async function moveAfter(id, afterId) {
|
|
91
|
+
await documentStore.moveAfter(id, afterId);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
export default ShareOptionList;
|
|
95
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAEN,mBAAmB,GACnB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,cA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AAI,EAAE,KAAK,CAAC,IAAI;gBAChB,eAAe,EAAE,KAAK,CAAC,IAAI;gBAC3B,QAAQ,EAAE,KAAK;aACf;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
:global {
|
|
3
|
+
.share-transaction-list-header {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
.create-shareTransaction-form {
|
|
10
|
+
padding: 10px 20px;
|
|
11
|
+
border-top: 1px solid @border-color-base;
|
|
12
|
+
background-color: #fff;
|
|
13
|
+
:global {
|
|
14
|
+
.ant-input {
|
|
15
|
+
padding: 0;
|
|
16
|
+
border: 0;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
color: @heading-color;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ShareTransactionType } from "../../../../data/shareTransaction/types/ShareTransactionType";
|
|
2
|
+
export declare class State {
|
|
3
|
+
name: string;
|
|
4
|
+
type: ShareTransactionType;
|
|
5
|
+
addAble: boolean;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
onSelect: (type: ShareTransactionType) => void;
|
|
9
|
+
}
|