@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
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
4
|
+
import { useAutoUpdateListData } from "../../../../../data/filing-year/filing-year-events";
|
|
5
|
+
import { useFilingYearListEffect } from "../../../../../data/filing-year";
|
|
2
6
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
7
|
+
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
8
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
9
|
+
import FilingRecordItem from "../FilingRecordItem";
|
|
10
|
+
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
|
6
11
|
import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
|
|
7
|
-
import NewFilingYearDialog from "
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
12
|
+
import NewFilingYearDialog from "../../filing-year/NewFilingYearDialog";
|
|
13
|
+
import FilingYearPropertiesView from "../../filing-year/FilingYearPropertiesView";
|
|
14
|
+
import FilingYearQuickViewDialog from "../../filing-year/FilingYearQuickViewDialog";
|
|
15
|
+
import styles from "./index.less";
|
|
11
16
|
const AnnualFilings = (props) => {
|
|
12
17
|
const { id } = props;
|
|
18
|
+
const view = useViewContext();
|
|
19
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
13
20
|
const [visible, setVisible] = useState(false);
|
|
21
|
+
const [quickView, setQuickView] = useState({
|
|
22
|
+
show: false,
|
|
23
|
+
id: "",
|
|
24
|
+
});
|
|
14
25
|
const list = useCreateListDataState({
|
|
15
26
|
filterDefaults: {
|
|
16
27
|
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
17
28
|
},
|
|
18
29
|
}, [id]);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
id: "1",
|
|
24
|
-
date: "2020-10-27",
|
|
25
|
-
lines: [
|
|
26
|
-
{ id: "0b1672d6-baf4-4da1-9457-ac7900369df3", type: "Created" },
|
|
27
|
-
{ id: "7382546a-90e4-4027-ad25-ac790036a0f2", type: "Deleted" },
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: "2",
|
|
32
|
-
date: "2019-10-25",
|
|
33
|
-
lines: [
|
|
34
|
-
{ id: "579e6ccc-dff1-491b-878a-ac790038eee1", type: "Changed" },
|
|
35
|
-
{ id: "cb00c9bc-b1e1-42e0-85d2-ac790038f38e", type: "Moved" },
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
]);
|
|
39
|
-
runInAction(() => (list.hasMore = false));
|
|
40
|
-
}, []);
|
|
30
|
+
useAutoUpdateListData(list, (d) => true);
|
|
31
|
+
useRenderOnChange(() => list.filters.options);
|
|
32
|
+
useFilingYearListEffect(list, (result, total) => list.union(result), list.filters.options);
|
|
41
33
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
42
|
-
React.createElement(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
React.createElement(
|
|
46
|
-
|
|
34
|
+
React.createElement("div", { className: styles["annual-filings-view"] },
|
|
35
|
+
React.createElement("div", { className: "annual-filings-header" },
|
|
36
|
+
React.createElement(PageHeader, { titleView: "Annual Filings", onAdd: () => setVisible(true) })),
|
|
37
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
38
|
+
React.createElement("div", { className: "annual-filings-list" },
|
|
39
|
+
React.createElement(InfiniteScrollView, { empty: list.isEmpty, loading: list.loading, hasMore: list.hasMore, loadMore: loadMore }, (list.data || []).map((filing, index) => (React.createElement(FilingRecordItem, { id: filing.id, key: filing.id, onClickItem: (id) => onClickItem(id) })))),
|
|
40
|
+
visible && (React.createElement(NewFilingYearDialog, { corporateId: id, onCancel: () => setVisible(false), onCreate: () => setVisible(false) })),
|
|
41
|
+
quickView.show && (React.createElement(FilingYearQuickViewDialog, { visible: true, id: quickView.id, onCancel: () => setQuickView({ show: false, id: "" }) }))))))));
|
|
47
42
|
/** 分页查询 */
|
|
48
43
|
function loadMore() {
|
|
49
44
|
list.triggerNextPage();
|
|
50
45
|
}
|
|
46
|
+
function onClickItem(id) {
|
|
47
|
+
if ((view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView") {
|
|
48
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(FilingYearPropertiesView, { id: id }), { span: 12 });
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
setQuickView({ show: !quickView.show, id: id });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
51
54
|
};
|
|
52
55
|
export default AnnualFilings;
|
|
53
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/AnnualFilings/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/AnnualFilings/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAe,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,mBAAmB,MAAM,uCAAuC,CAAC;AACxE,OAAO,wBAAwB,MAAM,4CAA4C,CAAC;AAClF,OAAO,yBAAyB,MAAM,6CAA6C,CAAC;AACpF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC/C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;IAC9B,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,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
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
.annual-filings-view {
|
|
2
|
+
height: 100%;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
|
|
5
|
+
:global {
|
|
6
|
+
.annual-filings-header {
|
|
7
|
+
padding: 1em 20px;
|
|
8
|
+
border-bottom: 1px solid #e6e6e6;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.asideContent___WPUKh {
|
|
12
|
+
height: calc(100% - 65px);
|
|
13
|
+
padding: 0 20px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { Switch } from "@voplus/antd";
|
|
3
|
-
import React, { useState } from "react";
|
|
4
|
-
import FilingRecordQuickView from "../FilingRecordQuickView";
|
|
5
|
-
import moment from "moment";
|
|
6
3
|
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
4
|
+
import { useFilingYear } from "../../../../../data/filing-year";
|
|
5
|
+
import moment from "moment";
|
|
6
|
+
import "./index.less";
|
|
9
7
|
const FilingRecordItem = (props) => {
|
|
10
8
|
const { id } = props;
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const filingStore = useFilingRecordStore();
|
|
15
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
16
|
-
React.createElement("div", { className: "filing-record-item_name", onClick: () => setVisible(true) }, filingRecord.name),
|
|
9
|
+
const filingRecord = useFilingYear(id);
|
|
10
|
+
return observe(() => (React.createElement("div", { onClick: onClickItem },
|
|
11
|
+
React.createElement("div", { className: "filing-record-item_name" }),
|
|
17
12
|
React.createElement("div", null,
|
|
18
13
|
moment().format("YYYY-MM-DD"),
|
|
19
14
|
" ",
|
|
@@ -24,12 +19,15 @@ const FilingRecordItem = (props) => {
|
|
|
24
19
|
React.createElement(Switch, { disabled: true, defaultChecked: true })),
|
|
25
20
|
React.createElement("div", null,
|
|
26
21
|
"FYE: ",
|
|
27
|
-
moment().format("YYYY-MM-DD"))
|
|
28
|
-
|
|
22
|
+
moment(filingRecord.fYE).format("YYYY-MM-DD")))));
|
|
23
|
+
function onClickItem() {
|
|
24
|
+
if (props.onClickItem)
|
|
25
|
+
props.onClickItem(id);
|
|
26
|
+
}
|
|
29
27
|
function onSave(v) {
|
|
30
28
|
if (moment(v).isSame("", "day"))
|
|
31
29
|
return;
|
|
32
|
-
filingStore.edit(id, { data: { DueDate: v.format("YYYY-MM-DD") }, error: "message" });
|
|
30
|
+
// filingStore.edit(id, { data: { DueDate: v.format("YYYY-MM-DD") }, error: "message" });
|
|
33
31
|
}
|
|
34
32
|
};
|
|
35
33
|
export default FilingRecordItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAAyD,EAAE,EAAE;IACtF,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,YAAY,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,OAAO,EAAE,WAAW;QACxB,6BAAK,SAAS,EAAC,yBAAyB,GAAkC;QAC1E;YACE,MAAM,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC;;YAAG,MAAM;YACtC,MAAM,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC;YAC9B,8BAAM,SAAS,EAAC,yBAAyB,WAAY;;YAC5C,oBAAC,MAAM,IAAC,QAAQ,QAAC,cAAc,SAAG,CACtC;QACN;;YAAW,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAO,CAC1D,CACN,CAAC,CAAC;IAEH,SAAS,WAAW;QACnB,IAAI,KAAK,CAAC,WAAW;YAAE,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,SAAS,MAAM,CAAC,CAAgB;QAC/B,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC;YAAE,OAAO;QACxC,yFAAyF;IAC1F,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import FilingRecordItem from "../FilingRecordItem";
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import moment from "moment";
|
|
8
8
|
import { observe } from "@voplus/morpho-ui";
|
|
9
|
-
import { useFilingRecordStore } from "../../../../../data/
|
|
9
|
+
import { useFilingRecordStore } from "../../../../../data/filing-folder/store";
|
|
10
10
|
const FilingYearTimeLine = (props) => {
|
|
11
11
|
const { lines, remove } = props;
|
|
12
12
|
const filingStore = useFilingRecordStore();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingYearTimeLine/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingYearTimeLine/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,MAAM,kBAAkB,GAAG,CAAC,KAA0C,EAAE,EAAE;IACzE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEhC,MAAM,WAAW,GAAG,oBAAoB,EAAE,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,oBAAoB;QAClC,gCAAK,MAAM,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAM;QACxC,MAAM,IAAI,CACV,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E,CAAC;SACX;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
+
import { useFilingType } from "../../../../../../data/filing-type";
|
|
5
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
|
+
import FilingTypeMenu from "../../controls/FilingTypeMenu";
|
|
7
|
+
import "./index.less";
|
|
8
|
+
const FilingTypeHead = (props) => {
|
|
9
|
+
const { id } = props;
|
|
10
|
+
const filingType = useFilingType(id);
|
|
11
|
+
return observe(() => (React.createElement("div", { className: "filing-type-header" },
|
|
12
|
+
React.createElement("div", null, filingType.name),
|
|
13
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
14
|
+
React.createElement(Open, { url: `/filing-types/${id}` }),
|
|
15
|
+
React.createElement(FilingTypeMenu, { id: id, closeAside: true })))));
|
|
16
|
+
};
|
|
17
|
+
export default FilingTypeHead;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,cAAc,CAAC;AAEtB,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAChD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,oBAAoB;QAClC,iCAAM,UAAU,CAAC,IAAI,CAAO;QAC5B,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;YAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;YACpC,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5B,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useFilingType } from "../../../../../../data/filing-type";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
|
+
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
6
|
+
import FilingTypeMenu from "../../controls/FilingTypeMenu";
|
|
7
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
8
|
+
import FilingTypeQuickView from "../FilingTypeQuickView";
|
|
9
|
+
import classnames from "classnames";
|
|
10
|
+
import styles from "./index.less";
|
|
11
|
+
const FilingTypeItem = (props) => {
|
|
12
|
+
const { id, quickView } = props;
|
|
13
|
+
const filingType = useFilingType(id);
|
|
14
|
+
const [isHover, setIsHover] = useState(false);
|
|
15
|
+
const [visibleQuickView, setVisibleQuickView] = useState(false);
|
|
16
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement("div", { className: styles["filing-type-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false), onClick: onQuickView },
|
|
18
|
+
React.createElement(ColumnItem, null,
|
|
19
|
+
React.createElement(ColumnItemCol, { span: 8 },
|
|
20
|
+
React.createElement("div", { className: "filing-type-item-name" }, filingType.name),
|
|
21
|
+
React.createElement("div", { className: "filing-type-item-data-info" })),
|
|
22
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Date Type" },
|
|
23
|
+
React.createElement("div", { className: "filing-type-item-data-info" }, filingType.dateBased)),
|
|
24
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Frequency" },
|
|
25
|
+
React.createElement("div", { className: "filing-type-item-data-info" }, filingType.frequency)),
|
|
26
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Date / Offset", align: "center" },
|
|
27
|
+
React.createElement("div", { className: "filing-type-item-data-info" }, filingType === null || filingType === void 0 ? void 0 : filingType.monthOffset)),
|
|
28
|
+
React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
|
|
29
|
+
React.createElement("div", { className: classnames("filing-type-item-tool", {
|
|
30
|
+
show: isHover,
|
|
31
|
+
}), onClick: (e) => {
|
|
32
|
+
e.stopPropagation();
|
|
33
|
+
setIsHover(false);
|
|
34
|
+
} },
|
|
35
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
36
|
+
React.createElement(Open, { url: `/filing-types/${id}` }),
|
|
37
|
+
React.createElement(FilingTypeMenu, { id: id, closeAside: true })))))),
|
|
38
|
+
visibleQuickView && (React.createElement(FilingTypeQuickView, { id: id, visible: true, onCancel: onQuickView })))));
|
|
39
|
+
/** Quick View */
|
|
40
|
+
function onQuickView() {
|
|
41
|
+
if (!quickView)
|
|
42
|
+
return;
|
|
43
|
+
setVisibleQuickView(!visibleQuickView);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export default FilingTypeItem;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.ts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B,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
3
|
+
|
|
4
|
+
.filing-type-item {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
background-color: #f5f8fd;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:global {
|
|
12
|
+
.filing-type-item-name {
|
|
13
|
+
color: #575757;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
word-break: break-all;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.filing-type-item-data-info{
|
|
19
|
+
height: 22px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.filing-type-item-tool {
|
|
23
|
+
display: none;
|
|
24
|
+
|
|
25
|
+
&.show {
|
|
26
|
+
display: block;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.custom-column-item___yTecf {
|
|
31
|
+
padding: 10px 20px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IFilingType } from "../../../../../../data/filing-type";
|
|
3
|
+
declare const FilingTypeList: (props: {
|
|
4
|
+
centerId: string;
|
|
5
|
+
viewTitle?: string | undefined;
|
|
6
|
+
status?: string | undefined;
|
|
7
|
+
onTotal?: ((total: number) => void) | undefined;
|
|
8
|
+
onClickItem?: ((item: IFilingType) => void) | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default FilingTypeList;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
3
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
|
+
import { useFilingTypeListEffect } from "../../../../../../data/filing-type";
|
|
5
|
+
import { useAutoUpdateListData } from "../../../../../../data/filing-type/filing-type-events";
|
|
6
|
+
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
7
|
+
import NewFilingTypeForm from "../NewFilingTypeForm";
|
|
8
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
9
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
10
|
+
import FilingTypeItem from "../FilingTypeItem";
|
|
11
|
+
import FilingTypePropertiesView from "../FilingTypePropertiesView";
|
|
12
|
+
import styles from "./index.less";
|
|
13
|
+
const FilingTypeList = (props) => {
|
|
14
|
+
const { centerId, viewTitle, status } = props;
|
|
15
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
16
|
+
const [addAble, setAddAble] = useState(false);
|
|
17
|
+
const view = useViewContext();
|
|
18
|
+
const list = useCreateListDataState({
|
|
19
|
+
filterDefaults: {
|
|
20
|
+
filters: filters(),
|
|
21
|
+
},
|
|
22
|
+
}, [centerId, status]);
|
|
23
|
+
/** 如果 list.filters.options变更了就重渲染,使下一行的useWorkTypeListEffect 可以接收新参数*/
|
|
24
|
+
useRenderOnChange(() => list.filters.options);
|
|
25
|
+
useFilingTypeListEffect(list, (result, total) => {
|
|
26
|
+
var _a;
|
|
27
|
+
list.union(result);
|
|
28
|
+
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
|
|
29
|
+
}, { Total: true, ...list.filters.options });
|
|
30
|
+
useAutoUpdateListData(list, (d) => true);
|
|
31
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
|
32
|
+
React.createElement("div", { className: styles["filing-type-list"] },
|
|
33
|
+
React.createElement(ListDataContext.Provider, { value: list },
|
|
34
|
+
React.createElement(ListView, { headerProps: {
|
|
35
|
+
viewTitle: viewTitle,
|
|
36
|
+
sortable: false,
|
|
37
|
+
quickSearch: true,
|
|
38
|
+
onAdd: () => (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" && setAddAble(!addAble),
|
|
39
|
+
}, formView: (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && React.createElement(NewFilingTypeForm, { centerId: centerId }), renderItem: ({ item, connectDragSource }) => (React.createElement("div", { key: item.id, onClick: () => (props === null || props === void 0 ? void 0 : props.onClickItem) && props.onClickItem(item) },
|
|
40
|
+
React.createElement(FilingTypeItem, { id: item.id, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" }))), propertiesView: (id) => (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && React.createElement(FilingTypePropertiesView, { id: id }) })),
|
|
41
|
+
addAble && (React.createElement(NewFilingTypeForm, { openMode: "openBottom", centerId: centerId, onSave: () => setAddAble(false), onCancel: () => setAddAble(false) }))))));
|
|
42
|
+
function filters() {
|
|
43
|
+
const filter = [{ c: "CenterId", o: "=", l: "And", v1: centerId }];
|
|
44
|
+
return filter;
|
|
45
|
+
}
|
|
46
|
+
function onFilter(context) {
|
|
47
|
+
context.paging.Page = 1;
|
|
48
|
+
context.filter();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export default FilingTypeList;
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAe,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC1F,OAAO,EAAE,qB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oBAAC,iBAAiB,IACjB,QAAQ,EAAC,YAAY,EACrB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAC/B,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAChC,CACF,CACI,CACQ,CACf,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,MAAM,MAAM,GAAmB,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QACnF,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
3
|
+
.filing-type-list {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
|
|
8
|
+
:global {
|
|
9
|
+
.list-view-header>div:first-child {
|
|
10
|
+
flex: 1;
|
|
11
|
+
|
|
12
|
+
.site-badge-count {
|
|
13
|
+
margin-left: 10px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.vo-plus-column-item>div {
|
|
18
|
+
flex: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type FilingTypePropertiesName = "Name" | "Category" | "Frequency" | "DateBased" | "FixedDate" | "MonthOffset";
|
|
3
|
+
declare const FilingTypeProperties: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
headerVisible?: boolean;
|
|
7
|
+
filingTypeTitle?: string;
|
|
8
|
+
filingTypeProperties?: {
|
|
9
|
+
name: FilingTypePropertiesName;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
defaultProps: {
|
|
14
|
+
filingTypeTitle: string;
|
|
15
|
+
orgContactTitle: string;
|
|
16
|
+
filingTypeProperties: {
|
|
17
|
+
name: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default FilingTypeProperties;
|