@voplus/morpho-csp 1.2.96 → 1.2.99
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/corporate/clda/components/CLDAPropertiesView/index.js +29 -4
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js +122 -72
- package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDASettingsPage/index.js +15 -15
- package/es/modules/corporate/clda/pages/CLDASettingsPage/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDASettingsPage/index.less +11 -18
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.d.ts +0 -1
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js +6 -7
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.less +11 -10
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
2
|
import { Skeleton } from "@voplus/antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useCLDA } from "../../../../../data/CLDA";
|
|
5
5
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
6
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
6
|
+
import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
7
7
|
import RelatedWorkList from "@voplus/morpho-workspace/es/modules/work/components/RelatedWorkList";
|
|
8
8
|
import CLDAProperties from "../CLDAProperties";
|
|
9
9
|
import CLDAMenu from "../../controls/CLDAMenu";
|
|
@@ -11,14 +11,18 @@ import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEd
|
|
|
11
11
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
12
12
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
13
13
|
import Toolbar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
14
|
+
import SubTaskList from "@voplus/morpho-workspace/es/modules/tasks/components/SubTaskList";
|
|
15
|
+
import TasksTotal from "@voplus/morpho-workspace/es/modules/tasks/controls/TasksTotal";
|
|
14
16
|
import "./index.less";
|
|
15
17
|
const CLDAPropertiesView = (props) => {
|
|
16
18
|
const { id } = props;
|
|
19
|
+
const [loaded, setLoaded] = useState(true);
|
|
17
20
|
const CLDA = useCLDA(id, { reload: true });
|
|
18
21
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
19
|
-
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
22
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view }, loaded && (React.createElement(React.Fragment, null,
|
|
20
23
|
React.createElement("div", { className: "CLDA-properties-view" },
|
|
21
24
|
React.createElement(DocumentHeader, { id: id, size: "h2", quickDataBarAlign: "left", flagVisible: false, preVisible: false, tools: React.createElement(Toolbar, { moreProps: { id: props.id, menus: { default: React.createElement(CLDAMenu, { id: props.id }) } } },
|
|
25
|
+
React.createElement(Reload, { action: onReload }),
|
|
22
26
|
React.createElement(Open, { url: `/clda/incorporation/${id}` })) }),
|
|
23
27
|
CLDA.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
24
28
|
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: CLDA.description, readonly: CLDA.readonly, padding: "0 0 0.75rem 0" })),
|
|
@@ -28,12 +32,33 @@ const CLDAPropertiesView = (props) => {
|
|
|
28
32
|
title: "Properties",
|
|
29
33
|
content: React.createElement(CLDAProperties, { id: id, labelCol: 8, wrapperCol: 20 }),
|
|
30
34
|
},
|
|
35
|
+
{
|
|
36
|
+
key: "Tasks",
|
|
37
|
+
title: React.createElement(TasksTotal, { id: id }),
|
|
38
|
+
content: (React.createElement(SubTaskList, { parentId: id, viewTitle: " ", total: false, filters: [
|
|
39
|
+
{
|
|
40
|
+
c: "TaskStatus",
|
|
41
|
+
o: "contains",
|
|
42
|
+
l: "And",
|
|
43
|
+
v1: JSON.stringify(["NotStarted", "Progress", "Done"]),
|
|
44
|
+
},
|
|
45
|
+
] })),
|
|
46
|
+
},
|
|
31
47
|
{
|
|
32
48
|
key: "RelatedWorks",
|
|
33
49
|
title: "Related Works",
|
|
34
50
|
content: React.createElement(RelatedWorkList, { id: id, viewTypes: "QuickView" }),
|
|
35
51
|
},
|
|
36
|
-
]
|
|
52
|
+
], docTabOptions: {
|
|
53
|
+
exclude: ["Task"],
|
|
54
|
+
} })))))));
|
|
55
|
+
/** reload data */
|
|
56
|
+
function onReload() {
|
|
57
|
+
setLoaded(false);
|
|
58
|
+
setTimeout(() => {
|
|
59
|
+
setLoaded(true);
|
|
60
|
+
}, 100);
|
|
61
|
+
}
|
|
37
62
|
};
|
|
38
63
|
export default CLDAPropertiesView;
|
|
39
64
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,C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CAAC;iCACtD;6BACD,GACA,CACF;qBACD;oBACD;wBACC,GAAG,EAAE,cAAc;wBACnB,KAAK,EAAE,eAAe;wBACtB,OAAO,EAAE,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,WAAW,GAAG;qBAC1D;iBACD,EACD,aAAa,EAAE;oBACd,OAAO,EAAE,CAAC,MAAM,CAAC;iBACjB,GACA,CACG,CACU,CACjB,CACqB,CACvB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,86 +1,136 @@
|
|
|
1
|
-
import { Checkbox, Divider } from "@voplus/antd";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { Switch } from "@voplus/antd";
|
|
3
3
|
import { useCLDASetting, useCLDASettingStore } from "../../../../../data/clda-setting";
|
|
4
4
|
import { useQuotationStore } from "@voplus/morpho-finance/es/data/quotation";
|
|
5
5
|
import { Delete } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
6
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
7
|
-
import ReferenceList from "@voplus/morpho-document/es/controls/ReferenceList";
|
|
8
6
|
import { Scrollbars } from "react-custom-scrollbars";
|
|
9
7
|
import { observe } from "@voplus/morpho-ui";
|
|
8
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
9
|
+
import ReferenceList from "@voplus/morpho-document/es/controls/ReferenceList";
|
|
10
10
|
const Content = (props) => {
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
11
12
|
const { id } = props;
|
|
12
13
|
const store = useCLDASettingStore();
|
|
13
14
|
const quotationStore = useQuotationStore();
|
|
14
15
|
const cldaSetting = useCLDASetting(id);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
React.createElement(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
React.createElement("div", { className: "
|
|
72
|
-
React.createElement(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
React.createElement("div", { className: "
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
16
|
+
const descriptionArr = [
|
|
17
|
+
{
|
|
18
|
+
title: "Default Email Content",
|
|
19
|
+
descript: (React.createElement(DescriptionEditor, { id: id, description: (_a = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
20
|
+
data: { ClientTexts: { EmailContent: description || "" } },
|
|
21
|
+
error: "message",
|
|
22
|
+
}) })),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: "Description",
|
|
26
|
+
descript: (React.createElement(DescriptionEditor, { id: id, description: (_b = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _b === void 0 ? void 0 : _b.description, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
27
|
+
data: { ClientTexts: { Description: description || "" } },
|
|
28
|
+
error: "message",
|
|
29
|
+
}) })),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "Upload Description",
|
|
33
|
+
descript: (React.createElement(DescriptionEditor, { id: id, description: (_c = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _c === void 0 ? void 0 : _c.uploadDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
34
|
+
data: { ClientTexts: { UploadDescription: description || "" } },
|
|
35
|
+
error: "message",
|
|
36
|
+
}) })),
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: "Form Title",
|
|
40
|
+
descript: (React.createElement(DescriptionEditor, { id: id, description: (_d = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _d === void 0 ? void 0 : _d.formTitle, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
41
|
+
data: { ClientTexts: { FormTitle: description || "" } },
|
|
42
|
+
error: "message",
|
|
43
|
+
}) })),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: "Form Description",
|
|
47
|
+
descript: (React.createElement(DescriptionEditor, { id: id, description: (_e = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _e === void 0 ? void 0 : _e.formDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
48
|
+
data: { ClientTexts: { FormDescription: description || "" } },
|
|
49
|
+
error: "message",
|
|
50
|
+
}) })),
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: "Quotation Title",
|
|
54
|
+
descript: (React.createElement(DescriptionEditor, { id: id, description: (_f = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _f === void 0 ? void 0 : _f.quotationTitle, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
55
|
+
data: { ClientTexts: { QuotationTitle: description || "" } },
|
|
56
|
+
error: "message",
|
|
57
|
+
}) })),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: "Quotation Description",
|
|
61
|
+
descript: (React.createElement(DescriptionEditor, { id: id, description: (_g = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _g === void 0 ? void 0 : _g.quotationDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
62
|
+
data: {
|
|
63
|
+
ClientTexts: { QuotationDescription: description || "" },
|
|
64
|
+
},
|
|
65
|
+
error: "message",
|
|
66
|
+
}) })),
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
return observe(() => (React.createElement(Scrollbars, { autoHide: true },
|
|
70
|
+
React.createElement("div", { className: "clda-settings-content" },
|
|
71
|
+
React.createElement("header", { className: "settings-header" },
|
|
72
|
+
React.createElement("div", { className: "text-3xl font-semibold text-gray-900" }, cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.jurisdiction),
|
|
73
|
+
React.createElement(Delete, { action: onDelete })),
|
|
74
|
+
React.createElement("div", { className: "mt-10 divide-y divide-gray-200" },
|
|
75
|
+
React.createElement("div", { className: "space-y-1" },
|
|
76
|
+
React.createElement("h3", { className: "text-lg leading-6 font-medium text-gray-900" }, "General")),
|
|
77
|
+
React.createElement("div", { className: "mt-6" },
|
|
78
|
+
React.createElement("dl", { className: "divide-y divide-gray-200" },
|
|
79
|
+
React.createElement("div", { className: "py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4" },
|
|
80
|
+
React.createElement("dt", { className: "text-sm font-medium text-gray-500" }, "Quotation"),
|
|
81
|
+
React.createElement("dd", { className: "mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-2" },
|
|
82
|
+
React.createElement("span", { className: "flex-grow" },
|
|
83
|
+
React.createElement(ReferenceList, { loader: () => quotationStore.loadList({
|
|
84
|
+
Filters: [{ c: "Template", o: "=", l: "And", v1: "True" }],
|
|
85
|
+
}), document: (cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.quotation) ? [cldaSetting.quotation] : [], canEdit: true, multiple: false, placeholder: "Select Quotation", onChange: onEditQuotation })))),
|
|
86
|
+
React.createElement("div", { className: "py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4" },
|
|
87
|
+
React.createElement("dt", { className: "text-sm font-medium text-gray-500" }, "Default Quotation"),
|
|
88
|
+
React.createElement("dd", { className: "mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-2" },
|
|
89
|
+
React.createElement(Switch, { onChange: onChange }))),
|
|
90
|
+
React.createElement("div", { className: "py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:pt-5" },
|
|
91
|
+
React.createElement("dt", { className: "text-sm font-medium text-gray-500" }, "Upload Folder"),
|
|
92
|
+
React.createElement("dd", { className: "mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-2" },
|
|
93
|
+
React.createElement(Switch, { checked: cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.uploadFolder, onChange: (checked) => store.edit(id, {
|
|
94
|
+
data: { UploadFolder: checked },
|
|
95
|
+
error: "message",
|
|
96
|
+
}) })))))),
|
|
97
|
+
React.createElement("div", { className: "mt-10 divide-y divide-gray-200" },
|
|
98
|
+
React.createElement("div", { className: "space-y-1" },
|
|
99
|
+
React.createElement("h3", { className: "text-lg leading-6 font-medium text-gray-900" }, "Legal Templates")),
|
|
100
|
+
React.createElement("div", { className: "mt-6" },
|
|
101
|
+
React.createElement("dl", { className: "divide-y divide-gray-200" }, (cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.templates) &&
|
|
102
|
+
cldaSetting.templates.map((item, index) => (React.createElement("div", { className: "py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4", key: item.id },
|
|
103
|
+
React.createElement("dt", { className: "text-sm font-medium text-gray-500" },
|
|
104
|
+
index + 1,
|
|
105
|
+
". ",
|
|
106
|
+
item.templateKey),
|
|
107
|
+
React.createElement("dd", { className: "sm:mt-0 sm:col-span-2" },
|
|
108
|
+
React.createElement(ReferenceList, { document: item.template ? [item.template] : [], canEdit: true, multiple: false, placeholder: `Select a ${item.templateKey} Templates`, onChange: (list) => {
|
|
109
|
+
store.edit(id, {
|
|
110
|
+
data: {
|
|
111
|
+
Templates: [{ Id: item.id, TemplateId: list[0].id }],
|
|
112
|
+
},
|
|
113
|
+
error: "message",
|
|
114
|
+
});
|
|
115
|
+
} })))))))),
|
|
116
|
+
React.createElement("div", { className: "mt-10 divide-y divide-gray-200" },
|
|
117
|
+
React.createElement("div", { className: "space-y-1" },
|
|
118
|
+
React.createElement("h3", { className: "text-lg leading-6 font-medium text-gray-900" }, "AddItional Forms")),
|
|
119
|
+
React.createElement("div", { className: "mt-6" },
|
|
120
|
+
React.createElement("dl", { className: "divide-y divide-gray-200" },
|
|
121
|
+
React.createElement("div", { className: "py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4" },
|
|
122
|
+
React.createElement("dt", { className: "text-sm font-medium text-gray-500" }, "Forms"),
|
|
123
|
+
React.createElement("dd", { className: "mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-2" },
|
|
124
|
+
React.createElement(ReferenceList, { document: [], canEdit: true, placeholder: "Select AddItional Forms" })))))),
|
|
125
|
+
descriptionArr.map((item, index) => (React.createElement("div", { className: "mt-10 divide-y divide-gray-200", key: index },
|
|
126
|
+
React.createElement("div", { className: "space-y-1" },
|
|
127
|
+
React.createElement("h3", { className: "text-lg leading-6 font-medium text-gray-900" }, item.title)),
|
|
128
|
+
React.createElement("div", { className: "mt-6" },
|
|
129
|
+
React.createElement("dl", { className: "divide-y divide-gray-200" },
|
|
130
|
+
React.createElement("div", { className: "py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4" },
|
|
131
|
+
React.createElement("dd", { className: "mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-3" }, item.descript)))))))))));
|
|
132
|
+
function onChange(checked) {
|
|
133
|
+
console.log(`checked = ${checked}`);
|
|
84
134
|
}
|
|
85
135
|
function onDelete() {
|
|
86
136
|
store.delete(id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDASettingsPage/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDASettingsPage/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAE9E,MAAM,OAAO,GAAG,CAAC,KAAqB,EAAE,EAAE;;IACzC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,WAAW,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;IAEvC,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Ac,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACpC,6BAAK,SAAS,EAAC,gCAAgC,EAAC,GAAG,EAAE,KAAK;gBACzD,6BAAK,SAAS,EAAC,WAAW;oBACzB,4BAAI,SAAS,EAAC,6CAA6C,IAAE,IAAI,CAAC,KAAK,CAAM,CACxE;gBACN,6BAAK,SAAS,EAAC,MAAM;oBACpB,4BAAI,SAAS,EAAC,0BAA0B;wBACvC,6BAAK,SAAS,EAAC,8CAA8C;4BAC5D,4BAAI,SAAS,EAAC,uDAAuD,IACnE,IAAI,CAAC,QAAQ,CACV,CACA,CACF,CACA,CACD,CACN,CAAC,CACG,CACM,CACb,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,OAAgB;QACjC,OAAO,CAAC,GAAG,CAAC,aAAa,OAAO,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAED,SAAS,eAAe,CAAC,IAAoC;QAC5D,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACzE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { useCLDASettingListEffect, useCLDASettingStore, } from "../../../../../data/clda-setting";
|
|
2
1
|
import React, { useState } from "react";
|
|
2
|
+
import { useCLDASettingListEffect, useCLDASettingStore, } from "../../../../../data/clda-setting";
|
|
3
3
|
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
|
4
|
-
import AddProfileDialog from "../../components/AddProfileDialog";
|
|
5
|
-
import Content from "./Content";
|
|
6
|
-
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
7
4
|
import { Menu } from "@voplus/antd";
|
|
8
|
-
import Scrollbars from "react-custom-scrollbars";
|
|
9
5
|
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import styles from "./index.less";
|
|
11
6
|
import { useAutoUpdateListData } from "../../../../../data/clda-setting/clda-setting-events";
|
|
12
7
|
import { useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
13
8
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
9
|
+
import { faEarth, faPlus } from "@fortawesome/pro-light-svg-icons";
|
|
10
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
11
|
+
import AddProfileDialog from "../../components/AddProfileDialog";
|
|
12
|
+
import Content from "./Content";
|
|
13
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
14
|
+
import styles from "./index.less";
|
|
14
15
|
const CLDASettingsPage = (props) => {
|
|
15
16
|
const { metaId, secretaryCenterId } = props;
|
|
16
17
|
const store = new TabItemStore({ url: "" });
|
|
18
|
+
const cldaStore = useCLDASettingStore();
|
|
17
19
|
const [visible, setVisible] = useState(false);
|
|
18
20
|
const [menuKey, setMenuKey] = useState();
|
|
19
|
-
const cldaStore = useCLDASettingStore();
|
|
20
21
|
const list = useCreateListDataState({
|
|
21
22
|
filterDefaults: {
|
|
22
23
|
filters: [
|
|
@@ -36,14 +37,13 @@ const CLDASettingsPage = (props) => {
|
|
|
36
37
|
var _a, _b;
|
|
37
38
|
return (React.createElement(TabItemContext.Provider, { value: store },
|
|
38
39
|
React.createElement(MainContent, { className: styles["clda-settings-page"] },
|
|
39
|
-
React.createElement(
|
|
40
|
-
React.createElement(
|
|
41
|
-
React.createElement(Menu, {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
React.createElement(
|
|
46
|
-
React.createElement(Content, { id: menuKey === null || menuKey === void 0 ? void 0 : menuKey[0] })))));
|
|
40
|
+
React.createElement("div", null,
|
|
41
|
+
React.createElement(Menu, { mode: "horizontal", defaultSelectedKeys: [(_a = list.data[0]) === null || _a === void 0 ? void 0 : _a.id], selectedKeys: menuKey, defaultOpenKeys: [(_b = list.data[0]) === null || _b === void 0 ? void 0 : _b.id], onClick: (key) => onClick(key.key) },
|
|
42
|
+
list.data.map((item) => (React.createElement(Menu.Item, { key: item.id, icon: React.createElement(FAIcon, { icon: faEarth }) }, item.jurisdiction))),
|
|
43
|
+
React.createElement(Menu.Item, { key: "addProfile", icon: React.createElement(FAIcon, { icon: faPlus }) }, "Add Profile")),
|
|
44
|
+
React.createElement("div", { className: "clda-settings" },
|
|
45
|
+
React.createElement(Content, { id: menuKey === null || menuKey === void 0 ? void 0 : menuKey[0] }))),
|
|
46
|
+
React.createElement(React.Fragment, null, visible && (React.createElement(AddProfileDialog, { visible: true, onCancel: () => setVisible(false), onAdd: onAdd }))))));
|
|
47
47
|
});
|
|
48
48
|
function onClick(key) {
|
|
49
49
|
if (key === "addProfile") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDASettingsPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDASettingsPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;A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O,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAE,GAAI,CACzB,CACD;gBACN,oBAAC,KAAK,CAAC,QAAQ,QACb,OAAO,IAAI,CACX,oBAAC,gBAAgB,IAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,GAAI,CACpF,CACe,CACJ,CACW,CAC1B,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,OAAO,CAAC,GAAW;QAC3B,IAAI,GAAG,KAAK,YAAY,EAAE;YACzB,UAAU,CAAC,IAAI,CAAC,CAAC;SACjB;;YAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED,SAAS,KAAK,CAAC,OAAe,EAAE,GAAW;QAC1C,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,SAAS,CAAC,MAAM,CAAC;YAChB,IAAI,EAAE;gBACL,MAAM,EAAE,MAAM;gBACd,iBAAiB,EAAE,iBAAiB;gBACpC,YAAY,EAAE,OAAO;gBACrB,GAAG,EAAE,GAAG;aACR;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
.clda-settings-page {
|
|
4
4
|
height: 100%;
|
|
5
|
+
background: #fff;
|
|
5
6
|
|
|
6
7
|
:global {
|
|
7
8
|
.clda-settings {
|
|
8
9
|
padding: 24px 0 24px 24px;
|
|
9
|
-
height: 100
|
|
10
|
+
height: calc(100% - 46px);
|
|
10
11
|
|
|
11
12
|
.clda-settings-content {
|
|
12
13
|
padding-right: 24px;
|
|
@@ -17,36 +18,28 @@
|
|
|
17
18
|
align-items: center;
|
|
18
19
|
padding: 10px 0;
|
|
19
20
|
|
|
20
|
-
.title {
|
|
21
|
-
color: #000;
|
|
22
|
-
font-size: 20px;
|
|
23
|
-
font-weight: 500;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
21
|
.delete-btn {
|
|
27
22
|
color: @delete-color;
|
|
28
23
|
}
|
|
29
24
|
}
|
|
30
25
|
|
|
31
|
-
.sub-title {
|
|
32
|
-
color: #000;
|
|
33
|
-
font-size: 18px;
|
|
34
|
-
padding: 6px 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
26
|
.reference-list {
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 1.33333333em;
|
|
29
|
+
|
|
30
|
+
.prosemirror-mention-node___I51We {
|
|
31
|
+
margin-bottom: 0 !important;
|
|
40
32
|
}
|
|
41
33
|
}
|
|
42
34
|
|
|
43
|
-
.
|
|
44
|
-
|
|
35
|
+
.description-editor {
|
|
36
|
+
width: 100%;
|
|
45
37
|
}
|
|
46
38
|
|
|
47
39
|
.description-editor-proseMirror {
|
|
48
40
|
height: 10rem !important;
|
|
49
41
|
padding: 0;
|
|
42
|
+
|
|
50
43
|
.ProseMirror {
|
|
51
44
|
background: #fff;
|
|
52
45
|
}
|
|
@@ -64,4 +57,4 @@
|
|
|
64
57
|
}
|
|
65
58
|
}
|
|
66
59
|
}
|
|
67
|
-
}
|
|
60
|
+
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import CLDAProperties from "../../../../corporate/clda/components/CLDAProperties";
|
|
3
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
4
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
5
1
|
import React from "react";
|
|
6
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
7
2
|
import { observe } from "@voplus/morpho-ui";
|
|
8
3
|
import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
|
|
4
|
+
import CLDAProperties from "../../../../corporate/clda/components/CLDAProperties";
|
|
5
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
6
|
+
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
|
7
|
+
import styles from "./index.less";
|
|
9
8
|
const IncorporationCLDAProperties = (props) => {
|
|
10
9
|
const { id } = props;
|
|
11
10
|
const incorporation = useIncorporationCLDA(id, { reload: true, includes: "tags" });
|
|
12
|
-
return observe(() => (React.createElement("div", { className: "incorporation-properties" },
|
|
13
|
-
React.createElement(
|
|
11
|
+
return observe(() => (React.createElement("div", { className: styles["incorporation-properties"] },
|
|
12
|
+
React.createElement(DocumentPanelHeader, { id: id }),
|
|
14
13
|
React.createElement(DescriptionEditor, { id: id, description: incorporation.description, readonly: incorporation.readonly }),
|
|
15
14
|
React.createElement(CLDAProperties, { id: id }))));
|
|
16
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,2BAA2B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,aAAa,GAAG,oBAAoB,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC;QACjD,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI;QAC/B,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,aAAa,CAAC,WAAW,EACtC,QAAQ,EAAE,aAAa,CAAC,QAAQ,GAC/B;QACF,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,CACrB,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
.incorporation-properties {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
:global {
|
|
7
|
+
.document-panel-header___u2xBx {
|
|
8
|
+
.tag-view {
|
|
9
|
+
padding: 0 20px;
|
|
10
|
+
}
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
}
|
|
13
|
+
}
|