@hmcts/ccd-case-ui-toolkit 4.3.4 → 4.3.6-hotfix-EUI-4652-4404
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/.github/workflows/functionaltest.yml +29 -0
- package/RELEASE-NOTES.md +36 -0
- package/dist/app.config.d.ts +25 -0
- package/dist/app.config.js +9 -0
- package/dist/app.config.js.map +1 -1
- package/dist/app.config.metadata.json +1 -1
- package/dist/components/banners/alert/alert.component.d.ts +3 -1
- package/dist/components/banners/alert/alert.component.js +3 -1
- package/dist/components/banners/alert/alert.component.js.map +1 -1
- package/dist/components/banners/alert/alert.component.metadata.json +1 -1
- package/dist/components/banners/alert/index.d.ts +3 -0
- package/dist/components/banners/alert/index.js +9 -0
- package/dist/components/banners/alert/index.js.map +1 -0
- package/dist/components/banners/alert/index.metadata.json +1 -0
- package/dist/cut-styles/shared/components/case-viewer/{case-viewer.scss → case-full-access-view/case-full-access-view.component.scss} +0 -0
- package/dist/index.umd.js +1606 -336
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +9 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/activity/activity.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +1 -1
- package/dist/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/case-edit-form/case-edit-form.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +1 -2
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js +3 -15
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +10 -2
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/services/cases.service.d.ts +3 -1
- package/dist/shared/components/case-editor/services/cases.service.js +55 -0
- package/dist/shared/components/case-editor/services/cases.service.js.map +1 -1
- package/dist/shared/components/case-editor/services/cases.service.metadata.json +1 -1
- package/dist/shared/components/case-history/case-history.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts +14 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +64 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.js +7 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts +36 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +143 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.js +7 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.d.ts +16 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.js +22 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.js +7 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.d.ts +8 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js +31 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.js +7 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +72 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +297 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.js +7 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-view/case-view.component.d.ts +4 -4
- package/dist/shared/components/case-viewer/case-view/case-view.component.js +10 -10
- package/dist/shared/components/case-viewer/case-view/case-view.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-view/case-view.component.metadata.json +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.d.ts +14 -60
- package/dist/shared/components/case-viewer/case-viewer.component.js +57 -222
- package/dist/shared/components/case-viewer/case-viewer.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.metadata.json +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.js +32 -17
- package/dist/shared/components/case-viewer/case-viewer.module.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.metadata.json +1 -1
- package/dist/shared/components/case-viewer/index.d.ts +4 -0
- package/dist/shared/components/case-viewer/index.js +4 -0
- package/dist/shared/components/case-viewer/index.js.map +1 -1
- package/dist/shared/components/case-viewer/index.metadata.json +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.js +25 -8
- package/dist/shared/components/case-viewer/viewer.routing.js.map +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.metadata.json +1 -1
- package/dist/shared/components/error-message/error-message.component.d.ts +4 -0
- package/dist/shared/components/error-message/error-message.component.js +32 -0
- package/dist/shared/components/error-message/error-message.component.js.map +1 -0
- package/dist/shared/components/error-message/error-message.component.metadata.json +1 -0
- package/dist/shared/components/error-message/index.d.ts +1 -0
- package/dist/shared/components/error-message/index.js +7 -0
- package/dist/shared/components/error-message/index.js.map +1 -0
- package/dist/shared/components/error-message/index.metadata.json +1 -0
- package/dist/shared/components/helpers/index.d.ts +1 -0
- package/dist/shared/components/helpers/index.js +7 -0
- package/dist/shared/components/helpers/index.js.map +1 -0
- package/dist/shared/components/helpers/index.metadata.json +1 -0
- package/dist/shared/components/helpers/init-dialog-helper.d.ts +2 -0
- package/dist/shared/components/helpers/init-dialog-helper.js +18 -0
- package/dist/shared/components/helpers/init-dialog-helper.js.map +1 -0
- package/dist/shared/components/helpers/init-dialog-helper.metadata.json +1 -0
- package/dist/shared/components/index.d.ts +1 -0
- package/dist/shared/components/index.js +1 -0
- package/dist/shared/components/index.js.map +1 -1
- package/dist/shared/components/index.metadata.json +1 -1
- package/dist/shared/components/palette/base-field/abstract-form-field.component.js +6 -1
- package/dist/shared/components/palette/base-field/abstract-form-field.component.js.map +1 -1
- package/dist/shared/components/palette/case-link/write-case-link-field.component.js +1 -1
- package/dist/shared/components/palette/case-link/write-case-link-field.component.js.map +1 -1
- package/dist/shared/components/palette/case-link/write-case-link-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/complex/read-complex-field.component.js +3 -1
- package/dist/shared/components/palette/complex/read-complex-field.component.js.map +1 -1
- package/dist/shared/components/palette/complex/write-complex-field.component.js +1 -1
- package/dist/shared/components/palette/complex/write-complex-field.component.js.map +1 -1
- package/dist/shared/components/palette/complex/write-complex-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/date/write-date-field.component.js +1 -1
- package/dist/shared/components/palette/date/write-date-field.component.js.map +1 -1
- package/dist/shared/components/palette/date/write-date-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.d.ts +3 -2
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.js +30 -9
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.js.map +1 -1
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.metadata.json +1 -1
- package/dist/shared/components/palette/document/write-document-field.component.d.ts +0 -1
- package/dist/shared/components/palette/document/write-document-field.component.js +4 -19
- package/dist/shared/components/palette/document/write-document-field.component.js.map +1 -1
- package/dist/shared/components/palette/document/write-document-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/dynamic-list/read-dynamic-list-field.component.js.map +1 -1
- package/dist/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +1 -1
- package/dist/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js.map +1 -1
- package/dist/shared/components/palette/dynamic-list/write-dynamic-list-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.d.ts +1 -1
- package/dist/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.js +7 -0
- package/dist/shared/components/palette/dynamic-radio-list/dynamic-radio-list.pipe.js.map +1 -1
- package/dist/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.js +7 -0
- package/dist/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.js.map +1 -1
- package/dist/shared/components/palette/email/write-email-field.component.js +1 -1
- package/dist/shared/components/palette/email/write-email-field.component.js.map +1 -1
- package/dist/shared/components/palette/email/write-email-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/fixed-list/write-fixed-list-field.component.js +1 -1
- package/dist/shared/components/palette/fixed-list/write-fixed-list-field.component.js.map +1 -1
- package/dist/shared/components/palette/fixed-list/write-fixed-list-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js +1 -1
- package/dist/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js.map +1 -1
- package/dist/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/money-gbp/write-money-gbp-field.component.js +1 -1
- package/dist/shared/components/palette/money-gbp/write-money-gbp-field.component.js.map +1 -1
- package/dist/shared/components/palette/money-gbp/write-money-gbp-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js +1 -1
- package/dist/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js.map +1 -1
- package/dist/shared/components/palette/multi-select-list/write-multi-select-list-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/palette.module.js +1 -0
- package/dist/shared/components/palette/palette.module.js.map +1 -1
- package/dist/shared/components/palette/palette.module.metadata.json +1 -1
- package/dist/shared/components/palette/phone-uk/write-phone-uk-field.component.js +1 -1
- package/dist/shared/components/palette/phone-uk/write-phone-uk-field.component.js.map +1 -1
- package/dist/shared/components/palette/phone-uk/write-phone-uk-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/text/write-text-field.component.js +1 -1
- package/dist/shared/components/palette/text/write-text-field.component.js.map +1 -1
- package/dist/shared/components/palette/text/write-text-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/text-area/write-text-area-field.component.js +1 -1
- package/dist/shared/components/palette/text-area/write-text-area-field.component.js.map +1 -1
- package/dist/shared/components/palette/text-area/write-text-area-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/yes-no/write-yes-no-field.component.js +1 -1
- package/dist/shared/components/palette/yes-no/write-yes-no-field.component.js.map +1 -1
- package/dist/shared/components/palette/yes-no/write-yes-no-field.component.metadata.json +1 -1
- package/dist/shared/components/search-filters/search-filters.component.js +7 -9
- package/dist/shared/components/search-filters/search-filters.component.js.map +1 -1
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.d.ts +12 -0
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.js +36 -0
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.js.map +1 -1
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.metadata.json +1 -1
- package/dist/shared/directives/conditional-show/services/conditional-show-registrar.service.js +0 -2
- package/dist/shared/directives/conditional-show/services/conditional-show-registrar.service.js.map +1 -1
- package/dist/shared/domain/case-view/case-view.model.d.ts +6 -0
- package/dist/shared/domain/case-view/case-view.model.js.map +1 -1
- package/dist/shared/domain/case-view/challenged-access-request.model.d.ts +5 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.js +3 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.js.map +1 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/index.d.ts +4 -0
- package/dist/shared/domain/case-view/index.metadata.json +1 -1
- package/dist/shared/domain/case-view/requested-role.model.d.ts +25 -0
- package/dist/shared/domain/case-view/requested-role.model.js +3 -0
- package/dist/shared/domain/case-view/requested-role.model.js.map +1 -0
- package/dist/shared/domain/case-view/requested-role.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.d.ts +6 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.js +3 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.js.map +1 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/role-request.model.d.ts +13 -0
- package/dist/shared/domain/case-view/role-request.model.js +3 -0
- package/dist/shared/domain/case-view/role-request.model.js.map +1 -0
- package/dist/shared/domain/case-view/role-request.model.metadata.json +1 -0
- package/dist/shared/domain/error-message.model.d.ts +8 -0
- package/dist/shared/domain/error-message.model.js +3 -0
- package/dist/shared/domain/error-message.model.js.map +1 -0
- package/dist/shared/domain/error-message.model.metadata.json +1 -0
- package/dist/shared/domain/index.d.ts +1 -0
- package/dist/shared/domain/index.metadata.json +1 -1
- package/dist/shared/pipes/case-title/ccd-case-title.pipe.js +1 -1
- package/dist/shared/pipes/case-title/ccd-case-title.pipe.js.map +1 -1
- package/dist/shared/pipes/pipes.module.js +6 -6
- package/dist/shared/pipes/pipes.module.js.map +1 -1
- package/dist/shared/pipes/pipes.module.metadata.json +1 -1
- package/dist/shared/services/case-fields/format-translator.service.js +7 -0
- package/dist/shared/services/case-fields/format-translator.service.js.map +1 -1
- package/dist/shared/services/document-management/document-management.service.d.ts +1 -1
- package/dist/shared/services/document-management/document-management.service.js +5 -10
- package/dist/shared/services/document-management/document-management.service.js.map +1 -1
- package/dist/shared/services/document-management/document-management.service.metadata.json +1 -1
- package/dist/shared/services/request/request.options.builder.js +1 -1
- package/dist/shared/services/request/request.options.builder.js.map +1 -1
- package/package.json +4 -2
- package/sonar-project.properties +3 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../tmp/src-inlined/shared/components/case-viewer/case-challenged-access-success/index.ts"],"names":[],"mappings":";;;;;AAAA,gEAA2D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./case-challenged-access-success.component"}]}]
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Location } from '@angular/common';
|
|
2
|
+
import { AfterViewInit, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { MatDialog, MatDialogConfig, MatTabChangeEvent, MatTabGroup } from '@angular/material';
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { Subject } from 'rxjs/Subject';
|
|
8
|
+
import { Subscription } from 'rxjs/Subscription';
|
|
9
|
+
import { Activity, CaseField, CaseTab, CaseView, CaseViewTrigger, DisplayMode } from '../../../domain';
|
|
10
|
+
import { ActivityPollingService, AlertService, DraftService, ErrorNotifierService, NavigationNotifierService, OrderService } from '../../../services';
|
|
11
|
+
import { CallbackErrorsContext } from '../../error';
|
|
12
|
+
export declare class CaseFullAccessViewComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
13
|
+
private readonly ngZone;
|
|
14
|
+
private readonly route;
|
|
15
|
+
private readonly router;
|
|
16
|
+
private readonly navigationNotifierService;
|
|
17
|
+
private readonly orderService;
|
|
18
|
+
private readonly activityPollingService;
|
|
19
|
+
private readonly dialog;
|
|
20
|
+
private readonly alertService;
|
|
21
|
+
private readonly draftService;
|
|
22
|
+
private readonly errorNotifierService;
|
|
23
|
+
private readonly location;
|
|
24
|
+
static readonly ORIGIN_QUERY_PARAM = "origin";
|
|
25
|
+
static readonly TRIGGER_TEXT_START = "Go";
|
|
26
|
+
static readonly TRIGGER_TEXT_CONTINUE = "Ignore Warning and Go";
|
|
27
|
+
static readonly UNICODE_SPACE = "%20";
|
|
28
|
+
static readonly EMPTY_SPACE = " ";
|
|
29
|
+
hasPrint: boolean;
|
|
30
|
+
hasEventSelector: boolean;
|
|
31
|
+
caseDetails: CaseView;
|
|
32
|
+
prependedTabs: CaseTab[];
|
|
33
|
+
BANNER: DisplayMode;
|
|
34
|
+
sortedTabs: CaseTab[];
|
|
35
|
+
caseFields: CaseField[];
|
|
36
|
+
formGroup: FormGroup;
|
|
37
|
+
error: any;
|
|
38
|
+
triggerTextStart: string;
|
|
39
|
+
triggerTextIgnoreWarnings: string;
|
|
40
|
+
triggerText: string;
|
|
41
|
+
ignoreWarning: boolean;
|
|
42
|
+
activitySubscription: Subscription;
|
|
43
|
+
caseSubscription: Subscription;
|
|
44
|
+
errorSubscription: Subscription;
|
|
45
|
+
dialogConfig: MatDialogConfig;
|
|
46
|
+
callbackErrorsSubject: Subject<any>;
|
|
47
|
+
tabGroup: MatTabGroup;
|
|
48
|
+
constructor(ngZone: NgZone, route: ActivatedRoute, router: Router, navigationNotifierService: NavigationNotifierService, orderService: OrderService, activityPollingService: ActivityPollingService, dialog: MatDialog, alertService: AlertService, draftService: DraftService, errorNotifierService: ErrorNotifierService, location: Location);
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
isPrintEnabled(): boolean;
|
|
51
|
+
ngOnDestroy(): void;
|
|
52
|
+
postViewActivity(): Observable<Activity[]>;
|
|
53
|
+
clearErrorsAndWarnings(): void;
|
|
54
|
+
applyTrigger(trigger: CaseViewTrigger): void;
|
|
55
|
+
hasTabsPresent(): boolean;
|
|
56
|
+
callbackErrorsNotify(callbackErrorsContext: CallbackErrorsContext): void;
|
|
57
|
+
isDraft(): boolean;
|
|
58
|
+
isTriggerButtonDisabled(): boolean;
|
|
59
|
+
ngAfterViewInit(): void;
|
|
60
|
+
tabChanged(tabChangeEvent: MatTabChangeEvent): void;
|
|
61
|
+
private init;
|
|
62
|
+
private sortTabFieldsAndFilterTabs;
|
|
63
|
+
private getTabFields;
|
|
64
|
+
/**
|
|
65
|
+
* For EUI-3825:
|
|
66
|
+
* Builds a FormGroup from all the CaseFields contained within the view.
|
|
67
|
+
* This FormGroup is necessary for evaluation the show/hide conditions of
|
|
68
|
+
* fields that are dependent on a field only available on a DIFFERENT tab.
|
|
69
|
+
*/
|
|
70
|
+
private buildFormGroup;
|
|
71
|
+
private resetErrors;
|
|
72
|
+
}
|
package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
14
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
|
+
};
|
|
19
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
var common_1 = require("@angular/common");
|
|
24
|
+
var core_1 = require("@angular/core");
|
|
25
|
+
var forms_1 = require("@angular/forms");
|
|
26
|
+
var material_1 = require("@angular/material");
|
|
27
|
+
var router_1 = require("@angular/router");
|
|
28
|
+
var class_transformer_1 = require("class-transformer");
|
|
29
|
+
var Subject_1 = require("rxjs/Subject");
|
|
30
|
+
var dialogs_1 = require("../../dialogs");
|
|
31
|
+
var directives_1 = require("../../../directives");
|
|
32
|
+
var domain_1 = require("../../../domain");
|
|
33
|
+
var services_1 = require("../../../services");
|
|
34
|
+
var helpers_1 = require("../../helpers");
|
|
35
|
+
var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
36
|
+
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, location) {
|
|
37
|
+
this.ngZone = ngZone;
|
|
38
|
+
this.route = route;
|
|
39
|
+
this.router = router;
|
|
40
|
+
this.navigationNotifierService = navigationNotifierService;
|
|
41
|
+
this.orderService = orderService;
|
|
42
|
+
this.activityPollingService = activityPollingService;
|
|
43
|
+
this.dialog = dialog;
|
|
44
|
+
this.alertService = alertService;
|
|
45
|
+
this.draftService = draftService;
|
|
46
|
+
this.errorNotifierService = errorNotifierService;
|
|
47
|
+
this.location = location;
|
|
48
|
+
this.hasPrint = true;
|
|
49
|
+
this.hasEventSelector = true;
|
|
50
|
+
this.prependedTabs = [];
|
|
51
|
+
this.BANNER = domain_1.DisplayMode.BANNER;
|
|
52
|
+
this.triggerTextStart = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
53
|
+
this.triggerTextIgnoreWarnings = CaseFullAccessViewComponent_1.TRIGGER_TEXT_CONTINUE;
|
|
54
|
+
this.triggerText = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
55
|
+
this.ignoreWarning = false;
|
|
56
|
+
this.callbackErrorsSubject = new Subject_1.Subject();
|
|
57
|
+
}
|
|
58
|
+
CaseFullAccessViewComponent_1 = CaseFullAccessViewComponent;
|
|
59
|
+
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
60
|
+
var _this = this;
|
|
61
|
+
helpers_1.initDialog(this.dialogConfig);
|
|
62
|
+
this.init();
|
|
63
|
+
this.callbackErrorsSubject.subscribe(function (errorEvent) {
|
|
64
|
+
_this.error = errorEvent;
|
|
65
|
+
});
|
|
66
|
+
this.errorSubscription = this.errorNotifierService.error.subscribe(function (error) {
|
|
67
|
+
if (error && error.status !== 401 && error.status !== 403) {
|
|
68
|
+
_this.error = error;
|
|
69
|
+
_this.callbackErrorsSubject.next(_this.error);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
CaseFullAccessViewComponent.prototype.isPrintEnabled = function () {
|
|
74
|
+
return this.caseDetails.case_type.printEnabled;
|
|
75
|
+
};
|
|
76
|
+
CaseFullAccessViewComponent.prototype.ngOnDestroy = function () {
|
|
77
|
+
if (this.activitySubscription && this.activityPollingService.isEnabled) {
|
|
78
|
+
this.activitySubscription.unsubscribe();
|
|
79
|
+
}
|
|
80
|
+
if (this.callbackErrorsSubject) {
|
|
81
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
82
|
+
}
|
|
83
|
+
if (!this.route.snapshot.data.case && this.caseSubscription) {
|
|
84
|
+
this.caseSubscription.unsubscribe();
|
|
85
|
+
}
|
|
86
|
+
if (this.errorSubscription) {
|
|
87
|
+
this.errorSubscription.unsubscribe();
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
91
|
+
return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
|
|
92
|
+
};
|
|
93
|
+
CaseFullAccessViewComponent.prototype.clearErrorsAndWarnings = function () {
|
|
94
|
+
this.resetErrors();
|
|
95
|
+
this.ignoreWarning = false;
|
|
96
|
+
this.triggerText = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
97
|
+
};
|
|
98
|
+
CaseFullAccessViewComponent.prototype.applyTrigger = function (trigger) {
|
|
99
|
+
var _this = this;
|
|
100
|
+
this.error = null;
|
|
101
|
+
var theQueryParams = {};
|
|
102
|
+
if (this.ignoreWarning) {
|
|
103
|
+
theQueryParams['ignoreWarning'] = this.ignoreWarning;
|
|
104
|
+
}
|
|
105
|
+
// we may need to take care of different triggers in the future
|
|
106
|
+
if (trigger.id === domain_1.CaseViewTrigger.DELETE) {
|
|
107
|
+
var dialogRef = this.dialog.open(dialogs_1.DeleteOrCancelDialogComponent, this.dialogConfig);
|
|
108
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
109
|
+
if (result === 'Delete') {
|
|
110
|
+
_this.draftService.deleteDraft(_this.caseDetails.case_id)
|
|
111
|
+
.subscribe(function (_) {
|
|
112
|
+
_this.navigationNotifierService.announceNavigation({ action: services_1.NavigationOrigin.DRAFT_DELETED });
|
|
113
|
+
}, function (_) {
|
|
114
|
+
_this.navigationNotifierService.announceNavigation({ action: services_1.NavigationOrigin.ERROR_DELETING_DRAFT });
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
else if (this.isDraft() && trigger.id !== domain_1.CaseViewTrigger.DELETE) {
|
|
120
|
+
theQueryParams[domain_1.DRAFT_QUERY_PARAM] = this.caseDetails.case_id;
|
|
121
|
+
theQueryParams[CaseFullAccessViewComponent_1.ORIGIN_QUERY_PARAM] = 'viewDraft';
|
|
122
|
+
this.navigationNotifierService.announceNavigation({
|
|
123
|
+
action: services_1.NavigationOrigin.DRAFT_RESUMED,
|
|
124
|
+
jid: this.caseDetails.case_type.jurisdiction.id,
|
|
125
|
+
ctid: this.caseDetails.case_type.id,
|
|
126
|
+
etid: trigger.id,
|
|
127
|
+
queryParams: theQueryParams
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
this.navigationNotifierService.announceNavigation({
|
|
132
|
+
action: services_1.NavigationOrigin.EVENT_TRIGGERED,
|
|
133
|
+
queryParams: theQueryParams,
|
|
134
|
+
etid: trigger.id,
|
|
135
|
+
relativeTo: this.route
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
CaseFullAccessViewComponent.prototype.hasTabsPresent = function () {
|
|
140
|
+
return this.sortedTabs.length > 0 || this.prependedTabs.length > 0;
|
|
141
|
+
};
|
|
142
|
+
CaseFullAccessViewComponent.prototype.callbackErrorsNotify = function (callbackErrorsContext) {
|
|
143
|
+
this.ignoreWarning = callbackErrorsContext.ignore_warning;
|
|
144
|
+
this.triggerText = callbackErrorsContext.trigger_text;
|
|
145
|
+
};
|
|
146
|
+
CaseFullAccessViewComponent.prototype.isDraft = function () {
|
|
147
|
+
return domain_1.Draft.isDraft(this.caseDetails.case_id);
|
|
148
|
+
};
|
|
149
|
+
CaseFullAccessViewComponent.prototype.isTriggerButtonDisabled = function () {
|
|
150
|
+
return (this.error
|
|
151
|
+
&& this.error.callbackErrors
|
|
152
|
+
&& this.error.callbackErrors.length)
|
|
153
|
+
|| (this.error
|
|
154
|
+
&& this.error.details
|
|
155
|
+
&& this.error.details.field_errors
|
|
156
|
+
&& this.error.details.field_errors.length);
|
|
157
|
+
};
|
|
158
|
+
CaseFullAccessViewComponent.prototype.ngAfterViewInit = function () {
|
|
159
|
+
var _this = this;
|
|
160
|
+
var matTab;
|
|
161
|
+
var url = this.location.path(true);
|
|
162
|
+
var hashValue = url.substring(url.indexOf('#') + 1);
|
|
163
|
+
// if we have prepended tabs route to one of the prepended tabs
|
|
164
|
+
if (!url.includes('#') && this.prependedTabs && this.prependedTabs.length) {
|
|
165
|
+
var paths = url.split('/');
|
|
166
|
+
var tabName_1 = decodeURIComponent(paths[paths.length - 1]);
|
|
167
|
+
var selectedTab_1 = this.prependedTabs.find(function (caseTab) { return caseTab.id.toLowerCase() === tabName_1.toLowerCase(); });
|
|
168
|
+
var tab = selectedTab_1 ? selectedTab_1.id : 'tasks';
|
|
169
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id, tab]).then(function () {
|
|
170
|
+
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === selectedTab_1.label; });
|
|
171
|
+
_this.tabGroup.selectedIndex = matTab.position;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
var regExp = new RegExp(CaseFullAccessViewComponent_1.UNICODE_SPACE, 'g');
|
|
176
|
+
hashValue = hashValue.replace(regExp, CaseFullAccessViewComponent_1.EMPTY_SPACE);
|
|
177
|
+
matTab = this.tabGroup._tabs.find(function (x) {
|
|
178
|
+
return x.textLabel.replace(CaseFullAccessViewComponent_1.EMPTY_SPACE, '').toLowerCase() ===
|
|
179
|
+
hashValue.replace(CaseFullAccessViewComponent_1.EMPTY_SPACE, '').toLowerCase();
|
|
180
|
+
});
|
|
181
|
+
if (matTab && matTab.position) {
|
|
182
|
+
this.tabGroup.selectedIndex = matTab.position;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
|
|
187
|
+
var tab = tabChangeEvent.tab['_viewContainerRef'];
|
|
188
|
+
var id = tab.element.nativeElement.id;
|
|
189
|
+
if (tabChangeEvent.index <= 1 && this.prependedTabs.length) {
|
|
190
|
+
this.router.navigate([id], { relativeTo: this.route });
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
var label_1 = tabChangeEvent.tab.textLabel;
|
|
194
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
195
|
+
window.location.hash = label_1;
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
CaseFullAccessViewComponent.prototype.init = function () {
|
|
200
|
+
var _this = this;
|
|
201
|
+
// Clone and sort tabs array
|
|
202
|
+
this.sortedTabs = this.orderService.sort(this.caseDetails.tabs);
|
|
203
|
+
this.caseFields = this.getTabFields();
|
|
204
|
+
this.sortedTabs = this.sortTabFieldsAndFilterTabs(this.sortedTabs);
|
|
205
|
+
this.formGroup = this.buildFormGroup(this.caseFields);
|
|
206
|
+
if (this.activityPollingService.isEnabled) {
|
|
207
|
+
this.ngZone.runOutsideAngular(function () {
|
|
208
|
+
_this.activitySubscription = _this.postViewActivity().subscribe(function (_resolved) {
|
|
209
|
+
// console.log('Posted VIEW activity and result is: ' + JSON.stringify(_resolved));
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
if (this.caseDetails.triggers && this.error) {
|
|
214
|
+
this.resetErrors();
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
CaseFullAccessViewComponent.prototype.sortTabFieldsAndFilterTabs = function (tabs) {
|
|
218
|
+
var _this = this;
|
|
219
|
+
return tabs
|
|
220
|
+
.map(function (tab) { return Object.assign({}, tab, { fields: _this.orderService.sort(tab.fields) }); })
|
|
221
|
+
.filter(function (tab) { return directives_1.ShowCondition.getInstance(tab.show_condition).matchByContextFields(_this.caseFields); });
|
|
222
|
+
};
|
|
223
|
+
CaseFullAccessViewComponent.prototype.getTabFields = function () {
|
|
224
|
+
var caseDataFields = this.sortedTabs.reduce(function (acc, tab) {
|
|
225
|
+
return acc.concat(class_transformer_1.plainToClass(domain_1.CaseField, tab.fields));
|
|
226
|
+
}, []);
|
|
227
|
+
return caseDataFields.concat(this.caseDetails.metadataFields);
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* For EUI-3825:
|
|
231
|
+
* Builds a FormGroup from all the CaseFields contained within the view.
|
|
232
|
+
* This FormGroup is necessary for evaluation the show/hide conditions of
|
|
233
|
+
* fields that are dependent on a field only available on a DIFFERENT tab.
|
|
234
|
+
*/
|
|
235
|
+
CaseFullAccessViewComponent.prototype.buildFormGroup = function (caseFields) {
|
|
236
|
+
var value = {};
|
|
237
|
+
if (caseFields) {
|
|
238
|
+
caseFields.forEach(function (caseField) {
|
|
239
|
+
var _a;
|
|
240
|
+
value = __assign({}, value, (_a = {}, _a[caseField.id] = caseField.value, _a));
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
return new forms_1.FormGroup({ data: new forms_1.FormControl(value) });
|
|
244
|
+
};
|
|
245
|
+
CaseFullAccessViewComponent.prototype.resetErrors = function () {
|
|
246
|
+
this.error = null;
|
|
247
|
+
this.callbackErrorsSubject.next(null);
|
|
248
|
+
this.alertService.clear();
|
|
249
|
+
};
|
|
250
|
+
var CaseFullAccessViewComponent_1;
|
|
251
|
+
CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
252
|
+
CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
|
|
253
|
+
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
254
|
+
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
255
|
+
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
256
|
+
__decorate([
|
|
257
|
+
core_1.Input(),
|
|
258
|
+
__metadata("design:type", Object)
|
|
259
|
+
], CaseFullAccessViewComponent.prototype, "hasPrint", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
core_1.Input(),
|
|
262
|
+
__metadata("design:type", Object)
|
|
263
|
+
], CaseFullAccessViewComponent.prototype, "hasEventSelector", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
core_1.Input(),
|
|
266
|
+
__metadata("design:type", domain_1.CaseView)
|
|
267
|
+
], CaseFullAccessViewComponent.prototype, "caseDetails", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
core_1.Input(),
|
|
270
|
+
__metadata("design:type", Array)
|
|
271
|
+
], CaseFullAccessViewComponent.prototype, "prependedTabs", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
core_1.ViewChild('tabGroup'),
|
|
274
|
+
__metadata("design:type", material_1.MatTabGroup)
|
|
275
|
+
], CaseFullAccessViewComponent.prototype, "tabGroup", void 0);
|
|
276
|
+
CaseFullAccessViewComponent = CaseFullAccessViewComponent_1 = __decorate([
|
|
277
|
+
core_1.Component({
|
|
278
|
+
selector: 'ccd-case-full-access-view',
|
|
279
|
+
template: "\n <!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n <div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n Something went wrong\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>We're working to fix the problem. Try again shortly.</p>\n <p><a href=\"get-help\" target=\"_blank\">Contact us</a> if you're still having problems.</p>\n </div>\n </div>\n <!-- Callback error heading and error message to be displayed if there are specific error details -->\n <div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The callback data failed validation\n </h2>\n <p>{{error.message}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message}}\n </li>\n </ul>\n </div>\n <ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n </ccd-callback-errors>\n <ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n <div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">Print</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n </div>\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedTabChange)=\"tabChanged($event)\" [disableRipple]=\"true\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th>\n <div class=\"case-viewer-label text-16\">{{field.label}}</div>\n </th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"prependedTabs && prependedTabs.length\"></router-outlet>\n </ng-container>\n </div>\n </div>\n ",
|
|
280
|
+
styles: ["\n th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0px}\n "]
|
|
281
|
+
}),
|
|
282
|
+
__metadata("design:paramtypes", [core_1.NgZone,
|
|
283
|
+
router_1.ActivatedRoute,
|
|
284
|
+
router_1.Router,
|
|
285
|
+
services_1.NavigationNotifierService,
|
|
286
|
+
services_1.OrderService,
|
|
287
|
+
services_1.ActivityPollingService,
|
|
288
|
+
material_1.MatDialog,
|
|
289
|
+
services_1.AlertService,
|
|
290
|
+
services_1.DraftService,
|
|
291
|
+
services_1.ErrorNotifierService,
|
|
292
|
+
common_1.Location])
|
|
293
|
+
], CaseFullAccessViewComponent);
|
|
294
|
+
return CaseFullAccessViewComponent;
|
|
295
|
+
}());
|
|
296
|
+
exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
|
|
297
|
+
//# sourceMappingURL=case-full-access-view.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-full-access-view.component.js","sourceRoot":"","sources":["../../../../../tmp/src-inlined/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA2C;AAC3C,sCAAwH;AACxH,wCAAwD;AACxD,8CAA+F;AAC/F,0CAAiE;AACjE,uDAAiD;AAEjD,wCAAuC;AAGvC,yCAA8D;AAC9D,kDAAoD;AACpD,0CAAkI;AAClI,8CAQ2B;AAE3B,yCAA2C;AAoG3C;IA6BE,qCACmB,MAAc,EACd,KAAqB,EACrB,MAAc,EACd,yBAAoD,EACpD,YAA0B,EAC1B,sBAA8C,EAC9C,MAAiB,EACjB,YAA0B,EAC1B,YAA0B,EAC1B,oBAA0C,EAC1C,QAAkB;QAVlB,WAAM,GAAN,MAAM,CAAQ;QACd,UAAK,GAAL,KAAK,CAAgB;QACrB,WAAM,GAAN,MAAM,CAAQ;QACd,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,iBAAY,GAAZ,YAAY,CAAc;QAC1B,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,WAAM,GAAN,MAAM,CAAW;QACjB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,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,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"CaseFullAccessViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":25,"character":1},"arguments":[{"selector":"ccd-case-full-access-view","template":"\n <!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n <div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n Something went wrong\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>We're working to fix the problem. Try again shortly.</p>\n <p><a href=\"get-help\" target=\"_blank\">Contact us</a> if you're still having problems.</p>\n </div>\n </div>\n <!-- Callback error heading and error message to be displayed if there are specific error details -->\n <div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The callback data failed validation\n </h2>\n <p>{{error.message}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message}}\n </li>\n </ul>\n </div>\n <ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n </ccd-callback-errors>\n <ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n <div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">Print</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n </div>\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedTabChange)=\"tabChanged($event)\" [disableRipple]=\"true\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th>\n <div class=\"case-viewer-label text-16\">{{field.label}}</div>\n </th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"prependedTabs && prependedTabs.length\"></router-outlet>\n </ng-container>\n </div>\n </div>\n ","styles":["\n th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0px}\n "]}]}],"members":{"hasPrint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":130,"character":3}}]}],"hasEventSelector":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":131,"character":3}}]}],"caseDetails":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":132,"character":3}}]}],"prependedTabs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":133,"character":3}}]}],"tabGroup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":150,"character":3},"arguments":["tabGroup"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":153,"character":29},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":154,"character":28},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":155,"character":29},{"__symbolic":"reference","module":"../../../services","name":"NavigationNotifierService","line":156,"character":48},{"__symbolic":"reference","module":"../../../services","name":"OrderService","line":157,"character":35},{"__symbolic":"reference","module":"../../../services","name":"ActivityPollingService","line":158,"character":45},{"__symbolic":"reference","module":"@angular/material","name":"MatDialog","line":159,"character":29},{"__symbolic":"reference","module":"../../../services","name":"AlertService","line":160,"character":35},{"__symbolic":"reference","module":"../../../services","name":"DraftService","line":161,"character":35},{"__symbolic":"reference","module":"../../../services","name":"ErrorNotifierService","line":162,"character":43},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":163,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"isPrintEnabled":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"postViewActivity":[{"__symbolic":"method"}],"clearErrorsAndWarnings":[{"__symbolic":"method"}],"applyTrigger":[{"__symbolic":"method"}],"hasTabsPresent":[{"__symbolic":"method"}],"callbackErrorsNotify":[{"__symbolic":"method"}],"isDraft":[{"__symbolic":"method"}],"isTriggerButtonDisabled":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"tabChanged":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"sortTabFieldsAndFilterTabs":[{"__symbolic":"method"}],"getTabFields":[{"__symbolic":"method"}],"buildFormGroup":[{"__symbolic":"method"}],"resetErrors":[{"__symbolic":"method"}]},"statics":{"ORIGIN_QUERY_PARAM":"origin","TRIGGER_TEXT_START":"Go","TRIGGER_TEXT_CONTINUE":"Ignore Warning and Go","UNICODE_SPACE":"%20","EMPTY_SPACE":" "}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './case-full-access-view.component';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
__export(require("./case-full-access-view.component"));
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../tmp/src-inlined/shared/components/case-viewer/case-full-access-view/index.ts"],"names":[],"mappings":";;;;;AAAA,uDAAkD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./case-full-access-view.component"}]}]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { AlertService } from '../../../services
|
|
2
|
+
import { AlertService } from '../../../services';
|
|
3
3
|
import { CaseView } from '../../../domain';
|
|
4
4
|
import { CasesService, CaseNotifier } from '../../case-editor';
|
|
5
5
|
import { DraftService } from '../../../services';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
|
-
import { NavigationNotifierService } from '../../../services
|
|
7
|
+
import { NavigationNotifierService } from '../../../services';
|
|
8
8
|
export declare class CaseViewComponent implements OnInit, OnDestroy {
|
|
9
9
|
private navigationNotifierService;
|
|
10
|
-
private
|
|
10
|
+
private caseNotifier;
|
|
11
11
|
private casesService;
|
|
12
12
|
private draftService;
|
|
13
13
|
private alertService;
|
|
@@ -17,7 +17,7 @@ export declare class CaseViewComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
navigationTriggered: EventEmitter<any>;
|
|
18
18
|
navigationSubscription: Subscription;
|
|
19
19
|
caseDetails: CaseView;
|
|
20
|
-
constructor(navigationNotifierService: NavigationNotifierService,
|
|
20
|
+
constructor(navigationNotifierService: NavigationNotifierService, caseNotifier: CaseNotifier, casesService: CasesService, draftService: DraftService, alertService: AlertService);
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
ngOnDestroy(): void;
|
|
23
23
|
isDataLoaded(): boolean;
|
|
@@ -10,18 +10,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
var core_1 = require("@angular/core");
|
|
13
|
-
var
|
|
13
|
+
var services_1 = require("../../../services");
|
|
14
14
|
var domain_1 = require("../../../domain");
|
|
15
15
|
var case_editor_1 = require("../../case-editor");
|
|
16
|
-
var
|
|
16
|
+
var services_2 = require("../../../services");
|
|
17
17
|
var rxjs_1 = require("rxjs");
|
|
18
18
|
var operators_1 = require("rxjs/operators");
|
|
19
|
-
var
|
|
19
|
+
var services_3 = require("../../../services");
|
|
20
20
|
var class_transformer_1 = require("class-transformer");
|
|
21
21
|
var CaseViewComponent = /** @class */ (function () {
|
|
22
|
-
function CaseViewComponent(navigationNotifierService,
|
|
22
|
+
function CaseViewComponent(navigationNotifierService, caseNotifier, casesService, draftService, alertService) {
|
|
23
23
|
this.navigationNotifierService = navigationNotifierService;
|
|
24
|
-
this.
|
|
24
|
+
this.caseNotifier = caseNotifier;
|
|
25
25
|
this.casesService = casesService;
|
|
26
26
|
this.draftService = draftService;
|
|
27
27
|
this.alertService = alertService;
|
|
@@ -34,7 +34,7 @@ var CaseViewComponent = /** @class */ (function () {
|
|
|
34
34
|
this.getCaseView(this.case)
|
|
35
35
|
.pipe(operators_1.map(function (caseView) {
|
|
36
36
|
_this.caseDetails = class_transformer_1.plainToClassFromExist(new domain_1.CaseView(), caseView);
|
|
37
|
-
_this.
|
|
37
|
+
_this.caseNotifier.announceCase(_this.caseDetails);
|
|
38
38
|
}))
|
|
39
39
|
.toPromise()
|
|
40
40
|
.catch(function (error) { return _this.checkAuthorizationError(error); });
|
|
@@ -48,7 +48,7 @@ var CaseViewComponent = /** @class */ (function () {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
CaseViewComponent.prototype.isDataLoaded = function () {
|
|
51
|
-
return this.caseDetails
|
|
51
|
+
return !!this.caseDetails;
|
|
52
52
|
};
|
|
53
53
|
CaseViewComponent.prototype.getCaseView = function (cid) {
|
|
54
54
|
if (domain_1.Draft.isDraft(cid)) {
|
|
@@ -92,11 +92,11 @@ var CaseViewComponent = /** @class */ (function () {
|
|
|
92
92
|
selector: 'ccd-case-view',
|
|
93
93
|
template: "\n <div *ngIf=\"isDataLoaded()\">\n <ccd-case-viewer [hasPrint]=\"hasPrint\"\n [hasEventSelector]=\"hasEventSelector\"></ccd-case-viewer>\n </div>\n "
|
|
94
94
|
}),
|
|
95
|
-
__metadata("design:paramtypes", [
|
|
95
|
+
__metadata("design:paramtypes", [services_3.NavigationNotifierService,
|
|
96
96
|
case_editor_1.CaseNotifier,
|
|
97
97
|
case_editor_1.CasesService,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
services_2.DraftService,
|
|
99
|
+
services_1.AlertService])
|
|
100
100
|
], CaseViewComponent);
|
|
101
101
|
return CaseViewComponent;
|
|
102
102
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-view.component.js","sourceRoot":"","sources":["../../../../../tmp/src-inlined/shared/components/case-viewer/case-view/case-view.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA0F;AAC1F,
|
|
1
|
+
{"version":3,"file":"case-view.component.js","sourceRoot":"","sources":["../../../../../tmp/src-inlined/shared/components/case-viewer/case-view/case-view.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA0F;AAC1F,8CAAiD;AACjD,0CAAkD;AAClD,iDAA+D;AAC/D,8CAAiD;AACjD,6BAA4D;AAC5D,4CAAqC;AACrC,8CAA8D;AAC9D,uDAA0D;AAW1D;IAeE,2BACU,yBAAoD,EACpD,YAA0B,EAC1B,YAA0B,EAC1B,YAA0B,EAC1B,YAA0B;QAJ1B,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAfpC,aAAQ,GAAG,IAAI,CAAC;QAEhB,qBAAgB,GAAG,IAAI,CAAC;QAGxB,wBAAmB,GAAsB,IAAI,mBAAY,EAAE,CAAC;IAWzD,CAAC;IAEJ,oCAAQ,GAAR;QAAA,iBAaC;QAZC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;aACxB,IAAI,CACH,eAAG,CAAC,UAAA,QAAQ;YACV,KAAI,CAAC,WAAW,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,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SACxC;QACD,OAAO,iBAAU,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAlED;QADC,YAAK,EAAE;;mDACK;IAEb;QADC,YAAK,EAAE;;uDACQ;IAEhB;QADC,YAAK,EAAE;;+DACgB;IAGxB;QADC,aAAM,EAAE;kCACY,mBAAY;kEAA2B;IAVjD,iBAAiB;QAT7B,gBAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,6LAKT;SACF,CAAC;yCAiBqC,oCAAyB;YACtC,0BAAY;YACZ,0BAAY;YACZ,uBAAY;YACZ,uBAAY;OApBzB,iBAAiB,CAsE7B;IAAD,wBAAC;CAAA,AAtED,IAsEC;AAtEY,8CAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CaseViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"ccd-case-view","template":"\n <div *ngIf=\"isDataLoaded()\">\n <ccd-case-viewer [hasPrint]=\"hasPrint\"\n [hasEventSelector]=\"hasEventSelector\"></ccd-case-viewer>\n </div>\n "}]}],"members":{"case":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"hasPrint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"hasEventSelector":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"navigationTriggered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":28,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../../services
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"CaseViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"ccd-case-view","template":"\n <div *ngIf=\"isDataLoaded()\">\n <ccd-case-viewer [hasPrint]=\"hasPrint\"\n [hasEventSelector]=\"hasEventSelector\"></ccd-case-viewer>\n </div>\n "}]}],"members":{"case":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"hasPrint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"hasEventSelector":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"navigationTriggered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":28,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../../services","name":"NavigationNotifierService","line":35,"character":39},{"__symbolic":"reference","module":"../../case-editor","name":"CaseNotifier","line":36,"character":26},{"__symbolic":"reference","module":"../../case-editor","name":"CasesService","line":37,"character":26},{"__symbolic":"reference","module":"../../../services","name":"DraftService","line":38,"character":26},{"__symbolic":"reference","module":"../../../services","name":"AlertService","line":39,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"isDataLoaded":[{"__symbolic":"method"}],"getCaseView":[{"__symbolic":"method"}],"getDraft":[{"__symbolic":"method"}],"checkAuthorizationError":[{"__symbolic":"method"}]}}}}]
|