@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
@@ -12,7 +12,7 @@ export interface InvestmentActionModelProps {
|
|
12
12
|
openModal: boolean;
|
13
13
|
type: string;
|
14
14
|
remarkRequired: boolean;
|
15
|
-
|
15
|
+
translator: any;
|
16
16
|
}
|
17
17
|
declare const InvestmentActionModel: FC<InvestmentActionModelProps>;
|
18
18
|
export default InvestmentActionModel;
|
package/dist/esm/index.js
CHANGED
@@ -16022,10 +16022,11 @@ var InvestmentCreationComponent = function (props) {
|
|
16022
16022
|
};
|
16023
16023
|
|
16024
16024
|
var InvestmentActionModel = function (props) {
|
16025
|
-
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,
|
16025
|
+
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;
|
16026
16026
|
var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
16027
16027
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
16028
16028
|
var _c = useState(false), checked = _c[0], setChecked = _c[1];
|
16029
|
+
var t = translator.t;
|
16029
16030
|
var companyList = !investment.isRetirement
|
16030
16031
|
? [
|
16031
16032
|
{
|
@@ -16126,7 +16127,8 @@ var InvestmentActionModel = function (props) {
|
|
16126
16127
|
};
|
16127
16128
|
|
16128
16129
|
var InvestmentManagementComponent = function (props) {
|
16129
|
-
var
|
16130
|
+
var translator = props.translator, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext;
|
16131
|
+
var t = translator.t;
|
16130
16132
|
var statusOptions = Object.keys(InvestmentStatus).map(function (k, index) { return ({
|
16131
16133
|
label: addSpaces(Object.values(InvestmentStatus)[index]),
|
16132
16134
|
value: Object.values(InvestmentStatus)[index],
|
@@ -16650,7 +16652,7 @@ var InvestmentManagementComponent = function (props) {
|
|
16650
16652
|
popupInfo && selectedReq && (React.createElement(InvestmentActionModel, { investment: selectedReq, onCancel: function () {
|
16651
16653
|
setModalVisible(false);
|
16652
16654
|
setSelectedReq(undefined);
|
16653
|
-
}, 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,
|
16655
|
+
}, 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 }))));
|
16654
16656
|
};
|
16655
16657
|
|
16656
16658
|
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";
|
@@ -17038,12 +17040,14 @@ var css_248z$5 = ".ndc-action-details-container Input {\n height: 40px; }\n\n.n
|
|
17038
17040
|
styleInject(css_248z$5);
|
17039
17041
|
|
17040
17042
|
var NdcActionDetails = function (props) {
|
17041
|
-
var isBackBtnVisible = props.isBackBtnVisible, onFormSubmit = props.onFormSubmit, ndcActionDetails = props.ndcActionDetails,
|
17043
|
+
var isBackBtnVisible = props.isBackBtnVisible, onFormSubmit = props.onFormSubmit, ndcActionDetails = props.ndcActionDetails, translator = props.translator, programmeDetails = props.programmeDetails, onClickedBackBtn = props.onClickedBackBtn;
|
17042
17044
|
var _a = useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
|
17043
17045
|
var _b = useState(), mitigationType = _b[0], setmitigationType = _b[1];
|
17044
17046
|
var _c = useState(""), sector = _c[0], setSector = _c[1];
|
17045
17047
|
var _d = useState(ndcActionTypeList), ndcActionTypeListFiltered = _d[0]; _d[1];
|
17046
17048
|
var form = Form.useForm()[0];
|
17049
|
+
translator.setDefaultNamespace('ndcAction');
|
17050
|
+
var t = translator.t;
|
17047
17051
|
var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
|
17048
17052
|
? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
|
17049
17053
|
: 5000000;
|
@@ -17468,9 +17472,11 @@ var css_248z$3 = ".co-benifits-container {\n width: 100%; }\n .co-benifits-con
|
|
17468
17472
|
styleInject(css_248z$3);
|
17469
17473
|
|
17470
17474
|
var GenderParity = function (props) {
|
17471
|
-
var onFormSubmit = props.onFormSubmit, genderParityViewData = props.genderParityViewData, viewOnly = props.viewOnly,
|
17475
|
+
var onFormSubmit = props.onFormSubmit, genderParityViewData = props.genderParityViewData, viewOnly = props.viewOnly, translator = props.translator;
|
17472
17476
|
var formOne = Form.useForm()[0];
|
17473
17477
|
var formTwo = Form.useForm()[0];
|
17478
|
+
translator.setDefaultNamespace("genderParity");
|
17479
|
+
var t = translator.t;
|
17474
17480
|
var _a = useState(), genderParityDetails = _a[0], setGenderParityDetails = _a[1];
|
17475
17481
|
var genderParityDetailsOne = [
|
17476
17482
|
{
|
@@ -17596,7 +17602,9 @@ var GenderParity = function (props) {
|
|
17596
17602
|
};
|
17597
17603
|
|
17598
17604
|
var Assessment = function (props) {
|
17599
|
-
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection,
|
17605
|
+
var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
|
17606
|
+
translator.setDefaultNamespace("coBenifits");
|
17607
|
+
var t = translator.t;
|
17600
17608
|
var form1 = Form.useForm()[0];
|
17601
17609
|
var form2 = Form.useForm()[0];
|
17602
17610
|
var form3 = Form.useForm()[0];
|
@@ -17752,7 +17760,9 @@ var Assessment = function (props) {
|
|
17752
17760
|
React.createElement(Row, null,
|
17753
17761
|
React.createElement(Form, { name: "from1", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form1, onValuesChange: function () { return validateForms(); } },
|
17754
17762
|
!viewOnly && (React.createElement("div", { className: "radio-content" },
|
17755
|
-
React.createElement(Form.Item, { label: t("assessmentIsThirdPartyVerified"
|
17763
|
+
React.createElement(Form.Item, { label: t("assessmentIsThirdPartyVerified", {
|
17764
|
+
ns: "coBenifits",
|
17765
|
+
}), className: "form-item", name: "IsThirdPartyVerified" },
|
17756
17766
|
React.createElement(Radio.Group, { size: "middle", onChange: onIsThirdPartyVerifiedChanged },
|
17757
17767
|
React.createElement("div", { className: "radio-container" },
|
17758
17768
|
React.createElement(Radio.Button, { className: "radio", value: RadioButtonStatus.YES }, t("yes"))),
|
@@ -18134,7 +18144,9 @@ var SdgGoals = function (props) {
|
|
18134
18144
|
};
|
18135
18145
|
|
18136
18146
|
var Safeguards = function (props) {
|
18137
|
-
var onFormSubmit = props.onFormSubmit, safeGuardViewData = props.safeGuardViewData, viewOnly = props.viewOnly,
|
18147
|
+
var onFormSubmit = props.onFormSubmit, safeGuardViewData = props.safeGuardViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18148
|
+
translator.setDefaultNamespace("safeguards");
|
18149
|
+
var t = translator.t;
|
18138
18150
|
var _a = useState(), safeguardDetails = _a[0], setSafeguardDetails = _a[1];
|
18139
18151
|
var form = Form.useForm()[0];
|
18140
18152
|
var initialFormElementList = [
|
@@ -18627,7 +18639,9 @@ var Safeguards = function (props) {
|
|
18627
18639
|
};
|
18628
18640
|
|
18629
18641
|
var Environmental = function (props) {
|
18630
|
-
var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly,
|
18642
|
+
var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18643
|
+
translator.setDefaultNamespace('environment');
|
18644
|
+
var t = translator.t;
|
18631
18645
|
var environmentalDetailsInitial = [
|
18632
18646
|
{
|
18633
18647
|
section: t("air"),
|
@@ -18942,7 +18956,9 @@ var Environmental = function (props) {
|
|
18942
18956
|
};
|
18943
18957
|
|
18944
18958
|
var Economic = function (props) {
|
18945
|
-
var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly,
|
18959
|
+
var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, translator = props.translator;
|
18960
|
+
translator.setDefaultNamespace("economic");
|
18961
|
+
var t = translator.t;
|
18946
18962
|
var economicDetailsInitial = [
|
18947
18963
|
{
|
18948
18964
|
section: t("growth"),
|
@@ -19225,7 +19241,9 @@ var Economic = function (props) {
|
|
19225
19241
|
};
|
19226
19242
|
|
19227
19243
|
var Social = function (props) {
|
19228
|
-
var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly,
|
19244
|
+
var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, translator = props.translator;
|
19245
|
+
translator.setDefaultNamespace("social");
|
19246
|
+
var t = translator.t;
|
19229
19247
|
var form = Form.useForm()[0];
|
19230
19248
|
var _a = useState(0); _a[0]; var setRefreshCounter = _a[1];
|
19231
19249
|
var _b = useState(), socialDetails = _b[0], setSocialDetails = _b[1];
|
@@ -19509,10 +19527,12 @@ var Social = function (props) {
|
|
19509
19527
|
};
|
19510
19528
|
|
19511
19529
|
var CoBenifitsComponent = function (props) {
|
19512
|
-
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,
|
19530
|
+
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;
|
19513
19531
|
var _b = useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
|
19514
19532
|
var _c = useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
|
19515
19533
|
var _d = useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
|
19534
|
+
translator.setDefaultNamespace('coBenifits');
|
19535
|
+
var t = translator.t;
|
19516
19536
|
var onSdgGoalsFormSubmit = function (sdgGoalsDetails) {
|
19517
19537
|
setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
|
19518
19538
|
};
|
@@ -19549,13 +19569,13 @@ var CoBenifitsComponent = function (props) {
|
|
19549
19569
|
{
|
19550
19570
|
label: t("coBenifits:genderPart"),
|
19551
19571
|
key: "2",
|
19552
|
-
children: (React.createElement(GenderParity, { onFormSubmit: onGenderParityFormSubmit, genderParityViewData: viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.genderPariy), viewOnly: viewOnly || false,
|
19572
|
+
children: (React.createElement(GenderParity, { onFormSubmit: onGenderParityFormSubmit, genderParityViewData: viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.genderPariy), viewOnly: viewOnly || false, translator: translator })),
|
19553
19573
|
},
|
19554
19574
|
{
|
19555
19575
|
label: t("coBenifits:safeguards"),
|
19556
19576
|
key: "3",
|
19557
19577
|
children: (React.createElement(Safeguards, { safeGuardViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.safeguardDetails)) ||
|
19558
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.safeguardDetails)), viewOnly: viewOnly || false, onFormSubmit: onSafeguardFormSubmit,
|
19578
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.safeguardDetails)), viewOnly: viewOnly || false, onFormSubmit: onSafeguardFormSubmit, translator: translator })),
|
19559
19579
|
},
|
19560
19580
|
{
|
19561
19581
|
label: t("coBenifits:environmental"),
|
@@ -19564,13 +19584,13 @@ var CoBenifitsComponent = function (props) {
|
|
19564
19584
|
? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
|
19565
19585
|
? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
|
19566
19586
|
: {}
|
19567
|
-
: undefined, viewOnly: viewOnly || false,
|
19587
|
+
: undefined, viewOnly: viewOnly || false, translator: translator })),
|
19568
19588
|
},
|
19569
19589
|
{
|
19570
19590
|
label: t("coBenifits:social"),
|
19571
19591
|
key: "5",
|
19572
19592
|
children: (React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
|
19573
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false,
|
19593
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, translator: translator })),
|
19574
19594
|
},
|
19575
19595
|
{
|
19576
19596
|
label: t("coBenifits:economic"),
|
@@ -19579,13 +19599,13 @@ var CoBenifitsComponent = function (props) {
|
|
19579
19599
|
? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
|
19580
19600
|
? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
|
19581
19601
|
: {}
|
19582
|
-
: undefined, viewOnly: viewOnly || false,
|
19602
|
+
: undefined, viewOnly: viewOnly || false, translator: translator })),
|
19583
19603
|
},
|
19584
19604
|
{
|
19585
19605
|
label: t("coBenifits:assessment"),
|
19586
19606
|
key: "7",
|
19587
19607
|
children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
|
19588
|
-
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection,
|
19608
|
+
(!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, translator: translator })),
|
19589
19609
|
},
|
19590
19610
|
];
|
19591
19611
|
var onCoBenefitSubmit = function () {
|
@@ -19741,12 +19761,16 @@ var CoBenifitsComponent = function (props) {
|
|
19741
19761
|
React.createElement(Tabs, { className: "benifits-tabs", defaultActiveKey: "1", centered: true, items: tabItems })),
|
19742
19762
|
!viewOnly && (React.createElement("div", { className: "steps-actions" },
|
19743
19763
|
React.createElement(Row, null,
|
19744
|
-
React.createElement(Button, { onClick: function () { return onClickedBackBtn(coBenefitDetails); } }, t("back")),
|
19745
|
-
React.createElement(Button, { className: "mg-left-1", type: "primary", loading: loading, onClick: onCoBenefitSubmit }, submitButtonText
|
19764
|
+
React.createElement(Button, { onClick: function () { return onClickedBackBtn(coBenefitDetails); } }, t("back", { ns: "coBenifits" })),
|
19765
|
+
React.createElement(Button, { className: "mg-left-1", type: "primary", loading: loading, onClick: onCoBenefitSubmit }, submitButtonText
|
19766
|
+
? submitButtonText
|
19767
|
+
: t("submit", { ns: "coBenifits" })))))));
|
19746
19768
|
};
|
19747
19769
|
|
19748
19770
|
var AddNdcActionComponent = function (props) {
|
19749
|
-
var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages,
|
19771
|
+
var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, sdgGoalImages = props.sdgGoalImages, translator = props.translator;
|
19772
|
+
translator.setDefaultNamespace('ndcAction');
|
19773
|
+
var t = translator.t;
|
19750
19774
|
var _a = useState(1), current = _a[0], setCurrent = _a[1];
|
19751
19775
|
var _b = useState(), programmeDetails = _b[0], setprogrammeDetails = _b[1];
|
19752
19776
|
var _c = useState(), ndcActionDetails = _c[0], setNdcActionDetails = _c[1];
|
@@ -19878,7 +19902,7 @@ var AddNdcActionComponent = function (props) {
|
|
19878
19902
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
|
19879
19903
|
React.createElement(InfoCircle, { color: "#000000", size: 17 }))))),
|
19880
19904
|
description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
|
19881
|
-
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails,
|
19905
|
+
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
|
19882
19906
|
},
|
19883
19907
|
{
|
19884
19908
|
title: (React.createElement("div", { className: "step-title-container" },
|
@@ -19887,7 +19911,7 @@ var AddNdcActionComponent = function (props) {
|
|
19887
19911
|
description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
|
19888
19912
|
React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
|
19889
19913
|
? t("ndcAction:next")
|
19890
|
-
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection,
|
19914
|
+
: t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection, translator: translator }))),
|
19891
19915
|
},
|
19892
19916
|
];
|
19893
19917
|
if (isProjectReportsVisible()) {
|
@@ -19953,7 +19977,7 @@ styleInject(css_248z$2);
|
|
19953
19977
|
var NdcActionViewComponent = function (props) {
|
19954
19978
|
var _a;
|
19955
19979
|
var _b, _c;
|
19956
|
-
var useUserContext = props.useUserContext, linkDocVisible = props.linkDocVisible, uploadDocUserPermission = props.uploadDocUserPermission, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView,
|
19980
|
+
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;
|
19957
19981
|
var userInfoState = useUserContext().userInfoState;
|
19958
19982
|
var post = useConnection().post;
|
19959
19983
|
var state = useLocation().state;
|
@@ -19966,6 +19990,8 @@ var NdcActionViewComponent = function (props) {
|
|
19966
19990
|
var _k = useState([]), programmeOwnerId = _k[0], setProgrammeOwnerId = _k[1];
|
19967
19991
|
var _l = useState(false), canUploadMonitorReport = _l[0], setCanUploadMonitorReport = _l[1];
|
19968
19992
|
var _m = useState(false), monitoringReportAccepted = _m[0], setMonitoringReportAccepted = _m[1];
|
19993
|
+
translator.setDefaultNamespace("ndcAction");
|
19994
|
+
var t = translator.t;
|
19969
19995
|
var getProgrammeById = function (programmeId) { return __awaiter(void 0, void 0, void 0, function () {
|
19970
19996
|
var response, error_1;
|
19971
19997
|
var _a, _b, _c;
|
@@ -20335,7 +20361,7 @@ var NdcActionViewComponent = function (props) {
|
|
20335
20361
|
React.createElement(Card, { className: "card-container" },
|
20336
20362
|
React.createElement("div", { className: "co-benifits-view" },
|
20337
20363
|
React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
|
20338
|
-
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,
|
20364
|
+
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 })))))))));
|
20339
20365
|
};
|
20340
20366
|
|
20341
20367
|
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";
|