@undp/carbon-library 1.0.284-CARBON-406.5 → 1.0.284-CARBON-425.1
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 +4 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Definitions/ndcDetails.definitions.d.ts +0 -1
- package/dist/esm/index.js +4 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Definitions/ndcDetails.definitions.d.ts +0 -1
- package/dist/locales/i18n/ndc/en.json +0 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -26775,21 +26775,7 @@ var EditableCell = function (_a) {
|
|
26775
26775
|
}); },
|
26776
26776
|
},
|
26777
26777
|
] },
|
26778
|
-
React.createElement(antd.Input, { onBlur: function () { return onBlurHandler(record); }, placeholder: t("ndc:nationalPlanObjectivePlaceHolder") }))) : editing && dataIndex === "
|
26779
|
-
{
|
26780
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
26781
|
-
var trimValue;
|
26782
|
-
return __generator(this, function (_a) {
|
26783
|
-
trimValue = typeof value === "string" ? value.trim() : value;
|
26784
|
-
if (!trimValue) {
|
26785
|
-
throw new Error("".concat(title, " ").concat(t("ndc:isRequired")));
|
26786
|
-
}
|
26787
|
-
return [2 /*return*/];
|
26788
|
-
});
|
26789
|
-
}); },
|
26790
|
-
},
|
26791
|
-
] },
|
26792
|
-
React.createElement(antd.Input, { onBlur: function () { return onBlurHandler(record); }, placeholder: t("ndc:kpiUnitPlaceHolder") }))) : editing && dataIndex === "kpi" ? (React.createElement(antd.Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [
|
26778
|
+
React.createElement(antd.Input, { onBlur: function () { return onBlurHandler(record); }, placeholder: t("ndc:nationalPlanObjectivePlaceHolder") }))) : editing && dataIndex === "kpi" ? (React.createElement(antd.Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [
|
26793
26779
|
{
|
26794
26780
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
26795
26781
|
var trimValue;
|
@@ -26937,7 +26923,6 @@ var NdcDetailsComponent = function (props) {
|
|
26937
26923
|
actionType: NdcDetailsActionType.SubAction,
|
26938
26924
|
nationalPlanObjective: "",
|
26939
26925
|
kpi: "",
|
26940
|
-
kpiUnit: "",
|
26941
26926
|
ministryName: loginMinistry,
|
26942
26927
|
status: NdcDetailsActionStatus.New,
|
26943
26928
|
parentActionId: mainActionId,
|
@@ -26949,7 +26934,6 @@ var NdcDetailsComponent = function (props) {
|
|
26949
26934
|
form.setFieldsValue({
|
26950
26935
|
nationalPlanObjective: "",
|
26951
26936
|
kpi: "",
|
26952
|
-
kpiUnit: "",
|
26953
26937
|
});
|
26954
26938
|
}
|
26955
26939
|
setSubNdcActionsForPeriod(subNdcDetails);
|
@@ -26991,7 +26975,6 @@ var NdcDetailsComponent = function (props) {
|
|
26991
26975
|
return [2 /*return*/];
|
26992
26976
|
}
|
26993
26977
|
else if (updatedFields.kpi === row.kpi &&
|
26994
|
-
updatedFields.kpiUnit === row.kpiUnit &&
|
26995
26978
|
updatedFields.nationalPlanObjective === row.nationalPlanObjective) {
|
26996
26979
|
ClearEditMode();
|
26997
26980
|
return [2 /*return*/];
|
@@ -27005,13 +26988,13 @@ var NdcDetailsComponent = function (props) {
|
|
27005
26988
|
else {
|
27006
26989
|
updatedItem.status = NdcDetailsActionStatus.Pending;
|
27007
26990
|
}
|
27008
|
-
return [4 /*yield*/, post("national/programme/addNdcDetailsAction", __assign(__assign({}, updatedItem), { kpi:
|
26991
|
+
return [4 /*yield*/, post("national/programme/addNdcDetailsAction", __assign(__assign({}, updatedItem), { kpi: parseInt(updatedItem.kpi.toString()) }))];
|
27009
26992
|
case 5:
|
27010
26993
|
_a.sent();
|
27011
26994
|
return [3 /*break*/, 8];
|
27012
26995
|
case 6:
|
27013
26996
|
updatedItem.status = NdcDetailsActionStatus.Pending;
|
27014
|
-
return [4 /*yield*/, put("national/programme/updateNdcDetailsAction", __assign(__assign({}, updatedItem), { kpi:
|
26997
|
+
return [4 /*yield*/, put("national/programme/updateNdcDetailsAction", __assign(__assign({}, updatedItem), { kpi: parseInt(updatedItem.kpi.toString()) }))];
|
27015
26998
|
case 7:
|
27016
26999
|
_a.sent();
|
27017
27000
|
_a.label = 8;
|
@@ -27095,17 +27078,7 @@ var NdcDetailsComponent = function (props) {
|
|
27095
27078
|
width: 100,
|
27096
27079
|
editable: true,
|
27097
27080
|
render: function (_, record) { return (React.createElement(antd.Space, { size: "middle" }, record.kpi ? (React.createElement(antd.Tooltip, { title: isNdcActionEditable(record) ? "" : t("ndc:ndcUnauthorisedMsg") },
|
27098
|
-
React.createElement("span", null, record.kpi))) : (React.createElement(antd.Input, { placeholder:
|
27099
|
-
},
|
27100
|
-
{
|
27101
|
-
title: t("ndc:ndcColumnsKpiUnit"),
|
27102
|
-
dataIndex: "kpiUnit",
|
27103
|
-
key: "kpiUnit",
|
27104
|
-
align: "left",
|
27105
|
-
width: 100,
|
27106
|
-
editable: true,
|
27107
|
-
render: function (_, record) { return (React.createElement(antd.Space, { size: "middle" }, record.kpiUnit ? (React.createElement(antd.Tooltip, { title: isNdcActionEditable(record) ? "" : t("ndc:ndcUnauthorisedMsg") },
|
27108
|
-
React.createElement("span", null, record.kpiUnit))) : (React.createElement(antd.Input, { placeholder: t("ndc:kpiUnitPlaceHolder") })))); },
|
27081
|
+
React.createElement("span", null, record.kpi))) : (React.createElement(antd.Input, { placeholder: "Enter Kpi" })))); },
|
27109
27082
|
},
|
27110
27083
|
{
|
27111
27084
|
title: t("ndc:ndcColumnsMinistry"),
|
@@ -27169,7 +27142,6 @@ var NdcDetailsComponent = function (props) {
|
|
27169
27142
|
form.setFieldsValue({
|
27170
27143
|
nationalPlanObjective: "",
|
27171
27144
|
kpi: "",
|
27172
|
-
kpiUnit: "",
|
27173
27145
|
});
|
27174
27146
|
periodId = parseInt(selectedPeriod.key);
|
27175
27147
|
newData_1 = {
|
@@ -27177,7 +27149,6 @@ var NdcDetailsComponent = function (props) {
|
|
27177
27149
|
actionType: NdcDetailsActionType.MainAction,
|
27178
27150
|
nationalPlanObjective: "",
|
27179
27151
|
kpi: "",
|
27180
|
-
kpiUnit: "",
|
27181
27152
|
ministryName: loginMinistry,
|
27182
27153
|
periodId: periodId,
|
27183
27154
|
status: NdcDetailsActionStatus.New,
|