@voplus/morpho-csp 1.2.78 → 1.2.80
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/CLDAListView/index.d.ts +2 -0
- package/es/modules/corporate/clda/components/CLDAListView/index.js +36 -17
- package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAListView/state.d.ts +2 -1
- package/es/modules/corporate/clda/components/CLDAListView/state.js +19 -6
- package/es/modules/corporate/clda/components/CLDAListView/state.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAProperties/index.d.ts +1 -1
- package/es/modules/corporate/clda/components/CLDAProperties/index.js +19 -7
- package/es/modules/corporate/clda/components/CLDAProperties/index.js.map +1 -1
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/index.d.ts +3 -1
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/index.js +12 -4
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/index.js.map +1 -1
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/state.d.ts +2 -0
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/state.js +15 -2
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/clda/controls/filters/CLDATypesFilter/index.d.ts +6 -0
- package/es/modules/corporate/clda/controls/filters/CLDATypesFilter/index.js +22 -0
- package/es/modules/corporate/clda/controls/filters/CLDATypesFilter/index.js.map +1 -0
- package/es/modules/corporate/clda/controls/filters/CLDATypesFilter/state.d.ts +14 -0
- package/es/modules/corporate/clda/controls/filters/CLDATypesFilter/state.js +65 -0
- package/es/modules/corporate/clda/controls/filters/CLDATypesFilter/state.js.map +1 -0
- package/es/modules/corporate/clda/controls/filters/index.d.ts +1 -0
- package/es/modules/corporate/clda/controls/filters/index.js +1 -0
- package/es/modules/corporate/clda/controls/filters/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/ChangeAddress2021/index.js +1 -1
- package/es/modules/corporate/clda/pages/ChangeAddress2021/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.d.ts +6 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js +25 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js.map +1 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.d.ts +3 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js +162 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js.map +1 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.less +92 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/state.d.ts +48 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/state.js +266 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/NewDirectorDialog/index.js +4 -4
- package/es/modules/self-registration/incorporation-form/components/NewDirectorDialog/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/NewShareholderDialog/index.js +2 -2
- package/es/modules/self-registration/incorporation-form/components/NewShareholderDialog/index.js.map +1 -1
- package/es/routes.d.ts +6 -0
- package/es/routes.js +13 -0
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { generatePath, useRouteMatch } from "react-router";
|
|
2
|
+
import CLDAListView from "../../components/CLDAListView";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { runInAction } from "mobx";
|
|
6
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
7
|
+
const CLDAListViewPage = (props) => {
|
|
8
|
+
const match = useRouteMatch();
|
|
9
|
+
const layout = useLayout();
|
|
10
|
+
return observe(() => (React.createElement(CLDAListView, { parentId: match.params.id, metaId: match.params.metaId, secretaryCenterId: match.params.id, assistantStatus: match.params.status, active: match.params.active, onClickItem: (item) => {
|
|
11
|
+
runInAction(() => layout.history.push(generatePath(match.path, {
|
|
12
|
+
id: match.params.id,
|
|
13
|
+
status: match.params.status,
|
|
14
|
+
metaId: match.params.metaId,
|
|
15
|
+
active: item.id,
|
|
16
|
+
})));
|
|
17
|
+
}, onTotal: (total) => {
|
|
18
|
+
runInAction(() => {
|
|
19
|
+
props.state.cldaStatusTotals[match.params.status] = total;
|
|
20
|
+
props.state.cldaTypesTotals[match.params.metaId] = total;
|
|
21
|
+
});
|
|
22
|
+
} })));
|
|
23
|
+
};
|
|
24
|
+
export default CLDAListViewPage;
|
|
25
|
+
//# sourceMappingURL=CLDAListPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CLDAListPage.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,gBAAgB,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,MAAM,KAAK,GAAG,aAAa,EAKvB,CAAC;IACL,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,YAAY,IACX,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAClC,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EACpC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACpB,WAAW,CAAC,GAAG,EAAE,CACf,MAAM,CAAC,OAAO,CAAC,IAAI,CACjB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE;gBACvB,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;gBACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;gBAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;gBAC3B,MAAM,EAAE,IAAI,CAAC,EAAE;aAChB,CAAC,CACH,CACF,CAAC;QACJ,CAAC,EACD,OAAO,EAAE,CAAC,KAAa,EAAE,EAAE;YACzB,WAAW,CAAC,GAAG,EAAE;gBACf,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;gBAC1D,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;YAC3D,CAAC,CAAC,CAAC;QACL,CAAC,GACD,CACH,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Redirect, Route, Switch, useRouteMatch } from "react-router";
|
|
3
|
+
import { faBuildings, faFileLines, faGear, faCalendarCheck, faAlignLeft, faMoneyCheckDollarPen, } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import { Badge, Menu } from "@voplus/antd";
|
|
6
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
7
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
8
|
+
import { useCLDAListEffect } from "../../../../../data/CLDA";
|
|
9
|
+
import { useCLDAMetaListEffect } from "../../../../../data/clda-meta";
|
|
10
|
+
import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
11
|
+
import { runInAction } from "mobx";
|
|
12
|
+
import { State } from "./state";
|
|
13
|
+
import CLDAListPage from "./CLDAListPage";
|
|
14
|
+
import CLDAListView from "../../components/CLDAListView";
|
|
15
|
+
import SubMenu from "@voplus/antd/es/menu/SubMenu";
|
|
16
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
17
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
18
|
+
import classnames from "classnames";
|
|
19
|
+
import styles from "./index.less";
|
|
20
|
+
const SecretaryCenterPage = () => {
|
|
21
|
+
const match = useRouteMatch();
|
|
22
|
+
const id = match.params.id;
|
|
23
|
+
const layout = useLayout();
|
|
24
|
+
const [state] = useState(new State(id, layout, match.url));
|
|
25
|
+
const [timer, setTimer] = useState();
|
|
26
|
+
useCLDAMetaListEffect(null, (result) => runInAction(() => {
|
|
27
|
+
state.CLDAMetaList = result;
|
|
28
|
+
return result === null || result === void 0 ? void 0 : result.map((item, index) => {
|
|
29
|
+
if (timer)
|
|
30
|
+
clearTimeout(timer);
|
|
31
|
+
setTimer(setTimeout(() => {
|
|
32
|
+
state.updateFilter(item);
|
|
33
|
+
setTimer(undefined);
|
|
34
|
+
}, 500));
|
|
35
|
+
});
|
|
36
|
+
}), {
|
|
37
|
+
Filters: [
|
|
38
|
+
{ c: "Meta", o: "=", l: "And", v1: state.metaId },
|
|
39
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: id },
|
|
40
|
+
],
|
|
41
|
+
});
|
|
42
|
+
const list = useCreateListDataState({
|
|
43
|
+
filterDefaults: {
|
|
44
|
+
filters: state.filters,
|
|
45
|
+
},
|
|
46
|
+
}, [state.metaId]);
|
|
47
|
+
useCLDAListEffect(null, state.effect, {
|
|
48
|
+
Total: true,
|
|
49
|
+
List: false,
|
|
50
|
+
...list.filters.options,
|
|
51
|
+
});
|
|
52
|
+
useRenderOnChange(() => [list.filters.options, state.metaId]);
|
|
53
|
+
useCLDAListEffect(null, (result, total) => {
|
|
54
|
+
runInAction(() => (state.cldaStatusTotals.Notified = total || 0));
|
|
55
|
+
}, state.nNotified);
|
|
56
|
+
useCLDAListEffect(null, (result, total) => {
|
|
57
|
+
runInAction(() => (state.cldaStatusTotals.Opened = total || 0));
|
|
58
|
+
}, state.nOpened);
|
|
59
|
+
useCLDAListEffect(null, (result, total) => {
|
|
60
|
+
runInAction(() => (state.cldaStatusTotals.Progress = total || 0));
|
|
61
|
+
}, state.nProgress);
|
|
62
|
+
useCLDAListEffect(null, (result, total) => {
|
|
63
|
+
runInAction(() => (state.cldaStatusTotals.Done = total || 0));
|
|
64
|
+
}, state.nDone);
|
|
65
|
+
useCLDAListEffect(null, (result, total) => {
|
|
66
|
+
runInAction(() => (state.cldaStatusTotals.Closed = total || 0));
|
|
67
|
+
}, state.nClosed);
|
|
68
|
+
// useCLDAListEffect(
|
|
69
|
+
// null,
|
|
70
|
+
// (result, total) => {
|
|
71
|
+
// runInAction(() => (state.cldaStatusTotals.SelectMode = total || 0));
|
|
72
|
+
// },
|
|
73
|
+
// state.nSelectMode
|
|
74
|
+
// );
|
|
75
|
+
// useCLDAListEffect(
|
|
76
|
+
// null,
|
|
77
|
+
// (result, total) => {
|
|
78
|
+
// runInAction(
|
|
79
|
+
// () => (state.cldaStatusTotals.EmailConfirmation = total || 0)
|
|
80
|
+
// );
|
|
81
|
+
// },
|
|
82
|
+
// state.nEmailConfirmation
|
|
83
|
+
// );
|
|
84
|
+
// useCLDAListEffect(
|
|
85
|
+
// null,
|
|
86
|
+
// (result, total) => {
|
|
87
|
+
// runInAction(() => (state.cldaStatusTotals.Signing = total || 0));
|
|
88
|
+
// },
|
|
89
|
+
// state.nSigning
|
|
90
|
+
// );
|
|
91
|
+
// useCLDAListEffect(
|
|
92
|
+
// null,
|
|
93
|
+
// (result, total) => {
|
|
94
|
+
// runInAction(() => (state.cldaStatusTotals.Ready = total || 0));
|
|
95
|
+
// },
|
|
96
|
+
// state.nReady
|
|
97
|
+
// );
|
|
98
|
+
// useCLDAListEffect(
|
|
99
|
+
// null,
|
|
100
|
+
// (result, total) => {
|
|
101
|
+
// runInAction(() => (state.cldaStatusTotals.Working = total || 0));
|
|
102
|
+
// },
|
|
103
|
+
// state.nWorking
|
|
104
|
+
// );
|
|
105
|
+
// useCLDAListEffect(
|
|
106
|
+
// null,
|
|
107
|
+
// (result, total) => {
|
|
108
|
+
// runInAction(() => (state.cldaStatusTotals.Completed = total || 0));
|
|
109
|
+
// },
|
|
110
|
+
// state.nCompleted
|
|
111
|
+
// );
|
|
112
|
+
return observe(() => {
|
|
113
|
+
var _a;
|
|
114
|
+
return (React.createElement(MainContent, { className: classnames("my-space-view", styles["secretary-center-page"]) },
|
|
115
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
116
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
117
|
+
React.createElement("div", { className: "secretary-nav" },
|
|
118
|
+
React.createElement("h2", { className: "secretary-title" },
|
|
119
|
+
React.createElement("div", { className: "secretary-name" }, "SecretaryCenterTitle")),
|
|
120
|
+
React.createElement(Menu, { className: "secretary-menu", mode: "inline", defaultSelectedKeys: ["/corporates"], defaultOpenKeys: ["/corporates"], selectedKeys: state.menuKey, onClick: (key) => state.navigate(key.key) },
|
|
121
|
+
React.createElement(Menu.Item, { key: "/documents", icon: React.createElement(FAIcon, { icon: faFileLines }), disabled: true }, "Documents"),
|
|
122
|
+
React.createElement(Menu.Item, { key: "/corporates", icon: React.createElement(FAIcon, { icon: faBuildings }) }, "Corporates"),
|
|
123
|
+
React.createElement(Menu.Item, { key: "/my-clda", icon: React.createElement(FAIcon, { icon: faMoneyCheckDollarPen }) }, "My CLDA"),
|
|
124
|
+
React.createElement(SubMenu, { key: "CLDAStatus", title: "CLDA[Status]", icon: React.createElement(FAIcon, { icon: faCalendarCheck }) },
|
|
125
|
+
React.createElement(Menu.Item, { key: "/cldastatus/Notified" },
|
|
126
|
+
"Notified",
|
|
127
|
+
React.createElement(Badge, { count: state.cldaStatusTotals.Notified, className: "site-badge-count" })),
|
|
128
|
+
React.createElement(Menu.Item, { key: "/cldastatus/Opened" },
|
|
129
|
+
"Opened",
|
|
130
|
+
React.createElement(Badge, { count: state.cldaStatusTotals.Opened, className: "site-badge-count" })),
|
|
131
|
+
React.createElement(Menu.Item, { key: "/cldastatus/Progress" },
|
|
132
|
+
"Progress",
|
|
133
|
+
React.createElement(Badge, { count: state.cldaStatusTotals.Progress, className: "site-badge-count" })),
|
|
134
|
+
React.createElement(Menu.Item, { key: "/cldastatus/Done" },
|
|
135
|
+
"Done",
|
|
136
|
+
React.createElement(Badge, { count: state.cldaStatusTotals.Done, className: "site-badge-count" })),
|
|
137
|
+
React.createElement(Menu.Item, { key: "/cldastatus/Closed" },
|
|
138
|
+
"Closed",
|
|
139
|
+
React.createElement(Badge, { count: state.cldaStatusTotals.Closed, className: "site-badge-count" }))),
|
|
140
|
+
React.createElement(SubMenu, { key: "Worktype", icon: React.createElement(FAIcon, { icon: faAlignLeft }), title: "CLDA[Types]" }, (_a = state.CLDAMetaList) === null || _a === void 0 ? void 0 : _a.map((item) => (React.createElement(Menu.Item, { key: `/cldatype/${item.id}` },
|
|
141
|
+
item.name,
|
|
142
|
+
React.createElement(Badge, { count: state.cldaTypesTotals[item.id], className: "site-badge-count" })))))),
|
|
143
|
+
React.createElement("div", { className: classnames("secretary-settings", {
|
|
144
|
+
activeColor: state.activeColor,
|
|
145
|
+
}), onClick: () => state.navigate("/settings") },
|
|
146
|
+
React.createElement(FAIcon, { icon: faGear, style: { marginRight: "3px" } }),
|
|
147
|
+
" Settings")))),
|
|
148
|
+
React.createElement("div", { className: "secretary-default-view_content" },
|
|
149
|
+
React.createElement(Switch, null,
|
|
150
|
+
React.createElement(Route, { path: `${match.path}/documents` },
|
|
151
|
+
React.createElement("div", null, "DocumentPage")),
|
|
152
|
+
React.createElement(Route, { path: `${match.path}/my-clda` },
|
|
153
|
+
React.createElement(CLDAListView, { parentId: id, secretaryCenterId: id, isMyCLDA: true })),
|
|
154
|
+
React.createElement(Route, { path: `${match.path}/cldastatus/:status/:active?` },
|
|
155
|
+
React.createElement(CLDAListPage, { state: state })),
|
|
156
|
+
React.createElement(Route, { path: `${match.path}/cldatype/:metaId/:active?` },
|
|
157
|
+
React.createElement(CLDAListPage, { state: state })),
|
|
158
|
+
React.createElement(Route, { render: () => React.createElement(Redirect, { to: `${match.url}/corporates` }) })))));
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
export default SecretaryCenterPage;
|
|
162
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/SecretaryTestPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAEN,WAAW,EACX,WAAW,EACX,MAAM,EACN,eAAe,EACf,WAAW,EACX,qBAAqB,GACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,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
|
+
height: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
:global {
|
|
10
|
+
.main-content-nav {
|
|
11
|
+
.main-nav-container {
|
|
12
|
+
box-shadow: none;
|
|
13
|
+
|
|
14
|
+
.ant-menu {
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
|
|
17
|
+
.ant-menu-item {
|
|
18
|
+
.ant-menu-title-content {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ant-menu-item-selected,
|
|
26
|
+
.ant-menu-item-active {
|
|
27
|
+
.ant-badge {
|
|
28
|
+
.ant-badge-count {
|
|
29
|
+
color: @ant-badge-hover-color;
|
|
30
|
+
box-shadow: @badge-hover-shadow;
|
|
31
|
+
border: 1px solid white;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.secretary-nav {
|
|
39
|
+
height: 100%;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
|
|
43
|
+
.secretary-title {
|
|
44
|
+
padding: 10px 10px 10px 0;
|
|
45
|
+
font-size: 18px;
|
|
46
|
+
line-height: 20px;
|
|
47
|
+
color: #000;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
|
|
52
|
+
.secretary-name {
|
|
53
|
+
flex: 1;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
text-overflow: ellipsis;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.secretary-menu {
|
|
61
|
+
flex: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.secretary-settings {
|
|
65
|
+
font-size: 16px;
|
|
66
|
+
color: #000;
|
|
67
|
+
height: 50px;
|
|
68
|
+
line-height: 50px;
|
|
69
|
+
border-radius: @border-radius;
|
|
70
|
+
padding: 0 20px 0 24px;
|
|
71
|
+
margin-right: 22px;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
|
|
74
|
+
&.activeColor {
|
|
75
|
+
background: @active-color !important;
|
|
76
|
+
color: #fff;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
color: white;
|
|
81
|
+
background-color: @ant-menu-hover-color;
|
|
82
|
+
box-shadow: @hover-box-shadow;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.secretary-default-view_content {
|
|
89
|
+
padding: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LayoutContext } from "@voplus/morpho-data";
|
|
2
|
+
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { AssistantStatus } from "../../../../../data/CLDA";
|
|
4
|
+
import { ICLDAMeta } from "../../../../../data/clda-meta";
|
|
5
|
+
export declare class State {
|
|
6
|
+
private parentId;
|
|
7
|
+
private _layout;
|
|
8
|
+
private _url;
|
|
9
|
+
/** assistantStatus of the CLDA */
|
|
10
|
+
assistantStatus?: string;
|
|
11
|
+
metaId: string;
|
|
12
|
+
/** Menu.Item of key */
|
|
13
|
+
menuKey: string[] | undefined;
|
|
14
|
+
activeColor: boolean;
|
|
15
|
+
CLDAMetaList: ICLDAMeta[];
|
|
16
|
+
cldaTypesTotals: {};
|
|
17
|
+
cldaStatusTotals: {
|
|
18
|
+
Notified: number;
|
|
19
|
+
Opened: number;
|
|
20
|
+
SelectMode: number;
|
|
21
|
+
EmailConfirmation: number;
|
|
22
|
+
Signing: number;
|
|
23
|
+
Ready: number;
|
|
24
|
+
Working: number;
|
|
25
|
+
Completed: number;
|
|
26
|
+
Progress: number;
|
|
27
|
+
Done: number;
|
|
28
|
+
Closed: number;
|
|
29
|
+
};
|
|
30
|
+
effect: (list: any[], total: number) => void | null;
|
|
31
|
+
constructor(parentId: string, _layout: LayoutContext, _url: string);
|
|
32
|
+
updateFilter(item: any): void;
|
|
33
|
+
navigate(key: string, rest?: string): void;
|
|
34
|
+
updatCLDAStatusTotal(oldStatus: AssistantStatus, status: AssistantStatus): void;
|
|
35
|
+
updateCLDATypesTotal(oldStatus: string, status: string): void;
|
|
36
|
+
get nNotified(): LoadDocumentListOptions;
|
|
37
|
+
get nOpened(): LoadDocumentListOptions;
|
|
38
|
+
get nClosed(): LoadDocumentListOptions;
|
|
39
|
+
get nProgress(): LoadDocumentListOptions;
|
|
40
|
+
get nDone(): LoadDocumentListOptions;
|
|
41
|
+
get nSelectMode(): LoadDocumentListOptions;
|
|
42
|
+
get nEmailConfirmation(): LoadDocumentListOptions;
|
|
43
|
+
get nSigning(): LoadDocumentListOptions;
|
|
44
|
+
get nReady(): LoadDocumentListOptions;
|
|
45
|
+
get nWorking(): LoadDocumentListOptions;
|
|
46
|
+
get nCompleted(): LoadDocumentListOptions;
|
|
47
|
+
get filters(): any[];
|
|
48
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, computed, makeAutoObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor(parentId, _layout, _url) {
|
|
5
|
+
Object.defineProperty(this, "parentId", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: parentId
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "_layout", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: _layout
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "_url", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: _url
|
|
22
|
+
});
|
|
23
|
+
/** assistantStatus of the CLDA */
|
|
24
|
+
Object.defineProperty(this, "assistantStatus", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
configurable: true,
|
|
27
|
+
writable: true,
|
|
28
|
+
value: "Notified"
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(this, "metaId", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true,
|
|
34
|
+
value: void 0
|
|
35
|
+
});
|
|
36
|
+
/** Menu.Item of key */
|
|
37
|
+
Object.defineProperty(this, "menuKey", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: undefined
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(this, "activeColor", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
configurable: true,
|
|
46
|
+
writable: true,
|
|
47
|
+
value: false
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(this, "CLDAMetaList", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: void 0
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(this, "cldaTypesTotals", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: {}
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(this, "cldaStatusTotals", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
configurable: true,
|
|
64
|
+
writable: true,
|
|
65
|
+
value: {
|
|
66
|
+
Notified: 0,
|
|
67
|
+
Opened: 0,
|
|
68
|
+
SelectMode: 0,
|
|
69
|
+
EmailConfirmation: 0,
|
|
70
|
+
Signing: 0,
|
|
71
|
+
Ready: 0,
|
|
72
|
+
Working: 0,
|
|
73
|
+
Completed: 0,
|
|
74
|
+
Progress: 0,
|
|
75
|
+
Done: 0,
|
|
76
|
+
Closed: 0,
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(this, "effect", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
configurable: true,
|
|
82
|
+
writable: true,
|
|
83
|
+
value: null
|
|
84
|
+
});
|
|
85
|
+
makeAutoObservable(this);
|
|
86
|
+
}
|
|
87
|
+
updateFilter(item) {
|
|
88
|
+
this.metaId = item.id;
|
|
89
|
+
this.effect = (result, total) => {
|
|
90
|
+
this.cldaTypesTotals[item.id] = total;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
navigate(key, rest) {
|
|
94
|
+
this.activeColor = key === "/settings" ? true : false;
|
|
95
|
+
this.menuKey = [key];
|
|
96
|
+
this._layout.history.push(`${this._url}${key}${rest !== null && rest !== void 0 ? rest : ""}`);
|
|
97
|
+
}
|
|
98
|
+
updatCLDAStatusTotal(oldStatus, status) {
|
|
99
|
+
this.cldaStatusTotals[oldStatus.toLowerCase()]--;
|
|
100
|
+
this.cldaStatusTotals[status.toLowerCase()]++;
|
|
101
|
+
}
|
|
102
|
+
updateCLDATypesTotal(oldStatus, status) {
|
|
103
|
+
this.cldaTypesTotals[oldStatus.toLowerCase()]--;
|
|
104
|
+
this.cldaTypesTotals[status.toLowerCase()]++;
|
|
105
|
+
}
|
|
106
|
+
get nNotified() {
|
|
107
|
+
return {
|
|
108
|
+
Total: true,
|
|
109
|
+
List: false,
|
|
110
|
+
Filters: [
|
|
111
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Notified" },
|
|
112
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
113
|
+
],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
get nOpened() {
|
|
117
|
+
return {
|
|
118
|
+
Total: true,
|
|
119
|
+
List: false,
|
|
120
|
+
Filters: [
|
|
121
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Opened" },
|
|
122
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
123
|
+
],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
get nClosed() {
|
|
127
|
+
return {
|
|
128
|
+
Total: true,
|
|
129
|
+
List: false,
|
|
130
|
+
Filters: [
|
|
131
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Closed" },
|
|
132
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
133
|
+
],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
get nProgress() {
|
|
137
|
+
return {
|
|
138
|
+
Total: true,
|
|
139
|
+
List: false,
|
|
140
|
+
Filters: [
|
|
141
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Progress" },
|
|
142
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
143
|
+
],
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
get nDone() {
|
|
147
|
+
return {
|
|
148
|
+
Total: true,
|
|
149
|
+
List: false,
|
|
150
|
+
Filters: [
|
|
151
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Done" },
|
|
152
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
153
|
+
],
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
get nSelectMode() {
|
|
157
|
+
return {
|
|
158
|
+
Total: true,
|
|
159
|
+
List: false,
|
|
160
|
+
Filters: [
|
|
161
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "SelectMode" },
|
|
162
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
163
|
+
],
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
get nEmailConfirmation() {
|
|
167
|
+
return {
|
|
168
|
+
Total: true,
|
|
169
|
+
List: false,
|
|
170
|
+
Filters: [
|
|
171
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "EmailConfirmation" },
|
|
172
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
173
|
+
],
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
get nSigning() {
|
|
177
|
+
return {
|
|
178
|
+
Total: true,
|
|
179
|
+
List: false,
|
|
180
|
+
Filters: [
|
|
181
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Signing" },
|
|
182
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
183
|
+
],
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
get nReady() {
|
|
187
|
+
return {
|
|
188
|
+
Total: true,
|
|
189
|
+
List: false,
|
|
190
|
+
Filters: [
|
|
191
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Ready" },
|
|
192
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
193
|
+
],
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
get nWorking() {
|
|
197
|
+
return {
|
|
198
|
+
Total: true,
|
|
199
|
+
List: false,
|
|
200
|
+
Filters: [
|
|
201
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Working" },
|
|
202
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
203
|
+
],
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
get nCompleted() {
|
|
207
|
+
return {
|
|
208
|
+
Total: true,
|
|
209
|
+
List: false,
|
|
210
|
+
Filters: [
|
|
211
|
+
{ c: "AssistantStatus", o: "=", l: "And", v1: "Completed" },
|
|
212
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId },
|
|
213
|
+
],
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
get filters() {
|
|
217
|
+
let filters = [];
|
|
218
|
+
if (this.metaId) {
|
|
219
|
+
filters.push({ c: "Meta", o: "=", l: "And", v1: this.metaId });
|
|
220
|
+
}
|
|
221
|
+
if (this.parentId) {
|
|
222
|
+
filters.push({ c: "ParentNodeId", o: "=", l: "And", v1: this.parentId });
|
|
223
|
+
}
|
|
224
|
+
return filters;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
__decorate([
|
|
228
|
+
observable
|
|
229
|
+
], State.prototype, "assistantStatus", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
observable
|
|
232
|
+
], State.prototype, "metaId", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
observable
|
|
235
|
+
], State.prototype, "menuKey", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
observable
|
|
238
|
+
], State.prototype, "activeColor", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
observable
|
|
241
|
+
], State.prototype, "CLDAMetaList", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
observable
|
|
244
|
+
], State.prototype, "cldaTypesTotals", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
observable
|
|
247
|
+
], State.prototype, "cldaStatusTotals", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
observable
|
|
250
|
+
], State.prototype, "effect", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
action
|
|
253
|
+
], State.prototype, "updateFilter", null);
|
|
254
|
+
__decorate([
|
|
255
|
+
action
|
|
256
|
+
], State.prototype, "navigate", null);
|
|
257
|
+
__decorate([
|
|
258
|
+
action
|
|
259
|
+
], State.prototype, "updatCLDAStatusTotal", null);
|
|
260
|
+
__decorate([
|
|
261
|
+
action
|
|
262
|
+
], State.prototype, "updateCLDATypesTotal", null);
|
|
263
|
+
__decorate([
|
|
264
|
+
computed
|
|
265
|
+
], State.prototype, "filters", null);
|
|
266
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/SecretaryTestPage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMxE,MAAM,OAAO,KAAK;IA6BhB,YACU,QAAgB,EAChB,OAA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C;AACpC;IAAX,UAAU;2CAAkC;AACjC;IAAX,UAAU;8CAA6B;AAE5B;IAAX,UAAU;+CAYT;AAEU;IAAX,UAAU;qCAGM;AAUT;IAAP,MAAM;yCAKN;AAEO;IAAP,MAAM;qCAIN;AAGD;IADC,MAAM;iDAON;AAGD;IADC,MAAM;iDAIN;AA4HD;IADC,QAAQ;oCAUR"}
|
package/es/modules/self-registration/incorporation-form/components/NewDirectorDialog/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Form, Modal, Select, message } from "@voplus/antd";
|
|
1
2
|
import React, { useState } from "react";
|
|
2
|
-
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { Modal, Form, Select, message } from "@voplus/antd";
|
|
4
|
-
import { clone } from "lodash-es";
|
|
5
3
|
import { useIncorporationForm, useIncorporationFormStore, } from "../../../../../data/incorporation-form";
|
|
6
4
|
import NewLegalContactDialog from "../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
7
|
import { v4 as uuid } from "uuid";
|
|
8
8
|
const NewDirectorDialog = (props) => {
|
|
9
9
|
const { id, visible, onCancel } = props;
|
|
@@ -16,7 +16,7 @@ const NewDirectorDialog = (props) => {
|
|
|
16
16
|
return (React.createElement(Modal, { width: 500, title: "New Director", okText: "Add", onOk: onAdd, onCancel: onCancel, visible: visible },
|
|
17
17
|
React.createElement(Form, { labelCol: { span: 4 }, labelAlign: "left" },
|
|
18
18
|
React.createElement(Form.Item, { label: "Contact" },
|
|
19
|
-
React.createElement(Select, { showSearch: true, placeholder: "Select a contact", optionFilterProp: "children", value: contactId, onChange: onChange, filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 },
|
|
19
|
+
React.createElement(Select, { showSearch: true, placeholder: "Select or create a contact", optionFilterProp: "children", value: contactId, onChange: onChange, filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 },
|
|
20
20
|
React.createElement(Select.Option, { value: "new" }, "New Contact"), (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts) === null || _b === void 0 ? void 0 :
|
|
21
21
|
_b.map((item) => {
|
|
22
22
|
var _a, _b;
|