@undp/carbon-library 1.0.104 → 1.0.106
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +30 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +30 -20
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -4712,6 +4712,7 @@ var AddNewCompanyComponent = function (props) {
|
|
4712
4712
|
if (((_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.companyRole) !== CompanyRole.GOVERNMENT &&
|
4713
4713
|
((_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.companyRole) !== CompanyRole.MINISTRY) {
|
4714
4714
|
values.taxId = formOneValues.taxId;
|
4715
|
+
values.paymentId = formOneValues.paymentId;
|
4715
4716
|
}
|
4716
4717
|
if (((_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.companyRole) === CompanyRole.MINISTRY) {
|
4717
4718
|
values.sectoralScope = formOneValues.sectoralScope;
|
@@ -4828,26 +4829,30 @@ var AddNewCompanyComponent = function (props) {
|
|
4828
4829
|
] },
|
4829
4830
|
React.createElement(Input, { size: "large" })))
|
4830
4831
|
: null,
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4842
|
-
value ===
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
4832
|
+
companyRole !== CompanyRole.MINISTRY
|
4833
|
+
? (!isUpdate ||
|
4834
|
+
(isUpdate &&
|
4835
|
+
companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(Form.Item, { label: "Registration Payment ID", initialValue: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.paymentId, name: "paymentId", rules: [
|
4836
|
+
{
|
4837
|
+
required: true,
|
4838
|
+
message: "",
|
4839
|
+
},
|
4840
|
+
{
|
4841
|
+
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
4842
|
+
return __generator(this, function (_a) {
|
4843
|
+
if (String(value).trim() === "" ||
|
4844
|
+
String(value).trim() === undefined ||
|
4845
|
+
value === null ||
|
4846
|
+
value === undefined) {
|
4847
|
+
throw new Error("Registration Payment ID ".concat(t("isRequired")));
|
4848
|
+
}
|
4849
|
+
return [2 /*return*/];
|
4850
|
+
});
|
4851
|
+
}); },
|
4852
|
+
},
|
4853
|
+
] },
|
4854
|
+
React.createElement(Input, { size: "large" })))
|
4855
|
+
: null,
|
4851
4856
|
React.createElement(Form.Item, { label: "Email", name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
|
4852
4857
|
{
|
4853
4858
|
required: true,
|
@@ -13086,6 +13091,11 @@ var UserProfileComponent = function (props) {
|
|
13086
13091
|
React.createElement(Col, { span: 12, className: "field-value" }, organisationDetails.taxId
|
13087
13092
|
? organisationDetails.taxId
|
13088
13093
|
: "-")),
|
13094
|
+
React.createElement(Row, { className: "field" },
|
13095
|
+
React.createElement(Col, { span: 12, className: "field-key" }, t("userProfile:paymentId")),
|
13096
|
+
React.createElement(Col, { span: 12, className: "field-value" }, organisationDetails.paymentId
|
13097
|
+
? organisationDetails.paymentId
|
13098
|
+
: "-")),
|
13089
13099
|
React.createElement(Row, { className: "field" },
|
13090
13100
|
React.createElement(Col, { span: 12, className: "field-key" }, t("userProfile:companyRole")),
|
13091
13101
|
React.createElement(Col, { span: 12, className: "field-value" },
|