@hmcts/ccpay-web-component 4.0.0-beta97 → 4.0.1-beta2

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 (203) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +6480 -2353
  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 +33 -25
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +742 -138
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +315 -310
  8. package/esm2015/lib/components/card-details/card-details.component.js +22 -57
  9. package/esm2015/lib/components/case-transactions/case-transactions.component.js +1081 -333
  10. package/esm2015/lib/components/error-banner/error-banner.component.js +5 -17
  11. package/esm2015/lib/components/fee-summary/fee-summary.component.js +245 -266
  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 -178
  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 +269 -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 +314 -0
  19. package/esm2015/lib/components/processed-payments/processed-payments.component.js +72 -0
  20. package/esm2015/lib/components/refund-list/refund-list.component.js +140 -0
  21. package/esm2015/lib/components/refund-status/refund-status.component.js +487 -0
  22. package/esm2015/lib/components/refunds/refunds.component.js +23 -0
  23. package/esm2015/lib/components/reports/reports.component.js +89 -112
  24. package/esm2015/lib/components/status-history/status-history.component.js +28 -35
  25. package/esm2015/lib/components/table/table.component.js +158 -0
  26. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +178 -88
  27. package/esm2015/lib/interfaces/AddRemissionRequest.js +6 -7
  28. package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +21 -0
  29. package/esm2015/lib/interfaces/AllocatePaymentRequest.js +11 -9
  30. package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +2 -3
  31. package/esm2015/lib/interfaces/IBSPayments.js +38 -35
  32. package/esm2015/lib/interfaces/ICardDetails.js +14 -13
  33. package/esm2015/lib/interfaces/IFee.js +44 -29
  34. package/esm2015/lib/interfaces/IOrderReferenceFee.js +25 -0
  35. package/esm2015/lib/interfaces/IPatchRefundAction.js +15 -0
  36. package/esm2015/lib/interfaces/IPayment.js +56 -55
  37. package/esm2015/lib/interfaces/IPaymentGroup.js +12 -11
  38. package/esm2015/lib/interfaces/IPaymentStatus.js +2 -3
  39. package/esm2015/lib/interfaces/IPaymentView.js +17 -0
  40. package/esm2015/lib/interfaces/IPayments.js +6 -5
  41. package/esm2015/lib/interfaces/IRefundAction.js +15 -0
  42. package/esm2015/lib/interfaces/IRefundList.js +29 -0
  43. package/esm2015/lib/interfaces/IRefundReasons.js +17 -0
  44. package/esm2015/lib/interfaces/IRefundRejectReason.js +15 -0
  45. package/esm2015/lib/interfaces/IRefundStatus.js +23 -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 +112 -18
  59. package/esm2015/lib/payment-lib.module.js +33 -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 +100 -13
  71. package/esm2015/lib/services/refunds/refunds.service.js +196 -0
  72. package/esm2015/lib/services/shared/error-handler.service.js +6 -4
  73. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +17 -8
  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 +57 -50
  78. package/esm2015/public_api.js +1 -2
  79. package/esm5/hmcts-ccpay-web-component.js +33 -25
  80. package/esm5/lib/components/add-remission/add-remission.component.js +807 -47
  81. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +328 -107
  82. package/esm5/lib/components/card-details/card-details.component.js +22 -9
  83. package/esm5/lib/components/case-transactions/case-transactions.component.js +1183 -85
  84. package/esm5/lib/components/error-banner/error-banner.component.js +3 -4
  85. package/esm5/lib/components/fee-summary/fee-summary.component.js +252 -91
  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 +318 -17
  91. package/esm5/lib/components/pba-details/pba-details.component.js +5 -6
  92. package/esm5/lib/components/process-refund/process-refund.component.js +336 -0
  93. package/esm5/lib/components/processed-payments/processed-payments.component.js +83 -0
  94. package/esm5/lib/components/refund-list/refund-list.component.js +143 -0
  95. package/esm5/lib/components/refund-status/refund-status.component.js +545 -0
  96. package/esm5/lib/components/refunds/refunds.component.js +29 -0
  97. package/esm5/lib/components/reports/reports.component.js +92 -23
  98. package/esm5/lib/components/status-history/status-history.component.js +27 -9
  99. package/esm5/lib/components/table/table.component.js +188 -0
  100. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +188 -24
  101. package/esm5/lib/interfaces/AddRemissionRequest.js +5 -6
  102. package/esm5/lib/interfaces/AddRetroRemissionRequest.js +19 -0
  103. package/esm5/lib/interfaces/AllocatePaymentRequest.js +9 -8
  104. package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +2 -3
  105. package/esm5/lib/interfaces/IBSPayments.js +38 -35
  106. package/esm5/lib/interfaces/ICardDetails.js +14 -13
  107. package/esm5/lib/interfaces/IFee.js +44 -29
  108. package/esm5/lib/interfaces/IOrderReferenceFee.js +25 -0
  109. package/esm5/lib/interfaces/IPatchRefundAction.js +15 -0
  110. package/esm5/lib/interfaces/IPayment.js +56 -55
  111. package/esm5/lib/interfaces/IPaymentGroup.js +12 -11
  112. package/esm5/lib/interfaces/IPaymentStatus.js +2 -3
  113. package/esm5/lib/interfaces/IPaymentView.js +17 -0
  114. package/esm5/lib/interfaces/IPayments.js +6 -5
  115. package/esm5/lib/interfaces/IRefundAction.js +15 -0
  116. package/esm5/lib/interfaces/IRefundList.js +29 -0
  117. package/esm5/lib/interfaces/IRefundReasons.js +17 -0
  118. package/esm5/lib/interfaces/IRefundRejectReason.js +15 -0
  119. package/esm5/lib/interfaces/IRefundStatus.js +23 -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 +84 -12
  133. package/esm5/lib/payment-lib.module.js +33 -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 +138 -14
  145. package/esm5/lib/services/refunds/refunds.service.js +236 -0
  146. package/esm5/lib/services/shared/error-handler.service.js +6 -4
  147. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +17 -8
  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 +63 -50
  152. package/esm5/public_api.js +1 -2
  153. package/fesm2015/hmcts-ccpay-web-component.js +4431 -2031
  154. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  155. package/fesm5/hmcts-ccpay-web-component.js +6613 -2320
  156. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  157. package/hmcts-ccpay-web-component.d.ts +31 -22
  158. package/hmcts-ccpay-web-component.metadata.json +1 -1
  159. package/lib/components/add-remission/add-remission.component.d.ts +75 -3
  160. package/lib/components/allocate-payments/allocate-payments.component.d.ts +26 -9
  161. package/lib/components/case-transactions/case-transactions.component.d.ts +86 -4
  162. package/lib/components/fee-summary/fee-summary.component.d.ts +13 -2
  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 +34 -1
  166. package/lib/components/process-refund/process-refund.component.d.ts +46 -0
  167. package/lib/components/processed-payments/processed-payments.component.d.ts +14 -0
  168. package/lib/components/refund-list/refund-list.component.d.ts +23 -0
  169. package/lib/components/refund-status/refund-status.component.d.ts +66 -0
  170. package/lib/components/refunds/refunds.component.d.ts +5 -0
  171. package/lib/components/reports/reports.component.d.ts +1 -0
  172. package/lib/components/status-history/status-history.component.d.ts +1 -0
  173. package/lib/components/table/table.component.d.ts +35 -0
  174. package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +25 -4
  175. package/lib/interfaces/AddRemissionRequest.d.ts +2 -2
  176. package/lib/interfaces/AddRetroRemissionRequest.d.ts +5 -0
  177. package/lib/interfaces/AllocatePaymentRequest.d.ts +16 -3
  178. package/lib/interfaces/IBSPayments.d.ts +1 -0
  179. package/lib/interfaces/IFee.d.ts +7 -0
  180. package/lib/interfaces/IOrderReferenceFee.d.ts +9 -0
  181. package/lib/interfaces/IPatchRefundAction.d.ts +4 -0
  182. package/lib/interfaces/IPaymentView.d.ts +5 -0
  183. package/lib/interfaces/IRefundAction.d.ts +4 -0
  184. package/lib/interfaces/IRefundList.d.ts +14 -0
  185. package/lib/interfaces/IRefundReasons.d.ts +5 -0
  186. package/lib/interfaces/IRefundRejectReason.d.ts +4 -0
  187. package/lib/interfaces/IRefundStatus.d.ts +8 -0
  188. package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -0
  189. package/lib/interfaces/IssueRefundRequest.d.ts +6 -0
  190. package/lib/interfaces/PayhubAntennaRequest.d.ts +7 -0
  191. package/lib/interfaces/PaymentToPayhubRequest.d.ts +2 -3
  192. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +4 -0
  193. package/lib/interfaces/PostRefundRetroRemission.d.ts +5 -0
  194. package/lib/interfaces/RefundsRequest.d.ts +5 -0
  195. package/lib/payment-lib.component.d.ts +28 -3
  196. package/lib/payment-lib.service.d.ts +3 -0
  197. package/lib/pipes/capitalize.pipe.d.ts +5 -0
  198. package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts +2 -0
  199. package/lib/services/orderslist.service.d.ts +40 -0
  200. package/lib/services/payment-view/payment-view.service.d.ts +17 -2
  201. package/lib/services/refunds/refunds.service.d.ts +30 -0
  202. package/lib/services/xl-file/xl-file.service.d.ts +6 -6
  203. package/package.json +1 -1
@@ -0,0 +1,188 @@
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
+ this.displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
17
+ }
18
+ /**
19
+ * @return {?}
20
+ */
21
+ TableComponent.prototype.ngOnInit = /**
22
+ * @return {?}
23
+ */
24
+ function () {
25
+ this.errorMessage = this.errorMessage;
26
+ if (this.STATUS.toLowerCase() === 'sent for approval') {
27
+ this.isApprovalFlow = true;
28
+ }
29
+ else {
30
+ this.isApprovalFlow = false;
31
+ }
32
+ this.refundList = this.DATASOURCE;
33
+ this.dataSource = new MatTableDataSource(this.refundList);
34
+ this.actualcount = this.dataSource.data.length;
35
+ if (this.refundList !== undefined) {
36
+ this.userLst = this.refundList.reduce((/**
37
+ * @param {?} r
38
+ * @param {?} __1
39
+ * @return {?}
40
+ */
41
+ function (r, _a) {
42
+ var user_full_name = _a.user_full_name;
43
+ return (r[user_full_name] = '', r);
44
+ }), {});
45
+ this.userLst = Object.keys(this.userLst);
46
+ }
47
+ };
48
+ /**
49
+ * Set the paginator and sort after the view init since this component will
50
+ * be able to query its view for the initialized paginator and sort.
51
+ */
52
+ /**
53
+ * Set the paginator and sort after the view init since this component will
54
+ * be able to query its view for the initialized paginator and sort.
55
+ * @return {?}
56
+ */
57
+ TableComponent.prototype.ngAfterViewInit = /**
58
+ * Set the paginator and sort after the view init since this component will
59
+ * be able to query its view for the initialized paginator and sort.
60
+ * @return {?}
61
+ */
62
+ function () {
63
+ this.dataSource.paginator = this.paginator;
64
+ this.dataSource.sort = this.sort;
65
+ this.cdRef.detectChanges();
66
+ };
67
+ /**
68
+ * @param {?} filterValue
69
+ * @return {?}
70
+ */
71
+ TableComponent.prototype.applyFilter = /**
72
+ * @param {?} filterValue
73
+ * @return {?}
74
+ */
75
+ function (filterValue) {
76
+ filterValue = filterValue.trim(); // Remove whitespace
77
+ filterValue = filterValue.toLowerCase(); // Datasource defaults to lowercase matches
78
+ this.dataSource.filter = filterValue;
79
+ };
80
+ /**
81
+ * @param {?} args
82
+ * @return {?}
83
+ */
84
+ TableComponent.prototype.selectchange = /**
85
+ * @param {?} args
86
+ * @return {?}
87
+ */
88
+ function (args) {
89
+ this.dataSource.filter = args.target.value;
90
+ this.actualcount = this.dataSource.data.length;
91
+ };
92
+ /**
93
+ * @param {?} refundReference
94
+ * @param {?} refundDate
95
+ * @return {?}
96
+ */
97
+ TableComponent.prototype.goToRefundProcessComponent = /**
98
+ * @param {?} refundReference
99
+ * @param {?} refundDate
100
+ * @return {?}
101
+ */
102
+ function (refundReference, refundDate) {
103
+ this.paymentLibComponent.refundlistsource = refundDate;
104
+ this.paymentLibComponent.refundReference = refundReference;
105
+ this.paymentLibComponent.viewName = 'process-refund';
106
+ };
107
+ /**
108
+ * @param {?} refundReference
109
+ * @param {?} refundData
110
+ * @return {?}
111
+ */
112
+ TableComponent.prototype.goToRefundViewComponent = /**
113
+ * @param {?} refundReference
114
+ * @param {?} refundData
115
+ * @return {?}
116
+ */
117
+ function (refundReference, refundData) {
118
+ this.OrderslistService.setRefundView(refundData);
119
+ this.paymentLibComponent.viewName = 'refundstatuslist';
120
+ this.paymentLibComponent.CCD_CASE_NUMBER = refundData.ccd_case_number;
121
+ this.paymentLibComponent.isRefundStatusView = true;
122
+ this.paymentLibComponent.isCallFromRefundList = true;
123
+ };
124
+ TableComponent.decorators = [
125
+ { type: Component, args: [{
126
+ selector: 'ccpay-table',
127
+ 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 mat-elevation-z8\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccdCaseNumber\">\n <mat-header-cell *matHeaderCellDef mat-sort-header>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=\"refundReference\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> 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 mat-sort-header> 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=\"createBy\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> 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=\"updateDate\">\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 mat-sort-header> Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" > <a href=\"\">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 mat-sort-header> 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",
128
+ 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}"]
129
+ }] }
130
+ ];
131
+ /** @nocollapse */
132
+ TableComponent.ctorParameters = function () { return [
133
+ { type: PaymentLibComponent },
134
+ { type: ChangeDetectorRef },
135
+ { type: OrderslistService }
136
+ ]; };
137
+ TableComponent.propDecorators = {
138
+ DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
139
+ STATUS: [{ type: Input, args: ['STATUS',] }],
140
+ errorMessage: [{ type: Input, args: ['errorMessage',] }],
141
+ paginator: [{ type: ViewChild, args: [MatPaginator,] }],
142
+ sort: [{ type: ViewChild, args: [MatSort,] }]
143
+ };
144
+ return TableComponent;
145
+ }());
146
+ export { TableComponent };
147
+ if (false) {
148
+ /** @type {?} */
149
+ TableComponent.prototype.DATASOURCE;
150
+ /** @type {?} */
151
+ TableComponent.prototype.STATUS;
152
+ /** @type {?} */
153
+ TableComponent.prototype.errorMessage;
154
+ /** @type {?} */
155
+ TableComponent.prototype.isApprovalFlow;
156
+ /** @type {?} */
157
+ TableComponent.prototype.displayedColumns;
158
+ /** @type {?} */
159
+ TableComponent.prototype.dataSource;
160
+ /** @type {?} */
161
+ TableComponent.prototype.userLst;
162
+ /** @type {?} */
163
+ TableComponent.prototype.actualcount;
164
+ /** @type {?} */
165
+ TableComponent.prototype.count;
166
+ /** @type {?} */
167
+ TableComponent.prototype.refundList;
168
+ /** @type {?} */
169
+ TableComponent.prototype.paginator;
170
+ /** @type {?} */
171
+ TableComponent.prototype.sort;
172
+ /**
173
+ * @type {?}
174
+ * @private
175
+ */
176
+ TableComponent.prototype.paymentLibComponent;
177
+ /**
178
+ * @type {?}
179
+ * @private
180
+ */
181
+ TableComponent.prototype.cdRef;
182
+ /**
183
+ * @type {?}
184
+ * @private
185
+ */
186
+ TableComponent.prototype.OrderslistService;
187
+ }
188
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL2NjcGF5LXdlYi1jb21wb25lbnQvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy90YWJsZS90YWJsZS5jb21wb25lbnQ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