@voplus/morpho-csp 6.1.24 → 6.1.26
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/data/corporate/interfaces.d.ts +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.d.ts +2 -0
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.js +4 -3
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.less +9 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.d.ts +2 -0
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.js +3 -2
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.less +1 -1
- package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.js +5 -27
- package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js +6 -35
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.d.ts +2 -0
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.js +3 -2
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +4 -20
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js +9 -4
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +2 -0
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.less +3 -3
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.less +1 -1
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js +9 -4
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +3 -13
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.less +1 -1
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js +9 -4
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +5 -13
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js +2 -10
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordHeader/index.d.ts +1 -0
- package/es/modules/corporate/filing-record/components/FilingRecordHeader/index.js +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordHeader/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js +4 -17
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.js +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.less +9 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.d.ts +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +4 -11
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.less +9 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearHeader/index.d.ts +2 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearHeader/index.js +3 -2
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearHeader/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js +3 -10
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.less +9 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +3 -14
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +4 -3
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.js +2 -10
- package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
|
+
import { Open, Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
4
|
import { useFilingYear } from "../../../../../../data/filing-year";
|
|
5
5
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
6
|
import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
|
7
7
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
8
8
|
import FilingYearMenu from "../../controls/FilingYearMenu";
|
|
9
9
|
const FilingYearHeader = (props) => {
|
|
10
|
-
const { id } = props;
|
|
10
|
+
const { id, close } = props;
|
|
11
11
|
const filingYear = useFilingYear(id);
|
|
12
12
|
return observe(() => (React.createElement(NodeHeaderLayout, { content: React.createElement(React.Fragment, null,
|
|
13
13
|
"Filing Year ",
|
|
14
14
|
React.createElement(UTCShortDate, { value: filingYear.fYE })), tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
15
15
|
React.createElement(Open, { url: `/filing-years/${id}` }),
|
|
16
|
+
close && React.createElement(Close, { action: props.onClose }),
|
|
16
17
|
React.createElement(FilingYearMenu, { id: id, closeAside: true })) })));
|
|
17
18
|
};
|
|
18
19
|
export default FilingYearHeader;
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearHeader/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,gBAAgB,GAAG,CAAC,KAA4D,EAAE,EAAE;IACzF,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE5B,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,gBAAgB,IAChB,OAAO,EACN;;YACa,oBAAC,YAAY,IAAC,KAAK,EAAE,UAAU,CAAC,GAAG,GAAI,CACjD,EAEJ,IAAI,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;YAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;YACnC,KAAK,IAAI,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,OAAO,GAAI;YAC1C,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5B,GAEV,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Skeleton } from "antd";
|
|
3
|
-
import { observe
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useFilingYear, useFilingYearStore } from "../../../../../../data/filing-year";
|
|
5
5
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
6
6
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
7
7
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
8
8
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
9
|
+
import { DateProperty } from "@voplus/morpho-ui/es/controls/property";
|
|
9
10
|
import { faEllipsisVertical, faCalendar } from "@fortawesome/pro-light-svg-icons";
|
|
10
11
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
11
|
-
import { utcdayjs, isSame } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
|
12
|
-
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
13
12
|
import FilingYearMenu from "../../controls/FilingYearMenu";
|
|
14
13
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
15
14
|
const FilingYearProperties = (props) => {
|
|
@@ -32,13 +31,7 @@ const FilingYearProperties = (props) => {
|
|
|
32
31
|
function renderProp(item) {
|
|
33
32
|
switch (item.name) {
|
|
34
33
|
case "FYE":
|
|
35
|
-
return (React.createElement(
|
|
36
|
-
if (isSame(date, filingYear.fYE))
|
|
37
|
-
return;
|
|
38
|
-
store.edit(props.id, {
|
|
39
|
-
data: { FYE: date !== null && date !== void 0 ? date : "" },
|
|
40
|
-
});
|
|
41
|
-
} }));
|
|
34
|
+
return (React.createElement(DateProperty, { date: filingYear.fYE, editable: user.can("edit", filingYear.p), onEdit: (date) => store.edit(id, { data: { FYE: date }, error: "message" }) }));
|
|
42
35
|
}
|
|
43
36
|
}
|
|
44
37
|
};
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,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BACnB,oBAAC,iBAAiB,IACjB,KAAK,EAAE,eAAe,EACtB,UAAU,EAAE,GAAG,EAAE,CAChB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACrB,oBAAC,IAAI,IAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,OAAO,IAAI,CAAC,CAAC,IAAI,EAAE,IACjE,UAAU,CAAC,CAAC,CAAC,CACR,CACP,CAAC,GAEF,CACU,CACR,CACI,CACX,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,IAA2D;QAC9E,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,KAAK;gBACT,OAAO,CACN,oBAAC,YAAY,IACZ,IAAI,EAAE,UAAU,CAAC,GAAG,EACpB,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EACxC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAC1E,CACF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,eAAe,EAAE,uBAAuB;IACxC,oBAAoB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import FilingTimeLine from "../../../components/FilingRecordTimeLine";
|
|
|
8
8
|
import "./index.less";
|
|
9
9
|
const FilingYearQuickViewDialog = (props) => {
|
|
10
10
|
const { id } = props;
|
|
11
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "filingYear-quick-view", header: React.createElement(FilingYearHeader, { id: id }), subButtons: [{ name: "Document" }, { name: "Activities" }], items: [
|
|
11
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "filingYear-quick-view", header: React.createElement(FilingYearHeader, { id: id, close: true, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }], items: [
|
|
12
12
|
{
|
|
13
13
|
name: "properties",
|
|
14
14
|
icon: faAlignLeft,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,cAAc,MAAM,0CAA0C,CAAC;AACtE,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAIlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,uBAAuB,EACjC,MAAM,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,cAAc,MAAM,0CAA0C,CAAC;AACtE,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAIlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,uBAAuB,EACjC,MAAM,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,QAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,EACnE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAC1D,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,+BAA+B;gBACtC,MAAM,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI;aACxC;SACD;QAED,oBAAC,cAAc,IAAC,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAI,CAChD,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js
CHANGED
|
@@ -2,17 +2,15 @@ import React from "react";
|
|
|
2
2
|
import { useShareCertificate, useShareCertificateStore, } from "../../../../../data/share-certificate";
|
|
3
3
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
4
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
5
|
-
import { utcdayjs, isSame } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
|
6
5
|
import { useReloadContext } from "@voplus/morpho-document-core/es/data/context/ReloadContext";
|
|
7
6
|
import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
|
|
7
|
+
import { DateProperty, NumberProperty } from "@voplus/morpho-ui/es/controls/property";
|
|
8
8
|
import ShareCertificateTypeLabel from "../../controls/ShareCertificateTypeLabel";
|
|
9
9
|
import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
|
|
10
|
-
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
11
10
|
import ShareCertificateStatusLabel from "../../controls/ShareCertificateStatusLabel";
|
|
12
11
|
import CorporateMentionList from "../../../../../components/CorporateMentionList";
|
|
13
12
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
14
13
|
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
15
|
-
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
16
14
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
17
15
|
const ShareCertificateProperties = (props) => {
|
|
18
16
|
/** 加class name 为了方便做integration tests */
|
|
@@ -35,7 +33,7 @@ const ShareCertificateProperties = (props) => {
|
|
|
35
33
|
case "Shareholder":
|
|
36
34
|
return (React.createElement(CorporateMentionList, { canEdit: false, type: "link", contacts: shareCertificate.shareholder ? [shareCertificate.shareholder] : [] }));
|
|
37
35
|
case "Number":
|
|
38
|
-
return (React.createElement(
|
|
36
|
+
return (React.createElement(NumberProperty, { number: shareCertificate.certno, editable: shareCertificate.certificateStatus === "Draft", onSave: (value) => store.edit(id, { data: { Number: value }, error: "message" }) }));
|
|
39
37
|
case "Certificate Type":
|
|
40
38
|
return (React.createElement(ShareCertificateTypeLabel, { editable: shareCertificate.certificateStatus === "Draft", type: shareCertificate.certificateType, onChange: (type) => {
|
|
41
39
|
store.edit(id, { data: { CertificateType: type }, error: "message" });
|
|
@@ -64,16 +62,7 @@ const ShareCertificateProperties = (props) => {
|
|
|
64
62
|
});
|
|
65
63
|
} }));
|
|
66
64
|
case "Certificate Date":
|
|
67
|
-
return (React.createElement(
|
|
68
|
-
? utcdayjs(shareCertificate.certificateDate)
|
|
69
|
-
: undefined, content: (v) => (shareCertificate === null || shareCertificate === void 0 ? void 0 : shareCertificate.certificateDate) ? (React.createElement(UTCShortDate, { className: "properties-value", value: shareCertificate.certificateDate })) : (React.createElement("span", { className: "add-info-style" }, "Add Certificate Date")), editor: DateInputEditor, onSave: (date) => {
|
|
70
|
-
if (isSame(date, shareCertificate.certificateDate))
|
|
71
|
-
return;
|
|
72
|
-
store.edit(id, {
|
|
73
|
-
data: { CertificateDate: date !== null && date !== void 0 ? date : "" },
|
|
74
|
-
error: "message",
|
|
75
|
-
});
|
|
76
|
-
} }));
|
|
65
|
+
return (React.createElement(DateProperty, { date: shareCertificate === null || shareCertificate === void 0 ? void 0 : shareCertificate.certificateDate, onEdit: (date) => store.edit(id, { data: { CertificateDate: date }, error: "message" }) }));
|
|
77
66
|
case "Payment Text":
|
|
78
67
|
return (React.createElement(InlineEdit, { defaultValue: shareCertificate.paymentText, content: (v) => shareCertificate.paymentText ? (React.createElement("span", { className: "properties-value" }, shareCertificate.paymentText)) : (React.createElement("span", { className: "add-info-style" }, "Add Payment Text")), onSave: (value) => store.edit(id, { data: { PaymentText: value }, error: "message" }) }));
|
|
79
68
|
case "Corproate Unit":
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,yBAAyB,MAAM,0CAA0C,CAAC;AACjF,OAAO,uBAAuB,MAAM,oEAAoE,CAAC;AACzG,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AACrF,OAAO,oBAAoB,MAAM,gDAAgD,CAAC;AAClF,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AAetD,MAAM,0BAA0B,GAAG,CAAC,KAanC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,6BAA6B,CAAC;IAE9C,MAAM,EACL,EAAE,EACF,qBAAqB,EACrB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE;QAChD,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,6BAA6B;KACvC,CAAC,CAAC;IACH,MAAM,KA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AG;IACzC,qBAAqB,EAAE,6BAA6B;IACpD,aAAa,EAAE,qBAAqB;IACpC,0BAA0B,EAAE;QAC3B,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAC1B,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,oBAAoB,EAAE;QAC9B,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,cAAc,EAAE;QACxB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
2
|
+
import { Open, Reload, Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
5
|
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
@@ -12,9 +12,10 @@ const ShareCertificateQuickViewDialog = (props) => {
|
|
|
12
12
|
const [loaded, setLoaded] = useState(true);
|
|
13
13
|
const meta = useMetaStore();
|
|
14
14
|
const shareCertificate = useShareCertificate(id, { reload: true });
|
|
15
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, header: React.createElement(React.Fragment, null, loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, descriptionVisible: false,
|
|
15
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, header: React.createElement(React.Fragment, null, loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, descriptionVisible: false, tools: React.createElement(ToolBar, { id: id },
|
|
16
|
+
React.createElement(Open, { url: meta.getRoute(shareCertificate) }),
|
|
16
17
|
React.createElement(Reload, { action: onReload }),
|
|
17
|
-
React.createElement(
|
|
18
|
+
React.createElement(Close, { action: props.onCancel })) }))) },
|
|
18
19
|
React.createElement(ShareCertificateProperties, { id: id, onReloadMenu: onReload }))));
|
|
19
20
|
/** reload data */
|
|
20
21
|
function onReload() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,0BAA0B,MA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AEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
2
1
|
import React from "react";
|
|
3
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
4
2
|
import Properties from "../CLDAFormProperties";
|
|
5
|
-
import
|
|
6
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
3
|
+
import DocumentQuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
|
7
4
|
import { observe } from "@voplus/morpho-ui";
|
|
8
|
-
import { useCLDAForm } from "../../../../../data/clda-form";
|
|
9
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
10
5
|
const CLDAFormQuickViewDialog = (props) => {
|
|
11
6
|
const { id } = props;
|
|
12
|
-
|
|
13
|
-
const incorporation = useCLDAForm(id, { includes: "tags" });
|
|
14
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, header: React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, descriptionVisible: false, style: { paddingRight: "44px" }, tools: React.createElement(ToolBar, { id: id },
|
|
15
|
-
React.createElement(Open, { url: meta.getRoute(incorporation) })) }) },
|
|
7
|
+
return observe(() => (React.createElement(DocumentQuickViewDialog, { ...props, subButtons: [{ name: "Document" }, { name: "Activities" }, { name: "Link" }] },
|
|
16
8
|
React.createElement(Properties, { id: id }))));
|
|
17
9
|
};
|
|
18
10
|
export default CLDAFormQuickViewDialog;
|
package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,uBAAuB,GAAG,CAAC,KAIhC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,OACnB,KAAK,EACT,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAE5E,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,GAAI,CACG,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|