@hmcts/ccd-case-ui-toolkit 7.0.0-NodeAndNgUpgrades.1 → 7.0.0-NodeAndNgUpgrades.2-material-legacy
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/esm2020/lib/shared/commons/case-edit-data/case-edit-data.service.mjs +1 -1
- package/esm2020/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +8 -8
- package/esm2020/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.mjs +1 -1
- package/esm2020/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.mjs +2 -2
- package/esm2020/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +5 -5
- package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +1 -1
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +13 -13
- package/esm2020/lib/shared/components/case-editor/services/case.notifier.mjs +1 -8
- package/esm2020/lib/shared/components/case-editor/services/page-validation.service.mjs +1 -1
- package/esm2020/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.mjs +1 -1
- package/esm2020/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +10 -10
- package/esm2020/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.mjs +1 -1
- package/esm2020/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.mjs +1 -1
- package/esm2020/lib/shared/components/case-viewer/case-viewer.module.mjs +4 -4
- package/esm2020/lib/shared/components/create-case-filters/create-case-filters.component.mjs +15 -10
- package/esm2020/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.mjs +5 -5
- package/esm2020/lib/shared/components/dialogs/document-dialog/document-dialog.component.mjs +5 -5
- package/esm2020/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.mjs +5 -5
- package/esm2020/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.mjs +5 -5
- package/esm2020/lib/shared/components/event-trigger/event-trigger.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/address/write-address-field.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/base-field/abstract-field-read.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +2 -2
- package/esm2020/lib/shared/components/palette/base-field/field-read.component.mjs +4 -4
- package/esm2020/lib/shared/components/palette/base-field/field-write.component.mjs +2 -2
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +7 -7
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +6 -6
- package/esm2020/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +2 -2
- package/esm2020/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +2 -2
- package/esm2020/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +6 -6
- package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +2 -2
- package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +2 -2
- package/esm2020/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +2 -2
- package/esm2020/lib/shared/components/palette/case-flag/domain/case-flag.model.mjs +1 -1
- package/esm2020/lib/shared/components/palette/case-flag/read-case-flag-field.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +22 -22
- package/esm2020/lib/shared/components/palette/case-link/write-case-link-field.component.mjs +4 -4
- package/esm2020/lib/shared/components/palette/collection/write-collection-field.component.mjs +13 -12
- package/esm2020/lib/shared/components/palette/complex/write-complex-field.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +6 -6
- package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +44 -25
- package/esm2020/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.mjs +19 -5
- package/esm2020/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/order-summary/write-order-summary-field.component.mjs +5 -5
- package/esm2020/lib/shared/components/palette/organisation/write-organisation-field.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/palette.module.mjs +10 -11
- package/esm2020/lib/shared/components/search-filters/search-filters.component.mjs +4 -4
- package/esm2020/lib/shared/components/search-result/search-result.component.mjs +2 -2
- package/esm2020/lib/shared/components/workbasket-filters/workbasket-filters.component.mjs +15 -4
- package/esm2020/lib/shared/directives/conditional-show/conditional-show-form.directive.mjs +4 -4
- package/esm2020/lib/shared/directives/substitutor/label-substitutor.directive.mjs +3 -3
- package/esm2020/lib/shared/domain/case-edit/case-edit.model.mjs +1 -1
- package/esm2020/lib/shared/domain/definition/jurisdiction.model.mjs +1 -1
- package/esm2020/lib/shared/pipes/complex/ccd-page-fields.pipe.mjs +1 -1
- package/esm2020/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.mjs +1 -1
- package/esm2020/lib/shared/services/fields/fields.purger.mjs +9 -9
- package/esm2020/lib/shared/services/fields/fields.utils.mjs +6 -6
- package/esm2020/lib/shared/services/form/form-error.service.mjs +1 -1
- package/esm2020/lib/shared/services/jurisdiction/jurisdiction.service.mjs +5 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +211 -168
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +209 -168
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts +3 -3
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +5 -5
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts +2 -2
- package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts +2 -2
- package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +4 -4
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +2 -2
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-editor.module.d.ts +8 -8
- package/lib/shared/components/case-editor/services/case.notifier.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts +3 -3
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts +2 -2
- package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +6 -6
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts +2 -2
- package/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.d.ts +2 -2
- package/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.module.d.ts +2 -2
- package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts +6 -4
- package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts.map +1 -1
- package/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.d.ts +1 -1
- package/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.d.ts.map +1 -1
- package/lib/shared/components/dialogs/document-dialog/document-dialog.component.d.ts +1 -1
- package/lib/shared/components/dialogs/document-dialog/document-dialog.component.d.ts.map +1 -1
- package/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.d.ts +1 -1
- package/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.d.ts.map +1 -1
- package/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.d.ts +1 -1
- package/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.d.ts.map +1 -1
- package/lib/shared/components/event-trigger/event-trigger.component.d.ts +2 -2
- package/lib/shared/components/event-trigger/event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/palette/address/write-address-field.component.d.ts +3 -3
- package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-field-read.component.d.ts +2 -2
- package/lib/shared/components/palette/base-field/abstract-field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +3 -3
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +2 -2
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +3 -3
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +2 -2
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts +2 -2
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +2 -2
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -2
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +2 -2
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +2 -2
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/domain/case-flag.model.d.ts +2 -2
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +6 -6
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +2 -2
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +4 -4
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/write-complex-field.component.d.ts +3 -3
- package/lib/shared/components/palette/complex/write-complex-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts +1 -1
- package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +9 -5
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts +5 -3
- package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts +2 -2
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts +2 -2
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +2 -2
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/organisation/write-organisation-field.component.d.ts +2 -2
- package/lib/shared/components/palette/organisation/write-organisation-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +5 -5
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/search-filters/search-filters.component.d.ts +3 -3
- package/lib/shared/components/search-filters/search-filters.component.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts +3 -3
- package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts +4 -4
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
- package/lib/shared/directives/conditional-show/conditional-show-form.directive.d.ts +2 -2
- package/lib/shared/directives/conditional-show/conditional-show-form.directive.d.ts.map +1 -1
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts +2 -2
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -1
- package/lib/shared/domain/case-edit/case-edit.model.d.ts +2 -2
- package/lib/shared/domain/case-edit/case-edit.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/jurisdiction.model.d.ts +1 -0
- package/lib/shared/domain/definition/jurisdiction.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts +2 -2
- package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts +2 -2
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.purger.d.ts +4 -4
- package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +6 -6
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/lib/shared/services/form/form-error.service.d.ts +2 -2
- package/lib/shared/services/form/form-error.service.d.ts.map +1 -1
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts +3 -2
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
- package/package.json +2 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, Directive, ViewChild, HostListener, Injector, ViewContainerRef, ChangeDetectorRef,
|
|
2
|
+
import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, Directive, ViewChild, HostListener, Injector, ViewContainerRef, ChangeDetectorRef, CUSTOM_ELEMENTS_SCHEMA, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, CurrencyPipe, formatDate } from '@angular/common';
|
|
5
5
|
import * as i1$1 from 'rpx-xui-translation';
|
|
@@ -7,7 +7,7 @@ import { RpxTranslationModule, RpxTranslatePipe } from 'rpx-xui-translation';
|
|
|
7
7
|
import * as i1$2 from '@angular/router';
|
|
8
8
|
import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
9
9
|
import * as i3 from '@angular/forms';
|
|
10
|
-
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray,
|
|
10
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
11
11
|
import polling from 'rx-polling';
|
|
12
12
|
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent, forkJoin } from 'rxjs';
|
|
13
13
|
import * as i1$3 from '@angular/common/http';
|
|
@@ -21,29 +21,30 @@ import 'reflect-metadata';
|
|
|
21
21
|
import { generate } from 'pegjs';
|
|
22
22
|
import { isUndefined } from 'util';
|
|
23
23
|
import { StateMachine } from '@edium/fsm';
|
|
24
|
-
import * as i1$4 from '@angular/material/dialog';
|
|
25
|
-
import {
|
|
24
|
+
import * as i1$4 from '@angular/material/legacy-dialog';
|
|
25
|
+
import { MAT_LEGACY_DIALOG_DATA, MatLegacyDialogModule } from '@angular/material/legacy-dialog';
|
|
26
|
+
import { MatDialogConfig } from '@angular/material/dialog';
|
|
26
27
|
import * as i2 from '@nicky-lenaers/ngx-scroll-to';
|
|
27
28
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
28
29
|
import * as i1$5 from 'ngx-md';
|
|
29
30
|
import { NgxMdModule } from 'ngx-md';
|
|
30
|
-
import * as i5 from '@angular/material/autocomplete';
|
|
31
|
-
import {
|
|
32
|
-
import * as i6 from '@angular/material/core';
|
|
33
|
-
import {
|
|
31
|
+
import * as i5 from '@angular/material/legacy-autocomplete';
|
|
32
|
+
import { MatLegacyAutocompleteModule } from '@angular/material/legacy-autocomplete';
|
|
33
|
+
import * as i6 from '@angular/material/legacy-core';
|
|
34
|
+
import { MAT_LEGACY_DATE_LOCALE } from '@angular/material/legacy-core';
|
|
34
35
|
import * as i3$1 from '@hmcts/ccpay-web-component';
|
|
35
36
|
import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
36
37
|
import * as i2$1 from '@angular/cdk/overlay';
|
|
37
38
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
38
39
|
import * as i6$1 from '@angular/cdk/tree';
|
|
39
40
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
40
|
-
import * as i3$2 from '@angular/material/input';
|
|
41
|
-
import {
|
|
41
|
+
import * as i3$2 from '@angular/material/legacy-input';
|
|
42
|
+
import { MatLegacyInputModule } from '@angular/material/legacy-input';
|
|
42
43
|
import * as i4 from '@angular-material-components/datetime-picker';
|
|
43
44
|
import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
|
|
44
45
|
import { NgxMatMomentAdapter, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular-material-components/moment-adapter';
|
|
45
|
-
import * as i5$1 from '@angular/material/form-field';
|
|
46
|
-
import {
|
|
46
|
+
import * as i5$1 from '@angular/material/legacy-form-field';
|
|
47
|
+
import { MatLegacyFormFieldModule } from '@angular/material/legacy-form-field';
|
|
47
48
|
import * as i6$2 from '@angular/material/datepicker';
|
|
48
49
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
49
50
|
import * as i12 from '@hmcts/media-viewer';
|
|
@@ -52,8 +53,8 @@ import * as i6$3 from '@angular/cdk/portal';
|
|
|
52
53
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
53
54
|
import * as i2$2 from 'ngx-pagination';
|
|
54
55
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
55
|
-
import * as i10 from '@angular/material/tabs';
|
|
56
|
-
import {
|
|
56
|
+
import * as i10 from '@angular/material/legacy-tabs';
|
|
57
|
+
import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
|
|
57
58
|
|
|
58
59
|
function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
59
60
|
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
@@ -3489,10 +3490,10 @@ class FieldsUtils {
|
|
|
3489
3490
|
* Extract flags data from a `CaseField` instance, recursing and iterating through sub-fields of a Complex field or
|
|
3490
3491
|
* each field in a Collection field.
|
|
3491
3492
|
*
|
|
3492
|
-
* @param flags An array for accumulating extracted flags data and derived `
|
|
3493
|
+
* @param flags An array for accumulating extracted flags data and derived `FormGroup` paths
|
|
3493
3494
|
* @param caseField A `CaseField` instance from which to extract the flags data
|
|
3494
3495
|
* @param pathToFlagsFormGroup A (dot-delimited) string for concatenating the name of each control that forms the path
|
|
3495
|
-
* to the `
|
|
3496
|
+
* to the `FormGroup` for the `Flags` instance
|
|
3496
3497
|
* @param topLevelCaseField The top-level `CaseField` that contains the value property. This is required because _only
|
|
3497
3498
|
* top-level_ `CaseField`s contain actual values and a reference needs to be maintained to such a field
|
|
3498
3499
|
* @param currentValue The current value object of a `CaseField` that is a sub-field of a non root-level Complex field.
|
|
@@ -3500,7 +3501,7 @@ class FieldsUtils {
|
|
|
3500
3501
|
* only the _root-level_ `CaseField` contains a value property - all sub-fields, including any nested Complex fields,
|
|
3501
3502
|
* do *not* contain any values themselves.)
|
|
3502
3503
|
* @returns An array of `FlagsWithFormGroupPath`, each instance comprising a `Flags` object derived from a `CaseField`
|
|
3503
|
-
* of type "Flags", and the dot-delimited path string to the corresponding `
|
|
3504
|
+
* of type "Flags", and the dot-delimited path string to the corresponding `FormGroup`
|
|
3504
3505
|
*/
|
|
3505
3506
|
static extractFlagsDataFromCaseField(flags, caseField, pathToFlagsFormGroup, topLevelCaseField, currentValue) {
|
|
3506
3507
|
const fieldType = caseField.field_type;
|
|
@@ -3698,7 +3699,7 @@ class FieldsUtils {
|
|
|
3698
3699
|
if (aControl instanceof FormArray) { // We're in a collection
|
|
3699
3700
|
formArrayFn(aControl);
|
|
3700
3701
|
}
|
|
3701
|
-
else if (aControl instanceof
|
|
3702
|
+
else if (aControl instanceof FormGroup) { // We're in a complex type.
|
|
3702
3703
|
formGroupFn(aControl);
|
|
3703
3704
|
}
|
|
3704
3705
|
else if (aControl instanceof FormControl) { // FormControl
|
|
@@ -4508,7 +4509,7 @@ class ConditionalShowFormDirective {
|
|
|
4508
4509
|
this.handleFormGroup = (formGroup) => {
|
|
4509
4510
|
this.evaluateControl(formGroup);
|
|
4510
4511
|
let groupControl = formGroup;
|
|
4511
|
-
if (formGroup.get('value') && formGroup.get('value') instanceof
|
|
4512
|
+
if (formGroup.get('value') && formGroup.get('value') instanceof FormGroup) { // Complex Field
|
|
4512
4513
|
groupControl = formGroup.get('value');
|
|
4513
4514
|
}
|
|
4514
4515
|
else if (formGroup.controls) {
|
|
@@ -4530,7 +4531,7 @@ class ConditionalShowFormDirective {
|
|
|
4530
4531
|
}
|
|
4531
4532
|
ngOnInit() {
|
|
4532
4533
|
if (!this.formGroup) {
|
|
4533
|
-
this.formGroup = new
|
|
4534
|
+
this.formGroup = new FormGroup({});
|
|
4534
4535
|
}
|
|
4535
4536
|
}
|
|
4536
4537
|
/**
|
|
@@ -4755,7 +4756,7 @@ class FieldsPurger {
|
|
|
4755
4756
|
for (const complexSubField of field.field_type.complex_fields) {
|
|
4756
4757
|
if ((complexSubField.field_type.type === 'Complex' && complexSubField.field_type.complex_fields.length > 0) ||
|
|
4757
4758
|
!complexSubField.retain_hidden_value) {
|
|
4758
|
-
// Check for the existence of the parent
|
|
4759
|
+
// Check for the existence of the parent FormGroup corresponding to the Complex field; if it exists, call
|
|
4759
4760
|
// deleteFieldValue() to delete the sub-field
|
|
4760
4761
|
const parentFormGroup = form.get('data').controls[field.id];
|
|
4761
4762
|
if (parentFormGroup) {
|
|
@@ -4787,7 +4788,7 @@ class FieldsPurger {
|
|
|
4787
4788
|
}
|
|
4788
4789
|
}
|
|
4789
4790
|
// Recursively delete the sub-field value if retain_hidden_value is false, OR if the sub-field type is
|
|
4790
|
-
// Complex and regardless of retain_hidden_value, passing in the parent
|
|
4791
|
+
// Complex and regardless of retain_hidden_value, passing in the parent FormGroup
|
|
4791
4792
|
if (subCaseField &&
|
|
4792
4793
|
((subCaseField.field_type.type === 'Complex' && subCaseField.field_type.complex_fields.length > 0) ||
|
|
4793
4794
|
!subCaseField.retain_hidden_value)) {
|
|
@@ -4826,7 +4827,7 @@ class FieldsPurger {
|
|
|
4826
4827
|
* types, this recursive method is called until simple or "base" field types are reached. For `Document` field
|
|
4827
4828
|
* types, its _sub-field_ `FormControl` values are set to null.
|
|
4828
4829
|
*
|
|
4829
|
-
* @param
|
|
4830
|
+
* @param FormGroup The `FormGroup` instance containing the `FormControl` for the specified field
|
|
4830
4831
|
* @param field The `CaseField` whose value is to be deleted in the backend
|
|
4831
4832
|
* @param parentField Reference to the parent `CaseField`. Used for checking specifically where a Complex field and
|
|
4832
4833
|
* its sub-fields have `retain_hidden_value` set to `true`, but the field's parent has it set to `false` or undefined
|
|
@@ -4855,7 +4856,7 @@ class FieldsPurger {
|
|
|
4855
4856
|
(field.retain_hidden_value
|
|
4856
4857
|
? !complexSubField.retain_hidden_value || (parentField && !parentField.retain_hidden_value)
|
|
4857
4858
|
: true))) {
|
|
4858
|
-
// The fieldControl is cast to a
|
|
4859
|
+
// The fieldControl is cast to a FormGroup because a Complex field type uses this as its underlying
|
|
4859
4860
|
// implementation
|
|
4860
4861
|
this.deleteFieldValue(fieldControl, complexSubField, field);
|
|
4861
4862
|
}
|
|
@@ -4882,7 +4883,7 @@ class FieldsPurger {
|
|
|
4882
4883
|
break;
|
|
4883
4884
|
}
|
|
4884
4885
|
}
|
|
4885
|
-
// Recursively delete the sub-field value, passing in the parent
|
|
4886
|
+
// Recursively delete the sub-field value, passing in the parent FormGroup
|
|
4886
4887
|
const parentFormGroup = fieldControl.at(index).get('value');
|
|
4887
4888
|
this.deleteFieldValue(parentFormGroup, subCaseField);
|
|
4888
4889
|
}));
|
|
@@ -4897,7 +4898,7 @@ class FieldsPurger {
|
|
|
4897
4898
|
// the single Document case)
|
|
4898
4899
|
if (documentFieldValues) {
|
|
4899
4900
|
documentFieldValues.forEach((fieldValue, index) => Object.keys(fieldValue.value).forEach(subFieldId => {
|
|
4900
|
-
// Get the
|
|
4901
|
+
// Get the FormGroup containing the FormControl for the sub-field and set its value to null
|
|
4901
4902
|
fieldControl.at(index).get(`value.${subFieldId}`).setValue(null);
|
|
4902
4903
|
}));
|
|
4903
4904
|
}
|
|
@@ -4916,8 +4917,8 @@ class FieldsPurger {
|
|
|
4916
4917
|
}
|
|
4917
4918
|
break;
|
|
4918
4919
|
case 'Document':
|
|
4919
|
-
// NOTE: The field control (a
|
|
4920
|
-
// all existing values of a
|
|
4920
|
+
// NOTE: The field control (a FormGroup in this case) cannot just be set to null because Angular checks that
|
|
4921
|
+
// all existing values of a FormGroup are present; setting the control's value to null causes a runtime error
|
|
4921
4922
|
const documentFieldValue = fieldControl.value;
|
|
4922
4923
|
for (const key in documentFieldValue) {
|
|
4923
4924
|
if (fieldControl.get(key)) {
|
|
@@ -5795,7 +5796,7 @@ class LabelSubstitutorDirective {
|
|
|
5795
5796
|
ngOnInit() {
|
|
5796
5797
|
this.initialLabel = this.caseField.label;
|
|
5797
5798
|
this.initialHintText = this.caseField.hint_text;
|
|
5798
|
-
this.formGroup = this.formGroup || new
|
|
5799
|
+
this.formGroup = this.formGroup || new FormGroup({});
|
|
5799
5800
|
const fields = this.getReadOnlyAndFormFields();
|
|
5800
5801
|
if (this.shouldSubstitute('label')) {
|
|
5801
5802
|
this.caseField.label = this.resolvePlaceholders(fields, this.caseField.label);
|
|
@@ -6377,7 +6378,9 @@ FormErrorService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FormErr
|
|
|
6377
6378
|
class JurisdictionService {
|
|
6378
6379
|
constructor(httpService) {
|
|
6379
6380
|
this.httpService = httpService;
|
|
6381
|
+
// We retain the Subject observable because subscribing code couldn't happen a null value
|
|
6380
6382
|
this.selectedJurisdictionSource = new Subject();
|
|
6383
|
+
this.selectedJurisdictionBS = new BehaviorSubject(null);
|
|
6381
6384
|
this.selectedJurisdiction = this.selectedJurisdictionSource.asObservable();
|
|
6382
6385
|
}
|
|
6383
6386
|
getJurisdictions() {
|
|
@@ -6385,6 +6388,7 @@ class JurisdictionService {
|
|
|
6385
6388
|
}
|
|
6386
6389
|
announceSelectedJurisdiction(jurisdiction) {
|
|
6387
6390
|
this.selectedJurisdictionSource.next(jurisdiction);
|
|
6391
|
+
this.selectedJurisdictionBS.next(jurisdiction);
|
|
6388
6392
|
}
|
|
6389
6393
|
searchJudicialUsers(searchTerm, serviceId) {
|
|
6390
6394
|
return this.httpService.post('api/prd/judicial/getJudicialUsersSearch', { searchString: searchTerm, serviceCode: serviceId });
|
|
@@ -7898,22 +7902,15 @@ class CaseNotifier {
|
|
|
7898
7902
|
this.cachedCaseView = null;
|
|
7899
7903
|
}
|
|
7900
7904
|
announceCase(c) {
|
|
7901
|
-
console.info('announceCase started.');
|
|
7902
7905
|
this.caseViewSource.next(c);
|
|
7903
|
-
console.info('announceCase finished.');
|
|
7904
7906
|
}
|
|
7905
7907
|
fetchAndRefresh(cid) {
|
|
7906
|
-
console.info('fetchAndRefresh started.');
|
|
7907
7908
|
return this.casesService
|
|
7908
7909
|
.getCaseViewV2(cid)
|
|
7909
7910
|
.pipe(map(caseView => {
|
|
7910
|
-
console.info('mapping caseView started.');
|
|
7911
|
-
// this.casesService.syncWait(10);
|
|
7912
|
-
// throw new Error('******************************************************');
|
|
7913
7911
|
this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
|
|
7914
7912
|
this.setBasicFields(this.cachedCaseView.tabs);
|
|
7915
7913
|
this.announceCase(this.cachedCaseView);
|
|
7916
|
-
console.info('mapping caseView finished. Returning it.');
|
|
7917
7914
|
return this.cachedCaseView;
|
|
7918
7915
|
}));
|
|
7919
7916
|
}
|
|
@@ -8423,7 +8420,7 @@ class CaseEditComponent {
|
|
|
8423
8420
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
8424
8421
|
}
|
|
8425
8422
|
this.form = this.fb.group({
|
|
8426
|
-
data: new
|
|
8423
|
+
data: new FormGroup({}),
|
|
8427
8424
|
event: this.fb.group({
|
|
8428
8425
|
id: [this.eventTrigger.id, Validators.required],
|
|
8429
8426
|
summary: [''],
|
|
@@ -8596,7 +8593,7 @@ class CaseEditComponent {
|
|
|
8596
8593
|
return data;
|
|
8597
8594
|
}
|
|
8598
8595
|
/**
|
|
8599
|
-
* Traverse *all* values of a {@link
|
|
8596
|
+
* Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
|
|
8600
8597
|
* value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
|
|
8601
8598
|
* the *original* value held in the `CaseField` object.
|
|
8602
8599
|
*
|
|
@@ -8609,8 +8606,8 @@ class CaseEditComponent {
|
|
|
8609
8606
|
* * For Collection field types, including collections of Complex and Document field types, the replacement is
|
|
8610
8607
|
* performed for all fields in the collection.
|
|
8611
8608
|
*
|
|
8612
|
-
* @param
|
|
8613
|
-
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `
|
|
8609
|
+
* @param FormGroup The `FormGroup` instance whose raw values are to be traversed
|
|
8610
|
+
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `FormGroup`
|
|
8614
8611
|
* @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
|
|
8615
8612
|
* to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
|
|
8616
8613
|
* @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
|
|
@@ -8653,8 +8650,8 @@ class CaseEditComponent {
|
|
|
8653
8650
|
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
8654
8651
|
// parent)
|
|
8655
8652
|
// Update rawFormValueData for this field
|
|
8656
|
-
// creating form group and adding control into it in case caseField is of complext type and and part of
|
|
8657
|
-
const form = new
|
|
8653
|
+
// creating form group and adding control into it in case caseField is of complext type and and part of FormGroup
|
|
8654
|
+
const form = new FormGroup({});
|
|
8658
8655
|
if (formGroup.controls[key].value) {
|
|
8659
8656
|
Object.keys(formGroup.controls[key].value).forEach((item) => {
|
|
8660
8657
|
form.addControl(item, new FormControl(formGroup.controls[key].value[item]));
|
|
@@ -9082,7 +9079,7 @@ class SaveOrDiscardDialogComponent {
|
|
|
9082
9079
|
this.matDialogRef.close(this.result);
|
|
9083
9080
|
}
|
|
9084
9081
|
}
|
|
9085
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$4.
|
|
9082
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
|
|
9086
9083
|
SaveOrDiscardDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9087
9084
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
9088
9085
|
i0.ɵɵlistener("click", function SaveOrDiscardDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -9119,7 +9116,7 @@ SaveOrDiscardDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
9119
9116
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SaveOrDiscardDialogComponent, [{
|
|
9120
9117
|
type: Component,
|
|
9121
9118
|
args: [{ selector: 'ccd-save-or-discard-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Would you like to save changes to this page?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You will be taken back to your case list.' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Save\" class=\"button action-button\" (click)=\"save()\">{{'Save' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Discard\" class=\"button button-secondary\" (click)=\"discard()\">{{'Discard' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
9122
|
-
}], function () { return [{ type: i1$4.
|
|
9119
|
+
}], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null); })();
|
|
9123
9120
|
|
|
9124
9121
|
function initDialog() {
|
|
9125
9122
|
const dialogConfig = new MatDialogConfig();
|
|
@@ -9813,7 +9810,7 @@ CaseEditPageComponent.RESUMED_FORM_SAVE = 'RESUMED_FORM_SAVE';
|
|
|
9813
9810
|
CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
|
|
9814
9811
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
9815
9812
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
9816
|
-
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$4.
|
|
9813
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
9817
9814
|
CaseEditPageComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9818
9815
|
i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
|
|
9819
9816
|
i0.ɵɵtemplate(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 1);
|
|
@@ -9848,7 +9845,7 @@ CaseEditPageComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseE
|
|
|
9848
9845
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
9849
9846
|
type: Component,
|
|
9850
9847
|
args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data']\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!(hasPreviousPage$ | async)\" (click)=\"toPreviousPage()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText() | rpxTranslate}}</a></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
9851
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1$2.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$4.
|
|
9848
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1$2.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$4.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null); })();
|
|
9852
9849
|
|
|
9853
9850
|
class CallbackErrorsContext {
|
|
9854
9851
|
}
|
|
@@ -10163,7 +10160,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10163
10160
|
this.caseFields = [];
|
|
10164
10161
|
this.renderLabel = true;
|
|
10165
10162
|
this.ignoreMandatory = false;
|
|
10166
|
-
this.complexGroup = new
|
|
10163
|
+
this.complexGroup = new FormGroup({});
|
|
10167
10164
|
}
|
|
10168
10165
|
ngOnInit() {
|
|
10169
10166
|
// Are we inside of a collection? If so, the parent is the complexGroup we want.
|
|
@@ -10381,7 +10378,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10381
10378
|
constructor(addressesService, isCompoundPipe) {
|
|
10382
10379
|
super();
|
|
10383
10380
|
this.isCompoundPipe = isCompoundPipe;
|
|
10384
|
-
this.addressFormGroup = new
|
|
10381
|
+
this.addressFormGroup = new FormGroup({});
|
|
10385
10382
|
this.missingPostcode = false;
|
|
10386
10383
|
this.addressesService = addressesService;
|
|
10387
10384
|
}
|
|
@@ -10866,7 +10863,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
10866
10863
|
}
|
|
10867
10864
|
ngOnInit() {
|
|
10868
10865
|
// If the context is PaletteContext.DEFAULT, the Flags fields need to be located by CaseTab (they won't be present
|
|
10869
|
-
// in the
|
|
10866
|
+
// in the FormGroup - only the FlagLauncher field is present)
|
|
10870
10867
|
if (this.context === PaletteContext.DEFAULT) {
|
|
10871
10868
|
// Determine the tab this CaseField belongs to (should be only one), from the CaseView object in the snapshot
|
|
10872
10869
|
// data, and extract all flags-related data from its Flags fields
|
|
@@ -10885,7 +10882,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
10885
10882
|
else if (this.context === PaletteContext.CHECK_YOUR_ANSWER) {
|
|
10886
10883
|
// If the context is PaletteContext.CHECK_YOUR_ANSWER, the Flags data is already present within the formGroup.
|
|
10887
10884
|
// The FlagLauncher component, WriteCaseFlagFieldComponent, holds a reference to:
|
|
10888
|
-
// i) the parent
|
|
10885
|
+
// i) the parent FormGroup for the Flags instance where changes have been made;
|
|
10889
10886
|
// ii) the currently selected flag (selectedFlag) if one exists
|
|
10890
10887
|
const flagLauncherControlName = Object.keys(this.formGroup.controls).find(controlName => FieldsUtils.isFlagLauncherCaseField(this.formGroup.get(controlName)['caseField']));
|
|
10891
10888
|
if (flagLauncherControlName && this.formGroup.get(flagLauncherControlName)['component']) {
|
|
@@ -11094,7 +11091,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11094
11091
|
this.caseEditDataService = caseEditDataService;
|
|
11095
11092
|
this.caseFlagFieldState = CaseFlagFieldState;
|
|
11096
11093
|
this.errorMessages = [];
|
|
11097
|
-
this.caseFlagParentFormGroup = new
|
|
11094
|
+
this.caseFlagParentFormGroup = new FormGroup({});
|
|
11098
11095
|
this.flagCommentsOptional = false;
|
|
11099
11096
|
this.listOfValues = null;
|
|
11100
11097
|
this.allCaseFlagStagesCompleted = false;
|
|
@@ -11111,11 +11108,11 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11111
11108
|
if (this.formGroup && this.formGroup.get(this.caseField.id)) {
|
|
11112
11109
|
this.formGroup.removeControl(this.caseField.id);
|
|
11113
11110
|
}
|
|
11114
|
-
// From this point, this.formGroup refers to the
|
|
11115
|
-
this.formGroup = this.registerControl(new
|
|
11111
|
+
// From this point, this.formGroup refers to the FormGroup for the FlagLauncher field, not the parent FormGroup
|
|
11112
|
+
this.formGroup = this.registerControl(new FormGroup({}, {
|
|
11116
11113
|
validators: (_) => {
|
|
11117
11114
|
if (!this.allCaseFlagStagesCompleted) {
|
|
11118
|
-
// Return an error to mark the
|
|
11115
|
+
// Return an error to mark the FormGroup as invalid if not all Case Flag stages have been completed
|
|
11119
11116
|
return { notAllCaseFlagStagesCompleted: true };
|
|
11120
11117
|
}
|
|
11121
11118
|
return null;
|
|
@@ -11164,7 +11161,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11164
11161
|
onCaseFlagStateEmitted(caseFlagState) {
|
|
11165
11162
|
this.caseEditDataService.clearFormValidationErrors();
|
|
11166
11163
|
// If the current state is CaseFlagFieldState.FLAG_LOCATION and a flag location (a Flags instance) has been selected,
|
|
11167
|
-
// set the parent Case Flag
|
|
11164
|
+
// set the parent Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup, and
|
|
11168
11165
|
// set the selected flag location on this component
|
|
11169
11166
|
if (caseFlagState.currentCaseFlagFieldState === CaseFlagFieldState.FLAG_LOCATION
|
|
11170
11167
|
&& caseFlagState.selectedFlagsLocation
|
|
@@ -11182,7 +11179,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11182
11179
|
this.listOfValues = caseFlagState.listOfValues;
|
|
11183
11180
|
}
|
|
11184
11181
|
// If the current state is CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS and a flag has been selected, set the parent
|
|
11185
|
-
// Case Flag
|
|
11182
|
+
// Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup
|
|
11186
11183
|
if (caseFlagState.currentCaseFlagFieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS
|
|
11187
11184
|
&& caseFlagState.selectedFlag
|
|
11188
11185
|
&& caseFlagState.selectedFlag.pathToFlagsFormGroup) {
|
|
@@ -11319,8 +11316,8 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11319
11316
|
if (flagsCaseFieldValue) {
|
|
11320
11317
|
const flagDetailToUpdate = flagsCaseFieldValue.details.find(detail => detail.id === this.selectedFlag.flagDetailDisplay.flagDetail.id);
|
|
11321
11318
|
if (flagDetailToUpdate) {
|
|
11322
|
-
flagDetailToUpdate.value.flagComment = this.caseFlagParentFormGroup.value
|
|
11323
|
-
? this.caseFlagParentFormGroup.value
|
|
11319
|
+
flagDetailToUpdate.value.flagComment = this.caseFlagParentFormGroup.value['flagComments']
|
|
11320
|
+
? this.caseFlagParentFormGroup.value['flagComments']
|
|
11324
11321
|
: null;
|
|
11325
11322
|
flagDetailToUpdate.value.status = this.selectedFlag.flagDetailDisplay.flagDetail.status;
|
|
11326
11323
|
flagDetailToUpdate.value.dateTimeModified = new Date().toISOString();
|
|
@@ -11345,12 +11342,12 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11345
11342
|
this.flagCommentsOptional = true;
|
|
11346
11343
|
}
|
|
11347
11344
|
/**
|
|
11348
|
-
* Set the parent {@link
|
|
11349
|
-
* to which data should be attached. **Note:** The parent is not _this_ component's `
|
|
11345
|
+
* Set the parent {@link FormGroup} for this component's children, depending on the `Flags` {@link CaseField} instance
|
|
11346
|
+
* to which data should be attached. **Note:** The parent is not _this_ component's `FormGroup` (as might otherwise be
|
|
11350
11347
|
* expected) because this component is not expected to have a value, given it is used for the empty `FlagLauncher` base
|
|
11351
11348
|
* field type.
|
|
11352
11349
|
*
|
|
11353
|
-
* @param pathToFlagsFormGroup The dot-delimited string that is the path to the `
|
|
11350
|
+
* @param pathToFlagsFormGroup The dot-delimited string that is the path to the `FormGroup` for a `Flags` instance
|
|
11354
11351
|
*/
|
|
11355
11352
|
setCaseFlagParentFormGroup(pathToFlagsFormGroup) {
|
|
11356
11353
|
this.caseFlagParentFormGroup = this.formGroup.parent.get(pathToFlagsFormGroup);
|
|
@@ -11359,19 +11356,19 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11359
11356
|
return {
|
|
11360
11357
|
name: this.flagName,
|
|
11361
11358
|
// Currently, subTypeValue and subTypeKey are applicable only to language flag types
|
|
11362
|
-
subTypeValue: this.caseFlagParentFormGroup.value
|
|
11363
|
-
? this.caseFlagParentFormGroup.value
|
|
11364
|
-
: this.caseFlagParentFormGroup.value
|
|
11365
|
-
? this.caseFlagParentFormGroup.value
|
|
11359
|
+
subTypeValue: this.caseFlagParentFormGroup.value['languageSearchTerm']
|
|
11360
|
+
? this.caseFlagParentFormGroup.value['languageSearchTerm'].value
|
|
11361
|
+
: this.caseFlagParentFormGroup.value['mmanualLanguageEntry']
|
|
11362
|
+
? this.caseFlagParentFormGroup.value['mmanualLanguageEntry']
|
|
11366
11363
|
: null,
|
|
11367
11364
|
// For user-entered (i.e. non-Reference Data) languages, there is no key
|
|
11368
|
-
subTypeKey: this.caseFlagParentFormGroup.value
|
|
11369
|
-
? this.caseFlagParentFormGroup.value
|
|
11365
|
+
subTypeKey: this.caseFlagParentFormGroup.value['languageSearchTerm']
|
|
11366
|
+
? this.caseFlagParentFormGroup.value['languageSearchTerm'].key
|
|
11370
11367
|
: null,
|
|
11371
|
-
otherDescription: this.flagCode === this.otherFlagTypeCode && this.caseFlagParentFormGroup.value
|
|
11372
|
-
? this.caseFlagParentFormGroup.value
|
|
11368
|
+
otherDescription: this.flagCode === this.otherFlagTypeCode && this.caseFlagParentFormGroup.value['otherFlagTypeDescription']
|
|
11369
|
+
? this.caseFlagParentFormGroup.value['otherFlagTypeDescription']
|
|
11373
11370
|
: null,
|
|
11374
|
-
flagComment: this.caseFlagParentFormGroup.value
|
|
11371
|
+
flagComment: this.caseFlagParentFormGroup.value['flagComments'] ? this.caseFlagParentFormGroup.value['flagComments'] : null,
|
|
11375
11372
|
dateTimeCreated: new Date().toISOString(),
|
|
11376
11373
|
path: this.flagPath,
|
|
11377
11374
|
hearingRelevant: this.hearingRelevantFlag ? 'Yes' : 'No',
|
|
@@ -11498,12 +11495,12 @@ const _c1$m = function (a0) { return { "form-group-error": a0 }; };
|
|
|
11498
11495
|
class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
11499
11496
|
ngOnInit() {
|
|
11500
11497
|
if (this.caseField.value) {
|
|
11501
|
-
this.caseLinkGroup = this.registerControl(new
|
|
11498
|
+
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11502
11499
|
CaseReference: new FormControl(this.caseField.value.CaseReference, Validators.required),
|
|
11503
11500
|
}), true);
|
|
11504
11501
|
}
|
|
11505
11502
|
else {
|
|
11506
|
-
this.caseLinkGroup = this.registerControl(new
|
|
11503
|
+
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11507
11504
|
CaseReference: new FormControl(null, Validators.required),
|
|
11508
11505
|
}), true);
|
|
11509
11506
|
}
|
|
@@ -11666,7 +11663,7 @@ class RemoveDialogComponent {
|
|
|
11666
11663
|
this.matDialogRef.close(this.result);
|
|
11667
11664
|
}
|
|
11668
11665
|
}
|
|
11669
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$4.
|
|
11666
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
|
|
11670
11667
|
RemoveDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11671
11668
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
11672
11669
|
i0.ɵɵlistener("click", function RemoveDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -11703,7 +11700,7 @@ RemoveDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Remov
|
|
|
11703
11700
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RemoveDialogComponent, [{
|
|
11704
11701
|
type: Component,
|
|
11705
11702
|
args: [{ selector: 'ccd-remove-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to remove the item?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">\n {{'You are about to permanently remove an item, are you sure you want to remove this item?' | rpxTranslate}}\n </span>\n </div>\n <div>\n <button type=\"button\" title=\"Remove\" class=\"button action-button\" (click)=\"remove()\">{{'Remove' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
11706
|
-
}], function () { return [{ type: i1$4.
|
|
11703
|
+
}], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null); })();
|
|
11707
11704
|
|
|
11708
11705
|
const _c0$O = ["collectionItem"];
|
|
11709
11706
|
function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -11829,7 +11826,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11829
11826
|
* this is what appears to be happening:
|
|
11830
11827
|
* 1. this.formArray contains no controls at all.
|
|
11831
11828
|
* this.formArray.value = [];
|
|
11832
|
-
* 2. this.formArray contains a
|
|
11829
|
+
* 2. this.formArray contains a FormGroup, which contains a single
|
|
11833
11830
|
* FormControl with the id 'code'.
|
|
11834
11831
|
* this.formArray.value = [{ code: null }]
|
|
11835
11832
|
* 3. this.formArray contains what is being set up below.
|
|
@@ -11841,7 +11838,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11841
11838
|
group = this.formArray.at(index);
|
|
11842
11839
|
}
|
|
11843
11840
|
else {
|
|
11844
|
-
group = new
|
|
11841
|
+
group = new FormGroup({});
|
|
11845
11842
|
}
|
|
11846
11843
|
let value;
|
|
11847
11844
|
if (this.isCollectionOfSimpleType(this.caseField)) {
|
|
@@ -11855,14 +11852,14 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11855
11852
|
else {
|
|
11856
11853
|
value = group.get('value');
|
|
11857
11854
|
if (!value) {
|
|
11858
|
-
value = new
|
|
11855
|
+
value = new FormGroup({});
|
|
11859
11856
|
for (const key of Object.keys(group.controls)) {
|
|
11860
11857
|
value.addControl(key, group.get(key));
|
|
11861
11858
|
// DON'T remove the control for this key from the outer group or it
|
|
11862
11859
|
// goes awry. So DON'T uncomment the below line!
|
|
11863
11860
|
// group.removeControl(key);
|
|
11864
11861
|
}
|
|
11865
|
-
// Now add the value
|
|
11862
|
+
// Now add the value FormGroup to the outer group.
|
|
11866
11863
|
group.addControl('value', value);
|
|
11867
11864
|
}
|
|
11868
11865
|
}
|
|
@@ -11967,7 +11964,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11967
11964
|
}
|
|
11968
11965
|
getContainer(index) {
|
|
11969
11966
|
const value = this.formArray.at(index).get('value');
|
|
11970
|
-
if (value instanceof
|
|
11967
|
+
if (value instanceof FormGroup) {
|
|
11971
11968
|
return value;
|
|
11972
11969
|
}
|
|
11973
11970
|
else {
|
|
@@ -12076,7 +12073,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12076
12073
|
* Applied full solution as part of EUI-3505
|
|
12077
12074
|
*/
|
|
12078
12075
|
getControlIdAt(index) {
|
|
12079
|
-
// this.formArray contains [
|
|
12076
|
+
// this.formArray contains [ FormGroup( id: FormControl, value: FormGroup ), ... ].
|
|
12080
12077
|
// Here, we need to get the value of the id FormControl.
|
|
12081
12078
|
const group = this.formArray.at(index);
|
|
12082
12079
|
const control = group.get('id');
|
|
@@ -12087,7 +12084,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12087
12084
|
return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
|
|
12088
12085
|
}
|
|
12089
12086
|
}
|
|
12090
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$4.
|
|
12087
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
12091
12088
|
WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12092
12089
|
i0.ɵɵviewQuery(_c0$O, 5);
|
|
12093
12090
|
} if (rf & 2) {
|
|
@@ -12126,7 +12123,7 @@ WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
12126
12123
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCollectionFieldComponent, [{
|
|
12127
12124
|
type: Component,
|
|
12128
12125
|
args: [{ selector: 'ccd-write-collection-field', template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\">\n {{(caseField | ccdFieldLabel) | rpxTranslate }}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text | rpxTranslate }}</span>\n <span *ngIf=\"formArray.errors\" class=\"error-message\">\n {{(formArray.errors | ccdFirstError:caseField.label ) | rpxTranslate}}\n </span>\n </h2>\n\n <div class=\"form-group\" [hidden]=\"caseField.hidden\" *ngIf=\"caseField.value && caseField.value.length\">\n\n <div class=\"form-group\" *ngFor=\"let item of collItems; let i = index\" #collectionItem>\n <div class=\"collection-title\">\n <div class=\"float-left\">\n <label [for]=\"item.prefix + i\"><h3 class=\"heading-h3\">{{itemLabel(i) | rpxTranslate}}</h3></label>\n </div>\n <div class=\"float-right\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"openModal(i)\"\n [disabled]=\"isNotAuthorisedToDelete(i)\"\n attr.aria-label=\"Remove {{ itemLabel(i) }}\">{{'Remove' | rpxTranslate}}</button>\n </div>\n </div>\n <ccd-field-write [caseField]=\"item.caseField\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"item.container\"\n [idPrefix]=\"item.prefix\"\n [hidden]=\"item.caseField.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </div>\n\n </div>\n\n <button class=\"button write-collection-add-item__bottom\" type=\"button\" (click)=\"addItem(false)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\" *ngIf=\"caseField.value && caseField.value.length\">{{'Add new' | rpxTranslate }}</button>\n\n </div>\n\n</div>\n", styles: [".collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
|
|
12129
|
-
}], function () { return [{ type: i1$4.
|
|
12126
|
+
}], function () { return [{ type: i1$4.MatLegacyDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
12130
12127
|
type: Input
|
|
12131
12128
|
}], formGroup: [{
|
|
12132
12129
|
type: Input
|
|
@@ -12344,7 +12341,7 @@ class DocumentDialogComponent {
|
|
|
12344
12341
|
this.matDialogRef.close(this.result);
|
|
12345
12342
|
}
|
|
12346
12343
|
}
|
|
12347
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$4.
|
|
12344
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
|
|
12348
12345
|
DocumentDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12349
12346
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
12350
12347
|
i0.ɵɵlistener("click", function DocumentDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -12381,7 +12378,7 @@ DocumentDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Doc
|
|
|
12381
12378
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentDialogComponent, [{
|
|
12382
12379
|
type: Component,
|
|
12383
12380
|
args: [{ selector: 'ccd-document-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to replace the existing file?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You are about to delete the original file uploaded. Are you sure you want to proceed?' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Replace\" class=\"button action-button\" (click)=\"replace()\">{{'Replace file' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
12384
|
-
}], function () { return [{ type: i1$4.
|
|
12381
|
+
}], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null); })();
|
|
12385
12382
|
|
|
12386
12383
|
class FileUploadStateService {
|
|
12387
12384
|
setUploadInProgress(value) {
|
|
@@ -12426,17 +12423,18 @@ function WriteDocumentFieldComponent_ccd_read_document_field_10_Template(rf, ctx
|
|
|
12426
12423
|
} }
|
|
12427
12424
|
const _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
12428
12425
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
12429
|
-
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
12426
|
+
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
|
|
12430
12427
|
super();
|
|
12431
12428
|
this.appConfig = appConfig;
|
|
12432
12429
|
this.caseNotifier = caseNotifier;
|
|
12433
12430
|
this.documentManagement = documentManagement;
|
|
12434
12431
|
this.dialog = dialog;
|
|
12435
12432
|
this.fileUploadStateService = fileUploadStateService;
|
|
12433
|
+
this.jurisdictionService = jurisdictionService;
|
|
12436
12434
|
this.valid = true;
|
|
12437
12435
|
}
|
|
12438
12436
|
clickout(event) {
|
|
12439
|
-
// Capturing the event of
|
|
12437
|
+
// Capturing the event of the associated ElementRef <input type="file" #fileInpu
|
|
12440
12438
|
if (this.fileInput.nativeElement.contains(event.target)) {
|
|
12441
12439
|
this.clickInsideTheDocument = true;
|
|
12442
12440
|
}
|
|
@@ -12446,6 +12444,9 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12446
12444
|
}
|
|
12447
12445
|
ngOnInit() {
|
|
12448
12446
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
12447
|
+
if (this.secureModeOn) {
|
|
12448
|
+
this.subscribeToCaseDetails();
|
|
12449
|
+
}
|
|
12449
12450
|
this.dialogConfig = initDialog();
|
|
12450
12451
|
// EUI-3403. The field was not being registered when there was no value and the field
|
|
12451
12452
|
// itself was not mandatory, which meant that show_conditions would not be evaluated.
|
|
@@ -12458,9 +12459,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12458
12459
|
else {
|
|
12459
12460
|
this.createDocumentForm(document);
|
|
12460
12461
|
}
|
|
12461
|
-
if (this.appConfig.getDocumentSecureMode()) {
|
|
12462
|
-
this.subscribeToCaseDetails();
|
|
12463
|
-
}
|
|
12464
12462
|
}
|
|
12465
12463
|
ngOnDestroy() {
|
|
12466
12464
|
if (this.fileUploadSubscription) {
|
|
@@ -12469,8 +12467,11 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12469
12467
|
if (this.dialogSubscription) {
|
|
12470
12468
|
this.dialogSubscription.unsubscribe();
|
|
12471
12469
|
}
|
|
12472
|
-
if (this.
|
|
12473
|
-
this.
|
|
12470
|
+
if (this.caseNotifierSubscription) {
|
|
12471
|
+
this.caseNotifierSubscription.unsubscribe();
|
|
12472
|
+
}
|
|
12473
|
+
if (this.jurisdictionSubs) {
|
|
12474
|
+
this.jurisdictionSubs.unsubscribe();
|
|
12474
12475
|
}
|
|
12475
12476
|
}
|
|
12476
12477
|
isUploadInProgress() {
|
|
@@ -12521,7 +12522,9 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12521
12522
|
triggerReplace() {
|
|
12522
12523
|
if (this.confirmReplaceResult === 'Replace') {
|
|
12523
12524
|
this.openFileDialog();
|
|
12525
|
+
return true;
|
|
12524
12526
|
}
|
|
12527
|
+
return false;
|
|
12525
12528
|
}
|
|
12526
12529
|
getUploadedFileName() {
|
|
12527
12530
|
if (this.uploadedDocument) {
|
|
@@ -12555,10 +12558,26 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12555
12558
|
this.triggerReplace();
|
|
12556
12559
|
});
|
|
12557
12560
|
}
|
|
12561
|
+
// Depending on the context, we can get the case type and jurisdiction from different sources
|
|
12562
|
+
// If we are running an event, the caseNotifier will have the current case
|
|
12563
|
+
// If we are creating a case, the case doesn't exist yet, so the caseNotifier can't help
|
|
12564
|
+
// Instead we can use the eventTrigger to get the case type, and the jurisdiction service to
|
|
12565
|
+
// get the currently selected jurisdiction
|
|
12558
12566
|
subscribeToCaseDetails() {
|
|
12559
|
-
this.
|
|
12567
|
+
this.caseNotifierSubscription = this.caseNotifier.caseView.subscribe({
|
|
12560
12568
|
next: (caseDetails) => {
|
|
12561
|
-
this.
|
|
12569
|
+
this.caseTypeId = caseDetails?.case_id;
|
|
12570
|
+
this.jurisdictionId = caseDetails?.case_type?.jurisdiction?.id;
|
|
12571
|
+
}
|
|
12572
|
+
});
|
|
12573
|
+
this.jurisdictionSubs = this.jurisdictionService.selectedJurisdictionBS.subscribe({
|
|
12574
|
+
next: (jurisdiction) => {
|
|
12575
|
+
if (jurisdiction) {
|
|
12576
|
+
this.jurisdictionId = jurisdiction.id;
|
|
12577
|
+
if (jurisdiction.currentCaseType) {
|
|
12578
|
+
this.caseTypeId = jurisdiction.currentCaseType.id;
|
|
12579
|
+
}
|
|
12580
|
+
}
|
|
12562
12581
|
}
|
|
12563
12582
|
});
|
|
12564
12583
|
}
|
|
@@ -12602,7 +12621,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12602
12621
|
...documentFormGroup,
|
|
12603
12622
|
...{ document_hash: new FormControl(document.document_hash) }
|
|
12604
12623
|
} : documentFormGroup;
|
|
12605
|
-
this.uploadedDocument = this.registerControl(new
|
|
12624
|
+
this.uploadedDocument = this.registerControl(new FormGroup(documentFormGroup), true);
|
|
12606
12625
|
}
|
|
12607
12626
|
createDocumentForm(document) {
|
|
12608
12627
|
let documentFormGroup = {
|
|
@@ -12614,7 +12633,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12614
12633
|
...documentFormGroup,
|
|
12615
12634
|
...{ document_hash: new FormControl(document.document_hash) }
|
|
12616
12635
|
} : documentFormGroup;
|
|
12617
|
-
this.uploadedDocument = this.registerControl(new
|
|
12636
|
+
this.uploadedDocument = this.registerControl(new FormGroup(documentFormGroup), true);
|
|
12618
12637
|
}
|
|
12619
12638
|
getErrorMessage(error) {
|
|
12620
12639
|
// Document Management unavailable
|
|
@@ -12628,13 +12647,8 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12628
12647
|
documentUpload.append('files', selectedFile, selectedFile.name);
|
|
12629
12648
|
documentUpload.append('classification', 'PUBLIC');
|
|
12630
12649
|
if (this.appConfig.getDocumentSecureMode()) {
|
|
12631
|
-
const caseTypeId = this.
|
|
12632
|
-
|
|
12633
|
-
this.caseDetails.case_type.id ? this.caseDetails.case_type.id : null;
|
|
12634
|
-
const caseTypeJurisdictionId = this.caseDetails &&
|
|
12635
|
-
this.caseDetails.case_type &&
|
|
12636
|
-
this.caseDetails.case_type.jurisdiction &&
|
|
12637
|
-
this.caseDetails.case_type.jurisdiction.id ? this.caseDetails.case_type.jurisdiction.id : null;
|
|
12650
|
+
const caseTypeId = this.caseTypeId ? this.caseTypeId : null;
|
|
12651
|
+
const caseTypeJurisdictionId = this.jurisdictionId ? this.jurisdictionId : null;
|
|
12638
12652
|
documentUpload.append('caseTypeId', caseTypeId);
|
|
12639
12653
|
documentUpload.append('jurisdictionId', caseTypeJurisdictionId);
|
|
12640
12654
|
}
|
|
@@ -12681,7 +12695,7 @@ WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
|
|
|
12681
12695
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
12682
12696
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
12683
12697
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12684
|
-
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.
|
|
12698
|
+
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
12685
12699
|
WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12686
12700
|
i0.ɵɵviewQuery(_c0$N, 5);
|
|
12687
12701
|
} if (rf & 2) {
|
|
@@ -12739,7 +12753,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12739
12753
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
12740
12754
|
type: Component,
|
|
12741
12755
|
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel) | rpxTranslate}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
12742
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$4.
|
|
12756
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$4.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
12743
12757
|
type: ViewChild,
|
|
12744
12758
|
args: ['fileInput', { static: false }]
|
|
12745
12759
|
}], clickout: [{
|
|
@@ -13786,7 +13800,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
13786
13800
|
ngOnInit() {
|
|
13787
13801
|
super.ngOnInit();
|
|
13788
13802
|
this.judicialUserControl = new FormControl(this.caseField.value);
|
|
13789
|
-
// FormControl needs to be added to the main
|
|
13803
|
+
// FormControl needs to be added to the main FormGroup so it can be picked up by the PageValidationService when
|
|
13790
13804
|
// checking if the page is valid. formGroup.setControl() is used here to ensure any existing JudicialUser
|
|
13791
13805
|
// FormControl is replaced when the component is re-initialised, for example, if the user navigates away then
|
|
13792
13806
|
// back to the page containing the JudicialUser field
|
|
@@ -13838,6 +13852,17 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
13838
13852
|
this.jurisdiction = caseInfo?.jurisdiction;
|
|
13839
13853
|
this.caseType = caseInfo?.caseType;
|
|
13840
13854
|
}
|
|
13855
|
+
else {
|
|
13856
|
+
// If there is no case info, attempt to get the current jurisdiction and case type via the JurisdictionService
|
|
13857
|
+
this.jurisdictionSubscription = this.jurisdictionService.selectedJurisdictionBS.subscribe((jurisdiction) => {
|
|
13858
|
+
if (jurisdiction) {
|
|
13859
|
+
this.jurisdiction = jurisdiction.id;
|
|
13860
|
+
if (jurisdiction.currentCaseType) {
|
|
13861
|
+
this.caseType = jurisdiction.currentCaseType.id;
|
|
13862
|
+
}
|
|
13863
|
+
}
|
|
13864
|
+
});
|
|
13865
|
+
}
|
|
13841
13866
|
}
|
|
13842
13867
|
displayJudicialUser(judicialUser) {
|
|
13843
13868
|
return judicialUser
|
|
@@ -13881,6 +13906,9 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
13881
13906
|
this.judicialUserControl.setValidators(Validators.required);
|
|
13882
13907
|
}
|
|
13883
13908
|
}
|
|
13909
|
+
ngOnDestroy() {
|
|
13910
|
+
this.jurisdictionSubscription?.unsubscribe();
|
|
13911
|
+
}
|
|
13884
13912
|
}
|
|
13885
13913
|
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService)); };
|
|
13886
13914
|
WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 17, consts: [[1, "form-group", 3, "formGroup", "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "id", "formControl", "matAutocomplete", "blur"], ["autoActiveFirstOption", "", 3, "displayWith"], ["autoComplete", "matAutocomplete"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", "disabled", "", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "select-option", 3, "ngClass", "value", "onSelectionChange"], ["disabled", "", 1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -13919,7 +13947,7 @@ WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ t
|
|
|
13919
13947
|
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length > ctx.minSearchCharacters && ctx.showAutocomplete);
|
|
13920
13948
|
i0.ɵɵadvance(1);
|
|
13921
13949
|
i0.ɵɵproperty("ngIf", ctx.invalidSearchTerm);
|
|
13922
|
-
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormControlDirective, i3.FormGroupDirective, i5.
|
|
13950
|
+
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormControlDirective, i3.FormGroupDirective, i5.MatLegacyAutocomplete, i5.MatLegacyAutocompleteTrigger, i6.MatLegacyOption, i1.AsyncPipe, FieldLabelPipe, FirstErrorPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
|
|
13923
13951
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
|
|
13924
13952
|
type: Component,
|
|
13925
13953
|
args: [{ selector: 'ccd-write-judicial-user-field', template: "<div class=\"form-group\" [formGroup]=\"formGroup\" [ngClass]=\"{'form-group-error': !!judicialUserControl && errors}\">\n <label [for]=\"id()\">\n <span *ngIf=\"caseField.label\" class=\"form-label\">\n {{caseField | ccdFieldLabel}}\n </span>\n </label>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n {{caseField.hint_text}}\n </span>\n <span class=\"error-message\" *ngIf=\"errors\">\n {{errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"form-control bottom-30\" [id]=\"id()\"\n [formControl]=\"judicialUserControl\" [matAutocomplete]=\"autoComplete\" (blur)=\"onBlur($event)\">\n <mat-autocomplete autoActiveFirstOption #autoComplete=\"matAutocomplete\" [displayWith]=\"displayJudicialUser\">\n <mat-option *ngFor=\"let judicialUser of filteredJudicialUsers$ | async\"\n class=\"select-option\" [ngClass]=\"{'hide-autocomplete': !showAutocomplete}\"\n [value]=\"judicialUser\" (onSelectionChange)=\"onSelectionChange($event)\">\n {{judicialUser?.fullName ? judicialUser.fullName : ''}}{{judicialUser?.emailId ? ' (' + judicialUser.emailId + ')' : ''}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length > minSearchCharacters && showAutocomplete\" class=\"select-option\" disabled>\n No results found\n </mat-option>\n <mat-option *ngIf=\"invalidSearchTerm\" class=\"select-option\" disabled>\n Invalid search term\n </mat-option>\n </mat-autocomplete>\n</div>\n", styles: [".mat-option:hover{background:#2596be}.mat-option.select-option:hover{background:#1d70b8;color:#fff}.hide-autocomplete{display:none}\n"] }]
|
|
@@ -16003,7 +16031,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16003
16031
|
this.linkedCasesService.caseFieldValue = caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.id) === -1);
|
|
16004
16032
|
}
|
|
16005
16033
|
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
16006
|
-
this.caseEditForm.controls['data'] = new
|
|
16034
|
+
this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
|
|
16007
16035
|
this.caseEditDataService.setCaseEditForm(this.caseEditForm);
|
|
16008
16036
|
}
|
|
16009
16037
|
isAtFinalPage() {
|
|
@@ -16619,7 +16647,7 @@ class WriteOrderSummaryFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16619
16647
|
and has to be built manually.
|
|
16620
16648
|
*/
|
|
16621
16649
|
ngOnInit() {
|
|
16622
|
-
const orderSummaryGroup = this.registerControl(new
|
|
16650
|
+
const orderSummaryGroup = this.registerControl(new FormGroup({}), true);
|
|
16623
16651
|
const paymentReference = new FormControl(this.caseField.value.PaymentReference);
|
|
16624
16652
|
orderSummaryGroup.addControl('PaymentReference', paymentReference);
|
|
16625
16653
|
const paymentTotal = new FormControl(this.caseField.value.PaymentTotal);
|
|
@@ -16631,12 +16659,12 @@ class WriteOrderSummaryFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16631
16659
|
orderSummaryGroup.addControl('Fees', feesArray);
|
|
16632
16660
|
}
|
|
16633
16661
|
getFeeValue(feeValue) {
|
|
16634
|
-
const feeGroup = new
|
|
16662
|
+
const feeGroup = new FormGroup({});
|
|
16635
16663
|
feeGroup.addControl('FeeCode', new FormControl(feeValue.FeeCode));
|
|
16636
16664
|
feeGroup.addControl('FeeAmount', new FormControl(feeValue.FeeAmount));
|
|
16637
16665
|
feeGroup.addControl('FeeDescription', new FormControl(feeValue.FeeDescription));
|
|
16638
16666
|
feeGroup.addControl('FeeVersion', new FormControl(feeValue.FeeVersion));
|
|
16639
|
-
const feeValueGroup = new
|
|
16667
|
+
const feeValueGroup = new FormGroup({});
|
|
16640
16668
|
feeValueGroup.addControl('value', feeGroup);
|
|
16641
16669
|
return feeValueGroup;
|
|
16642
16670
|
}
|
|
@@ -16887,7 +16915,7 @@ class WriteOrganisationFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16887
16915
|
this.searchOrgTextFormControl = new FormControl('');
|
|
16888
16916
|
this.searchOrgValue$ = this.searchOrgTextFormControl.valueChanges;
|
|
16889
16917
|
this.searchOrgValue$.subscribe(value => this.onSearchOrg(value));
|
|
16890
|
-
this.organisationFormGroup = this.registerControl(new
|
|
16918
|
+
this.organisationFormGroup = this.registerControl(new FormGroup({}), true);
|
|
16891
16919
|
if (this.parent && this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION)
|
|
16892
16920
|
&& this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value
|
|
16893
16921
|
&& this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase()
|
|
@@ -17711,7 +17739,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
17711
17739
|
this.resolver = resolver;
|
|
17712
17740
|
this.paletteService = paletteService;
|
|
17713
17741
|
this.withLabel = false;
|
|
17714
|
-
this.formGroup = new
|
|
17742
|
+
this.formGroup = new FormGroup({});
|
|
17715
17743
|
this.caseFields = [];
|
|
17716
17744
|
}
|
|
17717
17745
|
ngOnInit() {
|
|
@@ -17734,7 +17762,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
17734
17762
|
}
|
|
17735
17763
|
component.instance['caseField'] = this.caseField;
|
|
17736
17764
|
component.instance['caseFields'] = this.caseFields;
|
|
17737
|
-
component.instance['
|
|
17765
|
+
component.instance['formGroup'] = this.formGroup;
|
|
17738
17766
|
component.instance['topLevelFormGroup'] = this.topLevelFormGroup;
|
|
17739
17767
|
component.instance['idPrefix'] = this.idPrefix;
|
|
17740
17768
|
component.instance['parent'] = this.parent;
|
|
@@ -17808,7 +17836,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
17808
17836
|
}
|
|
17809
17837
|
component.instance['caseField'] = this.caseField;
|
|
17810
17838
|
component.instance['caseFields'] = this.caseFields;
|
|
17811
|
-
component.instance['
|
|
17839
|
+
component.instance['formGroup'] = this.formGroup;
|
|
17812
17840
|
component.instance['parent'] = this.parent;
|
|
17813
17841
|
component.instance['idPrefix'] = this.idPrefix;
|
|
17814
17842
|
if (this.caseField.field_type.id === 'AddressGlobal') {
|
|
@@ -18035,7 +18063,7 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
18035
18063
|
return null;
|
|
18036
18064
|
}
|
|
18037
18065
|
}
|
|
18038
|
-
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$4.
|
|
18066
|
+
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); };
|
|
18039
18067
|
CaseFileViewFolderSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18040
18068
|
i0.ɵɵelementStart(0, "div", 0);
|
|
18041
18069
|
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
@@ -18067,9 +18095,9 @@ CaseFileViewFolderSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
18067
18095
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18068
18096
|
type: Component,
|
|
18069
18097
|
args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, template: "<div class=\"close\" (click)=\"cancel()\"></div>\n<h2 class=\"govuk-heading-l\">Move File</h2>\n<p>Where do you want to move \"{{ data.document.document_filename }}\" file?</p>\n<div class=\"folders govuk-radios govuk-radios--conditional\">\n <ng-container *ngFor=\"let cat of currentCategories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:cat,level:1}\"></ng-container>\n </ng-container>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"save()\">Save</button>\n <a (click)=\"cancel()\" class=\"cancel\">Cancel</a>\n</div>\n\n<ng-template #folder let-cat=\"cat\" let-level=\"level\">\n <div class=\"folder govuk-radios__item\">\n <input class=\"govuk-radios__input\" type=\"radio\" name=\"level-{{level}}\" [id]=\"cat.category_id\" (click)=\"handleChange($event)\" />\n <label class=\"govuk-label govuk-radios__label\" [for]=\"cat.category_id\">\n <img class=\"iconImg\" src=\"/assets/images/folder.png\" alt=\"Folder icon\" />\n {{ cat.category_name }}\n </label>\n <ng-container *ngFor=\"let subcat of cat.sub_categories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:subcat,level:level+1}\"></ng-container>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #CCC;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #CCC}.folders>.folder{display:block}input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat center center;cursor:pointer}.cancel{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#EEE}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#CCC}\n"] }]
|
|
18070
|
-
}], function () { return [{ type: i1$4.
|
|
18098
|
+
}], function () { return [{ type: i1$4.MatLegacyDialogRef }, { type: undefined, decorators: [{
|
|
18071
18099
|
type: Inject,
|
|
18072
|
-
args: [
|
|
18100
|
+
args: [MAT_LEGACY_DIALOG_DATA]
|
|
18073
18101
|
}] }]; }, null); })();
|
|
18074
18102
|
|
|
18075
18103
|
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -18439,7 +18467,7 @@ class CaseFileViewFolderComponent {
|
|
|
18439
18467
|
}
|
|
18440
18468
|
}
|
|
18441
18469
|
ngOnInit() {
|
|
18442
|
-
this.documentFilterFormGroup = new
|
|
18470
|
+
this.documentFilterFormGroup = new FormGroup({});
|
|
18443
18471
|
this.documentSearchFormControl = new FormControl('');
|
|
18444
18472
|
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
18445
18473
|
// Listen to search input and initiate filter documents if at least three characters entered
|
|
@@ -18618,7 +18646,7 @@ class CaseFileViewFolderComponent {
|
|
|
18618
18646
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
18619
18647
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
18620
18648
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
18621
|
-
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.
|
|
18649
|
+
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog)); };
|
|
18622
18650
|
CaseFileViewFolderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18623
18651
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
18624
18652
|
i0.ɵɵelement(2, "input", 2);
|
|
@@ -18641,7 +18669,7 @@ CaseFileViewFolderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
18641
18669
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
18642
18670
|
type: Component,
|
|
18643
18671
|
args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscAlphabetically()\"\n (sortDescending)=\"sortDataSourceDescAlphabetically()\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">{{node.name}}</span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #FFF;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#EEE}.document-tree-container::-webkit-scrollbar-thumb{background:#CCC}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}\n"] }]
|
|
18644
|
-
}], function () { return [{ type: WindowService }, { type: i1$2.Router }, { type: DocumentManagementService }, { type: i1$4.
|
|
18672
|
+
}], function () { return [{ type: WindowService }, { type: i1$2.Router }, { type: DocumentManagementService }, { type: i1$4.MatLegacyDialog }]; }, { categoriesAndDocuments: [{
|
|
18645
18673
|
type: Input
|
|
18646
18674
|
}], allowMoving: [{
|
|
18647
18675
|
type: Input
|
|
@@ -19475,7 +19503,7 @@ SearchLanguageInterpreterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent(
|
|
|
19475
19503
|
i0.ɵɵtextInterpolate1(" ", ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL, " ");
|
|
19476
19504
|
i0.ɵɵadvance(1);
|
|
19477
19505
|
i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
19478
|
-
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i3$2.
|
|
19506
|
+
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i3$2.MatLegacyInput, i5.MatLegacyAutocomplete, i5.MatLegacyAutocompleteTrigger, i6.MatLegacyOption, i1.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width: 641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
|
|
19479
19507
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
19480
19508
|
type: Component,
|
|
19481
19509
|
args: [{ selector: 'ccd-search-language-interpreter', template: "<div class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotSelectedErrorMessage || languageEnteredInBothFieldsErrorMessage}\">\n <h1 class=\"govuk-label-wrapper\"><label class=\"govuk-label govuk-label--l\" [for]=\"languageSearchTermControlName\">\n {{searchLanguageInterpreterTitle}}\n </label>\n </h1>\n <div id=\"language-search-box-hint\" class=\"govuk-hint\">\n {{searchLanguageInterpreterHint}}\n </div>\n <div class=\"auto-complete-container\">\n <div id=\"language-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{languageNotSelectedErrorMessage}}\n </div>\n <div id=\"language-entered-in-both-fields-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageEnteredInBothFieldsErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{languageEnteredInBothFieldsErrorMessage}}\n </div>\n <input aria-label=\"Language search box\" matInput [formControlName]=\"languageSearchTermControlName\" [matAutocomplete]=\"autoSearchLanguage\"\n class=\"govuk-input search-language__input\" type=\"text\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLanguage=\"matAutocomplete\"\n [displayWith]=\"displayLanguage\">\n <mat-option *ngFor=\"let language of filteredLanguages$ | async\" [value]=\"language\">\n {{language.value}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length >= minSearchCharacters\" disabled>No results found</mat-option>\n </mat-autocomplete>\n </div>\n <div class=\"govuk-checkboxes govuk-checkboxes--small govuk-checkboxes--conditional\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-checkboxes__input\" id=\"enter-language-manually\" name=\"enter-language-manually\" type=\"checkbox\"\n (change)=\"onEnterLanguageManually($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"enter-language-manually\">\n {{searchLanguageInterpreterStep.CHECKBOX_LABEL}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"isCheckboxEnabled\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotEnteredErrorMessage || languageCharLimitErrorMessage }\">\n <label class=\"govuk-label\" for=\"manual-language-entry\">{{searchLanguageInterpreterStep.INPUT_LABEL}}</label>\n <div id=\"language-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{languageNotEnteredErrorMessage}}\n </div>\n <div id=\"language-char-limit-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{languageCharLimitErrorMessage}}\n </div>\n <input class=\"govuk-input govuk-input--width-20\" id=\"manual-language-entry\" [name]=\"manualLanguageEntryControlName\" type=\"text\"\n [formControlName]=\"manualLanguageEntryControlName\">\n </div>\n </div>\n </div>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">Next</button>\n </div>\n</div>\n", styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width: 641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}.hidden{display:none}.search-language__input{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}\n"] }]
|
|
@@ -20880,7 +20908,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
20880
20908
|
{
|
|
20881
20909
|
provide: NgxMatDateAdapter,
|
|
20882
20910
|
useClass: NgxMatMomentAdapter,
|
|
20883
|
-
deps: [
|
|
20911
|
+
deps: [MAT_LEGACY_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
20884
20912
|
},
|
|
20885
20913
|
{ provide: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
20886
20914
|
]), i0.ɵɵInheritDefinitionFeature], decls: 14, vars: 26, consts: [[1, "govuk-form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "datepicker-container"], ["ng-model-options", "{timezone:'utc'}", 1, "govuk-input", 3, "min", "max", "formControl", "ngxMatDatetimePicker", "focusin", "focusout", "dateChange"], ["input", ""], ["matSuffix", "", "id", "pickerOpener", 3, "for"], [3, "color", "touchUi", "hideTime", "startView", "stepHour", "stepSecond", "stepMinute", "showSeconds", "showSpinners", "disableMinute", "enableMeridian", "yearSelected", "monthSelected", "opened"], ["picker", ""], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function DatetimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -20918,7 +20946,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
20918
20946
|
i0.ɵɵproperty("for", _r6);
|
|
20919
20947
|
i0.ɵɵadvance(1);
|
|
20920
20948
|
i0.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
|
|
20921
|
-
} }, dependencies: [i1.NgClass, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i4.NgxMatDatetimepicker, i4.NgxMatDatepickerInput, i5$1.MatSuffix, i6$2.MatDatepickerToggle, FieldLabelPipe, FirstErrorPipe, i1$1.RpxTranslatePipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}\n"], encapsulation: 2 });
|
|
20949
|
+
} }, dependencies: [i1.NgClass, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i4.NgxMatDatetimepicker, i4.NgxMatDatepickerInput, i5$1.MatLegacySuffix, i6$2.MatDatepickerToggle, FieldLabelPipe, FirstErrorPipe, i1$1.RpxTranslatePipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}\n"], encapsulation: 2 });
|
|
20922
20950
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
20923
20951
|
type: Component,
|
|
20924
20952
|
args: [{ selector: 'ccd-datetime-picker', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -20926,7 +20954,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
20926
20954
|
{
|
|
20927
20955
|
provide: NgxMatDateAdapter,
|
|
20928
20956
|
useClass: NgxMatMomentAdapter,
|
|
20929
|
-
deps: [
|
|
20957
|
+
deps: [MAT_LEGACY_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
20930
20958
|
},
|
|
20931
20959
|
{ provide: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
20932
20960
|
], template: "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel) | rpxTranslate }}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{(dateControl.errors | ccdFirstError:caseField.label) | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">{{'This date is older than the minimum date allowed' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">{{'This date is later than the maximum date allowed' | rpxTranslate}}</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format | rpxTranslate {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n", styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}\n"] }]
|
|
@@ -22248,15 +22276,15 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
22248
22276
|
CaseFlagRefdataService,
|
|
22249
22277
|
YesNoService,
|
|
22250
22278
|
CollectionCreateCheckerService,
|
|
22279
|
+
JurisdictionService,
|
|
22251
22280
|
PaletteService,
|
|
22252
22281
|
FormValidatorsService,
|
|
22253
22282
|
FileUploadStateService,
|
|
22254
22283
|
FileUploadProgressGuard,
|
|
22255
22284
|
WindowService,
|
|
22256
22285
|
CommonDataService,
|
|
22257
|
-
JurisdictionService,
|
|
22258
22286
|
LinkedCasesService,
|
|
22259
|
-
{ provide:
|
|
22287
|
+
{ provide: MAT_LEGACY_DATE_LOCALE, useValue: 'en-GB' }
|
|
22260
22288
|
], imports: [CommonModule,
|
|
22261
22289
|
RouterModule,
|
|
22262
22290
|
FormsModule,
|
|
@@ -22275,10 +22303,10 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
22275
22303
|
NgxMatDatetimePickerModule,
|
|
22276
22304
|
NgxMatTimepickerModule,
|
|
22277
22305
|
NgxMatNativeDateModule,
|
|
22278
|
-
|
|
22279
|
-
|
|
22306
|
+
MatLegacyFormFieldModule,
|
|
22307
|
+
MatLegacyInputModule,
|
|
22280
22308
|
MatDatepickerModule,
|
|
22281
|
-
|
|
22309
|
+
MatLegacyAutocompleteModule,
|
|
22282
22310
|
CdkTreeModule,
|
|
22283
22311
|
OverlayModule,
|
|
22284
22312
|
PaymentLibModule,
|
|
@@ -22286,7 +22314,7 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
22286
22314
|
RpxTranslationModule.forChild(),
|
|
22287
22315
|
CdkTreeModule,
|
|
22288
22316
|
OverlayModule,
|
|
22289
|
-
|
|
22317
|
+
MatLegacyDialogModule,
|
|
22290
22318
|
MediaViewerModule,
|
|
22291
22319
|
LoadingModule, NgxMatDatetimePickerModule,
|
|
22292
22320
|
NgxMatNativeDateModule,
|
|
@@ -22316,10 +22344,10 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
22316
22344
|
NgxMatDatetimePickerModule,
|
|
22317
22345
|
NgxMatTimepickerModule,
|
|
22318
22346
|
NgxMatNativeDateModule,
|
|
22319
|
-
|
|
22320
|
-
|
|
22347
|
+
MatLegacyFormFieldModule,
|
|
22348
|
+
MatLegacyInputModule,
|
|
22321
22349
|
MatDatepickerModule,
|
|
22322
|
-
|
|
22350
|
+
MatLegacyAutocompleteModule,
|
|
22323
22351
|
CdkTreeModule,
|
|
22324
22352
|
OverlayModule,
|
|
22325
22353
|
PaymentLibModule,
|
|
@@ -22327,7 +22355,7 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
22327
22355
|
RpxTranslationModule.forChild(),
|
|
22328
22356
|
CdkTreeModule,
|
|
22329
22357
|
OverlayModule,
|
|
22330
|
-
|
|
22358
|
+
MatLegacyDialogModule,
|
|
22331
22359
|
MediaViewerModule,
|
|
22332
22360
|
LoadingModule
|
|
22333
22361
|
],
|
|
@@ -22353,18 +22381,17 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
22353
22381
|
CaseFlagRefdataService,
|
|
22354
22382
|
YesNoService,
|
|
22355
22383
|
CollectionCreateCheckerService,
|
|
22384
|
+
JurisdictionService,
|
|
22356
22385
|
PaletteService,
|
|
22357
22386
|
FormValidatorsService,
|
|
22358
22387
|
FileUploadStateService,
|
|
22359
22388
|
FileUploadProgressGuard,
|
|
22360
22389
|
WindowService,
|
|
22361
22390
|
CommonDataService,
|
|
22362
|
-
JurisdictionService,
|
|
22363
22391
|
LinkedCasesService,
|
|
22364
|
-
{ provide:
|
|
22392
|
+
{ provide: MAT_LEGACY_DATE_LOCALE, useValue: 'en-GB' }
|
|
22365
22393
|
],
|
|
22366
|
-
schemas: [
|
|
22367
|
-
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
22394
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
22368
22395
|
}]
|
|
22369
22396
|
}], null, null); })();
|
|
22370
22397
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PaletteModule, { declarations: [FixedListPipe,
|
|
@@ -22494,15 +22521,15 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
22494
22521
|
NgxMatDatetimePickerModule,
|
|
22495
22522
|
NgxMatTimepickerModule,
|
|
22496
22523
|
NgxMatNativeDateModule,
|
|
22497
|
-
|
|
22498
|
-
|
|
22524
|
+
MatLegacyFormFieldModule,
|
|
22525
|
+
MatLegacyInputModule,
|
|
22499
22526
|
MatDatepickerModule,
|
|
22500
|
-
|
|
22527
|
+
MatLegacyAutocompleteModule,
|
|
22501
22528
|
CdkTreeModule,
|
|
22502
22529
|
OverlayModule,
|
|
22503
22530
|
PaymentLibModule, i2.ScrollToModule, i1$1.RpxTranslationModule, CdkTreeModule,
|
|
22504
22531
|
OverlayModule,
|
|
22505
|
-
|
|
22532
|
+
MatLegacyDialogModule,
|
|
22506
22533
|
MediaViewerModule,
|
|
22507
22534
|
LoadingModule], exports: [NgxMatDatetimePickerModule,
|
|
22508
22535
|
NgxMatNativeDateModule,
|
|
@@ -23693,13 +23720,13 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
23693
23720
|
FormsModule,
|
|
23694
23721
|
ReactiveFormsModule,
|
|
23695
23722
|
CaseEditDataModule,
|
|
23696
|
-
PaletteModule,
|
|
23697
23723
|
LabelSubstitutorModule,
|
|
23698
23724
|
ConditionalShowModule,
|
|
23699
23725
|
ErrorsModule,
|
|
23700
23726
|
PortalModule,
|
|
23701
23727
|
LoadingSpinnerModule,
|
|
23702
23728
|
BannersModule,
|
|
23729
|
+
PaletteModule,
|
|
23703
23730
|
RpxTranslationModule.forChild()] });
|
|
23704
23731
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditorModule, [{
|
|
23705
23732
|
type: NgModule,
|
|
@@ -23710,13 +23737,13 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
23710
23737
|
FormsModule,
|
|
23711
23738
|
ReactiveFormsModule,
|
|
23712
23739
|
CaseEditDataModule,
|
|
23713
|
-
PaletteModule,
|
|
23714
23740
|
LabelSubstitutorModule,
|
|
23715
23741
|
ConditionalShowModule,
|
|
23716
23742
|
ErrorsModule,
|
|
23717
23743
|
PortalModule,
|
|
23718
23744
|
LoadingSpinnerModule,
|
|
23719
23745
|
BannersModule,
|
|
23746
|
+
PaletteModule,
|
|
23720
23747
|
RpxTranslationModule.forChild()
|
|
23721
23748
|
],
|
|
23722
23749
|
declarations: [
|
|
@@ -23788,13 +23815,13 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
23788
23815
|
FormsModule,
|
|
23789
23816
|
ReactiveFormsModule,
|
|
23790
23817
|
CaseEditDataModule,
|
|
23791
|
-
PaletteModule,
|
|
23792
23818
|
LabelSubstitutorModule,
|
|
23793
23819
|
ConditionalShowModule,
|
|
23794
23820
|
ErrorsModule,
|
|
23795
23821
|
PortalModule,
|
|
23796
23822
|
LoadingSpinnerModule,
|
|
23797
|
-
BannersModule,
|
|
23823
|
+
BannersModule,
|
|
23824
|
+
PaletteModule, i1$1.RpxTranslationModule], exports: [CaseEditConfirmComponent,
|
|
23798
23825
|
CaseEditComponent,
|
|
23799
23826
|
CaseEditPageComponent,
|
|
23800
23827
|
CaseEditFormComponent,
|
|
@@ -23803,11 +23830,11 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
23803
23830
|
CaseProgressComponent,
|
|
23804
23831
|
CallbackErrorsComponent] }); })();
|
|
23805
23832
|
i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i1.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, MarkdownComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1$1.RpxTranslatePipe]; });
|
|
23806
|
-
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i1.NgForOf, i1.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective,
|
|
23833
|
+
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i1.NgForOf, i1.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEditFormComponent,
|
|
23807
23834
|
CaseEventCompletionComponent,
|
|
23808
23835
|
CaseEditGenericErrorsComponent]; }, function () { return [i1.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1$1.RpxTranslatePipe]; });
|
|
23809
|
-
i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective,
|
|
23810
|
-
i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName,
|
|
23836
|
+
i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, ConditionalShowFormDirective, FieldReadComponent, FieldWriteComponent]; }, function () { return [IsCompoundPipe, IsReadOnlyAndNotCollectionPipe]; });
|
|
23837
|
+
i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent,
|
|
23811
23838
|
CaseEditGenericErrorsComponent]; }, function () { return [IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1$1.RpxTranslatePipe]; });
|
|
23812
23839
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i1.NgIf, CaseEditComponent]; }, []);
|
|
23813
23840
|
i0.ɵɵsetComponentScope(CaseProgressComponent, function () { return [i1.NgIf, CaseEditComponent]; }, []);
|
|
@@ -24680,7 +24707,7 @@ class WorkbasketFiltersComponent {
|
|
|
24680
24707
|
this.windowService = windowService;
|
|
24681
24708
|
this.onApply = new EventEmitter();
|
|
24682
24709
|
this.onReset = new EventEmitter();
|
|
24683
|
-
this.formGroup = new
|
|
24710
|
+
this.formGroup = new FormGroup({});
|
|
24684
24711
|
this.initialised = false;
|
|
24685
24712
|
}
|
|
24686
24713
|
ngOnInit() {
|
|
@@ -24724,9 +24751,20 @@ class WorkbasketFiltersComponent {
|
|
|
24724
24751
|
if (init) {
|
|
24725
24752
|
this.windowService.setLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE, JSON.stringify(queryParams));
|
|
24726
24753
|
if (Object.keys(this.formGroup.controls).length > 0) {
|
|
24754
|
+
// Find all "special case" JudicialUser FormControl keys and remove the corresponding values from the
|
|
24755
|
+
// FormGroup value because these values are not intended to be stored and subsequently passed as query string
|
|
24756
|
+
// parameters when calling searchCases API endpoint
|
|
24757
|
+
const judicialUserControlValuesToRemove = Object.keys(this.formGroup.controls).filter((key) => key.endsWith('_judicialUserControl'));
|
|
24758
|
+
judicialUserControlValuesToRemove.forEach((controlKey) => delete this.formGroup.value[controlKey]);
|
|
24727
24759
|
this.windowService.setLocalStorage(FORM_GROUP_VAL_LOC_STORAGE, JSON.stringify(this.formGroup.value));
|
|
24728
24760
|
}
|
|
24729
24761
|
}
|
|
24762
|
+
// Announce selected jurisdiction via JurisdictionService
|
|
24763
|
+
if (this.selected.jurisdiction) {
|
|
24764
|
+
// Set the selected case type as the current case type of the selected jurisdiction
|
|
24765
|
+
this.selected.jurisdiction.currentCaseType = this.selected.caseType;
|
|
24766
|
+
this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
|
|
24767
|
+
}
|
|
24730
24768
|
// Apply filters
|
|
24731
24769
|
this.onApply.emit({ selected: this.selected, queryParams });
|
|
24732
24770
|
this.setFocusToTop();
|
|
@@ -24772,7 +24810,7 @@ class WorkbasketFiltersComponent {
|
|
|
24772
24810
|
if (this.selected.caseType) {
|
|
24773
24811
|
this.selectedCaseTypeStates = this.sortStates(this.selected.caseType.states);
|
|
24774
24812
|
this.selected.caseState = null;
|
|
24775
|
-
this.formGroup = new
|
|
24813
|
+
this.formGroup = new FormGroup({});
|
|
24776
24814
|
this.clearWorkbasketInputs();
|
|
24777
24815
|
if (!this.isApplyButtonDisabled()) {
|
|
24778
24816
|
this.workbasketInputFilterService.getWorkbasketInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(take(1)).subscribe(workbasketInputs => {
|
|
@@ -26274,7 +26312,7 @@ class DeleteOrCancelDialogComponent {
|
|
|
26274
26312
|
this.matDialogRef.close(this.result);
|
|
26275
26313
|
}
|
|
26276
26314
|
}
|
|
26277
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$4.
|
|
26315
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
|
|
26278
26316
|
DeleteOrCancelDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
26279
26317
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
|
|
26280
26318
|
i0.ɵɵlistener("click", function DeleteOrCancelDialogComponent_Template_h2_click_2_listener() { return ctx.cancel(); });
|
|
@@ -26311,7 +26349,7 @@ DeleteOrCancelDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
26311
26349
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeleteOrCancelDialogComponent, [{
|
|
26312
26350
|
type: Component,
|
|
26313
26351
|
args: [{ selector: 'ccd-delete-or-cancel-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to delete this draft?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You are about to delete this draft. Are you sure you want to proceed?' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Delete\" class=\"button action-button\" (click)=\"delete()\">{{'Delete draft' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
|
|
26314
|
-
}], function () { return [{ type: i1$4.
|
|
26352
|
+
}], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null); })();
|
|
26315
26353
|
|
|
26316
26354
|
class DialogsModule {
|
|
26317
26355
|
}
|
|
@@ -26894,8 +26932,8 @@ class CaseFullAccessViewComponent {
|
|
|
26894
26932
|
}
|
|
26895
26933
|
/**
|
|
26896
26934
|
* For EUI-3825:
|
|
26897
|
-
* Builds a
|
|
26898
|
-
* This
|
|
26935
|
+
* Builds a FormGroup from all the CaseFields contained within the view.
|
|
26936
|
+
* This FormGroup is necessary for evaluation the show/hide conditions of
|
|
26899
26937
|
* fields that are dependent on a field only available on a DIFFERENT tab.
|
|
26900
26938
|
*/
|
|
26901
26939
|
buildFormGroup(caseFields) {
|
|
@@ -26908,7 +26946,7 @@ class CaseFullAccessViewComponent {
|
|
|
26908
26946
|
};
|
|
26909
26947
|
});
|
|
26910
26948
|
}
|
|
26911
|
-
return new
|
|
26949
|
+
return new FormGroup({ data: new FormControl(value) });
|
|
26912
26950
|
}
|
|
26913
26951
|
resetErrors() {
|
|
26914
26952
|
this.error = null;
|
|
@@ -26927,7 +26965,7 @@ CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
|
|
|
26927
26965
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
26928
26966
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
26929
26967
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
26930
|
-
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$4.
|
|
26968
|
+
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
26931
26969
|
CaseFullAccessViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
26932
26970
|
i0.ɵɵviewQuery(_c0$b, 5);
|
|
26933
26971
|
} if (rf & 2) {
|
|
@@ -26972,7 +27010,7 @@ CaseFullAccessViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
26972
27010
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
26973
27011
|
type: Component,
|
|
26974
27012
|
args: [{ selector: 'ccd-case-full-access-view', template: "<!-- 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' | rpxTranslate}}\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.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </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' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</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 | rpxTranslate}}\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' | rpxTranslate}}</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\" *ngIf=\"activeCaseFlags\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\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\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-describedby]=\"'case viewer table' | rpxTranslate\">\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 id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\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 *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["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:0}\n"] }]
|
|
26975
|
-
}], function () { return [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$4.
|
|
27013
|
+
}], function () { return [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$4.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
|
|
26976
27014
|
type: Input
|
|
26977
27015
|
}], hasEventSelector: [{
|
|
26978
27016
|
type: Input
|
|
@@ -29154,7 +29192,7 @@ CaseViewerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
29154
29192
|
CaseEditorModule,
|
|
29155
29193
|
ConditionalShowModule,
|
|
29156
29194
|
CaseHistoryModule,
|
|
29157
|
-
|
|
29195
|
+
MatLegacyTabsModule,
|
|
29158
29196
|
ReactiveFormsModule,
|
|
29159
29197
|
AlertModule,
|
|
29160
29198
|
RpxTranslationModule.forChild(),
|
|
@@ -29177,7 +29215,7 @@ CaseViewerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
29177
29215
|
CaseEditorModule,
|
|
29178
29216
|
ConditionalShowModule,
|
|
29179
29217
|
CaseHistoryModule,
|
|
29180
|
-
|
|
29218
|
+
MatLegacyTabsModule,
|
|
29181
29219
|
ReactiveFormsModule,
|
|
29182
29220
|
AlertModule,
|
|
29183
29221
|
RpxTranslationModule.forChild(),
|
|
@@ -29244,7 +29282,7 @@ CaseViewerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
|
29244
29282
|
CaseEditorModule,
|
|
29245
29283
|
ConditionalShowModule,
|
|
29246
29284
|
CaseHistoryModule,
|
|
29247
|
-
|
|
29285
|
+
MatLegacyTabsModule,
|
|
29248
29286
|
ReactiveFormsModule,
|
|
29249
29287
|
AlertModule, i1$1.RpxTranslationModule, BannersModule,
|
|
29250
29288
|
LabelSubstitutorModule,
|
|
@@ -29255,7 +29293,7 @@ i0.ɵɵsetComponentScope(CaseEventTriggerComponent, function () { return [i1.NgI
|
|
|
29255
29293
|
i0.ɵɵsetComponentScope(CasePrinterComponent, function () { return [i1.NgForOf, i1.NgIf, CaseHeaderComponent]; }, function () { return [i1$1.RpxTranslatePipe, PrintUrlPipe]; });
|
|
29256
29294
|
i0.ɵɵsetComponentScope(CaseViewerComponent, function () { return [i1.NgIf, CaseFullAccessViewComponent,
|
|
29257
29295
|
CaseBasicAccessViewComponent]; }, []);
|
|
29258
|
-
i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1$2.RouterOutlet, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.
|
|
29296
|
+
i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1$2.RouterOutlet, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.MatLegacyTabGroup, i10.MatLegacyTab, i10.MatLegacyTabContent, NotificationBannerComponent, LabelSubstitutorDirective]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, CcdTabFieldsPipe, i1$1.RpxTranslatePipe]; });
|
|
29259
29297
|
i0.ɵɵsetComponentScope(CaseViewComponent, function () { return [i1.NgIf, CaseViewerComponent]; }, []);
|
|
29260
29298
|
i0.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, function () { return [i1.NgClass, i1.NgIf, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1$1.RpxTranslatePipe]; });
|
|
29261
29299
|
i0.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, function () { return [i1.NgClass, i1.NgIf, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1$1.RpxTranslatePipe]; });
|
|
@@ -29407,13 +29445,14 @@ function CreateCaseFiltersComponent_option_27_Template(rf, ctx) { if (rf & 1) {
|
|
|
29407
29445
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, e_r5.name));
|
|
29408
29446
|
} }
|
|
29409
29447
|
class CreateCaseFiltersComponent {
|
|
29410
|
-
constructor(orderService, definitionsService, sessionStorageService) {
|
|
29448
|
+
constructor(orderService, definitionsService, sessionStorageService, jurisdictionService) {
|
|
29411
29449
|
this.orderService = orderService;
|
|
29412
29450
|
this.definitionsService = definitionsService;
|
|
29413
29451
|
this.sessionStorageService = sessionStorageService;
|
|
29452
|
+
this.jurisdictionService = jurisdictionService;
|
|
29414
29453
|
this.selectionSubmitted = new EventEmitter();
|
|
29415
29454
|
this.selectionChanged = new EventEmitter();
|
|
29416
|
-
this.formGroup = new
|
|
29455
|
+
this.formGroup = new FormGroup({});
|
|
29417
29456
|
}
|
|
29418
29457
|
ngOnInit() {
|
|
29419
29458
|
this.selected = {};
|
|
@@ -29463,6 +29502,8 @@ class CreateCaseFiltersComponent {
|
|
|
29463
29502
|
!this.isDisabled;
|
|
29464
29503
|
}
|
|
29465
29504
|
apply() {
|
|
29505
|
+
this.selected.jurisdiction.currentCaseType = this.selected.caseType;
|
|
29506
|
+
this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
|
|
29466
29507
|
this.selectionSubmitted.emit({
|
|
29467
29508
|
jurisdictionId: this.selected.jurisdiction.id,
|
|
29468
29509
|
caseTypeId: this.selected.caseType.id,
|
|
@@ -29543,7 +29584,7 @@ class CreateCaseFiltersComponent {
|
|
|
29543
29584
|
return value === null || value === undefined;
|
|
29544
29585
|
}
|
|
29545
29586
|
}
|
|
29546
|
-
CreateCaseFiltersComponent.ɵfac = function CreateCaseFiltersComponent_Factory(t) { return new (t || CreateCaseFiltersComponent)(i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(DefinitionsService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
29587
|
+
CreateCaseFiltersComponent.ɵfac = function CreateCaseFiltersComponent_Factory(t) { return new (t || CreateCaseFiltersComponent)(i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(DefinitionsService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
29547
29588
|
CreateCaseFiltersComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CreateCaseFiltersComponent, selectors: [["ccd-create-case-filters"]], inputs: { isDisabled: "isDisabled", startButtonText: "startButtonText" }, outputs: { selectionSubmitted: "selectionSubmitted", selectionChanged: "selectionChanged" }, decls: 31, vars: 28, consts: [[3, "ngSubmit"], [1, "form-group"], ["for", "cc-jurisdiction", 1, "form-label"], ["id", "cc-jurisdiction", "name", "jurisdiction", 1, "form-control", "ccd-dropdown", 3, "formControl", "change"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["for", "cc-case-type", 1, "form-label"], ["id", "cc-case-type", "name", "case-type", 1, "form-control", "ccd-dropdown", 3, "formControl", "change"], ["for", "cc-event", 1, "form-label"], ["id", "cc-event", "name", "event", 1, "form-control", "ccd-dropdown", 3, "formControl", "change"], ["type", "submit", 1, "button", 3, "disabled"], [3, "value"]], template: function CreateCaseFiltersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29548
29589
|
i0.ɵɵelementStart(0, "form", 0);
|
|
29549
29590
|
i0.ɵɵlistener("ngSubmit", function CreateCaseFiltersComponent_Template_form_ngSubmit_0_listener() { return ctx.apply(); });
|
|
@@ -29620,7 +29661,7 @@ CreateCaseFiltersComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
29620
29661
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CreateCaseFiltersComponent, [{
|
|
29621
29662
|
type: Component,
|
|
29622
29663
|
args: [{ selector: 'ccd-create-case-filters', template: "<form (ngSubmit)=\"apply()\">\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"cc-jurisdiction\">{{'Jurisdiction' | rpxTranslate}}</label>\n <select class=\"form-control ccd-dropdown\" id=\"cc-jurisdiction\" name=\"jurisdiction\" [formControl]=\"filterJurisdictionControl\" (change)=\"onJurisdictionIdChange()\">\n <option value=\"\">--{{'Select a value' | rpxTranslate}}--</option>\n <option *ngFor=\"let j of jurisdictions\" [value]=\"j.id\">{{j.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"cc-case-type\">{{'Case type' | rpxTranslate}}</label>\n <select class=\"form-control ccd-dropdown\" id=\"cc-case-type\" name=\"case-type\" [formControl]=\"filterCaseTypeControl\" (change)=\"onCaseTypeIdChange()\">\n <option value=\"\">--{{'Select a value' | rpxTranslate}}--</option>\n <option *ngFor=\"let ct of selectedJurisdictionCaseTypes\" [value]=\"ct.id\">{{ct.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"cc-event\">{{'Event' | rpxTranslate}}</label>\n <select class=\"form-control ccd-dropdown\" id=\"cc-event\" name=\"event\" [formControl]=\"filterEventControl\" (change)=\"onEventIdChange()\">\n <option value=\"\">--{{'Select a value' | rpxTranslate}}--</option>\n <option *ngFor=\"let e of selectedCaseTypeEvents\" [value]=\"e.id\">{{e.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <button type=\"submit\" class=\"button\" [disabled]=\"!isCreatable()\">{{startButtonText | rpxTranslate}}</button>\n</form>\n" }]
|
|
29623
|
-
}], function () { return [{ type: OrderService }, { type: DefinitionsService }, { type: SessionStorageService }]; }, { isDisabled: [{
|
|
29664
|
+
}], function () { return [{ type: OrderService }, { type: DefinitionsService }, { type: SessionStorageService }, { type: JurisdictionService }]; }, { isDisabled: [{
|
|
29624
29665
|
type: Input
|
|
29625
29666
|
}], startButtonText: [{
|
|
29626
29667
|
type: Input
|
|
@@ -29744,7 +29785,7 @@ class SearchFiltersComponent {
|
|
|
29744
29785
|
this.onApply = new EventEmitter();
|
|
29745
29786
|
this.onReset = new EventEmitter();
|
|
29746
29787
|
this.onJurisdiction = new EventEmitter();
|
|
29747
|
-
this.formGroup = new
|
|
29788
|
+
this.formGroup = new FormGroup({});
|
|
29748
29789
|
}
|
|
29749
29790
|
ngOnInit() {
|
|
29750
29791
|
this.selected = {};
|
|
@@ -29820,7 +29861,7 @@ class SearchFiltersComponent {
|
|
|
29820
29861
|
this.onJurisdiction.emit(this.selected.jurisdiction);
|
|
29821
29862
|
}
|
|
29822
29863
|
onCaseTypeIdChange() {
|
|
29823
|
-
this.formGroup = new
|
|
29864
|
+
this.formGroup = new FormGroup({});
|
|
29824
29865
|
this.searchInputsReady = false;
|
|
29825
29866
|
this.searchInputs = [];
|
|
29826
29867
|
this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(tap(() => this.searchInputsReady = true)).subscribe(searchInputs => {
|