@hmcts/ccpay-web-component 5.0.1-beta26 → 5.0.1-beta27
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.
- package/bundles/hmcts-ccpay-web-component.umd.js +59 -70
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/add-remission/add-remission.component.js +42 -66
- package/esm2015/lib/components/refund-status/refund-status.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +15 -8
- package/esm2015/lib/services/shared/error-handler.service.js +7 -2
- package/esm5/lib/components/add-remission/add-remission.component.js +42 -67
- package/esm5/lib/components/refund-status/refund-status.component.js +2 -2
- package/esm5/lib/components/table/table.component.js +14 -7
- package/esm5/lib/services/shared/error-handler.service.js +7 -2
- package/fesm2015/hmcts-ccpay-web-component.js +61 -75
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +60 -75
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/table/table.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -479,7 +479,12 @@ var ErrorHandlerService = /** @class */ (function () {
|
|
|
479
479
|
errorMessage = 'Internal server error';
|
|
480
480
|
}
|
|
481
481
|
else {
|
|
482
|
-
|
|
482
|
+
if (err.error.length > 60) {
|
|
483
|
+
errorMessage = JSON.parse(err.error).error;
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
errorMessage = err.error;
|
|
487
|
+
}
|
|
483
488
|
}
|
|
484
489
|
}
|
|
485
490
|
else {
|
|
@@ -6301,8 +6306,6 @@ var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
|
6301
6306
|
* @fileoverview added by tsickle
|
|
6302
6307
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6303
6308
|
*/
|
|
6304
|
-
/** @type {?} */
|
|
6305
|
-
var BS_ENABLE_FLAG$3 = 'bulk-scan-enabling-fe';
|
|
6306
6309
|
var AddRemissionComponent = /** @class */ (function () {
|
|
6307
6310
|
function AddRemissionComponent(formBuilder, router, paymentViewService, paymentLibComponent, refundService, cd, OrderslistService$$1) {
|
|
6308
6311
|
this.formBuilder = formBuilder;
|
|
@@ -7113,75 +7116,50 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7113
7116
|
* @return {?}
|
|
7114
7117
|
*/
|
|
7115
7118
|
function (event) {
|
|
7116
|
-
var _this = this;
|
|
7117
7119
|
event.preventDefault();
|
|
7118
|
-
if (this.paymentLibComponent.REFUNDLIST) {
|
|
7119
|
-
this.paymentLibComponent.viewName = 'refund-list';
|
|
7120
|
-
return;
|
|
7121
|
-
}
|
|
7122
|
-
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7123
|
-
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7124
|
-
}
|
|
7125
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7126
|
-
this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
|
|
7127
7120
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7128
|
-
this.
|
|
7121
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7129
7122
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7130
|
-
|
|
7131
|
-
this.paymentLibComponent.
|
|
7132
|
-
this.paymentLibComponent.
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
this.
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
}
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
partUrl += this.paymentLibComponent.
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
}
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
*/
|
|
7171
|
-
function () { return false; });
|
|
7172
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
7173
|
-
this.router.navigateByUrl(url);
|
|
7174
|
-
}
|
|
7175
|
-
else {
|
|
7176
|
-
/** @type {?} */
|
|
7177
|
-
var url = "/payment-history/" + this.ccdCaseNumber + "?selectedOption=" + this.option + partUrl;
|
|
7178
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7179
|
-
* @return {?}
|
|
7180
|
-
*/
|
|
7181
|
-
function () { return false; });
|
|
7182
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
7183
|
-
this.router.navigateByUrl(url);
|
|
7184
|
-
}
|
|
7123
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
7124
|
+
// // if (this.paymentLibComponent.REFUNDLIST) {
|
|
7125
|
+
// // this.paymentLibComponent.viewName = 'refund-list';
|
|
7126
|
+
// // return;
|
|
7127
|
+
// // }
|
|
7128
|
+
// // if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7129
|
+
// // this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7130
|
+
// // }
|
|
7131
|
+
// // this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7132
|
+
// // this.OrderslistService.setpaymentPageView({method: '',payment_group_reference: '', reference:''});
|
|
7133
|
+
// // this.OrderslistService.setnavigationPage('casetransactions');
|
|
7134
|
+
// // this.errorMessage = '';
|
|
7135
|
+
// // this.paymentLibComponent.viewName = 'case-transactions';
|
|
7136
|
+
// // //this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7137
|
+
// // this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7138
|
+
// // this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7139
|
+
// // this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7140
|
+
// // this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7141
|
+
// // this.paymentLibComponent.ISBSENABLE = true;
|
|
7142
|
+
// // let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7143
|
+
// // partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7144
|
+
// // partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7145
|
+
// // partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7146
|
+
// // partUrl += `&caseType=${this.caseType}`;
|
|
7147
|
+
// // partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7148
|
+
// // partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7149
|
+
// // if(this.isFromPaymentDetailPage) {
|
|
7150
|
+
// // partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7151
|
+
// // }
|
|
7152
|
+
// // if(!this.paymentLibComponent.SERVICEREQUEST) {
|
|
7153
|
+
// // const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7154
|
+
// // this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7155
|
+
// // this.router.onSameUrlNavigation = 'reload';
|
|
7156
|
+
// // this.router.navigateByUrl(url);
|
|
7157
|
+
// // } else {
|
|
7158
|
+
// // const url =`/payment-history/${this.ccdCaseNumber}?selectedOption=${this.option}${partUrl}`;
|
|
7159
|
+
// // this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7160
|
+
// // this.router.onSameUrlNavigation = 'reload';
|
|
7161
|
+
// // this.router.navigateByUrl(url);
|
|
7162
|
+
// // }
|
|
7185
7163
|
};
|
|
7186
7164
|
/**
|
|
7187
7165
|
* @param {?} currency
|
|
@@ -7936,11 +7914,11 @@ var ReportsComponent = /** @class */ (function () {
|
|
|
7936
7914
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7937
7915
|
*/
|
|
7938
7916
|
var TableComponent = /** @class */ (function () {
|
|
7939
|
-
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1,
|
|
7917
|
+
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1, router) {
|
|
7940
7918
|
this.paymentLibComponent = paymentLibComponent;
|
|
7941
7919
|
this.cdRef = cdRef;
|
|
7942
7920
|
this.OrderslistService = OrderslistService$$1;
|
|
7943
|
-
this.
|
|
7921
|
+
this.router = router;
|
|
7944
7922
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
7945
7923
|
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
7946
7924
|
}
|
|
@@ -8073,13 +8051,20 @@ var TableComponent = /** @class */ (function () {
|
|
|
8073
8051
|
* @return {?}
|
|
8074
8052
|
*/
|
|
8075
8053
|
function (ccdCaseNumber, refundData) {
|
|
8076
|
-
|
|
8054
|
+
/** @type {?} */
|
|
8055
|
+
var url = "/cases/case-details/:" + ccdCaseNumber;
|
|
8056
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
8057
|
+
* @return {?}
|
|
8058
|
+
*/
|
|
8059
|
+
function () { return false; });
|
|
8060
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
8061
|
+
this.router.navigateByUrl(url);
|
|
8077
8062
|
};
|
|
8078
8063
|
TableComponent.decorators = [
|
|
8079
8064
|
{ type: Component, args: [{
|
|
8080
8065
|
selector: 'ccpay-table',
|
|
8081
|
-
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
|
|
8082
|
-
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:#
|
|
8066
|
+
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 reference </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=\"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_created\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date created </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.date_created | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_updated\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Last 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> <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",
|
|
8067
|
+
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:#0b0c0c;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}"]
|
|
8083
8068
|
}] }
|
|
8084
8069
|
];
|
|
8085
8070
|
/** @nocollapse */
|
|
@@ -8286,7 +8271,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
8286
8271
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8287
8272
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8288
8273
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8289
|
-
|
|
8274
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
8290
8275
|
// //this.paymentLibComponent.TAKEPAYMENT = true;
|
|
8291
8276
|
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
8292
8277
|
// this.paymentLibComponent.ISBSENABLE = true;
|