@hmcts/ccd-case-ui-toolkit 7.3.54-exui-3740 → 7.3.54-exui-4648-rc-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +229 -147
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +56 -4
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -1322,6 +1322,140 @@ class CaseEditorConfig {
|
|
|
1322
1322
|
enable_service_specific_multi_followups;
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
|
+
class StructuredLoggerService {
|
|
1326
|
+
static CIRCULAR_VALUE = '[Circular]';
|
|
1327
|
+
static MAX_DEPTH_VALUE = '[MaxDepth]';
|
|
1328
|
+
static MAX_REDACTION_DEPTH = 10;
|
|
1329
|
+
static REDACTED_VALUE = '[REDACTED]';
|
|
1330
|
+
static KEY_VALUE_PATTERN = /\b([a-z][\w-]*(?:[ _-][a-z][\w-]*)?)([ \t]*[:=][ \t]*)((?:Bearer[ \t]+)?)([^,;&\s]+)/gi;
|
|
1331
|
+
static SENSITIVE_KEY_PATTERN = /(password|passcode|pwd|secret|token|authori[sz]ation|authentication|auth[-_ ]?context|^auth$|api[-_ ]?key|cookie|session|credential)/i;
|
|
1332
|
+
static BEARER_TOKEN_PATTERN = /\bBearer\s+([\w.~+/-]+=*)/gi;
|
|
1333
|
+
debug(message, context) {
|
|
1334
|
+
this.write('debug', message, context);
|
|
1335
|
+
}
|
|
1336
|
+
error(message, context) {
|
|
1337
|
+
this.write('error', message, context);
|
|
1338
|
+
}
|
|
1339
|
+
info(message, context) {
|
|
1340
|
+
this.write('info', message, context);
|
|
1341
|
+
}
|
|
1342
|
+
warn(message, context) {
|
|
1343
|
+
this.write('warn', message, context);
|
|
1344
|
+
}
|
|
1345
|
+
redact(value) {
|
|
1346
|
+
return this.redactValue(value, new WeakSet(), false, 0);
|
|
1347
|
+
}
|
|
1348
|
+
write(level, message, context) {
|
|
1349
|
+
const entry = {
|
|
1350
|
+
level,
|
|
1351
|
+
message,
|
|
1352
|
+
timestamp: new Date().toISOString()
|
|
1353
|
+
};
|
|
1354
|
+
if (context !== undefined) {
|
|
1355
|
+
entry.context = this.redact(context);
|
|
1356
|
+
}
|
|
1357
|
+
switch (level) {
|
|
1358
|
+
case 'error':
|
|
1359
|
+
console.error(entry);
|
|
1360
|
+
break;
|
|
1361
|
+
case 'warn':
|
|
1362
|
+
console.warn(entry);
|
|
1363
|
+
break;
|
|
1364
|
+
default:
|
|
1365
|
+
console.log(entry);
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
redactValue(value, seen, redactCurrentValue, depth) {
|
|
1369
|
+
if (redactCurrentValue) {
|
|
1370
|
+
return StructuredLoggerService.REDACTED_VALUE;
|
|
1371
|
+
}
|
|
1372
|
+
if (value === null || value === undefined) {
|
|
1373
|
+
return value;
|
|
1374
|
+
}
|
|
1375
|
+
if (typeof value === 'string') {
|
|
1376
|
+
return this.redactSensitiveString(value);
|
|
1377
|
+
}
|
|
1378
|
+
if (typeof value !== 'object') {
|
|
1379
|
+
return value;
|
|
1380
|
+
}
|
|
1381
|
+
if (seen.has(value)) {
|
|
1382
|
+
return StructuredLoggerService.CIRCULAR_VALUE;
|
|
1383
|
+
}
|
|
1384
|
+
if (depth >= StructuredLoggerService.MAX_REDACTION_DEPTH) {
|
|
1385
|
+
return StructuredLoggerService.MAX_DEPTH_VALUE;
|
|
1386
|
+
}
|
|
1387
|
+
seen.add(value);
|
|
1388
|
+
let redactedValue;
|
|
1389
|
+
if (value instanceof Date) {
|
|
1390
|
+
redactedValue = value.toISOString();
|
|
1391
|
+
}
|
|
1392
|
+
else if (value instanceof Error) {
|
|
1393
|
+
redactedValue = this.redactError(value, seen, depth);
|
|
1394
|
+
}
|
|
1395
|
+
else if (Array.isArray(value)) {
|
|
1396
|
+
redactedValue = value.map(item => this.redactValue(item, seen, false, depth + 1));
|
|
1397
|
+
}
|
|
1398
|
+
else {
|
|
1399
|
+
redactedValue = this.redactObject(value, seen, depth);
|
|
1400
|
+
}
|
|
1401
|
+
seen.delete(value);
|
|
1402
|
+
return redactedValue;
|
|
1403
|
+
}
|
|
1404
|
+
redactError(error, seen, depth) {
|
|
1405
|
+
const redactedError = {
|
|
1406
|
+
name: this.redactValue(error.name, seen, false, depth + 1),
|
|
1407
|
+
message: this.redactValue(error.message, seen, false, depth + 1)
|
|
1408
|
+
};
|
|
1409
|
+
if (error.stack) {
|
|
1410
|
+
redactedError.stack = this.redactValue(error.stack, seen, false, depth + 1);
|
|
1411
|
+
}
|
|
1412
|
+
const errorContext = error;
|
|
1413
|
+
Object.keys(errorContext).forEach(key => {
|
|
1414
|
+
redactedError[key] = this.redactValue(errorContext[key], seen, this.isSensitiveKey(key), depth + 1);
|
|
1415
|
+
});
|
|
1416
|
+
return redactedError;
|
|
1417
|
+
}
|
|
1418
|
+
redactObject(value, seen, depth) {
|
|
1419
|
+
const redactedValue = {};
|
|
1420
|
+
const hasSensitiveNamedValue = this.hasSensitiveNamedValue(value);
|
|
1421
|
+
Object.keys(value).forEach(key => {
|
|
1422
|
+
redactedValue[key] = this.redactValue(value[key], seen, this.isSensitiveKey(key) || (hasSensitiveNamedValue && this.isValueKey(key)), depth + 1);
|
|
1423
|
+
});
|
|
1424
|
+
return redactedValue;
|
|
1425
|
+
}
|
|
1426
|
+
redactSensitiveString(value) {
|
|
1427
|
+
return value
|
|
1428
|
+
.replace(StructuredLoggerService.KEY_VALUE_PATTERN, (match, key, separator, bearerPrefix) => {
|
|
1429
|
+
return this.isSensitiveKey(key) ? `${key}${separator}${bearerPrefix}${StructuredLoggerService.REDACTED_VALUE}` : match;
|
|
1430
|
+
})
|
|
1431
|
+
.replace(StructuredLoggerService.BEARER_TOKEN_PATTERN, 'Bearer [REDACTED]');
|
|
1432
|
+
}
|
|
1433
|
+
hasSensitiveNamedValue(value) {
|
|
1434
|
+
return Object.keys(value)
|
|
1435
|
+
.some(key => {
|
|
1436
|
+
const namedValue = value[key];
|
|
1437
|
+
return this.isNameKey(key) && typeof namedValue === 'string' && this.isSensitiveKey(namedValue);
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
isNameKey(key) {
|
|
1441
|
+
return ['key', 'name'].includes(key.toLowerCase());
|
|
1442
|
+
}
|
|
1443
|
+
isSensitiveKey(key) {
|
|
1444
|
+
return StructuredLoggerService.SENSITIVE_KEY_PATTERN.test(key);
|
|
1445
|
+
}
|
|
1446
|
+
isValueKey(key) {
|
|
1447
|
+
return ['value', 'values'].includes(key.toLowerCase());
|
|
1448
|
+
}
|
|
1449
|
+
static ɵfac = function StructuredLoggerService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StructuredLoggerService)(); };
|
|
1450
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StructuredLoggerService, factory: StructuredLoggerService.ɵfac, providedIn: 'root' });
|
|
1451
|
+
}
|
|
1452
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StructuredLoggerService, [{
|
|
1453
|
+
type: Injectable,
|
|
1454
|
+
args: [{
|
|
1455
|
+
providedIn: 'root'
|
|
1456
|
+
}]
|
|
1457
|
+
}], null, null); })();
|
|
1458
|
+
|
|
1325
1459
|
class HttpError {
|
|
1326
1460
|
constructor() {
|
|
1327
1461
|
this.timestamp = new Date().toISOString();
|
|
@@ -1462,6 +1596,7 @@ class LoadingModule {
|
|
|
1462
1596
|
class HttpErrorService {
|
|
1463
1597
|
authService;
|
|
1464
1598
|
loadingService;
|
|
1599
|
+
static logger = new StructuredLoggerService();
|
|
1465
1600
|
constructor(authService, loadingService) {
|
|
1466
1601
|
this.authService = authService;
|
|
1467
1602
|
this.loadingService = loadingService;
|
|
@@ -1480,7 +1615,7 @@ class HttpErrorService {
|
|
|
1480
1615
|
httpError = HttpError.from(error);
|
|
1481
1616
|
}
|
|
1482
1617
|
catch (e) {
|
|
1483
|
-
|
|
1618
|
+
HttpErrorService.logger.error('Unable to convert HTTP error response.', { error: e });
|
|
1484
1619
|
}
|
|
1485
1620
|
}
|
|
1486
1621
|
if (!httpError.status) {
|
|
@@ -1506,8 +1641,6 @@ class HttpErrorService {
|
|
|
1506
1641
|
return error;
|
|
1507
1642
|
}
|
|
1508
1643
|
handle(error, redirectIfNotAuthorised = true) {
|
|
1509
|
-
console.error('Handling error in http error service.');
|
|
1510
|
-
console.error(error);
|
|
1511
1644
|
if (this.loadingService.hasSharedSpinner()) {
|
|
1512
1645
|
this.loadingService.unregisterSharedSpinner();
|
|
1513
1646
|
}
|
|
@@ -1647,6 +1780,7 @@ class SessionStorageService {
|
|
|
1647
1780
|
}]
|
|
1648
1781
|
}], null, null); })();
|
|
1649
1782
|
|
|
1783
|
+
const logger = new StructuredLoggerService();
|
|
1650
1784
|
function safeJsonParse(value, fallback = null) {
|
|
1651
1785
|
if (!value) {
|
|
1652
1786
|
return fallback;
|
|
@@ -1656,8 +1790,7 @@ function safeJsonParse(value, fallback = null) {
|
|
|
1656
1790
|
}
|
|
1657
1791
|
catch (error) {
|
|
1658
1792
|
// Log for diagnostics, then return fallback to avoid UI crashes.
|
|
1659
|
-
|
|
1660
|
-
console.error('safeJsonParse failed to parse JSON', error);
|
|
1793
|
+
logger.error('safeJsonParse failed to parse JSON.', { error });
|
|
1661
1794
|
return fallback;
|
|
1662
1795
|
}
|
|
1663
1796
|
}
|
|
@@ -1669,6 +1802,7 @@ class SessionStorageGuard {
|
|
|
1669
1802
|
router;
|
|
1670
1803
|
errorRoute;
|
|
1671
1804
|
errorLogger;
|
|
1805
|
+
logger = new StructuredLoggerService();
|
|
1672
1806
|
constructor(sessionStorageService, router, errorRoute, errorLogger) {
|
|
1673
1807
|
this.sessionStorageService = sessionStorageService;
|
|
1674
1808
|
this.router = router;
|
|
@@ -1689,8 +1823,7 @@ class SessionStorageGuard {
|
|
|
1689
1823
|
this.errorLogger(error);
|
|
1690
1824
|
}
|
|
1691
1825
|
else {
|
|
1692
|
-
|
|
1693
|
-
console.error('Invalid userDetails in session storage', error);
|
|
1826
|
+
this.logger.error('Invalid userDetails in session storage.', { error });
|
|
1694
1827
|
}
|
|
1695
1828
|
this.router.navigate([this.errorRoute || '/session-error']);
|
|
1696
1829
|
return false;
|
|
@@ -1741,6 +1874,7 @@ class ActivityService {
|
|
|
1741
1874
|
sessionStorageService;
|
|
1742
1875
|
static get ACTIVITY_VIEW() { return 'view'; }
|
|
1743
1876
|
static get ACTIVITY_EDIT() { return 'edit'; }
|
|
1877
|
+
logger = new StructuredLoggerService();
|
|
1744
1878
|
constructor(http, appConfig, sessionStorageService) {
|
|
1745
1879
|
this.http = http;
|
|
1746
1880
|
this.appConfig = appConfig;
|
|
@@ -1779,7 +1913,7 @@ class ActivityService {
|
|
|
1779
1913
|
.pipe(map(response => response));
|
|
1780
1914
|
}
|
|
1781
1915
|
catch (error) {
|
|
1782
|
-
|
|
1916
|
+
this.logUserMayNotBeAuthenticated(error);
|
|
1783
1917
|
}
|
|
1784
1918
|
}
|
|
1785
1919
|
postActivity(caseId, activity) {
|
|
@@ -1792,7 +1926,7 @@ class ActivityService {
|
|
|
1792
1926
|
.pipe(map(response => response));
|
|
1793
1927
|
}
|
|
1794
1928
|
catch (error) {
|
|
1795
|
-
|
|
1929
|
+
this.logUserMayNotBeAuthenticated(error);
|
|
1796
1930
|
}
|
|
1797
1931
|
}
|
|
1798
1932
|
verifyUserIsAuthorized() {
|
|
@@ -1805,6 +1939,9 @@ class ActivityService {
|
|
|
1805
1939
|
activityUrl() {
|
|
1806
1940
|
return this.appConfig.getActivityUrl();
|
|
1807
1941
|
}
|
|
1942
|
+
logUserMayNotBeAuthenticated(error) {
|
|
1943
|
+
this.logger.error('User may not be authenticated. Activity request was not sent.', { error });
|
|
1944
|
+
}
|
|
1808
1945
|
static ɵfac = function ActivityService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ActivityService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(SessionStorageService)); };
|
|
1809
1946
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityService, factory: ActivityService.ɵfac });
|
|
1810
1947
|
}
|
|
@@ -1817,6 +1954,7 @@ class ActivityPollingService {
|
|
|
1817
1954
|
activityService;
|
|
1818
1955
|
ngZone;
|
|
1819
1956
|
config;
|
|
1957
|
+
logger = new StructuredLoggerService();
|
|
1820
1958
|
pendingRequests = new Map();
|
|
1821
1959
|
currentTimeoutHandle;
|
|
1822
1960
|
pollActivitiesSubscription;
|
|
@@ -1854,13 +1992,11 @@ class ActivityPollingService {
|
|
|
1854
1992
|
if (this.pendingRequests.size === 1) {
|
|
1855
1993
|
this.ngZone.runOutsideAngular(() => {
|
|
1856
1994
|
this.currentTimeoutHandle = setTimeout(() => this.ngZone.run(() => {
|
|
1857
|
-
// console.log('timeout: flushing requests')
|
|
1858
1995
|
this.flushRequests();
|
|
1859
1996
|
}), this.batchCollectionDelayMs);
|
|
1860
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;
|
|
@@ -1893,18 +2029,16 @@ class ActivityPollingService {
|
|
|
1893
2029
|
}
|
|
1894
2030
|
performBatchRequest(requests) {
|
|
1895
2031
|
const caseIds = Array.from(requests.keys()).join();
|
|
1896
|
-
// console.log('issuing batch request for cases: ' + caseIds);
|
|
1897
2032
|
this.ngZone.runOutsideAngular(() => {
|
|
1898
2033
|
// run polling outside angular zone so it does not trigger change detection
|
|
1899
2034
|
this.pollActivitiesSubscription = this.pollActivities(caseIds).subscribe(
|
|
1900
2035
|
// process activity inside zone so it triggers change detection for activity.component.ts
|
|
1901
2036
|
(activities) => this.ngZone.run(() => {
|
|
1902
2037
|
activities.forEach((activity) => {
|
|
1903
|
-
// console.log('pushing activity: ' + activity.caseId);
|
|
1904
2038
|
requests.get(activity.caseId).next(activity);
|
|
1905
2039
|
});
|
|
1906
2040
|
}, (err) => {
|
|
1907
|
-
|
|
2041
|
+
this.logger.error('Error while polling activities.', { error: err });
|
|
1908
2042
|
Array.from(requests.values()).forEach((subject) => subject.error(err));
|
|
1909
2043
|
}));
|
|
1910
2044
|
});
|
|
@@ -3369,6 +3503,7 @@ __decorate([
|
|
|
3369
3503
|
|
|
3370
3504
|
// @dynamic
|
|
3371
3505
|
class CaseField {
|
|
3506
|
+
static logger = new StructuredLoggerService();
|
|
3372
3507
|
id;
|
|
3373
3508
|
hidden;
|
|
3374
3509
|
hiddenCannotChange;
|
|
@@ -3511,7 +3646,7 @@ class CaseField {
|
|
|
3511
3646
|
}
|
|
3512
3647
|
}
|
|
3513
3648
|
else {
|
|
3514
|
-
|
|
3649
|
+
CaseField.logger.error('Path too long, possible circular reference in case field hierarchy.');
|
|
3515
3650
|
return this.id;
|
|
3516
3651
|
}
|
|
3517
3652
|
}
|
|
@@ -3994,6 +4129,7 @@ class WorkbasketInput {
|
|
|
3994
4129
|
|
|
3995
4130
|
// @dynamic
|
|
3996
4131
|
class FieldsUtils {
|
|
4132
|
+
static logger = new StructuredLoggerService();
|
|
3997
4133
|
static caseLevelCaseFlagsFieldId = 'caseFlags';
|
|
3998
4134
|
static currencyPipe = new CurrencyPipe('en-GB');
|
|
3999
4135
|
static datePipe = new DatePipe(new FormatTranslatorService());
|
|
@@ -4258,11 +4394,7 @@ class FieldsUtils {
|
|
|
4258
4394
|
caseFieldType.complex_fields.forEach(field => {
|
|
4259
4395
|
try {
|
|
4260
4396
|
const isDynamicField = FieldsUtils.SERVER_RESPONSE_FIELD_TYPE_DYNAMIC_LIST_TYPE.indexOf(field.field_type.type) !== -1;
|
|
4261
|
-
|
|
4262
|
-
if (isDynamicMultiSelectField) {
|
|
4263
|
-
this.setDynamicMultiSelectListDefinition(field, rootCaseField);
|
|
4264
|
-
}
|
|
4265
|
-
else if (isDynamicField) {
|
|
4397
|
+
if (isDynamicField) {
|
|
4266
4398
|
const dynamicListValue = this.getDynamicListValue(rootCaseField.value, field.id);
|
|
4267
4399
|
if (dynamicListValue) {
|
|
4268
4400
|
const list_items = dynamicListValue[0].list_items;
|
|
@@ -4285,7 +4417,7 @@ class FieldsUtils {
|
|
|
4285
4417
|
}
|
|
4286
4418
|
}
|
|
4287
4419
|
catch (error) {
|
|
4288
|
-
|
|
4420
|
+
FieldsUtils.logger.error('Error setting dynamic list definition.', { error });
|
|
4289
4421
|
}
|
|
4290
4422
|
});
|
|
4291
4423
|
}
|
|
@@ -4295,29 +4427,6 @@ class FieldsUtils {
|
|
|
4295
4427
|
}
|
|
4296
4428
|
}
|
|
4297
4429
|
}
|
|
4298
|
-
static setDynamicMultiSelectListDefinition(field, rootCaseField) {
|
|
4299
|
-
const dynamicListValue = this.getDynamicListValue(rootCaseField.value, field.id);
|
|
4300
|
-
if (dynamicListValue) {
|
|
4301
|
-
const list_items = dynamicListValue.find(data => data?.list_items !== undefined)?.list_items;
|
|
4302
|
-
if (list_items !== undefined) {
|
|
4303
|
-
field.list_items = list_items;
|
|
4304
|
-
field.formatted_value = {
|
|
4305
|
-
...field.formatted_value,
|
|
4306
|
-
list_items
|
|
4307
|
-
};
|
|
4308
|
-
}
|
|
4309
|
-
if (rootCaseField.field_type.type !== FieldsUtils.SERVER_RESPONSE_FIELD_TYPE_COLLECTION) {
|
|
4310
|
-
const value = dynamicListValue[0]?.value;
|
|
4311
|
-
if (value !== undefined) {
|
|
4312
|
-
field.value = value;
|
|
4313
|
-
field.formatted_value = {
|
|
4314
|
-
...field.formatted_value,
|
|
4315
|
-
value
|
|
4316
|
-
};
|
|
4317
|
-
}
|
|
4318
|
-
}
|
|
4319
|
-
}
|
|
4320
|
-
}
|
|
4321
4430
|
static getDynamicListValue(jsonBlock, key) {
|
|
4322
4431
|
const data = jsonBlock ? this.getNestedFieldValues(jsonBlock, key, []) : [];
|
|
4323
4432
|
return data.length > 0 ? data : null;
|
|
@@ -4751,6 +4860,7 @@ const conditionSource = `{
|
|
|
4751
4860
|
var peg = generate(conditionSource);
|
|
4752
4861
|
|
|
4753
4862
|
class ConditionParser {
|
|
4863
|
+
static logger = new StructuredLoggerService();
|
|
4754
4864
|
/**
|
|
4755
4865
|
* Parse the raw formula and output structured condition data
|
|
4756
4866
|
* that can be used in evaluating show/hide logic
|
|
@@ -4927,14 +5037,14 @@ class ConditionParser {
|
|
|
4927
5037
|
return (fields[head][arrayIndex] !== undefined) ? this.findValueForComplexCondition(fields[head][arrayIndex]['value'], tail[0], tail.slice(1), dropNumberPath.join('_')) : null;
|
|
4928
5038
|
}
|
|
4929
5039
|
catch (e) {
|
|
4930
|
-
|
|
5040
|
+
this.logger.error('Error while parsing form array path index.', { error: e, pathIndex: pathTail[0] });
|
|
4931
5041
|
}
|
|
4932
5042
|
}
|
|
4933
5043
|
}
|
|
4934
5044
|
else {
|
|
4935
5045
|
// EXUI-2460 - if path present then show error, otherwise log message to stop unnecessary console errors
|
|
4936
|
-
path ?
|
|
4937
|
-
|
|
5046
|
+
path ? this.logger.error('Path in formArray should start with the expected field.', { expectedHead: head, path }) :
|
|
5047
|
+
this.logger.info('Path not present in formArray.');
|
|
4938
5048
|
}
|
|
4939
5049
|
}
|
|
4940
5050
|
static removeStarChar(str) {
|
|
@@ -5968,12 +6078,8 @@ class FieldTypeSanitiser {
|
|
|
5968
6078
|
break;
|
|
5969
6079
|
case FieldTypeSanitiser.FIELD_TYPE_COLLECTION:
|
|
5970
6080
|
if (Array.isArray(data[caseField.id])) {
|
|
5971
|
-
data[caseField.id].forEach((formElement
|
|
5972
|
-
|
|
5973
|
-
? caseField.value.find((item) => item?.id === formElement.id)
|
|
5974
|
-
: null;
|
|
5975
|
-
const collectionItem = matchingItem || (Array.isArray(caseField.value) ? caseField.value[index] : null);
|
|
5976
|
-
this.sanitiseLists(this.copyCaseFieldsWithCollectionData(caseField.field_type.collection_field_type.complex_fields, collectionItem?.value || collectionItem), formElement.value);
|
|
6081
|
+
data[caseField.id].forEach((formElement) => {
|
|
6082
|
+
this.sanitiseLists(caseField.field_type.collection_field_type.complex_fields, formElement.value);
|
|
5977
6083
|
});
|
|
5978
6084
|
}
|
|
5979
6085
|
break;
|
|
@@ -6013,25 +6119,6 @@ class FieldTypeSanitiser {
|
|
|
6013
6119
|
}
|
|
6014
6120
|
});
|
|
6015
6121
|
}
|
|
6016
|
-
copyCaseFieldsWithCollectionData(caseFields, collectionItemData) {
|
|
6017
|
-
return caseFields.map((field) => {
|
|
6018
|
-
const fieldData = collectionItemData?.[field.id];
|
|
6019
|
-
if (field.field_type.type === FieldTypeSanitiser.FIELD_TYPE_COMPLEX) {
|
|
6020
|
-
return {
|
|
6021
|
-
...field,
|
|
6022
|
-
field_type: {
|
|
6023
|
-
...field.field_type,
|
|
6024
|
-
complex_fields: this.copyCaseFieldsWithCollectionData(field.field_type.complex_fields, fieldData)
|
|
6025
|
-
}
|
|
6026
|
-
};
|
|
6027
|
-
}
|
|
6028
|
-
return this.isDynamicList(field.field_type.type) &&
|
|
6029
|
-
field.display_context !== 'HIDDEN' &&
|
|
6030
|
-
fieldData?.list_items !== undefined
|
|
6031
|
-
? { ...field, list_items: fieldData.list_items }
|
|
6032
|
-
: field;
|
|
6033
|
-
});
|
|
6034
|
-
}
|
|
6035
6122
|
isDynamicList(fieldType) {
|
|
6036
6123
|
return FieldTypeSanitiser.DYNAMIC_LIST_TYPE.indexOf(fieldType) !== -1;
|
|
6037
6124
|
}
|
|
@@ -8174,13 +8261,17 @@ class ArtificialDelayContext {
|
|
|
8174
8261
|
}
|
|
8175
8262
|
}
|
|
8176
8263
|
class RetryUtil {
|
|
8264
|
+
logger = new StructuredLoggerService();
|
|
8177
8265
|
pipeTimeoutMechanismOn(in$, preferredArtificialDelay, timeoutPeriods) {
|
|
8178
8266
|
const artificialDelayContext = new ArtificialDelayContext(preferredArtificialDelay);
|
|
8179
|
-
|
|
8180
|
-
|
|
8267
|
+
this.logger.info('Piping a retry mechanism with timeouts.', { timeoutPeriods });
|
|
8268
|
+
this.logger.info('Artificial delay setting resolved.', { artificialDelayApplied: artificialDelayContext.shouldApplyArtificialDelay() });
|
|
8181
8269
|
let out$ = in$;
|
|
8182
8270
|
if (artificialDelayContext.shouldApplyArtificialDelay()) {
|
|
8183
|
-
|
|
8271
|
+
this.logger.info('Preferred artificial delay selected.', {
|
|
8272
|
+
actualDelaySeconds: artificialDelayContext.getActualDelay(),
|
|
8273
|
+
preferredDelaySeconds: preferredArtificialDelay
|
|
8274
|
+
});
|
|
8184
8275
|
out$ = this.pipeArtificialDelayOn(out$, artificialDelayContext);
|
|
8185
8276
|
}
|
|
8186
8277
|
out$ = this.pipeTimeOutControlOn(out$, timeoutPeriods);
|
|
@@ -8189,36 +8280,35 @@ class RetryUtil {
|
|
|
8189
8280
|
}
|
|
8190
8281
|
pipeTimeOutControlOn(in$, timeoutPeriods) {
|
|
8191
8282
|
const timeOutAfterSeconds = timeoutPeriods[0];
|
|
8192
|
-
|
|
8283
|
+
this.logger.info('Piping timeout control.', { timeoutSeconds: timeOutAfterSeconds });
|
|
8193
8284
|
const out$ = in$.pipe(timeout(timeOutAfterSeconds * 1000));
|
|
8194
8285
|
return out$;
|
|
8195
8286
|
}
|
|
8196
8287
|
pipeRetryMechanismOn(in$, artificialDelayContext) {
|
|
8197
8288
|
const retryStrategy = (errors) => {
|
|
8198
8289
|
return errors.pipe(mergeMap((error, i) => {
|
|
8199
|
-
|
|
8200
|
-
console.error(error);
|
|
8290
|
+
this.logger.error('Mapping retry error.', { error, errorName: error?.name, attempt: i });
|
|
8201
8291
|
if (error?.name === 'TimeoutError' && i === 0) {
|
|
8202
8292
|
artificialDelayContext.turnOffArtificialDelays();
|
|
8203
|
-
|
|
8293
|
+
this.logger.info('Will retry after a timeout error.');
|
|
8204
8294
|
}
|
|
8205
8295
|
else {
|
|
8206
|
-
|
|
8296
|
+
this.logger.error('Will not retry request after error.', { error, errorName: error?.name, attempt: i });
|
|
8207
8297
|
throw error;
|
|
8208
8298
|
}
|
|
8209
8299
|
return timer(0);
|
|
8210
|
-
}), finalize(() =>
|
|
8300
|
+
}), finalize(() => undefined));
|
|
8211
8301
|
};
|
|
8212
8302
|
const out$ = in$.pipe(retryWhen(retryStrategy));
|
|
8213
8303
|
return out$;
|
|
8214
8304
|
}
|
|
8215
8305
|
pipeArtificialDelayOn(in$, artificialDelayContext) {
|
|
8216
8306
|
let out$ = in$.pipe(tap(() => {
|
|
8217
|
-
|
|
8307
|
+
this.logger.info('Artificial delay started.', { delaySeconds: artificialDelayContext.getActualDelay() });
|
|
8218
8308
|
}));
|
|
8219
8309
|
out$ = out$.pipe(delayWhen(() => timer(artificialDelayContext.getActualDelay() * 1000)));
|
|
8220
8310
|
out$ = out$.pipe(tap(() => {
|
|
8221
|
-
|
|
8311
|
+
this.logger.info('Artificial delay completed.', { delaySeconds: artificialDelayContext.getActualDelay() });
|
|
8222
8312
|
}));
|
|
8223
8313
|
return out$;
|
|
8224
8314
|
}
|
|
@@ -8431,6 +8521,7 @@ class SearchResultViewItemComparatorFactory {
|
|
|
8431
8521
|
class OrganisationService {
|
|
8432
8522
|
http;
|
|
8433
8523
|
appconfig;
|
|
8524
|
+
logger = new StructuredLoggerService();
|
|
8434
8525
|
constructor(http, appconfig) {
|
|
8435
8526
|
this.http = http;
|
|
8436
8527
|
this.appconfig = appconfig;
|
|
@@ -8463,7 +8554,7 @@ class OrganisationService {
|
|
|
8463
8554
|
const cacheTimeOut = this.appconfig.getCacheTimeOut();
|
|
8464
8555
|
this.organisations$ = this.http.get(url)
|
|
8465
8556
|
.pipe(map((orgs) => OrganisationService.mapOrganisation(orgs)), publishReplay(1, cacheTimeOut), refCount(), take(1), catchError(e => {
|
|
8466
|
-
|
|
8557
|
+
this.logger.error('Error while retrieving active organisations.', { error: e });
|
|
8467
8558
|
// Handle error and return blank Observable array
|
|
8468
8559
|
return of([]);
|
|
8469
8560
|
}));
|
|
@@ -9198,7 +9289,6 @@ class EventCompletionStateMachineService {
|
|
|
9198
9289
|
}
|
|
9199
9290
|
entryActionForStateFinal(state, context) {
|
|
9200
9291
|
// Final actions can be performed here, the state machine finished running
|
|
9201
|
-
console.log('FINAL');
|
|
9202
9292
|
}
|
|
9203
9293
|
addTransitionsForStateCheckTasksCanBeCompleted() {
|
|
9204
9294
|
// Complete event and task
|
|
@@ -9350,7 +9440,6 @@ class WorkAllocationService {
|
|
|
9350
9440
|
// explicitly eat away 401 error and 400 error
|
|
9351
9441
|
if (error && error.status && (error.status === 401 || error.status === 400)) {
|
|
9352
9442
|
// do nothing
|
|
9353
|
-
console.log('error status 401 or 400', error);
|
|
9354
9443
|
}
|
|
9355
9444
|
else {
|
|
9356
9445
|
return throwError(error);
|
|
@@ -9824,10 +9913,8 @@ class CaseEditComponent {
|
|
|
9824
9913
|
return form.value.event.id;
|
|
9825
9914
|
}
|
|
9826
9915
|
generateCaseEventData({ eventTrigger, form }) {
|
|
9827
|
-
const formData = this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields);
|
|
9828
|
-
this.formValueService.sanitiseDynamicLists(eventTrigger.case_fields, { data: formData });
|
|
9829
9916
|
const caseEventData = {
|
|
9830
|
-
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(
|
|
9917
|
+
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields), this.isCaseFlagSubmission)),
|
|
9831
9918
|
event: form.value.event
|
|
9832
9919
|
};
|
|
9833
9920
|
this.formValueService.clearNonCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
@@ -10208,6 +10295,7 @@ class CasesService {
|
|
|
10208
10295
|
loadingService;
|
|
10209
10296
|
sessionStorageService;
|
|
10210
10297
|
retryUtil;
|
|
10298
|
+
logger = new StructuredLoggerService();
|
|
10211
10299
|
// Internal (UI) API
|
|
10212
10300
|
static V2_MEDIATYPE_CASE_VIEW = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-case-view.v2+json';
|
|
10213
10301
|
static V2_MEDIATYPE_START_CASE_TRIGGER = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-start-case-trigger.v2+json;charset=UTF-8';
|
|
@@ -10262,12 +10350,11 @@ class CasesService {
|
|
|
10262
10350
|
let http$ = this.http.get(url, { headers, observe: 'body' });
|
|
10263
10351
|
const artificialDelay = this.appConfig.getTimeoutsCaseRetrievalArtificialDelay();
|
|
10264
10352
|
const timeoutPeriods = this.appConfig.getTimeoutsForCaseRetrieval();
|
|
10265
|
-
console.log(`Timeout periods: ${timeoutPeriods} seconds.`);
|
|
10266
10353
|
if (timeoutPeriods && timeoutPeriods.length > 0 && timeoutPeriods[0] > 0) {
|
|
10267
10354
|
http$ = this.retryUtil.pipeTimeoutMechanismOn(http$, artificialDelay, timeoutPeriods);
|
|
10268
10355
|
}
|
|
10269
10356
|
else {
|
|
10270
|
-
|
|
10357
|
+
this.logger.warn('Skipping retry mechanism for case view retrieval.');
|
|
10271
10358
|
}
|
|
10272
10359
|
http$ = this.pipeErrorProcessor(http$);
|
|
10273
10360
|
http$ = http$.pipe(finalize(() => this.finalizeGetCaseViewWith(caseId, loadingToken)));
|
|
@@ -10275,8 +10362,11 @@ class CasesService {
|
|
|
10275
10362
|
}
|
|
10276
10363
|
pipeErrorProcessor(in$) {
|
|
10277
10364
|
const out$ = in$.pipe(catchError(error => {
|
|
10278
|
-
|
|
10279
|
-
|
|
10365
|
+
this.logger.error('Error while getting case view with getCaseViewV2.', {
|
|
10366
|
+
error,
|
|
10367
|
+
errorName: error?.name,
|
|
10368
|
+
errorType: typeof error
|
|
10369
|
+
});
|
|
10280
10370
|
this.errorService.setError(error);
|
|
10281
10371
|
return throwError(error);
|
|
10282
10372
|
}));
|
|
@@ -11388,6 +11478,7 @@ class CaseEditPageComponent {
|
|
|
11388
11478
|
dialogRefAfterClosedSub;
|
|
11389
11479
|
saveDraftSub;
|
|
11390
11480
|
caseFormValidationErrorsSub;
|
|
11481
|
+
logger = new StructuredLoggerService();
|
|
11391
11482
|
static scrollToTop() {
|
|
11392
11483
|
window.scrollTo(0, 0);
|
|
11393
11484
|
}
|
|
@@ -11717,7 +11808,6 @@ class CaseEditPageComponent {
|
|
|
11717
11808
|
}
|
|
11718
11809
|
if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
|
|
11719
11810
|
this.addressService.setMandatoryError(false);
|
|
11720
|
-
console.log('Case Edit Error', this.caseEdit.error);
|
|
11721
11811
|
if (this.caseEdit.validPageList.findIndex(page => page.id === this.currentPage.id) === -1) {
|
|
11722
11812
|
this.caseEdit.validPageList.push(this.currentPage);
|
|
11723
11813
|
}
|
|
@@ -11930,7 +12020,7 @@ class CaseEditPageComponent {
|
|
|
11930
12020
|
this.formErrorService
|
|
11931
12021
|
.mapFieldErrors(this.caseEdit.error.details.field_errors, this.editForm?.controls?.['data'], 'validation');
|
|
11932
12022
|
}
|
|
11933
|
-
|
|
12023
|
+
this.logger.error('Case edit page handled an error.', { error });
|
|
11934
12024
|
}
|
|
11935
12025
|
resetErrors() {
|
|
11936
12026
|
this.caseEdit.error = null;
|
|
@@ -13032,6 +13122,7 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
13032
13122
|
} }
|
|
13033
13123
|
class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
13034
13124
|
isCompoundPipe;
|
|
13125
|
+
logger = new StructuredLoggerService();
|
|
13035
13126
|
writeComplexFieldComponent;
|
|
13036
13127
|
focusElementDirectives;
|
|
13037
13128
|
static REQUIRED_ERROR_MESSAGE = 'Enter a Postcode';
|
|
@@ -13084,7 +13175,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13084
13175
|
});
|
|
13085
13176
|
}, (error) => {
|
|
13086
13177
|
this.loadingAddresses = false;
|
|
13087
|
-
|
|
13178
|
+
this.logger.error('An error occurred retrieving addresses for postcode.', { error });
|
|
13088
13179
|
});
|
|
13089
13180
|
this.addressList.setValue(undefined);
|
|
13090
13181
|
this.refocusElement();
|
|
@@ -13184,7 +13275,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13184
13275
|
type: ViewChildren,
|
|
13185
13276
|
args: [FocusElementDirective]
|
|
13186
13277
|
}] }); })();
|
|
13187
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteAddressFieldComponent, { className: "WriteAddressFieldComponent", filePath: "lib/shared/components/palette/address/write-address-field.component.ts", lineNumber:
|
|
13278
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteAddressFieldComponent, { className: "WriteAddressFieldComponent", filePath: "lib/shared/components/palette/address/write-address-field.component.ts", lineNumber: 19 }); })();
|
|
13188
13279
|
|
|
13189
13280
|
var PaletteContext;
|
|
13190
13281
|
(function (PaletteContext) {
|
|
@@ -15175,6 +15266,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15175
15266
|
scrollToService;
|
|
15176
15267
|
profileNotifier;
|
|
15177
15268
|
cdRef;
|
|
15269
|
+
logger = new StructuredLoggerService();
|
|
15178
15270
|
caseFields = [];
|
|
15179
15271
|
formArray;
|
|
15180
15272
|
profile;
|
|
@@ -15322,7 +15414,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15322
15414
|
duration: 1000,
|
|
15323
15415
|
offset: -150,
|
|
15324
15416
|
})
|
|
15325
|
-
.subscribe(() => { },
|
|
15417
|
+
.subscribe(() => { }, error => this.logger.error('Error while scrolling collection item into view.', { error }));
|
|
15326
15418
|
}
|
|
15327
15419
|
this.focusLastItem();
|
|
15328
15420
|
}
|
|
@@ -15519,7 +15611,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15519
15611
|
type: ViewChildren,
|
|
15520
15612
|
args: ['collectionItem']
|
|
15521
15613
|
}] }); })();
|
|
15522
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCollectionFieldComponent, { className: "WriteCollectionFieldComponent", filePath: "lib/shared/components/palette/collection/write-collection-field.component.ts", lineNumber:
|
|
15614
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCollectionFieldComponent, { className: "WriteCollectionFieldComponent", filePath: "lib/shared/components/palette/collection/write-collection-field.component.ts", lineNumber: 34 }); })();
|
|
15523
15615
|
|
|
15524
15616
|
function ReadComplexFieldComponent_ccd_read_complex_field_raw_1_Template(rf, ctx) { if (rf & 1) {
|
|
15525
15617
|
i0.ɵɵelement(0, "ccd-read-complex-field-raw", 4);
|
|
@@ -15891,8 +15983,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15891
15983
|
this.jurisdictionId = parts[parts.indexOf('case-create') + 1];
|
|
15892
15984
|
this.caseTypeId = parts[parts.indexOf('case-create') + 2];
|
|
15893
15985
|
this.caseId = null;
|
|
15894
|
-
console.log(this.jurisdictionId);
|
|
15895
|
-
console.log(this.caseTypeId);
|
|
15896
15986
|
}
|
|
15897
15987
|
// use the documentManagement service to check if the document upload should use CDAM
|
|
15898
15988
|
if (this.documentManagement.isDocumentSecureModeEnabled()) {
|
|
@@ -21669,6 +21759,7 @@ const CIVIL_JURISDICTION = 'CIVIL';
|
|
|
21669
21759
|
class QueryManagementService {
|
|
21670
21760
|
router;
|
|
21671
21761
|
sessionStorageService;
|
|
21762
|
+
logger = new StructuredLoggerService();
|
|
21672
21763
|
caseQueriesCollections;
|
|
21673
21764
|
fieldId;
|
|
21674
21765
|
constructor(router, sessionStorageService) {
|
|
@@ -21688,7 +21779,7 @@ class QueryManagementService {
|
|
|
21688
21779
|
currentUserDetails = safeJsonParse(this.sessionStorageService.getItem(USER_DETAILS), {});
|
|
21689
21780
|
}
|
|
21690
21781
|
catch (e) {
|
|
21691
|
-
|
|
21782
|
+
this.logger.error('Could not parse USER_DETAILS from session storage.', { error: e });
|
|
21692
21783
|
currentUserDetails = {};
|
|
21693
21784
|
}
|
|
21694
21785
|
const isHmctsStaff = (this.isJudiciaryUser() || this.isInternalUser()) ? 'Yes' : 'No';
|
|
@@ -21698,7 +21789,7 @@ class QueryManagementService {
|
|
|
21698
21789
|
const isNewQuery = queryCreateContext === QueryCreateContext.NEW_QUERY; // Check if this is a new query
|
|
21699
21790
|
// Check if the field ID has been set dynamically
|
|
21700
21791
|
if (!this.fieldId) {
|
|
21701
|
-
|
|
21792
|
+
this.logger.error('Field ID for CaseQueriesCollection not found. Cannot proceed with data generation.');
|
|
21702
21793
|
this.router.navigate(['/', 'service-down']);
|
|
21703
21794
|
throw new Error('Field ID for CaseQueriesCollection not found. Aborting query data generation.');
|
|
21704
21795
|
}
|
|
@@ -21758,7 +21849,7 @@ class QueryManagementService {
|
|
|
21758
21849
|
setCaseQueriesCollectionData(eventData, queryCreateContext, caseDetails, messageId) {
|
|
21759
21850
|
const resolvedFieldId = this.resolveFieldId(eventData, queryCreateContext, caseDetails, messageId);
|
|
21760
21851
|
if (!resolvedFieldId) {
|
|
21761
|
-
|
|
21852
|
+
this.logger.error('Failed to resolve fieldId for CaseQueriesCollection. Cannot proceed.');
|
|
21762
21853
|
return;
|
|
21763
21854
|
}
|
|
21764
21855
|
this.fieldId = resolvedFieldId;
|
|
@@ -21778,7 +21869,7 @@ class QueryManagementService {
|
|
|
21778
21869
|
field.field_type.type === FIELD_TYPE_COMPLEX &&
|
|
21779
21870
|
field.display_context !== DISPLAY_CONTEXT_READONLY);
|
|
21780
21871
|
if (!candidateFields?.length) {
|
|
21781
|
-
|
|
21872
|
+
this.logger.warn('No editable CaseQueriesCollection fields found.');
|
|
21782
21873
|
return null;
|
|
21783
21874
|
}
|
|
21784
21875
|
const numberOfCollections = candidateFields.length;
|
|
@@ -21805,12 +21896,12 @@ class QueryManagementService {
|
|
|
21805
21896
|
}
|
|
21806
21897
|
}
|
|
21807
21898
|
else {
|
|
21808
|
-
|
|
21899
|
+
this.logger.error('Multiple CaseQueriesCollections are not supported yet for this jurisdiction.', { jurisdictionId });
|
|
21809
21900
|
return null;
|
|
21810
21901
|
}
|
|
21811
21902
|
}
|
|
21812
21903
|
// Step 4: Fallback — if none of the above succeeded
|
|
21813
|
-
|
|
21904
|
+
this.logger.warn('Could not determine fieldId for context.', { queryCreateContext });
|
|
21814
21905
|
return null;
|
|
21815
21906
|
}
|
|
21816
21907
|
getCaseQueriesCollectionFieldOrderFromWizardPages(eventData) {
|
|
@@ -22422,6 +22513,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22422
22513
|
queryManagementService;
|
|
22423
22514
|
errorNotifierService;
|
|
22424
22515
|
alertService;
|
|
22516
|
+
logger = new StructuredLoggerService();
|
|
22425
22517
|
RAISE_A_QUERY_EVENT_TRIGGER_ID = 'queryManagementRaiseQuery';
|
|
22426
22518
|
RESPOND_TO_QUERY_EVENT_TRIGGER_ID = 'queryManagementRespondQuery';
|
|
22427
22519
|
CASE_QUERIES_COLLECTION_ID = 'CaseQueriesCollection';
|
|
@@ -22509,7 +22601,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22509
22601
|
if (error.status !== 401 && error.status !== 403) {
|
|
22510
22602
|
this.errorNotifierService.announceError(error);
|
|
22511
22603
|
this.alertService.error({ phrase: error.message });
|
|
22512
|
-
|
|
22604
|
+
this.logger.error('Error occurred while fetching event data.', { error });
|
|
22513
22605
|
this.callbackErrorsSubject.next(error);
|
|
22514
22606
|
}
|
|
22515
22607
|
else {
|
|
@@ -22562,7 +22654,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22562
22654
|
});
|
|
22563
22655
|
}
|
|
22564
22656
|
else {
|
|
22565
|
-
|
|
22657
|
+
this.logger.error('No task to complete was found.');
|
|
22566
22658
|
this.errorMessages = [
|
|
22567
22659
|
{
|
|
22568
22660
|
title: 'Error',
|
|
@@ -22606,7 +22698,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22606
22698
|
this.isSubmitting = false;
|
|
22607
22699
|
}
|
|
22608
22700
|
handleError(error) {
|
|
22609
|
-
|
|
22701
|
+
this.logger.error('Error in query management API calls.', { error });
|
|
22610
22702
|
this.isSubmitting = false;
|
|
22611
22703
|
if (this.isServiceErrorFound(error)) {
|
|
22612
22704
|
this.error = null;
|
|
@@ -22634,7 +22726,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22634
22726
|
}
|
|
22635
22727
|
setCaseQueriesCollectionData() {
|
|
22636
22728
|
if (!this.eventData) {
|
|
22637
|
-
|
|
22729
|
+
this.logger.warn('Event data not available; skipping collection setup.');
|
|
22638
22730
|
}
|
|
22639
22731
|
this.queryManagementService.setCaseQueriesCollectionData(this.eventData, this.queryCreateContext, this.caseDetails, this.messageId);
|
|
22640
22732
|
}
|
|
@@ -22669,7 +22761,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
22669
22761
|
}], createEventResponse: [{
|
|
22670
22762
|
type: Output
|
|
22671
22763
|
}] }); })();
|
|
22672
|
-
(() => { (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:
|
|
22764
|
+
(() => { (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 }); })();
|
|
22673
22765
|
|
|
22674
22766
|
function QueryDetailsComponent_ng_container_0_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
22675
22767
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -23730,6 +23822,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23730
23822
|
class QueryWriteRaiseQueryComponent {
|
|
23731
23823
|
queryManagementService;
|
|
23732
23824
|
route;
|
|
23825
|
+
logger = new StructuredLoggerService();
|
|
23733
23826
|
formGroup;
|
|
23734
23827
|
submitted;
|
|
23735
23828
|
caseDetails;
|
|
@@ -23777,7 +23870,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
23777
23870
|
}
|
|
23778
23871
|
setCaseQueriesCollectionData() {
|
|
23779
23872
|
if (!this.eventData) {
|
|
23780
|
-
|
|
23873
|
+
this.logger.warn('Event data not available; skipping collection setup.');
|
|
23781
23874
|
return false;
|
|
23782
23875
|
}
|
|
23783
23876
|
this.queryManagementService.setCaseQueriesCollectionData(this.eventData, this.queryCreateContext, this.caseDetails, this.messageId);
|
|
@@ -23839,7 +23932,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
23839
23932
|
}], queryDataCreated: [{
|
|
23840
23933
|
type: Output
|
|
23841
23934
|
}] }); })();
|
|
23842
|
-
(() => { (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:
|
|
23935
|
+
(() => { (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 }); })();
|
|
23843
23936
|
|
|
23844
23937
|
function QueryWriteRespondToQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
|
|
23845
23938
|
i0.ɵɵelement(0, "ccd-query-case-details-header", 8);
|
|
@@ -23922,6 +24015,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
23922
24015
|
caseNotifier;
|
|
23923
24016
|
route;
|
|
23924
24017
|
queryManagementService;
|
|
24018
|
+
logger = new StructuredLoggerService();
|
|
23925
24019
|
queryItem;
|
|
23926
24020
|
formGroup;
|
|
23927
24021
|
queryCreateContext;
|
|
@@ -23956,7 +24050,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
23956
24050
|
this.caseDetails = caseDetails;
|
|
23957
24051
|
},
|
|
23958
24052
|
error: (err) => {
|
|
23959
|
-
|
|
24053
|
+
this.logger.error('Error retrieving case details.', { error: err });
|
|
23960
24054
|
}
|
|
23961
24055
|
});
|
|
23962
24056
|
}
|
|
@@ -23966,19 +24060,19 @@ class QueryWriteRespondToQueryComponent {
|
|
|
23966
24060
|
return;
|
|
23967
24061
|
}
|
|
23968
24062
|
if (!this.caseQueriesCollections[0]) {
|
|
23969
|
-
|
|
24063
|
+
this.logger.error('Case queries collection is undefined.');
|
|
23970
24064
|
return;
|
|
23971
24065
|
}
|
|
23972
24066
|
this.messageId = this.route.snapshot.params?.dataid;
|
|
23973
24067
|
if (!this.messageId) {
|
|
23974
|
-
|
|
24068
|
+
this.logger.warn('No messageId found in route params.', { routeParams: this.route.snapshot.params });
|
|
23975
24069
|
return;
|
|
23976
24070
|
}
|
|
23977
24071
|
const allMessages = this.caseQueriesCollections
|
|
23978
24072
|
.flatMap((caseData) => caseData?.caseMessages || []);
|
|
23979
24073
|
const matchingMessage = allMessages.find((message) => message?.value?.id === this.messageId)?.value;
|
|
23980
24074
|
if (!matchingMessage) {
|
|
23981
|
-
|
|
24075
|
+
this.logger.warn('No matching message found for ID.', { messageId: this.messageId });
|
|
23982
24076
|
return;
|
|
23983
24077
|
}
|
|
23984
24078
|
const caseQueriesCollections = this.caseQueriesCollections.find((collection) => collection?.caseMessages.find((c) => c.value.id === this.messageId));
|
|
@@ -24002,7 +24096,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
24002
24096
|
}
|
|
24003
24097
|
setCaseQueriesCollectionData() {
|
|
24004
24098
|
if (!this.eventData) {
|
|
24005
|
-
|
|
24099
|
+
this.logger.warn('Event data not available; skipping collection setup.');
|
|
24006
24100
|
return false;
|
|
24007
24101
|
}
|
|
24008
24102
|
this.queryManagementService.setCaseQueriesCollectionData(this.eventData, this.queryCreateContext, this.caseDetails, this.messageId);
|
|
@@ -24067,7 +24161,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
24067
24161
|
}], hasRespondedToQueryTask: [{
|
|
24068
24162
|
type: Output
|
|
24069
24163
|
}] }); })();
|
|
24070
|
-
(() => { (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:
|
|
24164
|
+
(() => { (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 }); })();
|
|
24071
24165
|
|
|
24072
24166
|
function QueryConfirmationComponent_main_0_ng_container_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
24073
24167
|
i0.ɵɵelementStart(0, "h1", 8);
|
|
@@ -24217,6 +24311,7 @@ function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24217
24311
|
class QueryConfirmationComponent {
|
|
24218
24312
|
route;
|
|
24219
24313
|
sessionStorageService;
|
|
24314
|
+
logger = new StructuredLoggerService();
|
|
24220
24315
|
queryCreateContext;
|
|
24221
24316
|
callbackConfirmationMessageText = {};
|
|
24222
24317
|
eventResponseData;
|
|
@@ -24247,7 +24342,7 @@ class QueryConfirmationComponent {
|
|
|
24247
24342
|
resolveHmctsStaffRaisedQuery() {
|
|
24248
24343
|
const messageId = this.route.snapshot.params.dataid;
|
|
24249
24344
|
if (!this.eventResponseData) {
|
|
24250
|
-
|
|
24345
|
+
this.logger.warn('No event response data available.');
|
|
24251
24346
|
return;
|
|
24252
24347
|
}
|
|
24253
24348
|
this.queryListData = new QueryListData(this.eventResponseData);
|
|
@@ -24261,7 +24356,7 @@ class QueryConfirmationComponent {
|
|
|
24261
24356
|
?.flatMap((p) => p.children || [])
|
|
24262
24357
|
.find((c) => c.parentId === messageId);
|
|
24263
24358
|
if (!child) {
|
|
24264
|
-
|
|
24359
|
+
this.logger.warn('No matching child found for messageId.', { messageId });
|
|
24265
24360
|
return;
|
|
24266
24361
|
}
|
|
24267
24362
|
const parentItem = this.queryListData?.queries
|
|
@@ -34385,6 +34480,7 @@ class WorkbasketFiltersComponent {
|
|
|
34385
34480
|
static PARAM_JURISDICTION = 'jurisdiction';
|
|
34386
34481
|
static PARAM_CASE_TYPE = 'case-type';
|
|
34387
34482
|
static PARAM_CASE_STATE = 'case-state';
|
|
34483
|
+
logger = new StructuredLoggerService();
|
|
34388
34484
|
caseFields;
|
|
34389
34485
|
jurisdictions;
|
|
34390
34486
|
defaults;
|
|
@@ -34558,9 +34654,7 @@ class WorkbasketFiltersComponent {
|
|
|
34558
34654
|
}
|
|
34559
34655
|
});
|
|
34560
34656
|
this.getCaseFields();
|
|
34561
|
-
}, error => {
|
|
34562
|
-
console.log('Workbasket input fields request will be discarded reason: ', error.message);
|
|
34563
|
-
});
|
|
34657
|
+
}, error => this.logger.error('Workbasket input fields request will be discarded.', { error }));
|
|
34564
34658
|
}
|
|
34565
34659
|
}
|
|
34566
34660
|
else {
|
|
@@ -34820,7 +34914,7 @@ class WorkbasketFiltersComponent {
|
|
|
34820
34914
|
}], onReset: [{
|
|
34821
34915
|
type: Output
|
|
34822
34916
|
}] }); })();
|
|
34823
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber:
|
|
34917
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber: 28 }); })();
|
|
34824
34918
|
|
|
34825
34919
|
class WorkbasketFiltersModule {
|
|
34826
34920
|
static ɵfac = function WorkbasketFiltersModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkbasketFiltersModule)(); };
|
|
@@ -35210,6 +35304,7 @@ class CaseHistoryComponent {
|
|
|
35210
35304
|
orderService;
|
|
35211
35305
|
caseNotifier;
|
|
35212
35306
|
caseHistoryService;
|
|
35307
|
+
logger = new StructuredLoggerService();
|
|
35213
35308
|
static PARAM_EVENT_ID = 'eid';
|
|
35214
35309
|
static ERROR_MESSAGE = 'No case history to show';
|
|
35215
35310
|
event;
|
|
@@ -35242,7 +35337,7 @@ class CaseHistoryComponent {
|
|
|
35242
35337
|
this.tabs = this.orderService.sort(this.caseHistory.tabs);
|
|
35243
35338
|
this.tabs = this.sortTabFieldsAndFilterTabs(this.tabs);
|
|
35244
35339
|
}), catchError(error => {
|
|
35245
|
-
|
|
35340
|
+
this.logger.error('Error while getting case history.', { error });
|
|
35246
35341
|
if (error.status !== 401 && error.status !== 403) {
|
|
35247
35342
|
this.alertService.error(error.message);
|
|
35248
35343
|
}
|
|
@@ -35276,7 +35371,7 @@ class CaseHistoryComponent {
|
|
|
35276
35371
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: AlertService }, { type: OrderService }, { type: CaseNotifier }, { type: CaseHistoryService }], { event: [{
|
|
35277
35372
|
type: Input
|
|
35278
35373
|
}] }); })();
|
|
35279
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseHistoryComponent, { className: "CaseHistoryComponent", filePath: "lib/shared/components/case-history/case-history.component.ts", lineNumber:
|
|
35374
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseHistoryComponent, { className: "CaseHistoryComponent", filePath: "lib/shared/components/case-history/case-history.component.ts", lineNumber: 22 }); })();
|
|
35280
35375
|
|
|
35281
35376
|
class CaseHistoryModule {
|
|
35282
35377
|
static ɵfac = function CaseHistoryModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseHistoryModule)(); };
|
|
@@ -35500,11 +35595,9 @@ class CaseResolver {
|
|
|
35500
35595
|
const currentUrl = this.router.url ?? '';
|
|
35501
35596
|
// Prevent resolving if eventId=queryManagementRespondQuery is in the URL
|
|
35502
35597
|
if (currentUrl.includes(CaseResolver.EVENT_ID_QM_RESPOND_TO_QUERY)) {
|
|
35503
|
-
console.info('Skipping resolve for event queryManagementRespondQuery.');
|
|
35504
35598
|
this.goToDefaultPage();
|
|
35505
35599
|
}
|
|
35506
35600
|
if (!cid) {
|
|
35507
|
-
console.info('No case ID available in the route. Will navigate to case list.');
|
|
35508
35601
|
// when redirected to case view after a case created, and the user has no READ access,
|
|
35509
35602
|
// the post returns no id
|
|
35510
35603
|
this.navigateToCaseList();
|
|
@@ -35561,8 +35654,6 @@ class CaseResolver {
|
|
|
35561
35654
|
}), catchError(error => this.processErrorInCaseFetch(error, cid))).toPromise();
|
|
35562
35655
|
}
|
|
35563
35656
|
processErrorInCaseFetch(error, caseReference) {
|
|
35564
|
-
console.error('!!! processErrorInCaseFetch !!!');
|
|
35565
|
-
console.error(error);
|
|
35566
35657
|
// TODO Should be logged to remote logging infrastructure
|
|
35567
35658
|
if (error.status === 400) {
|
|
35568
35659
|
this.router.navigate(['/search/noresults']);
|
|
@@ -35590,7 +35681,6 @@ class CaseResolver {
|
|
|
35590
35681
|
}
|
|
35591
35682
|
// as discussed for EUI-5456, need functionality to go to default page
|
|
35592
35683
|
goToDefaultPage() {
|
|
35593
|
-
console.info('Going to default page!');
|
|
35594
35684
|
const userDetails = safeJsonParse(this.sessionStorage.getItem(USER_DETAILS));
|
|
35595
35685
|
userDetails && userDetails.roles
|
|
35596
35686
|
&& !userDetails.roles.includes(PUI_CASE_MANAGER)
|
|
@@ -35788,7 +35878,6 @@ class CaseEventTriggerComponent {
|
|
|
35788
35878
|
if (this.activityPollingService.isEnabled) {
|
|
35789
35879
|
this.ngZone.runOutsideAngular(() => {
|
|
35790
35880
|
this.activitySubscription = this.postEditActivity().subscribe(() => {
|
|
35791
|
-
// console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
|
|
35792
35881
|
});
|
|
35793
35882
|
});
|
|
35794
35883
|
}
|
|
@@ -35959,8 +36048,6 @@ class CaseViewComponent {
|
|
|
35959
36048
|
}
|
|
35960
36049
|
checkErrorGettingCaseView(error) {
|
|
35961
36050
|
// TODO Should be logged to remote logging infrastructure
|
|
35962
|
-
console.error('Called checkErrorGettingCaseView.');
|
|
35963
|
-
console.error(error);
|
|
35964
36051
|
if (error.status !== 401 && error.status !== 403) {
|
|
35965
36052
|
this.alertService.error(error.message);
|
|
35966
36053
|
}
|
|
@@ -37312,7 +37399,6 @@ class CaseViewerComponent {
|
|
|
37312
37399
|
}
|
|
37313
37400
|
else {
|
|
37314
37401
|
this.caseSubscription = this.caseNotifier.caseView.subscribe((caseDetails) => {
|
|
37315
|
-
console.info('Setting the case into case viewer component as retrieved from XHR request.');
|
|
37316
37402
|
this.caseDetails = caseDetails;
|
|
37317
37403
|
this.setUserAccessType(this.caseDetails);
|
|
37318
37404
|
});
|
|
@@ -38173,9 +38259,7 @@ class EventStartStateMachineService {
|
|
|
38173
38259
|
if (!task) {
|
|
38174
38260
|
task = context.tasks[0];
|
|
38175
38261
|
}
|
|
38176
|
-
const taskStr = JSON.stringify(task);
|
|
38177
38262
|
this.abstractConfig?.logMessage?.(`entryActionForStateOneTaskAssignedToUser: task_state ${task?.task_state} for task id ${task?.id}`);
|
|
38178
|
-
console.log('entryActionForStateOneTaskAssignedToUser: setting client context task_data to ' + taskStr);
|
|
38179
38263
|
// Store task to session
|
|
38180
38264
|
const currentLanguage = context.cookieService.getCookie('exui-preferred-language');
|
|
38181
38265
|
const clientContext = {
|
|
@@ -38216,7 +38300,6 @@ class EventStartStateMachineService {
|
|
|
38216
38300
|
}
|
|
38217
38301
|
finalAction(state) {
|
|
38218
38302
|
// Final actions can be performed here, the state machine finished running
|
|
38219
|
-
// console.log('FINAL', state);
|
|
38220
38303
|
return;
|
|
38221
38304
|
}
|
|
38222
38305
|
addTransitionsForStateCheckForMatchingTasks() {
|
|
@@ -40176,6 +40259,7 @@ class SearchFiltersComponent {
|
|
|
40176
40259
|
orderService;
|
|
40177
40260
|
jurisdictionService;
|
|
40178
40261
|
windowService;
|
|
40262
|
+
logger = new StructuredLoggerService();
|
|
40179
40263
|
PARAM_JURISDICTION = 'jurisdiction';
|
|
40180
40264
|
PARAM_CASE_TYPE = 'case-type';
|
|
40181
40265
|
PARAM_CASE_STATE = 'case-state';
|
|
@@ -40271,7 +40355,7 @@ class SearchFiltersComponent {
|
|
|
40271
40355
|
}
|
|
40272
40356
|
}
|
|
40273
40357
|
catch (e) {
|
|
40274
|
-
|
|
40358
|
+
this.logger.error('Failed to retrieve jurisdiction from local storage.', { error: e });
|
|
40275
40359
|
this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, null);
|
|
40276
40360
|
}
|
|
40277
40361
|
}
|
|
@@ -40325,9 +40409,7 @@ class SearchFiltersComponent {
|
|
|
40325
40409
|
}
|
|
40326
40410
|
});
|
|
40327
40411
|
this.getCaseFields();
|
|
40328
|
-
}, error => {
|
|
40329
|
-
console.log('Search input fields request will be discarded reason: ', error.message);
|
|
40330
|
-
});
|
|
40412
|
+
}, error => this.logger.error('Search input fields request will be discarded.', { error }));
|
|
40331
40413
|
}
|
|
40332
40414
|
isJurisdictionSelected() {
|
|
40333
40415
|
return this.selected.jurisdiction === null ||
|
|
@@ -40464,7 +40546,7 @@ class SearchFiltersComponent {
|
|
|
40464
40546
|
}], onJurisdiction: [{
|
|
40465
40547
|
type: Output
|
|
40466
40548
|
}] }); })();
|
|
40467
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchFiltersComponent, { className: "SearchFiltersComponent", filePath: "lib/shared/components/search-filters/search-filters.component.ts", lineNumber:
|
|
40549
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchFiltersComponent, { className: "SearchFiltersComponent", filePath: "lib/shared/components/search-filters/search-filters.component.ts", lineNumber: 28 }); })();
|
|
40468
40550
|
|
|
40469
40551
|
function SearchFiltersWrapperComponent_ccd_search_filters_0_Template(rf, ctx) { if (rf & 1) {
|
|
40470
40552
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -41680,5 +41762,5 @@ class TestRouteSnapshotBuilder {
|
|
|
41680
41762
|
* Generated bundle index. Do not edit.
|
|
41681
41763
|
*/
|
|
41682
41764
|
|
|
41683
|
-
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 };
|
|
41765
|
+
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 };
|
|
41684
41766
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|