@voplus/morpho-csp 6.0.40 → 6.0.42
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/components/RegisteresMenuItem/index.js +1 -1
- package/es/components/RegisteresMenuItem/index.js.map +1 -1
- package/es/data/controller/interfaces.d.ts +2 -1
- package/es/data/corporate/interfaces.d.ts +2 -4
- package/es/data/identity/interfaces.d.ts +2 -1
- package/es/data/member/interfaces.d.ts +2 -1
- package/es/data/officer/interfaces.d.ts +2 -1
- package/es/modules/corporate/clda/components/CLDAItem/index.less +11 -0
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js +9 -7
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCard/index.js +8 -5
- package/es/modules/corporate/company/components/SharesCard/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.d.ts +3 -9
- package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js +12 -9
- package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.d.ts +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js +3 -3
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +13 -7
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.d.ts +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.d.ts +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js +2 -2
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.d.ts +0 -1
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +0 -3
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +2 -3
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +0 -2
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +2 -2
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +0 -2
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +2 -2
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.d.ts +3 -9
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +6 -7
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +3 -3
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberListCard/index.d.ts +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberListCard/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.d.ts +0 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +6 -5
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.d.ts +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +2 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.d.ts +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js +2 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/Details/index.d.ts +0 -1
- package/es/modules/corporate/company/member-register/components/Details/index.js +5 -3
- package/es/modules/corporate/company/member-register/components/Details/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.d.ts +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js +2 -2
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerInformation/index.d.ts +3 -9
- package/es/modules/corporate/company/officer-register/components/OfficerInformation/index.js +6 -7
- package/es/modules/corporate/company/officer-register/components/OfficerInformation/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.d.ts +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +3 -3
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.d.ts +0 -2
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +7 -6
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.d.ts +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +2 -2
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.d.ts +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js +2 -2
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/PositionSelect/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js +4 -4
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +5 -5
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +18 -9
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.d.ts +0 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +28 -25
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +9 -6
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { useCorporate, useCorporateStore } from "../../data/corporate";
|
|
|
3
3
|
import { Menu, Popover, message } from "antd";
|
|
4
4
|
import { NavMenuContext, NavMenuContextState, } from "@voplus/morpho-ui/es/components/layout/NavMenu/NavMenuContext";
|
|
5
5
|
import React, { useEffect, useState } from "react";
|
|
6
|
-
import { faHandsUsd, faRegistered, faUserEdit, faUserTag, faUserVneck, faUsers, } from "@fortawesome/pro-
|
|
6
|
+
import { faHandsUsd, faRegistered, faUserEdit, faUserTag, faUserVneck, faUsers, } from "@fortawesome/pro-duotone-svg-icons";
|
|
7
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import NavMenuItem from "@voplus/morpho-ui/es/components/layout/NavMenu/NavMenuItem";
|
|
9
9
|
import { State } from "./state";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RegisteresMenuItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAc,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EACN,cAAc,EACd,mBAAmB,GACnB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,UAAU,EACV,YAAY,EACZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,OAAO,GACP,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RegisteresMenuItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAc,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EACN,cAAc,EACd,mBAAmB,GACnB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,UAAU,EACV,YAAY,EACZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,OAAO,GACP,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAA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E,WAAW,GAAI,CAAC;YACtC;gBACC,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI,CAAC;QACxC,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAddress } from "@voplus/morpho-org";
|
|
2
2
|
import { ILoadable } from "@voplus/morpho-data";
|
|
3
|
-
|
|
3
|
+
import { INode } from "@voplus/morpho-document-core";
|
|
4
|
+
export interface IController extends ILoadable, INode {
|
|
4
5
|
/** id of corporate */
|
|
5
6
|
id: string;
|
|
6
7
|
contact: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IAddress } from "@voplus/morpho-org";
|
|
2
2
|
import { ILoadable } from "@voplus/morpho-data";
|
|
3
|
-
import { ITag } from "@voplus/morpho-document-core";
|
|
3
|
+
import { ITag, INode } from "@voplus/morpho-document-core";
|
|
4
4
|
import { IOfficer } from "../officer";
|
|
5
5
|
import { ICompanyMember } from "../member";
|
|
6
6
|
import { IController } from "../controller";
|
|
7
7
|
export type CorporateStatus = "Live" | "Dormant" | "Closed";
|
|
8
|
-
export interface ICorporate extends ILoadable {
|
|
8
|
+
export interface ICorporate extends ILoadable, INode {
|
|
9
9
|
/** id of corporate */
|
|
10
10
|
id: string;
|
|
11
11
|
/** name of unit */
|
|
@@ -34,8 +34,6 @@ export interface ICorporate extends ILoadable {
|
|
|
34
34
|
registeredAddress: IAddress;
|
|
35
35
|
/** */
|
|
36
36
|
allowedJurisdictions: string[];
|
|
37
|
-
/** 客户查看时不可编辑 */
|
|
38
|
-
allowEdit: boolean;
|
|
39
37
|
/** registers SubMenu */
|
|
40
38
|
registers: {
|
|
41
39
|
id: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
|
+
import { INode } from "@voplus/morpho-document-core";
|
|
2
3
|
export type IdentityType = "IdentityCard" | "Passport" | "BusinessRegistration";
|
|
3
|
-
export interface IIdentity extends ILoadable {
|
|
4
|
+
export interface IIdentity extends ILoadable, INode {
|
|
4
5
|
/** id of identity */
|
|
5
6
|
id: string;
|
|
6
7
|
/** id of the unit */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
2
|
import { IUnit } from "@voplus/morpho-org";
|
|
3
3
|
import { IAddress } from "@voplus/morpho-org";
|
|
4
|
+
import { INode } from "@voplus/morpho-document-core";
|
|
4
5
|
/**
|
|
5
6
|
* (董事秘书股东)成员信息
|
|
6
7
|
*/
|
|
@@ -26,7 +27,7 @@ export interface IMemberSharesLine {
|
|
|
26
27
|
shares: number;
|
|
27
28
|
type: string;
|
|
28
29
|
}
|
|
29
|
-
export interface ICompanyMember extends ILoadable {
|
|
30
|
+
export interface ICompanyMember extends ILoadable, INode {
|
|
30
31
|
/** 企业member id */
|
|
31
32
|
id: string;
|
|
32
33
|
contact: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAddress } from "@voplus/morpho-org";
|
|
2
2
|
import { ILoadable } from "@voplus/morpho-data";
|
|
3
|
-
|
|
3
|
+
import { INode } from "@voplus/morpho-document-core";
|
|
4
|
+
export interface IOfficer extends ILoadable, INode {
|
|
4
5
|
/** id of corporate */
|
|
5
6
|
id: string;
|
|
6
7
|
contact: {
|
|
@@ -14,7 +14,18 @@
|
|
|
14
14
|
border-bottom: 1px solid @border-color-base;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
&:hover {
|
|
18
|
+
:global(.add-tag-btn) {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
visibility: visible;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
:global {
|
|
25
|
+
.add-tag-btn {
|
|
26
|
+
visibility: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
18
29
|
.clda-status-label {
|
|
19
30
|
opacity: 1;
|
|
20
31
|
transition: opacity 0.3s;
|
|
@@ -2,6 +2,7 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { useCorporate, useCorporateStore, } from "../../../../../data/corporate";
|
|
3
3
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { Button } from "antd";
|
|
5
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
6
|
import { useCompanyContext } from "../../pages/CompanyPage/CompanyPageContext";
|
|
6
7
|
import TagView from "@voplus/morpho-document/es/components/TagView";
|
|
7
8
|
import NodeLink from "@voplus/morpho-workspace/es/controls/NodeLink";
|
|
@@ -18,6 +19,7 @@ import InlineEditType from "../InlineEditType";
|
|
|
18
19
|
import dayjs from "dayjs";
|
|
19
20
|
const Properties = (props) => {
|
|
20
21
|
const { id, propertiesName } = props;
|
|
22
|
+
const { user } = useApplicationContext();
|
|
21
23
|
const [newFilingYearVisible, setNewFilingYearVisible] = useState(false);
|
|
22
24
|
const [filingYearQuickViewVisible, setFilingYearQuickViewVisible] = useState({ id: "", visible: false });
|
|
23
25
|
const [showWorkingFilingYearEditIcon, setShowWorkingFilingYearEditIcon] = useState(true);
|
|
@@ -25,7 +27,7 @@ const Properties = (props) => {
|
|
|
25
27
|
const [showSecretaryCenterEditIcon, setShowSecretaryCenterEditIcon] = useState(true);
|
|
26
28
|
const [secretaryCenterEditable, setSecretaryCenterEditable] = useState(false);
|
|
27
29
|
const companyContext = useCompanyContext();
|
|
28
|
-
const corporate = useCorporate(id);
|
|
30
|
+
const corporate = useCorporate(id, { includes: "permissions" });
|
|
29
31
|
const corporateStore = useCorporateStore();
|
|
30
32
|
return observe(() => (React.createElement(React.Fragment, null,
|
|
31
33
|
renderProp(propertiesName),
|
|
@@ -42,23 +44,23 @@ const Properties = (props) => {
|
|
|
42
44
|
Jurisdiction: country,
|
|
43
45
|
}) }));
|
|
44
46
|
case "Type":
|
|
45
|
-
return (React.createElement(InlineEditType, { type: corporate.corporateType, list: ["Proprietorship", "Company", "Partnership"], readonly: !corporate.
|
|
47
|
+
return (React.createElement(InlineEditType, { type: corporate.corporateType, list: ["Proprietorship", "Company", "Partnership"], readonly: !user.can("edit", corporate.p), onSave: (value) => save({
|
|
46
48
|
CorporateType: value,
|
|
47
49
|
}) }));
|
|
48
50
|
case "Liability Type":
|
|
49
|
-
return (React.createElement(InlineEditType, { type: corporate.liabilityType, list: ["Unlimited", "LimitedByShares", "LimitedByGuarantee"], readonly: !corporate.
|
|
51
|
+
return (React.createElement(InlineEditType, { type: corporate.liabilityType, list: ["Unlimited", "LimitedByShares", "LimitedByGuarantee"], readonly: !user.can("edit", corporate.p), onSave: (value) => save({
|
|
50
52
|
LiabilityType: value,
|
|
51
53
|
}) }));
|
|
52
54
|
case "Registration Number":
|
|
53
|
-
return (React.createElement(InlineEdit, { defaultValue: corporate.registrationNumber, editable: corporate.
|
|
55
|
+
return (React.createElement(InlineEdit, { defaultValue: corporate.registrationNumber, editable: user.can("edit", corporate.p), content: (v) => v.store.value ? (React.createElement("span", null, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "No Registration Number")), onSave: (value) => value &&
|
|
54
56
|
value !== corporate.registrationNumber &&
|
|
55
57
|
save({
|
|
56
58
|
RegistrationNumber: value,
|
|
57
59
|
}) }));
|
|
58
60
|
case "Registration Date":
|
|
59
|
-
return (React.createElement(InlineEdit, { defaultValue: corporate.registrationDate ? dayjs(corporate.registrationDate) : undefined, editable: corporate.
|
|
61
|
+
return (React.createElement(InlineEdit, { defaultValue: corporate.registrationDate ? dayjs(corporate.registrationDate) : undefined, editable: user.can("edit", corporate.p), content: (v) => corporate.registrationDate ? (React.createElement("span", null, dayjs(corporate.registrationDate).format("DD MMM YYYY"))) : (React.createElement("span", { className: "add-info-style" }, "No Registration Date")), editor: DateInputEditor, onSave: changeRegistrationDate }));
|
|
60
62
|
case "Registered Address":
|
|
61
|
-
return (React.createElement(InlineEditAddress, { address: corporate.registeredAddress, readonly: !corporate.
|
|
63
|
+
return (React.createElement(InlineEditAddress, { address: corporate.registeredAddress, readonly: !user.can("edit", corporate.p), modal: true, onChange: (address) => save({
|
|
62
64
|
RegisteredAddress: address,
|
|
63
65
|
}) }));
|
|
64
66
|
case "Corporate Status":
|
|
@@ -69,7 +71,7 @@ const Properties = (props) => {
|
|
|
69
71
|
return (
|
|
70
72
|
// <InlineEdit
|
|
71
73
|
// defaultValue={corporate?.fYE ? dayjs(corporate?.fYE) : undefined}
|
|
72
|
-
// editable={corporate.
|
|
74
|
+
// editable={user.can("edit", corporate.p)}
|
|
73
75
|
// content={(v) =>
|
|
74
76
|
// corporate?.fYE ? (
|
|
75
77
|
// <span>{dayjs(corporate?.fYE).format("DD MMM")}</span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/Properties.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAGN,YAAY,EACZ,iBAAiB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,QAAQ,MAAM,+CAA+C,CAAC;AACrE,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,mBAAmB,MAAM,mEAAmE,CAAC;AACpG,OAAO,yBAAyB,MAAM,yEAAyE,CAAC;AAChH,OAAO,gBAAgB,MAAM,gEAAgE,CAAC;AAC9F,OAAO,oBAAoB,MAAM,qCAAqC,CAAC;AACvE,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,MAAM,UAAU,GAAG,CAAC,KAA4D,EAAE,EAAE;IACnF,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAErC,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxE,MAAM,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,GAAG,QAAQ,CAGzE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/B,MAAM,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACzF,MAAM,CAAC,qBAAqB,EAAE,4BAA4B,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9E,MAAM,CAAC,2BAA2B,EAAE,8BAA8B,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrF,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9E,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/Properties.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAGN,YAAY,EACZ,iBAAiB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,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AAS,CAAC,GAAG,EAAE,KAAK,CAAC;YAAE,OAAO;QACpE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,aAAD,CAAC,cAAD,CAAC,GAAI,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -13,11 +13,14 @@ const SharesCard = (props) => {
|
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
state.update();
|
|
15
15
|
}, [corporateid]);
|
|
16
|
-
return observe(() =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
return observe(() => {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
return (React.createElement(ListCard, { style: { height: "auto" } },
|
|
19
|
+
React.createElement("div", { className: "shares-card-g2" },
|
|
20
|
+
React.createElement("div", { className: "px-4 py-4 sm:px-6 border-b border-gray-200 flex justify-between" },
|
|
21
|
+
React.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900" }, "Shares")),
|
|
22
|
+
React.createElement(Skeleton, { active: true, loading: state.loading }, ((_b = (_a = state.shares) === null || _a === void 0 ? void 0 : _a.classes) === null || _b === void 0 ? void 0 : _b.length) ? (state.shares.classes.map((item, i) => React.createElement(SharesCardItem, { share: item, key: i }))) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE }))))));
|
|
23
|
+
});
|
|
21
24
|
};
|
|
22
25
|
export default SharesCard;
|
|
23
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/SharesCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,cAAc,CAAC;AAEtB,MAAM,UAAU,GAAG,CAAC,KAA8B,EAAE,EAAE;IACrD,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;IAExD,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,OAAO,CAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/SharesCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,cAAc,CAAC;AAEtB,MAAM,UAAU,GAAG,CAAC,KAA8B,EAAE,EAAE;IACrD,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;IAExD,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YAClC,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,6BAAK,SAAS,EAAC,iEAAiE;oBAC/E,4BAAI,SAAS,EAAC,6CAA6C,aAAY,CAClE;gBACN,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,KAAK,CAAC,OAAO,IACrC,CAAA,MAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,CAChC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,oBAAC,cAAc,IAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAI,CAAC,CAC9E,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CACS,CACN,CACI,CACX,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const ControllerInformation: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
allowEdit?: boolean;
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
defaultProps: {
|
|
8
|
-
allowEdit: boolean;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
2
|
+
declare const ControllerInformation: (props: {
|
|
3
|
+
id: string;
|
|
4
|
+
}) => React.JSX.Element;
|
|
11
5
|
export default ControllerInformation;
|
package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js
CHANGED
|
@@ -2,35 +2,41 @@ import React from "react";
|
|
|
2
2
|
import { Badge, Form, Skeleton } from "antd";
|
|
3
3
|
import { useController, useControllerStore, } from "../../../../../../data/controller";
|
|
4
4
|
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
5
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
6
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
6
7
|
import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
|
|
7
8
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
8
9
|
import dayjs from "dayjs";
|
|
9
10
|
const ControllerInformation = (props) => {
|
|
10
|
-
const { id
|
|
11
|
-
const
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const { user } = useApplicationContext();
|
|
13
|
+
const controller = useController(id, { reload: true, includes: "permissions" });
|
|
12
14
|
const controllerStore = useControllerStore();
|
|
13
15
|
return observe(() => (React.createElement(Scrollbars, null,
|
|
14
16
|
React.createElement(Skeleton, { active: true, loading: !controller.loaded },
|
|
15
17
|
React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, className: "controller-information" },
|
|
16
18
|
controller.status && (React.createElement(Form.Item, { label: "Status" }, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))),
|
|
17
19
|
React.createElement(Form.Item, { label: "Confimration Status" },
|
|
18
|
-
React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable:
|
|
20
|
+
React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable: user.can("edit", controller.p), onChange: (status) => controllerStore.edit(id, { data: { ConfirmationStatus: status }, error: "message" }) })),
|
|
19
21
|
React.createElement(Form.Item, { label: "Confimration Date" },
|
|
20
|
-
React.createElement(InlineEdit, { defaultValue: controller.confimrationDate ? dayjs(controller.confimrationDate) : undefined, content: (v) => controller.confimrationDate ? (React.createElement("span", null, dayjs(controller.confimrationDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" },
|
|
22
|
+
React.createElement(InlineEdit, { defaultValue: controller.confimrationDate ? dayjs(controller.confimrationDate) : undefined, content: (v) => controller.confimrationDate ? (React.createElement("span", null, dayjs(controller.confimrationDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p)
|
|
23
|
+
? "Add Confimration Date"
|
|
24
|
+
: "No Confimration Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
21
25
|
if ((controller === null || controller === void 0 ? void 0 : controller.confimrationDate) &&
|
|
22
26
|
dayjs(date).isSame(controller.confimrationDate, "day"))
|
|
23
27
|
return;
|
|
24
28
|
edit({ ConfimrationDate: date !== null && date !== void 0 ? date : "" });
|
|
25
29
|
} })),
|
|
26
30
|
React.createElement(Form.Item, { label: "Appointment Date" },
|
|
27
|
-
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.appointment) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.appointment) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" },
|
|
31
|
+
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.appointment) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.appointment) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p)
|
|
32
|
+
? "Add Appointment Date"
|
|
33
|
+
: "No Appointment Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
28
34
|
if ((controller === null || controller === void 0 ? void 0 : controller.appointment) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.appointment, "day"))
|
|
29
35
|
return;
|
|
30
36
|
edit({ Appointment: date !== null && date !== void 0 ? date : "" });
|
|
31
37
|
} })),
|
|
32
38
|
React.createElement(Form.Item, { label: "Cease Date" },
|
|
33
|
-
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.cease) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.cease) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.cease) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" },
|
|
39
|
+
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.cease) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.cease) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.cease) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p) ? "Add Cease Date" : "No Cease Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
34
40
|
if ((controller === null || controller === void 0 ? void 0 : controller.cease) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.cease, "day"))
|
|
35
41
|
return;
|
|
36
42
|
edit({ Cease: date !== null && date !== void 0 ? date : "" });
|
|
@@ -43,8 +49,5 @@ const ControllerInformation = (props) => {
|
|
|
43
49
|
await controllerStore.edit(id, { data, error: "message" });
|
|
44
50
|
}
|
|
45
51
|
};
|
|
46
|
-
ControllerInformation.defaultProps = {
|
|
47
|
-
allowEdit: true,
|
|
48
|
-
};
|
|
49
52
|
export default ControllerInformation;
|
|
50
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC7C,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,qBAAqB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC7C,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAA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tE,CACS;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO;oBACvB,oBAAC,UAAU,IACV,YAAY,EAAE,UAAU,CAAC,KAAK,EAC9B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAClB,kCAAO,UAAU,CAAC,KAAK,CAAQ,CAC/B,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,gBAAiB,CACjD,EAEF,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CACtB,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAEtE,CACS,CACN,CACG,CACC,CACb,CAAC,CAAC;IAEH,KAAK,UAAU,IAAI,CAAC,IAA+B;QAClD,MAAM,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -20,7 +20,7 @@ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialo
|
|
|
20
20
|
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
|
21
21
|
import styles from "./index.less";
|
|
22
22
|
const ControllerList = (props) => {
|
|
23
|
-
const { controllerRegisterId, corporateId
|
|
23
|
+
const { controllerRegisterId, corporateId } = props;
|
|
24
24
|
const [controllerTotal, setControllerTotal] = useState(0);
|
|
25
25
|
const [visible, setVisible] = useState(false);
|
|
26
26
|
const controllerStore = useControllerStore();
|
|
@@ -68,7 +68,7 @@ const ControllerList = (props) => {
|
|
|
68
68
|
React.createElement(ControllerStatusFilter, { key: "ControllerStatusFilter", defaultValue: ["Unconfirmed", "ConfirmedController"] }),
|
|
69
69
|
],
|
|
70
70
|
onFilter: onFilter,
|
|
71
|
-
}, moreFunBtn: toolBtns, onAdd: () =>
|
|
71
|
+
}, moreFunBtn: toolBtns, onAdd: () => (state.addAble = true) }));
|
|
72
72
|
return (React.createElement(React.Fragment, null,
|
|
73
73
|
React.createElement(ListDataContext.Provider, { value: list },
|
|
74
74
|
React.createElement(ListView, { headerProps: {
|
|
@@ -79,7 +79,7 @@ const ControllerList = (props) => {
|
|
|
79
79
|
var _a;
|
|
80
80
|
return (React.createElement(DocumentItemFrame, { key: item.id },
|
|
81
81
|
React.createElement(ControllerItem, { id: item.id, unit: item.contact, identityId: (_a = item.identity) === null || _a === void 0 ? void 0 : _a.id, index: index })));
|
|
82
|
-
}, propertiesView: (id) => React.createElement(ControllerPropertiesView, { id: id
|
|
82
|
+
}, propertiesView: (id) => React.createElement(ControllerPropertiesView, { id: id }), className: styles["controller-list-view"] }),
|
|
83
83
|
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => runInAction(() => (state.addAble = false)) }))),
|
|
84
84
|
visible && (React.createElement(SelectControllerForm, { parentId: controllerRegisterId, onCancel: () => setVisible(false) }))));
|
|
85
85
|
});
|
package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,uBAAuB,EACvB,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,uBAAuB,EACvB,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAA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AW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,SAAS,gBAAgB;QACxB,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,iDAAiD;YACxD,KAAK,CAAC,IAAI;gBACT,MAAM,cAAc;qBAClB,cAAc,CAAC,WAAW,EAAE,oBAAoB,EAAE;oBAClD,KAAK,EAAE,SAAS;iBAChB,CAAC;qBACD,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;YACtD,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { useController, useControllerStore, } from "../../../../../../data/controller";
|
|
4
4
|
import { Form, Badge } from "antd";
|
|
5
5
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
6
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
6
7
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
7
8
|
import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
|
|
8
9
|
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
@@ -14,9 +15,10 @@ import dayjs from "dayjs";
|
|
|
14
15
|
const ControllerProperties = (props) => {
|
|
15
16
|
/** 加class name 为了方便做integration tests */
|
|
16
17
|
const classId = "controller-properties";
|
|
17
|
-
const { id,
|
|
18
|
+
const { id, controllerTitle, orgContactTitle, controllerProperties, orgContactProperties, headerVisible, } = props;
|
|
18
19
|
const [labelColWidth, setLabelColWidth] = useState(10);
|
|
19
|
-
const
|
|
20
|
+
const { user } = useApplicationContext();
|
|
21
|
+
const controller = useController(id, { reload: true, includes: "permissions" });
|
|
20
22
|
const controllerStore = useControllerStore();
|
|
21
23
|
const filterPro = controllerProperties === null || controllerProperties === void 0 ? void 0 : controllerProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
22
24
|
return observe(() => {
|
|
@@ -29,7 +31,7 @@ const ControllerProperties = (props) => {
|
|
|
29
31
|
return (React.createElement(Form, { className: classId + "-form", labelWrap: true, labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))));
|
|
30
32
|
} }),
|
|
31
33
|
React.createElement(PropertyLabel, { label: "Identity", labelCol: labelColWidth },
|
|
32
|
-
React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.id, controllerId: id
|
|
34
|
+
React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.id, controllerId: id })),
|
|
33
35
|
React.createElement(ContactProperties, { fromLabelRequired: true, id: (_c = controller === null || controller === void 0 ? void 0 : controller.contact) === null || _c === void 0 ? void 0 : _c.id, title: orgContactTitle, customProperties: orgContactProperties }))));
|
|
34
36
|
});
|
|
35
37
|
function renderProp(item) {
|
|
@@ -38,10 +40,12 @@ const ControllerProperties = (props) => {
|
|
|
38
40
|
return (controller.status && (React.createElement(Form.Item, { label: "Status", className: classId + "-status" }, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))));
|
|
39
41
|
case "Confimration Status":
|
|
40
42
|
return (React.createElement(Form.Item, { label: "Confimration Status", className: classId + "-confirmationStatus" },
|
|
41
|
-
React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable:
|
|
43
|
+
React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable: user.can("edit", controller.p), onChange: (status) => controllerStore.edit(id, { data: { ConfirmationStatus: status }, error: "message" }) })));
|
|
42
44
|
case "Confimration Date":
|
|
43
45
|
return (React.createElement(Form.Item, { label: "Confimration Date", className: classId + "-confimrationDate" },
|
|
44
|
-
React.createElement(InlineEdit, { defaultValue: controller.confimrationDate ? dayjs(controller.confimrationDate) : undefined, content: (v) => controller.confimrationDate ? (React.createElement("span", { className: "properties-value" }, dayjs(controller.confimrationDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" },
|
|
46
|
+
React.createElement(InlineEdit, { defaultValue: controller.confimrationDate ? dayjs(controller.confimrationDate) : undefined, content: (v) => controller.confimrationDate ? (React.createElement("span", { className: "properties-value" }, dayjs(controller.confimrationDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p)
|
|
47
|
+
? "Add Confimration Date"
|
|
48
|
+
: "No Confimration Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
45
49
|
if ((controller === null || controller === void 0 ? void 0 : controller.confimrationDate) &&
|
|
46
50
|
dayjs(date).isSame(controller.confimrationDate, "day"))
|
|
47
51
|
return;
|
|
@@ -49,14 +53,16 @@ const ControllerProperties = (props) => {
|
|
|
49
53
|
} })));
|
|
50
54
|
case "Appointment Date":
|
|
51
55
|
return (React.createElement(Form.Item, { label: "Appointment Date", className: classId + "-appointmentDate" },
|
|
52
|
-
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.appointment) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.appointment) ? (React.createElement("span", { className: "properties-value" }, dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" },
|
|
56
|
+
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.appointment) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.appointment) ? (React.createElement("span", { className: "properties-value" }, dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p)
|
|
57
|
+
? "Add Appointment Date"
|
|
58
|
+
: "No Appointment Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
53
59
|
if ((controller === null || controller === void 0 ? void 0 : controller.appointment) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.appointment, "day"))
|
|
54
60
|
return;
|
|
55
61
|
edit({ Appointment: date !== null && date !== void 0 ? date : "" });
|
|
56
62
|
} })));
|
|
57
63
|
case "Cease Date":
|
|
58
64
|
return (React.createElement(Form.Item, { label: "Cease Date", className: classId + "-ceaseDate" },
|
|
59
|
-
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.cease) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.cease) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.cease) ? (React.createElement("span", { className: "properties-value" }, dayjs(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" },
|
|
65
|
+
React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.cease) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.cease) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.cease) ? (React.createElement("span", { className: "properties-value" }, dayjs(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p) ? "Add Cease Date" : "No Cease Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
60
66
|
if ((controller === null || controller === void 0 ? void 0 : controller.cease) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.cease, "day"))
|
|
61
67
|
return;
|
|
62
68
|
edit({ Cease: date !== null && date !== void 0 ? date : "" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,oBAAoB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAm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EAAE;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,CAAC,KAGjC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,oCAAoC;YAClD,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG;YAC/B,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAChC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|