@undp/carbon-library 1.0.274-CARBON-404.3 → 1.0.274-CARBON-404.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +8 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Enums/ministry.enum.d.ts +2 -2
- package/dist/esm/index.js +8 -21
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Enums/ministry.enum.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
@@ -11,7 +11,7 @@ export declare enum Ministry {
|
|
11
11
|
Judiciary = "Judiciary",
|
12
12
|
Maritime = "Maritime",
|
13
13
|
Media = "Media",
|
14
|
-
ScienceAndTechnology = "
|
15
|
-
WaterResources = "
|
14
|
+
ScienceAndTechnology = "Science And Technology",
|
15
|
+
WaterResources = "Water Resources",
|
16
16
|
Other = "Other"
|
17
17
|
}
|
package/dist/esm/index.js
CHANGED
@@ -5864,8 +5864,8 @@ var Ministry;
|
|
5864
5864
|
Ministry["Judiciary"] = "Judiciary";
|
5865
5865
|
Ministry["Maritime"] = "Maritime";
|
5866
5866
|
Ministry["Media"] = "Media";
|
5867
|
-
Ministry["ScienceAndTechnology"] = "
|
5868
|
-
Ministry["WaterResources"] = "
|
5867
|
+
Ministry["ScienceAndTechnology"] = "Science And Technology";
|
5868
|
+
Ministry["WaterResources"] = "Water Resources";
|
5869
5869
|
Ministry["Other"] = "Other";
|
5870
5870
|
})(Ministry || (Ministry = {}));
|
5871
5871
|
|
@@ -6130,12 +6130,13 @@ var AddNewCompanyComponent = function (props) {
|
|
6130
6130
|
selectedGovDepatments = selectedGovDepatments.filter(function (x) { return !existgovDep.includes(x); });
|
6131
6131
|
}
|
6132
6132
|
var onChangeMinistry = function (val) { return __awaiter(void 0, void 0, void 0, function () {
|
6133
|
-
var response, existDep, i, departName;
|
6133
|
+
var key, response, existDep, i, departName;
|
6134
6134
|
return __generator(this, function (_a) {
|
6135
6135
|
switch (_a.label) {
|
6136
6136
|
case 0:
|
6137
6137
|
formOne.resetFields(["govDep"]);
|
6138
|
-
|
6138
|
+
key = Object.keys(Ministry)[Object.values(Ministry).indexOf(val)];
|
6139
|
+
setSelectedMinistry(String(key));
|
6139
6140
|
return [4 /*yield*/, post("national/organisation/query", {
|
6140
6141
|
page: 1,
|
6141
6142
|
size: 10,
|
@@ -6295,12 +6296,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6295
6296
|
requestData.company.logo = logoUrls[1];
|
6296
6297
|
if (companyRole === CompanyRole.MINISTRY) {
|
6297
6298
|
requestData.company.name =
|
6298
|
-
"Ministry of " +
|
6299
|
-
(requestData.company.ministry === "ScienceAndTechnology")
|
6300
|
-
? "Science And Technology"
|
6301
|
-
: requestData.company.ministry === "WaterResources"
|
6302
|
-
? "Water Resources"
|
6303
|
-
: requestData.company.ministry;
|
6299
|
+
"Ministry of " + requestData.company.ministry;
|
6304
6300
|
}
|
6305
6301
|
if (!isGuest) return [3 /*break*/, 4];
|
6306
6302
|
return [4 /*yield*/, post("national/user/register", requestData)];
|
@@ -6403,12 +6399,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6403
6399
|
else {
|
6404
6400
|
values.govDep = formOneValues.govDep;
|
6405
6401
|
}
|
6406
|
-
values.name =
|
6407
|
-
"Ministry of " + (formOneValues.ministry === "ScienceAndTechnology")
|
6408
|
-
? "Science And Technology"
|
6409
|
-
: formOneValues.ministry === "WaterResources"
|
6410
|
-
? "Water Resources"
|
6411
|
-
: formOneValues.ministry;
|
6402
|
+
values.name = "Ministry of " + formOneValues.ministry;
|
6412
6403
|
}
|
6413
6404
|
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
|
6414
6405
|
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
@@ -6589,11 +6580,7 @@ var AddNewCompanyComponent = function (props) {
|
|
6589
6580
|
message: "Ministry Name is required",
|
6590
6581
|
},
|
6591
6582
|
] },
|
6592
|
-
React.createElement(Select, { size: "large", onChange: onChangeMinistry }, Object.values(Ministry).map(function (ministry) { return (React.createElement(Select.Option, { value: ministry }, ministry
|
6593
|
-
? "Science And Technology"
|
6594
|
-
: ministry === "WaterResources"
|
6595
|
-
? "Water Resources"
|
6596
|
-
: ministry)); }))),
|
6583
|
+
React.createElement(Select, { size: "large", onChange: onChangeMinistry }, Object.values(Ministry).map(function (ministry) { return (React.createElement(Select.Option, { value: ministry }, ministry)); }))),
|
6597
6584
|
React.createElement(Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.nameOfMinister, rules: [
|
6598
6585
|
{
|
6599
6586
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|