@undp/carbon-library 1.0.284-CARBON-406.3 → 1.0.284-CARBON-425.0
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 +2 -31
- 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 +2 -31
- 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/esm/index.js
CHANGED
@@ -26754,21 +26754,7 @@ var EditableCell = function (_a) {
|
|
26754
26754
|
}); },
|
26755
26755
|
},
|
26756
26756
|
] },
|
26757
|
-
React.createElement(Input, { onBlur: function () { return onBlurHandler(record); }, placeholder: t("ndc:nationalPlanObjectivePlaceHolder") }))) : editing && dataIndex === "
|
26758
|
-
{
|
26759
|
-
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
26760
|
-
var trimValue;
|
26761
|
-
return __generator(this, function (_a) {
|
26762
|
-
trimValue = typeof value === "string" ? value.trim() : value;
|
26763
|
-
if (!trimValue) {
|
26764
|
-
throw new Error("".concat(title, " ").concat(t("ndc:isRequired")));
|
26765
|
-
}
|
26766
|
-
return [2 /*return*/];
|
26767
|
-
});
|
26768
|
-
}); },
|
26769
|
-
},
|
26770
|
-
] },
|
26771
|
-
React.createElement(Input, { onBlur: function () { return onBlurHandler(record); }, placeholder: t("ndc:kpiUnitPlaceHolder") }))) : editing && dataIndex === "kpi" ? (React.createElement(Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [
|
26757
|
+
React.createElement(Input, { onBlur: function () { return onBlurHandler(record); }, placeholder: t("ndc:nationalPlanObjectivePlaceHolder") }))) : editing && dataIndex === "kpi" ? (React.createElement(Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [
|
26772
26758
|
{
|
26773
26759
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|
26774
26760
|
var trimValue;
|
@@ -26916,7 +26902,6 @@ var NdcDetailsComponent = function (props) {
|
|
26916
26902
|
actionType: NdcDetailsActionType.SubAction,
|
26917
26903
|
nationalPlanObjective: "",
|
26918
26904
|
kpi: "",
|
26919
|
-
kpiUnit: "",
|
26920
26905
|
ministryName: loginMinistry,
|
26921
26906
|
status: NdcDetailsActionStatus.New,
|
26922
26907
|
parentActionId: mainActionId,
|
@@ -26928,7 +26913,6 @@ var NdcDetailsComponent = function (props) {
|
|
26928
26913
|
form.setFieldsValue({
|
26929
26914
|
nationalPlanObjective: "",
|
26930
26915
|
kpi: "",
|
26931
|
-
kpiUnit: "",
|
26932
26916
|
});
|
26933
26917
|
}
|
26934
26918
|
setSubNdcActionsForPeriod(subNdcDetails);
|
@@ -26970,7 +26954,6 @@ var NdcDetailsComponent = function (props) {
|
|
26970
26954
|
return [2 /*return*/];
|
26971
26955
|
}
|
26972
26956
|
else if (updatedFields.kpi === row.kpi &&
|
26973
|
-
updatedFields.kpiUnit === row.kpiUnit &&
|
26974
26957
|
updatedFields.nationalPlanObjective === row.nationalPlanObjective) {
|
26975
26958
|
ClearEditMode();
|
26976
26959
|
return [2 /*return*/];
|
@@ -27074,17 +27057,7 @@ var NdcDetailsComponent = function (props) {
|
|
27074
27057
|
width: 100,
|
27075
27058
|
editable: true,
|
27076
27059
|
render: function (_, record) { return (React.createElement(Space, { size: "middle" }, record.kpi ? (React.createElement(Tooltip, { title: isNdcActionEditable(record) ? "" : t("ndc:ndcUnauthorisedMsg") },
|
27077
|
-
React.createElement("span", null, record.kpi))) : (React.createElement(Input, { placeholder:
|
27078
|
-
},
|
27079
|
-
{
|
27080
|
-
title: t("ndc:ndcColumnsKpiUnit"),
|
27081
|
-
dataIndex: "kpiUnit",
|
27082
|
-
key: "kpiUnit",
|
27083
|
-
align: "left",
|
27084
|
-
width: 100,
|
27085
|
-
editable: true,
|
27086
|
-
render: function (_, record) { return (React.createElement(Space, { size: "middle" }, record.kpiUnit ? (React.createElement(Tooltip, { title: isNdcActionEditable(record) ? "" : t("ndc:ndcUnauthorisedMsg") },
|
27087
|
-
React.createElement("span", null, record.kpiUnit))) : (React.createElement(Input, { placeholder: t("ndc:kpiUnitPlaceHolder") })))); },
|
27060
|
+
React.createElement("span", null, record.kpi))) : (React.createElement(Input, { placeholder: "Enter Kpi" })))); },
|
27088
27061
|
},
|
27089
27062
|
{
|
27090
27063
|
title: t("ndc:ndcColumnsMinistry"),
|
@@ -27148,7 +27121,6 @@ var NdcDetailsComponent = function (props) {
|
|
27148
27121
|
form.setFieldsValue({
|
27149
27122
|
nationalPlanObjective: "",
|
27150
27123
|
kpi: "",
|
27151
|
-
kpiUnit: "",
|
27152
27124
|
});
|
27153
27125
|
periodId = parseInt(selectedPeriod.key);
|
27154
27126
|
newData_1 = {
|
@@ -27156,7 +27128,6 @@ var NdcDetailsComponent = function (props) {
|
|
27156
27128
|
actionType: NdcDetailsActionType.MainAction,
|
27157
27129
|
nationalPlanObjective: "",
|
27158
27130
|
kpi: "",
|
27159
|
-
kpiUnit: "",
|
27160
27131
|
ministryName: loginMinistry,
|
27161
27132
|
periodId: periodId,
|
27162
27133
|
status: NdcDetailsActionStatus.New,
|