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.
Files changed (36) hide show
  1. package/build/components/{Tabs.js → Accordians.js} +45 -35
  2. package/build/components/{Wallet Service Details/basicQuestions.js → CheckBoxes.js} +28 -22
  3. package/build/components/ColorUsage.js +35 -0
  4. package/build/components/CornerRadius.js +46 -0
  5. package/build/components/{Drawer.js → DrawerDesign.js} +28 -27
  6. package/build/components/KeyValueDataView.js +29 -18
  7. package/build/components/LeftPannelTab.js +34 -0
  8. package/build/components/Notification.js +84 -0
  9. package/build/components/RadioButton.js +46 -0
  10. package/build/components/{Button.js → SpacingScales.js} +15 -32
  11. package/build/components/{Table.js → TableDesign.js} +15 -14
  12. package/build/components/TabsDesign.js +65 -0
  13. package/build/components/{QuesAnsView.js → Toggle.js} +46 -21
  14. package/build/components/Typography.js +37 -0
  15. package/build/components/oa-button/OACustomButton.js +60 -0
  16. package/build/components/oa-button/styles.js +37 -0
  17. package/build/components/peclaim-components/CloseClaim.js +48 -163
  18. package/build/components/peclaim-components/ComplaintsTable.js +95 -70
  19. package/build/components/peclaim-components/MainComponent.js +192 -0
  20. package/build/components/peclaim-components/{compMain.js → SrComplaints.js} +1 -1
  21. package/build/components/peclaim-components/WorkflowSummaryNotesModal.js +24 -14
  22. package/build/components/peclaim-components/WorkflowSummaryTable.js +44 -37
  23. package/build/components/styles.js +72 -138
  24. package/build/components/wallet-service-details/ComplaintDetail.js +28 -0
  25. package/build/components/{Wallet Service Details/serviceDetailsTabView.js → wallet-service-details/ServiceDetailsTabView.js} +29 -28
  26. package/build/components/{Wallet Service Details/viewMoreDetailsDrawer.js → wallet-service-details/ViewMoreDetailsDrawer.js} +50 -38
  27. package/build/components/{Wallet Service Details/walletServiceDetails.js → wallet-service-details/WalletServiceDetails.js} +25 -29
  28. package/build/components/wallet-service-details/styles/styles.css +16 -0
  29. package/build/index.js +68 -42
  30. package/package.json +17 -6
  31. package/build/components/Login.js +0 -80
  32. package/build/components/Wallet Service Details/complaintDetail.js +0 -65
  33. package/build/components/Wallet Service Details/styles/styles.css +0 -99
  34. package/build/components/peclaim-components/wf Main.js +0 -192
  35. package/build/components/style/css/Button.module.css +0 -38
  36. package/build/components/style/css/login.css +0 -335
@@ -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 [viewNotesVisible, setViewNotesVisible] = (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
- // setViewNotesVisible(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
- setViewNotesVisible(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
- visible: viewNotesVisible,
187
- notesData: renderedNotes,
188
- onClose: handleCloseNotesModal
189
- }));
190
- }
191
- var _default = MainComponent;
192
- exports.default = _default;
@@ -1,38 +0,0 @@
1
- .button {
2
- color: white;
3
- padding: 10px 20px;
4
- border: none;
5
- border-radius: 5px;
6
- cursor: pointer;
7
- /* put all default classes */
8
-
9
- background-color: #a7a7a7;
10
- width: 200px;
11
- }
12
-
13
- .button.primary {
14
- background-color: #007bff;
15
- }
16
-
17
- .button.secondary {
18
- background-color: #ff005d;
19
- }
20
-
21
- .button.small {
22
- width: 100px;
23
- }
24
-
25
- .button.medium {
26
- width: 200px;
27
- }
28
-
29
- .button.large {
30
- width: 300px;
31
- }
32
-
33
-
34
- .button:hover {
35
- background-color: #0056b3;
36
- }
37
-
38
-
@@ -1,335 +0,0 @@
1
- #menu{
2
- display: none;
3
- }
4
- .loginWrapper{
5
- display: flex;
6
- height: 100vh;
7
- background: #fff;
8
- align-items: center;
9
- position: relative;
10
- }
11
-
12
- .loginWrapper .loginBg{
13
- width: calc(100% - 50%);
14
- height: 100%;
15
- position: relative;
16
- }
17
-
18
- .loginWrapper .loginBg img{
19
- height: 100%;
20
- width: 100%;
21
- }
22
-
23
- .loginWrapper .loginBox{
24
- width: 50%;
25
- height: 100vh;
26
- display: flex;
27
- flex-direction: column;
28
- justify-content: flex-start;
29
- align-items: center;
30
- position: relative;
31
- }
32
-
33
- .loginWrapper .loginBox .formBox{
34
- border: none;
35
- border-radius: 0;
36
- box-shadow: none;
37
- margin: 0;
38
- width: 100%;
39
- max-width: 432px;
40
- padding: 0;
41
- height: 100%;
42
- z-index: 1;
43
- display: flex;
44
- flex-direction: column;
45
- justify-content: center;
46
- }
47
-
48
- .loginWrapper .loginBox form{
49
- padding: 0;
50
- width: 100%;
51
- }
52
-
53
- .loginWrapper .loginBox form h1, .loginWrapper .loginBox h1{
54
- font-size: 36px;
55
- line-height: 45px;
56
- color: #454545;
57
- float: none;
58
- width: 100%;
59
- padding: 0;
60
- margin: 0;
61
- }
62
-
63
- .loginWrapper form .subdesc, .loginWrapper .loginBox .subdesc1{
64
- font-weight: 400;
65
- font-size: 14px;
66
- line-height: 16px;
67
- color: #454545;
68
- padding: 6px 0 48px 0;
69
- }
70
-
71
- .loginWrapper .loginBox .subdesc1{
72
- padding: 6px 0 24px 0;
73
- }
74
-
75
- .loginWrapper form .fieldDivSet{
76
- background: none;
77
- border: none;
78
- padding: 0;
79
- margin: 36px 0 0 0;
80
- display: inline-block;
81
- width: 100%;
82
- position: relative;
83
- }
84
-
85
- .loginWrapper form .fieldDivSet .ant-form-item{
86
- margin: 0;
87
- }
88
-
89
- .loginWrapper form .fieldDivSet:first-of-type{
90
- margin: 0;
91
- }
92
-
93
- .loginWrapper form .fieldDivSet img{
94
- position: absolute;
95
- right: 12px;
96
- bottom: 13px;
97
- }
98
-
99
- .loginWrapper form .fieldDivSet label{
100
- font-size: 14px;
101
- line-height: 20px;
102
- margin: 0;
103
- color: #454545;
104
- width: 100%;
105
- font-weight: normal;
106
- }
107
-
108
- .loginWrapper form .fieldDivSet input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
109
- color: #B3B3B3;
110
- opacity: 1; /* Firefox */
111
- }
112
-
113
- .loginWrapper form .fieldDivSet input:-ms-input-placeholder { /* Internet Explorer 10-11 */
114
- color: #B3B3B3;
115
- }
116
-
117
- .loginWrapper form .fieldDivSet input::-ms-input-placeholder { /* Microsoft Edge */
118
- color: #B3B3B3;
119
- }
120
-
121
- .loginWrapper form .fieldDivSet input{
122
- line-height: 1.5;
123
- font-size: 14px;
124
- border-radius: 4px;
125
- padding: 12px;
126
- outline: none;
127
- background-color: #fff;
128
- border: solid 1px #dcdcdc;
129
- -webkit-box-sizing: border-box;
130
- box-sizing: border-box;
131
- margin: 4px 0 0 0;
132
- position: relative;
133
- display: inline-block;
134
- width: 100%;
135
- height: auto;
136
- background-image: none;
137
- -webkit-transition: all .3s;
138
- transition: all .3s;
139
- }
140
-
141
- .loginWrapper form .fieldDivSet input[type=text]:focus, .loginWrapper form .fieldDivSet input[type=password]:focus {
142
- border-color: #0282F0;
143
- box-shadow: 0px 0px 4px #0282F0;
144
- }
145
-
146
- .loginWrapper form .fieldDivSet input.error{
147
- border: 1px solid #E62A10;
148
- box-shadow: 0px 0px 4px #E62A10;
149
- }
150
-
151
- .loginWrapper form .has-error .ant-form-explain{
152
- font-size: 12px;
153
- line-height: 18px;
154
- padding: 5px 0 0 0;
155
- }
156
-
157
- .loginWrapper form .fieldDivSet .forgotLink{
158
- display: block;
159
- text-align: right;
160
- margin: 4px 0 0 0;
161
- }
162
-
163
- .loginWrapper form .fieldDivSet .ant-form-item-with-help + a{
164
- position: absolute;
165
- right: 0;
166
- bottom: -4px;
167
- line-height: 20px;
168
- color: #0282F0;
169
- font-size: 14px;
170
- }
171
-
172
- .loginWrapper form .fieldDivSet .forgotLink:hover, .loginWrapper form .fieldDivSet .forgotLink:focus, .loginWrapper form .loginBack:hover, .loginWrapper form .loginBack:focus, .loginWrapper form .loginBack:hover, .loginWrapper form .loginBack:focus, .loginWrapper .loginBox .loginBackError:hover, .loginWrapper .loginBox .loginBackError:focus, .loginWrapper .formBox .loginBack:hover, .loginWrapper .formBox .loginBack:focus{
173
- color: #40a9ff;
174
- text-decoration: underline;
175
- }
176
- .loginWrapper form .loginBtn{
177
- width: 100%;
178
- background: #0282F0;
179
- color: #fff;
180
- height: 48px;
181
- font-size: 16px;
182
- line-height: 24px;
183
- border: none;
184
- border-radius: 4px;
185
- outline: none;
186
- cursor: pointer;
187
- }
188
-
189
- .loginWrapper form .loginBtn:hover, .loginWrapper form .loginBtn:focus{
190
- background: #40a9ff;
191
- outline: none;
192
- }
193
-
194
- .loginWrapper .divedLine{
195
- width: 36px;
196
- height: 1px;
197
- background: #DCDCDC;
198
- margin: 30px auto;
199
- }
200
-
201
- .loginWrapper .googleBtn{
202
- text-align: center;
203
- display: flex;
204
- justify-content: center;
205
- }
206
-
207
- .loginWrapper .loginBox .footer{
208
- background: none;
209
- position: relative;
210
- z-index: 0;
211
- text-align: center;
212
- }
213
-
214
- .loginWrapper .loginBox .footer p{
215
- font-size: 14px;
216
- line-height: 22px;
217
- color: #7A7A7A;
218
- padding: 5px 0 20px 0 ;
219
- }
220
-
221
- .loginWrapper form .loginBack, .loginWrapper .formBox .loginBack{
222
- text-align: center;
223
- margin: 35px auto 10px;
224
- display: flex;
225
- justify-content: center;
226
- width: fit-content;
227
- font-size: 14px;
228
- }
229
-
230
- .loginWrapper .loginBox .loginBackError{
231
- font-size: 14px;
232
- width: fit-content;
233
- }
234
-
235
- .loginWrapper form .visibleOff{
236
- opacity: 0;
237
- }
238
-
239
- .loginWrapper .loginBox .successIcon{
240
- margin: 0 0 24px 0;
241
- display: flex;
242
- justify-content: center;
243
- }
244
-
245
- .loginWrapper .successText{
246
- font-size: 16px;
247
- line-height: 24px;
248
- text-align: center;
249
- color: #45B448;
250
- }
251
-
252
-
253
- .passwordInfo{ width: 100%; position: absolute; border-radius: 2px; background: #fff; padding: 8px; top: 40px;
254
- z-index: 99; box-shadow: 0 2px 8px 0 rgba(0,0,0,0.12);}
255
-
256
- .passwordInfo:after {
257
- bottom: 100%;
258
- left: 20px;
259
- border: solid transparent;
260
- content: " ";
261
- height: 0;
262
- width: 0;
263
- position: absolute;
264
- pointer-events: none;
265
- border-color: rgba(255, 255, 255, 0);
266
- border-bottom-color: #ffffff;
267
- border-width: 5px;
268
- margin-left: -5px;
269
- }
270
-
271
- .passwordInfo ul{ width: 100%; margin: 0; list-style: none;}
272
- .passwordInfo ul li{ width: 100%; display: flex; margin:0; line-height: 18px; padding: 8px 0 0 0;}
273
- .passwordInfo ul li.green{color:#45B448}
274
- .passwordInfo ul li.red{color:#E62A10}
275
- .passwordInfo ul li:first-child{ margin: 0;}
276
- .passwordInfo ul li:before{ content: "\2022"; font-size: 30px; padding-right: 10px;}
277
-
278
- .activeSessionModal .ant-modal-content {
279
- border-radius: 6px;
280
- border: none;
281
- box-shadow:none;
282
- }
283
- .activeSessionModal .ant-modal-title {
284
- font-size: 20px;
285
- }
286
-
287
-
288
- .activeSessionModal .ant-modal-body {
289
- padding: 14px 24px;
290
- font-size: 14px;
291
- line-height: 1.5;
292
- }
293
-
294
- .activeSessionModal .modal-footer {
295
- display: flex;
296
- flex-direction: row;
297
- justify-content: flex-end; margin: 12px 0 0 0;
298
- }
299
- .activeSessionModal .modal-footer button{
300
- margin: 0 0 0 10px;
301
- background: #b4b4b4;
302
- color: #fff;
303
- height: 36px;
304
- font-size: 14px;
305
- line-height: 24px;
306
- border: none;
307
- border-radius: 4px;
308
- outline: none;
309
- cursor: pointer;
310
- width: 100px;
311
- }
312
-
313
- .activeSessionModal .modal-footer button + button{
314
- background: #0282F0;
315
- }
316
-
317
-
318
- .ant-spin-spinning {
319
- position: static;
320
- display: inline-block;
321
- opacity: 1;
322
- display: flex;
323
- flex-direction: column;
324
- align-items: center;
325
- font-size: 12px;
326
- }
327
-
328
-
329
- .actionDiv {
330
- margin: 40px 0 0 0;
331
- }
332
- .ant-spin.ant-spin-show-text .ant-spin-text {
333
- margin: 10px 0 0 0;
334
- font-size: 14px;
335
- }