@voplus/morpho-csp 1.2.178 → 1.2.180
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 +2 -0
- package/es/Modules.js.map +1 -1
- package/es/data/agm-clda/metas.d.ts +13 -0
- package/es/data/agm-clda/metas.js +37 -0
- package/es/data/agm-clda/metas.js.map +1 -0
- package/es/data/clda-form/CLDAFormContent.js +4 -0
- package/es/data/clda-form/CLDAFormContent.js.map +1 -1
- package/es/data/filing-folder/hooks.js.map +1 -0
- package/es/data/filing-folder/interfaces.js.map +1 -0
- package/es/data/filing-folder/store.js.map +1 -0
- package/es/data/filing-folder/types.js.map +1 -0
- package/es/data/filing-type/FilingTypeStore.d.ts +33 -0
- package/es/data/filing-type/FilingTypeStore.js +115 -0
- package/es/data/filing-type/FilingTypeStore.js.map +1 -0
- package/es/data/filing-type/filing-type-events/index.d.ts +3 -0
- package/es/data/filing-type/filing-type-events/index.js +4 -0
- package/es/data/filing-type/filing-type-events/index.js.map +1 -0
- package/es/data/filing-type/filing-type-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/filing-type/filing-type-events/useAutoUpdateListData.js +15 -0
- package/es/data/filing-type/filing-type-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.d.ts +4 -0
- package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.js +16 -0
- package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.js.map +1 -0
- package/es/data/filing-type/filing-type-events/useOnNewFilingType.d.ts +4 -0
- package/es/data/filing-type/filing-type-events/useOnNewFilingType.js +17 -0
- package/es/data/filing-type/filing-type-events/useOnNewFilingType.js.map +1 -0
- package/es/data/filing-type/hooks.d.ts +10 -0
- package/es/data/filing-type/hooks.js +19 -0
- package/es/data/filing-type/hooks.js.map +1 -0
- package/es/data/filing-type/index.d.ts +4 -0
- package/es/data/filing-type/index.js +5 -0
- package/es/data/filing-type/index.js.map +1 -0
- package/es/data/filing-type/interfaces.d.ts +15 -0
- package/es/data/filing-type/interfaces.js +2 -0
- package/es/data/filing-type/interfaces.js.map +1 -0
- package/es/data/filing-type/types.d.ts +37 -0
- package/es/data/filing-type/types.js +2 -0
- package/es/data/{filingRecord → filing-type}/types.js.map +1 -1
- package/es/data/filing-year/FilingYearStore.d.ts +33 -0
- package/es/data/filing-year/FilingYearStore.js +115 -0
- package/es/data/filing-year/FilingYearStore.js.map +1 -0
- package/es/data/filing-year/filing-year-events/index.d.ts +3 -0
- package/es/data/filing-year/filing-year-events/index.js +4 -0
- package/es/data/filing-year/filing-year-events/index.js.map +1 -0
- package/es/data/filing-year/filing-year-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/filing-year/filing-year-events/useAutoUpdateListData.js +15 -0
- package/es/data/filing-year/filing-year-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.d.ts +4 -0
- package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.js +16 -0
- package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.js.map +1 -0
- package/es/data/filing-year/filing-year-events/useOnNewFilingYear.d.ts +4 -0
- package/es/data/filing-year/filing-year-events/useOnNewFilingYear.js +17 -0
- package/es/data/filing-year/filing-year-events/useOnNewFilingYear.js.map +1 -0
- package/es/data/filing-year/hooks.d.ts +10 -0
- package/es/data/filing-year/hooks.js +19 -0
- package/es/data/filing-year/hooks.js.map +1 -0
- package/es/data/filing-year/index.d.ts +4 -0
- package/es/data/filing-year/index.js +5 -0
- package/es/data/filing-year/index.js.map +1 -0
- package/es/data/filing-year/interfaces.d.ts +6 -0
- package/es/data/filing-year/interfaces.js +2 -0
- package/es/data/filing-year/interfaces.js.map +1 -0
- package/es/data/filing-year/types.d.ts +22 -0
- package/es/data/filing-year/types.js +2 -0
- package/es/data/filing-year/types.js.map +1 -0
- package/es/data/incorporation-clda/store.js +1 -1
- package/es/data/incorporation-clda/store.js.map +1 -1
- package/es/data/incorporation-clda/types.d.ts +1 -0
- package/es/modules/corporate/clda/components/CLDAListView/index.js +1 -1
- package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/NewCLDAForm/index.js +3 -3
- package/es/modules/corporate/clda/components/NewCLDAForm/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js +0 -8
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +3 -3
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/AnnualFilings/index.d.ts +0 -1
- package/es/modules/corporate/filing-record/components/AnnualFilings/index.js +38 -35
- package/es/modules/corporate/filing-record/components/AnnualFilings/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +16 -8
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.d.ts +1 -0
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +13 -15
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.js +1 -1
- package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js +18 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.less +12 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.d.ts +7 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js +47 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.less +34 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.d.ts +10 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js +52 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.less +21 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.d.ts +21 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +160 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js +16 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.d.ts +15 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js +29 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.less +29 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js +36 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.less +13 -0
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.d.ts +17 -0
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js +112 -0
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.less +10 -0
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.d.ts +18 -0
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.js +38 -0
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +10 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.js +11 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.d.ts +13 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js +45 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.less +54 -0
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.d.ts +3 -0
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +31 -0
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.less +17 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js +12 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.less +12 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.d.ts +21 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js +29 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.js +16 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.d.ts +15 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.js +30 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.less +25 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js +44 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.less +13 -0
- package/es/modules/corporate/filing-record/{components → filing-year}/NewFilingYearDialog/index.d.ts +3 -2
- package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js +22 -0
- package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/agm/index.d.ts +4 -0
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +38 -0
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/agm/index.less +36 -0
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.d.ts +2 -0
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js +2 -2
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.d.ts +4 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js +8 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js.map +1 -1
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js +4 -2
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js.map +1 -1
- package/es/routes.d.ts +6 -0
- package/es/routes.js +14 -1
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/data/filingRecord/hooks.js.map +0 -1
- package/es/data/filingRecord/interfaces.js.map +0 -1
- package/es/data/filingRecord/store.js.map +0 -1
- package/es/modules/corporate/filing-record/components/NewFilingYearDialog/index.js +0 -29
- package/es/modules/corporate/filing-record/components/NewFilingYearDialog/index.js.map +0 -1
- /package/es/data/{filingRecord → filing-folder}/hooks.d.ts +0 -0
- /package/es/data/{filingRecord → filing-folder}/hooks.js +0 -0
- /package/es/data/{filingRecord → filing-folder}/interfaces.d.ts +0 -0
- /package/es/data/{filingRecord → filing-folder}/interfaces.js +0 -0
- /package/es/data/{filingRecord → filing-folder}/store.d.ts +0 -0
- /package/es/data/{filingRecord → filing-folder}/store.js +0 -0
- /package/es/data/{filingRecord → filing-folder}/types.d.ts +0 -0
- /package/es/data/{filingRecord → filing-folder}/types.js +0 -0
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Form, Select } from "@voplus/antd";
|
|
3
|
+
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
4
|
+
import { useFilingType, useFilingTypeStore, } from "../../../../../../data/filing-type";
|
|
5
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
6
|
+
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import FolderEdit from "@voplus/morpho-document/es/controls/FolderEdit";
|
|
9
|
+
import FilingTypeMenu from "../../controls/FilingTypeMenu";
|
|
10
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
11
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
12
|
+
import classnames from "classnames";
|
|
13
|
+
import moment from "moment";
|
|
14
|
+
const FilingTypeProperties = (props) => {
|
|
15
|
+
const { id, headerVisible, filingTypeTitle, filingTypeProperties } = props;
|
|
16
|
+
const filingType = useFilingType(props.id);
|
|
17
|
+
const store = useFilingTypeStore();
|
|
18
|
+
const [showDateBasedEditIcon, setShowDateBasedEditIcon] = useState(true);
|
|
19
|
+
const [dateBasedEditable, setDateBasedEditable] = useState(false);
|
|
20
|
+
const [showFrequencyEditIcon, setShowFrequencyEditIcon] = useState(true);
|
|
21
|
+
const [frequencyEditable, setFrequencyEditable] = useState(false);
|
|
22
|
+
const [showCategoryEditIcon, setShowCategoryEditIcon] = useState(true);
|
|
23
|
+
const [categoryEditable, setCategoryEditable] = useState(false);
|
|
24
|
+
const clickEvent = (e) => {
|
|
25
|
+
if (!e.target.className.toString())
|
|
26
|
+
return;
|
|
27
|
+
if (!e.target.className.toString().includes("ant-select")) {
|
|
28
|
+
setDateBasedEditable(false);
|
|
29
|
+
setShowDateBasedEditIcon(true);
|
|
30
|
+
}
|
|
31
|
+
if (!e.target.className.toString().includes("ant-select")) {
|
|
32
|
+
setCategoryEditable(false);
|
|
33
|
+
setShowCategoryEditIcon(true);
|
|
34
|
+
}
|
|
35
|
+
if (!e.target.className.toString().includes("ant-select")) {
|
|
36
|
+
setFrequencyEditable(false);
|
|
37
|
+
setShowFrequencyEditIcon(true);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (dateBasedEditable || frequencyEditable || categoryEditable) {
|
|
42
|
+
window.addEventListener("click", clickEvent, true);
|
|
43
|
+
}
|
|
44
|
+
return () => {
|
|
45
|
+
window.removeEventListener("click", clickEvent, true);
|
|
46
|
+
};
|
|
47
|
+
}, [dateBasedEditable, frequencyEditable, categoryEditable]);
|
|
48
|
+
const filterPro = filingTypeProperties === null || filingTypeProperties === void 0 ? void 0 : filingTypeProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
49
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
50
|
+
headerVisible && (React.createElement("div", { className: "properties-header" },
|
|
51
|
+
React.createElement("div", { className: "title" }, filingType.name),
|
|
52
|
+
React.createElement(FilingTypeMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) }))),
|
|
53
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
54
|
+
React.createElement(PropertiesSection, { title: filingTypeTitle, properties: React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))) })))));
|
|
55
|
+
function renderProp(item) {
|
|
56
|
+
switch (item.name) {
|
|
57
|
+
case "Name":
|
|
58
|
+
return (React.createElement(Form.Item, { label: "Name" },
|
|
59
|
+
React.createElement(InlineEdit, { defaultValue: filingType.name, content: (v) => React.createElement("div", null, filingType.name), onSave: (v) => store.edit(id, { data: { Name: v }, error: "message" }) })));
|
|
60
|
+
case "Category":
|
|
61
|
+
return (React.createElement(Form.Item, { label: "Category" },
|
|
62
|
+
React.createElement(FolderEdit, { showEditIcon: showCategoryEditIcon, onEditIconClick: () => {
|
|
63
|
+
setCategoryEditable(true);
|
|
64
|
+
setShowCategoryEditIcon(false);
|
|
65
|
+
} }, categoryEditable ? (React.createElement(Select, { defaultValue: filingType.category, optionFilterProp: "children", onChange: (value) => store.edit(id, { data: { Category: value }, error: "message" }).then(() => {
|
|
66
|
+
setShowCategoryEditIcon(true);
|
|
67
|
+
setCategoryEditable(false);
|
|
68
|
+
}), options: [
|
|
69
|
+
{
|
|
70
|
+
value: "Tax",
|
|
71
|
+
label: "Tax",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
value: "Business",
|
|
75
|
+
label: "Business",
|
|
76
|
+
},
|
|
77
|
+
] })) : (React.createElement("span", { className: classnames({
|
|
78
|
+
"add-info-style": !filingType.category,
|
|
79
|
+
}) }, filingType.category || "Select Work Type")))));
|
|
80
|
+
case "Frequency":
|
|
81
|
+
return (React.createElement(Form.Item, { label: "Frequency" },
|
|
82
|
+
React.createElement(FolderEdit, { showEditIcon: showFrequencyEditIcon, onEditIconClick: () => {
|
|
83
|
+
setFrequencyEditable(true);
|
|
84
|
+
setShowFrequencyEditIcon(false);
|
|
85
|
+
} }, frequencyEditable ? (React.createElement(Select, { defaultValue: filingType.frequency, optionFilterProp: "children", onChange: (value) => store.edit(id, { data: { Frequency: value }, error: "message" }).then(() => {
|
|
86
|
+
setShowFrequencyEditIcon(true);
|
|
87
|
+
setFrequencyEditable(false);
|
|
88
|
+
}), options: [
|
|
89
|
+
{
|
|
90
|
+
value: "Monthly",
|
|
91
|
+
label: "Monthly",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
value: "Quarterly",
|
|
95
|
+
label: "Quarterly",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
value: "HalfYearly",
|
|
99
|
+
label: "HalfYearly",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
value: "Yearly",
|
|
103
|
+
label: "Yearly",
|
|
104
|
+
},
|
|
105
|
+
] })) : (React.createElement("span", { className: classnames({
|
|
106
|
+
"add-info-style": !filingType.frequency,
|
|
107
|
+
}) }, filingType.frequency || "Select Frequency")))));
|
|
108
|
+
case "DateBased":
|
|
109
|
+
return (React.createElement(Form.Item, { label: "DateBased" },
|
|
110
|
+
React.createElement(FolderEdit, { showEditIcon: showDateBasedEditIcon, onEditIconClick: () => {
|
|
111
|
+
setDateBasedEditable(true);
|
|
112
|
+
setShowDateBasedEditIcon(false);
|
|
113
|
+
} }, dateBasedEditable ? (React.createElement(Select, { defaultValue: filingType.dateBased, optionFilterProp: "children", onChange: (value) => store.edit(id, { data: { DateBased: value }, error: "message" }).then(() => {
|
|
114
|
+
setShowDateBasedEditIcon(true);
|
|
115
|
+
setDateBasedEditable(false);
|
|
116
|
+
}), options: [
|
|
117
|
+
{
|
|
118
|
+
value: "FinancialYear",
|
|
119
|
+
label: "FinancialYear",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
value: "CalendarYear",
|
|
123
|
+
label: "CalendarYear",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
value: "Fixed",
|
|
127
|
+
label: "Fixed",
|
|
128
|
+
},
|
|
129
|
+
] })) : (React.createElement("span", { className: classnames({
|
|
130
|
+
"add-info-style": !filingType.dateBased,
|
|
131
|
+
}) }, filingType.dateBased || "Select DateBased")))));
|
|
132
|
+
case "FixedDate":
|
|
133
|
+
return (React.createElement(Form.Item, { label: "FixedDate" },
|
|
134
|
+
React.createElement(InlineEdit, { defaultValue: moment(filingType.fixedDate !== "" ? filingType.fixedDate : undefined), content: (v) => filingType.fixedDate ? (React.createElement("span", null, moment(filingType.fixedDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add FixedDate")), editor: DateInputEditor, onSave: (date) => {
|
|
135
|
+
if (filingType.fixedDate && moment(date).isSame(filingType.fixedDate, "day"))
|
|
136
|
+
return;
|
|
137
|
+
store.edit(props.id, {
|
|
138
|
+
data: { FixedDate: date !== null ? moment(date).format("YYYY-MM-DD") : "" },
|
|
139
|
+
});
|
|
140
|
+
} })));
|
|
141
|
+
case "MonthOffset":
|
|
142
|
+
return (React.createElement(Form.Item, { label: "MonthOffset" },
|
|
143
|
+
React.createElement(InlineEdit, { defaultValue: filingType.monthOffset, content: (v) => v.store.value ? (React.createElement("span", null, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "Add MonthOffset")), onSave: (value) => store.edit(id, { data: { MonthOffset: value }, error: "message" }) })));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
FilingTypeProperties.defaultProps = {
|
|
148
|
+
filingTypeTitle: "FilingType Properties",
|
|
149
|
+
orgContactTitle: "Contact Properties",
|
|
150
|
+
filingTypeProperties: [
|
|
151
|
+
{ name: "Name" },
|
|
152
|
+
{ name: "Category" },
|
|
153
|
+
{ name: "Frequency" },
|
|
154
|
+
{ name: "DateBased" },
|
|
155
|
+
{ name: "FixedDate" },
|
|
156
|
+
{ name: "MonthOffset" },
|
|
157
|
+
],
|
|
158
|
+
};
|
|
159
|
+
export default FilingTypeProperties;
|
|
160
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACN,aAAa,EACb,kBAAkB,GAIlB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,gDAAgD,CAAC;AACxE,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAU5B,MAAM,oBAAoB,GAAG,CAAC,KAQ7B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IAC3E,MAAM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,CAAC,WAAW,EACpC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CACf,kCAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAQ,CAC5B,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,sBAAuB,CACvD,EAEF,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CACtB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAElE,CACS,CACZ,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,eAAe,EAAE,uBAAuB;IACxC,eAAe,EAAE,oBAAoB;IACrC,oBAAoB,EAAE;QACrB,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,aAAa,EAAE;KACvB;CACD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
|
+
import FilingTypeProperties from "../FilingTypeProperties";
|
|
5
|
+
import FilingTypeHead from "../FilingTypeHead";
|
|
6
|
+
import FilingTypeTabs from "../FilingTypeTabs";
|
|
7
|
+
/** FilingType PropertiesView */
|
|
8
|
+
const FilingTypePropertiesView = (props) => {
|
|
9
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
10
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
+
React.createElement("div", { className: "module-detail-view" },
|
|
12
|
+
React.createElement(FilingTypeHead, { id: props.id }),
|
|
13
|
+
React.createElement(FilingTypeTabs, { id: props.id, details: React.createElement(FilingTypeProperties, { id: props.id }) })))));
|
|
14
|
+
};
|
|
15
|
+
export default FilingTypePropertiesView;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,gCAAgC;AAChC,MAAM,wBAAwB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1D,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,oBAAoB;YAClC,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAChC,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,GAAI,CAC5E,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const FilingTypeQuickView: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
/** show close button or not. */
|
|
9
|
+
closeVisible?: boolean;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
closeVisible: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default FilingTypeQuickView;
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faTimes } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import FilingTypeHead from "../FilingTypeHead";
|
|
6
|
+
import FlexDialog from "@voplus/morpho-document/es/components/FlexDialog";
|
|
7
|
+
import FilingTypeProperties from "../FilingTypeProperties";
|
|
8
|
+
import "./index.less";
|
|
9
|
+
const FilingTypeQuickView = (props) => {
|
|
10
|
+
return observe(() => (React.createElement(FlexDialog, { modalProps: {
|
|
11
|
+
className: "quickView-modal-style",
|
|
12
|
+
width: "500px",
|
|
13
|
+
destroyOnClose: true,
|
|
14
|
+
closable: false,
|
|
15
|
+
footer: false,
|
|
16
|
+
visible: props.visible,
|
|
17
|
+
onCancel: props.onCancel,
|
|
18
|
+
}, closeAside: props.onCancel },
|
|
19
|
+
React.createElement("div", { className: "quickView-content" },
|
|
20
|
+
props.closeVisible && (React.createElement("div", { className: "filing-type-close-icon" },
|
|
21
|
+
React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel }))),
|
|
22
|
+
React.createElement(FilingTypeHead, { id: props.id }),
|
|
23
|
+
React.createElement(FilingTypeProperties, { id: props.id })))));
|
|
24
|
+
};
|
|
25
|
+
FilingTypeQuickView.defaultProps = {
|
|
26
|
+
closeVisible: true,
|
|
27
|
+
};
|
|
28
|
+
export default FilingTypeQuickView;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,cAAc,CAAC;AAEtB,MAAM,mBAAmB,GAAG,CAAC,KAM5B,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU,IACV,UAAU,EAAE;YACX,SAAS,EAAE,uBAAuB;YAClC,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,IAAI;YACpB,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACxB,EACD,UAAU,EAAE,KAAK,CAAC,QAAQ;QAE1B,6BAAK,SAAS,EAAC,mBAAmB;YAChC,KAAK,CAAC,YAAY,IAAI,CACtB,6BAAK,SAAS,EAAC,wBAAwB;gBACtC,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC7C,CACN;YACD,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAChC,oBAAC,oBAAoB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACjC,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,YAAY,EAAE,IAAI;CAClB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.less
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.quickView-modal-style {
|
|
3
|
+
.ant-modal-close-x {
|
|
4
|
+
color: #575757;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.quickView-content {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
|
|
11
|
+
.filing-type-close-icon {
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: 20px;
|
|
14
|
+
top: 14px;
|
|
15
|
+
font-size: 22px;
|
|
16
|
+
text-align: right;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.filing-type-header {
|
|
21
|
+
padding: 10px 44px 10px 20px;
|
|
22
|
+
|
|
23
|
+
.tool-bar {
|
|
24
|
+
min-width: 64px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Tabs, Badge } from "@voplus/antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
6
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
7
|
+
import Links from "@voplus/morpho-document/es/components/Links";
|
|
8
|
+
import styles from "./index.less";
|
|
9
|
+
const FilingTypeTabs = (props) => {
|
|
10
|
+
const { id, details } = props;
|
|
11
|
+
const [docTotals, setDocTotals] = useState(0);
|
|
12
|
+
/**Tabs 当前激活 tab 面板的 key */
|
|
13
|
+
const [activeKey, setActiveKey] = useState("");
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
setActiveKey(details ? "Details" : "Activities");
|
|
16
|
+
}, [id]);
|
|
17
|
+
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
18
|
+
Total: true,
|
|
19
|
+
List: false,
|
|
20
|
+
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
21
|
+
});
|
|
22
|
+
return observe(() => (React.createElement(Tabs, { className: styles["filing-type-tabs"], activeKey: activeKey, onChange: onChange },
|
|
23
|
+
details && (React.createElement(React.Fragment, null,
|
|
24
|
+
React.createElement(Tabs.TabPane, { tab: "Details", key: "Details" }, details))),
|
|
25
|
+
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
|
|
26
|
+
React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
|
|
27
|
+
"Document",
|
|
28
|
+
React.createElement(Badge, { count: docTotals, className: "margin-left-10" })), key: "Document" }, activeKey === "Document" && (React.createElement(DocumentList, { id: id, multiple: true, viewTitle: " ", total: false, exclude: ["Task", "Ticket", "Deal"] }))),
|
|
29
|
+
React.createElement(Tabs.TabPane, { tab: "Links", key: "Links" }, activeKey === "Links" && React.createElement(Links, { id: id })))));
|
|
30
|
+
/**切换面板的回调*/
|
|
31
|
+
function onChange(activeKey) {
|
|
32
|
+
setActiveKey(activeKey);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default FilingTypeTabs;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAA0C,EAAE,EAAE;IACrE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9C,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC/C,SAAS,CAAC,GAAG,EAAE;QACd,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;QACxE,KAAK,EAAE,IAA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AiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const NewFilingTypeForm: {
|
|
3
|
+
(props: {
|
|
4
|
+
/** center id */
|
|
5
|
+
centerId: string;
|
|
6
|
+
/** 額外css class. */
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
/** NewFilingTypeForm 打开的方式 */
|
|
9
|
+
openMode?: "openAside" | "openBottom" | undefined;
|
|
10
|
+
onSave?: ((params?: any) => void) | undefined;
|
|
11
|
+
onCancel?: (() => void) | undefined;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
defaultProps: {
|
|
14
|
+
openMode: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default NewFilingTypeForm;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button, Form, Input, Row, Space, Select, message } from "@voplus/antd";
|
|
3
|
+
import { observe, InputCountry } from "@voplus/morpho-ui";
|
|
4
|
+
import { State } from "./state";
|
|
5
|
+
import { useFilingTypeStore } from "../../../../../../data/filing-type";
|
|
6
|
+
import { runInAction } from "mobx";
|
|
7
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
8
|
+
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
9
|
+
import { useCLDASettingListEffect } from "../../../../../../data/clda-setting";
|
|
10
|
+
import { useCenterListEffect } from "@voplus/morpho-center-core/es/data";
|
|
11
|
+
import CenterSelect from "@voplus/morpho-org/es/components/CenterSelect";
|
|
12
|
+
import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
|
13
|
+
import classnames from "classnames";
|
|
14
|
+
import styles from "./index.less";
|
|
15
|
+
const NewFilingTypeForm = (props) => {
|
|
16
|
+
const { centerId, openMode } = props;
|
|
17
|
+
const [state] = useState(new State());
|
|
18
|
+
const [form] = Form.useForm();
|
|
19
|
+
const [loading, setLoading] = useState(false);
|
|
20
|
+
const [list, setList] = useState();
|
|
21
|
+
const asideContext = useAsideContentContext();
|
|
22
|
+
const layout = useLayout();
|
|
23
|
+
const store = useFilingTypeStore();
|
|
24
|
+
useCLDASettingListEffect(null, (result) => {
|
|
25
|
+
const data = [];
|
|
26
|
+
result.map((item) => data.push(item.jurisdiction));
|
|
27
|
+
setList([...new Set(data)]);
|
|
28
|
+
}, {
|
|
29
|
+
Filters: [],
|
|
30
|
+
});
|
|
31
|
+
useCenterListEffect(null, (result, total) => {
|
|
32
|
+
runInAction(() => {
|
|
33
|
+
state.centerTotal = total || 0;
|
|
34
|
+
if (centerId) {
|
|
35
|
+
state.params.CenterId = centerId;
|
|
36
|
+
}
|
|
37
|
+
else if (total === 1) {
|
|
38
|
+
state.params.CenterId = result[0].id;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}, {
|
|
42
|
+
Total: true,
|
|
43
|
+
Filters: [{ c: "NodeType", o: "=", l: "And", v1: "SecretaryCenter" }],
|
|
44
|
+
});
|
|
45
|
+
const content = observe(() => (React.createElement("div", { className: classnames(styles["new-filing-type-form"], props.className) },
|
|
46
|
+
React.createElement(Form, { form: form, layout: "vertical" },
|
|
47
|
+
React.createElement(Form.Item, { name: "Name", label: "Name" },
|
|
48
|
+
React.createElement(Input, { onChange: (e) => (state.params.Name = e.target.value) })),
|
|
49
|
+
!state.params.CenterId && state.centerTotal >= 1 ? (React.createElement(Form.Item, { label: "Center Select" },
|
|
50
|
+
React.createElement(CenterSelect, { filter: "SecretaryCenter", onChange: (id, center) => (state.params.CenterId = id) }))) : (React.createElement(React.Fragment, null)),
|
|
51
|
+
React.createElement(Form.Item, { name: "Jurisdiction", label: "Jurisdiction" },
|
|
52
|
+
React.createElement(InputCountry, { onChange: (val, alpha3Code) => (state.params.Jurisdiction = alpha3Code), list: list })),
|
|
53
|
+
React.createElement(Form.Item, { name: "CorporateType", label: "CorporateType" },
|
|
54
|
+
React.createElement(Select, { placeholder: "Select a person", optionFilterProp: "children", onChange: (value) => (state.params.CorporateType = value), options: [
|
|
55
|
+
{
|
|
56
|
+
value: "Proprietorship",
|
|
57
|
+
label: "Proprietorship",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: "Company",
|
|
61
|
+
label: "Company",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
value: "Partnership",
|
|
65
|
+
label: "Partnership",
|
|
66
|
+
},
|
|
67
|
+
] })),
|
|
68
|
+
React.createElement(Form.Item, { name: "LiabilityType", label: "LiabilityType" },
|
|
69
|
+
React.createElement(Select, { placeholder: "Select a person", optionFilterProp: "children", onChange: (value) => (state.params.LiabilityType = value), options: [
|
|
70
|
+
{
|
|
71
|
+
value: "Unlimited",
|
|
72
|
+
label: "Unlimited",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
value: "LimitedByShares",
|
|
76
|
+
label: "LimitedByShares",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
value: "LimitedByGuarantee",
|
|
80
|
+
label: "LimitedByGuarantee",
|
|
81
|
+
},
|
|
82
|
+
] })),
|
|
83
|
+
openMode === "openBottom" && (React.createElement(Form.Item, { className: "from-footer" },
|
|
84
|
+
React.createElement(Row, { justify: "end" },
|
|
85
|
+
React.createElement(Space, null,
|
|
86
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
87
|
+
React.createElement(Button, { type: "primary", htmlType: "submit", onClick: onSubmit, loading: loading }, "Submit")))))))));
|
|
88
|
+
return observe(() => (React.createElement(React.Fragment, null, props.openMode === "openBottom" ? (content) : (React.createElement(AddFormView, { title: "Add FilingType Form", loading: loading, onCancel: onCancel, onSubmit: onSubmit }, content)))));
|
|
89
|
+
async function onSubmit() {
|
|
90
|
+
var _a;
|
|
91
|
+
// if (!values.Name) return message.warning("Title is required");
|
|
92
|
+
setLoading(true);
|
|
93
|
+
await store.create({
|
|
94
|
+
data: state.params,
|
|
95
|
+
error: (error) => message.error(error.message),
|
|
96
|
+
});
|
|
97
|
+
// .then((res) => layout.history.push(``));
|
|
98
|
+
setLoading(false);
|
|
99
|
+
asideContext.closeAside();
|
|
100
|
+
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, state.params);
|
|
101
|
+
}
|
|
102
|
+
function onCancel() {
|
|
103
|
+
var _a;
|
|
104
|
+
asideContext.closeAside();
|
|
105
|
+
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
NewFilingTypeForm.defaultProps = {
|
|
109
|
+
openMode: "openAside",
|
|
110
|
+
};
|
|
111
|
+
export default NewFilingTypeForm;
|
|
112
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qD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SAAS,QAAQ;;QAChB,YAAa,CAAC,UAAU,EAAE,CAAC;QAC3B,MAAA,KAAK,CAAC,QAAQ,+CAAd,KAAK,CAAa,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,QAAQ,EAAE,WAAW;CACrB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class State {
|
|
2
|
+
centerTotal: number;
|
|
3
|
+
constructor();
|
|
4
|
+
Params: {
|
|
5
|
+
CenterId: string;
|
|
6
|
+
Name: string;
|
|
7
|
+
Jurisdiction: string;
|
|
8
|
+
CorporateType: string;
|
|
9
|
+
LiabilityType: string;
|
|
10
|
+
};
|
|
11
|
+
params: {
|
|
12
|
+
CenterId: string;
|
|
13
|
+
Name: string;
|
|
14
|
+
Jurisdiction: string;
|
|
15
|
+
CorporateType: string;
|
|
16
|
+
LiabilityType: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "centerTotal", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: 0
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "Params", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: {
|
|
16
|
+
CenterId: "",
|
|
17
|
+
Name: "",
|
|
18
|
+
Jurisdiction: "",
|
|
19
|
+
CorporateType: "",
|
|
20
|
+
LiabilityType: "",
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(this, "params", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: this.Params
|
|
28
|
+
});
|
|
29
|
+
makeObservable(this);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
observable
|
|
34
|
+
], State.prototype, "centerTotal", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
observable
|
|
37
|
+
], State.prototype, "params", void 0);
|
|
38
|
+
//# sourceMappingURL=state.js.map
|
package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IAGjB;QAFY;;;;mBAAqB,CAAC;WAAC;QAMnC;;;;mBAAgB;gBACf,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE;gBACR,YAAY,EAAE,EAAE;gBAChB,aAAa,EAAE,EAAE;gBACjB,aAAa,EAAE,EAAE;aACjB;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAVvC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAdY;IAAX,UAAU;0CAAwB;AAavB;IAAX,UAAU;qCAA6B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const FilingTypeDataBar: (props: {
|
|
3
|
+
/** id of filingType */
|
|
4
|
+
id: string;
|
|
5
|
+
/** visible DataIconBar */
|
|
6
|
+
visible?: boolean | undefined;
|
|
7
|
+
/** props click function */
|
|
8
|
+
onClick?: ((key?: string | undefined) => void) | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default FilingTypeDataBar;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DateQuickIcon, DocumentDataIcon, } from "@voplus/morpho-document/es/controls/data-icons";
|
|
3
|
+
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
|
4
|
+
const FilingTypeDataBar = (props) => {
|
|
5
|
+
const { id, visible, onClick } = props;
|
|
6
|
+
return (React.createElement(DataIconBar, { visible: visible, onClick: onClick },
|
|
7
|
+
React.createElement(DateQuickIcon, { id: id }),
|
|
8
|
+
React.createElement(DocumentDataIcon, { id: id })));
|
|
9
|
+
};
|
|
10
|
+
export default FilingTypeDataBar;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EACL,aAAa,EACb,gBAAgB,GACjB,MAAM,gDAAgD,CAAC;AAExD,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAE1E,MAAM,iBAAiB,GAAG,CAAC,KAO1B,EAAE,EAAE;IACH,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEvC,OAAO,CACL,oBAAC,WAAW,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;QAC7C,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;QACzB,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,CAChB,CACf,CAAC;AAEJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const FilingTypeMenu: {
|
|
3
|
+
(props: {
|
|
4
|
+
id: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
closeAside?: boolean;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
icon: JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default FilingTypeMenu;
|