@hmcts/ccd-case-ui-toolkit 7.3.0-prerelease → 7.3.0
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 +644 -575
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +27 -101
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2438,106 +2438,6 @@ declare class FieldTypeSanitiser {
|
|
|
2438
2438
|
|
|
2439
2439
|
declare class FormValueService {
|
|
2440
2440
|
private readonly fieldTypeSanitiser;
|
|
2441
|
-
/**
|
|
2442
|
-
* Gets value of a field based on fieldKey which is a dot separated reference to value and collection index.
|
|
2443
|
-
* There are two exceptions:
|
|
2444
|
-
* 1) In case of a multiselect being identified as a leaf a '---LABEL' suffix is appended to the key and values of that key are returned
|
|
2445
|
-
* form= { 'list': ['code1', 'code2'],
|
|
2446
|
-
* 'list---LABEL': ['label1', 'label2'] },
|
|
2447
|
-
* fieldKey=list,
|
|
2448
|
-
* colIndex=0,
|
|
2449
|
-
* value=label1, label2
|
|
2450
|
-
* 2) In case of a collection of simple fields is identified as a leaf all values are joined seperated by a comma
|
|
2451
|
-
* form= { 'collection': [{ 'value': 'value1' }, { 'value': 'value2' }] }
|
|
2452
|
-
* fieldKey=collection
|
|
2453
|
-
* colIndex=1
|
|
2454
|
-
* value=value1, value2
|
|
2455
|
-
*
|
|
2456
|
-
* Other examples:
|
|
2457
|
-
* 1) simple field reference: form={ 'PersonFirstName': 'John' }, fieldKey=PersonFirstName, value=John
|
|
2458
|
-
* 2) complex field reference:
|
|
2459
|
-
* form= { complex1': { 'simple11': 'value11', 'simple12': 'value12', 'complex2': { 'simple21': 'value21' } }},
|
|
2460
|
-
* fieldKey=complex1.complex2.simple21
|
|
2461
|
-
* colIndex=0,
|
|
2462
|
-
* value=value21
|
|
2463
|
-
* 3) complex field with collection field with complex field reference:
|
|
2464
|
-
* form= { 'complex1': {
|
|
2465
|
-
* 'collection1': [
|
|
2466
|
-
* { 'value': {
|
|
2467
|
-
* 'complex2': {
|
|
2468
|
-
* 'simple1': 'value1',
|
|
2469
|
-
* 'complex3': {
|
|
2470
|
-
* 'complex4': {
|
|
2471
|
-
* 'simple2': 'value12'
|
|
2472
|
-
* }
|
|
2473
|
-
* }
|
|
2474
|
-
* }
|
|
2475
|
-
* }
|
|
2476
|
-
* },
|
|
2477
|
-
* { 'value': {
|
|
2478
|
-
* 'complex2': {
|
|
2479
|
-
* 'simple1': 'value2',
|
|
2480
|
-
* 'complex3': {
|
|
2481
|
-
* 'complex4': {
|
|
2482
|
-
* 'simple2': 'value21'
|
|
2483
|
-
* }
|
|
2484
|
-
* }
|
|
2485
|
-
* }
|
|
2486
|
-
* }
|
|
2487
|
-
* },
|
|
2488
|
-
* { 'value': {
|
|
2489
|
-
* 'complex2': {
|
|
2490
|
-
* 'simple1': 'value3',
|
|
2491
|
-
* 'complex3': {
|
|
2492
|
-
* 'complex4': {
|
|
2493
|
-
* 'simple2': 'value31'
|
|
2494
|
-
* }
|
|
2495
|
-
* }
|
|
2496
|
-
* }
|
|
2497
|
-
* }
|
|
2498
|
-
* }
|
|
2499
|
-
* ]}}
|
|
2500
|
-
* fieldKey=complex1.collection1.complex2.complex3.complex4.simple2
|
|
2501
|
-
* colIndex=2,
|
|
2502
|
-
* value=value21
|
|
2503
|
-
* 4) collection of complex types
|
|
2504
|
-
* form= { 'collection1': [
|
|
2505
|
-
* { 'value': {'complex1': {
|
|
2506
|
-
* 'simple1': 'value11',
|
|
2507
|
-
* 'complex2': {
|
|
2508
|
-
* 'complex3': {
|
|
2509
|
-
* 'simple2': 'value12'
|
|
2510
|
-
* }
|
|
2511
|
-
* }
|
|
2512
|
-
* }}
|
|
2513
|
-
* },
|
|
2514
|
-
* { 'value': {'complex1': {
|
|
2515
|
-
* 'simple1': 'value21',
|
|
2516
|
-
* 'complex2': {
|
|
2517
|
-
* 'complex3': {
|
|
2518
|
-
* 'simple2': 'value22'
|
|
2519
|
-
* }
|
|
2520
|
-
* }
|
|
2521
|
-
* }}
|
|
2522
|
-
* },
|
|
2523
|
-
* { 'value': {'complex1': {
|
|
2524
|
-
* 'simple1': 'value31',
|
|
2525
|
-
* 'complex2': {
|
|
2526
|
-
* 'complex3': {
|
|
2527
|
-
* 'simple2': 'value32'
|
|
2528
|
-
* }
|
|
2529
|
-
* }
|
|
2530
|
-
* }}
|
|
2531
|
-
* }
|
|
2532
|
-
* ]}
|
|
2533
|
-
* fieldKey=collection1.complex1.complex2.complex3.simple2
|
|
2534
|
-
* colIndex=2
|
|
2535
|
-
* value=value32
|
|
2536
|
-
*
|
|
2537
|
-
* If key is pointing at a complex or collection leaf (not simple, collection of simple or multiselect types) then undefined is returned.
|
|
2538
|
-
* Also no key referring a leaf that is contained within collection will contain index number. The index is passed as an argument to the
|
|
2539
|
-
* method.
|
|
2540
|
-
*/
|
|
2541
2441
|
static getFieldValue(form: any, fieldKey: any, colIndex: any): any;
|
|
2542
2442
|
/**
|
|
2543
2443
|
* A recursive method to remove anything with a `---LABEL` suffix.
|
|
@@ -3034,6 +2934,7 @@ declare class LabelFieldComponent {
|
|
|
3034
2934
|
}
|
|
3035
2935
|
|
|
3036
2936
|
declare class CasePaymentHistoryViewerFieldComponent extends PaymentField {
|
|
2937
|
+
readonly PAYMENT_HISTORY_WARNING = "Recent payments may take a few minutes to reflect here.";
|
|
3037
2938
|
constructor(appConfig: AbstractAppConfig, sessionStorage: SessionStorageService);
|
|
3038
2939
|
static ɵfac: i0.ɵɵFactoryDeclaration<CasePaymentHistoryViewerFieldComponent, never>;
|
|
3039
2940
|
static ɵcmp: i0.ɵɵComponentDeclaration<CasePaymentHistoryViewerFieldComponent, "ccd-case-payment-history-viewer-field", never, {}, {}, never, never, false, never>;
|
|
@@ -3676,6 +3577,7 @@ declare class WriteDocumentFieldComponent extends AbstractFieldWriteComponent im
|
|
|
3676
3577
|
jurisdictionId: string;
|
|
3677
3578
|
caseTypeId: string;
|
|
3678
3579
|
caseTypeExclusions: string;
|
|
3580
|
+
caseId: string;
|
|
3679
3581
|
fileSecureModeOn: boolean;
|
|
3680
3582
|
constructor(appConfig: AbstractAppConfig, caseNotifier: CaseNotifier, documentManagement: DocumentManagementService, dialog: MatLegacyDialog, fileUploadStateService: FileUploadStateService, jurisdictionService: JurisdictionService);
|
|
3681
3583
|
ngOnInit(): void;
|
|
@@ -5056,6 +4958,7 @@ declare class ReadQueryManagementFieldComponent extends AbstractFieldReadCompone
|
|
|
5056
4958
|
setQuery(query: any): void;
|
|
5057
4959
|
backToQueryListPage(): void;
|
|
5058
4960
|
isInternalUser(): boolean;
|
|
4961
|
+
isJudiciaryUser(): boolean;
|
|
5059
4962
|
getMessageType(query: any): string | undefined;
|
|
5060
4963
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReadQueryManagementFieldComponent, never>;
|
|
5061
4964
|
static ɵcmp: i0.ɵɵComponentDeclaration<ReadQueryManagementFieldComponent, "ccd-read-query-management-field", never, {}, {}, never, never, false, never>;
|
|
@@ -5339,6 +5242,8 @@ declare class QualifyingQuestionOptionsComponent implements OnInit {
|
|
|
5339
5242
|
questionSelected: EventEmitter<QualifyingQuestion>;
|
|
5340
5243
|
qualifyingQuestionsErrorMessage: typeof QualifyingQuestionsErrorMessage;
|
|
5341
5244
|
caseId: string;
|
|
5245
|
+
jurisdiction: string;
|
|
5246
|
+
caseType: string;
|
|
5342
5247
|
constructor(route: ActivatedRoute, router: Router, qualifyingQuestionService: QualifyingQuestionService);
|
|
5343
5248
|
ngOnInit(): void;
|
|
5344
5249
|
click(): void;
|
|
@@ -5376,6 +5281,8 @@ declare class QueryConfirmationComponent implements OnInit {
|
|
|
5376
5281
|
[key: string]: string;
|
|
5377
5282
|
};
|
|
5378
5283
|
caseId: string;
|
|
5284
|
+
jurisdiction: string;
|
|
5285
|
+
caseType: string;
|
|
5379
5286
|
queryCreateContextEnum: typeof QueryCreateContext;
|
|
5380
5287
|
constructor(route: ActivatedRoute);
|
|
5381
5288
|
ngOnInit(): void;
|
|
@@ -5420,6 +5327,8 @@ declare class CaseEventCompletionTaskCancelledComponent implements OnInit {
|
|
|
5420
5327
|
context: EventCompletionStateMachineContext;
|
|
5421
5328
|
notifyEventCompletionCancelled: EventEmitter<boolean>;
|
|
5422
5329
|
caseId: string;
|
|
5330
|
+
jurisdiction: string;
|
|
5331
|
+
caseType: string;
|
|
5423
5332
|
ngOnInit(): void;
|
|
5424
5333
|
onContinue(): void;
|
|
5425
5334
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaseEventCompletionTaskCancelledComponent, never>;
|
|
@@ -5438,6 +5347,8 @@ declare class CaseEventCompletionTaskReassignedComponent implements OnInit, OnDe
|
|
|
5438
5347
|
subscription: Subscription;
|
|
5439
5348
|
caseworkerSubscription: Subscription;
|
|
5440
5349
|
judicialworkerSubscription: Subscription;
|
|
5350
|
+
jurisdiction: string;
|
|
5351
|
+
caseType: string;
|
|
5441
5352
|
constructor(sessionStorageService: SessionStorageService, judicialworkerService: JudicialworkerService, caseworkerService: CaseworkerService);
|
|
5442
5353
|
ngOnInit(): void;
|
|
5443
5354
|
ngOnDestroy(): void;
|
|
@@ -6897,13 +6808,14 @@ declare class EventTriggerResolver implements Resolve<CaseEventTrigger> {
|
|
|
6897
6808
|
private appConfig;
|
|
6898
6809
|
private errorNotifier;
|
|
6899
6810
|
private readonly loadingService;
|
|
6811
|
+
private readonly sessionStorageService;
|
|
6900
6812
|
static readonly PARAM_CASE_ID = "cid";
|
|
6901
6813
|
static readonly PARAM_EVENT_ID = "eid";
|
|
6902
6814
|
static readonly IGNORE_WARNING = "ignoreWarning";
|
|
6903
6815
|
private static readonly IGNORE_WARNING_VALUES;
|
|
6904
6816
|
private cachedEventTrigger;
|
|
6905
6817
|
private cachedProfile;
|
|
6906
|
-
constructor(casesService: CasesService, alertService: AlertService, profileService: ProfileService, profileNotifier: ProfileNotifier, router: Router, appConfig: AbstractAppConfig, errorNotifier: ErrorNotifierService, loadingService: LoadingService);
|
|
6818
|
+
constructor(casesService: CasesService, alertService: AlertService, profileService: ProfileService, profileNotifier: ProfileNotifier, router: Router, appConfig: AbstractAppConfig, errorNotifier: ErrorNotifierService, loadingService: LoadingService, sessionStorageService: SessionStorageService);
|
|
6907
6819
|
resolve(route: ActivatedRouteSnapshot): Promise<CaseEventTrigger>;
|
|
6908
6820
|
private isRootTriggerEventRoute;
|
|
6909
6821
|
resetCachedEventTrigger(): void;
|
|
@@ -6960,6 +6872,7 @@ declare class CaseEventTriggerComponent implements OnInit, OnDestroy {
|
|
|
6960
6872
|
submit(): (sanitizedEditForm: CaseEventData) => Observable<object>;
|
|
6961
6873
|
validate(): (sanitizedEditForm: CaseEventData, pageId: string) => Observable<object>;
|
|
6962
6874
|
submitted(event: any): void;
|
|
6875
|
+
private getNavigationUrl;
|
|
6963
6876
|
cancel(): Promise<boolean>;
|
|
6964
6877
|
isDataLoaded(): boolean;
|
|
6965
6878
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaseEventTriggerComponent, never>;
|
|
@@ -7065,6 +6978,7 @@ declare class CaseFullAccessViewComponent implements OnInit, OnDestroy, OnChange
|
|
|
7065
6978
|
constructor(ngZone: NgZone, route: ActivatedRoute, router: Router, navigationNotifierService: NavigationNotifierService, orderService: OrderService, activityPollingService: ActivityPollingService, dialog: MatLegacyDialog, alertService: AlertService, draftService: DraftService, errorNotifierService: ErrorNotifierService, convertHrefToRouterService: ConvertHrefToRouterService, location: Location$1, crf: ChangeDetectorRef, sessionStorageService: SessionStorageService, rpxTranslationPipe: RpxTranslatePipe, loadingService: LoadingService, linkedCasesService: LinkedCasesService, caseFlagStateService: CaseFlagStateService);
|
|
7066
6979
|
ngOnInit(): void;
|
|
7067
6980
|
ngOnChanges(changes: SimpleChanges): void;
|
|
6981
|
+
private setCaseInfo;
|
|
7068
6982
|
isPrintEnabled(): boolean;
|
|
7069
6983
|
ngOnDestroy(): void;
|
|
7070
6984
|
unsubscribe(subscription: any): void;
|
|
@@ -7290,6 +7204,8 @@ interface RequestAccessDetails {
|
|
|
7290
7204
|
declare class CaseChallengedAccessSuccessComponent implements OnInit {
|
|
7291
7205
|
private readonly route;
|
|
7292
7206
|
caseId: string;
|
|
7207
|
+
jurisdiction: string;
|
|
7208
|
+
caseType: string;
|
|
7293
7209
|
constructor(route: ActivatedRoute);
|
|
7294
7210
|
ngOnInit(): void;
|
|
7295
7211
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaseChallengedAccessSuccessComponent, never>;
|
|
@@ -7308,6 +7224,8 @@ declare class CaseSpecificAccessSuccessComponent implements OnInit {
|
|
|
7308
7224
|
declare class CaseReviewSpecificAccessRejectComponent implements OnInit {
|
|
7309
7225
|
private readonly route;
|
|
7310
7226
|
caseId: string;
|
|
7227
|
+
jurisdiction: string;
|
|
7228
|
+
caseType: string;
|
|
7311
7229
|
readonly retunToTask = "Return to the Tasks tab for this case";
|
|
7312
7230
|
readonly returnToMyTask = "Return to My tasks";
|
|
7313
7231
|
constructor(route: ActivatedRoute);
|
|
@@ -7382,6 +7300,8 @@ declare class MultipleTasksExistComponent implements OnInit {
|
|
|
7382
7300
|
private readonly route;
|
|
7383
7301
|
private readonly loadingService;
|
|
7384
7302
|
caseId: string;
|
|
7303
|
+
jurisdiction: string;
|
|
7304
|
+
caseType: string;
|
|
7385
7305
|
constructor(route: ActivatedRoute, loadingService: LoadingService);
|
|
7386
7306
|
ngOnInit(): void;
|
|
7387
7307
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultipleTasksExistComponent, never>;
|
|
@@ -7391,6 +7311,8 @@ declare class MultipleTasksExistComponent implements OnInit {
|
|
|
7391
7311
|
declare class NoTasksAvailableComponent {
|
|
7392
7312
|
private readonly route;
|
|
7393
7313
|
caseId: string;
|
|
7314
|
+
jurisdiction: string;
|
|
7315
|
+
caseType: string;
|
|
7394
7316
|
constructor(route: ActivatedRoute);
|
|
7395
7317
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoTasksAvailableComponent, never>;
|
|
7396
7318
|
static ɵcmp: i0.ɵɵComponentDeclaration<NoTasksAvailableComponent, "app-no-tasks-available", never, {}, {}, never, never, false, never>;
|
|
@@ -7402,6 +7324,8 @@ declare class TaskAssignedComponent implements OnInit, OnDestroy {
|
|
|
7402
7324
|
private readonly caseworkerService;
|
|
7403
7325
|
task: Task;
|
|
7404
7326
|
caseId: string;
|
|
7327
|
+
jurisdiction: string;
|
|
7328
|
+
caseType: string;
|
|
7405
7329
|
assignedUserName: string;
|
|
7406
7330
|
caseworkerSubscription: Subscription;
|
|
7407
7331
|
judicialworkerSubscription: Subscription;
|
|
@@ -7428,6 +7352,8 @@ declare class TaskConflictComponent {
|
|
|
7428
7352
|
declare class TaskUnassignedComponent {
|
|
7429
7353
|
private readonly route;
|
|
7430
7354
|
caseId: string;
|
|
7355
|
+
jurisdiction: string;
|
|
7356
|
+
caseType: string;
|
|
7431
7357
|
constructor(route: ActivatedRoute);
|
|
7432
7358
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaskUnassignedComponent, never>;
|
|
7433
7359
|
static ɵcmp: i0.ɵɵComponentDeclaration<TaskUnassignedComponent, "app-task-unassigned", never, {}, {}, never, never, false, never>;
|