@undp/carbon-library 1.0.175-CARBON-363.59 → 1.0.175-CARBON-363.72
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +13 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +13 -16
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -26161,7 +26161,7 @@ var EditableCell = function (_a) {
|
|
26161
26161
|
] }, inputNode)) : (children)));
|
26162
26162
|
};
|
26163
26163
|
|
26164
|
-
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-
|
26164
|
+
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";
|
26165
26165
|
styleInject(css_248z$4);
|
26166
26166
|
|
26167
26167
|
var NdcDetailsActionType;
|
@@ -26289,7 +26289,7 @@ var NdcDetailsComponent = function (props) {
|
|
26289
26289
|
return __generator(this, function (_a) {
|
26290
26290
|
switch (_a.label) {
|
26291
26291
|
case 0:
|
26292
|
-
_a.trys.push([0, 9,
|
26292
|
+
_a.trys.push([0, 9, , 10]);
|
26293
26293
|
updatedFields = void 0;
|
26294
26294
|
_a.label = 1;
|
26295
26295
|
case 1:
|
@@ -26324,20 +26324,18 @@ var NdcDetailsComponent = function (props) {
|
|
26324
26324
|
case 8:
|
26325
26325
|
fetchNdcDetailActions();
|
26326
26326
|
setEditingKey(-1);
|
26327
|
-
return [3 /*break*/,
|
26327
|
+
return [3 /*break*/, 10];
|
26328
26328
|
case 9:
|
26329
26329
|
exception_2 = _a.sent();
|
26330
|
+
setEditingKey(-1);
|
26330
26331
|
antd.message.open({
|
26331
26332
|
type: "error",
|
26332
26333
|
content: exception_2.message,
|
26333
26334
|
duration: 3,
|
26334
26335
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
26335
26336
|
});
|
26336
|
-
return [3 /*break*/,
|
26337
|
-
case 10:
|
26338
|
-
setEditingKey(-1);
|
26339
|
-
return [7 /*endfinally*/];
|
26340
|
-
case 11: return [2 /*return*/];
|
26337
|
+
return [3 /*break*/, 10];
|
26338
|
+
case 10: return [2 /*return*/];
|
26341
26339
|
}
|
26342
26340
|
});
|
26343
26341
|
}); };
|
@@ -26388,7 +26386,7 @@ var NdcDetailsComponent = function (props) {
|
|
26388
26386
|
dataIndex: "nationalPlanObjective",
|
26389
26387
|
key: "nationalPlanObjective",
|
26390
26388
|
align: "left",
|
26391
|
-
width:
|
26389
|
+
width: 400,
|
26392
26390
|
editable: true,
|
26393
26391
|
render: function (_, record) { return (React.createElement(antd.Space, { size: "middle" }, record.nationalPlanObjective ? (React.createElement("span", null, record.nationalPlanObjective)) : (React.createElement(antd.Input, { placeholder: "Enter National Plan Objective" })))); },
|
26394
26392
|
},
|
@@ -26406,10 +26404,10 @@ var NdcDetailsComponent = function (props) {
|
|
26406
26404
|
dataIndex: "ministryName",
|
26407
26405
|
key: "ministryName",
|
26408
26406
|
align: "left",
|
26409
|
-
width:
|
26407
|
+
width: 300,
|
26410
26408
|
editable: false,
|
26411
26409
|
render: function (_, record) { return (React.createElement(React.Fragment, null,
|
26412
|
-
React.createElement(antd.Select, { disabled: !(isSubNdcActionsEditable(record) && isEditing(record)), defaultValue: record.ministryName ? record.ministryName : loginMinistry, style: { width:
|
26410
|
+
React.createElement(antd.Select, { disabled: !(isSubNdcActionsEditable(record) && isEditing(record)), defaultValue: record.ministryName ? record.ministryName : loginMinistry, style: { width: 220 }, onChange: function (value, option) {
|
26413
26411
|
record.ministryName = option.label;
|
26414
26412
|
handleSave(record);
|
26415
26413
|
}, options: ministryOrgList }))); },
|
@@ -26419,7 +26417,7 @@ var NdcDetailsComponent = function (props) {
|
|
26419
26417
|
dataIndex: "status",
|
26420
26418
|
key: "status",
|
26421
26419
|
align: "left",
|
26422
|
-
width:
|
26420
|
+
width: 200,
|
26423
26421
|
editable: false,
|
26424
26422
|
render: function (_, record) {
|
26425
26423
|
var menu = actionMenu(record);
|
@@ -26551,12 +26549,11 @@ var NdcDetailsComponent = function (props) {
|
|
26551
26549
|
React.createElement(antd.Row, null,
|
26552
26550
|
React.createElement(antd.Col, { span: 24 },
|
26553
26551
|
React.createElement(antd.Form, { form: form, component: false },
|
26554
|
-
React.createElement(antd.Table, { key: tableKey, rowKey: "id", components: components, rowClassName: function () { return "editable-row"; }, bordered: true, loading: loading, dataSource: ndcMainDetailsForPeriod, columns: columns, expandedRowKeys: expandedRowKeys, onExpand: onMainTableRowExpand, expandable: {
|
26552
|
+
React.createElement(antd.Table, { tableLayout: "fixed", key: tableKey, rowKey: "id", components: components, rowClassName: function () { return "editable-row"; }, bordered: true, loading: loading, dataSource: ndcMainDetailsForPeriod, columns: columns, expandedRowKeys: expandedRowKeys, onExpand: onMainTableRowExpand, expandable: {
|
26555
26553
|
expandedRowRender: function (record) {
|
26556
26554
|
return subNdcActionTableContent();
|
26557
26555
|
},
|
26558
|
-
|
26559
|
-
columnWidth: 30,
|
26556
|
+
columnWidth: 40
|
26560
26557
|
}, onRow: function (record, rowIndex) {
|
26561
26558
|
return {
|
26562
26559
|
onClick: function (event) {
|
@@ -26586,7 +26583,7 @@ var NdcDetailsComponent = function (props) {
|
|
26586
26583
|
React.createElement(antd.Button, { className: "mg-left-1", type: "primary", onClick: onClickedFinalizePeriod, htmlType: "submit", loading: loading }, t("ndc:finalize")))) : ("")));
|
26587
26584
|
}
|
26588
26585
|
function subNdcActionTableContent(record) {
|
26589
|
-
return (React.createElement(antd.Table, { rowKey: "id", components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: subNdcActionsForPeriod, loading: loading, onRow: function (record, rowIndex) {
|
26586
|
+
return (React.createElement(antd.Table, { tableLayout: "fixed", rowKey: "id", components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: subNdcActionsForPeriod, loading: loading, onRow: function (record, rowIndex) {
|
26590
26587
|
return {
|
26591
26588
|
onClick: function (event) {
|
26592
26589
|
if (record.id &&
|