@hmcts/ccd-case-ui-toolkit 6.19.0-RetryCaseRetrievals.1 → 6.19.0-RetryCaseRetrievals.3
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-ccd-case-ui-toolkit.umd.js +94 -79
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +12 -1
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +7 -9
- package/esm2015/lib/shared/services/index.js +2 -1
- package/esm2015/lib/shared/services/utils/retry/index.js +2 -0
- package/esm2015/lib/shared/services/utils/retry/retry-util.service.js +76 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +90 -76
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +1 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts +3 -4
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/services/index.d.ts +1 -0
- package/lib/shared/services/index.d.ts.map +1 -1
- package/lib/shared/services/utils/retry/index.d.ts +2 -0
- package/lib/shared/services/utils/retry/index.d.ts.map +1 -0
- package/lib/shared/services/utils/{rxjs-utils.service.d.ts → retry/retry-util.service.d.ts} +5 -4
- package/lib/shared/services/utils/retry/retry-util.service.d.ts.map +1 -0
- package/package.json +1 -1
- package/esm2015/lib/shared/services/utils/rxjs-utils.service.js +0 -73
- package/lib/shared/services/utils/rxjs-utils.service.d.ts.map +0 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { throwError, timer } from 'rxjs';
|
|
3
|
+
import { delayWhen, finalize, mergeMap, retryWhen, tap, timeout } from 'rxjs/operators';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class RetryUtil {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.artificialDelayOn = true;
|
|
8
|
+
this.artificialDelayPeriod = this.pickARandomValue();
|
|
9
|
+
}
|
|
10
|
+
switchArtificialDelays(status) {
|
|
11
|
+
this.artificialDelayOn = status;
|
|
12
|
+
this.artificialDelayPeriod = this.pickARandomValue();
|
|
13
|
+
}
|
|
14
|
+
switchOnArtificialDelays() {
|
|
15
|
+
this.switchArtificialDelays(true);
|
|
16
|
+
}
|
|
17
|
+
switchOffArtificialDelays() {
|
|
18
|
+
this.switchArtificialDelays(false);
|
|
19
|
+
}
|
|
20
|
+
getArtificialDelayTime() {
|
|
21
|
+
return this.artificialDelayOn ? this.artificialDelayPeriod : 0;
|
|
22
|
+
}
|
|
23
|
+
pipeTimeoutMechanismOn(in$, environment, timeoutPeriods) {
|
|
24
|
+
this.switchOnArtificialDelays();
|
|
25
|
+
let out$ = in$;
|
|
26
|
+
if (environment === 'aat') {
|
|
27
|
+
out$ = this.pipeArtificialDelayOn(out$);
|
|
28
|
+
}
|
|
29
|
+
out$ = this.pipeTimeOutControlOn(out$, timeoutPeriods);
|
|
30
|
+
out$ = this.pipeRetryMechanismOn(out$);
|
|
31
|
+
return out$;
|
|
32
|
+
}
|
|
33
|
+
pipeTimeOutControlOn(in$, timeoutPeriods) {
|
|
34
|
+
const timeOutAfterSeconds = timeoutPeriods[0];
|
|
35
|
+
const out$ = in$.pipe(timeout(timeOutAfterSeconds * 1000));
|
|
36
|
+
return out$;
|
|
37
|
+
}
|
|
38
|
+
pipeRetryMechanismOn(in$) {
|
|
39
|
+
const retryStrategy = (errors) => {
|
|
40
|
+
return errors.pipe(mergeMap((error, i) => {
|
|
41
|
+
console.error(`Mapping error ${error === null || error === void 0 ? void 0 : error.name}, ${i}`);
|
|
42
|
+
console.error(error);
|
|
43
|
+
if ((error === null || error === void 0 ? void 0 : error.name) === 'TimeoutError' && i === 0) {
|
|
44
|
+
this.switchOffArtificialDelays();
|
|
45
|
+
console.info('Will retry, after a timeout error.');
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
console.error('Will NOT retry.');
|
|
49
|
+
throwError(error);
|
|
50
|
+
}
|
|
51
|
+
return timer(0);
|
|
52
|
+
}), finalize(() => console.log('We are done!')));
|
|
53
|
+
};
|
|
54
|
+
const out$ = in$.pipe(retryWhen(retryStrategy));
|
|
55
|
+
return out$;
|
|
56
|
+
}
|
|
57
|
+
pipeArtificialDelayOn(in$) {
|
|
58
|
+
let out$ = in$.pipe(tap(() => {
|
|
59
|
+
console.log(`Artificially delaying for ${this.getArtificialDelayTime()} seconds..`);
|
|
60
|
+
}));
|
|
61
|
+
out$ = out$.pipe(delayWhen(() => timer(this.getArtificialDelayTime() * 1000)));
|
|
62
|
+
out$ = out$.pipe(tap(() => {
|
|
63
|
+
console.log(`Artificially delayed for ${this.getArtificialDelayTime()} seconds..`);
|
|
64
|
+
}));
|
|
65
|
+
return out$;
|
|
66
|
+
}
|
|
67
|
+
pickARandomValue() {
|
|
68
|
+
return Date.now() % 2 == 0 ? 60 : 3;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
RetryUtil.ɵfac = function RetryUtil_Factory(t) { return new (t || RetryUtil)(); };
|
|
72
|
+
RetryUtil.ɵprov = i0.ɵɵdefineInjectable({ token: RetryUtil, factory: RetryUtil.ɵfac });
|
|
73
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RetryUtil, [{
|
|
74
|
+
type: Injectable
|
|
75
|
+
}], null, null); })();
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnktdXRpbC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vL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biAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoJ1dpbGwgTk9UIHJldHJ5LicpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3dFcnJvcihlcnJvcik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRpbWVyKDApO1xuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIGZpbmFsaXplKCgpID0+IGNvbnNvbGUubG9nKCdXZSBhcmUgZG9uZSEnKSkpO1xuICAgICAgICB9O1xuICAgICAgICBjb25zdCBvdXQkID0gaW4kLnBpcGUocmV0cnlXaGVuKHJldHJ5U3RyYXRlZ3kpKTtcbiAgICAgICAgcmV0dXJuIG91dCQ7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBwaXBlQXJ0aWZpY2lhbERlbGF5T248VD4oaW4kOiBPYnNlcnZhYmxlPFQ+KTogT2JzZXJ2YWJsZTxUPiB7XG4gICAgICAgIGxldCBvdXQkID0gaW4kLnBpcGUodGFwKCgpID0+IHtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKGBBcnRpZmljaWFsbHkgZGVsYXlpbmcgZm9yICR7dGhpcy5nZXRBcnRpZmljaWFsRGVsYXlUaW1lKCl9IHNlY29uZHMuLmApO1xuICAgICAgICB9KSk7XG4gICAgICAgIG91dCQgPSBvdXQkLnBpcGUoZGVsYXlXaGVuKCgpID0+IHRpbWVyKHRoaXMuZ2V0QXJ0aWZpY2lhbERlbGF5VGltZSgpICogMTAwMCkpKTtcbiAgICAgICAgb3V0JCA9IG91dCQucGlwZSh0YXAoKCkgPT4ge1xuICAgICAgICAgICAgY29uc29sZS5sb2coYEFydGlmaWNpYWxseSBkZWxheWVkIGZvciAke3RoaXMuZ2V0QXJ0aWZpY2lhbERlbGF5VGltZSgpfSBzZWNvbmRzLi5gKTtcbiAgICAgICAgfSkpO1xuICAgICAgICByZXR1cm4gb3V0JDtcbiAgICB9XG5cbiAgICBwcml2YXRlIHBpY2tBUmFuZG9tVmFsdWUoKSB7XG4gICAgICAgIHJldHVybiBEYXRlLm5vdygpICUgMiA9PSAwID8gNjAgOiAzO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -12,7 +12,7 @@ import polling from 'rx-polling';
|
|
|
12
12
|
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent, forkJoin } from 'rxjs';
|
|
13
13
|
import * as i1$2 from '@angular/common/http';
|
|
14
14
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
15
|
-
import { catchError, map, publish, refCount, debounceTime, delay, distinctUntilChanged, finalize,
|
|
15
|
+
import { catchError, map, publish, refCount, debounceTime, delay, distinctUntilChanged, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, switchMap, takeUntil, filter } from 'rxjs/operators';
|
|
16
16
|
import { Type, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
|
|
17
17
|
import * as moment from 'moment';
|
|
18
18
|
import { __decorate, __metadata } from 'tslib';
|
|
@@ -6842,6 +6842,78 @@ RouterHelperService.ɵprov = i0.ɵɵdefineInjectable({ token: RouterHelperServic
|
|
|
6842
6842
|
type: Injectable
|
|
6843
6843
|
}], null, null); })();
|
|
6844
6844
|
|
|
6845
|
+
class RetryUtil {
|
|
6846
|
+
constructor() {
|
|
6847
|
+
this.artificialDelayOn = true;
|
|
6848
|
+
this.artificialDelayPeriod = this.pickARandomValue();
|
|
6849
|
+
}
|
|
6850
|
+
switchArtificialDelays(status) {
|
|
6851
|
+
this.artificialDelayOn = status;
|
|
6852
|
+
this.artificialDelayPeriod = this.pickARandomValue();
|
|
6853
|
+
}
|
|
6854
|
+
switchOnArtificialDelays() {
|
|
6855
|
+
this.switchArtificialDelays(true);
|
|
6856
|
+
}
|
|
6857
|
+
switchOffArtificialDelays() {
|
|
6858
|
+
this.switchArtificialDelays(false);
|
|
6859
|
+
}
|
|
6860
|
+
getArtificialDelayTime() {
|
|
6861
|
+
return this.artificialDelayOn ? this.artificialDelayPeriod : 0;
|
|
6862
|
+
}
|
|
6863
|
+
pipeTimeoutMechanismOn(in$, environment, timeoutPeriods) {
|
|
6864
|
+
this.switchOnArtificialDelays();
|
|
6865
|
+
let out$ = in$;
|
|
6866
|
+
if (environment === 'aat') {
|
|
6867
|
+
out$ = this.pipeArtificialDelayOn(out$);
|
|
6868
|
+
}
|
|
6869
|
+
out$ = this.pipeTimeOutControlOn(out$, timeoutPeriods);
|
|
6870
|
+
out$ = this.pipeRetryMechanismOn(out$);
|
|
6871
|
+
return out$;
|
|
6872
|
+
}
|
|
6873
|
+
pipeTimeOutControlOn(in$, timeoutPeriods) {
|
|
6874
|
+
const timeOutAfterSeconds = timeoutPeriods[0];
|
|
6875
|
+
const out$ = in$.pipe(timeout(timeOutAfterSeconds * 1000));
|
|
6876
|
+
return out$;
|
|
6877
|
+
}
|
|
6878
|
+
pipeRetryMechanismOn(in$) {
|
|
6879
|
+
const retryStrategy = (errors) => {
|
|
6880
|
+
return errors.pipe(mergeMap((error, i) => {
|
|
6881
|
+
console.error(`Mapping error ${error === null || error === void 0 ? void 0 : error.name}, ${i}`);
|
|
6882
|
+
console.error(error);
|
|
6883
|
+
if ((error === null || error === void 0 ? void 0 : error.name) === 'TimeoutError' && i === 0) {
|
|
6884
|
+
this.switchOffArtificialDelays();
|
|
6885
|
+
console.info('Will retry, after a timeout error.');
|
|
6886
|
+
}
|
|
6887
|
+
else {
|
|
6888
|
+
console.error('Will NOT retry.');
|
|
6889
|
+
throwError(error);
|
|
6890
|
+
}
|
|
6891
|
+
return timer(0);
|
|
6892
|
+
}), finalize(() => console.log('We are done!')));
|
|
6893
|
+
};
|
|
6894
|
+
const out$ = in$.pipe(retryWhen(retryStrategy));
|
|
6895
|
+
return out$;
|
|
6896
|
+
}
|
|
6897
|
+
pipeArtificialDelayOn(in$) {
|
|
6898
|
+
let out$ = in$.pipe(tap(() => {
|
|
6899
|
+
console.log(`Artificially delaying for ${this.getArtificialDelayTime()} seconds..`);
|
|
6900
|
+
}));
|
|
6901
|
+
out$ = out$.pipe(delayWhen(() => timer(this.getArtificialDelayTime() * 1000)));
|
|
6902
|
+
out$ = out$.pipe(tap(() => {
|
|
6903
|
+
console.log(`Artificially delayed for ${this.getArtificialDelayTime()} seconds..`);
|
|
6904
|
+
}));
|
|
6905
|
+
return out$;
|
|
6906
|
+
}
|
|
6907
|
+
pickARandomValue() {
|
|
6908
|
+
return Date.now() % 2 == 0 ? 60 : 3;
|
|
6909
|
+
}
|
|
6910
|
+
}
|
|
6911
|
+
RetryUtil.ɵfac = function RetryUtil_Factory(t) { return new (t || RetryUtil)(); };
|
|
6912
|
+
RetryUtil.ɵprov = i0.ɵɵdefineInjectable({ token: RetryUtil, factory: RetryUtil.ɵfac });
|
|
6913
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RetryUtil, [{
|
|
6914
|
+
type: Injectable
|
|
6915
|
+
}], null, null); })();
|
|
6916
|
+
|
|
6845
6917
|
class WindowService {
|
|
6846
6918
|
locationAssign(url) {
|
|
6847
6919
|
window.location.assign(url);
|
|
@@ -7339,77 +7411,8 @@ WizardPageFieldToCaseFieldMapper.ɵprov = i0.ɵɵdefineInjectable({ token: Wizar
|
|
|
7339
7411
|
}]
|
|
7340
7412
|
}], null, null); })();
|
|
7341
7413
|
|
|
7342
|
-
class RxjsUtils {
|
|
7343
|
-
constructor() {
|
|
7344
|
-
this.artificialDelayOn = true;
|
|
7345
|
-
this.artificialDelayPeriod = Math.random() > 0.5 ? 60 : 3;
|
|
7346
|
-
}
|
|
7347
|
-
switchArtificialDelays(status) {
|
|
7348
|
-
this.artificialDelayOn = status;
|
|
7349
|
-
this.artificialDelayPeriod = Math.random() > 0.5 ? 60 : 2;
|
|
7350
|
-
}
|
|
7351
|
-
switchOnArtificialDelays() {
|
|
7352
|
-
this.switchArtificialDelays(true);
|
|
7353
|
-
}
|
|
7354
|
-
switchOffArtificialDelays() {
|
|
7355
|
-
this.switchArtificialDelays(false);
|
|
7356
|
-
}
|
|
7357
|
-
getArtificialDelayTime() {
|
|
7358
|
-
return this.artificialDelayOn ? this.artificialDelayPeriod : 0;
|
|
7359
|
-
}
|
|
7360
|
-
pipeTimeoutMechanismOn(in$, environment, timeoutPeriods) {
|
|
7361
|
-
this.switchOnArtificialDelays();
|
|
7362
|
-
let out$ = in$;
|
|
7363
|
-
if (environment === 'aat') {
|
|
7364
|
-
out$ = this.pipeArtificialDelayOn(out$);
|
|
7365
|
-
}
|
|
7366
|
-
out$ = this.pipeTimeOutControlOn(out$, timeoutPeriods);
|
|
7367
|
-
out$ = this.pipeRetryMechanismOn(out$);
|
|
7368
|
-
return out$;
|
|
7369
|
-
}
|
|
7370
|
-
pipeTimeOutControlOn(in$, timeoutPeriods) {
|
|
7371
|
-
const timeOutAfterSeconds = timeoutPeriods[0];
|
|
7372
|
-
const out$ = in$.pipe(timeout(timeOutAfterSeconds * 1000));
|
|
7373
|
-
return out$;
|
|
7374
|
-
}
|
|
7375
|
-
pipeRetryMechanismOn(in$) {
|
|
7376
|
-
const retryStrategy = (errors) => {
|
|
7377
|
-
return errors.pipe(mergeMap((error, i) => {
|
|
7378
|
-
console.error(`Mapping error ${error === null || error === void 0 ? void 0 : error.name}, ${i}`);
|
|
7379
|
-
console.error(error);
|
|
7380
|
-
if ((error === null || error === void 0 ? void 0 : error.name) === 'TimeoutError' && i === 0) {
|
|
7381
|
-
this.switchOffArtificialDelays();
|
|
7382
|
-
console.info('Will retry, after a timeout error.');
|
|
7383
|
-
}
|
|
7384
|
-
else {
|
|
7385
|
-
console.error('Will NOT retry.');
|
|
7386
|
-
throwError(error);
|
|
7387
|
-
}
|
|
7388
|
-
return timer(0);
|
|
7389
|
-
}), finalize(() => console.log('We are done!')));
|
|
7390
|
-
};
|
|
7391
|
-
const out$ = in$.pipe(retryWhen(retryStrategy));
|
|
7392
|
-
return out$;
|
|
7393
|
-
}
|
|
7394
|
-
pipeArtificialDelayOn(in$) {
|
|
7395
|
-
let out$ = in$.pipe(tap(() => {
|
|
7396
|
-
console.log(`Artificially delaying for ${this.getArtificialDelayTime()} seconds..`);
|
|
7397
|
-
}));
|
|
7398
|
-
out$ = out$.pipe(delayWhen(() => timer(this.getArtificialDelayTime() * 1000)));
|
|
7399
|
-
out$ = out$.pipe(tap(() => {
|
|
7400
|
-
console.log(`Artificially delayed for ${this.getArtificialDelayTime()} seconds..`);
|
|
7401
|
-
}));
|
|
7402
|
-
return out$;
|
|
7403
|
-
}
|
|
7404
|
-
}
|
|
7405
|
-
RxjsUtils.ɵfac = function RxjsUtils_Factory(t) { return new (t || RxjsUtils)(); };
|
|
7406
|
-
RxjsUtils.ɵprov = i0.ɵɵdefineInjectable({ token: RxjsUtils, factory: RxjsUtils.ɵfac });
|
|
7407
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RxjsUtils, [{
|
|
7408
|
-
type: Injectable
|
|
7409
|
-
}], null, null); })();
|
|
7410
|
-
|
|
7411
7414
|
class CasesService {
|
|
7412
|
-
constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, loadingService, sessionStorageService,
|
|
7415
|
+
constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, loadingService, sessionStorageService, retryUtil) {
|
|
7413
7416
|
this.http = http;
|
|
7414
7417
|
this.appConfig = appConfig;
|
|
7415
7418
|
this.orderService = orderService;
|
|
@@ -7417,7 +7420,7 @@ class CasesService {
|
|
|
7417
7420
|
this.wizardPageFieldToCaseFieldMapper = wizardPageFieldToCaseFieldMapper;
|
|
7418
7421
|
this.loadingService = loadingService;
|
|
7419
7422
|
this.sessionStorageService = sessionStorageService;
|
|
7420
|
-
this.
|
|
7423
|
+
this.retryUtil = retryUtil;
|
|
7421
7424
|
this.get = this.getCaseView;
|
|
7422
7425
|
}
|
|
7423
7426
|
static updateChallengedAccessRequestAttributes(httpClient, caseId, attributesToUpdate) {
|
|
@@ -7450,7 +7453,7 @@ class CasesService {
|
|
|
7450
7453
|
.set('Content-Type', 'application/json');
|
|
7451
7454
|
const loadingToken = this.loadingService.register();
|
|
7452
7455
|
let http$ = this.http.get(url, { headers, observe: 'body' });
|
|
7453
|
-
this.
|
|
7456
|
+
this.retryUtil.pipeTimeoutMechanismOn(http$, this.appConfig.getEnvironment(), this.appConfig.getCaseRetrievalTimeouts());
|
|
7454
7457
|
http$ = this.pipeErrorProcessor(http$);
|
|
7455
7458
|
http$ = http$.pipe(finalize(() => this.finalizeGetCaseViewWith(caseId, loadingToken)));
|
|
7456
7459
|
return http$;
|
|
@@ -7653,11 +7656,11 @@ CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE = 'application/vnd.uk.gov.hmcts.ccd
|
|
|
7653
7656
|
CasesService.V2_MEDIATYPE_CREATE_EVENT = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-event.v2+json;charset=UTF-8';
|
|
7654
7657
|
CasesService.V2_MEDIATYPE_CREATE_CASE = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-case.v2+json;charset=UTF-8';
|
|
7655
7658
|
CasesService.PUI_CASE_MANAGER = 'pui-case-manager';
|
|
7656
|
-
CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(OrderService), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0.ɵɵinject(LoadingService), i0.ɵɵinject(SessionStorageService), i0.ɵɵinject(
|
|
7659
|
+
CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(OrderService), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0.ɵɵinject(LoadingService), i0.ɵɵinject(SessionStorageService), i0.ɵɵinject(RetryUtil)); };
|
|
7657
7660
|
CasesService.ɵprov = i0.ɵɵdefineInjectable({ token: CasesService, factory: CasesService.ɵfac });
|
|
7658
7661
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasesService, [{
|
|
7659
7662
|
type: Injectable
|
|
7660
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: LoadingService }, { type: SessionStorageService }, { type:
|
|
7663
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: LoadingService }, { type: SessionStorageService }, { type: RetryUtil }]; }, null); })();
|
|
7661
7664
|
|
|
7662
7665
|
class EventTriggerService {
|
|
7663
7666
|
constructor() {
|
|
@@ -9691,6 +9694,10 @@ class CaseEditPageComponent {
|
|
|
9691
9694
|
this.handleError(error);
|
|
9692
9695
|
});
|
|
9693
9696
|
CaseEditPageComponent.scrollToTop();
|
|
9697
|
+
// Remove all JudicialUser FormControls with the ID suffix "_judicialUserControl" because these are not
|
|
9698
|
+
// intended to be present in the Case Event data (they are added only for value selection and validation
|
|
9699
|
+
// purposes)
|
|
9700
|
+
this.removeAllJudicialUserFormControls(this.currentPage, this.editForm);
|
|
9694
9701
|
}
|
|
9695
9702
|
CaseEditPageComponent.setFocusToTop();
|
|
9696
9703
|
}
|
|
@@ -9941,6 +9948,13 @@ class CaseEditPageComponent {
|
|
|
9941
9948
|
submit: this.caseEdit.submit,
|
|
9942
9949
|
});
|
|
9943
9950
|
}
|
|
9951
|
+
removeAllJudicialUserFormControls(page, editForm) {
|
|
9952
|
+
page.case_fields.forEach(caseField => {
|
|
9953
|
+
if (FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser'])) {
|
|
9954
|
+
editForm.controls['data'].removeControl(`${caseField.id}_judicialUserControl`);
|
|
9955
|
+
}
|
|
9956
|
+
});
|
|
9957
|
+
}
|
|
9944
9958
|
}
|
|
9945
9959
|
CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
9946
9960
|
CaseEditPageComponent.NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
|
|
@@ -32902,5 +32916,5 @@ class TestRouteSnapshotBuilder {
|
|
|
32902
32916
|
* Generated bundle index. Do not edit.
|
|
32903
32917
|
*/
|
|
32904
32918
|
|
|
32905
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
32919
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RetryUtil, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
32906
32920
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|