oa-componentbook 0.7.0 → 0.8.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 (48) hide show
  1. package/build/components/ColorVariables.js +25 -0
  2. package/build/components/{oa-button/OACustomButton.js → oa-component-button/CustomButton.js} +12 -12
  3. package/build/components/oa-component-button/styles.js +37 -0
  4. package/build/components/{CheckBoxes.js → oa-component-checkbox/CustomCheckBox.js} +8 -8
  5. package/build/components/oa-component-colorUsage/ColorUsage.js +27 -0
  6. package/build/components/oa-component-colorUsage/styles.js +13 -0
  7. package/build/components/oa-component-cornerRadius/CornerRadius.js +25 -0
  8. package/build/components/oa-component-cornerRadius/styles.js +35 -0
  9. package/build/components/{DrawerDesign.js → oa-component-drawer/CustomDrawer.js} +4 -4
  10. package/build/components/{Notification.js → oa-component-notification/CustomNotification.js} +38 -33
  11. package/build/components/oa-component-notification/styles.js +13 -0
  12. package/build/components/{RadioButton.js → oa-component-radio/CustomRadio.jsx.js} +8 -8
  13. package/build/components/oa-component-spacingScales/SpacingScales.js +27 -0
  14. package/build/components/oa-component-spacingScales/styles.js +49 -0
  15. package/build/components/{TableDesign.js → oa-component-table/CustomTable.js} +4 -4
  16. package/build/components/{TabsDesign.js → oa-component-tabs/CustomTabs.js} +5 -5
  17. package/build/components/oa-component-toggle/CustomToggle.js +49 -0
  18. package/build/components/oa-component-toggle/styles.js +16 -0
  19. package/build/components/oa-component-typography/Typography.js +34 -0
  20. package/build/components/oa-component-typography/styles.js +13 -0
  21. package/build/index.js +42 -71
  22. package/build/widgets/oa-widget-approval.js +134 -0
  23. package/build/widgets/oa-widget-keyValueDataView/KeyValueDataView.js +67 -0
  24. package/build/widgets/oa-widget-keyValueDataView/styles.js +16 -0
  25. package/build/widgets/oa-widget-stagesTimeline/StageTimeline.js +49 -0
  26. package/build/widgets/oa-widget-stagesTimeline/styles.js +22 -0
  27. package/package.json +1 -1
  28. package/build/components/Accordians.js +0 -68
  29. package/build/components/ColorUsage.js +0 -35
  30. package/build/components/CornerRadius.js +0 -46
  31. package/build/components/KeyValueDataView.js +0 -48
  32. package/build/components/LeftPannelTab.js +0 -34
  33. package/build/components/SpacingScales.js +0 -34
  34. package/build/components/Toggle.js +0 -60
  35. package/build/components/Typography.js +0 -37
  36. package/build/components/oa-button/styles.js +0 -37
  37. package/build/components/peclaim-components/CloseClaim.js +0 -97
  38. package/build/components/peclaim-components/ComplaintsTable.js +0 -103
  39. package/build/components/peclaim-components/MainComponent.js +0 -192
  40. package/build/components/peclaim-components/SrComplaints.js +0 -54
  41. package/build/components/peclaim-components/WorkflowSummaryNotesModal.js +0 -60
  42. package/build/components/peclaim-components/WorkflowSummaryTable.js +0 -82
  43. package/build/components/styles.js +0 -89
  44. package/build/components/wallet-service-details/ComplaintDetail.js +0 -28
  45. package/build/components/wallet-service-details/ServiceDetailsTabView.js +0 -170
  46. package/build/components/wallet-service-details/ViewMoreDetailsDrawer.js +0 -95
  47. package/build/components/wallet-service-details/WalletServiceDetails.js +0 -67
  48. package/build/components/wallet-service-details/styles/styles.css +0 -16
@@ -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;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = ComplaintDetails;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- var _OACustomButton = _interopRequireDefault(require("../oa-button/OACustomButton"));
10
- var _templateObject;
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
- function ComplaintDetails() {
14
- const ComplaintContainer = _styledComponents.default.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 48px 24px 0;\n\n h3 {\n font-size: 24px;\n font-weight: 500;\n }\n\n h2 {\n color: #454545;\n font-size: 20px;\n font-weight: 500;\n letter-spacing: 0;\n line-height: 30px;\n margin: 0 0 12px;\n }\n\n .key-value-columns {\n display: flex;\n }\n\n .footer-buttons {\n text-align: right;\n padding: 48px 0 0;\n\n button:last-child {\n margin: 0 0 0 24px;\n }\n }\n "])));
15
- return /*#__PURE__*/_react.default.createElement(ComplaintContainer, null, /*#__PURE__*/_react.default.createElement("h3", null, "SR#21463 - BER Payment - Beyond 5 days"), /*#__PURE__*/_react.default.createElement("h2", null, "Complaint Details"), /*#__PURE__*/_react.default.createElement("section", {
16
- className: "key-value-columns"
17
- }), /*#__PURE__*/_react.default.createElement("div", {
18
- className: "footer-buttons"
19
- }, /*#__PURE__*/_react.default.createElement(_OACustomButton.default, {
20
- text: "Resolve",
21
- size: "small",
22
- className: "ant-btn-primary"
23
- }), /*#__PURE__*/_react.default.createElement(_OACustomButton.default, {
24
- text: "Cancel",
25
- size: "small",
26
- className: "sml-secondary-btn"
27
- })));
28
- }
@@ -1,170 +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 = ServiceDetailsTabView;
8
- require("core-js/modules/web.dom-collections.iterator.js");
9
- var _react = _interopRequireWildcard(require("react"));
10
- var _reactRouterDom = require("react-router-dom");
11
- var _propTypes = _interopRequireDefault(require("prop-types"));
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
13
- var _antd = require("antd");
14
- var _TabsDesign = _interopRequireDefault(require("../TabsDesign"));
15
- var _TableDesign = _interopRequireDefault(require("../TableDesign"));
16
- var _templateObject, _templateObject2;
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
- 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); }
19
- 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; }
20
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
21
- const WorkflowColumns = [{
22
- title: 'Stages',
23
- dataIndex: 'stages',
24
- key: 'stages'
25
- }, {
26
- title: 'Status',
27
- dataIndex: 'status',
28
- key: 'status'
29
- }, {
30
- title: 'Notes',
31
- dataIndex: 'notes',
32
- key: 'notes'
33
- }, {
34
- title: 'Start Date',
35
- dataIndex: 'startDate',
36
- key: 'startDate'
37
- }, {
38
- title: 'End Date',
39
- dataIndex: 'endDate',
40
- key: 'endDate'
41
- }, {
42
- title: 'Performed By',
43
- dataIndex: 'performed',
44
- key: 'performed'
45
- }, {
46
- title: 'User Name',
47
- dataIndex: 'name',
48
- key: 'name'
49
- }];
50
- const ComplaintsColumns = [{
51
- title: 'Complaint No.',
52
- dataIndex: 'complaintNo',
53
- key: 'complaintNo',
54
- render: d => /*#__PURE__*/_react.default.createElement(ComplaintDetailLink, {
55
- complaintNo: d
56
- })
57
- }, {
58
- title: 'Complaint Type',
59
- dataIndex: 'complaintType',
60
- key: 'complaintType'
61
- }, {
62
- title: 'Status',
63
- dataIndex: 'status',
64
- key: 'status'
65
- }, {
66
- title: 'Source',
67
- dataIndex: 'source',
68
- key: 'source'
69
- }, {
70
- title: 'Priority',
71
- dataIndex: 'priority',
72
- key: 'priority'
73
- }, {
74
- title: 'Date',
75
- dataIndex: 'date',
76
- key: 'date'
77
- }, {
78
- title: 'Team',
79
- dataIndex: 'team',
80
- key: 'team'
81
- }, {
82
- title: 'CMS User',
83
- dataIndex: 'cms',
84
- key: 'cms'
85
- }];
86
- function ComplaintDetailLink(_ref) {
87
- let {
88
- complaintNo
89
- } = _ref;
90
- const history = (0, _reactRouterDom.useHistory)();
91
- const handleDetailClick = () => {
92
- history.push('/complaint-detail');
93
- };
94
- const Component = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: #1890ff;\n text-decoration: underline;\n cursor: pointer;\n "])));
95
- return /*#__PURE__*/_react.default.createElement(Component, null, complaintNo);
96
- }
97
- ComplaintDetailLink.propTypes = {
98
- complaintNo: (_propTypes.default.string || _propTypes.default.number).isRequired
99
- };
100
- function ServiceRequestTabs() {
101
- const [ServiceTabdata] = (0, _react.useState)({
102
- tabs: [{
103
- label: 'Claim Verification',
104
- key: '4',
105
- disabled: false,
106
- body: ''
107
- }, {
108
- label: 'IC Approval',
109
- key: '5',
110
- disabled: true,
111
- body: 'ICApproval'
112
- }, {
113
- label: 'Claim Settlement',
114
- key: '6',
115
- disabled: true,
116
- body: 'ClaimSettlement'
117
- }]
118
- });
119
- return /*#__PURE__*/_react.default.createElement(_TabsDesign.default, {
120
- tabPosition: "left",
121
- type: "card",
122
- defaultActiveKey: "4",
123
- data: ServiceTabdata
124
- });
125
- }
126
- function WorkflowSummary() {
127
- return /*#__PURE__*/_react.default.createElement(_TableDesign.default, {
128
- columns: WorkflowColumns,
129
- dataSource: []
130
- });
131
- }
132
- function ComplaintsData() {
133
- return /*#__PURE__*/_react.default.createElement(_TableDesign.default, {
134
- columns: ComplaintsColumns,
135
- dataSource: [{
136
- complaintNo: '40336',
137
- complaintType: 'BER Payment - Beyond 5 Days',
138
- status: 'Open',
139
- source: 'Web',
140
- priority: 'P1',
141
- date: '29-08-2023 12:26 PM',
142
- team: 'Settlement Team',
143
- cms: ''
144
- }]
145
- });
146
- }
147
- function ServiceDetailsTabView() {
148
- const [tabdata] = (0, _react.useState)({
149
- tabs: [{
150
- label: 'Service Request',
151
- key: '1',
152
- disabled: false,
153
- body: /*#__PURE__*/_react.default.createElement(ServiceRequestTabs, null)
154
- }, {
155
- label: 'Workflow Summary',
156
- key: '2',
157
- disabled: false,
158
- body: /*#__PURE__*/_react.default.createElement(WorkflowSummary, null)
159
- }, {
160
- label: 'Complaints',
161
- key: '3',
162
- disabled: false,
163
- body: /*#__PURE__*/_react.default.createElement(ComplaintsData, null)
164
- }]
165
- });
166
- const StyledTabs = (0, _styledComponents.default)(_TabsDesign.default)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: #fff;\n padding: 4px; \n "])));
167
- return /*#__PURE__*/_react.default.createElement(StyledTabs, {
168
- data: tabdata
169
- });
170
- }