@hmcts/ccpay-web-component 4.0.0-beta60 → 4.0.0-beta604

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 (201) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +6868 -2571
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +32 -26
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +874 -138
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +342 -217
  8. package/esm2015/lib/components/card-details/card-details.component.js +22 -57
  9. package/esm2015/lib/components/case-transactions/case-transactions.component.js +932 -350
  10. package/esm2015/lib/components/error-banner/error-banner.component.js +5 -17
  11. package/esm2015/lib/components/fee-summary/fee-summary.component.js +229 -231
  12. package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +137 -156
  13. package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +178 -177
  14. package/esm2015/lib/components/page-not-found.component.js +3 -4
  15. package/esm2015/lib/components/payment-list/payment-list.component.js +22 -80
  16. package/esm2015/lib/components/payment-view/payment-view.component.js +358 -127
  17. package/esm2015/lib/components/pba-details/pba-details.component.js +5 -39
  18. package/esm2015/lib/components/process-refund/process-refund.component.js +392 -0
  19. package/esm2015/lib/components/processed-payments/processed-payments.component.js +13 -41
  20. package/esm2015/lib/components/refund-list/refund-list.component.js +131 -0
  21. package/esm2015/lib/components/refund-status/refund-status.component.js +511 -0
  22. package/esm2015/lib/components/reports/reports.component.js +96 -107
  23. package/esm2015/lib/components/status-history/status-history.component.js +28 -35
  24. package/esm2015/lib/components/table/table.component.js +179 -0
  25. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +168 -91
  26. package/esm2015/lib/interfaces/AddRemissionRequest.js +6 -7
  27. package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +21 -0
  28. package/esm2015/lib/interfaces/AllocatePaymentRequest.js +11 -9
  29. package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +2 -3
  30. package/esm2015/lib/interfaces/IBSPayments.js +38 -35
  31. package/esm2015/lib/interfaces/ICardDetails.js +14 -13
  32. package/esm2015/lib/interfaces/IFee.js +44 -43
  33. package/esm2015/lib/interfaces/IOrderReferenceFee.js +25 -0
  34. package/esm2015/lib/interfaces/IPatchRefundAction.js +15 -0
  35. package/esm2015/lib/interfaces/IPayment.js +56 -55
  36. package/esm2015/lib/interfaces/IPaymentGroup.js +12 -11
  37. package/esm2015/lib/interfaces/IPaymentStatus.js +2 -3
  38. package/esm2015/lib/interfaces/IPaymentView.js +17 -0
  39. package/esm2015/lib/interfaces/IPayments.js +6 -5
  40. package/esm2015/lib/interfaces/IRefundAction.js +15 -0
  41. package/esm2015/lib/interfaces/IRefundList.js +29 -0
  42. package/esm2015/lib/interfaces/IRefundReasons.js +19 -0
  43. package/esm2015/lib/interfaces/IRefundRejectReason.js +15 -0
  44. package/esm2015/lib/interfaces/IRefundStatus.js +23 -0
  45. package/esm2015/lib/interfaces/IRefundStatusHistory.js +15 -0
  46. package/esm2015/lib/interfaces/IRemission.js +18 -17
  47. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +21 -0
  48. package/esm2015/lib/interfaces/IStatusHistories.js +12 -11
  49. package/esm2015/lib/interfaces/IStatusHistory.js +14 -13
  50. package/esm2015/lib/interfaces/IssueRefundRequest.js +25 -0
  51. package/esm2015/lib/interfaces/PayhubAntennaRequest.js +28 -0
  52. package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +7 -12
  53. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +17 -0
  54. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +21 -0
  55. package/esm2015/lib/interfaces/RefundsRequest.js +21 -0
  56. package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +2 -3
  57. package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +2 -3
  58. package/esm2015/lib/payment-lib.component.js +124 -20
  59. package/esm2015/lib/payment-lib.module.js +27 -6
  60. package/esm2015/lib/payment-lib.service.js +18 -4
  61. package/esm2015/lib/pipes/capitalize.pipe.js +24 -0
  62. package/esm2015/lib/pipes/ccd-hyphens.pipe.js +3 -4
  63. package/esm2015/lib/pipes/key-value.pipe.js +3 -4
  64. package/esm2015/lib/pipes/sanitize-html.pipe.js +7 -5
  65. package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +52 -14
  66. package/esm2015/lib/services/card-details/card-details.service.js +19 -8
  67. package/esm2015/lib/services/case-transactions/case-transactions.service.js +19 -8
  68. package/esm2015/lib/services/orderslist.service.js +211 -0
  69. package/esm2015/lib/services/payment-list/payment-list.service.js +19 -8
  70. package/esm2015/lib/services/payment-view/payment-view.service.js +96 -11
  71. package/esm2015/lib/services/refunds/refunds.service.js +203 -0
  72. package/esm2015/lib/services/shared/error-handler.service.js +24 -4
  73. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +27 -9
  74. package/esm2015/lib/services/shared/logger/console-logger.service.js +7 -5
  75. package/esm2015/lib/services/shared/logger/logger.service.js +7 -5
  76. package/esm2015/lib/services/status-history/status-history.service.js +19 -8
  77. package/esm2015/lib/services/xl-file/xl-file.service.js +56 -51
  78. package/esm2015/public_api.js +1 -2
  79. package/esm5/hmcts-ccpay-web-component.js +32 -26
  80. package/esm5/lib/components/add-remission/add-remission.component.js +941 -47
  81. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +358 -74
  82. package/esm5/lib/components/card-details/card-details.component.js +22 -9
  83. package/esm5/lib/components/case-transactions/case-transactions.component.js +1003 -110
  84. package/esm5/lib/components/error-banner/error-banner.component.js +3 -4
  85. package/esm5/lib/components/fee-summary/fee-summary.component.js +232 -56
  86. package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +136 -45
  87. package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +179 -65
  88. package/esm5/lib/components/page-not-found.component.js +3 -4
  89. package/esm5/lib/components/payment-list/payment-list.component.js +21 -8
  90. package/esm5/lib/components/payment-view/payment-view.component.js +425 -20
  91. package/esm5/lib/components/pba-details/pba-details.component.js +5 -6
  92. package/esm5/lib/components/process-refund/process-refund.component.js +469 -0
  93. package/esm5/lib/components/processed-payments/processed-payments.component.js +12 -7
  94. package/esm5/lib/components/refund-list/refund-list.component.js +134 -0
  95. package/esm5/lib/components/refund-status/refund-status.component.js +570 -0
  96. package/esm5/lib/components/reports/reports.component.js +97 -26
  97. package/esm5/lib/components/status-history/status-history.component.js +27 -9
  98. package/esm5/lib/components/table/table.component.js +214 -0
  99. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +178 -27
  100. package/esm5/lib/interfaces/AddRemissionRequest.js +5 -6
  101. package/esm5/lib/interfaces/AddRetroRemissionRequest.js +19 -0
  102. package/esm5/lib/interfaces/AllocatePaymentRequest.js +9 -8
  103. package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +2 -3
  104. package/esm5/lib/interfaces/IBSPayments.js +38 -35
  105. package/esm5/lib/interfaces/ICardDetails.js +14 -13
  106. package/esm5/lib/interfaces/IFee.js +44 -43
  107. package/esm5/lib/interfaces/IOrderReferenceFee.js +25 -0
  108. package/esm5/lib/interfaces/IPatchRefundAction.js +15 -0
  109. package/esm5/lib/interfaces/IPayment.js +56 -55
  110. package/esm5/lib/interfaces/IPaymentGroup.js +12 -11
  111. package/esm5/lib/interfaces/IPaymentStatus.js +2 -3
  112. package/esm5/lib/interfaces/IPaymentView.js +17 -0
  113. package/esm5/lib/interfaces/IPayments.js +6 -5
  114. package/esm5/lib/interfaces/IRefundAction.js +15 -0
  115. package/esm5/lib/interfaces/IRefundList.js +29 -0
  116. package/esm5/lib/interfaces/IRefundReasons.js +19 -0
  117. package/esm5/lib/interfaces/IRefundRejectReason.js +15 -0
  118. package/esm5/lib/interfaces/IRefundStatus.js +23 -0
  119. package/esm5/lib/interfaces/IRefundStatusHistory.js +15 -0
  120. package/esm5/lib/interfaces/IRemission.js +18 -17
  121. package/esm5/lib/interfaces/IResubmitRefundRequest.js +19 -0
  122. package/esm5/lib/interfaces/IStatusHistories.js +12 -11
  123. package/esm5/lib/interfaces/IStatusHistory.js +14 -13
  124. package/esm5/lib/interfaces/IssueRefundRequest.js +22 -0
  125. package/esm5/lib/interfaces/PayhubAntennaRequest.js +25 -0
  126. package/esm5/lib/interfaces/PaymentToPayhubRequest.js +6 -10
  127. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +16 -0
  128. package/esm5/lib/interfaces/PostRefundRetroRemission.js +19 -0
  129. package/esm5/lib/interfaces/RefundsRequest.js +19 -0
  130. package/esm5/lib/interfaces/UnidentifiedPaymentsRequest.js +2 -3
  131. package/esm5/lib/interfaces/UnsolicitedPaymentsRequest.js +2 -3
  132. package/esm5/lib/payment-lib.component.js +99 -14
  133. package/esm5/lib/payment-lib.module.js +27 -6
  134. package/esm5/lib/payment-lib.service.js +25 -4
  135. package/esm5/lib/pipes/capitalize.pipe.js +32 -0
  136. package/esm5/lib/pipes/ccd-hyphens.pipe.js +3 -4
  137. package/esm5/lib/pipes/key-value.pipe.js +3 -4
  138. package/esm5/lib/pipes/sanitize-html.pipe.js +7 -5
  139. package/esm5/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +61 -14
  140. package/esm5/lib/services/card-details/card-details.service.js +19 -8
  141. package/esm5/lib/services/case-transactions/case-transactions.service.js +19 -8
  142. package/esm5/lib/services/orderslist.service.js +276 -0
  143. package/esm5/lib/services/payment-list/payment-list.service.js +19 -8
  144. package/esm5/lib/services/payment-view/payment-view.service.js +135 -11
  145. package/esm5/lib/services/refunds/refunds.service.js +243 -0
  146. package/esm5/lib/services/shared/error-handler.service.js +24 -4
  147. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +27 -9
  148. package/esm5/lib/services/shared/logger/console-logger.service.js +7 -5
  149. package/esm5/lib/services/shared/logger/logger.service.js +7 -5
  150. package/esm5/lib/services/status-history/status-history.service.js +19 -8
  151. package/esm5/lib/services/xl-file/xl-file.service.js +62 -51
  152. package/esm5/public_api.js +1 -2
  153. package/fesm2015/hmcts-ccpay-web-component.js +4622 -2024
  154. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  155. package/fesm5/hmcts-ccpay-web-component.js +7021 -2540
  156. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  157. package/hmcts-ccpay-web-component.d.ts +30 -23
  158. package/hmcts-ccpay-web-component.metadata.json +1 -1
  159. package/lib/components/add-remission/add-remission.component.d.ts +100 -3
  160. package/lib/components/allocate-payments/allocate-payments.component.d.ts +29 -1
  161. package/lib/components/case-transactions/case-transactions.component.d.ts +64 -2
  162. package/lib/components/fee-summary/fee-summary.component.d.ts +10 -1
  163. package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.d.ts +2 -0
  164. package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.d.ts +4 -0
  165. package/lib/components/payment-view/payment-view.component.d.ts +41 -1
  166. package/lib/components/process-refund/process-refund.component.d.ts +53 -0
  167. package/lib/components/refund-list/refund-list.component.d.ts +23 -0
  168. package/lib/components/refund-status/refund-status.component.d.ts +68 -0
  169. package/lib/components/reports/reports.component.d.ts +4 -1
  170. package/lib/components/status-history/status-history.component.d.ts +1 -0
  171. package/lib/components/table/table.component.d.ts +36 -0
  172. package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +24 -4
  173. package/lib/interfaces/AddRemissionRequest.d.ts +2 -2
  174. package/lib/interfaces/AddRetroRemissionRequest.d.ts +5 -0
  175. package/lib/interfaces/AllocatePaymentRequest.d.ts +16 -3
  176. package/lib/interfaces/IBSPayments.d.ts +1 -0
  177. package/lib/interfaces/IOrderReferenceFee.d.ts +9 -0
  178. package/lib/interfaces/IPatchRefundAction.d.ts +4 -0
  179. package/lib/interfaces/IPaymentView.d.ts +5 -0
  180. package/lib/interfaces/IRefundAction.d.ts +4 -0
  181. package/lib/interfaces/IRefundList.d.ts +14 -0
  182. package/lib/interfaces/IRefundReasons.d.ts +6 -0
  183. package/lib/interfaces/IRefundRejectReason.d.ts +4 -0
  184. package/lib/interfaces/IRefundStatus.d.ts +8 -0
  185. package/lib/interfaces/IRefundStatusHistory.d.ts +5 -0
  186. package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -0
  187. package/lib/interfaces/IssueRefundRequest.d.ts +6 -0
  188. package/lib/interfaces/PayhubAntennaRequest.d.ts +7 -0
  189. package/lib/interfaces/PaymentToPayhubRequest.d.ts +2 -3
  190. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +4 -0
  191. package/lib/interfaces/PostRefundRetroRemission.d.ts +5 -0
  192. package/lib/interfaces/RefundsRequest.d.ts +5 -0
  193. package/lib/payment-lib.component.d.ts +30 -4
  194. package/lib/payment-lib.service.d.ts +3 -0
  195. package/lib/pipes/capitalize.pipe.d.ts +5 -0
  196. package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts +2 -0
  197. package/lib/services/orderslist.service.d.ts +40 -0
  198. package/lib/services/payment-view/payment-view.service.d.ts +15 -0
  199. package/lib/services/refunds/refunds.service.d.ts +30 -0
  200. package/lib/services/xl-file/xl-file.service.d.ts +6 -6
  201. package/package.json +5 -1
@@ -0,0 +1,214 @@
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
5
+ import { Component, ViewChild, Input, ChangeDetectorRef } from '@angular/core';
6
+ import { PaymentLibComponent } from '../../payment-lib.component';
7
+ import { MatTableDataSource } from '@angular/material/table';
8
+ import { MatSort } from '@angular/material/sort';
9
+ import { MatPaginator } from '@angular/material/paginator';
10
+ import { OrderslistService } from '../../services/orderslist.service';
11
+ var TableComponent = /** @class */ (function () {
12
+ function TableComponent(paymentLibComponent, cdRef, OrderslistService) {
13
+ this.paymentLibComponent = paymentLibComponent;
14
+ this.cdRef = cdRef;
15
+ this.OrderslistService = OrderslistService;
16
+ // displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
17
+ this.displayedColumns = ['ccd_case_number', 'refund_reference', 'reason', 'user_full_name', 'date_updated', 'Action'];
18
+ }
19
+ /**
20
+ * @return {?}
21
+ */
22
+ TableComponent.prototype.ngOnInit = /**
23
+ * @return {?}
24
+ */
25
+ function () {
26
+ this.errorMessage = this.errorMessage;
27
+ if (this.STATUS.toLowerCase() === 'sent for approval') {
28
+ this.isApprovalFlow = true;
29
+ }
30
+ else {
31
+ this.isApprovalFlow = false;
32
+ }
33
+ this.refundList = this.DATASOURCE;
34
+ this.dataSource = new MatTableDataSource(this.refundList);
35
+ this.actualcount = this.dataSource.data.length;
36
+ if (this.refundList !== undefined) {
37
+ this.userLst = this.refundList.reduce((/**
38
+ * @param {?} r
39
+ * @param {?} __1
40
+ * @return {?}
41
+ */
42
+ function (r, _a) {
43
+ var user_full_name = _a.user_full_name;
44
+ return (r[user_full_name] = '', r);
45
+ }), {});
46
+ this.userLst = Object.keys(this.userLst);
47
+ }
48
+ this.userLst.sort((/**
49
+ * @param {?} a
50
+ * @param {?} b
51
+ * @return {?}
52
+ */
53
+ function (a, b) { return a.toString().localeCompare(b); }));
54
+ };
55
+ /**
56
+ * Set the paginator and sort after the view init since this component will
57
+ * be able to query its view for the initialized paginator and sort.
58
+ */
59
+ /**
60
+ * Set the paginator and sort after the view init since this component will
61
+ * be able to query its view for the initialized paginator and sort.
62
+ * @return {?}
63
+ */
64
+ TableComponent.prototype.ngAfterViewInit = /**
65
+ * Set the paginator and sort after the view init since this component will
66
+ * be able to query its view for the initialized paginator and sort.
67
+ * @return {?}
68
+ */
69
+ function () {
70
+ this.dataSource.sort = this.sort;
71
+ //const sortState: Sort = {active: 'date_updated', direction: 'desc'};
72
+ // this.sort.active = sortState.active;
73
+ // this.sort.direction = sortState.direction;
74
+ // this.sort.sortChange.emit(sortState);
75
+ this.dataSource.paginator = this.paginator;
76
+ this.dataSource.sort = this.sort;
77
+ this.cdRef.detectChanges();
78
+ };
79
+ /**
80
+ * @param {?} filterValue
81
+ * @return {?}
82
+ */
83
+ TableComponent.prototype.applyFilter = /**
84
+ * @param {?} filterValue
85
+ * @return {?}
86
+ */
87
+ function (filterValue) {
88
+ filterValue = filterValue.trim(); // Remove whitespace
89
+ filterValue = filterValue.toLowerCase(); // Datasource defaults to lowercase matches
90
+ this.dataSource.filter = filterValue;
91
+ };
92
+ /**
93
+ * @param {?} args
94
+ * @return {?}
95
+ */
96
+ TableComponent.prototype.selectchange = /**
97
+ * @param {?} args
98
+ * @return {?}
99
+ */
100
+ function (args) {
101
+ this.dataSource.filter = args.target.value;
102
+ this.actualcount = this.dataSource.data.length;
103
+ this.dataSource.paginator = this.paginator;
104
+ };
105
+ /**
106
+ * @param {?} refundReference
107
+ * @param {?} refundDate
108
+ * @return {?}
109
+ */
110
+ TableComponent.prototype.goToRefundProcessComponent = /**
111
+ * @param {?} refundReference
112
+ * @param {?} refundDate
113
+ * @return {?}
114
+ */
115
+ function (refundReference, refundDate) {
116
+ this.paymentLibComponent.refundlistsource = refundDate;
117
+ this.paymentLibComponent.refundReference = refundReference;
118
+ this.paymentLibComponent.viewName = 'process-refund';
119
+ };
120
+ /**
121
+ * @param {?} refundReference
122
+ * @param {?} refundData
123
+ * @return {?}
124
+ */
125
+ TableComponent.prototype.goToRefundViewComponent = /**
126
+ * @param {?} refundReference
127
+ * @param {?} refundData
128
+ * @return {?}
129
+ */
130
+ function (refundReference, refundData) {
131
+ this.OrderslistService.setRefundView(refundData);
132
+ this.paymentLibComponent.viewName = 'refundstatuslist';
133
+ this.paymentLibComponent.CCD_CASE_NUMBER = refundData.ccd_case_number;
134
+ this.paymentLibComponent.isRefundStatusView = true;
135
+ this.paymentLibComponent.isCallFromRefundList = true;
136
+ };
137
+ /**
138
+ * @param {?} ccdCaseNumber
139
+ * @param {?} refundData
140
+ * @return {?}
141
+ */
142
+ TableComponent.prototype.goToCaseReview = /**
143
+ * @param {?} ccdCaseNumber
144
+ * @param {?} refundData
145
+ * @return {?}
146
+ */
147
+ function (ccdCaseNumber, refundData) {
148
+ window.location.href = "/cases/case-details/:" + ccdCaseNumber;
149
+ };
150
+ TableComponent.decorators = [
151
+ { type: Component, args: [{
152
+ selector: 'ccpay-table',
153
+ template: "<div class=\"add-remission\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group\" style=\"float: right\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by caseworker:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All caseworkers</option>\n <option *ngFor=\"let name of userLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n \n<div *ngIf=\"dataSource.data.length > 0\" class=\"example-container\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccd_case_number\">\n <mat-header-cell *matHeaderCellDef >Case ID </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.ccd_case_number | ccdHyphens }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"refund_reference\">\n <mat-header-cell *matHeaderCellDef > Refund reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.refund_reference}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"reason\">\n <mat-header-cell *matHeaderCellDef> Reason </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.reason}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"user_full_name\">\n <mat-header-cell *matHeaderCellDef > Submitted by </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.user_full_name }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_updated\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date updated </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.date_updated | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container *ngIf=\"isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" > <a href=\"javascript:void(0)\" (click)=\"goToCaseReview(row.ccd_case_number, row)\">Review case</a>&nbsp;<a href=\"javascript:void(0)\" (click)=\"goToRefundProcessComponent(row.refund_reference, row)\">Process refund</a></mat-cell>\n </ng-container>\n \n <ng-container *ngIf=\"!isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef > Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\"> <a href=\"javascript:void(0)\" (click)=\"goToRefundViewComponent(row.refund_reference, row)\">Review refund</a></mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\">\n </mat-row>\n </mat-table>\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 100]\"></mat-paginator>\n</div>\n\n<div class=\"govuk-label dropdpwn\" *ngIf=\"dataSource.data.length === 0\">No records to display</div>\n",
154
+ styles: [".mat-header-row{min-height:27px}.mat-cell{padding:0 10px 0 0;text-align:left;word-wrap:break-word;white-space:inherit!important;font-size:19px;line-height:25px;font-family:nta,Arial,sans-serif;font-weight:400}.mat-table{color:#0b0c0c;display:table;font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:1px;box-sizing:border-box;text-indent:initial;border-spacing:0;border-collapse:collapse;font-size:1.1875rem;line-height:1.31578947;table-layout:fixed;width:102%}.mat-header-cell{text-align:left;font-weight:700;padding:10px 10px 10px 0;word-wrap:break-word;font-size:19px;line-height:25px;color:#005ea5;cursor:pointer;font-family:inherit}.dropdpwn{display:inline-block;margin-right:10px;font-size:19px}.mat-column-ccdCaseNumber{flex:3em}.mat-column-refundReference{flex:6em}.mat-column-reason{flex:2em}.govuk-select{font-size:19px;font-weight:400}.govuk-error-summary__title{font-size:24px!important}"]
155
+ }] }
156
+ ];
157
+ /** @nocollapse */
158
+ TableComponent.ctorParameters = function () { return [
159
+ { type: PaymentLibComponent },
160
+ { type: ChangeDetectorRef },
161
+ { type: OrderslistService }
162
+ ]; };
163
+ TableComponent.propDecorators = {
164
+ DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
165
+ STATUS: [{ type: Input, args: ['STATUS',] }],
166
+ errorMessage: [{ type: Input, args: ['errorMessage',] }],
167
+ paginator: [{ type: ViewChild, args: [MatPaginator,] }],
168
+ sort: [{ type: ViewChild, args: [MatSort,] }]
169
+ };
170
+ return TableComponent;
171
+ }());
172
+ export { TableComponent };
173
+ if (false) {
174
+ /** @type {?} */
175
+ TableComponent.prototype.DATASOURCE;
176
+ /** @type {?} */
177
+ TableComponent.prototype.STATUS;
178
+ /** @type {?} */
179
+ TableComponent.prototype.errorMessage;
180
+ /** @type {?} */
181
+ TableComponent.prototype.isApprovalFlow;
182
+ /** @type {?} */
183
+ TableComponent.prototype.displayedColumns;
184
+ /** @type {?} */
185
+ TableComponent.prototype.dataSource;
186
+ /** @type {?} */
187
+ TableComponent.prototype.userLst;
188
+ /** @type {?} */
189
+ TableComponent.prototype.actualcount;
190
+ /** @type {?} */
191
+ TableComponent.prototype.count;
192
+ /** @type {?} */
193
+ TableComponent.prototype.refundList;
194
+ /** @type {?} */
195
+ TableComponent.prototype.paginator;
196
+ /** @type {?} */
197
+ TableComponent.prototype.sort;
198
+ /**
199
+ * @type {?}
200
+ * @private
201
+ */
202
+ TableComponent.prototype.paymentLibComponent;
203
+ /**
204
+ * @type {?}
205
+ * @private
206
+ */
207
+ TableComponent.prototype.cdRef;
208
+ /**
209
+ * @type {?}
210
+ * @private
211
+ */
212
+ TableComponent.prototype.OrderslistService;
213
+ }
214
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL2NjcGF5LXdlYi1jb21wb25lbnQvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy90YWJsZS90YWJsZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUM3RSxPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSw2QkFBNkIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsa0JBQWtCLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUM1RCxPQUFPLEVBQUMsT0FBTyxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFaEQsT0FBTyxFQUFDLFlBQVksRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBRTFELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBRXRFO0lBb0JFLHdCQUNVLG1CQUF3QyxFQUN4QyxLQUF3QixFQUN4QixpQkFBb0M7UUFGcEMsd0JBQW1CLEdBQW5CLG1CQUFtQixDQUFxQjtRQUN4QyxVQUFLLEdBQUwsS0FBSyxDQUFtQjtRQUN4QixzQkFBaUIsR0FBakI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