@hmcts/ccd-case-ui-toolkit 6.19.0-RetryCaseRetrievals.1 → 6.19.0-RetryCaseRetrievals.2
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 +91 -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 +73 -0
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +87 -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} +4 -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,73 @@
|
|
|
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 = Math.random() > 0.5 ? 60 : 3;
|
|
9
|
+
}
|
|
10
|
+
switchArtificialDelays(status) {
|
|
11
|
+
this.artificialDelayOn = status;
|
|
12
|
+
this.artificialDelayPeriod = Math.random() > 0.5 ? 60 : 2;
|
|
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
|
+
}
|
|
68
|
+
RetryUtil.ɵfac = function RetryUtil_Factory(t) { return new (t || RetryUtil)(); };
|
|
69
|
+
RetryUtil.ɵprov = i0.ɵɵdefineInjectable({ token: RetryUtil, factory: RetryUtil.ɵfac });
|
|
70
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RetryUtil, [{
|
|
71
|
+
type: Injectable
|
|
72
|
+
}], null, null); })();
|
|
73
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnktdXRpbC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2Ut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1cblxuICAgIHByaXZhdGUgcGlwZVRpbWVPdXRDb250cm9sT248VD4oaW4kOiBPYnNlcnZhYmxlPFQ+LCB0aW1lb3V0UGVyaW9kczogbnVtYmVyW10pOiBPYnNlcnZhYmxlPFQ+IHtcbiAgICAgICAgY29uc3QgdGltZU91dEFmdGVyU2Vjb25kcyA9IHRpbWVvdXRQZXJpb2RzWzBdO1xuICAgICAgICBjb25zdCBvdXQkID0gaW4kLnBpcGUodGltZW91dCh0aW1lT3V0QWZ0ZXJTZWNvbmRzICogMTAwMCkpO1xuICAgICAgICByZXR1cm4gb3V0JDtcbiAgICB9XG5cbiAgICBwcml2YXRlIHBpcGVSZXRyeU1lY2hhbmlzbU9uPFQ+KGluJDogT2JzZXJ2YWJsZTxUPik6IE9ic2VydmFibGU8VD4ge1xuICAgICAgICBjb25zdCByZXRyeVN0cmF0ZWd5ID0gKGVycm9ycykgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIGVycm9ycy5waXBlKFxuICAgICAgICAgICAgICAgIG1lcmdlTWFwKChlcnJvcjogRXJyb3IsIGkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcihgTWFwcGluZyBlcnJvciAke2Vycm9yPy5uYW1lfSwgJHtpfWApO1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKGVycm9yKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGVycm9yPy5uYW1lID09PSAnVGltZW91dEVycm9yJyAmJiBpID09PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnN3aXRjaE9mZkFydGlmaWNpYWxEZWxheXMoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUuaW5mbygnV2lsbCByZXRyeSwgYWZ0ZXIgYSB0aW1lb3V0IGVycm9yLicpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcignV2lsbCBOT1QgcmV0cnkuJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvd0Vycm9yKGVycm9yKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGltZXIoMCk7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgZmluYWxpemUoKCkgPT4gY29uc29sZS5sb2coJ1dlIGFyZSBkb25lIScpKSk7XG4gICAgICAgIH07XG4gICAgICAgIGNvbnN0IG91dCQgPSBpbiQucGlwZShyZXRyeVdoZW4ocmV0cnlTdHJhdGVneSkpO1xuICAgICAgICByZXR1cm4gb3V0JDtcbiAgICB9XG5cbiAgICBwcml2YXRlIHBpcGVBcnRpZmljaWFsRGVsYXlPbjxUPihpbiQ6IE9ic2VydmFibGU8VD4pOiBPYnNlcnZhYmxlPFQ+IHtcbiAgICAgICAgbGV0IG91dCQgPSBpbiQucGlwZSh0YXAoKCkgPT4ge1xuICAgICAgICAgICAgY29uc29sZS5sb2coYEFydGlmaWNpYWxseSBkZWxheWluZyBmb3IgJHt0aGlzLmdldEFydGlmaWNpYWxEZWxheVRpbWUoKX0gc2Vjb25kcy4uYCk7XG4gICAgICAgIH0pKTtcbiAgICAgICAgb3V0JCA9IG91dCQucGlwZShkZWxheVdoZW4oKCkgPT4gdGltZXIodGhpcy5nZXRBcnRpZmljaWFsRGVsYXlUaW1lKCkgKiAxMDAwKSkpO1xuICAgICAgICBvdXQkID0gb3V0JC5waXBlKHRhcCgoKSA9PiB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhgQXJ0aWZpY2lhbGx5IGRlbGF5ZWQgZm9yICR7dGhpcy5nZXRBcnRpZmljaWFsRGVsYXlUaW1lKCl9IHNlY29uZHMuLmApO1xuICAgICAgICB9KSk7XG4gICAgICAgIHJldHVybiBvdXQkO1xuICAgIH1cblxuXG59XG4iXX0=
|
|
@@ -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,75 @@ 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 = Math.random() > 0.5 ? 60 : 3;
|
|
6849
|
+
}
|
|
6850
|
+
switchArtificialDelays(status) {
|
|
6851
|
+
this.artificialDelayOn = status;
|
|
6852
|
+
this.artificialDelayPeriod = Math.random() > 0.5 ? 60 : 2;
|
|
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
|
+
}
|
|
6908
|
+
RetryUtil.ɵfac = function RetryUtil_Factory(t) { return new (t || RetryUtil)(); };
|
|
6909
|
+
RetryUtil.ɵprov = i0.ɵɵdefineInjectable({ token: RetryUtil, factory: RetryUtil.ɵfac });
|
|
6910
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RetryUtil, [{
|
|
6911
|
+
type: Injectable
|
|
6912
|
+
}], null, null); })();
|
|
6913
|
+
|
|
6845
6914
|
class WindowService {
|
|
6846
6915
|
locationAssign(url) {
|
|
6847
6916
|
window.location.assign(url);
|
|
@@ -7339,77 +7408,8 @@ WizardPageFieldToCaseFieldMapper.ɵprov = i0.ɵɵdefineInjectable({ token: Wizar
|
|
|
7339
7408
|
}]
|
|
7340
7409
|
}], null, null); })();
|
|
7341
7410
|
|
|
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
7411
|
class CasesService {
|
|
7412
|
-
constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, loadingService, sessionStorageService,
|
|
7412
|
+
constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, loadingService, sessionStorageService, retryUtil) {
|
|
7413
7413
|
this.http = http;
|
|
7414
7414
|
this.appConfig = appConfig;
|
|
7415
7415
|
this.orderService = orderService;
|
|
@@ -7417,7 +7417,7 @@ class CasesService {
|
|
|
7417
7417
|
this.wizardPageFieldToCaseFieldMapper = wizardPageFieldToCaseFieldMapper;
|
|
7418
7418
|
this.loadingService = loadingService;
|
|
7419
7419
|
this.sessionStorageService = sessionStorageService;
|
|
7420
|
-
this.
|
|
7420
|
+
this.retryUtil = retryUtil;
|
|
7421
7421
|
this.get = this.getCaseView;
|
|
7422
7422
|
}
|
|
7423
7423
|
static updateChallengedAccessRequestAttributes(httpClient, caseId, attributesToUpdate) {
|
|
@@ -7450,7 +7450,7 @@ class CasesService {
|
|
|
7450
7450
|
.set('Content-Type', 'application/json');
|
|
7451
7451
|
const loadingToken = this.loadingService.register();
|
|
7452
7452
|
let http$ = this.http.get(url, { headers, observe: 'body' });
|
|
7453
|
-
this.
|
|
7453
|
+
this.retryUtil.pipeTimeoutMechanismOn(http$, this.appConfig.getEnvironment(), this.appConfig.getCaseRetrievalTimeouts());
|
|
7454
7454
|
http$ = this.pipeErrorProcessor(http$);
|
|
7455
7455
|
http$ = http$.pipe(finalize(() => this.finalizeGetCaseViewWith(caseId, loadingToken)));
|
|
7456
7456
|
return http$;
|
|
@@ -7653,11 +7653,11 @@ CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE = 'application/vnd.uk.gov.hmcts.ccd
|
|
|
7653
7653
|
CasesService.V2_MEDIATYPE_CREATE_EVENT = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-event.v2+json;charset=UTF-8';
|
|
7654
7654
|
CasesService.V2_MEDIATYPE_CREATE_CASE = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-case.v2+json;charset=UTF-8';
|
|
7655
7655
|
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(
|
|
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(RetryUtil)); };
|
|
7657
7657
|
CasesService.ɵprov = i0.ɵɵdefineInjectable({ token: CasesService, factory: CasesService.ɵfac });
|
|
7658
7658
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasesService, [{
|
|
7659
7659
|
type: Injectable
|
|
7660
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: LoadingService }, { type: SessionStorageService }, { type:
|
|
7660
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: LoadingService }, { type: SessionStorageService }, { type: RetryUtil }]; }, null); })();
|
|
7661
7661
|
|
|
7662
7662
|
class EventTriggerService {
|
|
7663
7663
|
constructor() {
|
|
@@ -9691,6 +9691,10 @@ class CaseEditPageComponent {
|
|
|
9691
9691
|
this.handleError(error);
|
|
9692
9692
|
});
|
|
9693
9693
|
CaseEditPageComponent.scrollToTop();
|
|
9694
|
+
// Remove all JudicialUser FormControls with the ID suffix "_judicialUserControl" because these are not
|
|
9695
|
+
// intended to be present in the Case Event data (they are added only for value selection and validation
|
|
9696
|
+
// purposes)
|
|
9697
|
+
this.removeAllJudicialUserFormControls(this.currentPage, this.editForm);
|
|
9694
9698
|
}
|
|
9695
9699
|
CaseEditPageComponent.setFocusToTop();
|
|
9696
9700
|
}
|
|
@@ -9941,6 +9945,13 @@ class CaseEditPageComponent {
|
|
|
9941
9945
|
submit: this.caseEdit.submit,
|
|
9942
9946
|
});
|
|
9943
9947
|
}
|
|
9948
|
+
removeAllJudicialUserFormControls(page, editForm) {
|
|
9949
|
+
page.case_fields.forEach(caseField => {
|
|
9950
|
+
if (FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser'])) {
|
|
9951
|
+
editForm.controls['data'].removeControl(`${caseField.id}_judicialUserControl`);
|
|
9952
|
+
}
|
|
9953
|
+
});
|
|
9954
|
+
}
|
|
9944
9955
|
}
|
|
9945
9956
|
CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
9946
9957
|
CaseEditPageComponent.NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
|
|
@@ -32902,5 +32913,5 @@ class TestRouteSnapshotBuilder {
|
|
|
32902
32913
|
* Generated bundle index. Do not edit.
|
|
32903
32914
|
*/
|
|
32904
32915
|
|
|
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 };
|
|
32916
|
+
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
32917
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|