@undp/carbon-library 1.0.73 → 1.0.75
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/dist/cjs/index.js +51 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -1
- package/dist/cjs/types/Components/Common/Investment/investmentActionModel.d.ts +1 -1
- package/dist/cjs/types/Components/Common/NdcActionDetails/ndcActionDetails.d.ts +1 -1
- package/dist/esm/index.js +51 -25
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -1
- package/dist/esm/types/Components/Common/Investment/investmentActionModel.d.ts +1 -1
- package/dist/esm/types/Components/Common/NdcActionDetails/ndcActionDetails.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -16042,10 +16042,11 @@ var InvestmentCreationComponent = function (props) {
|
|
16042
16042
|
};
|
16043
16043
|
|
16044
16044
|
var InvestmentActionModel = function (props) {
|
16045
|
-
var investment = props.investment, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText; props.subText; var openModal = props.openModal, title = props.title, icon = props.icon, type = props.type, remarkRequired = props.remarkRequired,
|
16045
|
+
var investment = props.investment, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText; props.subText; var openModal = props.openModal, title = props.title, icon = props.icon, type = props.type, remarkRequired = props.remarkRequired, translator = props.translator;
|
16046
16046
|
var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
16047
16047
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
16048
16048
|
var _c = React.useState(false), checked = _c[0], setChecked = _c[1];
|
16049
|
+
var t = translator.t;
|
16049
16050
|
var companyList = !investment.isRetirement
|
16050
16051
|
? [
|
16051
16052
|
{
|
@@ -16146,7 +16147,8 @@ var InvestmentActionModel = function (props) {
|
|
16146
16147
|
};
|
16147
16148
|
|
16148
16149
|
var InvestmentManagementComponent = function (props) {
|
16149
|
-
var
|
16150
|
+
var translator = props.translator, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext;
|
16151
|
+
var t = translator.t;
|
16150
16152
|
var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
|
16151
16153
|
label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
|
16152
16154
|
value: Object.values(exports.InvestmentStatus)[index],
|
@@ -16670,7 +16672,7 @@ var InvestmentManagementComponent = function (props) {
|
|
16670
16672
|
popupInfo && selectedReq && (React.createElement(InvestmentActionModel, { investment: selectedReq, onCancel: function () {
|
16671
16673
|
setModalVisible(false);
|
16672
16674
|
setSelectedReq(undefined);
|
16673
|
-
}, actionBtnText: popupInfo.actionBtnText, onFinish: popupInfo === null || popupInfo === void 0 ? void 0 : popupInfo.okAction, subText: "", openModal: modalVisible, icon: popupInfo.icon, title: popupInfo.title, type: popupInfo.type, remarkRequired: popupInfo.remarkRequired,
|
16675
|
+
}, actionBtnText: popupInfo.actionBtnText, onFinish: popupInfo === null || popupInfo === void 0 ? void 0 : popupInfo.okAction, subText: "", openModal: modalVisible, icon: popupInfo.icon, title: popupInfo.title, type: popupInfo.type, remarkRequired: popupInfo.remarkRequired, translator: translator }))));
|
16674
16676
|
};
|
16675
16677
|
|
16676
16678
|
var css_248z$6 = ".ndc-management .ant-checkbox-checked .ant-checkbox-input[value='Pending'] + .ant-checkbox-inner {\n background-color: rgba(118, 195, 39, 0.6);\n border: none; }\n\n.ndc-management .ant-checkbox-checked .ant-checkbox-input[value='Approved'] + .ant-checkbox-inner {\n background-color: #16b1ff;\n border: none; }\n";
|
@@ -17058,12 +17060,14 @@ var css_248z$5 = ".ndc-action-details-container Input {\n height: 40px; }\n\n.n
|
|
17058
17060
|
styleInject(css_248z$5);
|
17059
17061
|
|
17060
17062
|
var NdcActionDetails = function (props) {
|
17061
|
-
var isBackBtnVisible = props.isBackBtnVisible, onFormSubmit = props.onFormSubmit, ndcActionDetails = props.ndcActionDetails,
|
17063
|
+
var isBackBtnVisible = props.isBackBtnVisible, onFormSubmit = props.onFormSubmit, ndcActionDetails = props.ndcActionDetails, translator = props.translator, programmeDetails = props.programmeDetails, onClickedBackBtn = props.onClickedBackBtn;
|
17062
17064
|
var _a = React.useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
|
17063
17065
|
var _b = React.useState(), mitigationType = _b[0], setmitigationType = _b[1];
|
17064
17066
|
var _c = React.useState(""), sector = _c[0], setSector = _c[1];
|
17065
17067
|
var _d = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _d[0]; _d[1];
|
17066
17068
|
var form = antd.Form.useForm()[0];
|
17069
|
+
translator.setDefaultNamespace('ndcAction');
|
17070
|
+
var t = translator.t;
|
17067
17071
|
var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
|
17068
17072
|
? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
|
17069
17073
|
: 5000000;
|
@@ -17488,9 +17492,11 @@ var css_248z$3 = ".co-benifits-container {\n width: 100%; }\n .co-benifits-con
|
|
17488
17492
|
styleInject(css_248z$3);
|
17489
17493
|
|
17490
17494
|
var GenderParity = function (props) {
|
17491
|
-
var onFormSubmit = props.onFormSubmit, genderParityViewData = props.genderParityViewData, viewOnly = props.viewOnly,
|
17495
|
+
var onFormSubmit = props.onFormSubmit, genderParityViewData = props.genderParityViewData, viewOnly = props.viewOnly, translator = props.translator;
|
17492
17496
|
var formOne = antd.Form.useForm()[0];
|
17493
17497
|
var formTwo = antd.Form.useForm()[0];
|
17498
|
+
translator.setDefaultNamespace("genderParity");
|
17499
|
+
var t = translator.t;
|
17494
17500
|
var _a = React.useState(), genderParityDetails = _a[0], setGenderParityDetails = _a[1];
|
17495
17501
|
var genderParityDetailsOne = [
|
17496
17502
|
{
|
@@ -17616,7 +17622,9 @@ var GenderParity = function (props) {
|
|
17616
17622
|
};
|
17617
17623
|
|
17618
17624
|
var Assessment = function (props) {
|
17619
|
-
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection,
|
17625
|
+
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
|
17626
|
+
translator.setDefaultNamespace("coBenifits");
|
17627
|
+
var t = translator.t;
|
17620
17628
|
var form1 = antd.Form.useForm()[0];
|
17621
17629
|
var form2 = antd.Form.useForm()[0];
|
17622
17630
|
var form3 = antd.Form.useForm()[0];
|
@@ -17772,7 +17780,9 @@ var Assessment = function (props) {
|
|
17772
17780
|
React.createElement(antd.Row, null,
|
17773
17781
|
React.createElement(antd.Form, { name: "from1", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form1, onValuesChange: function () { return validateForms(); } },
|
17774
17782
|
!viewOnly && (React.createElement("div", { className: "radio-content" },
|
17775
|
-
React.createElement(antd.Form.Item, { label: t("assessmentIsThirdPartyVerified"
|
17783
|
+
React.createElement(antd.Form.Item, { label: t("assessmentIsThirdPartyVerified", {
|
17784
|
+
ns: "coBenifits",
|
17785
|
+
}), className: "form-item", name: "IsThirdPartyVerified" },
|
17776
17786
|
React.createElement(antd.Radio.Group, { size: "middle", onChange: onIsThirdPartyVerifiedChanged },
|
17777
17787
|
React.createElement("div", { className: "radio-container" },
|
17778
17788
|
React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
|
@@ -18154,7 +18164,9 @@ var SdgGoals = function (props) {
|
|
18154
18164
|
};
|
18155
18165
|
|
18156
18166
|
var Safeguards = function (props) {
|
18157
|
-
var onFormSubmit = props.onFormSubmit, safeGuardViewData = props.safeGuardViewData, viewOnly = props.viewOnly,
|
18167
|
+
var onFormSubmit = props.onFormSubmit, safeGuardViewData = props.safeGuardViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18168
|
+
translator.setDefaultNamespace("safeguards");
|
18169
|
+
var t = translator.t;
|
18158
18170
|
var _a = React.useState(), safeguardDetails = _a[0], setSafeguardDetails = _a[1];
|
18159
18171
|
var form = antd.Form.useForm()[0];
|
18160
18172
|
var initialFormElementList = [
|
@@ -18647,7 +18659,9 @@ var Safeguards = function (props) {
|
|
18647
18659
|
};
|
18648
18660
|
|
18649
18661
|
var Environmental = function (props) {
|
18650
|
-
var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly,
|
18662
|
+
var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18663
|
+
translator.setDefaultNamespace('environment');
|
18664
|
+
var t = translator.t;
|
18651
18665
|
var environmentalDetailsInitial = [
|
18652
18666
|
{
|
18653
18667
|
section: t("air"),
|
@@ -18962,7 +18976,9 @@ var Environmental = function (props) {
|
|
18962
18976
|
};
|
18963
18977
|
|
18964
18978
|
var Economic = function (props) {
|
18965
|
-
var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly,
|
18979
|
+
var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18980
|
+
translator.setDefaultNamespace("economic");
|
18981
|
+
var t = translator.t;
|
18966
18982
|
var economicDetailsInitial = [
|
18967
18983
|
{
|
18968
18984
|
section: t("growth"),
|
@@ -19245,7 +19261,9 @@ var Economic = function (props) {
|
|
19245
19261
|
};
|
19246
19262
|
|
19247
19263
|
var Social = function (props) {
|
19248
|
-
var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly,
|
19264
|
+
var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
|
19265
|
+
translator.setDefaultNamespace("social");
|
19266
|
+
var t = translator.t;
|
19249
19267
|
var form = antd.Form.useForm()[0];
|
19250
19268
|
var _a = React.useState(0); _a[0]; var setRefreshCounter = _a[1];
|
19251
19269
|
var _b = React.useState(), socialDetails = _b[0], setSocialDetails = _b[1];
|
@@ -19529,10 +19547,12 @@ var Social = function (props) {
|
|
19529
19547
|
};
|
19530
19548
|
|
19531
19549
|
var CoBenifitsComponent = function (props) {
|
19532
|
-
var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, sdgGoalImages = props.sdgGoalImages,
|
19550
|
+
var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, sdgGoalImages = props.sdgGoalImages, translator = props.translator, useConnection = props.useConnection;
|
19533
19551
|
var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
|
19534
19552
|
var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
|
19535
19553
|
var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
|
19554
|
+
translator.setDefaultNamespace('coBenifits');
|
19555
|
+
var t = translator.t;
|
19536
19556
|
var onSdgGoalsFormSubmit = function (sdgGoalsDetails) {
|
19537
19557
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
|
19538
19558
|
};
|
@@ -19569,13 +19589,13 @@ var CoBenifitsComponent = function (props) {
|
|
19569
19589
|
{
|
19570
19590
|
label: t("coBenifits:genderPart"),
|
19571
19591
|
key: "2",
|
19572
|
-
children: (React.createElement(GenderParity, { onFormSubmit: onGenderParityFormSubmit, genderParityViewData: viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.genderPariy), viewOnly: viewOnly || false,
|
19592
|
+
children: (React.createElement(GenderParity, { onFormSubmit: onGenderParityFormSubmit, genderParityViewData: viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.genderPariy), viewOnly: viewOnly || false, translator: translator })),
|
19573
19593
|
},
|
19574
19594
|
{
|
19575
19595
|
label: t("coBenifits:safeguards"),
|
19576
19596
|
key: "3",
|
19577
19597
|
children: (React.createElement(Safeguards, { safeGuardViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.safeguardDetails)) ||
|
19578
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.safeguardDetails)), viewOnly: viewOnly || false, onFormSubmit: onSafeguardFormSubmit,
|
19598
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.safeguardDetails)), viewOnly: viewOnly || false, onFormSubmit: onSafeguardFormSubmit, translator: translator })),
|
19579
19599
|
},
|
19580
19600
|
{
|
19581
19601
|
label: t("coBenifits:environmental"),
|
@@ -19584,13 +19604,13 @@ var CoBenifitsComponent = function (props) {
|
|
19584
19604
|
? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
|
19585
19605
|
? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
|
19586
19606
|
: {}
|
19587
|
-
: undefined, viewOnly: viewOnly || false,
|
19607
|
+
: undefined, viewOnly: viewOnly || false, translator: translator })),
|
19588
19608
|
},
|
19589
19609
|
{
|
19590
19610
|
label: t("coBenifits:social"),
|
19591
19611
|
key: "5",
|
19592
19612
|
children: (React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
|
19593
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false,
|
19613
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator })),
|
19594
19614
|
},
|
19595
19615
|
{
|
19596
19616
|
label: t("coBenifits:economic"),
|
@@ -19599,13 +19619,13 @@ var CoBenifitsComponent = function (props) {
|
|
19599
19619
|
? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
|
19600
19620
|
? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
|
19601
19621
|
: {}
|
19602
|
-
: undefined, viewOnly: viewOnly || false,
|
19622
|
+
: undefined, viewOnly: viewOnly || false, translator: translator })),
|
19603
19623
|
},
|
19604
19624
|
{
|
19605
19625
|
label: t("coBenifits:assessment"),
|
19606
19626
|
key: "7",
|
19607
19627
|
children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
|
19608
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection,
|
19628
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
|
19609
19629
|
},
|
19610
19630
|
];
|
19611
19631
|
var onCoBenefitSubmit = function () {
|
@@ -19761,12 +19781,16 @@ var CoBenifitsComponent = function (props) {
|
|
19761
19781
|
React.createElement(antd.Tabs, { className: "benifits-tabs", defaultActiveKey: "1", centered: true, items: tabItems })),
|
19762
19782
|
!viewOnly && (React.createElement("div", { className: "steps-actions" },
|
19763
19783
|
React.createElement(antd.Row, null,
|
19764
|
-
React.createElement(antd.Button, { onClick: function () { return onClickedBackBtn(coBenefitDetails); } }, t("back")),
|
19765
|
-
React.createElement(antd.Button, { className: "mg-left-1", type: "primary", loading: loading, onClick: onCoBenefitSubmit }, submitButtonText
|
19784
|
+
React.createElement(antd.Button, { onClick: function () { return onClickedBackBtn(coBenefitDetails); } }, t("back", { ns: "coBenifits" })),
|
19785
|
+
React.createElement(antd.Button, { className: "mg-left-1", type: "primary", loading: loading, onClick: onCoBenefitSubmit }, submitButtonText
|
19786
|
+
? submitButtonText
|
19787
|
+
: t("submit", { ns: "coBenifits" })))))));
|
19766
19788
|
};
|
19767
19789
|
|
19768
19790
|
var AddNdcActionComponent = function (props) {
|
19769
|
-
var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages,
|
19791
|
+
var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
19792
|
+
translator.setDefaultNamespace('ndcAction');
|
19793
|
+
var t = translator.t;
|
19770
19794
|
var _a = React.useState(1), current = _a[0], setCurrent = _a[1];
|
19771
19795
|
var _b = React.useState(), programmeDetails = _b[0], setprogrammeDetails = _b[1];
|
19772
19796
|
var _c = React.useState(), ndcActionDetails = _c[0], setNdcActionDetails = _c[1];
|
@@ -19898,7 +19922,7 @@ var AddNdcActionComponent = function (props) {
|
|
19898
19922
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
|
19899
19923
|
React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
|
19900
19924
|
description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
|
19901
|
-
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails,
|
19925
|
+
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
|
19902
19926
|
},
|
19903
19927
|
{
|
19904
19928
|
title: (React.createElement("div", { className: "step-title-container" },
|
@@ -19907,7 +19931,7 @@ var AddNdcActionComponent = function (props) {
|
|
19907
19931
|
description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
|
19908
19932
|
React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
|
19909
19933
|
? t("ndcAction:next")
|
19910
|
-
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection,
|
19934
|
+
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator }))),
|
19911
19935
|
},
|
19912
19936
|
];
|
19913
19937
|
if (isProjectReportsVisible()) {
|
@@ -19973,7 +19997,7 @@ styleInject(css_248z$2);
|
|
19973
19997
|
var NdcActionViewComponent = function (props) {
|
19974
19998
|
var _a;
|
19975
19999
|
var _b, _c;
|
19976
|
-
var useUserContext = props.useUserContext, linkDocVisible = props.linkDocVisible, uploadDocUserPermission = props.uploadDocUserPermission, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView,
|
20000
|
+
var useUserContext = props.useUserContext, linkDocVisible = props.linkDocVisible, uploadDocUserPermission = props.uploadDocUserPermission, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, translator = props.translator, sdgGoalImages = props.sdgGoalImages;
|
19977
20001
|
var userInfoState = useUserContext().userInfoState;
|
19978
20002
|
var post = useConnection().post;
|
19979
20003
|
var state = useLocation().state;
|
@@ -19986,6 +20010,8 @@ var NdcActionViewComponent = function (props) {
|
|
19986
20010
|
var _k = React.useState([]), programmeOwnerId = _k[0], setProgrammeOwnerId = _k[1];
|
19987
20011
|
var _l = React.useState(false), canUploadMonitorReport = _l[0], setCanUploadMonitorReport = _l[1];
|
19988
20012
|
var _m = React.useState(false), monitoringReportAccepted = _m[0], setMonitoringReportAccepted = _m[1];
|
20013
|
+
translator.setDefaultNamespace("ndcAction");
|
20014
|
+
var t = translator.t;
|
19989
20015
|
var getProgrammeById = function (programmeId) { return __awaiter(void 0, void 0, void 0, function () {
|
19990
20016
|
var response, error_1;
|
19991
20017
|
var _a, _b, _c;
|
@@ -20355,7 +20381,7 @@ var NdcActionViewComponent = function (props) {
|
|
20355
20381
|
React.createElement(antd.Card, { className: "card-container" },
|
20356
20382
|
React.createElement("div", { className: "co-benifits-view" },
|
20357
20383
|
React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
|
20358
|
-
React.createElement(CoBenifitsComponent, { viewOnly: true, coBenifitsViewDetails: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.coBenefitsProperties, sdgGoalImages: sdgGoalImages, useConnection: useConnection,
|
20384
|
+
React.createElement(CoBenifitsComponent, { viewOnly: true, coBenifitsViewDetails: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.coBenefitsProperties, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator })))))))));
|
20359
20385
|
};
|
20360
20386
|
|
20361
20387
|
var css_248z$1 = ".legend-item-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-weight: 400;\n margin-left: 0.75rem; }\n .legend-item-container .text {\n margin-left: 0.2rem; }\n";
|