@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
|
@@ -469,7 +469,12 @@
|
|
|
469
469
|
errorMessage = 'Internal server error';
|
|
470
470
|
}
|
|
471
471
|
else {
|
|
472
|
-
|
|
472
|
+
if (err.error.length > 60) {
|
|
473
|
+
errorMessage = JSON.parse(err.error).error;
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
errorMessage = err.error;
|
|
477
|
+
}
|
|
473
478
|
}
|
|
474
479
|
}
|
|
475
480
|
else {
|
|
@@ -6214,8 +6219,6 @@
|
|
|
6214
6219
|
* @fileoverview added by tsickle
|
|
6215
6220
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6216
6221
|
*/
|
|
6217
|
-
/** @type {?} */
|
|
6218
|
-
var BS_ENABLE_FLAG$3 = 'bulk-scan-enabling-fe';
|
|
6219
6222
|
var AddRemissionComponent = /** @class */ (function () {
|
|
6220
6223
|
function AddRemissionComponent(formBuilder, router$$1, paymentViewService, paymentLibComponent, refundService, cd, OrderslistService$$1) {
|
|
6221
6224
|
this.formBuilder = formBuilder;
|
|
@@ -7005,70 +7008,50 @@
|
|
|
7005
7008
|
* @return {?}
|
|
7006
7009
|
*/
|
|
7007
7010
|
function (event) {
|
|
7008
|
-
var _this = this;
|
|
7009
7011
|
event.preventDefault();
|
|
7010
|
-
if (this.paymentLibComponent.REFUNDLIST) {
|
|
7011
|
-
this.paymentLibComponent.viewName = 'refund-list';
|
|
7012
|
-
return;
|
|
7013
|
-
}
|
|
7014
|
-
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7015
|
-
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7016
|
-
}
|
|
7017
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7018
|
-
this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
|
|
7019
7012
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7020
|
-
this.
|
|
7013
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7021
7014
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7022
|
-
|
|
7023
|
-
this.paymentLibComponent.
|
|
7024
|
-
this.paymentLibComponent.
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
this.
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
partUrl += this.
|
|
7046
|
-
partUrl += this.paymentLibComponent.
|
|
7047
|
-
partUrl += this.
|
|
7048
|
-
|
|
7049
|
-
partUrl += this.paymentLibComponent.
|
|
7050
|
-
|
|
7051
|
-
if
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
}
|
|
7063
|
-
else {
|
|
7064
|
-
/** @type {?} */
|
|
7065
|
-
var url = "/payment-history/" + this.ccdCaseNumber + "?selectedOption=" + this.option + partUrl;
|
|
7066
|
-
this.router.routeReuseStrategy.shouldReuseRoute = ( /**
|
|
7067
|
-
* @return {?}
|
|
7068
|
-
*/function () { return false; });
|
|
7069
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
7070
|
-
this.router.navigateByUrl(url);
|
|
7071
|
-
}
|
|
7015
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
7016
|
+
// // if (this.paymentLibComponent.REFUNDLIST) {
|
|
7017
|
+
// // this.paymentLibComponent.viewName = 'refund-list';
|
|
7018
|
+
// // return;
|
|
7019
|
+
// // }
|
|
7020
|
+
// // if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7021
|
+
// // this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7022
|
+
// // }
|
|
7023
|
+
// // this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7024
|
+
// // this.OrderslistService.setpaymentPageView({method: '',payment_group_reference: '', reference:''});
|
|
7025
|
+
// // this.OrderslistService.setnavigationPage('casetransactions');
|
|
7026
|
+
// // this.errorMessage = '';
|
|
7027
|
+
// // this.paymentLibComponent.viewName = 'case-transactions';
|
|
7028
|
+
// // //this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7029
|
+
// // this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7030
|
+
// // this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7031
|
+
// // this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7032
|
+
// // this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7033
|
+
// // this.paymentLibComponent.ISBSENABLE = true;
|
|
7034
|
+
// // let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7035
|
+
// // partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7036
|
+
// // partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7037
|
+
// // partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7038
|
+
// // partUrl += `&caseType=${this.caseType}`;
|
|
7039
|
+
// // partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7040
|
+
// // partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7041
|
+
// // if(this.isFromPaymentDetailPage) {
|
|
7042
|
+
// // partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7043
|
+
// // }
|
|
7044
|
+
// // if(!this.paymentLibComponent.SERVICEREQUEST) {
|
|
7045
|
+
// // const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7046
|
+
// // this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7047
|
+
// // this.router.onSameUrlNavigation = 'reload';
|
|
7048
|
+
// // this.router.navigateByUrl(url);
|
|
7049
|
+
// // } else {
|
|
7050
|
+
// // const url =`/payment-history/${this.ccdCaseNumber}?selectedOption=${this.option}${partUrl}`;
|
|
7051
|
+
// // this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7052
|
+
// // this.router.onSameUrlNavigation = 'reload';
|
|
7053
|
+
// // this.router.navigateByUrl(url);
|
|
7054
|
+
// // }
|
|
7072
7055
|
};
|
|
7073
7056
|
/**
|
|
7074
7057
|
* @param {?} currency
|
|
@@ -7824,11 +7807,11 @@
|
|
|
7824
7807
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7825
7808
|
*/
|
|
7826
7809
|
var TableComponent = /** @class */ (function () {
|
|
7827
|
-
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1,
|
|
7810
|
+
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1, router$$1) {
|
|
7828
7811
|
this.paymentLibComponent = paymentLibComponent;
|
|
7829
7812
|
this.cdRef = cdRef;
|
|
7830
7813
|
this.OrderslistService = OrderslistService$$1;
|
|
7831
|
-
this.
|
|
7814
|
+
this.router = router$$1;
|
|
7832
7815
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
7833
7816
|
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
7834
7817
|
}
|
|
@@ -7959,13 +7942,19 @@
|
|
|
7959
7942
|
* @return {?}
|
|
7960
7943
|
*/
|
|
7961
7944
|
function (ccdCaseNumber, refundData) {
|
|
7962
|
-
|
|
7945
|
+
/** @type {?} */
|
|
7946
|
+
var url = "/cases/case-details/:" + ccdCaseNumber;
|
|
7947
|
+
this.router.routeReuseStrategy.shouldReuseRoute = ( /**
|
|
7948
|
+
* @return {?}
|
|
7949
|
+
*/function () { return false; });
|
|
7950
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7951
|
+
this.router.navigateByUrl(url);
|
|
7963
7952
|
};
|
|
7964
7953
|
TableComponent.decorators = [
|
|
7965
7954
|
{ type: i0.Component, args: [{
|
|
7966
7955
|
selector: 'ccpay-table',
|
|
7967
|
-
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
|
|
7968
|
-
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:#
|
|
7956
|
+
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",
|
|
7957
|
+
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}"]
|
|
7969
7958
|
}] }
|
|
7970
7959
|
];
|
|
7971
7960
|
/** @nocollapse */
|
|
@@ -8164,7 +8153,7 @@
|
|
|
8164
8153
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8165
8154
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8166
8155
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8167
|
-
|
|
8156
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
8168
8157
|
// //this.paymentLibComponent.TAKEPAYMENT = true;
|
|
8169
8158
|
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
8170
8159
|
// this.paymentLibComponent.ISBSENABLE = true;
|