@undp/carbon-library 1.0.274-CARBON-363.44 → 1.0.274-CARBON-363.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +15 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +15 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -26700,7 +26700,7 @@ var EditableCell = function (_a) {
|
|
26700
26700
|
React.createElement(Input, { onBlur: function () { return onBlurHandler(record); }, placeholder: t("ndc:kpiPlaceHolder") }))) : (children)));
|
26701
26701
|
};
|
26702
26702
|
|
26703
|
-
var css_248z$4 = ".ndc-steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n justify-content: center; }\n .ndc-steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .ndc-steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .ndc-steps-actions .mg-left-1 {\n margin-left: 1rem; }\n\n.ndc-details .ant-input-number-input-wrap {\n margin-right: 10px; }\n\n.ndc-details tbody {\n vertical-align: top; }\n\n.ndc-details td .ant-space-item {\n margin-top: 5px; }\n\n.ndc-details .btn-danger {\n color: #ff4d4f !important;\n border-color: #ff8183 !important; }\n\n.ndc-details .btnAddNewMainAct {\n margin-bottom: 16;\n width: 100%;\n height: 45px;\n border-radius: 10px;\n border: 1px solid rgba(58, 53, 65, 0.5);\n background: #
|
26703
|
+
var css_248z$4 = ".ndc-steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n justify-content: center; }\n .ndc-steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .ndc-steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .ndc-steps-actions .mg-left-1 {\n margin-left: 1rem; }\n\n.ndc-details .ant-input-number-input-wrap {\n margin-right: 10px; }\n\n.ndc-details tbody {\n vertical-align: top; }\n\n.ndc-details td .ant-space-item {\n margin-top: 5px; }\n\n.ndc-details .btn-danger {\n color: #ff4d4f !important;\n border-color: #ff8183 !important; }\n\n.ndc-details .btnAddNewMainAct {\n margin-bottom: 16;\n width: 100%;\n height: 45px;\n border-radius: 10px;\n border: 1px solid rgba(58, 53, 65, 0.5);\n background: #fff;\n color: #16b1ff;\n text-align: center;\n font-family: Inter;\n font-size: 16px;\n font-style: normal;\n font-weight: 500; }\n\n.ndc-details .btnAddNewMainAct:disabled {\n color: rgba(0, 0, 0, 0.25);\n border-color: #d9d9d9;\n background: #f5f5f5;\n text-shadow: none;\n box-shadow: none; }\n\n.ndc-details .footer-btns:disabled {\n color: rgba(0, 0, 0, 0.25);\n border-color: #d9d9d9;\n background: #f5f5f5;\n text-shadow: none;\n box-shadow: none; }\n";
|
26704
26704
|
styleInject(css_248z$4);
|
26705
26705
|
|
26706
26706
|
var NdcDetailsActionType;
|
@@ -26858,6 +26858,15 @@ var NdcDetailsComponent = function (props) {
|
|
26858
26858
|
_a.sent();
|
26859
26859
|
return [2 /*return*/];
|
26860
26860
|
case 4:
|
26861
|
+
if (!updatedFields) {
|
26862
|
+
setEditingKey(null);
|
26863
|
+
return [2 /*return*/];
|
26864
|
+
}
|
26865
|
+
else if (updatedFields.kpi === row.kpi &&
|
26866
|
+
updatedFields.nationalPlanObjective === row.nationalPlanObjective) {
|
26867
|
+
setEditingKey(null);
|
26868
|
+
return [2 /*return*/];
|
26869
|
+
}
|
26861
26870
|
updatedItem = __assign(__assign({}, row), updatedFields);
|
26862
26871
|
if (!(updatedItem.status === NdcDetailsActionStatus.New)) return [3 /*break*/, 6];
|
26863
26872
|
if (isGovernmentUser &&
|
@@ -26903,6 +26912,7 @@ var NdcDetailsComponent = function (props) {
|
|
26903
26912
|
{
|
26904
26913
|
text: t("ndc:approve"),
|
26905
26914
|
icon: React.createElement(Icon.BoxArrowInDown, null),
|
26915
|
+
style: "color-primary",
|
26906
26916
|
click: function () {
|
26907
26917
|
setActionInfo({
|
26908
26918
|
action: "Approve",
|
@@ -26917,6 +26927,7 @@ var NdcDetailsComponent = function (props) {
|
|
26917
26927
|
{
|
26918
26928
|
text: t("ndc:reject"),
|
26919
26929
|
icon: React.createElement(Icon.XOctagon, null),
|
26930
|
+
style: "color-error",
|
26920
26931
|
click: function () {
|
26921
26932
|
setActionInfo({
|
26922
26933
|
action: "Reject",
|
@@ -26929,7 +26940,7 @@ var NdcDetailsComponent = function (props) {
|
|
26929
26940
|
},
|
26930
26941
|
},
|
26931
26942
|
], renderItem: function (item) { return (React.createElement(List.Item, { onClick: item.click },
|
26932
|
-
React.createElement(Typography.Text, { className: "action-icon
|
26943
|
+
React.createElement(Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
|
26933
26944
|
React.createElement("span", null, item.text))); } }));
|
26934
26945
|
}
|
26935
26946
|
else {
|
@@ -27168,8 +27179,8 @@ var NdcDetailsComponent = function (props) {
|
|
27168
27179
|
React.createElement(Button, { className: "btnAddNewMainAct", disabled: isMainActionInEditMode(), onClick: onClickedAddNewNdcDetail, type: "default" }, t("ndc:addNdcAction"))));
|
27169
27180
|
} })))),
|
27170
27181
|
isGovernmentUser && !selectedPeriod.finalized ? (React.createElement(Row, { justify: "end" },
|
27171
|
-
React.createElement(Button, { className: "mg-left-1 btn-danger", onClick: onClickedDeletePeriod, htmlType: "submit", disabled: isMainActionInEditMode(), loading: loading }, t("ndc:delete")),
|
27172
|
-
React.createElement(Button, { className: "mg-left-1", type: "primary", onClick: onClickedFinalizePeriod, disabled: isMainActionInEditMode(), htmlType: "submit", loading: loading }, t("ndc:finalize")))) : ("")));
|
27182
|
+
React.createElement(Button, { className: "mg-left-1 btn-danger footer-btns", onClick: onClickedDeletePeriod, htmlType: "submit", disabled: isMainActionInEditMode(), loading: loading }, t("ndc:delete")),
|
27183
|
+
React.createElement(Button, { className: "mg-left-1 footer-btns", type: "primary", onClick: onClickedFinalizePeriod, disabled: isMainActionInEditMode(), htmlType: "submit", loading: loading }, t("ndc:finalize")))) : ("")));
|
27173
27184
|
}
|
27174
27185
|
function subNdcActionTableContent(record) {
|
27175
27186
|
return (React.createElement(Table, { tableLayout: "fixed", rowKey: "id", components: components, rowClassName: function () { return "editable-row"; }, className: "common-table-class", bordered: true, dataSource: subNdcActionsForPeriod, loading: loading, onRow: function (record, rowIndex) {
|