@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
@@ -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;
|
@@ -19898,7 +19902,7 @@ var AddNdcActionComponent = function (props) {
|
|
19898
19902
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
|
19899
19903
|
React.createElement(InfoCircle, { color: "#000000", size: 17 }))))),
|
19900
19904
|
description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
|
19901
|
-
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails,
|
19905
|
+
React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
|
19902
19906
|
},
|
19903
19907
|
{
|
19904
19908
|
title: (React.createElement("div", { className: "step-title-container" },
|