oa-componentbook 0.6.0 → 0.7.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/build/components/{Tabs.js → Accordians.js} +45 -35
- package/build/components/{Wallet Service Details/basicQuestions.js → CheckBoxes.js} +28 -22
- package/build/components/ColorUsage.js +35 -0
- package/build/components/CornerRadius.js +46 -0
- package/build/components/{Drawer.js → DrawerDesign.js} +28 -27
- package/build/components/KeyValueDataView.js +29 -18
- package/build/components/LeftPannelTab.js +34 -0
- package/build/components/Notification.js +84 -0
- package/build/components/RadioButton.js +46 -0
- package/build/components/{Button.js → SpacingScales.js} +15 -32
- package/build/components/{Table.js → TableDesign.js} +15 -14
- package/build/components/TabsDesign.js +65 -0
- package/build/components/{QuesAnsView.js → Toggle.js} +46 -21
- package/build/components/Typography.js +37 -0
- package/build/components/oa-button/OACustomButton.js +60 -0
- package/build/components/oa-button/styles.js +37 -0
- package/build/components/peclaim-components/CloseClaim.js +48 -163
- package/build/components/peclaim-components/ComplaintsTable.js +95 -70
- package/build/components/peclaim-components/MainComponent.js +192 -0
- package/build/components/peclaim-components/{compMain.js → SrComplaints.js} +1 -1
- package/build/components/peclaim-components/WorkflowSummaryNotesModal.js +24 -14
- package/build/components/peclaim-components/WorkflowSummaryTable.js +44 -37
- package/build/components/styles.js +72 -138
- package/build/components/wallet-service-details/ComplaintDetail.js +28 -0
- package/build/components/{Wallet Service Details/serviceDetailsTabView.js → wallet-service-details/ServiceDetailsTabView.js} +29 -28
- package/build/components/{Wallet Service Details/viewMoreDetailsDrawer.js → wallet-service-details/ViewMoreDetailsDrawer.js} +50 -38
- package/build/components/{Wallet Service Details/walletServiceDetails.js → wallet-service-details/WalletServiceDetails.js} +25 -29
- package/build/components/wallet-service-details/styles/styles.css +16 -0
- package/build/index.js +68 -42
- package/package.json +17 -6
- package/build/components/Login.js +0 -80
- package/build/components/Wallet Service Details/complaintDetail.js +0 -65
- package/build/components/Wallet Service Details/styles/styles.css +0 -99
- package/build/components/peclaim-components/wf Main.js +0 -192
- package/build/components/style/css/Button.module.css +0 -38
- package/build/components/style/css/login.css +0 -335
|
@@ -4,75 +4,100 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const columns = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
7
|
+
// import React from 'react';
|
|
8
|
+
|
|
9
|
+
// import PropTypes from 'prop-types';
|
|
10
|
+
|
|
11
|
+
// import { Spin } from 'antd';
|
|
12
|
+
// import TableDesign from '../TableDesign';
|
|
13
|
+
|
|
14
|
+
function ComplaintsTable() {
|
|
15
|
+
// {
|
|
16
|
+
// complaints, complaintsMaster, loading, redirectToComplaints,
|
|
17
|
+
// }
|
|
18
|
+
|
|
19
|
+
// const columns = [
|
|
20
|
+
// {
|
|
21
|
+
// title: 'COMPLAINT NO.',
|
|
22
|
+
// dataIndex: 'oa_complaints_number',
|
|
23
|
+
// key: 'oa_complaints_number',
|
|
24
|
+
// render: (text, record) => (
|
|
25
|
+
// <button
|
|
26
|
+
// onClick={() => redirectToComplaints(record.oa_complaints_number)}
|
|
27
|
+
// type="button"
|
|
28
|
+
// >
|
|
29
|
+
// {text}
|
|
30
|
+
// </button>
|
|
31
|
+
// ),
|
|
32
|
+
// },
|
|
33
|
+
// {
|
|
34
|
+
// title: 'COMPLAINT TYPE',
|
|
35
|
+
// dataIndex: 'complaint_type_id',
|
|
36
|
+
// key: 'complaint_type_id',
|
|
37
|
+
// render: (text) => (
|
|
38
|
+
// complaintsMaster.complaint_type[text]?.name || '-'
|
|
39
|
+
// ),
|
|
40
|
+
// },
|
|
41
|
+
// {
|
|
42
|
+
// title: 'STATUS',
|
|
43
|
+
// dataIndex: 'status',
|
|
44
|
+
// key: 'status',
|
|
45
|
+
// render: (text) => (
|
|
46
|
+
// complaintsMaster.status[text] || '-'
|
|
47
|
+
// ),
|
|
48
|
+
// },
|
|
49
|
+
// {
|
|
50
|
+
// title: 'SOURCE',
|
|
51
|
+
// dataIndex: 'source',
|
|
52
|
+
// key: 'source',
|
|
53
|
+
// render: (text) => (
|
|
54
|
+
// complaintsMaster.source[text] || '-'
|
|
55
|
+
// ),
|
|
56
|
+
// },
|
|
57
|
+
// {
|
|
58
|
+
// title: 'PRIORITY',
|
|
59
|
+
// dataIndex: 'priority',
|
|
60
|
+
// key: 'priority',
|
|
61
|
+
// render: (text) => (
|
|
62
|
+
// complaintsMaster.priority[text] || '-'
|
|
63
|
+
// ),
|
|
64
|
+
// },
|
|
65
|
+
// {
|
|
66
|
+
// title: 'DATE',
|
|
67
|
+
// dataIndex: 'date_entered',
|
|
68
|
+
// key: 'date_entered',
|
|
69
|
+
// },
|
|
70
|
+
// {
|
|
71
|
+
// title: 'TEAM',
|
|
72
|
+
// dataIndex: 'complaint_type_id',
|
|
73
|
+
// key: 'complaint_type_id',
|
|
74
|
+
// render: (text) => (
|
|
75
|
+
// complaintsMaster.complaint_type[text]?.name ?
|
|
76
|
+
// complaintsMaster[complaintsMaster.complaint_type[text].name] || '-' : '-'
|
|
77
|
+
// ),
|
|
78
|
+
// },
|
|
79
|
+
// {
|
|
80
|
+
// title: 'CMS USER',
|
|
81
|
+
// dataIndex: 'cms_user_name',
|
|
82
|
+
// key: 'cms_user_name',
|
|
83
|
+
// },
|
|
84
|
+
// ];
|
|
85
|
+
|
|
86
|
+
// return (
|
|
87
|
+
// <Spin spinning={loading} size="large">
|
|
88
|
+
// <TableDesign
|
|
89
|
+
// dataSource={complaints}
|
|
90
|
+
// columns={columns}
|
|
91
|
+
// pagination={false}
|
|
92
|
+
// rowKey="oa_complaints_number"
|
|
93
|
+
// />
|
|
94
|
+
// </Spin>
|
|
95
|
+
// );
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// ComplaintsTable.propTypes = {
|
|
99
|
+
// complaints: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
100
|
+
// complaintsMaster: PropTypes,
|
|
101
|
+
// };
|
|
77
102
|
var _default = ComplaintsTable;
|
|
78
103
|
exports.default = _default;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.weak-map.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _WorkflowSummaryTable = _interopRequireDefault(require("./WorkflowSummaryTable"));
|
|
11
|
+
var _WorkflowSummaryNotesModal = _interopRequireDefault(require("./WorkflowSummaryNotesModal"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
// import { getNotesById } from "../../api-service";
|
|
16
|
+
|
|
17
|
+
function MainComponent(props) {
|
|
18
|
+
const [viewNotesOpen, setViewNotesOpen] = (0, _react.useState)(false);
|
|
19
|
+
const [renderedNotes, setRenderedNotes] = (0, _react.useState)([]);
|
|
20
|
+
const [selectedTaskId, setSelectedTaskId] = (0, _react.useState)(null);
|
|
21
|
+
|
|
22
|
+
// Define your data for srSummary and refPrimaryTrackingNo here
|
|
23
|
+
const srSummaryData = [{
|
|
24
|
+
stageOrderId: 10,
|
|
25
|
+
processInstanceId: '4000000303135196',
|
|
26
|
+
taskName: 'Document Upload',
|
|
27
|
+
assignee: '26969071',
|
|
28
|
+
startTime: '11-Sep-2023 13:42:48',
|
|
29
|
+
comments: [],
|
|
30
|
+
endTime: '11-Sep-2023 13:42:49',
|
|
31
|
+
status: 'completed',
|
|
32
|
+
liveStatus: null,
|
|
33
|
+
userName: null,
|
|
34
|
+
taskId: '4000000303135251',
|
|
35
|
+
taskDefId: 'DocumentUpload'
|
|
36
|
+
}, {
|
|
37
|
+
stageOrderId: 20,
|
|
38
|
+
processInstanceId: '4000000303135196',
|
|
39
|
+
taskName: 'Verification',
|
|
40
|
+
assignee: null,
|
|
41
|
+
startTime: '11-Sep-2023 13:42:49',
|
|
42
|
+
comments: [],
|
|
43
|
+
endTime: null,
|
|
44
|
+
status: 'In-Progress',
|
|
45
|
+
liveStatus: null,
|
|
46
|
+
userName: null,
|
|
47
|
+
taskId: '4000000303135285',
|
|
48
|
+
taskDefId: 'DocumentVerification'
|
|
49
|
+
}, {
|
|
50
|
+
stageOrderId: 30,
|
|
51
|
+
processInstanceId: '4000000303135196',
|
|
52
|
+
taskName: 'Pick Up',
|
|
53
|
+
assignee: null,
|
|
54
|
+
startTime: null,
|
|
55
|
+
comments: null,
|
|
56
|
+
endTime: null,
|
|
57
|
+
status: 'Not-Started',
|
|
58
|
+
liveStatus: null,
|
|
59
|
+
userName: null,
|
|
60
|
+
taskId: null,
|
|
61
|
+
taskDefId: null
|
|
62
|
+
}, {
|
|
63
|
+
stageOrderId: 40,
|
|
64
|
+
processInstanceId: '4000000303135196',
|
|
65
|
+
taskName: 'Estimation',
|
|
66
|
+
assignee: null,
|
|
67
|
+
startTime: null,
|
|
68
|
+
comments: null,
|
|
69
|
+
endTime: null,
|
|
70
|
+
status: 'Not-Started',
|
|
71
|
+
liveStatus: null,
|
|
72
|
+
userName: null,
|
|
73
|
+
taskId: null,
|
|
74
|
+
taskDefId: null
|
|
75
|
+
}, {
|
|
76
|
+
stageOrderId: 50,
|
|
77
|
+
processInstanceId: '4000000303135196',
|
|
78
|
+
taskName: 'Docs to IC',
|
|
79
|
+
assignee: null,
|
|
80
|
+
startTime: null,
|
|
81
|
+
comments: null,
|
|
82
|
+
endTime: null,
|
|
83
|
+
status: 'Not-Started',
|
|
84
|
+
liveStatus: null,
|
|
85
|
+
userName: null,
|
|
86
|
+
taskId: null,
|
|
87
|
+
taskDefId: null
|
|
88
|
+
}, {
|
|
89
|
+
stageOrderId: 60,
|
|
90
|
+
processInstanceId: '4000000303135196',
|
|
91
|
+
taskName: 'IC Approval',
|
|
92
|
+
assignee: null,
|
|
93
|
+
startTime: null,
|
|
94
|
+
comments: null,
|
|
95
|
+
endTime: null,
|
|
96
|
+
status: 'Not-Started',
|
|
97
|
+
liveStatus: null,
|
|
98
|
+
userName: null,
|
|
99
|
+
taskId: null,
|
|
100
|
+
taskDefId: null
|
|
101
|
+
}, {
|
|
102
|
+
stageOrderId: 70,
|
|
103
|
+
processInstanceId: '4000000303135196',
|
|
104
|
+
taskName: 'Repair Due Info',
|
|
105
|
+
assignee: null,
|
|
106
|
+
startTime: null,
|
|
107
|
+
comments: null,
|
|
108
|
+
endTime: null,
|
|
109
|
+
status: 'Not-Started',
|
|
110
|
+
liveStatus: null,
|
|
111
|
+
userName: null,
|
|
112
|
+
taskId: null,
|
|
113
|
+
taskDefId: null
|
|
114
|
+
}, {
|
|
115
|
+
stageOrderId: 80,
|
|
116
|
+
processInstanceId: '4000000303135196',
|
|
117
|
+
taskName: 'Delivery',
|
|
118
|
+
assignee: null,
|
|
119
|
+
startTime: null,
|
|
120
|
+
comments: null,
|
|
121
|
+
endTime: null,
|
|
122
|
+
status: 'Not-Started',
|
|
123
|
+
liveStatus: null,
|
|
124
|
+
userName: null,
|
|
125
|
+
taskId: null,
|
|
126
|
+
taskDefId: null
|
|
127
|
+
}, {
|
|
128
|
+
stageOrderId: 90,
|
|
129
|
+
processInstanceId: '4000000303135196',
|
|
130
|
+
taskName: 'Settlement Docs To IC',
|
|
131
|
+
assignee: null,
|
|
132
|
+
startTime: null,
|
|
133
|
+
comments: null,
|
|
134
|
+
endTime: null,
|
|
135
|
+
status: 'Not-Started',
|
|
136
|
+
liveStatus: null,
|
|
137
|
+
userName: null,
|
|
138
|
+
taskId: null,
|
|
139
|
+
taskDefId: null
|
|
140
|
+
}, {
|
|
141
|
+
stageOrderId: 100,
|
|
142
|
+
processInstanceId: '4000000303135196',
|
|
143
|
+
taskName: 'IC Claim Payment',
|
|
144
|
+
assignee: null,
|
|
145
|
+
startTime: null,
|
|
146
|
+
comments: null,
|
|
147
|
+
endTime: null,
|
|
148
|
+
status: 'Not-Started',
|
|
149
|
+
liveStatus: null,
|
|
150
|
+
userName: null,
|
|
151
|
+
taskId: null,
|
|
152
|
+
taskDefId: null
|
|
153
|
+
}];
|
|
154
|
+
const refPrimaryTrackingNoData = '';
|
|
155
|
+
const handleViewNotes = (taskId, processInstanceId) => {
|
|
156
|
+
console.log(taskId, processInstanceId);
|
|
157
|
+
// Fetch and set notes data
|
|
158
|
+
// getNotesById(refPrimaryTrackingNoData, taskId)
|
|
159
|
+
// .then((response) => {
|
|
160
|
+
// if (response.data.status === "success") {
|
|
161
|
+
// setRenderedNotes(
|
|
162
|
+
// response.data.data.activitiMap &&
|
|
163
|
+
// response.data.data.activitiMap[taskId] &&
|
|
164
|
+
// response.data.data.activitiMap[taskId].length > 0
|
|
165
|
+
// ? response.data.data.activitiMap[taskId]
|
|
166
|
+
// : []
|
|
167
|
+
// );
|
|
168
|
+
// setViewNotesOpen(true);
|
|
169
|
+
// } else {
|
|
170
|
+
// // Handle error or display a notification
|
|
171
|
+
// }
|
|
172
|
+
// })
|
|
173
|
+
// .catch((error) => {
|
|
174
|
+
// // Handle error or display a notification
|
|
175
|
+
// console.log("error", error);
|
|
176
|
+
// });
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const handleCloseNotesModal = () => {
|
|
180
|
+
setViewNotesOpen(false);
|
|
181
|
+
};
|
|
182
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_WorkflowSummaryTable.default, {
|
|
183
|
+
data: srSummaryData,
|
|
184
|
+
onRowClick: handleViewNotes
|
|
185
|
+
}), /*#__PURE__*/_react.default.createElement(_WorkflowSummaryNotesModal.default, {
|
|
186
|
+
open: viewNotesOpen,
|
|
187
|
+
notesData: renderedNotes,
|
|
188
|
+
onClose: handleCloseNotesModal
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
var _default = MainComponent;
|
|
192
|
+
exports.default = _default;
|
|
@@ -12,7 +12,7 @@ var _ComplaintsTable = _interopRequireDefault(require("./ComplaintsTable"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
//import { getComplaints, getComplaintsMaster } from "../../api-service";
|
|
15
|
+
// import { getComplaints, getComplaintsMaster } from "../../api-service";
|
|
16
16
|
|
|
17
17
|
function SrComplaints(props) {
|
|
18
18
|
const [complaints, setComplaints] = (0, _react.useState)([]);
|
|
@@ -5,36 +5,37 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
9
|
var _antd = require("antd");
|
|
9
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
11
|
function WorkflowSummaryNotesModal(_ref) {
|
|
11
12
|
let {
|
|
12
|
-
|
|
13
|
+
open,
|
|
13
14
|
notesData,
|
|
14
15
|
onClose,
|
|
15
16
|
configData
|
|
16
17
|
} = _ref;
|
|
17
18
|
const columns = [{
|
|
18
|
-
title:
|
|
19
|
-
dataIndex:
|
|
20
|
-
key:
|
|
19
|
+
title: 'Serial no.',
|
|
20
|
+
dataIndex: 'index',
|
|
21
|
+
key: 'index',
|
|
21
22
|
render: (text, record, index) => index + 1
|
|
22
23
|
}, {
|
|
23
|
-
title:
|
|
24
|
-
dataIndex:
|
|
25
|
-
key:
|
|
24
|
+
title: 'Notes',
|
|
25
|
+
dataIndex: 'message',
|
|
26
|
+
key: 'message'
|
|
26
27
|
}, {
|
|
27
|
-
title:
|
|
28
|
-
dataIndex:
|
|
29
|
-
key:
|
|
28
|
+
title: 'Date and Time',
|
|
29
|
+
dataIndex: 'time',
|
|
30
|
+
key: 'time'
|
|
30
31
|
}, {
|
|
31
|
-
title:
|
|
32
|
-
dataIndex:
|
|
33
|
-
key:
|
|
32
|
+
title: 'User',
|
|
33
|
+
dataIndex: 'userDetails.firstName',
|
|
34
|
+
key: 'userDetails.firstName'
|
|
34
35
|
}];
|
|
35
36
|
return /*#__PURE__*/_react.default.createElement(_antd.Modal, {
|
|
36
37
|
title: null,
|
|
37
|
-
|
|
38
|
+
open: open,
|
|
38
39
|
onOk: onClose,
|
|
39
40
|
onCancel: onClose,
|
|
40
41
|
footer: null,
|
|
@@ -46,5 +47,14 @@ function WorkflowSummaryNotesModal(_ref) {
|
|
|
46
47
|
columns: columns
|
|
47
48
|
})) : /*#__PURE__*/_react.default.createElement("h4", null, "No Notes available"));
|
|
48
49
|
}
|
|
50
|
+
WorkflowSummaryNotesModal.propTypes = {
|
|
51
|
+
configData: _propTypes.default.objectOf(_propTypes.default.string).isRequired,
|
|
52
|
+
notesData: _propTypes.default.objectOf(_propTypes.default.string).isRequired,
|
|
53
|
+
onClose: _propTypes.default.func.isRequired,
|
|
54
|
+
open: _propTypes.default.bool
|
|
55
|
+
};
|
|
56
|
+
WorkflowSummaryNotesModal.defaultProps = {
|
|
57
|
+
open: false
|
|
58
|
+
};
|
|
49
59
|
var _default = WorkflowSummaryNotesModal;
|
|
50
60
|
exports.default = _default;
|
|
@@ -5,71 +5,78 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
9
|
var _antd = require("antd");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
10
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
+
var _TableDesign = _interopRequireDefault(require("../TableDesign"));
|
|
12
|
+
var _templateObject;
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
15
|
function WorkflowSummaryTable(_ref) {
|
|
13
16
|
let {
|
|
14
17
|
data,
|
|
15
18
|
onRowClick,
|
|
16
19
|
configData
|
|
17
20
|
} = _ref;
|
|
21
|
+
const FixedWidthImg = _styledComponents.default.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 20px;\n "])));
|
|
18
22
|
const columns = [{
|
|
19
|
-
title:
|
|
20
|
-
dataIndex:
|
|
21
|
-
key:
|
|
23
|
+
title: 'Stages',
|
|
24
|
+
dataIndex: 'taskName',
|
|
25
|
+
key: 'taskName'
|
|
22
26
|
}, {
|
|
23
|
-
title:
|
|
24
|
-
dataIndex:
|
|
25
|
-
key:
|
|
27
|
+
title: 'Status',
|
|
28
|
+
dataIndex: 'status',
|
|
29
|
+
key: 'status',
|
|
26
30
|
render: status => {
|
|
27
|
-
if (status ===
|
|
31
|
+
if (status === 'In-Progress' || status === 'Inprogress') {
|
|
28
32
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
29
33
|
className: "yellowBg"
|
|
30
34
|
}, "In-Progress");
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
}
|
|
36
|
+
if (status.toLowerCase() === 'completed') {
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(FixedWidthImg, {
|
|
34
38
|
src: "/static/oasys/images/checkbox-outline01.png",
|
|
35
39
|
alt: "complete icon"
|
|
36
40
|
});
|
|
37
|
-
} else {
|
|
38
|
-
return status;
|
|
39
41
|
}
|
|
42
|
+
return status;
|
|
40
43
|
}
|
|
41
44
|
}, {
|
|
42
|
-
title:
|
|
43
|
-
key:
|
|
44
|
-
render: (text, record) => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
45
|
+
title: 'Notes',
|
|
46
|
+
key: 'taskId',
|
|
47
|
+
render: (text, record) => /*#__PURE__*/_react.default.createElement("button", {
|
|
48
|
+
"data-id": record.taskId,
|
|
49
|
+
onClick: () => onRowClick(record.taskId, record.processInstanceId),
|
|
50
|
+
type: "button"
|
|
51
|
+
}, record.taskId ? 'View Notes' : '')
|
|
50
52
|
}, {
|
|
51
|
-
title:
|
|
52
|
-
dataIndex:
|
|
53
|
-
key:
|
|
54
|
-
render: startTime => startTime
|
|
53
|
+
title: 'Start Date',
|
|
54
|
+
dataIndex: 'startTime',
|
|
55
|
+
key: 'startTime',
|
|
56
|
+
render: startTime => startTime || 'Not Started'
|
|
55
57
|
}, {
|
|
56
|
-
title:
|
|
57
|
-
dataIndex:
|
|
58
|
-
key:
|
|
59
|
-
render: endTime => endTime
|
|
58
|
+
title: 'End Date',
|
|
59
|
+
dataIndex: 'endTime',
|
|
60
|
+
key: 'endTime',
|
|
61
|
+
render: endTime => endTime || 'Not Started'
|
|
60
62
|
}, {
|
|
61
|
-
title:
|
|
62
|
-
dataIndex:
|
|
63
|
-
key:
|
|
63
|
+
title: 'Performed by',
|
|
64
|
+
dataIndex: 'assignee',
|
|
65
|
+
key: 'assignee'
|
|
64
66
|
}, {
|
|
65
|
-
title:
|
|
66
|
-
dataIndex:
|
|
67
|
-
key:
|
|
67
|
+
title: 'User Name',
|
|
68
|
+
dataIndex: 'assignee',
|
|
69
|
+
key: 'assignee'
|
|
68
70
|
}];
|
|
69
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_TableDesign.default, {
|
|
70
72
|
columns: columns,
|
|
71
73
|
dataSource: data
|
|
72
74
|
});
|
|
73
75
|
}
|
|
76
|
+
WorkflowSummaryTable.propTypes = {
|
|
77
|
+
data: _propTypes.default.objectOf(_propTypes.default.string).isRequired,
|
|
78
|
+
onRowClick: _propTypes.default.func.isRequired,
|
|
79
|
+
configData: _propTypes.default.objectOf(_propTypes.default.string).isRequired
|
|
80
|
+
};
|
|
74
81
|
var _default = WorkflowSummaryTable;
|
|
75
82
|
exports.default = _default;
|