@hmcts/ccd-case-ui-toolkit 7.3.1-srt-rc1 → 7.3.1
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/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +131 -121
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +163 -163
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8,10 +8,10 @@ import * as i1$1 from '@angular/router';
|
|
|
8
8
|
import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
9
9
|
import * as i4 from '@angular/forms';
|
|
10
10
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
11
|
-
import { BehaviorSubject, throwError, Subject, EMPTY, Observable,
|
|
11
|
+
import { BehaviorSubject, throwError, Subject, EMPTY, Observable, skip, of, timer, forkJoin, fromEvent, combineLatest, Subscription } from 'rxjs';
|
|
12
12
|
import * as i1$2 from '@angular/common/http';
|
|
13
13
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
14
|
-
import { distinctUntilChanged, catchError, map, publish, refCount, switchMap, debounceTime,
|
|
14
|
+
import { distinctUntilChanged, catchError, map, publish, refCount, switchMap, debounceTime, delay, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, takeUntil, filter } from 'rxjs/operators';
|
|
15
15
|
import { polling } from 'rx-polling-hmcts';
|
|
16
16
|
import { Type, Exclude, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
|
|
17
17
|
import moment from 'moment';
|
|
@@ -6542,11 +6542,8 @@ class LabelSubstitutorDirective {
|
|
|
6542
6542
|
this.initialHintText = this.caseField.hint_text;
|
|
6543
6543
|
this.caseField.originalLabel = this.caseField.label;
|
|
6544
6544
|
this.formGroup = this.formGroup || new FormGroup({});
|
|
6545
|
-
this.languageSubscription = this.rpxTranslationService.language$.subscribe(() => {
|
|
6546
|
-
|
|
6547
|
-
setTimeout(() => {
|
|
6548
|
-
this.onLanguageChange();
|
|
6549
|
-
}, 100);
|
|
6545
|
+
this.languageSubscription = this.rpxTranslationService.language$.pipe(skip(1)).subscribe(() => {
|
|
6546
|
+
this.onLanguageChange();
|
|
6550
6547
|
});
|
|
6551
6548
|
this.applySubstitutions();
|
|
6552
6549
|
}
|
|
@@ -7148,89 +7145,9 @@ class ReadCookieService {
|
|
|
7148
7145
|
args: [DOCUMENT]
|
|
7149
7146
|
}] }], null); })();
|
|
7150
7147
|
|
|
7151
|
-
class CaseNotifier {
|
|
7152
|
-
casesService;
|
|
7153
|
-
static CASE_NAME = 'caseNameHmctsInternal';
|
|
7154
|
-
static CASE_LOCATION = 'caseManagementLocation';
|
|
7155
|
-
caseViewSource = new BehaviorSubject(new CaseView());
|
|
7156
|
-
caseView = this.caseViewSource.asObservable();
|
|
7157
|
-
cachedCaseView;
|
|
7158
|
-
constructor(casesService) {
|
|
7159
|
-
this.casesService = casesService;
|
|
7160
|
-
}
|
|
7161
|
-
removeCachedCase() {
|
|
7162
|
-
this.cachedCaseView = null;
|
|
7163
|
-
}
|
|
7164
|
-
announceCase(c) {
|
|
7165
|
-
this.caseViewSource.next(c);
|
|
7166
|
-
}
|
|
7167
|
-
fetchAndRefresh(cid) {
|
|
7168
|
-
return this.casesService
|
|
7169
|
-
.getCaseViewV2(cid)
|
|
7170
|
-
.pipe(map(caseView => {
|
|
7171
|
-
this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
|
|
7172
|
-
this.setBasicFields(this.cachedCaseView.tabs);
|
|
7173
|
-
this.announceCase(this.cachedCaseView);
|
|
7174
|
-
return this.cachedCaseView;
|
|
7175
|
-
}));
|
|
7176
|
-
}
|
|
7177
|
-
setBasicFields(tabs) {
|
|
7178
|
-
tabs.forEach((t) => {
|
|
7179
|
-
const caseName = t.fields.find(f => f.id === CaseNotifier.CASE_NAME);
|
|
7180
|
-
const caseLocation = t.fields.find(f => f.id === CaseNotifier.CASE_LOCATION);
|
|
7181
|
-
if (caseName || caseLocation) {
|
|
7182
|
-
this.cachedCaseView.basicFields = {
|
|
7183
|
-
caseNameHmctsInternal: caseName ? caseName.value : null,
|
|
7184
|
-
caseManagementLocation: caseLocation ? caseLocation.value : null
|
|
7185
|
-
};
|
|
7186
|
-
}
|
|
7187
|
-
});
|
|
7188
|
-
}
|
|
7189
|
-
static ɵfac = function CaseNotifier_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseNotifier)(i0.ɵɵinject(CasesService)); };
|
|
7190
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseNotifier, factory: CaseNotifier.ɵfac });
|
|
7191
|
-
}
|
|
7192
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseNotifier, [{
|
|
7193
|
-
type: Injectable
|
|
7194
|
-
}], () => [{ type: CasesService }], null); })();
|
|
7195
|
-
|
|
7196
|
-
class JurisdictionService {
|
|
7197
|
-
httpService;
|
|
7198
|
-
// We retain the Subject observable because subscribing code couldn't happen a null value
|
|
7199
|
-
selectedJurisdictionSource = new Subject();
|
|
7200
|
-
_selectedJurisdictionBS = new BehaviorSubject(null);
|
|
7201
|
-
selectedJurisdiction;
|
|
7202
|
-
constructor(httpService) {
|
|
7203
|
-
this.httpService = httpService;
|
|
7204
|
-
this.selectedJurisdiction = this.selectedJurisdictionSource.asObservable();
|
|
7205
|
-
}
|
|
7206
|
-
getJurisdictions() {
|
|
7207
|
-
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
7208
|
-
}
|
|
7209
|
-
announceSelectedJurisdiction(jurisdiction) {
|
|
7210
|
-
this.selectedJurisdictionSource.next(jurisdiction);
|
|
7211
|
-
this._selectedJurisdictionBS.next(jurisdiction);
|
|
7212
|
-
}
|
|
7213
|
-
getSelectedJurisdiction() {
|
|
7214
|
-
return this._selectedJurisdictionBS;
|
|
7215
|
-
}
|
|
7216
|
-
searchJudicialUsers(searchTerm, serviceId) {
|
|
7217
|
-
return this.httpService.post('api/prd/judicial/getJudicialUsersSearch', { searchString: searchTerm, serviceCode: serviceId });
|
|
7218
|
-
}
|
|
7219
|
-
searchJudicialUsersByPersonalCodes(personalCodes) {
|
|
7220
|
-
return this.httpService.post('api/prd/judicial/searchJudicialUserByPersonalCodes', { personal_code: personalCodes });
|
|
7221
|
-
}
|
|
7222
|
-
static ɵfac = function JurisdictionService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || JurisdictionService)(i0.ɵɵinject(HttpService)); };
|
|
7223
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
|
|
7224
|
-
}
|
|
7225
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JurisdictionService, [{
|
|
7226
|
-
type: Injectable
|
|
7227
|
-
}], () => [{ type: HttpService }], null); })();
|
|
7228
|
-
|
|
7229
7148
|
class DocumentManagementService {
|
|
7230
7149
|
http;
|
|
7231
7150
|
appConfig;
|
|
7232
|
-
caseNotifierService;
|
|
7233
|
-
jurisdictionService;
|
|
7234
7151
|
static PDF = 'pdf';
|
|
7235
7152
|
static IMAGE = 'image';
|
|
7236
7153
|
static WORD = 'word';
|
|
@@ -7246,38 +7163,28 @@ class DocumentManagementService {
|
|
|
7246
7163
|
static excelList = ['XLS', 'XLSX', 'xls', 'xlsx'];
|
|
7247
7164
|
static powerpointList = ['PPT', 'PPTX', 'ppt', 'pptx'];
|
|
7248
7165
|
caseTypeId = '';
|
|
7249
|
-
constructor(http, appConfig
|
|
7166
|
+
constructor(http, appConfig) {
|
|
7250
7167
|
this.http = http;
|
|
7251
7168
|
this.appConfig = appConfig;
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
if (jurisdiction.currentCaseType) {
|
|
7263
|
-
this.caseTypeId = jurisdiction.currentCaseType.id;
|
|
7264
|
-
}
|
|
7265
|
-
}
|
|
7266
|
-
//if the user refreshes on the case creation page the above logic will not work, we can get the caseTypeId from the URL
|
|
7267
|
-
if (!this.caseTypeId) {
|
|
7268
|
-
const url = window.location.pathname;
|
|
7269
|
-
if (url.indexOf('/case-create/') > -1) {
|
|
7270
|
-
const parts = url.split('/');
|
|
7271
|
-
this.caseTypeId = parts[parts.indexOf('case-create') + 2];
|
|
7272
|
-
}
|
|
7169
|
+
const currUrl = window.location.pathname;
|
|
7170
|
+
if (currUrl.includes('/case-details/')) {
|
|
7171
|
+
this.caseTypeId = currUrl.split('/')[4];
|
|
7172
|
+
}
|
|
7173
|
+
console.log(this.caseTypeId);
|
|
7174
|
+
//if the user refreshes on the case creation page the above logic will not work, we can get the caseTypeId from the URL
|
|
7175
|
+
if (!this.caseTypeId) {
|
|
7176
|
+
if (currUrl.indexOf('/case-create/') > -1) {
|
|
7177
|
+
const parts = currUrl.split('/');
|
|
7178
|
+
this.caseTypeId = parts[parts.indexOf('case-create') + 2];
|
|
7273
7179
|
}
|
|
7274
|
-
}
|
|
7180
|
+
}
|
|
7275
7181
|
}
|
|
7276
7182
|
uploadFile(formData) {
|
|
7277
7183
|
const url = this.getDocStoreUrl();
|
|
7278
7184
|
// Do not set any headers, such as "Accept" or "Content-Type", with null values; this is not permitted with the
|
|
7279
7185
|
// Angular HttpClient in @angular/common/http. Just create and pass a new HttpHeaders object. Angular will add the
|
|
7280
7186
|
// correct headers and values automatically
|
|
7187
|
+
this.appConfig.logMessage(`Uploading document for case type: ${this.caseTypeId}, with url: ${url}`);
|
|
7281
7188
|
const headers = new HttpHeaders();
|
|
7282
7189
|
return this.http
|
|
7283
7190
|
.post(url, formData, { headers, observe: 'body' })
|
|
@@ -7365,12 +7272,12 @@ class DocumentManagementService {
|
|
|
7365
7272
|
// if documentSecureModeEnabled is true, and case is in the exclusion list, return false
|
|
7366
7273
|
return false;
|
|
7367
7274
|
}
|
|
7368
|
-
static ɵfac = function DocumentManagementService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DocumentManagementService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig)
|
|
7275
|
+
static ɵfac = function DocumentManagementService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DocumentManagementService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig)); };
|
|
7369
7276
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DocumentManagementService, factory: DocumentManagementService.ɵfac });
|
|
7370
7277
|
}
|
|
7371
7278
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentManagementService, [{
|
|
7372
7279
|
type: Injectable
|
|
7373
|
-
}], () => [{ type: HttpService }, { type: AbstractAppConfig }
|
|
7280
|
+
}], () => [{ type: HttpService }, { type: AbstractAppConfig }], null); })();
|
|
7374
7281
|
|
|
7375
7282
|
class ErrorNotifierService {
|
|
7376
7283
|
errorSource = new BehaviorSubject(null);
|
|
@@ -7562,6 +7469,39 @@ class MultipageComponentStateService {
|
|
|
7562
7469
|
}]
|
|
7563
7470
|
}], null, null); })();
|
|
7564
7471
|
|
|
7472
|
+
class JurisdictionService {
|
|
7473
|
+
httpService;
|
|
7474
|
+
// We retain the Subject observable because subscribing code couldn't happen a null value
|
|
7475
|
+
selectedJurisdictionSource = new Subject();
|
|
7476
|
+
_selectedJurisdictionBS = new BehaviorSubject(null);
|
|
7477
|
+
selectedJurisdiction;
|
|
7478
|
+
constructor(httpService) {
|
|
7479
|
+
this.httpService = httpService;
|
|
7480
|
+
this.selectedJurisdiction = this.selectedJurisdictionSource.asObservable();
|
|
7481
|
+
}
|
|
7482
|
+
getJurisdictions() {
|
|
7483
|
+
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
7484
|
+
}
|
|
7485
|
+
announceSelectedJurisdiction(jurisdiction) {
|
|
7486
|
+
this.selectedJurisdictionSource.next(jurisdiction);
|
|
7487
|
+
this._selectedJurisdictionBS.next(jurisdiction);
|
|
7488
|
+
}
|
|
7489
|
+
getSelectedJurisdiction() {
|
|
7490
|
+
return this._selectedJurisdictionBS;
|
|
7491
|
+
}
|
|
7492
|
+
searchJudicialUsers(searchTerm, serviceId) {
|
|
7493
|
+
return this.httpService.post('api/prd/judicial/getJudicialUsersSearch', { searchString: searchTerm, serviceCode: serviceId });
|
|
7494
|
+
}
|
|
7495
|
+
searchJudicialUsersByPersonalCodes(personalCodes) {
|
|
7496
|
+
return this.httpService.post('api/prd/judicial/searchJudicialUserByPersonalCodes', { personal_code: personalCodes });
|
|
7497
|
+
}
|
|
7498
|
+
static ɵfac = function JurisdictionService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || JurisdictionService)(i0.ɵɵinject(HttpService)); };
|
|
7499
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
|
|
7500
|
+
}
|
|
7501
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JurisdictionService, [{
|
|
7502
|
+
type: Injectable
|
|
7503
|
+
}], () => [{ type: HttpService }], null); })();
|
|
7504
|
+
|
|
7565
7505
|
class BannersService {
|
|
7566
7506
|
httpService;
|
|
7567
7507
|
appConfig;
|
|
@@ -8681,6 +8621,51 @@ class CaseworkerService {
|
|
|
8681
8621
|
type: Injectable
|
|
8682
8622
|
}], () => [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }], null); })();
|
|
8683
8623
|
|
|
8624
|
+
class CaseNotifier {
|
|
8625
|
+
casesService;
|
|
8626
|
+
static CASE_NAME = 'caseNameHmctsInternal';
|
|
8627
|
+
static CASE_LOCATION = 'caseManagementLocation';
|
|
8628
|
+
caseViewSource = new BehaviorSubject(new CaseView());
|
|
8629
|
+
caseView = this.caseViewSource.asObservable();
|
|
8630
|
+
cachedCaseView;
|
|
8631
|
+
constructor(casesService) {
|
|
8632
|
+
this.casesService = casesService;
|
|
8633
|
+
}
|
|
8634
|
+
removeCachedCase() {
|
|
8635
|
+
this.cachedCaseView = null;
|
|
8636
|
+
}
|
|
8637
|
+
announceCase(c) {
|
|
8638
|
+
this.caseViewSource.next(c);
|
|
8639
|
+
}
|
|
8640
|
+
fetchAndRefresh(cid) {
|
|
8641
|
+
return this.casesService
|
|
8642
|
+
.getCaseViewV2(cid)
|
|
8643
|
+
.pipe(map(caseView => {
|
|
8644
|
+
this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
|
|
8645
|
+
this.setBasicFields(this.cachedCaseView.tabs);
|
|
8646
|
+
this.announceCase(this.cachedCaseView);
|
|
8647
|
+
return this.cachedCaseView;
|
|
8648
|
+
}));
|
|
8649
|
+
}
|
|
8650
|
+
setBasicFields(tabs) {
|
|
8651
|
+
tabs.forEach((t) => {
|
|
8652
|
+
const caseName = t.fields.find(f => f.id === CaseNotifier.CASE_NAME);
|
|
8653
|
+
const caseLocation = t.fields.find(f => f.id === CaseNotifier.CASE_LOCATION);
|
|
8654
|
+
if (caseName || caseLocation) {
|
|
8655
|
+
this.cachedCaseView.basicFields = {
|
|
8656
|
+
caseNameHmctsInternal: caseName ? caseName.value : null,
|
|
8657
|
+
caseManagementLocation: caseLocation ? caseLocation.value : null
|
|
8658
|
+
};
|
|
8659
|
+
}
|
|
8660
|
+
});
|
|
8661
|
+
}
|
|
8662
|
+
static ɵfac = function CaseNotifier_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseNotifier)(i0.ɵɵinject(CasesService)); };
|
|
8663
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseNotifier, factory: CaseNotifier.ɵfac });
|
|
8664
|
+
}
|
|
8665
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseNotifier, [{
|
|
8666
|
+
type: Injectable
|
|
8667
|
+
}], () => [{ type: CasesService }], null); })();
|
|
8668
|
+
|
|
8684
8669
|
var Permissions;
|
|
8685
8670
|
(function (Permissions) {
|
|
8686
8671
|
Permissions["Own"] = "OWN";
|
|
@@ -15267,6 +15252,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15267
15252
|
jurisdictionId;
|
|
15268
15253
|
caseTypeId;
|
|
15269
15254
|
caseTypeExclusions;
|
|
15255
|
+
caseId;
|
|
15270
15256
|
// Should the file upload use CDAM
|
|
15271
15257
|
fileSecureModeOn = false;
|
|
15272
15258
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
|
|
@@ -15280,19 +15266,20 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15280
15266
|
}
|
|
15281
15267
|
ngOnInit() {
|
|
15282
15268
|
// Wait for both observables to emit at least once
|
|
15269
|
+
const currUrl = window.location.pathname;
|
|
15270
|
+
if (currUrl.includes('/case-details/')) {
|
|
15271
|
+
this.caseTypeId = currUrl.split('/')[4];
|
|
15272
|
+
}
|
|
15283
15273
|
this.caseNotifierSubscription = combineLatest([
|
|
15284
15274
|
this.caseNotifier.caseView.pipe(take(1)),
|
|
15285
15275
|
this.jurisdictionService.getSelectedJurisdiction()
|
|
15286
15276
|
]).subscribe(([caseDetails, jurisdiction]) => {
|
|
15287
15277
|
if (caseDetails) {
|
|
15288
|
-
this.caseTypeId = caseDetails?.case_type?.id;
|
|
15289
15278
|
this.jurisdictionId = caseDetails?.case_type?.jurisdiction?.id;
|
|
15279
|
+
this.caseId = caseDetails?.case_id;
|
|
15290
15280
|
}
|
|
15291
15281
|
if (jurisdiction) {
|
|
15292
15282
|
this.jurisdictionId = jurisdiction.id;
|
|
15293
|
-
if (jurisdiction.currentCaseType) {
|
|
15294
|
-
this.caseTypeId = jurisdiction.currentCaseType.id;
|
|
15295
|
-
}
|
|
15296
15283
|
}
|
|
15297
15284
|
//if we havent set the value of caseTypeId yet, we can check if its in the url. e.g. case-creation
|
|
15298
15285
|
if (!this.caseTypeId) {
|
|
@@ -15540,6 +15527,13 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15540
15527
|
return documentUpload;
|
|
15541
15528
|
}
|
|
15542
15529
|
handleDocumentUploadResult(result) {
|
|
15530
|
+
// use the documentManagement service to check if the document upload should use CDAM
|
|
15531
|
+
if (this.documentManagement.isDocumentSecureModeEnabled()) {
|
|
15532
|
+
this.appConfig.logMessage(`CDAM is enabled for case with case ref:: ${this.caseId}`);
|
|
15533
|
+
}
|
|
15534
|
+
else {
|
|
15535
|
+
this.appConfig.logMessage(`CDAM is disabled for case with case ref:: ${this.caseId}`);
|
|
15536
|
+
}
|
|
15543
15537
|
if (!this.uploadedDocument) {
|
|
15544
15538
|
if (this.fileSecureModeOn) {
|
|
15545
15539
|
this.createDocumentForm({ document_url: null, document_binary_url: null, document_filename: null, document_hash: null });
|
|
@@ -20360,21 +20354,37 @@ class PaymentField extends AbstractFieldReadComponent {
|
|
|
20360
20354
|
}
|
|
20361
20355
|
|
|
20362
20356
|
class CasePaymentHistoryViewerFieldComponent extends PaymentField {
|
|
20357
|
+
PAYMENT_HISTORY_WARNING = 'Recent payments may take a few minutes to reflect here.';
|
|
20363
20358
|
constructor(appConfig, sessionStorage) {
|
|
20364
20359
|
super(appConfig, sessionStorage);
|
|
20365
20360
|
}
|
|
20366
20361
|
static ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
20367
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
20368
|
-
i0.ɵɵ
|
|
20362
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 22, consts: [[1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20363
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
|
|
20364
|
+
i0.ɵɵtext(2, "!");
|
|
20365
|
+
i0.ɵɵelementEnd();
|
|
20366
|
+
i0.ɵɵelementStart(3, "strong", 2)(4, "span", 3);
|
|
20367
|
+
i0.ɵɵtext(5);
|
|
20368
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
20369
|
+
i0.ɵɵelementEnd();
|
|
20370
|
+
i0.ɵɵtext(7);
|
|
20371
|
+
i0.ɵɵpipe(8, "rpxTranslate");
|
|
20372
|
+
i0.ɵɵelementEnd()();
|
|
20373
|
+
i0.ɵɵelement(9, "ccpay-payment-lib", 4);
|
|
20369
20374
|
} if (rf & 2) {
|
|
20375
|
+
i0.ɵɵadvance(5);
|
|
20376
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 18, "Warning"));
|
|
20377
|
+
i0.ɵɵadvance(2);
|
|
20378
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 20, ctx.PAYMENT_HISTORY_WARNING), " ");
|
|
20379
|
+
i0.ɵɵadvance(2);
|
|
20370
20380
|
i0.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
20371
|
-
} }, dependencies: [i3.PaymentLibComponent],
|
|
20381
|
+
} }, dependencies: [i3.PaymentLibComponent, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-20px}"] });
|
|
20372
20382
|
}
|
|
20373
20383
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
|
|
20374
20384
|
type: Component,
|
|
20375
|
-
args: [{ selector: 'ccd-case-payment-history-viewer-field', standalone: false, template: "<ccpay-payment-lib\n [API_ROOT]=\"getBaseURL()\"\n [CCD_CASE_NUMBER]=\"caseReference\"\n [BULKSCAN_API_ROOT]=\"getPayBulkScanBaseURL()\"\n [SELECTED_OPTION]=\"'CCDorException'\"\n [ISBSENABLE]=\"'true'\"\n [LOGGEDINUSEREMAIL]=\"getUserEmail()\"\n [LOGGEDINUSERROLES]=\"getUserRoles()\"\n [REFUNDS_API_ROOT]=\"getRefundsUrl()\"\n [NOTIFICATION_API_ROOT]=\"getNotificationUrl()\"\n [VIEW]=\"'case-transactions'\"\n [TAKEPAYMENT]=\"false\"\n [SERVICEREQUEST]=\"false\"\n [PAYMENT_GROUP_REF]=\"null\"\n [EXC_REFERENCE]=\"caseReference\"\n [DCN_NUMBER]=\"null\"\n [ISPAYMENTSTATUSENABLED]=\"'Enable'\"\n></ccpay-payment-lib
|
|
20385
|
+
args: [{ selector: 'ccd-case-payment-history-viewer-field', standalone: false, template: "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{PAYMENT_HISTORY_WARNING | rpxTranslate}}\n </strong>\n</div>\n<ccpay-payment-lib\n [API_ROOT]=\"getBaseURL()\"\n [CCD_CASE_NUMBER]=\"caseReference\"\n [BULKSCAN_API_ROOT]=\"getPayBulkScanBaseURL()\"\n [SELECTED_OPTION]=\"'CCDorException'\"\n [ISBSENABLE]=\"'true'\"\n [LOGGEDINUSEREMAIL]=\"getUserEmail()\"\n [LOGGEDINUSERROLES]=\"getUserRoles()\"\n [REFUNDS_API_ROOT]=\"getRefundsUrl()\"\n [NOTIFICATION_API_ROOT]=\"getNotificationUrl()\"\n [VIEW]=\"'case-transactions'\"\n [TAKEPAYMENT]=\"false\"\n [SERVICEREQUEST]=\"false\"\n [PAYMENT_GROUP_REF]=\"null\"\n [EXC_REFERENCE]=\"caseReference\"\n [DCN_NUMBER]=\"null\"\n [ISPAYMENTSTATUSENABLED]=\"'Enable'\"\n></ccpay-payment-lib>", styles: [".govuk-warning-text{margin-top:20px;margin-bottom:-20px}\n"] }]
|
|
20376
20386
|
}], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
|
|
20377
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePaymentHistoryViewerFieldComponent, { className: "CasePaymentHistoryViewerFieldComponent", filePath: "lib/shared/components/palette/payment/case-payment-history-viewer-field.component.ts", lineNumber:
|
|
20387
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePaymentHistoryViewerFieldComponent, { className: "CasePaymentHistoryViewerFieldComponent", filePath: "lib/shared/components/palette/payment/case-payment-history-viewer-field.component.ts", lineNumber: 12 }); })();
|
|
20378
20388
|
|
|
20379
20389
|
class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
|
|
20380
20390
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadPhoneUKFieldComponent_BaseFactory; return function ReadPhoneUKFieldComponent_Factory(__ngFactoryType__) { return (ɵReadPhoneUKFieldComponent_BaseFactory || (ɵReadPhoneUKFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadPhoneUKFieldComponent)))(__ngFactoryType__ || ReadPhoneUKFieldComponent); }; })();
|