@undp/carbon-library 1.0.74 → 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 +9 -5
- package/dist/cjs/index.js.map +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 +9 -5
- package/dist/esm/index.js.map +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;
|
@@ -19918,7 +19922,7 @@ var AddNdcActionComponent = function (props) {
|
|
19918
19922
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
|
19919
19923
|
React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
|
19920
19924
|
description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
|
19921
|
-
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails,
|
19925
|
+
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
|
19922
19926
|
},
|
19923
19927
|
{
|
19924
19928
|
title: (React.createElement("div", { className: "step-title-container" },
|