@hmcts/ccpay-web-component 5.0.1-beta11 → 5.0.1-beta17
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 +14 -25
- 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/case-transactions/case-transactions.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +2 -20
- package/esm2015/lib/components/table/table.component.js +13 -4
- package/esm2015/lib/services/shared/error-handler.service.js +7 -2
- package/esm5/lib/components/case-transactions/case-transactions.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +2 -21
- package/esm5/lib/components/table/table.component.js +12 -4
- package/esm5/lib/services/shared/error-handler.service.js +7 -2
- package/fesm2015/hmcts-ccpay-web-component.js +15 -27
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +14 -28
- 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 -1
- package/package.json +1 -1
|
@@ -226,7 +226,12 @@ var ErrorHandlerService = /** @class */ (function () {
|
|
|
226
226
|
errorMessage = JSON.parse(JSON.stringify(err.error)).error;
|
|
227
227
|
}
|
|
228
228
|
else {
|
|
229
|
-
|
|
229
|
+
if (typeof err.error === 'string' && err.error !== undefined) {
|
|
230
|
+
errorMessage = err.error;
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
errorMessage = JSON.parse(err.error).error;
|
|
234
|
+
}
|
|
230
235
|
}
|
|
231
236
|
}
|
|
232
237
|
else {
|
|
@@ -2834,7 +2839,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
2834
2839
|
* @return {?}
|
|
2835
2840
|
*/
|
|
2836
2841
|
function (response) {
|
|
2837
|
-
_this.cpoDetails = JSON.parse(response).
|
|
2842
|
+
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2838
2843
|
}), (/**
|
|
2839
2844
|
* @param {?} error
|
|
2840
2845
|
* @return {?}
|
|
@@ -2869,7 +2874,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
2869
2874
|
* @return {?}
|
|
2870
2875
|
*/
|
|
2871
2876
|
function (response) {
|
|
2872
|
-
_this.cpoDetails = JSON.parse(response).
|
|
2877
|
+
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2873
2878
|
}), (/**
|
|
2874
2879
|
* @param {?} error
|
|
2875
2880
|
* @return {?}
|
|
@@ -7881,10 +7886,11 @@ var ReportsComponent = /** @class */ (function () {
|
|
|
7881
7886
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7882
7887
|
*/
|
|
7883
7888
|
var TableComponent = /** @class */ (function () {
|
|
7884
|
-
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1) {
|
|
7889
|
+
function TableComponent(paymentLibComponent, cdRef, OrderslistService$$1, _router) {
|
|
7885
7890
|
this.paymentLibComponent = paymentLibComponent;
|
|
7886
7891
|
this.cdRef = cdRef;
|
|
7887
7892
|
this.OrderslistService = OrderslistService$$1;
|
|
7893
|
+
this._router = _router;
|
|
7888
7894
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
7889
7895
|
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
7890
7896
|
}
|
|
@@ -8017,7 +8023,7 @@ var TableComponent = /** @class */ (function () {
|
|
|
8017
8023
|
* @return {?}
|
|
8018
8024
|
*/
|
|
8019
8025
|
function (ccdCaseNumber, refundData) {
|
|
8020
|
-
|
|
8026
|
+
this._router.navigateByUrl("/cases/case-details/:" + ccdCaseNumber);
|
|
8021
8027
|
};
|
|
8022
8028
|
TableComponent.decorators = [
|
|
8023
8029
|
{ type: Component, args: [{
|
|
@@ -8030,7 +8036,8 @@ var TableComponent = /** @class */ (function () {
|
|
|
8030
8036
|
TableComponent.ctorParameters = function () { return [
|
|
8031
8037
|
{ type: PaymentLibComponent },
|
|
8032
8038
|
{ type: ChangeDetectorRef },
|
|
8033
|
-
{ type: OrderslistService }
|
|
8039
|
+
{ type: OrderslistService },
|
|
8040
|
+
{ type: Router }
|
|
8034
8041
|
]; };
|
|
8035
8042
|
TableComponent.propDecorators = {
|
|
8036
8043
|
DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
|
|
@@ -8058,8 +8065,6 @@ var IResubmitRefundRequest = /** @class */ (function () {
|
|
|
8058
8065
|
* @fileoverview added by tsickle
|
|
8059
8066
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8060
8067
|
*/
|
|
8061
|
-
/** @type {?} */
|
|
8062
|
-
var BS_ENABLE_FLAG$4 = 'bulk-scan-enabling-fe';
|
|
8063
8068
|
var RefundStatusComponent = /** @class */ (function () {
|
|
8064
8069
|
// allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8065
8070
|
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router, OrderslistService$$1) {
|
|
@@ -8229,29 +8234,10 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
8229
8234
|
* @return {?}
|
|
8230
8235
|
*/
|
|
8231
8236
|
function () {
|
|
8232
|
-
var _this = this;
|
|
8233
8237
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8234
8238
|
//this.paymentLibComponent.TAKEPAYMENT = true;
|
|
8235
8239
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8236
|
-
this.
|
|
8237
|
-
* @param {?} features
|
|
8238
|
-
* @return {?}
|
|
8239
|
-
*/
|
|
8240
|
-
function (features) {
|
|
8241
|
-
/** @type {?} */
|
|
8242
|
-
var result = JSON.parse(features).filter((/**
|
|
8243
|
-
* @param {?} feature
|
|
8244
|
-
* @return {?}
|
|
8245
|
-
*/
|
|
8246
|
-
function (feature) { return feature.uid === BS_ENABLE_FLAG$4; }));
|
|
8247
|
-
_this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
8248
|
-
}), (/**
|
|
8249
|
-
* @param {?} err
|
|
8250
|
-
* @return {?}
|
|
8251
|
-
*/
|
|
8252
|
-
function (err) {
|
|
8253
|
-
_this.paymentLibComponent.ISBSENABLE = false;
|
|
8254
|
-
}));
|
|
8240
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8255
8241
|
/** @type {?} */
|
|
8256
8242
|
var partUrl = "selectedOption=" + this.paymentLibComponent.SELECTED_OPTION;
|
|
8257
8243
|
partUrl += this.bsPaymentDcnNumber ? "&dcn=" + this.bsPaymentDcnNumber : '';
|