oa-componentbook 0.7.0 → 0.9.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.
Files changed (61) hide show
  1. package/build/components/Accordians.js +1 -9
  2. package/build/components/ColorVariables.js +25 -0
  3. package/build/components/{oa-button/OACustomButton.js → oa-component-button/CustomButton.js} +14 -14
  4. package/build/components/oa-component-button/styles.js +38 -0
  5. package/build/components/{CheckBoxes.js → oa-component-checkbox/CustomCheckBox.js} +8 -8
  6. package/build/components/oa-component-colorUsage/ColorUsage.js +27 -0
  7. package/build/components/oa-component-colorUsage/styles.js +14 -0
  8. package/build/components/oa-component-cornerRadius/CornerRadius.js +25 -0
  9. package/build/components/oa-component-cornerRadius/styles.js +35 -0
  10. package/build/components/oa-component-drawer/CustomDrawer.js +86 -0
  11. package/build/components/oa-component-drawer/styles.js +17 -0
  12. package/build/components/oa-component-modal/CustomModal.js +92 -0
  13. package/build/components/oa-component-modal/styles.js +16 -0
  14. package/build/components/{Notification.js → oa-component-notification/CustomNotification.js} +43 -37
  15. package/build/components/oa-component-notification/styles.js +13 -0
  16. package/build/components/{RadioButton.js → oa-component-radio/CustomRadio.js} +18 -13
  17. package/build/components/oa-component-spacingScales/SpacingScales.js +27 -0
  18. package/build/components/oa-component-spacingScales/styles.js +49 -0
  19. package/build/components/{TableDesign.js → oa-component-table/CustomTable.js} +4 -4
  20. package/build/components/{TabsDesign.js → oa-component-tabs/CustomTabs.js} +5 -5
  21. package/build/components/oa-component-textarea/TextArea.js +38 -0
  22. package/build/components/oa-component-textarea/styles.js +17 -0
  23. package/build/components/{DrawerDesign.js → oa-component-timeline/CustomTimeline.js} +27 -37
  24. package/build/components/oa-component-timeline/styles.js +17 -0
  25. package/build/components/oa-component-toggle/CustomToggle.js +44 -0
  26. package/build/components/oa-component-toggle/styles.js +16 -0
  27. package/build/components/oa-component-typography/Typography.js +34 -0
  28. package/build/components/oa-component-typography/styles.js +14 -0
  29. package/build/index.js +77 -57
  30. package/build/widgets/oa-widget-address/Address.js +61 -0
  31. package/build/widgets/oa-widget-address/styles.js +16 -0
  32. package/build/widgets/oa-widget-approval.js +134 -0
  33. package/build/widgets/oa-widget-keyValueDataView/KeyValueDataView.js +67 -0
  34. package/build/widgets/oa-widget-keyValueDataView/styles.js +16 -0
  35. package/build/widgets/oa-widget-send-payment-link/SendPaymentLink.js +109 -0
  36. package/build/widgets/oa-widget-send-payment-link/example-usage.md +34 -0
  37. package/build/widgets/oa-widget-send-payment-link/styles.js +18 -0
  38. package/build/widgets/oa-widget-stagesTimeline/StageTimeline.js +49 -0
  39. package/build/widgets/oa-widget-stagesTimeline/styles.js +22 -0
  40. package/build/widgets/oa-widget-track-shipment/TrackShipment.js +102 -0
  41. package/package.json +1 -1
  42. package/build/components/ColorUsage.js +0 -35
  43. package/build/components/CornerRadius.js +0 -46
  44. package/build/components/KeyValueDataView.js +0 -48
  45. package/build/components/LeftPannelTab.js +0 -34
  46. package/build/components/SpacingScales.js +0 -34
  47. package/build/components/Toggle.js +0 -60
  48. package/build/components/Typography.js +0 -37
  49. package/build/components/oa-button/styles.js +0 -37
  50. package/build/components/peclaim-components/CloseClaim.js +0 -97
  51. package/build/components/peclaim-components/ComplaintsTable.js +0 -103
  52. package/build/components/peclaim-components/MainComponent.js +0 -192
  53. package/build/components/peclaim-components/SrComplaints.js +0 -54
  54. package/build/components/peclaim-components/WorkflowSummaryNotesModal.js +0 -60
  55. package/build/components/peclaim-components/WorkflowSummaryTable.js +0 -82
  56. package/build/components/styles.js +0 -89
  57. package/build/components/wallet-service-details/ComplaintDetail.js +0 -28
  58. package/build/components/wallet-service-details/ServiceDetailsTabView.js +0 -170
  59. package/build/components/wallet-service-details/ViewMoreDetailsDrawer.js +0 -95
  60. package/build/components/wallet-service-details/WalletServiceDetails.js +0 -67
  61. package/build/components/wallet-service-details/styles/styles.css +0 -16
@@ -1,97 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.weak-map.js");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.CloseClaimForm = CloseClaimForm;
8
- exports.default = void 0;
9
- require("core-js/modules/web.dom-collections.iterator.js");
10
- var _react = _interopRequireWildcard(require("react"));
11
- var _propTypes = _interopRequireDefault(require("prop-types"));
12
- var _antd = require("antd");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- 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); }
15
- 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; }
16
- const {
17
- Option
18
- } = _antd.Select;
19
- const {
20
- TextArea
21
- } = _antd.Input;
22
- function CloseClaimForm(_ref) {
23
- let {
24
- form,
25
- onCloseClaim,
26
- referenceTrackingNo
27
- } = _ref;
28
- const [modalData, setModalData] = (0, _react.useState)({
29
- open: false
30
- });
31
- const [successModal, setSuccessModal] = (0, _react.useState)(false);
32
- const closeClaim = () => {
33
- setModalData({
34
- open: true
35
- });
36
- };
37
- const onCancel = () => {
38
- setModalData({
39
- open: false
40
- });
41
- form.resetFields();
42
- };
43
- const validateData = e => {
44
- e.preventDefault();
45
- form.validateFieldsAndScroll((err, values) => {
46
- if (!err) {
47
- onCloseClaim(values);
48
- }
49
- });
50
- };
51
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("button", {
52
- onClick: closeClaim,
53
- className: "ant-btn-primary",
54
- type: "button"
55
- }, "Close Claim"), /*#__PURE__*/_react.default.createElement(_antd.Modal, {
56
- open: modalData.open,
57
- onCancel: onCancel,
58
- cancelButtonProps: {
59
- style: {
60
- display: 'none'
61
- }
62
- },
63
- okButtonProps: {
64
- style: {
65
- display: 'none'
66
- }
67
- },
68
- width: 768,
69
- className: "closeClaimModal"
70
- }, /*#__PURE__*/_react.default.createElement("h1", null, "Close Claim"), /*#__PURE__*/_react.default.createElement("p", null, "Are you sure you would like to close this claim as this action will close the SR#", referenceTrackingNo, ' ', "and no further processing will be allowed. Please provide the reason for closure."), /*#__PURE__*/_react.default.createElement(_antd.Form, null)), /*#__PURE__*/_react.default.createElement(_antd.Modal, {
71
- open: successModal,
72
- onCancel: () => setSuccessModal(false),
73
- cancelButtonProps: {
74
- style: {
75
- display: 'none'
76
- }
77
- },
78
- okButtonProps: {
79
- style: {
80
- display: 'none'
81
- }
82
- },
83
- width: 448,
84
- className: "claimDashboard"
85
- }));
86
- }
87
- CloseClaimForm.propTypes = {
88
- form: _propTypes.default.shape({
89
- getFieldDecorator: _propTypes.default.func,
90
- resetFields: _propTypes.default.func,
91
- validateFieldsAndScroll: _propTypes.default.func
92
- }).isRequired,
93
- onCloseClaim: _propTypes.default.func.isRequired,
94
- referenceTrackingNo: _propTypes.default.string.isRequired
95
- };
96
- var _default = CloseClaimForm;
97
- exports.default = _default;
@@ -1,103 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
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
- // };
102
- var _default = ComplaintsTable;
103
- exports.default = _default;
@@ -1,192 +0,0 @@
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;
@@ -1,54 +0,0 @@
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 = SrComplaints;
8
- require("core-js/modules/web.dom-collections.iterator.js");
9
- var _react = _interopRequireWildcard(require("react"));
10
- var _antd = require("antd");
11
- var _ComplaintsTable = _interopRequireDefault(require("./ComplaintsTable"));
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 { getComplaints, getComplaintsMaster } from "../../api-service";
16
-
17
- function SrComplaints(props) {
18
- const [complaints, setComplaints] = (0, _react.useState)([]);
19
- const [complaintsMaster, setComplaintsMaster] = (0, _react.useState)({});
20
- const [loading, setLoading] = (0, _react.useState)(true);
21
-
22
- // useEffect(() => {
23
- // const refPrimaryTrackingNo = props.srSummary.refPrimaryTrackingNo;
24
-
25
- // const fetchData = async () => {
26
- // try {
27
- // const complaintsResponse = await getComplaints(refPrimaryTrackingNo);
28
- // if (complaintsResponse.data.status === "success") {
29
- // setComplaints(complaintsResponse.data.data);
30
- // const complaintsMasterResponse = await getComplaintsMaster("0");
31
- // if (complaintsMasterResponse.data.status === "success") {
32
- // setComplaintsMaster(complaintsMasterResponse.data.data[0]);
33
- // }
34
- // }
35
- // setLoading(false);
36
- // } catch (error) {
37
- // console.log("Error:", error);
38
- // setLoading(false);
39
- // }
40
- // };
41
-
42
- // fetchData();
43
- // }, [props.srSummary.refPrimaryTrackingNo]);
44
-
45
- const redirectToComplaints = complaintId => {
46
- // Implement your logic to redirect to complaints page
47
- };
48
- return /*#__PURE__*/_react.default.createElement(_ComplaintsTable.default, {
49
- complaints: complaints,
50
- complaintsMaster: complaintsMaster,
51
- loading: loading,
52
- redirectToComplaints: redirectToComplaints
53
- });
54
- }
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _antd = require("antd");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function WorkflowSummaryNotesModal(_ref) {
12
- let {
13
- open,
14
- notesData,
15
- onClose,
16
- configData
17
- } = _ref;
18
- const columns = [{
19
- title: 'Serial no.',
20
- dataIndex: 'index',
21
- key: 'index',
22
- render: (text, record, index) => index + 1
23
- }, {
24
- title: 'Notes',
25
- dataIndex: 'message',
26
- key: 'message'
27
- }, {
28
- title: 'Date and Time',
29
- dataIndex: 'time',
30
- key: 'time'
31
- }, {
32
- title: 'User',
33
- dataIndex: 'userDetails.firstName',
34
- key: 'userDetails.firstName'
35
- }];
36
- return /*#__PURE__*/_react.default.createElement(_antd.Modal, {
37
- title: null,
38
- open: open,
39
- onOk: onClose,
40
- onCancel: onClose,
41
- footer: null,
42
- className: "statusModal notesDiv"
43
- }, notesData && notesData.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
44
- className: "notesDiv"
45
- }, /*#__PURE__*/_react.default.createElement("h4", null, " Notes "), /*#__PURE__*/_react.default.createElement(_antd.Table, {
46
- dataSource: notesData,
47
- columns: columns
48
- })) : /*#__PURE__*/_react.default.createElement("h4", null, "No Notes available"));
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
- };
59
- var _default = WorkflowSummaryNotesModal;
60
- exports.default = _default;
@@ -1,82 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _antd = require("antd");
10
- var _styledComponents = _interopRequireDefault(require("styled-components"));
11
- var _TableDesign = _interopRequireDefault(require("../TableDesign"));
12
- var _templateObject;
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) } })); }
15
- function WorkflowSummaryTable(_ref) {
16
- let {
17
- data,
18
- onRowClick,
19
- configData
20
- } = _ref;
21
- const FixedWidthImg = _styledComponents.default.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 20px;\n "])));
22
- const columns = [{
23
- title: 'Stages',
24
- dataIndex: 'taskName',
25
- key: 'taskName'
26
- }, {
27
- title: 'Status',
28
- dataIndex: 'status',
29
- key: 'status',
30
- render: status => {
31
- if (status === 'In-Progress' || status === 'Inprogress') {
32
- return /*#__PURE__*/_react.default.createElement("span", {
33
- className: "yellowBg"
34
- }, "In-Progress");
35
- }
36
- if (status.toLowerCase() === 'completed') {
37
- return /*#__PURE__*/_react.default.createElement(FixedWidthImg, {
38
- src: "/static/oasys/images/checkbox-outline01.png",
39
- alt: "complete icon"
40
- });
41
- }
42
- return status;
43
- }
44
- }, {
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' : '')
52
- }, {
53
- title: 'Start Date',
54
- dataIndex: 'startTime',
55
- key: 'startTime',
56
- render: startTime => startTime || 'Not Started'
57
- }, {
58
- title: 'End Date',
59
- dataIndex: 'endTime',
60
- key: 'endTime',
61
- render: endTime => endTime || 'Not Started'
62
- }, {
63
- title: 'Performed by',
64
- dataIndex: 'assignee',
65
- key: 'assignee'
66
- }, {
67
- title: 'User Name',
68
- dataIndex: 'assignee',
69
- key: 'assignee'
70
- }];
71
- return /*#__PURE__*/_react.default.createElement(_TableDesign.default, {
72
- columns: columns,
73
- dataSource: data
74
- });
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
- };
81
- var _default = WorkflowSummaryTable;
82
- exports.default = _default;
@@ -1,89 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.spacingScalesStyle = exports.cornerRadiusStyle = void 0;
7
- const spacingScalesStyle = {
8
- '.spacing-4': {
9
- padding: '4px',
10
- margin: '0'
11
- },
12
- '.spacing-8': {
13
- padding: '8px',
14
- margin: '0'
15
- },
16
- '.spacing-12': {
17
- padding: '12px',
18
- margin: '0'
19
- },
20
- '.spacing-16': {
21
- padding: '16px',
22
- margin: '0'
23
- },
24
- '.spacing-24': {
25
- padding: '24px',
26
- margin: '0'
27
- },
28
- '.spacing-32': {
29
- padding: '32px',
30
- margin: '0'
31
- },
32
- '.spacing-40': {
33
- padding: '40px',
34
- margin: '0'
35
- },
36
- '.spacing-48': {
37
- padding: '48px',
38
- margin: '0'
39
- },
40
- '.spacing-56': {
41
- padding: '56px',
42
- margin: '0'
43
- },
44
- '.spacing-64': {
45
- padding: '64px',
46
- margin: '0'
47
- },
48
- '.spacing-72': {
49
- padding: '72px',
50
- margin: '0'
51
- },
52
- '.spacing-80': {
53
- padding: '80px',
54
- margin: '0'
55
- },
56
- '.spacing-96': {
57
- padding: '96px',
58
- margin: '0'
59
- },
60
- '.spacing-108': {
61
- padding: '108px',
62
- margin: '0'
63
- }
64
- };
65
- exports.spacingScalesStyle = spacingScalesStyle;
66
- const cornerRadiusStyle = {
67
- '.border-radius-xlarge': {
68
- borderRadius: '16px'
69
- },
70
- '.border-radius-large': {
71
- borderRadius: '12px'
72
- },
73
- '.border-radius-medium': {
74
- borderRadius: '8px'
75
- },
76
- '.border-radius-small': {
77
- borderRadius: '4px'
78
- },
79
- '.border-radius-xsmall': {
80
- borderRadius: '2px'
81
- },
82
- '.border-radius-none': {
83
- borderRadius: '0px'
84
- },
85
- '.border-radius-full': {
86
- borderRadius: '9999px'
87
- }
88
- };
89
- exports.cornerRadiusStyle = cornerRadiusStyle;