@undp/carbon-library 1.0.150-CARBON-320.1 → 1.0.150-CARBON-343.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +140 -96
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +140 -96
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -19444,7 +19444,7 @@ var AddNdcActionComponent = function (props) {
|
|
19444
19444
|
React.createElement(Steps, { progressDot: true, direction: "vertical", current: current, items: stepItems })))));
|
19445
19445
|
};
|
19446
19446
|
|
19447
|
-
var css_248z$d = ".ndc-details-view .card-container {\n margin-bottom: 16px;\n width: 100%;\n border-radius: 10px; }\n .ndc-details-view .card-container .co-benifits-view .title {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n margin-left: 0.5rem; }\n .ndc-details-view .card-container .action-btns {\n margin-top: 25px;\n margin-bottom: -15px;\n justify-content: end; }\n\n.ndc-details-view .fix-height {\n height: 350px; }\n
|
19447
|
+
var css_248z$d = ".ndc-details-view .card-container {\n margin-bottom: 16px;\n width: 100%;\n border-radius: 10px; }\n .ndc-details-view .card-container .co-benifits-view .title {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n margin-left: 0.5rem; }\n .ndc-details-view .card-container .action-btns {\n margin-top: 25px;\n margin-bottom: -15px;\n justify-content: end; }\n\n.ndc-details-view .fix-height {\n height: 350px; }\n";
|
19448
19448
|
styleInject(css_248z$d);
|
19449
19449
|
|
19450
19450
|
var css_248z$c = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n\n.info-view .field-value {\n color: rgba(58, 53, 65, 0.6);\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-value .row {\n display: flex;\n width: 40%;\n align-items: center;\n justify-content: space-between; }\n .info-view .field-value .row .key {\n display: flex;\n width: 50%;\n align-items: center;\n justify-content: flex-start; }\n .info-view .field-value .row .data {\n display: flex;\n width: 50%;\n align-items: center;\n justify-content: flex-start; }\n\n.info-view .field {\n margin: 15px 25px;\n font-size: 0.8rem; }\n";
|
@@ -19542,19 +19542,15 @@ var NdcActionViewComponent = function (props) {
|
|
19542
19542
|
var userInfoState = useUserContext().userInfoState;
|
19543
19543
|
var post = useConnection().post;
|
19544
19544
|
var state = useLocation().state;
|
19545
|
-
var _d = useState({})
|
19545
|
+
var _d = useState({}), ndcActionReportDetails = _d[0], setNdcActionReportDetails = _d[1];
|
19546
19546
|
var _e = useState(false), isLoading = _e[0], setIsLoading = _e[1];
|
19547
|
-
var _f = useState(),
|
19548
|
-
var _g = useState(
|
19549
|
-
var _h = useState(),
|
19550
|
-
var _j = useState(
|
19551
|
-
var _k = useState(),
|
19552
|
-
var _l = useState()
|
19553
|
-
var _m = useState(
|
19554
|
-
var _o = useState(0), emissionsReductionAchieved = _o[0], setEmissionsReductionAchieved = _o[1];
|
19555
|
-
var _p = useState([]), programmeOwnerId = _p[0], setProgrammeOwnerId = _p[1];
|
19556
|
-
var _q = useState(false), canUploadMonitorReport = _q[0], setCanUploadMonitorReport = _q[1];
|
19557
|
-
var _r = useState(false), monitoringReportAccepted = _r[0], setMonitoringReportAccepted = _r[1];
|
19547
|
+
var _f = useState(), ndcActionDetails = _f[0], setNdcActionDetails = _f[1];
|
19548
|
+
var _g = useState(); _g[0]; var setCoBenifitsComponentnDetails = _g[1];
|
19549
|
+
var _h = useState(0), emissionsReductionExpected = _h[0], setEmissionsReductionExpected = _h[1];
|
19550
|
+
var _j = useState(0), emissionsReductionAchieved = _j[0], setEmissionsReductionAchieved = _j[1];
|
19551
|
+
var _k = useState([]), programmeOwnerId = _k[0], setProgrammeOwnerId = _k[1];
|
19552
|
+
var _l = useState(false), canUploadMonitorReport = _l[0], setCanUploadMonitorReport = _l[1];
|
19553
|
+
var _m = useState(false), monitoringReportAccepted = _m[0], setMonitoringReportAccepted = _m[1];
|
19558
19554
|
var getProgrammeById = function (programmeId) { return __awaiter(void 0, void 0, void 0, function () {
|
19559
19555
|
var response, error_1;
|
19560
19556
|
var _a, _b, _c;
|
@@ -19596,16 +19592,13 @@ var NdcActionViewComponent = function (props) {
|
|
19596
19592
|
}
|
19597
19593
|
});
|
19598
19594
|
}); };
|
19599
|
-
var getProjectReportActions = function (reportData
|
19595
|
+
var getProjectReportActions = function (reportData) {
|
19600
19596
|
return (React.createElement(Row, null,
|
19601
19597
|
React.createElement("div", { className: "icon" },
|
19602
19598
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19603
19599
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19604
19600
|
React.createElement("div", { className: "link mg-left-1" }, (reportData === null || reportData === void 0 ? void 0 : reportData.url) && linkDocVisible(reportData === null || reportData === void 0 ? void 0 : reportData.status) && (React.createElement("a", { href: reportData === null || reportData === void 0 ? void 0 : reportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
19605
|
-
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))
|
19606
|
-
(reportData === null || reportData === void 0 ? void 0 : reportData.txTime) && (React.createElement("div", { className: "time" },
|
19607
|
-
moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19608
|
-
" ~ " + reportVersion))));
|
19601
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))));
|
19609
19602
|
};
|
19610
19603
|
var getProjectReports = function () { return __awaiter(void 0, void 0, void 0, function () {
|
19611
19604
|
var reportDetails, response, exception_1;
|
@@ -19653,24 +19646,12 @@ var NdcActionViewComponent = function (props) {
|
|
19653
19646
|
if ((item === null || item === void 0 ? void 0 : item.status) === DocumentStatus.ACCEPTED) {
|
19654
19647
|
setMonitoringReportAccepted(true);
|
19655
19648
|
}
|
19656
|
-
var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
|
19657
|
-
var version = versionfull ? versionfull.split(".")[0] : "1";
|
19658
|
-
var moniteringVersion = version.startsWith("V") ? version : "V1";
|
19659
19649
|
reportDetails[t("ndcAction:viewMoniteringReport")] =
|
19660
|
-
getProjectReportActions(item
|
19661
|
-
setMonitoringReportData(item);
|
19662
|
-
setMonitoringReportversion(moniteringVersion);
|
19650
|
+
getProjectReportActions(item);
|
19663
19651
|
}
|
19664
19652
|
else if ((_b = item === null || item === void 0 ? void 0 : item.url) === null || _b === void 0 ? void 0 : _b.includes("VERIFICATION_REPORT")) {
|
19665
|
-
var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
|
19666
|
-
var version = versionfull ? versionfull.split(".")[0] : "1";
|
19667
|
-
var verificationVersion = version.startsWith("V")
|
19668
|
-
? version
|
19669
|
-
: "V1";
|
19670
19653
|
reportDetails[t("ndcAction:viewVerificationReport")] =
|
19671
|
-
getProjectReportActions(item
|
19672
|
-
setVerificationReportData(item);
|
19673
|
-
setVerificationReportversion(verificationVersion);
|
19654
|
+
getProjectReportActions(item);
|
19674
19655
|
}
|
19675
19656
|
});
|
19676
19657
|
}
|
@@ -19924,60 +19905,8 @@ var NdcActionViewComponent = function (props) {
|
|
19924
19905
|
React.createElement(Col, { lg: 8, md: 24 },
|
19925
19906
|
React.createElement(Skeleton, { loading: isLoading, active: true },
|
19926
19907
|
React.createElement(Card, { className: "card-container fix-height" },
|
19927
|
-
React.createElement("div",
|
19928
|
-
React.createElement(
|
19929
|
-
React.createElement("span", { className: "title-text" }, t("ndcAction:viewReportsTitle"))),
|
19930
|
-
React.createElement("div", { className: "ndc-action-report-body" },
|
19931
|
-
React.createElement("div", { className: "report-details" },
|
19932
|
-
React.createElement("div", { className: "report-type" },
|
19933
|
-
React.createElement("div", { className: "name-time-container" },
|
19934
|
-
React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
|
19935
|
-
? "name"
|
19936
|
-
: "empty" }, t("programme:monitoringReport")),
|
19937
|
-
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
19938
|
-
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19939
|
-
" ~ " + monitoringReportversion))),
|
19940
|
-
React.createElement("div", { className: "icon" }, !(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
|
19941
|
-
? t("programme:notAuthToUploadDoc")
|
19942
|
-
: uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId)
|
19943
|
-
? !canUploadMonitorReport &&
|
19944
|
-
t("programme:programmeNotAuth")
|
19945
|
-
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
19946
|
-
React.createElement(FileAddOutlined, null))))),
|
19947
|
-
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Row, null,
|
19948
|
-
React.createElement("div", { className: "icon" },
|
19949
|
-
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
19950
|
-
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19951
|
-
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
19952
|
-
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19953
|
-
React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
|
19954
|
-
linkDocVisible(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) && (React.createElement("a", { href: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
19955
|
-
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
|
19956
|
-
React.createElement("div", { className: "report-details" },
|
19957
|
-
React.createElement("div", { className: "report-type" },
|
19958
|
-
React.createElement("div", { className: "name-time-container" },
|
19959
|
-
React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
|
19960
|
-
? "name"
|
19961
|
-
: "empty" }, t("programme:verificationReport")),
|
19962
|
-
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
|
19963
|
-
moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19964
|
-
" ~ " + verificationReportVersion))),
|
19965
|
-
React.createElement("div", { className: "icon" }, !(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
|
19966
|
-
? t("programme:notAuthToUploadDoc")
|
19967
|
-
: uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId)
|
19968
|
-
? !monitoringReportAccepted &&
|
19969
|
-
t("programme:monitoringRepNotApproved")
|
19970
|
-
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
19971
|
-
React.createElement(FileAddOutlined, null))))),
|
19972
|
-
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Row, null,
|
19973
|
-
React.createElement("div", { className: "icon" },
|
19974
|
-
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
19975
|
-
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19976
|
-
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
19977
|
-
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19978
|
-
React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
|
19979
|
-
linkDocVisible(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) && (React.createElement("a", { href: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
|
19980
|
-
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
|
19908
|
+
React.createElement("div", null,
|
19909
|
+
React.createElement(InfoView, { data: ndcActionReportDetails, title: t("ndcAction:viewReportsTitle"), icon: React.createElement(Icon.FileEarmarkText, null) })))))),
|
19981
19910
|
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.Mitigation ||
|
19982
19911
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.CrossCutting) && (React.createElement(Row, null,
|
19983
19912
|
React.createElement(Col, { lg: 24, className: "gutter-row" },
|
@@ -24578,6 +24507,8 @@ var NdcDetailsComponent = function (props) {
|
|
24578
24507
|
var _d = useState("add_new"), selectedTab = _d[0], setSelectedTab = _d[1];
|
24579
24508
|
var selectedPeriod = useRef({});
|
24580
24509
|
var addedNdcDetailId = useRef(0);
|
24510
|
+
var selectedNdcDetail = useRef({});
|
24511
|
+
var _e = useState(0), tableKey = _e[0]; _e[1];
|
24581
24512
|
var userInfoState = useUserContext().userInfoState;
|
24582
24513
|
var isAddRangeVisible = function () {
|
24583
24514
|
return (((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY ||
|
@@ -24610,6 +24541,15 @@ var NdcDetailsComponent = function (props) {
|
|
24610
24541
|
return [];
|
24611
24542
|
}
|
24612
24543
|
};
|
24544
|
+
var getSubNdcDetails = function (key) {
|
24545
|
+
var ndcDetail = ndcDetailsData.find(function (item) { return item.key === key; });
|
24546
|
+
if (ndcDetail) {
|
24547
|
+
return ndcDetail.subNdcDetails;
|
24548
|
+
}
|
24549
|
+
else {
|
24550
|
+
return [];
|
24551
|
+
}
|
24552
|
+
};
|
24613
24553
|
var defaultColumns = [
|
24614
24554
|
{
|
24615
24555
|
title: t("ndc:ndcColumnsNationalPlanObj"),
|
@@ -24617,6 +24557,7 @@ var NdcDetailsComponent = function (props) {
|
|
24617
24557
|
key: "nationalPlanObj",
|
24618
24558
|
align: "left",
|
24619
24559
|
editable: true,
|
24560
|
+
width: 800,
|
24620
24561
|
},
|
24621
24562
|
{
|
24622
24563
|
title: t("ndc:ndcColumnsKpi"),
|
@@ -24624,9 +24565,10 @@ var NdcDetailsComponent = function (props) {
|
|
24624
24565
|
key: "kpi",
|
24625
24566
|
align: "left",
|
24626
24567
|
editable: true,
|
24568
|
+
width: 100,
|
24627
24569
|
},
|
24628
24570
|
{
|
24629
|
-
title:
|
24571
|
+
title: "Ministry",
|
24630
24572
|
dataIndex: "ministry",
|
24631
24573
|
key: "ministry",
|
24632
24574
|
align: "left",
|
@@ -24654,7 +24596,7 @@ var NdcDetailsComponent = function (props) {
|
|
24654
24596
|
endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
|
24655
24597
|
nationalPlanObj: t("ndc:enterNewPlanTxt"),
|
24656
24598
|
kpi: 0,
|
24657
|
-
ministry: "Please add the Ministry name"
|
24599
|
+
ministry: "Please add the Ministry name",
|
24658
24600
|
};
|
24659
24601
|
setNdcDetailsData(__spreadArray(__spreadArray([], ndcDetailsData, true), [newData], false));
|
24660
24602
|
}
|
@@ -24736,6 +24678,10 @@ var NdcDetailsComponent = function (props) {
|
|
24736
24678
|
React.createElement(Button, { type: "primary", onClick: onAddNewPeriod, htmlType: "submit", loading: loading }, t("ndc:submit")),
|
24737
24679
|
React.createElement(Button, { className: "back-btn", onClick: onCancelPeriod, loading: loading }, t("ndc:back"))))));
|
24738
24680
|
}
|
24681
|
+
function getSubNdcActionContent(record) {
|
24682
|
+
selectedNdcDetail.current = record;
|
24683
|
+
return (React.createElement(Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getSubNdcDetails(record.key), columns: columns, showHeader: false, pagination: false }));
|
24684
|
+
}
|
24739
24685
|
var onTabChange = function (key) {
|
24740
24686
|
setSelectedTab(key);
|
24741
24687
|
};
|
@@ -24747,7 +24693,25 @@ var NdcDetailsComponent = function (props) {
|
|
24747
24693
|
endDate: new Date("2020-03-25"),
|
24748
24694
|
nationalPlanObj: "Enhance value addition in key growth opportunities",
|
24749
24695
|
kpi: 25,
|
24750
|
-
ministry: "Ministry of
|
24696
|
+
ministry: "Ministry of Environment",
|
24697
|
+
subNdcDetails: [
|
24698
|
+
{
|
24699
|
+
key: 6,
|
24700
|
+
startDate: new Date("2019-03-25"),
|
24701
|
+
endDate: new Date("2020-03-25"),
|
24702
|
+
nationalPlanObj: "Enhance value addition in key growth opportunities sub details",
|
24703
|
+
kpi: 25,
|
24704
|
+
ministry: "Ministry of Agriculture, Water and Forestry (MAWF)",
|
24705
|
+
},
|
24706
|
+
{
|
24707
|
+
key: 7,
|
24708
|
+
startDate: new Date("2019-03-25"),
|
24709
|
+
endDate: new Date("2020-03-25"),
|
24710
|
+
nationalPlanObj: "",
|
24711
|
+
kpi: "",
|
24712
|
+
ministry: "",
|
24713
|
+
},
|
24714
|
+
],
|
24751
24715
|
},
|
24752
24716
|
{
|
24753
24717
|
key: 2,
|
@@ -24755,7 +24719,35 @@ var NdcDetailsComponent = function (props) {
|
|
24755
24719
|
endDate: new Date("2019-08-25"),
|
24756
24720
|
nationalPlanObj: "Strengthen the private sector to create 10,000 jobs",
|
24757
24721
|
kpi: 10500,
|
24758
|
-
ministry: "Ministry of
|
24722
|
+
ministry: "Ministry of Environment",
|
24723
|
+
subNdcDetails: [
|
24724
|
+
{
|
24725
|
+
key: 8,
|
24726
|
+
startDate: new Date("2019-03-25"),
|
24727
|
+
endDate: new Date("2020-03-25"),
|
24728
|
+
nationalPlanObj: "",
|
24729
|
+
kpi: "",
|
24730
|
+
ministry: "",
|
24731
|
+
},
|
24732
|
+
],
|
24733
|
+
},
|
24734
|
+
{
|
24735
|
+
key: 12,
|
24736
|
+
startDate: new Date("2019-03-25"),
|
24737
|
+
endDate: new Date("2019-08-25"),
|
24738
|
+
nationalPlanObj: "Other",
|
24739
|
+
kpi: 10500,
|
24740
|
+
ministry: "Ministry of Environment",
|
24741
|
+
subNdcDetails: [
|
24742
|
+
{
|
24743
|
+
key: 8,
|
24744
|
+
startDate: new Date("2019-03-25"),
|
24745
|
+
endDate: new Date("2020-03-25"),
|
24746
|
+
nationalPlanObj: "",
|
24747
|
+
kpi: "",
|
24748
|
+
ministry: "",
|
24749
|
+
},
|
24750
|
+
],
|
24759
24751
|
},
|
24760
24752
|
{
|
24761
24753
|
key: 3,
|
@@ -24763,7 +24755,17 @@ var NdcDetailsComponent = function (props) {
|
|
24763
24755
|
endDate: new Date("2022-03-25"),
|
24764
24756
|
nationalPlanObj: "Consolidate and increase the stock and quality of productive infrastructure by 50%",
|
24765
24757
|
kpi: 48,
|
24766
|
-
ministry: "Ministry of
|
24758
|
+
ministry: "Ministry of Environment",
|
24759
|
+
subNdcDetails: [
|
24760
|
+
{
|
24761
|
+
key: 9,
|
24762
|
+
startDate: new Date("2019-03-25"),
|
24763
|
+
endDate: new Date("2020-03-25"),
|
24764
|
+
nationalPlanObj: "",
|
24765
|
+
kpi: "",
|
24766
|
+
ministry: "",
|
24767
|
+
},
|
24768
|
+
],
|
24767
24769
|
},
|
24768
24770
|
{
|
24769
24771
|
key: 4,
|
@@ -24771,7 +24773,17 @@ var NdcDetailsComponent = function (props) {
|
|
24771
24773
|
endDate: new Date("2022-05-25"),
|
24772
24774
|
nationalPlanObj: "Enhance the productivity and social wellbeing of the population",
|
24773
24775
|
kpi: 20,
|
24774
|
-
ministry: "Ministry of Environment,
|
24776
|
+
ministry: "Ministry of Environment",
|
24777
|
+
subNdcDetails: [
|
24778
|
+
{
|
24779
|
+
key: 10,
|
24780
|
+
startDate: new Date("2019-03-25"),
|
24781
|
+
endDate: new Date("2020-03-25"),
|
24782
|
+
nationalPlanObj: "",
|
24783
|
+
kpi: "",
|
24784
|
+
ministry: "",
|
24785
|
+
},
|
24786
|
+
],
|
24775
24787
|
},
|
24776
24788
|
{
|
24777
24789
|
key: 5,
|
@@ -24779,7 +24791,35 @@ var NdcDetailsComponent = function (props) {
|
|
24779
24791
|
endDate: new Date("2023-03-25"),
|
24780
24792
|
nationalPlanObj: "Strengthen the role of the state in guiding and facilitating development",
|
24781
24793
|
kpi: 10,
|
24782
|
-
ministry: "Ministry of
|
24794
|
+
ministry: "Ministry of Environment",
|
24795
|
+
subNdcDetails: [
|
24796
|
+
{
|
24797
|
+
key: 11,
|
24798
|
+
startDate: new Date("2019-03-25"),
|
24799
|
+
endDate: new Date("2020-03-25"),
|
24800
|
+
nationalPlanObj: "",
|
24801
|
+
kpi: "",
|
24802
|
+
ministry: "",
|
24803
|
+
},
|
24804
|
+
],
|
24805
|
+
},
|
24806
|
+
{
|
24807
|
+
key: 13,
|
24808
|
+
startDate: new Date("2022-03-25"),
|
24809
|
+
endDate: new Date("2023-03-25"),
|
24810
|
+
nationalPlanObj: "Other",
|
24811
|
+
kpi: 10,
|
24812
|
+
ministry: "Ministry of Environment",
|
24813
|
+
subNdcDetails: [
|
24814
|
+
{
|
24815
|
+
key: 11,
|
24816
|
+
startDate: new Date("2019-03-25"),
|
24817
|
+
endDate: new Date("2020-03-25"),
|
24818
|
+
nationalPlanObj: "",
|
24819
|
+
kpi: "",
|
24820
|
+
ministry: "",
|
24821
|
+
},
|
24822
|
+
],
|
24783
24823
|
},
|
24784
24824
|
];
|
24785
24825
|
var initialPeriods = [
|
@@ -24822,7 +24862,11 @@ var NdcDetailsComponent = function (props) {
|
|
24822
24862
|
React.createElement(Tabs, { centered: false, defaultActiveKey: "1", items: periodItems, activeKey: selectedTab, onChange: onTabChange })),
|
24823
24863
|
selectedTab !== "add_new" && (React.createElement("div", null,
|
24824
24864
|
React.createElement("div", null,
|
24825
|
-
React.createElement(Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns,
|
24865
|
+
React.createElement(Table, { key: tableKey, components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, expandable: {
|
24866
|
+
expandedRowRender: function (record) { return getSubNdcActionContent(record); },
|
24867
|
+
indentSize: 0,
|
24868
|
+
defaultExpandedRowKeys: [selectedNdcDetail.current.key],
|
24869
|
+
}, footer: function () {
|
24826
24870
|
return isAddNdcActionVisible() && (React.createElement(Row, { justify: "center" },
|
24827
24871
|
React.createElement(Button, { onClick: onAddNewNdcDetail, type: "default", style: {
|
24828
24872
|
marginBottom: 16,
|
@@ -25484,7 +25528,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
25484
25528
|
React.createElement(Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
25485
25529
|
};
|
25486
25530
|
|
25487
|
-
var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40
|
25531
|
+
var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%; }\n .ndc-action-body .report-details .report-link .version {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link .link {\n margin-left: 1rem; }\n";
|
25488
25532
|
styleInject(css_248z$2);
|
25489
25533
|
|
25490
25534
|
var NdcActionBody = function (props) {
|
@@ -25815,7 +25859,7 @@ var NdcActionBody = function (props) {
|
|
25815
25859
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
25816
25860
|
};
|
25817
25861
|
|
25818
|
-
var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-key .label-container {\n display: flex;\n flex-direction: row; }\n .info-view .field-key .label {\n width: 70%; }\n .info-view .field-key .label-uploaded {\n color: rgba(58, 53, 65, 0.8);\n width: 70%; }\n\n.info-view .field-value {\n color: rgba(58, 53, 65, 0.6);\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-value .link {\n display: flex;\n flex-direction: row
|
25862
|
+
var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-key .label-container {\n display: flex;\n flex-direction: row; }\n .info-view .field-key .label {\n width: 70%; }\n .info-view .field-key .label-uploaded {\n color: rgba(58, 53, 65, 0.8);\n width: 70%; }\n\n.info-view .field-value {\n color: rgba(58, 53, 65, 0.6);\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-value .link {\n display: flex;\n flex-direction: row; }\n\n.info-view .field {\n margin: 15px 25px;\n font-size: 0.8rem; }\n";
|
25819
25863
|
styleInject(css_248z$1);
|
25820
25864
|
|
25821
25865
|
var ProgrammeDocuments = function (props) {
|