@hmcts/ccpay-web-component 5.0.1-beta28 → 5.0.1-beta29
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 +64 -66
- 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 +60 -55
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +2 -1
- package/esm2015/lib/components/payment-view/payment-view.component.js +2 -1
- package/esm2015/lib/components/table/table.component.js +13 -13
- package/esm5/lib/components/add-remission/add-remission.component.js +60 -55
- package/esm5/lib/components/case-transactions/case-transactions.component.js +2 -1
- package/esm5/lib/components/payment-view/payment-view.component.js +2 -1
- package/esm5/lib/components/table/table.component.js +12 -13
- package/fesm2015/hmcts-ccpay-web-component.js +68 -68
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +67 -68
- 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 +3 -2
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
14
14
|
import { MatInputModule } from '@angular/material/input';
|
|
15
15
|
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
16
16
|
import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
17
|
-
import { Router } from '@angular/router';
|
|
17
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @fileoverview added by tsickle
|
|
@@ -1389,6 +1389,7 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1389
1389
|
this.paymentGroup = paymentgrp;
|
|
1390
1390
|
this.viewStatus = 'issuerefund';
|
|
1391
1391
|
this.isRefundRemission = true;
|
|
1392
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
1392
1393
|
}
|
|
1393
1394
|
}
|
|
1394
1395
|
};
|
|
@@ -3813,6 +3814,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3813
3814
|
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
3814
3815
|
this.viewStatus = 'issuerefund';
|
|
3815
3816
|
this.payment = payment;
|
|
3817
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3816
3818
|
this.isRefundRemission = true;
|
|
3817
3819
|
}
|
|
3818
3820
|
}
|
|
@@ -6787,9 +6789,9 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
6787
6789
|
else if (this.selectedRefundReason.includes('Other') && this.remissionForm.controls['reason'].value !== '') {
|
|
6788
6790
|
this.refundHasError = false;
|
|
6789
6791
|
this.refundReason += '-' + this.remissionForm.controls['reason'].value;
|
|
6790
|
-
this.displayRefundReason = this.remissionForm.controls['reason'].value;
|
|
6792
|
+
this.displayRefundReason = this.selectedRefundReason + '-' + this.remissionForm.controls['reason'].value;
|
|
6791
6793
|
if (this.isFromRefundListPage) {
|
|
6792
|
-
this.refundListReason.emit({ reason: this.
|
|
6794
|
+
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
6793
6795
|
}
|
|
6794
6796
|
else {
|
|
6795
6797
|
this.viewCompStatus = '';
|
|
@@ -7013,15 +7015,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7013
7015
|
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7014
7016
|
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7015
7017
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7016
|
-
// this.paymentViewService.getBSfeature().subscribe(
|
|
7017
|
-
// features => {
|
|
7018
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
7019
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
7020
|
-
// },
|
|
7021
|
-
// err => {
|
|
7022
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
7023
|
-
// }
|
|
7024
|
-
// );
|
|
7025
7018
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
7026
7019
|
/** @type {?} */
|
|
7027
7020
|
var partUrl = this.bsPaymentDcnNumber ? "&dcn=" + this.bsPaymentDcnNumber : '';
|
|
@@ -7117,49 +7110,63 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7117
7110
|
*/
|
|
7118
7111
|
function (event) {
|
|
7119
7112
|
event.preventDefault();
|
|
7120
|
-
this.
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7113
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
7114
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7115
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7116
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7117
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
7118
|
+
}
|
|
7119
|
+
else {
|
|
7120
|
+
if (this.paymentLibComponent.REFUNDLIST) {
|
|
7121
|
+
this.paymentLibComponent.viewName = 'refund-list';
|
|
7122
|
+
return;
|
|
7123
|
+
}
|
|
7124
|
+
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7125
|
+
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7126
|
+
}
|
|
7127
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7128
|
+
this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
|
|
7129
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7130
|
+
this.errorMessage = '';
|
|
7131
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7132
|
+
//this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7133
|
+
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7134
|
+
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7135
|
+
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7136
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7137
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
7138
|
+
/** @type {?} */
|
|
7139
|
+
var partUrl = this.bsPaymentDcnNumber ? "&dcn=" + this.bsPaymentDcnNumber : '';
|
|
7140
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7141
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7142
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7143
|
+
partUrl += "&caseType=" + this.caseType;
|
|
7144
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7145
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7146
|
+
if (this.isFromPaymentDetailPage) {
|
|
7147
|
+
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
7148
|
+
}
|
|
7149
|
+
if (!this.paymentLibComponent.SERVICEREQUEST) {
|
|
7150
|
+
/** @type {?} */
|
|
7151
|
+
var url = "/payment-history/" + this.ccdCaseNumber + "?view=case-transactions&takePayment=" + this.paymentLibComponent.TAKEPAYMENT + "&selectedOption=" + this.option + partUrl;
|
|
7152
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7153
|
+
* @return {?}
|
|
7154
|
+
*/
|
|
7155
|
+
function () { return false; });
|
|
7156
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7157
|
+
this.router.navigateByUrl(url);
|
|
7158
|
+
}
|
|
7159
|
+
else {
|
|
7160
|
+
/** @type {?} */
|
|
7161
|
+
var url = "/payment-history/" + this.ccdCaseNumber + "?selectedOption=" + this.option + partUrl;
|
|
7162
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7163
|
+
* @return {?}
|
|
7164
|
+
*/
|
|
7165
|
+
function () { return false; });
|
|
7166
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7167
|
+
this.router.navigateByUrl(url);
|
|
7168
|
+
}
|
|
7169
|
+
}
|
|
7163
7170
|
};
|
|
7164
7171
|
/**
|
|
7165
7172
|
* @param {?} currency
|
|
@@ -7914,11 +7921,12 @@ var ReportsComponent = /** @class */ (function () {
|
|
|
7914
7921
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7915
7922
|
*/
|
|
7916
7923
|
var TableComponent = /** @class */ (function () {
|
|
7917
|
-
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1, router) {
|
|
7924
|
+
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1, router, activeRoute) {
|
|
7918
7925
|
this.paymentLibComponent = paymentLibComponent;
|
|
7919
7926
|
this.cdRef = cdRef;
|
|
7920
7927
|
this.OrderslistService = OrderslistService$$1;
|
|
7921
7928
|
this.router = router;
|
|
7929
|
+
this.activeRoute = activeRoute;
|
|
7922
7930
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
7923
7931
|
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
7924
7932
|
}
|
|
@@ -8051,17 +8059,7 @@ var TableComponent = /** @class */ (function () {
|
|
|
8051
8059
|
* @return {?}
|
|
8052
8060
|
*/
|
|
8053
8061
|
function (ccdCaseNumber, refundData) {
|
|
8054
|
-
|
|
8055
|
-
var url = "/cases/case-details/:" + ccdCaseNumber;
|
|
8056
|
-
console.log(url);
|
|
8057
|
-
console.log(this.router.getCurrentNavigation());
|
|
8058
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
8059
|
-
* @return {?}
|
|
8060
|
-
*/
|
|
8061
|
-
function () { return false; });
|
|
8062
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
8063
|
-
this.router.navigateByUrl(url);
|
|
8064
|
-
console.log(this.router.getCurrentNavigation());
|
|
8062
|
+
this.router.navigate(["/cases/case-details/:" + ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
8065
8063
|
};
|
|
8066
8064
|
TableComponent.decorators = [
|
|
8067
8065
|
{ type: Component, args: [{
|
|
@@ -8075,7 +8073,8 @@ var TableComponent = /** @class */ (function () {
|
|
|
8075
8073
|
{ type: PaymentLibComponent },
|
|
8076
8074
|
{ type: ChangeDetectorRef },
|
|
8077
8075
|
{ type: OrderslistService },
|
|
8078
|
-
{ type: Router }
|
|
8076
|
+
{ type: Router },
|
|
8077
|
+
{ type: ActivatedRoute }
|
|
8079
8078
|
]; };
|
|
8080
8079
|
TableComponent.propDecorators = {
|
|
8081
8080
|
DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
|