@hmcts/ccd-case-ui-toolkit 7.3.54-exui-4666-rc-2 → 7.3.54-exui-4666-rc-4
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 +347 -135
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +62 -3
- package/index.d.ts.map +1 -1
- package/package.json +43 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ContentChildren, ViewChildren,
|
|
2
|
+
import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ContentChildren, ViewChildren, Injectable, DOCUMENT, Inject, InjectionToken, Optional, ChangeDetectorRef, Directive, ViewChild, ChangeDetectionStrategy, Injector, ViewContainerRef, SecurityContext, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
3
|
import * as i5 from '@angular/common';
|
|
4
4
|
import { CommonModule, AsyncPipe, CurrencyPipe, formatDate } from '@angular/common';
|
|
5
5
|
import * as i1 from 'rpx-xui-translation';
|
|
@@ -8,11 +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, skip, of,
|
|
11
|
+
import { BehaviorSubject, throwError, Subject, EMPTY, concat, defer, timer, Observable, skip, of, forkJoin, fromEvent, Subscription, combineLatest } from 'rxjs';
|
|
12
|
+
import { distinctUntilChanged, catchError, map, switchMap, repeat, retry, publish, refCount, debounceTime, delay, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, takeUntil, filter } from 'rxjs/operators';
|
|
12
13
|
import * as i1$2 from '@angular/common/http';
|
|
13
14
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
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
|
-
import { polling } from 'rx-polling-hmcts';
|
|
16
15
|
import { Type, Exclude, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
|
|
17
16
|
import moment from 'moment';
|
|
18
17
|
import { __decorate, __metadata } from 'tslib';
|
|
@@ -1322,6 +1321,140 @@ class CaseEditorConfig {
|
|
|
1322
1321
|
enable_service_specific_multi_followups;
|
|
1323
1322
|
}
|
|
1324
1323
|
|
|
1324
|
+
class StructuredLoggerService {
|
|
1325
|
+
static CIRCULAR_VALUE = '[Circular]';
|
|
1326
|
+
static MAX_DEPTH_VALUE = '[MaxDepth]';
|
|
1327
|
+
static MAX_REDACTION_DEPTH = 10;
|
|
1328
|
+
static REDACTED_VALUE = '[REDACTED]';
|
|
1329
|
+
static KEY_VALUE_PATTERN = /\b([a-z][\w-]*(?:[ _-][a-z][\w-]*)?)([ \t]*[:=][ \t]*)((?:Bearer[ \t]+)?)([^,;&\s]+)/gi;
|
|
1330
|
+
static SENSITIVE_KEY_PATTERN = /(password|passcode|pwd|secret|token|authori[sz]ation|authentication|auth[-_ ]?context|^auth$|api[-_ ]?key|cookie|session|credential)/i;
|
|
1331
|
+
static BEARER_TOKEN_PATTERN = /\bBearer\s+([\w.~+/-]+=*)/gi;
|
|
1332
|
+
debug(message, context) {
|
|
1333
|
+
this.write('debug', message, context);
|
|
1334
|
+
}
|
|
1335
|
+
error(message, context) {
|
|
1336
|
+
this.write('error', message, context);
|
|
1337
|
+
}
|
|
1338
|
+
info(message, context) {
|
|
1339
|
+
this.write('info', message, context);
|
|
1340
|
+
}
|
|
1341
|
+
warn(message, context) {
|
|
1342
|
+
this.write('warn', message, context);
|
|
1343
|
+
}
|
|
1344
|
+
redact(value) {
|
|
1345
|
+
return this.redactValue(value, new WeakSet(), false, 0);
|
|
1346
|
+
}
|
|
1347
|
+
write(level, message, context) {
|
|
1348
|
+
const entry = {
|
|
1349
|
+
level,
|
|
1350
|
+
message,
|
|
1351
|
+
timestamp: new Date().toISOString()
|
|
1352
|
+
};
|
|
1353
|
+
if (context !== undefined) {
|
|
1354
|
+
entry.context = this.redact(context);
|
|
1355
|
+
}
|
|
1356
|
+
switch (level) {
|
|
1357
|
+
case 'error':
|
|
1358
|
+
console.error(entry);
|
|
1359
|
+
break;
|
|
1360
|
+
case 'warn':
|
|
1361
|
+
console.warn(entry);
|
|
1362
|
+
break;
|
|
1363
|
+
default:
|
|
1364
|
+
console.log(entry);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
redactValue(value, seen, redactCurrentValue, depth) {
|
|
1368
|
+
if (redactCurrentValue) {
|
|
1369
|
+
return StructuredLoggerService.REDACTED_VALUE;
|
|
1370
|
+
}
|
|
1371
|
+
if (value === null || value === undefined) {
|
|
1372
|
+
return value;
|
|
1373
|
+
}
|
|
1374
|
+
if (typeof value === 'string') {
|
|
1375
|
+
return this.redactSensitiveString(value);
|
|
1376
|
+
}
|
|
1377
|
+
if (typeof value !== 'object') {
|
|
1378
|
+
return value;
|
|
1379
|
+
}
|
|
1380
|
+
if (seen.has(value)) {
|
|
1381
|
+
return StructuredLoggerService.CIRCULAR_VALUE;
|
|
1382
|
+
}
|
|
1383
|
+
if (depth >= StructuredLoggerService.MAX_REDACTION_DEPTH) {
|
|
1384
|
+
return StructuredLoggerService.MAX_DEPTH_VALUE;
|
|
1385
|
+
}
|
|
1386
|
+
seen.add(value);
|
|
1387
|
+
let redactedValue;
|
|
1388
|
+
if (value instanceof Date) {
|
|
1389
|
+
redactedValue = value.toISOString();
|
|
1390
|
+
}
|
|
1391
|
+
else if (value instanceof Error) {
|
|
1392
|
+
redactedValue = this.redactError(value, seen, depth);
|
|
1393
|
+
}
|
|
1394
|
+
else if (Array.isArray(value)) {
|
|
1395
|
+
redactedValue = value.map(item => this.redactValue(item, seen, false, depth + 1));
|
|
1396
|
+
}
|
|
1397
|
+
else {
|
|
1398
|
+
redactedValue = this.redactObject(value, seen, depth);
|
|
1399
|
+
}
|
|
1400
|
+
seen.delete(value);
|
|
1401
|
+
return redactedValue;
|
|
1402
|
+
}
|
|
1403
|
+
redactError(error, seen, depth) {
|
|
1404
|
+
const redactedError = {
|
|
1405
|
+
name: this.redactValue(error.name, seen, false, depth + 1),
|
|
1406
|
+
message: this.redactValue(error.message, seen, false, depth + 1)
|
|
1407
|
+
};
|
|
1408
|
+
if (error.stack) {
|
|
1409
|
+
redactedError.stack = this.redactValue(error.stack, seen, false, depth + 1);
|
|
1410
|
+
}
|
|
1411
|
+
const errorContext = error;
|
|
1412
|
+
Object.keys(errorContext).forEach(key => {
|
|
1413
|
+
redactedError[key] = this.redactValue(errorContext[key], seen, this.isSensitiveKey(key), depth + 1);
|
|
1414
|
+
});
|
|
1415
|
+
return redactedError;
|
|
1416
|
+
}
|
|
1417
|
+
redactObject(value, seen, depth) {
|
|
1418
|
+
const redactedValue = {};
|
|
1419
|
+
const hasSensitiveNamedValue = this.hasSensitiveNamedValue(value);
|
|
1420
|
+
Object.keys(value).forEach(key => {
|
|
1421
|
+
redactedValue[key] = this.redactValue(value[key], seen, this.isSensitiveKey(key) || (hasSensitiveNamedValue && this.isValueKey(key)), depth + 1);
|
|
1422
|
+
});
|
|
1423
|
+
return redactedValue;
|
|
1424
|
+
}
|
|
1425
|
+
redactSensitiveString(value) {
|
|
1426
|
+
return value
|
|
1427
|
+
.replace(StructuredLoggerService.KEY_VALUE_PATTERN, (match, key, separator, bearerPrefix) => {
|
|
1428
|
+
return this.isSensitiveKey(key) ? `${key}${separator}${bearerPrefix}${StructuredLoggerService.REDACTED_VALUE}` : match;
|
|
1429
|
+
})
|
|
1430
|
+
.replace(StructuredLoggerService.BEARER_TOKEN_PATTERN, 'Bearer [REDACTED]');
|
|
1431
|
+
}
|
|
1432
|
+
hasSensitiveNamedValue(value) {
|
|
1433
|
+
return Object.keys(value)
|
|
1434
|
+
.some(key => {
|
|
1435
|
+
const namedValue = value[key];
|
|
1436
|
+
return this.isNameKey(key) && typeof namedValue === 'string' && this.isSensitiveKey(namedValue);
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
isNameKey(key) {
|
|
1440
|
+
return ['key', 'name'].includes(key.toLowerCase());
|
|
1441
|
+
}
|
|
1442
|
+
isSensitiveKey(key) {
|
|
1443
|
+
return StructuredLoggerService.SENSITIVE_KEY_PATTERN.test(key);
|
|
1444
|
+
}
|
|
1445
|
+
isValueKey(key) {
|
|
1446
|
+
return ['value', 'values'].includes(key.toLowerCase());
|
|
1447
|
+
}
|
|
1448
|
+
static ɵfac = function StructuredLoggerService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StructuredLoggerService)(); };
|
|
1449
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StructuredLoggerService, factory: StructuredLoggerService.ɵfac, providedIn: 'root' });
|
|
1450
|
+
}
|
|
1451
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StructuredLoggerService, [{
|
|
1452
|
+
type: Injectable,
|
|
1453
|
+
args: [{
|
|
1454
|
+
providedIn: 'root'
|
|
1455
|
+
}]
|
|
1456
|
+
}], null, null); })();
|
|
1457
|
+
|
|
1325
1458
|
class HttpError {
|
|
1326
1459
|
constructor() {
|
|
1327
1460
|
this.timestamp = new Date().toISOString();
|
|
@@ -1462,6 +1595,7 @@ class LoadingModule {
|
|
|
1462
1595
|
class HttpErrorService {
|
|
1463
1596
|
authService;
|
|
1464
1597
|
loadingService;
|
|
1598
|
+
static logger = new StructuredLoggerService();
|
|
1465
1599
|
constructor(authService, loadingService) {
|
|
1466
1600
|
this.authService = authService;
|
|
1467
1601
|
this.loadingService = loadingService;
|
|
@@ -1480,7 +1614,7 @@ class HttpErrorService {
|
|
|
1480
1614
|
httpError = HttpError.from(error);
|
|
1481
1615
|
}
|
|
1482
1616
|
catch (e) {
|
|
1483
|
-
|
|
1617
|
+
HttpErrorService.logger.error('Unable to convert HTTP error response.', { error: e });
|
|
1484
1618
|
}
|
|
1485
1619
|
}
|
|
1486
1620
|
if (!httpError.status) {
|
|
@@ -1506,8 +1640,6 @@ class HttpErrorService {
|
|
|
1506
1640
|
return error;
|
|
1507
1641
|
}
|
|
1508
1642
|
handle(error, redirectIfNotAuthorised = true) {
|
|
1509
|
-
console.error('Handling error in http error service.');
|
|
1510
|
-
console.error(error);
|
|
1511
1643
|
if (this.loadingService.hasSharedSpinner()) {
|
|
1512
1644
|
this.loadingService.unregisterSharedSpinner();
|
|
1513
1645
|
}
|
|
@@ -1647,6 +1779,7 @@ class SessionStorageService {
|
|
|
1647
1779
|
}]
|
|
1648
1780
|
}], null, null); })();
|
|
1649
1781
|
|
|
1782
|
+
const logger = new StructuredLoggerService();
|
|
1650
1783
|
function safeJsonParse(value, fallback = null) {
|
|
1651
1784
|
if (!value) {
|
|
1652
1785
|
return fallback;
|
|
@@ -1656,8 +1789,7 @@ function safeJsonParse(value, fallback = null) {
|
|
|
1656
1789
|
}
|
|
1657
1790
|
catch (error) {
|
|
1658
1791
|
// Log for diagnostics, then return fallback to avoid UI crashes.
|
|
1659
|
-
|
|
1660
|
-
console.error('safeJsonParse failed to parse JSON', error);
|
|
1792
|
+
logger.error('safeJsonParse failed to parse JSON.', { error });
|
|
1661
1793
|
return fallback;
|
|
1662
1794
|
}
|
|
1663
1795
|
}
|
|
@@ -1669,6 +1801,7 @@ class SessionStorageGuard {
|
|
|
1669
1801
|
router;
|
|
1670
1802
|
errorRoute;
|
|
1671
1803
|
errorLogger;
|
|
1804
|
+
logger = new StructuredLoggerService();
|
|
1672
1805
|
constructor(sessionStorageService, router, errorRoute, errorLogger) {
|
|
1673
1806
|
this.sessionStorageService = sessionStorageService;
|
|
1674
1807
|
this.router = router;
|
|
@@ -1689,8 +1822,7 @@ class SessionStorageGuard {
|
|
|
1689
1822
|
this.errorLogger(error);
|
|
1690
1823
|
}
|
|
1691
1824
|
else {
|
|
1692
|
-
|
|
1693
|
-
console.error('Invalid userDetails in session storage', error);
|
|
1825
|
+
this.logger.error('Invalid userDetails in session storage.', { error });
|
|
1694
1826
|
}
|
|
1695
1827
|
this.router.navigate([this.errorRoute || '/session-error']);
|
|
1696
1828
|
return false;
|
|
@@ -1741,6 +1873,7 @@ class ActivityService {
|
|
|
1741
1873
|
sessionStorageService;
|
|
1742
1874
|
static get ACTIVITY_VIEW() { return 'view'; }
|
|
1743
1875
|
static get ACTIVITY_EDIT() { return 'edit'; }
|
|
1876
|
+
logger = new StructuredLoggerService();
|
|
1744
1877
|
constructor(http, appConfig, sessionStorageService) {
|
|
1745
1878
|
this.http = http;
|
|
1746
1879
|
this.appConfig = appConfig;
|
|
@@ -1779,7 +1912,7 @@ class ActivityService {
|
|
|
1779
1912
|
.pipe(map(response => response));
|
|
1780
1913
|
}
|
|
1781
1914
|
catch (error) {
|
|
1782
|
-
|
|
1915
|
+
this.logUserMayNotBeAuthenticated(error);
|
|
1783
1916
|
}
|
|
1784
1917
|
}
|
|
1785
1918
|
postActivity(caseId, activity) {
|
|
@@ -1792,7 +1925,7 @@ class ActivityService {
|
|
|
1792
1925
|
.pipe(map(response => response));
|
|
1793
1926
|
}
|
|
1794
1927
|
catch (error) {
|
|
1795
|
-
|
|
1928
|
+
this.logUserMayNotBeAuthenticated(error);
|
|
1796
1929
|
}
|
|
1797
1930
|
}
|
|
1798
1931
|
verifyUserIsAuthorized() {
|
|
@@ -1805,6 +1938,9 @@ class ActivityService {
|
|
|
1805
1938
|
activityUrl() {
|
|
1806
1939
|
return this.appConfig.getActivityUrl();
|
|
1807
1940
|
}
|
|
1941
|
+
logUserMayNotBeAuthenticated(error) {
|
|
1942
|
+
this.logger.error('User may not be authenticated. Activity request was not sent.', { error });
|
|
1943
|
+
}
|
|
1808
1944
|
static ɵfac = function ActivityService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ActivityService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(SessionStorageService)); };
|
|
1809
1945
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityService, factory: ActivityService.ɵfac });
|
|
1810
1946
|
}
|
|
@@ -1817,6 +1953,7 @@ class ActivityPollingService {
|
|
|
1817
1953
|
activityService;
|
|
1818
1954
|
ngZone;
|
|
1819
1955
|
config;
|
|
1956
|
+
logger = new StructuredLoggerService();
|
|
1820
1957
|
pendingRequests = new Map();
|
|
1821
1958
|
currentTimeoutHandle;
|
|
1822
1959
|
pollActivitiesSubscription;
|
|
@@ -1829,8 +1966,7 @@ class ActivityPollingService {
|
|
|
1829
1966
|
this.config = config;
|
|
1830
1967
|
this.pollConfig = {
|
|
1831
1968
|
interval: config.getActivityNexPollRequestMs(),
|
|
1832
|
-
attempts: config.getActivityRetry()
|
|
1833
|
-
backgroundPolling: true
|
|
1969
|
+
attempts: config.getActivityRetry()
|
|
1834
1970
|
};
|
|
1835
1971
|
this.batchCollectionDelayMs = config.getActivityBatchCollectionDelayMs();
|
|
1836
1972
|
this.maxRequestsPerBatch = config.getActivityMaxRequestPerBatch();
|
|
@@ -1847,20 +1983,20 @@ class ActivityPollingService {
|
|
|
1847
1983
|
subject.subscribe(done);
|
|
1848
1984
|
}
|
|
1849
1985
|
else {
|
|
1986
|
+
// Only the first pending request should start the batch collection timer.
|
|
1987
|
+
const wasEmpty = this.pendingRequests.size === 0;
|
|
1850
1988
|
subject = new Subject();
|
|
1851
1989
|
subject.subscribe(done);
|
|
1852
|
-
this.
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
});
|
|
1990
|
+
this.addPendingRequest(caseId, subject);
|
|
1991
|
+
if (wasEmpty) {
|
|
1992
|
+
this.ngZone.runOutsideAngular(() => {
|
|
1993
|
+
this.currentTimeoutHandle = setTimeout(() => this.ngZone.run(() => {
|
|
1994
|
+
this.flushRequests();
|
|
1995
|
+
}), this.batchCollectionDelayMs);
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1861
1998
|
}
|
|
1862
1999
|
if (this.pendingRequests.size >= this.maxRequestsPerBatch) {
|
|
1863
|
-
// console.log('max pending hit: flushing requests');
|
|
1864
2000
|
this.flushRequests();
|
|
1865
2001
|
}
|
|
1866
2002
|
return subject;
|
|
@@ -1875,6 +2011,9 @@ class ActivityPollingService {
|
|
|
1875
2011
|
clearTimeout(this.currentTimeoutHandle);
|
|
1876
2012
|
this.currentTimeoutHandle = undefined;
|
|
1877
2013
|
}
|
|
2014
|
+
if (!this.pendingRequests.size) {
|
|
2015
|
+
return;
|
|
2016
|
+
}
|
|
1878
2017
|
const requests = new Map(this.pendingRequests);
|
|
1879
2018
|
this.pendingRequests.clear();
|
|
1880
2019
|
this.performBatchRequest(requests);
|
|
@@ -1883,7 +2022,7 @@ class ActivityPollingService {
|
|
|
1883
2022
|
if (!this.isEnabled) {
|
|
1884
2023
|
return EMPTY;
|
|
1885
2024
|
}
|
|
1886
|
-
return polling(this.activityService.getActivities(...caseIds), this.pollConfig);
|
|
2025
|
+
return this.polling(this.activityService.getActivities(...caseIds), this.pollConfig);
|
|
1887
2026
|
}
|
|
1888
2027
|
postViewActivity(caseId) {
|
|
1889
2028
|
return this.postActivity(caseId, ActivityService.ACTIVITY_VIEW);
|
|
@@ -1893,20 +2032,21 @@ class ActivityPollingService {
|
|
|
1893
2032
|
}
|
|
1894
2033
|
performBatchRequest(requests) {
|
|
1895
2034
|
const caseIds = Array.from(requests.keys()).join();
|
|
1896
|
-
// console.log('issuing batch request for cases: ' + caseIds);
|
|
1897
2035
|
this.ngZone.runOutsideAngular(() => {
|
|
1898
2036
|
// run polling outside angular zone so it does not trigger change detection
|
|
1899
|
-
this.pollActivitiesSubscription = this.pollActivities(caseIds).subscribe(
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
2037
|
+
this.pollActivitiesSubscription = this.pollActivities(caseIds).subscribe({
|
|
2038
|
+
// process activity inside zone so it triggers change detection for activity.component.ts
|
|
2039
|
+
next: (activities) => this.ngZone.run(() => {
|
|
2040
|
+
activities.forEach((activity) => {
|
|
2041
|
+
// Ignore activities returned for cases outside this local batch.
|
|
2042
|
+
requests.get(activity.caseId)?.next(activity);
|
|
2043
|
+
});
|
|
2044
|
+
}),
|
|
2045
|
+
error: (err) => this.ngZone.run(() => {
|
|
2046
|
+
this.logger.error('Error while polling activities.', { error: err });
|
|
2047
|
+
Array.from(requests.values()).forEach((subject) => subject.error(err));
|
|
2048
|
+
})
|
|
2049
|
+
});
|
|
1910
2050
|
});
|
|
1911
2051
|
}
|
|
1912
2052
|
postActivity(caseId, activityType) {
|
|
@@ -1917,7 +2057,42 @@ class ActivityPollingService {
|
|
|
1917
2057
|
...this.pollConfig,
|
|
1918
2058
|
interval: 5000 // inline with CCD Backend
|
|
1919
2059
|
};
|
|
1920
|
-
return polling(this.activityService.postActivity(caseId, activityType), pollingConfig);
|
|
2060
|
+
return this.polling(this.activityService.postActivity(caseId, activityType), pollingConfig);
|
|
2061
|
+
}
|
|
2062
|
+
addPendingRequest(caseId, subject) {
|
|
2063
|
+
this.pendingRequests.set(caseId, subject);
|
|
2064
|
+
// Components complete their returned Subject on destroy; remove it so a later same-case subscription gets a fresh Subject.
|
|
2065
|
+
subject.subscribe({
|
|
2066
|
+
complete: () => this.removePendingRequest(caseId, subject),
|
|
2067
|
+
error: () => this.removePendingRequest(caseId, subject)
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
removePendingRequest(caseId, subject) {
|
|
2071
|
+
if (this.pendingRequests.get(caseId) !== subject) {
|
|
2072
|
+
return;
|
|
2073
|
+
}
|
|
2074
|
+
this.pendingRequests.delete(caseId);
|
|
2075
|
+
if (!this.pendingRequests.size && this.currentTimeoutHandle) {
|
|
2076
|
+
clearTimeout(this.currentTimeoutHandle);
|
|
2077
|
+
this.currentTimeoutHandle = undefined;
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
polling(request$, options) {
|
|
2081
|
+
const pollingOptions = {
|
|
2082
|
+
interval: options.interval,
|
|
2083
|
+
attempts: options.attempts ?? 9,
|
|
2084
|
+
exponentialUnit: options.exponentialUnit ?? 1000
|
|
2085
|
+
};
|
|
2086
|
+
return concat(request$, defer(() => timer(pollingOptions.interval).pipe(switchMap(() => request$))).pipe(repeat())).pipe(
|
|
2087
|
+
// Preserve consecutive-failure retry behaviour using the current RxJS retry config.
|
|
2088
|
+
retry({
|
|
2089
|
+
count: pollingOptions.attempts,
|
|
2090
|
+
delay: (_error, retryCount) => timer(this.getExponentialRetryDelay(retryCount, pollingOptions.exponentialUnit)),
|
|
2091
|
+
resetOnSuccess: true
|
|
2092
|
+
}));
|
|
2093
|
+
}
|
|
2094
|
+
getExponentialRetryDelay(consecutiveErrorsCount, exponentialUnit) {
|
|
2095
|
+
return Math.pow(2, consecutiveErrorsCount - 1) * exponentialUnit;
|
|
1921
2096
|
}
|
|
1922
2097
|
static ɵfac = function ActivityPollingService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ActivityPollingService)(i0.ɵɵinject(ActivityService), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(AbstractAppConfig)); };
|
|
1923
2098
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityPollingService, factory: ActivityPollingService.ɵfac });
|
|
@@ -3369,6 +3544,7 @@ __decorate([
|
|
|
3369
3544
|
|
|
3370
3545
|
// @dynamic
|
|
3371
3546
|
class CaseField {
|
|
3547
|
+
static logger = new StructuredLoggerService();
|
|
3372
3548
|
id;
|
|
3373
3549
|
hidden;
|
|
3374
3550
|
hiddenCannotChange;
|
|
@@ -3511,7 +3687,7 @@ class CaseField {
|
|
|
3511
3687
|
}
|
|
3512
3688
|
}
|
|
3513
3689
|
else {
|
|
3514
|
-
|
|
3690
|
+
CaseField.logger.error('Path too long, possible circular reference in case field hierarchy.');
|
|
3515
3691
|
return this.id;
|
|
3516
3692
|
}
|
|
3517
3693
|
}
|
|
@@ -3994,6 +4170,7 @@ class WorkbasketInput {
|
|
|
3994
4170
|
|
|
3995
4171
|
// @dynamic
|
|
3996
4172
|
class FieldsUtils {
|
|
4173
|
+
static logger = new StructuredLoggerService();
|
|
3997
4174
|
static caseLevelCaseFlagsFieldId = 'caseFlags';
|
|
3998
4175
|
static currencyPipe = new CurrencyPipe('en-GB');
|
|
3999
4176
|
static datePipe = new DatePipe(new FormatTranslatorService());
|
|
@@ -4281,7 +4458,7 @@ class FieldsUtils {
|
|
|
4281
4458
|
}
|
|
4282
4459
|
}
|
|
4283
4460
|
catch (error) {
|
|
4284
|
-
|
|
4461
|
+
FieldsUtils.logger.error('Error setting dynamic list definition.', { error });
|
|
4285
4462
|
}
|
|
4286
4463
|
});
|
|
4287
4464
|
}
|
|
@@ -4722,6 +4899,7 @@ const conditionSource = `{
|
|
|
4722
4899
|
var peg = generate(conditionSource);
|
|
4723
4900
|
|
|
4724
4901
|
class ConditionParser {
|
|
4902
|
+
static logger = new StructuredLoggerService();
|
|
4725
4903
|
/**
|
|
4726
4904
|
* Parse the raw formula and output structured condition data
|
|
4727
4905
|
* that can be used in evaluating show/hide logic
|
|
@@ -4898,14 +5076,14 @@ class ConditionParser {
|
|
|
4898
5076
|
return (fields[head][arrayIndex] !== undefined) ? this.findValueForComplexCondition(fields[head][arrayIndex]['value'], tail[0], tail.slice(1), dropNumberPath.join('_')) : null;
|
|
4899
5077
|
}
|
|
4900
5078
|
catch (e) {
|
|
4901
|
-
|
|
5079
|
+
this.logger.error('Error while parsing form array path index.', { error: e, pathIndex: pathTail[0] });
|
|
4902
5080
|
}
|
|
4903
5081
|
}
|
|
4904
5082
|
}
|
|
4905
5083
|
else {
|
|
4906
5084
|
// EXUI-2460 - if path present then show error, otherwise log message to stop unnecessary console errors
|
|
4907
|
-
path ?
|
|
4908
|
-
|
|
5085
|
+
path ? this.logger.error('Path in formArray should start with the expected field.', { expectedHead: head, path }) :
|
|
5086
|
+
this.logger.info('Path not present in formArray.');
|
|
4909
5087
|
}
|
|
4910
5088
|
}
|
|
4911
5089
|
static removeStarChar(str) {
|
|
@@ -8122,13 +8300,17 @@ class ArtificialDelayContext {
|
|
|
8122
8300
|
}
|
|
8123
8301
|
}
|
|
8124
8302
|
class RetryUtil {
|
|
8303
|
+
logger = new StructuredLoggerService();
|
|
8125
8304
|
pipeTimeoutMechanismOn(in$, preferredArtificialDelay, timeoutPeriods) {
|
|
8126
8305
|
const artificialDelayContext = new ArtificialDelayContext(preferredArtificialDelay);
|
|
8127
|
-
|
|
8128
|
-
|
|
8306
|
+
this.logger.info('Piping a retry mechanism with timeouts.', { timeoutPeriods });
|
|
8307
|
+
this.logger.info('Artificial delay setting resolved.', { artificialDelayApplied: artificialDelayContext.shouldApplyArtificialDelay() });
|
|
8129
8308
|
let out$ = in$;
|
|
8130
8309
|
if (artificialDelayContext.shouldApplyArtificialDelay()) {
|
|
8131
|
-
|
|
8310
|
+
this.logger.info('Preferred artificial delay selected.', {
|
|
8311
|
+
actualDelaySeconds: artificialDelayContext.getActualDelay(),
|
|
8312
|
+
preferredDelaySeconds: preferredArtificialDelay
|
|
8313
|
+
});
|
|
8132
8314
|
out$ = this.pipeArtificialDelayOn(out$, artificialDelayContext);
|
|
8133
8315
|
}
|
|
8134
8316
|
out$ = this.pipeTimeOutControlOn(out$, timeoutPeriods);
|
|
@@ -8137,36 +8319,35 @@ class RetryUtil {
|
|
|
8137
8319
|
}
|
|
8138
8320
|
pipeTimeOutControlOn(in$, timeoutPeriods) {
|
|
8139
8321
|
const timeOutAfterSeconds = timeoutPeriods[0];
|
|
8140
|
-
|
|
8322
|
+
this.logger.info('Piping timeout control.', { timeoutSeconds: timeOutAfterSeconds });
|
|
8141
8323
|
const out$ = in$.pipe(timeout(timeOutAfterSeconds * 1000));
|
|
8142
8324
|
return out$;
|
|
8143
8325
|
}
|
|
8144
8326
|
pipeRetryMechanismOn(in$, artificialDelayContext) {
|
|
8145
8327
|
const retryStrategy = (errors) => {
|
|
8146
8328
|
return errors.pipe(mergeMap((error, i) => {
|
|
8147
|
-
|
|
8148
|
-
console.error(error);
|
|
8329
|
+
this.logger.error('Mapping retry error.', { error, errorName: error?.name, attempt: i });
|
|
8149
8330
|
if (error?.name === 'TimeoutError' && i === 0) {
|
|
8150
8331
|
artificialDelayContext.turnOffArtificialDelays();
|
|
8151
|
-
|
|
8332
|
+
this.logger.info('Will retry after a timeout error.');
|
|
8152
8333
|
}
|
|
8153
8334
|
else {
|
|
8154
|
-
|
|
8335
|
+
this.logger.error('Will not retry request after error.', { error, errorName: error?.name, attempt: i });
|
|
8155
8336
|
throw error;
|
|
8156
8337
|
}
|
|
8157
8338
|
return timer(0);
|
|
8158
|
-
}), finalize(() =>
|
|
8339
|
+
}), finalize(() => undefined));
|
|
8159
8340
|
};
|
|
8160
8341
|
const out$ = in$.pipe(retryWhen(retryStrategy));
|
|
8161
8342
|
return out$;
|
|
8162
8343
|
}
|
|
8163
8344
|
pipeArtificialDelayOn(in$, artificialDelayContext) {
|
|
8164
8345
|
let out$ = in$.pipe(tap(() => {
|
|
8165
|
-
|
|
8346
|
+
this.logger.info('Artificial delay started.', { delaySeconds: artificialDelayContext.getActualDelay() });
|
|
8166
8347
|
}));
|
|
8167
8348
|
out$ = out$.pipe(delayWhen(() => timer(artificialDelayContext.getActualDelay() * 1000)));
|
|
8168
8349
|
out$ = out$.pipe(tap(() => {
|
|
8169
|
-
|
|
8350
|
+
this.logger.info('Artificial delay completed.', { delaySeconds: artificialDelayContext.getActualDelay() });
|
|
8170
8351
|
}));
|
|
8171
8352
|
return out$;
|
|
8172
8353
|
}
|
|
@@ -8379,6 +8560,7 @@ class SearchResultViewItemComparatorFactory {
|
|
|
8379
8560
|
class OrganisationService {
|
|
8380
8561
|
http;
|
|
8381
8562
|
appconfig;
|
|
8563
|
+
logger = new StructuredLoggerService();
|
|
8382
8564
|
constructor(http, appconfig) {
|
|
8383
8565
|
this.http = http;
|
|
8384
8566
|
this.appconfig = appconfig;
|
|
@@ -8411,7 +8593,7 @@ class OrganisationService {
|
|
|
8411
8593
|
const cacheTimeOut = this.appconfig.getCacheTimeOut();
|
|
8412
8594
|
this.organisations$ = this.http.get(url)
|
|
8413
8595
|
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1, cacheTimeOut), refCount(), take(1), catchError(e => {
|
|
8414
|
-
|
|
8596
|
+
this.logger.error('Error while retrieving active organisations.', { error: e });
|
|
8415
8597
|
// Handle error and return blank Observable array
|
|
8416
8598
|
return of([]);
|
|
8417
8599
|
}));
|
|
@@ -8874,9 +9056,14 @@ class CaseEditWizardGuard {
|
|
|
8874
9056
|
}
|
|
8875
9057
|
goToFirst(wizard, canShowPredicate, route) {
|
|
8876
9058
|
const firstPage = wizard.firstPage(canShowPredicate);
|
|
8877
|
-
//
|
|
8878
|
-
//
|
|
8879
|
-
return this.router.navigate([...this.parentUrlSegments(route), firstPage ? firstPage.id : 'submit'], {
|
|
9059
|
+
// This route transition is an internal wizard redirect used to append the first page id to the URL.
|
|
9060
|
+
// Mark it in navigation state so EventStartGuard can skip duplicate work allocation checks.
|
|
9061
|
+
return this.router.navigate([...this.parentUrlSegments(route), firstPage ? firstPage.id : 'submit'], {
|
|
9062
|
+
queryParams: route.queryParams,
|
|
9063
|
+
state: {
|
|
9064
|
+
[EVENT_START_FIRST_PAGE_REDIRECT]: true
|
|
9065
|
+
}
|
|
9066
|
+
});
|
|
8880
9067
|
}
|
|
8881
9068
|
goToSubmit(route) {
|
|
8882
9069
|
return this.router.navigate([...this.parentUrlSegments(route), 'submit'], { queryParams: route.queryParams });
|
|
@@ -9146,7 +9333,6 @@ class EventCompletionStateMachineService {
|
|
|
9146
9333
|
}
|
|
9147
9334
|
entryActionForStateFinal(state, context) {
|
|
9148
9335
|
// Final actions can be performed here, the state machine finished running
|
|
9149
|
-
console.log('FINAL');
|
|
9150
9336
|
}
|
|
9151
9337
|
addTransitionsForStateCheckTasksCanBeCompleted() {
|
|
9152
9338
|
// Complete event and task
|
|
@@ -9298,7 +9484,6 @@ class WorkAllocationService {
|
|
|
9298
9484
|
// explicitly eat away 401 error and 400 error
|
|
9299
9485
|
if (error && error.status && (error.status === 401 || error.status === 400)) {
|
|
9300
9486
|
// do nothing
|
|
9301
|
-
console.log('error status 401 or 400', error);
|
|
9302
9487
|
}
|
|
9303
9488
|
else {
|
|
9304
9489
|
return throwError(error);
|
|
@@ -10099,6 +10284,7 @@ class CaseEditComponent {
|
|
|
10099
10284
|
}] }); })();
|
|
10100
10285
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditComponent, { className: "CaseEditComponent", filePath: "lib/shared/components/case-editor/case-edit/case-edit.component.ts", lineNumber: 39 }); })();
|
|
10101
10286
|
|
|
10287
|
+
const EVENT_START_FIRST_PAGE_REDIRECT = 'eventStartFirstPageRedirect';
|
|
10102
10288
|
function convertNonASCIICharacter(character) {
|
|
10103
10289
|
if (character === '£') {
|
|
10104
10290
|
// pound sign will be frequently used and works for btoa despite being non-ASCII
|
|
@@ -10154,6 +10340,7 @@ class CasesService {
|
|
|
10154
10340
|
loadingService;
|
|
10155
10341
|
sessionStorageService;
|
|
10156
10342
|
retryUtil;
|
|
10343
|
+
logger = new StructuredLoggerService();
|
|
10157
10344
|
// Internal (UI) API
|
|
10158
10345
|
static V2_MEDIATYPE_CASE_VIEW = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-case-view.v2+json';
|
|
10159
10346
|
static V2_MEDIATYPE_START_CASE_TRIGGER = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-start-case-trigger.v2+json;charset=UTF-8';
|
|
@@ -10208,12 +10395,11 @@ class CasesService {
|
|
|
10208
10395
|
let http$ = this.http.get(url, { headers, observe: 'body' });
|
|
10209
10396
|
const artificialDelay = this.appConfig.getTimeoutsCaseRetrievalArtificialDelay();
|
|
10210
10397
|
const timeoutPeriods = this.appConfig.getTimeoutsForCaseRetrieval();
|
|
10211
|
-
console.log(`Timeout periods: ${timeoutPeriods} seconds.`);
|
|
10212
10398
|
if (timeoutPeriods && timeoutPeriods.length > 0 && timeoutPeriods[0] > 0) {
|
|
10213
10399
|
http$ = this.retryUtil.pipeTimeoutMechanismOn(http$, artificialDelay, timeoutPeriods);
|
|
10214
10400
|
}
|
|
10215
10401
|
else {
|
|
10216
|
-
|
|
10402
|
+
this.logger.warn('Skipping retry mechanism for case view retrieval.');
|
|
10217
10403
|
}
|
|
10218
10404
|
http$ = this.pipeErrorProcessor(http$);
|
|
10219
10405
|
http$ = http$.pipe(finalize(() => this.finalizeGetCaseViewWith(caseId, loadingToken)));
|
|
@@ -10221,8 +10407,11 @@ class CasesService {
|
|
|
10221
10407
|
}
|
|
10222
10408
|
pipeErrorProcessor(in$) {
|
|
10223
10409
|
const out$ = in$.pipe(catchError(error => {
|
|
10224
|
-
|
|
10225
|
-
|
|
10410
|
+
this.logger.error('Error while getting case view with getCaseViewV2.', {
|
|
10411
|
+
error,
|
|
10412
|
+
errorName: error?.name,
|
|
10413
|
+
errorType: typeof error
|
|
10414
|
+
});
|
|
10226
10415
|
this.errorService.setError(error);
|
|
10227
10416
|
return throwError(error);
|
|
10228
10417
|
}));
|
|
@@ -11334,6 +11523,7 @@ class CaseEditPageComponent {
|
|
|
11334
11523
|
dialogRefAfterClosedSub;
|
|
11335
11524
|
saveDraftSub;
|
|
11336
11525
|
caseFormValidationErrorsSub;
|
|
11526
|
+
logger = new StructuredLoggerService();
|
|
11337
11527
|
static scrollToTop() {
|
|
11338
11528
|
window.scrollTo(0, 0);
|
|
11339
11529
|
}
|
|
@@ -11396,6 +11586,7 @@ class CaseEditPageComponent {
|
|
|
11396
11586
|
}
|
|
11397
11587
|
ngOnInit() {
|
|
11398
11588
|
initDialog();
|
|
11589
|
+
this.clearValidationErrors();
|
|
11399
11590
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
11400
11591
|
this.editForm = this.caseEdit.form;
|
|
11401
11592
|
this.wizard = this.caseEdit.wizard;
|
|
@@ -11451,6 +11642,7 @@ class CaseEditPageComponent {
|
|
|
11451
11642
|
this.dialogRefAfterClosedSub?.unsubscribe();
|
|
11452
11643
|
this.saveDraftSub?.unsubscribe();
|
|
11453
11644
|
this.caseFormValidationErrorsSub?.unsubscribe();
|
|
11645
|
+
this.clearValidationErrors();
|
|
11454
11646
|
this.multipageComponentStateService.reset();
|
|
11455
11647
|
}
|
|
11456
11648
|
applyValuesChanged(valuesChanged) {
|
|
@@ -11474,7 +11666,7 @@ class CaseEditPageComponent {
|
|
|
11474
11666
|
* EUI-3732 - Breathing space data not persisted on Previous button click with ExpUI Demo
|
|
11475
11667
|
*/
|
|
11476
11668
|
toPreviousPage() {
|
|
11477
|
-
this.
|
|
11669
|
+
this.clearValidationErrors();
|
|
11478
11670
|
const caseEventData = this.buildCaseEventData(true);
|
|
11479
11671
|
caseEventData.data = caseEventData.event_data;
|
|
11480
11672
|
this.updateFormData(caseEventData);
|
|
@@ -11485,7 +11677,7 @@ class CaseEditPageComponent {
|
|
|
11485
11677
|
CaseEditPageComponent.setFocusToTop();
|
|
11486
11678
|
}
|
|
11487
11679
|
// Adding validation message to show it as Error Summary
|
|
11488
|
-
generateErrorMessage(fields, container, path) {
|
|
11680
|
+
generateErrorMessage(fields, container, path, sourceFromComplexField) {
|
|
11489
11681
|
const group = container || this.editForm.controls['data'];
|
|
11490
11682
|
let validErrorFieldFound = false;
|
|
11491
11683
|
let validationErrorAmount = this.validationErrors.length;
|
|
@@ -11502,7 +11694,7 @@ class CaseEditPageComponent {
|
|
|
11502
11694
|
if (fieldElement) {
|
|
11503
11695
|
const label = casefield.label || 'Field';
|
|
11504
11696
|
let id = casefield.id;
|
|
11505
|
-
if (fieldElement['component'] && fieldElement['component'].parent) {
|
|
11697
|
+
if (fieldElement['component'] && (fieldElement['component'].parent || sourceFromComplexField)) {
|
|
11506
11698
|
if (fieldElement['component'].idPrefix.indexOf(`_${id}_`) === -1) {
|
|
11507
11699
|
id = `${fieldElement['component'].idPrefix}${id}`;
|
|
11508
11700
|
}
|
|
@@ -11514,7 +11706,7 @@ class CaseEditPageComponent {
|
|
|
11514
11706
|
if (casefield.id === 'AddressLine1') {
|
|
11515
11707
|
// EUI-1067 - Display more relevant error message to user and correctly navigate to the field
|
|
11516
11708
|
this.addressService.setMandatoryError(true);
|
|
11517
|
-
this.caseEditDataService.addFormValidationError({ id
|
|
11709
|
+
this.caseEditDataService.addFormValidationError({ id, message: `An address is required` });
|
|
11518
11710
|
}
|
|
11519
11711
|
else {
|
|
11520
11712
|
this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% is required`, label });
|
|
@@ -11540,7 +11732,7 @@ class CaseEditPageComponent {
|
|
|
11540
11732
|
}
|
|
11541
11733
|
else if (fieldElement.invalid) {
|
|
11542
11734
|
if (casefield.isComplex()) {
|
|
11543
|
-
errorPresent = this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id);
|
|
11735
|
+
errorPresent = this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id, true);
|
|
11544
11736
|
}
|
|
11545
11737
|
else if (casefield.isCollection() && casefield.field_type.collection_field_type.type === 'Complex') {
|
|
11546
11738
|
const fieldArray = fieldElement;
|
|
@@ -11647,7 +11839,7 @@ class CaseEditPageComponent {
|
|
|
11647
11839
|
this.editForm.controls['data'].removeControl('caseLinksFlag');
|
|
11648
11840
|
}
|
|
11649
11841
|
}
|
|
11650
|
-
this.
|
|
11842
|
+
this.clearValidationErrors();
|
|
11651
11843
|
this.checkForStagesCompleted();
|
|
11652
11844
|
if (this.currentPageIsNotValid()) {
|
|
11653
11845
|
// The generateErrorMessage method filters out the hidden fields.
|
|
@@ -11663,7 +11855,6 @@ class CaseEditPageComponent {
|
|
|
11663
11855
|
}
|
|
11664
11856
|
if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
|
|
11665
11857
|
this.addressService.setMandatoryError(false);
|
|
11666
|
-
console.log('Case Edit Error', this.caseEdit.error);
|
|
11667
11858
|
if (this.caseEdit.validPageList.findIndex(page => page.id === this.currentPage.id) === -1) {
|
|
11668
11859
|
this.caseEdit.validPageList.push(this.currentPage);
|
|
11669
11860
|
}
|
|
@@ -11811,7 +12002,7 @@ class CaseEditPageComponent {
|
|
|
11811
12002
|
else {
|
|
11812
12003
|
this.caseEdit.cancelled.emit();
|
|
11813
12004
|
}
|
|
11814
|
-
this.
|
|
12005
|
+
this.clearValidationErrors();
|
|
11815
12006
|
this.multipageComponentStateService.reset();
|
|
11816
12007
|
}
|
|
11817
12008
|
resetLinkedCaseJourney() {
|
|
@@ -11876,9 +12067,10 @@ class CaseEditPageComponent {
|
|
|
11876
12067
|
this.formErrorService
|
|
11877
12068
|
.mapFieldErrors(this.caseEdit.error.details.field_errors, this.editForm?.controls?.['data'], 'validation');
|
|
11878
12069
|
}
|
|
11879
|
-
|
|
12070
|
+
this.logger.error('Case edit page handled an error.', { error });
|
|
11880
12071
|
}
|
|
11881
12072
|
resetErrors() {
|
|
12073
|
+
this.clearValidationErrors();
|
|
11882
12074
|
this.caseEdit.error = null;
|
|
11883
12075
|
this.caseEdit.ignoreWarning = false;
|
|
11884
12076
|
this.triggerText = this.getTriggerText();
|
|
@@ -11886,6 +12078,10 @@ class CaseEditPageComponent {
|
|
|
11886
12078
|
this.caseEdit.callbackErrorsSubject.next(null);
|
|
11887
12079
|
}
|
|
11888
12080
|
}
|
|
12081
|
+
clearValidationErrors() {
|
|
12082
|
+
this.validationErrors = [];
|
|
12083
|
+
this.caseEditDataService?.clearFormValidationErrors?.();
|
|
12084
|
+
}
|
|
11889
12085
|
saveDraft() {
|
|
11890
12086
|
if (this.eventTrigger.can_save_draft) {
|
|
11891
12087
|
const draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
|
|
@@ -12978,6 +13174,7 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
12978
13174
|
} }
|
|
12979
13175
|
class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
12980
13176
|
isCompoundPipe;
|
|
13177
|
+
logger = new StructuredLoggerService();
|
|
12981
13178
|
writeComplexFieldComponent;
|
|
12982
13179
|
focusElementDirectives;
|
|
12983
13180
|
static REQUIRED_ERROR_MESSAGE = 'Enter a Postcode';
|
|
@@ -13030,7 +13227,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13030
13227
|
});
|
|
13031
13228
|
}, (error) => {
|
|
13032
13229
|
this.loadingAddresses = false;
|
|
13033
|
-
|
|
13230
|
+
this.logger.error('An error occurred retrieving addresses for postcode.', { error });
|
|
13034
13231
|
});
|
|
13035
13232
|
this.addressList.setValue(undefined);
|
|
13036
13233
|
this.refocusElement();
|
|
@@ -13130,7 +13327,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13130
13327
|
type: ViewChildren,
|
|
13131
13328
|
args: [FocusElementDirective]
|
|
13132
13329
|
}] }); })();
|
|
13133
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteAddressFieldComponent, { className: "WriteAddressFieldComponent", filePath: "lib/shared/components/palette/address/write-address-field.component.ts", lineNumber:
|
|
13330
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteAddressFieldComponent, { className: "WriteAddressFieldComponent", filePath: "lib/shared/components/palette/address/write-address-field.component.ts", lineNumber: 19 }); })();
|
|
13134
13331
|
|
|
13135
13332
|
var PaletteContext;
|
|
13136
13333
|
(function (PaletteContext) {
|
|
@@ -15121,6 +15318,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15121
15318
|
scrollToService;
|
|
15122
15319
|
profileNotifier;
|
|
15123
15320
|
cdRef;
|
|
15321
|
+
logger = new StructuredLoggerService();
|
|
15124
15322
|
caseFields = [];
|
|
15125
15323
|
formArray;
|
|
15126
15324
|
profile;
|
|
@@ -15268,7 +15466,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15268
15466
|
duration: 1000,
|
|
15269
15467
|
offset: -150,
|
|
15270
15468
|
})
|
|
15271
|
-
.subscribe(() => { },
|
|
15469
|
+
.subscribe(() => { }, error => this.logger.error('Error while scrolling collection item into view.', { error }));
|
|
15272
15470
|
}
|
|
15273
15471
|
this.focusLastItem();
|
|
15274
15472
|
}
|
|
@@ -15307,9 +15505,20 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15307
15505
|
}
|
|
15308
15506
|
}
|
|
15309
15507
|
focusLastItem() {
|
|
15310
|
-
const
|
|
15311
|
-
if (
|
|
15312
|
-
|
|
15508
|
+
const root = this.items.last?.nativeElement;
|
|
15509
|
+
if (!root) {
|
|
15510
|
+
return;
|
|
15511
|
+
}
|
|
15512
|
+
const controls = Array.from(root.querySelectorAll('.form-control'));
|
|
15513
|
+
const focusTarget = controls.find(control => {
|
|
15514
|
+
if (!(control instanceof HTMLInputElement)) {
|
|
15515
|
+
return true;
|
|
15516
|
+
}
|
|
15517
|
+
const type = (control.type || '').toLowerCase();
|
|
15518
|
+
return type !== 'radio';
|
|
15519
|
+
});
|
|
15520
|
+
if (focusTarget) {
|
|
15521
|
+
focusTarget.focus();
|
|
15313
15522
|
}
|
|
15314
15523
|
}
|
|
15315
15524
|
removeItem(index) {
|
|
@@ -15465,7 +15674,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15465
15674
|
type: ViewChildren,
|
|
15466
15675
|
args: ['collectionItem']
|
|
15467
15676
|
}] }); })();
|
|
15468
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCollectionFieldComponent, { className: "WriteCollectionFieldComponent", filePath: "lib/shared/components/palette/collection/write-collection-field.component.ts", lineNumber:
|
|
15677
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCollectionFieldComponent, { className: "WriteCollectionFieldComponent", filePath: "lib/shared/components/palette/collection/write-collection-field.component.ts", lineNumber: 34 }); })();
|
|
15469
15678
|
|
|
15470
15679
|
function ReadComplexFieldComponent_ccd_read_complex_field_raw_1_Template(rf, ctx) { if (rf & 1) {
|
|
15471
15680
|
i0.ɵɵelement(0, "ccd-read-complex-field-raw", 4);
|
|
@@ -15837,8 +16046,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15837
16046
|
this.jurisdictionId = parts[parts.indexOf('case-create') + 1];
|
|
15838
16047
|
this.caseTypeId = parts[parts.indexOf('case-create') + 2];
|
|
15839
16048
|
this.caseId = null;
|
|
15840
|
-
console.log(this.jurisdictionId);
|
|
15841
|
-
console.log(this.caseTypeId);
|
|
15842
16049
|
}
|
|
15843
16050
|
// use the documentManagement service to check if the document upload should use CDAM
|
|
15844
16051
|
if (this.documentManagement.isDocumentSecureModeEnabled()) {
|
|
@@ -19928,12 +20135,18 @@ class MoneyGbpInputComponent {
|
|
|
19928
20135
|
writeValue(obj) {
|
|
19929
20136
|
if (obj) {
|
|
19930
20137
|
this.rawValue = obj;
|
|
19931
|
-
|
|
19932
|
-
|
|
19933
|
-
|
|
19934
|
-
|
|
20138
|
+
// If already contains decimal, use it directly
|
|
20139
|
+
if (obj.includes('.')) {
|
|
20140
|
+
this.displayValue = obj;
|
|
20141
|
+
}
|
|
20142
|
+
else {
|
|
20143
|
+
const integerPart = obj.slice(0, -2) || '0';
|
|
20144
|
+
let decimalPart = obj.slice(-2);
|
|
20145
|
+
while (2 > decimalPart.length) {
|
|
20146
|
+
decimalPart += '0';
|
|
20147
|
+
}
|
|
20148
|
+
this.displayValue = [integerPart, decimalPart].join('.');
|
|
19935
20149
|
}
|
|
19936
|
-
this.displayValue = [integerPart, decimalPart].join('.');
|
|
19937
20150
|
}
|
|
19938
20151
|
}
|
|
19939
20152
|
registerOnChange(fn) {
|
|
@@ -21615,6 +21828,7 @@ const CIVIL_JURISDICTION = 'CIVIL';
|
|
|
21615
21828
|
class QueryManagementService {
|
|
21616
21829
|
router;
|
|
21617
21830
|
sessionStorageService;
|
|
21831
|
+
logger = new StructuredLoggerService();
|
|
21618
21832
|
caseQueriesCollections;
|
|
21619
21833
|
fieldId;
|
|
21620
21834
|
constructor(router, sessionStorageService) {
|
|
@@ -21634,7 +21848,7 @@ class QueryManagementService {
|
|
|
21634
21848
|
currentUserDetails = safeJsonParse(this.sessionStorageService.getItem(USER_DETAILS), {});
|
|
21635
21849
|
}
|
|
21636
21850
|
catch (e) {
|
|
21637
|
-
|
|
21851
|
+
this.logger.error('Could not parse USER_DETAILS from session storage.', { error: e });
|
|
21638
21852
|
currentUserDetails = {};
|
|
21639
21853
|
}
|
|
21640
21854
|
const isHmctsStaff = (this.isJudiciaryUser() || this.isInternalUser()) ? 'Yes' : 'No';
|
|
@@ -21644,7 +21858,7 @@ class QueryManagementService {
|
|
|
21644
21858
|
const isNewQuery = queryCreateContext === QueryCreateContext.NEW_QUERY; // Check if this is a new query
|
|
21645
21859
|
// Check if the field ID has been set dynamically
|
|
21646
21860
|
if (!this.fieldId) {
|
|
21647
|
-
|
|
21861
|
+
this.logger.error('Field ID for CaseQueriesCollection not found. Cannot proceed with data generation.');
|
|
21648
21862
|
this.router.navigate(['/', 'service-down']);
|
|
21649
21863
|
throw new Error('Field ID for CaseQueriesCollection not found. Aborting query data generation.');
|
|
21650
21864
|
}
|
|
@@ -21704,7 +21918,7 @@ class QueryManagementService {
|
|
|
21704
21918
|
setCaseQueriesCollectionData(eventData, queryCreateContext, caseDetails, messageId) {
|
|
21705
21919
|
const resolvedFieldId = this.resolveFieldId(eventData, queryCreateContext, caseDetails, messageId);
|
|
21706
21920
|
if (!resolvedFieldId) {
|
|
21707
|
-
|
|
21921
|
+
this.logger.error('Failed to resolve fieldId for CaseQueriesCollection. Cannot proceed.');
|
|
21708
21922
|
return;
|
|
21709
21923
|
}
|
|
21710
21924
|
this.fieldId = resolvedFieldId;
|
|
@@ -21724,7 +21938,7 @@ class QueryManagementService {
|
|
|
21724
21938
|
field.field_type.type === FIELD_TYPE_COMPLEX &&
|
|
21725
21939
|
field.display_context !== DISPLAY_CONTEXT_READONLY);
|
|
21726
21940
|
if (!candidateFields?.length) {
|
|
21727
|
-
|
|
21941
|
+
this.logger.warn('No editable CaseQueriesCollection fields found.');
|
|
21728
21942
|
return null;
|
|
21729
21943
|
}
|
|
21730
21944
|
const numberOfCollections = candidateFields.length;
|
|
@@ -21751,12 +21965,12 @@ class QueryManagementService {
|
|
|
21751
21965
|
}
|
|
21752
21966
|
}
|
|
21753
21967
|
else {
|
|
21754
|
-
|
|
21968
|
+
this.logger.error('Multiple CaseQueriesCollections are not supported yet for this jurisdiction.', { jurisdictionId });
|
|
21755
21969
|
return null;
|
|
21756
21970
|
}
|
|
21757
21971
|
}
|
|
21758
21972
|
// Step 4: Fallback — if none of the above succeeded
|
|
21759
|
-
|
|
21973
|
+
this.logger.warn('Could not determine fieldId for context.', { queryCreateContext });
|
|
21760
21974
|
return null;
|
|
21761
21975
|
}
|
|
21762
21976
|
getCaseQueriesCollectionFieldOrderFromWizardPages(eventData) {
|
|
@@ -22368,6 +22582,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22368
22582
|
queryManagementService;
|
|
22369
22583
|
errorNotifierService;
|
|
22370
22584
|
alertService;
|
|
22585
|
+
logger = new StructuredLoggerService();
|
|
22371
22586
|
RAISE_A_QUERY_EVENT_TRIGGER_ID = 'queryManagementRaiseQuery';
|
|
22372
22587
|
RESPOND_TO_QUERY_EVENT_TRIGGER_ID = 'queryManagementRespondQuery';
|
|
22373
22588
|
CASE_QUERIES_COLLECTION_ID = 'CaseQueriesCollection';
|
|
@@ -22455,7 +22670,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22455
22670
|
if (error.status !== 401 && error.status !== 403) {
|
|
22456
22671
|
this.errorNotifierService.announceError(error);
|
|
22457
22672
|
this.alertService.error({ phrase: error.message });
|
|
22458
|
-
|
|
22673
|
+
this.logger.error('Error occurred while fetching event data.', { error });
|
|
22459
22674
|
this.callbackErrorsSubject.next(error);
|
|
22460
22675
|
}
|
|
22461
22676
|
else {
|
|
@@ -22508,7 +22723,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22508
22723
|
});
|
|
22509
22724
|
}
|
|
22510
22725
|
else {
|
|
22511
|
-
|
|
22726
|
+
this.logger.error('No task to complete was found.');
|
|
22512
22727
|
this.errorMessages = [
|
|
22513
22728
|
{
|
|
22514
22729
|
title: 'Error',
|
|
@@ -22552,7 +22767,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22552
22767
|
this.isSubmitting = false;
|
|
22553
22768
|
}
|
|
22554
22769
|
handleError(error) {
|
|
22555
|
-
|
|
22770
|
+
this.logger.error('Error in query management API calls.', { error });
|
|
22556
22771
|
this.isSubmitting = false;
|
|
22557
22772
|
if (this.isServiceErrorFound(error)) {
|
|
22558
22773
|
this.error = null;
|
|
@@ -22580,7 +22795,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22580
22795
|
}
|
|
22581
22796
|
setCaseQueriesCollectionData() {
|
|
22582
22797
|
if (!this.eventData) {
|
|
22583
|
-
|
|
22798
|
+
this.logger.warn('Event data not available; skipping collection setup.');
|
|
22584
22799
|
}
|
|
22585
22800
|
this.queryManagementService.setCaseQueriesCollectionData(this.eventData, this.queryCreateContext, this.caseDetails, this.messageId);
|
|
22586
22801
|
}
|
|
@@ -22615,7 +22830,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22615
22830
|
}], createEventResponse: [{
|
|
22616
22831
|
type: Output
|
|
22617
22832
|
}] }); })();
|
|
22618
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber:
|
|
22833
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 33 }); })();
|
|
22619
22834
|
|
|
22620
22835
|
function QueryDetailsComponent_ng_container_0_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
22621
22836
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -23676,6 +23891,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23676
23891
|
class QueryWriteRaiseQueryComponent {
|
|
23677
23892
|
queryManagementService;
|
|
23678
23893
|
route;
|
|
23894
|
+
logger = new StructuredLoggerService();
|
|
23679
23895
|
formGroup;
|
|
23680
23896
|
submitted;
|
|
23681
23897
|
caseDetails;
|
|
@@ -23723,7 +23939,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
23723
23939
|
}
|
|
23724
23940
|
setCaseQueriesCollectionData() {
|
|
23725
23941
|
if (!this.eventData) {
|
|
23726
|
-
|
|
23942
|
+
this.logger.warn('Event data not available; skipping collection setup.');
|
|
23727
23943
|
return false;
|
|
23728
23944
|
}
|
|
23729
23945
|
this.queryManagementService.setCaseQueriesCollectionData(this.eventData, this.queryCreateContext, this.caseDetails, this.messageId);
|
|
@@ -23785,7 +24001,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
23785
24001
|
}], queryDataCreated: [{
|
|
23786
24002
|
type: Output
|
|
23787
24003
|
}] }); })();
|
|
23788
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRaiseQueryComponent, { className: "QueryWriteRaiseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts", lineNumber:
|
|
24004
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRaiseQueryComponent, { className: "QueryWriteRaiseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts", lineNumber: 21 }); })();
|
|
23789
24005
|
|
|
23790
24006
|
function QueryWriteRespondToQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
|
|
23791
24007
|
i0.ɵɵelement(0, "ccd-query-case-details-header", 8);
|
|
@@ -23868,6 +24084,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
23868
24084
|
caseNotifier;
|
|
23869
24085
|
route;
|
|
23870
24086
|
queryManagementService;
|
|
24087
|
+
logger = new StructuredLoggerService();
|
|
23871
24088
|
queryItem;
|
|
23872
24089
|
formGroup;
|
|
23873
24090
|
queryCreateContext;
|
|
@@ -23902,7 +24119,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
23902
24119
|
this.caseDetails = caseDetails;
|
|
23903
24120
|
},
|
|
23904
24121
|
error: (err) => {
|
|
23905
|
-
|
|
24122
|
+
this.logger.error('Error retrieving case details.', { error: err });
|
|
23906
24123
|
}
|
|
23907
24124
|
});
|
|
23908
24125
|
}
|
|
@@ -23912,19 +24129,19 @@ class QueryWriteRespondToQueryComponent {
|
|
|
23912
24129
|
return;
|
|
23913
24130
|
}
|
|
23914
24131
|
if (!this.caseQueriesCollections[0]) {
|
|
23915
|
-
|
|
24132
|
+
this.logger.error('Case queries collection is undefined.');
|
|
23916
24133
|
return;
|
|
23917
24134
|
}
|
|
23918
24135
|
this.messageId = this.route.snapshot.params?.dataid;
|
|
23919
24136
|
if (!this.messageId) {
|
|
23920
|
-
|
|
24137
|
+
this.logger.warn('No messageId found in route params.', { routeParams: this.route.snapshot.params });
|
|
23921
24138
|
return;
|
|
23922
24139
|
}
|
|
23923
24140
|
const allMessages = this.caseQueriesCollections
|
|
23924
24141
|
.flatMap((caseData) => caseData?.caseMessages || []);
|
|
23925
24142
|
const matchingMessage = allMessages.find((message) => message?.value?.id === this.messageId)?.value;
|
|
23926
24143
|
if (!matchingMessage) {
|
|
23927
|
-
|
|
24144
|
+
this.logger.warn('No matching message found for ID.', { messageId: this.messageId });
|
|
23928
24145
|
return;
|
|
23929
24146
|
}
|
|
23930
24147
|
const caseQueriesCollections = this.caseQueriesCollections.find((collection) => collection?.caseMessages.find((c) => c.value.id === this.messageId));
|
|
@@ -23948,7 +24165,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
23948
24165
|
}
|
|
23949
24166
|
setCaseQueriesCollectionData() {
|
|
23950
24167
|
if (!this.eventData) {
|
|
23951
|
-
|
|
24168
|
+
this.logger.warn('Event data not available; skipping collection setup.');
|
|
23952
24169
|
return false;
|
|
23953
24170
|
}
|
|
23954
24171
|
this.queryManagementService.setCaseQueriesCollectionData(this.eventData, this.queryCreateContext, this.caseDetails, this.messageId);
|
|
@@ -24013,7 +24230,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
24013
24230
|
}], hasRespondedToQueryTask: [{
|
|
24014
24231
|
type: Output
|
|
24015
24232
|
}] }); })();
|
|
24016
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber:
|
|
24233
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber: 20 }); })();
|
|
24017
24234
|
|
|
24018
24235
|
function QueryConfirmationComponent_main_0_ng_container_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
24019
24236
|
i0.ɵɵelementStart(0, "h1", 8);
|
|
@@ -24163,6 +24380,7 @@ function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24163
24380
|
class QueryConfirmationComponent {
|
|
24164
24381
|
route;
|
|
24165
24382
|
sessionStorageService;
|
|
24383
|
+
logger = new StructuredLoggerService();
|
|
24166
24384
|
queryCreateContext;
|
|
24167
24385
|
callbackConfirmationMessageText = {};
|
|
24168
24386
|
eventResponseData;
|
|
@@ -24193,7 +24411,7 @@ class QueryConfirmationComponent {
|
|
|
24193
24411
|
resolveHmctsStaffRaisedQuery() {
|
|
24194
24412
|
const messageId = this.route.snapshot.params.dataid;
|
|
24195
24413
|
if (!this.eventResponseData) {
|
|
24196
|
-
|
|
24414
|
+
this.logger.warn('No event response data available.');
|
|
24197
24415
|
return;
|
|
24198
24416
|
}
|
|
24199
24417
|
this.queryListData = new QueryListData(this.eventResponseData);
|
|
@@ -24207,7 +24425,7 @@ class QueryConfirmationComponent {
|
|
|
24207
24425
|
?.flatMap((p) => p.children || [])
|
|
24208
24426
|
.find((c) => c.parentId === messageId);
|
|
24209
24427
|
if (!child) {
|
|
24210
|
-
|
|
24428
|
+
this.logger.warn('No matching child found for messageId.', { messageId });
|
|
24211
24429
|
return;
|
|
24212
24430
|
}
|
|
24213
24431
|
const parentItem = this.queryListData?.queries
|
|
@@ -30299,7 +30517,7 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
30299
30517
|
i0.ɵɵproperty("for", picker_r3);
|
|
30300
30518
|
i0.ɵɵadvance();
|
|
30301
30519
|
i0.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
|
|
30302
|
-
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, i4$1.NgxMatDatetimepicker, i4$1.NgxMatDatepickerInput, i4$1.NgxMatDatepickerActions, i4$1.NgxMatDatepickerApply, i5$1.MatLegacySuffix, i6$2.MatDatepickerToggle, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], styles: [".datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px;background:#fff}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;column-width:20px;text-transform:uppercase}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{padding-top:0;justify-content:flex-start;padding-left:15px}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display
|
|
30520
|
+
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, i4$1.NgxMatDatetimepicker, i4$1.NgxMatDatepickerInput, i4$1.NgxMatDatepickerActions, i4$1.NgxMatDatepickerApply, i5$1.MatLegacySuffix, i6$2.MatDatepickerToggle, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], styles: [".datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px;background:#fff}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;column-width:20px;text-transform:uppercase}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{padding-top:0;justify-content:flex-start;padding-left:15px}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions{margin-top:16px;padding:8px 8px 28px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}\n"], encapsulation: 2 });
|
|
30303
30521
|
}
|
|
30304
30522
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
30305
30523
|
type: Component,
|
|
@@ -30311,7 +30529,7 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
30311
30529
|
deps: [MAT_LEGACY_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
30312
30530
|
},
|
|
30313
30531
|
{ provide: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
30314
|
-
], standalone: false, template: "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{(dateControl.errors | ccdFirstError:caseField.label)}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">{{'This date is older than the minimum date allowed' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">{{'This date is later than the maximum date allowed' | rpxTranslate}}</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format | rpxTranslate {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n <ngx-mat-datepicker-actions>\n <button mat-raised-button color=\"primary\" ngxMatDatepickerApply>Confirm</button>\n </ngx-mat-datepicker-actions>\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n", styles: [".datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px;background:#fff}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;column-width:20px;text-transform:uppercase}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{padding-top:0;justify-content:flex-start;padding-left:15px}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions{margin-top:16px;padding:8px 8px 28px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}\n"] }]
|
|
30532
|
+
], standalone: false, template: "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{(dateControl.errors | ccdFirstError:caseField.label)}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">{{'This date is older than the minimum date allowed' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">{{'This date is later than the maximum date allowed' | rpxTranslate}}</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format | rpxTranslate {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n <ngx-mat-datepicker-actions>\n <button mat-raised-button color=\"primary\" ngxMatDatepickerApply>Confirm</button>\n </ngx-mat-datepicker-actions>\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n", styles: [".datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px;background:#fff}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;column-width:20px;text-transform:uppercase}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{padding-top:0;justify-content:flex-start;padding-left:15px}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions{margin-top:16px;padding:8px 8px 28px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions button{background-color:#00823b;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.526315em 1em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:auto;min-width:96px;white-space:nowrap;overflow:visible;cursor:pointer}\n"] }]
|
|
30315
30533
|
}], () => [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
30316
30534
|
type: Inject,
|
|
30317
30535
|
args: [NGX_MAT_DATE_FORMATS]
|
|
@@ -34331,6 +34549,7 @@ class WorkbasketFiltersComponent {
|
|
|
34331
34549
|
static PARAM_JURISDICTION = 'jurisdiction';
|
|
34332
34550
|
static PARAM_CASE_TYPE = 'case-type';
|
|
34333
34551
|
static PARAM_CASE_STATE = 'case-state';
|
|
34552
|
+
logger = new StructuredLoggerService();
|
|
34334
34553
|
caseFields;
|
|
34335
34554
|
jurisdictions;
|
|
34336
34555
|
defaults;
|
|
@@ -34504,9 +34723,7 @@ class WorkbasketFiltersComponent {
|
|
|
34504
34723
|
}
|
|
34505
34724
|
});
|
|
34506
34725
|
this.getCaseFields();
|
|
34507
|
-
}, error => {
|
|
34508
|
-
console.log('Workbasket input fields request will be discarded reason: ', error.message);
|
|
34509
|
-
});
|
|
34726
|
+
}, error => this.logger.error('Workbasket input fields request will be discarded.', { error }));
|
|
34510
34727
|
}
|
|
34511
34728
|
}
|
|
34512
34729
|
else {
|
|
@@ -34766,7 +34983,7 @@ class WorkbasketFiltersComponent {
|
|
|
34766
34983
|
}], onReset: [{
|
|
34767
34984
|
type: Output
|
|
34768
34985
|
}] }); })();
|
|
34769
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber:
|
|
34986
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber: 28 }); })();
|
|
34770
34987
|
|
|
34771
34988
|
class WorkbasketFiltersModule {
|
|
34772
34989
|
static ɵfac = function WorkbasketFiltersModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkbasketFiltersModule)(); };
|
|
@@ -35156,6 +35373,7 @@ class CaseHistoryComponent {
|
|
|
35156
35373
|
orderService;
|
|
35157
35374
|
caseNotifier;
|
|
35158
35375
|
caseHistoryService;
|
|
35376
|
+
logger = new StructuredLoggerService();
|
|
35159
35377
|
static PARAM_EVENT_ID = 'eid';
|
|
35160
35378
|
static ERROR_MESSAGE = 'No case history to show';
|
|
35161
35379
|
event;
|
|
@@ -35188,7 +35406,7 @@ class CaseHistoryComponent {
|
|
|
35188
35406
|
this.tabs = this.orderService.sort(this.caseHistory.tabs);
|
|
35189
35407
|
this.tabs = this.sortTabFieldsAndFilterTabs(this.tabs);
|
|
35190
35408
|
}), catchError(error => {
|
|
35191
|
-
|
|
35409
|
+
this.logger.error('Error while getting case history.', { error });
|
|
35192
35410
|
if (error.status !== 401 && error.status !== 403) {
|
|
35193
35411
|
this.alertService.error(error.message);
|
|
35194
35412
|
}
|
|
@@ -35222,7 +35440,7 @@ class CaseHistoryComponent {
|
|
|
35222
35440
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: AlertService }, { type: OrderService }, { type: CaseNotifier }, { type: CaseHistoryService }], { event: [{
|
|
35223
35441
|
type: Input
|
|
35224
35442
|
}] }); })();
|
|
35225
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseHistoryComponent, { className: "CaseHistoryComponent", filePath: "lib/shared/components/case-history/case-history.component.ts", lineNumber:
|
|
35443
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseHistoryComponent, { className: "CaseHistoryComponent", filePath: "lib/shared/components/case-history/case-history.component.ts", lineNumber: 22 }); })();
|
|
35226
35444
|
|
|
35227
35445
|
class CaseHistoryModule {
|
|
35228
35446
|
static ɵfac = function CaseHistoryModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseHistoryModule)(); };
|
|
@@ -35446,11 +35664,9 @@ class CaseResolver {
|
|
|
35446
35664
|
const currentUrl = this.router.url ?? '';
|
|
35447
35665
|
// Prevent resolving if eventId=queryManagementRespondQuery is in the URL
|
|
35448
35666
|
if (currentUrl.includes(CaseResolver.EVENT_ID_QM_RESPOND_TO_QUERY)) {
|
|
35449
|
-
console.info('Skipping resolve for event queryManagementRespondQuery.');
|
|
35450
35667
|
this.goToDefaultPage();
|
|
35451
35668
|
}
|
|
35452
35669
|
if (!cid) {
|
|
35453
|
-
console.info('No case ID available in the route. Will navigate to case list.');
|
|
35454
35670
|
// when redirected to case view after a case created, and the user has no READ access,
|
|
35455
35671
|
// the post returns no id
|
|
35456
35672
|
this.navigateToCaseList();
|
|
@@ -35507,8 +35723,6 @@ class CaseResolver {
|
|
|
35507
35723
|
}), catchError(error => this.processErrorInCaseFetch(error, cid))).toPromise();
|
|
35508
35724
|
}
|
|
35509
35725
|
processErrorInCaseFetch(error, caseReference) {
|
|
35510
|
-
console.error('!!! processErrorInCaseFetch !!!');
|
|
35511
|
-
console.error(error);
|
|
35512
35726
|
// TODO Should be logged to remote logging infrastructure
|
|
35513
35727
|
if (error.status === 400) {
|
|
35514
35728
|
this.router.navigate(['/search/noresults']);
|
|
@@ -35536,7 +35750,6 @@ class CaseResolver {
|
|
|
35536
35750
|
}
|
|
35537
35751
|
// as discussed for EUI-5456, need functionality to go to default page
|
|
35538
35752
|
goToDefaultPage() {
|
|
35539
|
-
console.info('Going to default page!');
|
|
35540
35753
|
const userDetails = safeJsonParse(this.sessionStorage.getItem(USER_DETAILS));
|
|
35541
35754
|
userDetails && userDetails.roles
|
|
35542
35755
|
&& !userDetails.roles.includes(PUI_CASE_MANAGER)
|
|
@@ -35734,7 +35947,6 @@ class CaseEventTriggerComponent {
|
|
|
35734
35947
|
if (this.activityPollingService.isEnabled) {
|
|
35735
35948
|
this.ngZone.runOutsideAngular(() => {
|
|
35736
35949
|
this.activitySubscription = this.postEditActivity().subscribe(() => {
|
|
35737
|
-
// console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
|
|
35738
35950
|
});
|
|
35739
35951
|
});
|
|
35740
35952
|
}
|
|
@@ -35905,8 +36117,6 @@ class CaseViewComponent {
|
|
|
35905
36117
|
}
|
|
35906
36118
|
checkErrorGettingCaseView(error) {
|
|
35907
36119
|
// TODO Should be logged to remote logging infrastructure
|
|
35908
|
-
console.error('Called checkErrorGettingCaseView.');
|
|
35909
|
-
console.error(error);
|
|
35910
36120
|
if (error.status !== 401 && error.status !== 403) {
|
|
35911
36121
|
this.alertService.error(error.message);
|
|
35912
36122
|
}
|
|
@@ -37258,7 +37468,6 @@ class CaseViewerComponent {
|
|
|
37258
37468
|
}
|
|
37259
37469
|
else {
|
|
37260
37470
|
this.caseSubscription = this.caseNotifier.caseView.subscribe((caseDetails) => {
|
|
37261
|
-
console.info('Setting the case into case viewer component as retrieved from XHR request.');
|
|
37262
37471
|
this.caseDetails = caseDetails;
|
|
37263
37472
|
this.setUserAccessType(this.caseDetails);
|
|
37264
37473
|
});
|
|
@@ -37870,6 +38079,10 @@ class EventStartGuard {
|
|
|
37870
38079
|
}
|
|
37871
38080
|
}
|
|
37872
38081
|
return caseDataObservable.pipe(switchMap(() => {
|
|
38082
|
+
if (this.shouldSkipDuplicateWorkAllocationCall()) {
|
|
38083
|
+
this.abstractConfig.logMessage(`EventStartGuard: skipping duplicate work allocation call for caseId ${caseId} and eventId ${eventId}`);
|
|
38084
|
+
return of(true);
|
|
38085
|
+
}
|
|
37873
38086
|
if (this.jurisdiction && this.caseType) {
|
|
37874
38087
|
if (this.caseId === caseId) {
|
|
37875
38088
|
return this.workAllocationService.getTasksByCaseIdAndEventId(eventId, caseId, this.caseType, this.jurisdiction)
|
|
@@ -37883,6 +38096,9 @@ class EventStartGuard {
|
|
|
37883
38096
|
return of(false);
|
|
37884
38097
|
}));
|
|
37885
38098
|
}
|
|
38099
|
+
shouldSkipDuplicateWorkAllocationCall() {
|
|
38100
|
+
return this.router.getCurrentNavigation()?.extras?.state?.[EVENT_START_FIRST_PAGE_REDIRECT] === true;
|
|
38101
|
+
}
|
|
37886
38102
|
checkTaskInEventNotRequired(payload, caseId, taskId, eventId, userId) {
|
|
37887
38103
|
if (!payload || !payload.tasks) {
|
|
37888
38104
|
return true;
|
|
@@ -38119,9 +38335,7 @@ class EventStartStateMachineService {
|
|
|
38119
38335
|
if (!task) {
|
|
38120
38336
|
task = context.tasks[0];
|
|
38121
38337
|
}
|
|
38122
|
-
const taskStr = JSON.stringify(task);
|
|
38123
38338
|
this.abstractConfig?.logMessage?.(`entryActionForStateOneTaskAssignedToUser: task_state ${task?.task_state} for task id ${task?.id}`);
|
|
38124
|
-
console.log('entryActionForStateOneTaskAssignedToUser: setting client context task_data to ' + taskStr);
|
|
38125
38339
|
// Store task to session
|
|
38126
38340
|
const currentLanguage = context.cookieService.getCookie('exui-preferred-language');
|
|
38127
38341
|
const clientContext = {
|
|
@@ -38162,7 +38376,6 @@ class EventStartStateMachineService {
|
|
|
38162
38376
|
}
|
|
38163
38377
|
finalAction(state) {
|
|
38164
38378
|
// Final actions can be performed here, the state machine finished running
|
|
38165
|
-
// console.log('FINAL', state);
|
|
38166
38379
|
return;
|
|
38167
38380
|
}
|
|
38168
38381
|
addTransitionsForStateCheckForMatchingTasks() {
|
|
@@ -40122,6 +40335,7 @@ class SearchFiltersComponent {
|
|
|
40122
40335
|
orderService;
|
|
40123
40336
|
jurisdictionService;
|
|
40124
40337
|
windowService;
|
|
40338
|
+
logger = new StructuredLoggerService();
|
|
40125
40339
|
PARAM_JURISDICTION = 'jurisdiction';
|
|
40126
40340
|
PARAM_CASE_TYPE = 'case-type';
|
|
40127
40341
|
PARAM_CASE_STATE = 'case-state';
|
|
@@ -40217,7 +40431,7 @@ class SearchFiltersComponent {
|
|
|
40217
40431
|
}
|
|
40218
40432
|
}
|
|
40219
40433
|
catch (e) {
|
|
40220
|
-
|
|
40434
|
+
this.logger.error('Failed to retrieve jurisdiction from local storage.', { error: e });
|
|
40221
40435
|
this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, null);
|
|
40222
40436
|
}
|
|
40223
40437
|
}
|
|
@@ -40271,9 +40485,7 @@ class SearchFiltersComponent {
|
|
|
40271
40485
|
}
|
|
40272
40486
|
});
|
|
40273
40487
|
this.getCaseFields();
|
|
40274
|
-
}, error => {
|
|
40275
|
-
console.log('Search input fields request will be discarded reason: ', error.message);
|
|
40276
|
-
});
|
|
40488
|
+
}, error => this.logger.error('Search input fields request will be discarded.', { error }));
|
|
40277
40489
|
}
|
|
40278
40490
|
isJurisdictionSelected() {
|
|
40279
40491
|
return this.selected.jurisdiction === null ||
|
|
@@ -40410,7 +40622,7 @@ class SearchFiltersComponent {
|
|
|
40410
40622
|
}], onJurisdiction: [{
|
|
40411
40623
|
type: Output
|
|
40412
40624
|
}] }); })();
|
|
40413
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchFiltersComponent, { className: "SearchFiltersComponent", filePath: "lib/shared/components/search-filters/search-filters.component.ts", lineNumber:
|
|
40625
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchFiltersComponent, { className: "SearchFiltersComponent", filePath: "lib/shared/components/search-filters/search-filters.component.ts", lineNumber: 28 }); })();
|
|
40414
40626
|
|
|
40415
40627
|
function SearchFiltersWrapperComponent_ccd_search_filters_0_Template(rf, ctx) { if (rf & 1) {
|
|
40416
40628
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -41626,5 +41838,5 @@ class TestRouteSnapshotBuilder {
|
|
|
41626
41838
|
* Generated bundle index. Do not edit.
|
|
41627
41839
|
*/
|
|
41628
41840
|
|
|
41629
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, 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, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, 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, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, 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, EnumDisplayDescriptionPipe, 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, FlagFieldDisplayPipe, 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, LanguageInterpreterDisplayPipe, 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, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, 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, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, 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, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, safeJsonParse, textFieldType, viewerRouting };
|
|
41841
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, 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, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, 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, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, 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, EnumDisplayDescriptionPipe, 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, FlagFieldDisplayPipe, 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, LanguageInterpreterDisplayPipe, 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, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, 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, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, 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, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, safeJsonParse, textFieldType, viewerRouting };
|
|
41630
41842
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|