@undp/carbon-library 1.0.74 → 1.0.76
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 +11 -6
- 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 +11 -6
- 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
|
@@ -13539,7 +13539,8 @@ var sectoralScopes = {
|
|
|
13539
13539
|
};
|
|
13540
13540
|
var ProgrammeCreationComponent = function (props) {
|
|
13541
13541
|
var _a, _b;
|
|
13542
|
-
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView,
|
|
13542
|
+
var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
|
|
13543
|
+
var t = translator.t;
|
|
13543
13544
|
var state = useLocation().state;
|
|
13544
13545
|
var formOne = antd.Form.useForm()[0];
|
|
13545
13546
|
var formTwo = antd.Form.useForm()[0];
|
|
@@ -16042,10 +16043,11 @@ var InvestmentCreationComponent = function (props) {
|
|
|
16042
16043
|
};
|
|
16043
16044
|
|
|
16044
16045
|
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,
|
|
16046
|
+
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
16047
|
var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
|
16047
16048
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
|
16048
16049
|
var _c = React.useState(false), checked = _c[0], setChecked = _c[1];
|
|
16050
|
+
var t = translator.t;
|
|
16049
16051
|
var companyList = !investment.isRetirement
|
|
16050
16052
|
? [
|
|
16051
16053
|
{
|
|
@@ -16146,7 +16148,8 @@ var InvestmentActionModel = function (props) {
|
|
|
16146
16148
|
};
|
|
16147
16149
|
|
|
16148
16150
|
var InvestmentManagementComponent = function (props) {
|
|
16149
|
-
var
|
|
16151
|
+
var translator = props.translator, useConnection = props.useConnection, onNavigateToProgrammeView = props.onNavigateToProgrammeView, useUserContext = props.useUserContext, useSettingsContext = props.useSettingsContext;
|
|
16152
|
+
var t = translator.t;
|
|
16150
16153
|
var statusOptions = Object.keys(exports.InvestmentStatus).map(function (k, index) { return ({
|
|
16151
16154
|
label: addSpaces(Object.values(exports.InvestmentStatus)[index]),
|
|
16152
16155
|
value: Object.values(exports.InvestmentStatus)[index],
|
|
@@ -16670,7 +16673,7 @@ var InvestmentManagementComponent = function (props) {
|
|
|
16670
16673
|
popupInfo && selectedReq && (React.createElement(InvestmentActionModel, { investment: selectedReq, onCancel: function () {
|
|
16671
16674
|
setModalVisible(false);
|
|
16672
16675
|
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,
|
|
16676
|
+
}, 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
16677
|
};
|
|
16675
16678
|
|
|
16676
16679
|
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 +17061,14 @@ var css_248z$5 = ".ndc-action-details-container Input {\n height: 40px; }\n\n.n
|
|
|
17058
17061
|
styleInject(css_248z$5);
|
|
17059
17062
|
|
|
17060
17063
|
var NdcActionDetails = function (props) {
|
|
17061
|
-
var isBackBtnVisible = props.isBackBtnVisible, onFormSubmit = props.onFormSubmit, ndcActionDetails = props.ndcActionDetails,
|
|
17064
|
+
var isBackBtnVisible = props.isBackBtnVisible, onFormSubmit = props.onFormSubmit, ndcActionDetails = props.ndcActionDetails, translator = props.translator, programmeDetails = props.programmeDetails, onClickedBackBtn = props.onClickedBackBtn;
|
|
17062
17065
|
var _a = React.useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
|
|
17063
17066
|
var _b = React.useState(), mitigationType = _b[0], setmitigationType = _b[1];
|
|
17064
17067
|
var _c = React.useState(""), sector = _c[0], setSector = _c[1];
|
|
17065
17068
|
var _d = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _d[0]; _d[1];
|
|
17066
17069
|
var form = antd.Form.useForm()[0];
|
|
17070
|
+
translator.setDefaultNamespace('ndcAction');
|
|
17071
|
+
var t = translator.t;
|
|
17067
17072
|
var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
|
|
17068
17073
|
? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
|
|
17069
17074
|
: 5000000;
|
|
@@ -19918,7 +19923,7 @@ var AddNdcActionComponent = function (props) {
|
|
|
19918
19923
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
|
|
19919
19924
|
React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
|
|
19920
19925
|
description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
|
|
19921
|
-
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails,
|
|
19926
|
+
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
|
|
19922
19927
|
},
|
|
19923
19928
|
{
|
|
19924
19929
|
title: (React.createElement("div", { className: "step-title-container" },
|