@undp/carbon-library 1.0.136-support-section-changes.3 → 1.0.136-support-section-changes.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +16 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +16 -13
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -14017,12 +14017,13 @@ var InvestmentCreationComponent = function (props) {
|
|
14017
14017
|
var formTwo = antd.Form.useForm()[0];
|
14018
14018
|
var post = useConnection().post;
|
14019
14019
|
var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
|
14020
|
-
var _c = React.useState(
|
14021
|
-
var _d = React.useState(
|
14022
|
-
var _e = React.useState(0),
|
14023
|
-
var _f = React.useState(
|
14024
|
-
var _g = React.useState([]),
|
14025
|
-
var _h = React.useState(),
|
14020
|
+
var _c = React.useState("New"), typeCreation = _c[0]; _c[1];
|
14021
|
+
var _d = React.useState(false), loadingList = _d[0], setLoadingList = _d[1];
|
14022
|
+
var _e = React.useState(0), current = _e[0], setCurrent = _e[1];
|
14023
|
+
var _f = React.useState(0), currentPercTotal = _f[0], setCurrentPercTotal = _f[1];
|
14024
|
+
var _g = React.useState([]), organisationsList = _g[0], setOrganisationList = _g[1];
|
14025
|
+
var _h = React.useState([]), instrument = _h[0], setInstrument = _h[1];
|
14026
|
+
var _j = React.useState(), stepOneData = _j[0], setStepOneData = _j[1];
|
14026
14027
|
var instrumentOptions = Object.keys(exports.Instrument).map(function (k, index) { return ({
|
14027
14028
|
label: addSpaces(Object.values(exports.Instrument)[index]),
|
14028
14029
|
value: Object.values(exports.Instrument)[index],
|
@@ -14112,12 +14113,14 @@ var InvestmentCreationComponent = function (props) {
|
|
14112
14113
|
return React.createElement(Loading, null);
|
14113
14114
|
}
|
14114
14115
|
var companyName = {};
|
14115
|
-
|
14116
|
-
var
|
14117
|
-
|
14118
|
-
|
14119
|
-
|
14120
|
-
data.proponentPercentage
|
14116
|
+
if (data && Object.keys(data)[0] !== "ownership") {
|
14117
|
+
for (var _i = 0, _k = data === null || data === void 0 ? void 0 : data.company; _i < _k.length; _i++) {
|
14118
|
+
var company = _k[_i];
|
14119
|
+
companyName[company === null || company === void 0 ? void 0 : company.companyId] = company;
|
14120
|
+
}
|
14121
|
+
if (!data.proponentPercentage) {
|
14122
|
+
data.proponentPercentage = [100];
|
14123
|
+
}
|
14121
14124
|
}
|
14122
14125
|
var nextOne = function (val) {
|
14123
14126
|
setCurrent(current + 1);
|
@@ -14208,7 +14211,7 @@ var InvestmentCreationComponent = function (props) {
|
|
14208
14211
|
required: true,
|
14209
14212
|
},
|
14210
14213
|
] },
|
14211
|
-
React.createElement(antd.Radio.Group, { size: "large",
|
14214
|
+
React.createElement(antd.Radio.Group, { size: "large", value: typeCreation }, Object.values(exports.InvestmentCreationType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
|
14212
14215
|
React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
|
14213
14216
|
return deselectOnClick(e, "type");
|
14214
14217
|
} }, t("programme:" + k)))); }))))),
|