@voplus/morpho-csp 1.2.178 → 1.2.179

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.
Files changed (155) hide show
  1. package/es/data/filing-folder/hooks.js.map +1 -0
  2. package/es/data/filing-folder/interfaces.js.map +1 -0
  3. package/es/data/filing-folder/store.js.map +1 -0
  4. package/es/data/filing-folder/types.js.map +1 -0
  5. package/es/data/filing-type/FilingTypeStore.d.ts +33 -0
  6. package/es/data/filing-type/FilingTypeStore.js +115 -0
  7. package/es/data/filing-type/FilingTypeStore.js.map +1 -0
  8. package/es/data/filing-type/filing-type-events/index.d.ts +3 -0
  9. package/es/data/filing-type/filing-type-events/index.js +4 -0
  10. package/es/data/filing-type/filing-type-events/index.js.map +1 -0
  11. package/es/data/filing-type/filing-type-events/useAutoUpdateListData.d.ts +4 -0
  12. package/es/data/filing-type/filing-type-events/useAutoUpdateListData.js +15 -0
  13. package/es/data/filing-type/filing-type-events/useAutoUpdateListData.js.map +1 -0
  14. package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.d.ts +4 -0
  15. package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.js +16 -0
  16. package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.js.map +1 -0
  17. package/es/data/filing-type/filing-type-events/useOnNewFilingType.d.ts +4 -0
  18. package/es/data/filing-type/filing-type-events/useOnNewFilingType.js +17 -0
  19. package/es/data/filing-type/filing-type-events/useOnNewFilingType.js.map +1 -0
  20. package/es/data/filing-type/hooks.d.ts +10 -0
  21. package/es/data/filing-type/hooks.js +19 -0
  22. package/es/data/filing-type/hooks.js.map +1 -0
  23. package/es/data/filing-type/index.d.ts +4 -0
  24. package/es/data/filing-type/index.js +5 -0
  25. package/es/data/filing-type/index.js.map +1 -0
  26. package/es/data/filing-type/interfaces.d.ts +14 -0
  27. package/es/data/filing-type/interfaces.js +2 -0
  28. package/es/data/filing-type/interfaces.js.map +1 -0
  29. package/es/data/filing-type/types.d.ts +37 -0
  30. package/es/data/filing-type/types.js +2 -0
  31. package/es/data/{filingRecord → filing-type}/types.js.map +1 -1
  32. package/es/data/filing-year/FilingYearStore.d.ts +33 -0
  33. package/es/data/filing-year/FilingYearStore.js +115 -0
  34. package/es/data/filing-year/FilingYearStore.js.map +1 -0
  35. package/es/data/filing-year/filing-year-events/index.d.ts +3 -0
  36. package/es/data/filing-year/filing-year-events/index.js +4 -0
  37. package/es/data/filing-year/filing-year-events/index.js.map +1 -0
  38. package/es/data/filing-year/filing-year-events/useAutoUpdateListData.d.ts +4 -0
  39. package/es/data/filing-year/filing-year-events/useAutoUpdateListData.js +15 -0
  40. package/es/data/filing-year/filing-year-events/useAutoUpdateListData.js.map +1 -0
  41. package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.d.ts +4 -0
  42. package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.js +16 -0
  43. package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.js.map +1 -0
  44. package/es/data/filing-year/filing-year-events/useOnNewFilingYear.d.ts +4 -0
  45. package/es/data/filing-year/filing-year-events/useOnNewFilingYear.js +17 -0
  46. package/es/data/filing-year/filing-year-events/useOnNewFilingYear.js.map +1 -0
  47. package/es/data/filing-year/hooks.d.ts +10 -0
  48. package/es/data/filing-year/hooks.js +19 -0
  49. package/es/data/filing-year/hooks.js.map +1 -0
  50. package/es/data/filing-year/index.d.ts +4 -0
  51. package/es/data/filing-year/index.js +5 -0
  52. package/es/data/filing-year/index.js.map +1 -0
  53. package/es/data/filing-year/interfaces.d.ts +6 -0
  54. package/es/data/filing-year/interfaces.js +2 -0
  55. package/es/data/filing-year/interfaces.js.map +1 -0
  56. package/es/data/filing-year/types.d.ts +22 -0
  57. package/es/data/filing-year/types.js +2 -0
  58. package/es/data/filing-year/types.js.map +1 -0
  59. package/es/modules/corporate/clda/components/CLDAListView/index.js +1 -1
  60. package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
  61. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +3 -3
  62. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
  63. package/es/modules/corporate/company/pages/CompanyPage/index.js +1 -1
  64. package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
  65. package/es/modules/corporate/filing-record/components/AnnualFilings/index.d.ts +0 -1
  66. package/es/modules/corporate/filing-record/components/AnnualFilings/index.js +38 -35
  67. package/es/modules/corporate/filing-record/components/AnnualFilings/index.js.map +1 -1
  68. package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +16 -8
  69. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.d.ts +1 -0
  70. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +13 -15
  71. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
  72. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.js +1 -1
  73. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.js.map +1 -1
  74. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.d.ts +6 -0
  75. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js +18 -0
  76. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js.map +1 -0
  77. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.less +12 -0
  78. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.d.ts +7 -0
  79. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js +36 -0
  80. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js.map +1 -0
  81. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.less +54 -0
  82. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.d.ts +10 -0
  83. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js +52 -0
  84. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js.map +1 -0
  85. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.less +21 -0
  86. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.d.ts +21 -0
  87. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +160 -0
  88. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -0
  89. package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.d.ts +6 -0
  90. package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js +16 -0
  91. package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js.map +1 -0
  92. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.d.ts +15 -0
  93. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js +29 -0
  94. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js.map +1 -0
  95. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.less +29 -0
  96. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.d.ts +6 -0
  97. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js +36 -0
  98. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js.map +1 -0
  99. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.less +13 -0
  100. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.d.ts +17 -0
  101. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js +112 -0
  102. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map +1 -0
  103. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.less +10 -0
  104. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.d.ts +18 -0
  105. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.js +38 -0
  106. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.js.map +1 -0
  107. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +10 -0
  108. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.js +11 -0
  109. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.js.map +1 -0
  110. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.d.ts +13 -0
  111. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js +45 -0
  112. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js.map +1 -0
  113. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.less +54 -0
  114. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.d.ts +3 -0
  115. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +31 -0
  116. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -0
  117. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.less +17 -0
  118. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.d.ts +6 -0
  119. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js +12 -0
  120. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js.map +1 -0
  121. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.less +12 -0
  122. package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.d.ts +21 -0
  123. package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js +29 -0
  124. package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js.map +1 -0
  125. package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.d.ts +6 -0
  126. package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.js +16 -0
  127. package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.js.map +1 -0
  128. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.d.ts +15 -0
  129. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.js +30 -0
  130. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.js.map +1 -0
  131. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.less +25 -0
  132. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.d.ts +6 -0
  133. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js +44 -0
  134. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js.map +1 -0
  135. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.less +13 -0
  136. package/es/modules/corporate/filing-record/{components → filing-year}/NewFilingYearDialog/index.d.ts +3 -2
  137. package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js +22 -0
  138. package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js.map +1 -0
  139. package/es/routes.d.ts +6 -0
  140. package/es/routes.js +14 -1
  141. package/es/routes.js.map +1 -1
  142. package/package.json +1 -1
  143. package/es/data/filingRecord/hooks.js.map +0 -1
  144. package/es/data/filingRecord/interfaces.js.map +0 -1
  145. package/es/data/filingRecord/store.js.map +0 -1
  146. package/es/modules/corporate/filing-record/components/NewFilingYearDialog/index.js +0 -29
  147. package/es/modules/corporate/filing-record/components/NewFilingYearDialog/index.js.map +0 -1
  148. /package/es/data/{filingRecord → filing-folder}/hooks.d.ts +0 -0
  149. /package/es/data/{filingRecord → filing-folder}/hooks.js +0 -0
  150. /package/es/data/{filingRecord → filing-folder}/interfaces.d.ts +0 -0
  151. /package/es/data/{filingRecord → filing-folder}/interfaces.js +0 -0
  152. /package/es/data/{filingRecord → filing-folder}/store.d.ts +0 -0
  153. /package/es/data/{filingRecord → filing-folder}/store.js +0 -0
  154. /package/es/data/{filingRecord → filing-folder}/types.d.ts +0 -0
  155. /package/es/data/{filingRecord → filing-folder}/types.js +0 -0
@@ -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
@@ -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,qDAAqD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,iBAAiB,GAAG,CAAC,KAS1B,EAAE,EAAE;IACJ,MAAM,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s-tabpane {
7
+ padding: 24px;
8
+ }
9
+ }
10
+ }
@@ -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
@@ -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
@@ -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;
@@ -0,0 +1,45 @@
1
+ import React, { useState } from "react";
2
+ import { Button, Dropdown, Modal, Menu } from "@voplus/antd";
3
+ import { useFilingTypeStore } from "../../../../../../data/filing-type";
4
+ import { faTrashAlt, faCircleEllipsis, faUserEdit, } from "@fortawesome/pro-light-svg-icons";
5
+ import { observe, useAsideContentContext } from "@voplus/morpho-ui";
6
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
+ import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
8
+ import classnames from "classnames";
9
+ import styles from "./index.less";
10
+ const FilingTypeMenu = (props) => {
11
+ const store = useFilingTypeStore();
12
+ const asideContext = useAsideContentContext();
13
+ const [visible, setVisible] = useState(false);
14
+ return observe(() => (React.createElement(React.Fragment, null,
15
+ React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement(Menu, { className: classnames(styles["filing-type-menu"], props.className) },
16
+ React.createElement(Menu.Item, { key: "Access", onClick: () => setVisible(!visible) },
17
+ React.createElement(FAIcon, { icon: faUserEdit }),
18
+ React.createElement("span", { className: "type-name" }, "Access")),
19
+ React.createElement(Menu.Item, { key: "Delete", onClick: onClick },
20
+ React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
21
+ React.createElement("span", { className: "type-name delete" }, "Delete"))) },
22
+ React.createElement(Button, { size: "small", type: "link" }, props.icon)),
23
+ visible && React.createElement(PermissionModal, { id: props.id || "", onChange: () => setVisible(!visible) }))));
24
+ function onClick() {
25
+ /** 如果文件下有子文件, 询问是否删除所有子文件 */
26
+ Modal.confirm({
27
+ title: "Do you want to delete this item?",
28
+ async onOk() {
29
+ await store.delete([props.id], {
30
+ data: { DeleteChilds: true },
31
+ error: "message",
32
+ });
33
+ /** 删除后是否关闭Aside */
34
+ if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
35
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
36
+ return;
37
+ },
38
+ });
39
+ }
40
+ };
41
+ FilingTypeMenu.defaultProps = {
42
+ icon: React.createElement(FAIcon, { icon: faCircleEllipsis }),
43
+ };
44
+ export default FilingTypeMenu;
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAW,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EACN,UAAU,EACV,gBAAgB,EAEhB,UAAU,GACV,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAKvB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;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AAC,EAAE,CAAC,EAAE;oBAC9B,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;oBAC5B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;gBACH,mBAAmB;gBACnB,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;oBAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;gBACjF,OAAO;YACR,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG;IAC7B,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,gBAAgB,GAAI;CACxC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,54 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .filing-type-menu {
4
+ border-radius: @border-radius;
5
+ padding: 4px 8px !important;
6
+
7
+ :global {
8
+ box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
9
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
10
+
11
+ .type-name {
12
+ margin-left: 10px;
13
+ display: inline-block;
14
+ }
15
+
16
+ .ant-dropdown-menu-item,
17
+ .ant-dropdown-menu-submenu-title {
18
+ margin: 4px 0;
19
+ }
20
+
21
+ .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,
22
+ .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon {
23
+ top: 3px;
24
+ }
25
+
26
+ .ant-dropdown-menu-item:hover,
27
+ .ant-dropdown-menu-submenu-title:hover {
28
+ border-radius: @border-radius;
29
+ background: @ant-menu-hover-color;
30
+ box-shadow: @hover-button-shadow;
31
+ }
32
+ }
33
+ }
34
+
35
+ .filing-type-sub-menu {
36
+ :global {
37
+ .type-name {
38
+ margin-left: 10px;
39
+ display: inline-block;
40
+ }
41
+
42
+ .ant-dropdown-menu-item,
43
+ .ant-dropdown-menu-submenu-title {
44
+ margin: 4px 0;
45
+ }
46
+
47
+ .ant-dropdown-menu-item:hover,
48
+ .ant-dropdown-menu-submenu-title:hover {
49
+ border-radius: @border-radius;
50
+ background: @ant-menu-hover-color;
51
+ box-shadow: @hover-button-shadow;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const FilingTypeDefaultView: () => JSX.Element;
3
+ export default FilingTypeDefaultView;
@@ -0,0 +1,31 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useFilingType } from "../../../../../../data/filing-type";
5
+ import { useRouteMatch } from "react-router";
6
+ import { runInAction } from "mobx";
7
+ import FilingTypeTabs from "../../components/FilingTypeTabs";
8
+ import FilingTypeProperties from "../../components/FilingTypeProperties";
9
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
10
+ import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
11
+ import styles from "./index.less";
12
+ const FilingTypeDefaultView = () => {
13
+ const match = useRouteMatch();
14
+ const id = match.params.id;
15
+ const store = new TabItemStore({ url: "" });
16
+ const filingType = useFilingType(id);
17
+ const [asideContext] = useState(AsideContent.createContext());
18
+ const tab = useTabItem();
19
+ useEffect(() => {
20
+ runInAction(() => (tab.title = filingType.name));
21
+ });
22
+ return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
23
+ React.createElement(MainContent, { className: styles["filing-type-default-view"] },
24
+ React.createElement(MainContent.Nav, { collapsible: true },
25
+ React.createElement(FilingTypeProperties, { id: id, headerVisible: true })),
26
+ React.createElement("div", { className: "filing-type-context" },
27
+ React.createElement(AsideContent, { context: asideContext },
28
+ React.createElement(FilingTypeTabs, { id: id })))))));
29
+ };
30
+ export default FilingTypeDefaultView;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAC3B,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC;YACzD,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,SAAG,CAC7B;YAClB,6BAAK,SAAS,EAAC,qBAAqB;gBACnC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,CACZ,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,17 @@
1
+ .filing-type-default-view {
2
+ :global {
3
+ .main-content-nav {
4
+ width: 370px;
5
+ padding: 0;
6
+ }
7
+
8
+ .filing-type-context {
9
+ padding: 0;
10
+ background: #ffffff;
11
+
12
+ .ant-tabs-nav {
13
+ margin: 0 !important;
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const FilingYearHeader: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default FilingYearHeader;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { useFilingYear } from "../../../../../data/filing-year";
4
+ import moment from "moment";
5
+ import "./index.less";
6
+ const FilingYearHeader = (props) => {
7
+ const filingYear = useFilingYear(props.id);
8
+ return observe(() => (React.createElement("div", { className: "filing-year-header" },
9
+ React.createElement("div", null, `Filing Year ${moment(filingYear.fYE).format("YYYY-MM-DD")}`))));
10
+ };
11
+ export default FilingYearHeader;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/filing-year/FilingYearHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,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,KAAqB,EAAE,EAAE;IAClD,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,oBAAoB;QAClC,iCAAM,eAAe,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAO,CAGpE,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,12 @@
1
+ :global {
2
+ .filing-year-header {
3
+ font-size: 24px;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ padding: 10px 20px;
7
+
8
+ .tools-bar {
9
+ text-align: right;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ declare type FilingYearPropertiesName = "FYE";
3
+ declare const FilingYearProperties: {
4
+ (props: {
5
+ id: string;
6
+ headerVisible?: boolean;
7
+ filingYearTitle?: string;
8
+ orgContactTitle?: string;
9
+ filingYearProperties?: {
10
+ name: FilingYearPropertiesName;
11
+ visible?: boolean;
12
+ }[];
13
+ }): JSX.Element;
14
+ defaultProps: {
15
+ filingYearTitle: string;
16
+ filingYearProperties: {
17
+ name: string;
18
+ }[];
19
+ };
20
+ };
21
+ export default FilingYearProperties;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { Form, Skeleton } from "@voplus/antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useFilingYear, useFilingYearStore } from "../../../../../data/filing-year";
5
+ import { Scrollbars } from "react-custom-scrollbars";
6
+ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
7
+ import moment from "moment";
8
+ const FilingYearProperties = (props) => {
9
+ const { id, headerVisible, filingYearTitle, filingYearProperties } = props;
10
+ const filingYear = useFilingYear(props.id);
11
+ const store = useFilingYearStore();
12
+ const filterPro = filingYearProperties === null || filingYearProperties === void 0 ? void 0 : filingYearProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
13
+ return observe(() => filingYear.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement("div", { className: "properties-list" },
14
+ React.createElement(Scrollbars, { autoHide: true },
15
+ React.createElement(PropertiesSection, { title: filingYearTitle, 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))))) })))));
16
+ function renderProp(item) {
17
+ switch (item.name) {
18
+ case "FYE":
19
+ return (React.createElement(Form.Item, { label: "FYE" },
20
+ React.createElement("span", null, moment(filingYear === null || filingYear === void 0 ? void 0 : filingYear.fYE).format("YYYY-MM-DD"))));
21
+ }
22
+ }
23
+ };
24
+ FilingYearProperties.defaultProps = {
25
+ filingYearTitle: "FilingYear Properties",
26
+ filingYearProperties: [{ name: "FYE" }],
27
+ };
28
+ export default FilingYearProperties;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/filing-year/FilingYearProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,O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D,CAAC;IAEF,SAAS,UAAU,CAAC,IAA2D;QAC9E,QAAQ,IAAI,CAAC,IAAI,EAAE;YAClB,KAAK,KAAK;gBACT,OAAO,CACN,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,KAAK;oBACrB,kCAAO,MAAM,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAQ,CAChD,CACZ,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,eAAe,EAAE,uBAAuB;IACxC,oBAAoB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ /** FilingYear PropertiesView */
3
+ declare const FilingYearPropertiesView: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default FilingYearPropertiesView;
@@ -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 FilingYearProperties from "../FilingYearProperties";
5
+ import FilingYearHeader from "../FilingYearHeader";
6
+ import FilingYearTabs from "../FilingYearTabs";
7
+ /** FilingYear PropertiesView */
8
+ const FilingYearPropertiesView = (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(FilingYearHeader, { id: props.id }),
13
+ React.createElement(FilingYearTabs, { id: props.id, properties: React.createElement(FilingYearProperties, { id: props.id }) })))));
14
+ };
15
+ export default FilingYearPropertiesView;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/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,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,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,gBAAgB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAClC,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,GAAI,CAC/E,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const FilingYearQuickViewDialog: {
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 FilingYearQuickViewDialog;
@@ -0,0 +1,30 @@
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 FilingYearHeader from "../FilingYearHeader";
6
+ import FilingYearProperties from "../FilingYearProperties";
7
+ import FlexDialog from "@voplus/morpho-document/es/components/FlexDialog";
8
+ import "./index.less";
9
+ const FilingYearQuickViewDialog = (props) => {
10
+ const { id } = props;
11
+ return observe(() => (React.createElement(FlexDialog, { modalProps: {
12
+ className: "quickView-modal-style",
13
+ width: "500px",
14
+ destroyOnClose: true,
15
+ closable: false,
16
+ footer: false,
17
+ visible: props.visible,
18
+ onCancel: props.onCancel,
19
+ }, closeAside: props.onCancel },
20
+ React.createElement("div", { className: "quickView-content" },
21
+ props.closeVisible && (React.createElement("div", { className: "filing-year-close-icon" },
22
+ React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel }))),
23
+ React.createElement(FilingYearHeader, { id: id }),
24
+ React.createElement(FilingYearProperties, { id: id })))));
25
+ };
26
+ FilingYearQuickViewDialog.defaultProps = {
27
+ closeVisible: true,
28
+ };
29
+ export default FilingYearQuickViewDialog;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/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,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAMlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,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,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI;YAC5B,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI,CAC3B,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,yBAAyB,CAAC,YAAY,GAAG;IACxC,YAAY,EAAE,IAAI;CAClB,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,25 @@
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-year-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-year-header {
21
+ padding: 10px 44px 10px 20px;
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ declare const FilingYearTabs: (props: {
3
+ id: string;
4
+ properties?: ReactNode;
5
+ }) => JSX.Element;
6
+ export default FilingYearTabs;