@hmcts/ccd-case-ui-toolkit 7.1.57-civil-multiple-client → 7.1.58
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/esm2022/lib/app.config.mjs +2 -1
- package/esm2022/lib/components/header/header-bar/header-bar.component.mjs +4 -5
- package/esm2022/lib/shared/components/case-history/case-history.component.mjs +3 -3
- package/esm2022/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.mjs +5 -6
- package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +6 -8
- package/esm2022/lib/shared/components/case-viewer/printer/case-printer.component.mjs +9 -10
- package/esm2022/lib/shared/components/case-viewer/services/event-trigger.resolver.mjs +8 -4
- package/esm2022/lib/shared/components/error/callback-errors.component.mjs +7 -9
- package/esm2022/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +4 -1
- package/esm2022/lib/shared/components/palette/base-field/field-read-label.component.mjs +2 -5
- package/esm2022/lib/shared/components/palette/base-field/field-read.component.mjs +4 -8
- package/esm2022/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.mjs +48 -49
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-collection-table.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-raw.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/label/label-field.component.mjs +16 -11
- package/esm2022/lib/shared/components/palette/markdown/markdown.component.mjs +36 -26
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +19 -16
- package/esm2022/lib/shared/components/palette/text/read-text-field.component.mjs +5 -7
- package/esm2022/lib/shared/components/palette/text-area/read-text-area-field.component.mjs +5 -7
- package/esm2022/lib/shared/components/search-result/search-result.component.mjs +8 -5
- package/esm2022/lib/shared/directives/substitutor/label-substitutor.directive.mjs +25 -5
- package/esm2022/lib/shared/directives/substitutor/services/placeholder.service.mjs +2 -1
- package/esm2022/lib/shared/domain/definition/case-field.model.mjs +8 -1
- package/esm2022/lib/shared/services/document-management/document-management.service.mjs +17 -5
- package/esm2022/lib/shared/services/fields/fields.utils.mjs +6 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +271 -218
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +0 -1
- 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/services/event-trigger.resolver.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +1 -0
- 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-label.component.d.ts +1 -2
- package/lib/shared/components/palette/base-field/field-read-label.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +1 -2
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/read-complex-field-raw.component.d.ts.map +1 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts +1 -2
- package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/markdown/markdown.component.d.ts +5 -5
- package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts +1 -0
- package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -1
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts +3 -1
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -1
- package/lib/shared/directives/substitutor/services/placeholder.service.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-field.model.d.ts +3 -0
- package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
- package/lib/shared/services/document-management/document-management.service.d.ts +3 -1
- package/lib/shared/services/document-management/document-management.service.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +1 -0
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, ChangeDetectorRef, Directive, InjectionToken, ViewChild,
|
|
2
|
+
import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, ChangeDetectorRef, Directive, InjectionToken, ViewChild, ChangeDetectionStrategy, Injector, ViewContainerRef, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
3
|
import * as i5 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, AsyncPipe, CurrencyPipe, formatDate } from '@angular/common';
|
|
5
5
|
import * as i1 from 'rpx-xui-translation';
|
|
@@ -170,11 +170,10 @@ function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
170
170
|
i0.ɵɵelementStart(0, "div")(1, "a", 12);
|
|
171
171
|
i0.ɵɵelement(2, "img", 13);
|
|
172
172
|
i0.ɵɵtext(3);
|
|
173
|
-
i0.ɵɵpipe(4, "rpxTranslate");
|
|
174
173
|
i0.ɵɵelementEnd()();
|
|
175
174
|
} if (rf & 2) {
|
|
176
175
|
i0.ɵɵadvance(3);
|
|
177
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
176
|
+
i0.ɵɵtextInterpolate1(" ", "GOV.UK", " ");
|
|
178
177
|
} }
|
|
179
178
|
function HeaderBarComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
180
179
|
i0.ɵɵelementStart(0, "div", 14)(1, "div", 15)(2, "span");
|
|
@@ -210,7 +209,7 @@ class HeaderBarComponent {
|
|
|
210
209
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
211
210
|
i0.ɵɵprojectionDef(_c0$15);
|
|
212
211
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
213
|
-
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template,
|
|
212
|
+
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
|
|
214
213
|
i0.ɵɵelementEnd();
|
|
215
214
|
i0.ɵɵelementStart(5, "div", 5)(6, "div", 6)(7, "a", 7);
|
|
216
215
|
i0.ɵɵtext(8);
|
|
@@ -246,7 +245,7 @@ class HeaderBarComponent {
|
|
|
246
245
|
}
|
|
247
246
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeaderBarComponent, [{
|
|
248
247
|
type: Component,
|
|
249
|
-
args: [{ selector: 'cut-header-bar', template: "<header role=\"banner\" id=\"global-header\" class=\"with-proposition\">\n <div [class.full-screen]=\"!isSolicitor\" class=\"header-wrapper\">\n\n <div class=\"header-global\" [class.header-logo]=\"isSolicitor\">\n <div *ngIf=\"isSolicitor\">\n <a href=\"https://www.gov.uk\" title=\"Go to the GOV.UK homepage\" id=\"logo\" class=\"content\" style=\"margin-left: 0px;\">\n <img src=\"/img/gov.uk_logotype_crown_invert_trans.png?0.23.0\" width=\"36\" height=\"32\" alt=\"\"> {{'GOV.UK'
|
|
248
|
+
args: [{ selector: 'cut-header-bar', template: "<header role=\"banner\" id=\"global-header\" class=\"with-proposition\">\n <div [class.full-screen]=\"!isSolicitor\" class=\"header-wrapper\">\n\n <div class=\"header-global\" [class.header-logo]=\"isSolicitor\">\n <div *ngIf=\"isSolicitor\">\n <a href=\"https://www.gov.uk\" title=\"Go to the GOV.UK homepage\" id=\"logo\" class=\"content\" style=\"margin-left: 0px;\">\n <img src=\"/img/gov.uk_logotype_crown_invert_trans.png?0.23.0\" width=\"36\" height=\"32\" alt=\"\"> {{'GOV.UK'}}\n </a>\n </div>\n <div class=\"global-header\" *ngIf=\"!isSolicitor\">\n <div class=\"title\">\n <span>{{title | rpxTranslate}}</span>\n </div>\n </div>\n </div>\n\n <div class=\"header-proposition\">\n <div class=\"content\">\n <a href=\"#proposition-links\" class=\"js-header-toggle menu\">{{'Menu' | rpxTranslate}}</a>\n <div *ngIf=\"isSolicitor\" id=\"proposition-menu\">\n <div class=\"title-solicitor\">\n <span id=\"proposition-name\">{{title | rpxTranslate}}</span>\n <ng-content select=\"[headerNavigation]\"></ng-content>\n </div>\n </div>\n\n <div class=\"proposition-right\">\n <span id=\"user-name\">{{username}}</span>\n <a (click)=\"signOut()\" id=\"sign-out\" href=\"javascript:void(0)\">{{'Sign Out' | rpxTranslate}}</a>\n </div>\n </div>\n </div>\n\n </div>\n</header>\n", styles: [".title:after,.global-header .header-username:after,.global-header .header-title:after,.global-header:after{content:\"\";display:block;clear:both}.global-header{background-color:#000;width:100%}.global-header .header-title{font-family:nta,Arial,sans-serif;text-transform:none;font-size:16pt;line-height:1.25;float:left;font-weight:700;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 641px){.global-header .header-title{font-size:20pt;line-height:1.3}}@media (min-width: 769px){.global-header .header-title{width:50%}}@media screen and (max-width: 379px){.global-header .header-title{width:auto;float:none}}.global-header .header-title .header-title-span{padding-left:22px}.global-header .header-username{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:12pt;line-height:1.25;float:right;text-align:right;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 641px){.global-header .header-username{font-size:14pt;line-height:1.4285714286}}@media (min-width: 769px){.global-header .header-username{width:50%}}.global-header .header-username .header-username-span{padding-right:15px}#global-header .full-screen{max-width:100%}.title{font-weight:700;color:#fff;font-size:24px}.title-solicitor{float:left}.proposition-right{float:right;padding-top:5px}#global-header.with-proposition .header-wrapper .header-logo{width:27%}#global-header.with-proposition .header-wrapper .header-proposition{width:100%;float:none}#global-header.with-proposition .header-wrapper .header-proposition .content{margin:0}#user-name,#sign-out{font-size:16px;font-weight:700;border:none;color:#fff;margin:0 0 0 9px;text-decoration:none;background-color:#000}#user-name:focus,#sign-out:focus{color:#fff}#sign-out:hover{text-decoration:underline}\n"] }]
|
|
250
249
|
}], null, { title: [{
|
|
251
250
|
type: Input
|
|
252
251
|
}], isSolicitor: [{
|
|
@@ -1275,6 +1274,7 @@ class CaseEditorConfig {
|
|
|
1275
1274
|
document_management_url_v2;
|
|
1276
1275
|
hrs_url;
|
|
1277
1276
|
document_management_secure_enabled;
|
|
1277
|
+
documentSecureModeCaseTypeExclusions;
|
|
1278
1278
|
login_url;
|
|
1279
1279
|
oauth2_client_id;
|
|
1280
1280
|
postcode_lookup_url;
|
|
@@ -3278,6 +3278,7 @@ class CaseField {
|
|
|
3278
3278
|
wizardProps;
|
|
3279
3279
|
_value;
|
|
3280
3280
|
_list_items = [];
|
|
3281
|
+
isTranslatedFlag = false;
|
|
3281
3282
|
get value() {
|
|
3282
3283
|
if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
|
|
3283
3284
|
return this._value && this._value.value ? this._value.value.code : this._value;
|
|
@@ -3383,6 +3384,12 @@ class CaseField {
|
|
|
3383
3384
|
}
|
|
3384
3385
|
return null;
|
|
3385
3386
|
}
|
|
3387
|
+
set isTranslated(val) {
|
|
3388
|
+
this.isTranslatedFlag = val;
|
|
3389
|
+
}
|
|
3390
|
+
get isTranslated() {
|
|
3391
|
+
return this.isTranslatedFlag;
|
|
3392
|
+
}
|
|
3386
3393
|
}
|
|
3387
3394
|
__decorate([
|
|
3388
3395
|
Type(() => FieldType),
|
|
@@ -3860,6 +3867,11 @@ class FieldsUtils {
|
|
|
3860
3867
|
|| ctx === 'OPTIONAL' || ctx === 'HIDDEN'
|
|
3861
3868
|
|| ctx === 'COMPLEX');
|
|
3862
3869
|
}
|
|
3870
|
+
static isTranslatable(fieldType) {
|
|
3871
|
+
if (fieldType.type === 'Label' || fieldType.type === 'FixedList') {
|
|
3872
|
+
return true;
|
|
3873
|
+
}
|
|
3874
|
+
}
|
|
3863
3875
|
static convertToCaseField(obj) {
|
|
3864
3876
|
if (!(obj instanceof CaseField)) {
|
|
3865
3877
|
return plainToClassFromExist(new CaseField(), obj);
|
|
@@ -5053,6 +5065,9 @@ class AbstractFormFieldComponent {
|
|
|
5053
5065
|
id() {
|
|
5054
5066
|
return this.idPrefix + this.caseField.id;
|
|
5055
5067
|
}
|
|
5068
|
+
isTranslatable(field) {
|
|
5069
|
+
return FieldsUtils.isTranslatable(field.field_type);
|
|
5070
|
+
}
|
|
5056
5071
|
registerControl(control, replace = false) {
|
|
5057
5072
|
const container = this.parent || this.formGroup;
|
|
5058
5073
|
if (!container) {
|
|
@@ -6324,6 +6339,7 @@ class FormValueService {
|
|
|
6324
6339
|
type: Injectable
|
|
6325
6340
|
}], () => [{ type: FieldTypeSanitiser }], null); })();
|
|
6326
6341
|
|
|
6342
|
+
// This class implements ccd Field Interpolation
|
|
6327
6343
|
// @dynamic
|
|
6328
6344
|
class PlaceholderService {
|
|
6329
6345
|
resolvePlaceholders(pageFormFields, stringToResolve) {
|
|
@@ -6535,15 +6551,17 @@ ___
|
|
|
6535
6551
|
class LabelSubstitutorDirective {
|
|
6536
6552
|
fieldsUtils;
|
|
6537
6553
|
placeholderService;
|
|
6554
|
+
rpxTranslationPipe;
|
|
6538
6555
|
caseField;
|
|
6539
6556
|
contextFields = [];
|
|
6540
6557
|
formGroup;
|
|
6541
6558
|
elementsToSubstitute = ['label', 'hint_text'];
|
|
6542
6559
|
initialLabel;
|
|
6543
6560
|
initialHintText;
|
|
6544
|
-
constructor(fieldsUtils, placeholderService) {
|
|
6561
|
+
constructor(fieldsUtils, placeholderService, rpxTranslationPipe) {
|
|
6545
6562
|
this.fieldsUtils = fieldsUtils;
|
|
6546
6563
|
this.placeholderService = placeholderService;
|
|
6564
|
+
this.rpxTranslationPipe = rpxTranslationPipe;
|
|
6547
6565
|
}
|
|
6548
6566
|
ngOnInit() {
|
|
6549
6567
|
this.initialLabel = this.caseField.label;
|
|
@@ -6551,7 +6569,23 @@ class LabelSubstitutorDirective {
|
|
|
6551
6569
|
this.formGroup = this.formGroup || new FormGroup({});
|
|
6552
6570
|
const fields = this.getReadOnlyAndFormFields();
|
|
6553
6571
|
if (this.shouldSubstitute('label')) {
|
|
6554
|
-
|
|
6572
|
+
const oldLabel = this.caseField.label;
|
|
6573
|
+
const substitutedLabel = this.resolvePlaceholders(fields, this.caseField.label);
|
|
6574
|
+
if (oldLabel && oldLabel !== substitutedLabel) {
|
|
6575
|
+
console.log(`placeholders present: ${oldLabel} -> ${substitutedLabel}`);
|
|
6576
|
+
// we need to translate the uninterpolated data then substitute the values in translated string
|
|
6577
|
+
const translated = this.rpxTranslationPipe.transform(oldLabel);
|
|
6578
|
+
console.log(`translated: ${translated}`);
|
|
6579
|
+
const transSubstitutedLabel = this.resolvePlaceholders(fields, translated);
|
|
6580
|
+
console.log(`translated and substituted: ${transSubstitutedLabel}`);
|
|
6581
|
+
this.caseField.label = transSubstitutedLabel;
|
|
6582
|
+
this.caseField.isTranslated = true;
|
|
6583
|
+
}
|
|
6584
|
+
else {
|
|
6585
|
+
console.log(`no placeholders present: ${oldLabel}`);
|
|
6586
|
+
this.caseField.label = substitutedLabel;
|
|
6587
|
+
this.caseField.isTranslated = false;
|
|
6588
|
+
}
|
|
6555
6589
|
}
|
|
6556
6590
|
if (this.shouldSubstitute('hint_text')) {
|
|
6557
6591
|
this.caseField.hint_text = this.resolvePlaceholders(fields, this.caseField.hint_text);
|
|
@@ -6593,13 +6627,13 @@ class LabelSubstitutorDirective {
|
|
|
6593
6627
|
resolvePlaceholders(fields, stringToResolve) {
|
|
6594
6628
|
return this.placeholderService.resolvePlaceholders(fields, stringToResolve);
|
|
6595
6629
|
}
|
|
6596
|
-
static ɵfac = function LabelSubstitutorDirective_Factory(t) { return new (t || LabelSubstitutorDirective)(i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(PlaceholderService)); };
|
|
6630
|
+
static ɵfac = function LabelSubstitutorDirective_Factory(t) { return new (t || LabelSubstitutorDirective)(i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(i1.RpxTranslatePipe)); };
|
|
6597
6631
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LabelSubstitutorDirective, selectors: [["", "ccdLabelSubstitutor", ""]], inputs: { caseField: "caseField", contextFields: "contextFields", formGroup: "formGroup", elementsToSubstitute: "elementsToSubstitute" } });
|
|
6598
6632
|
}
|
|
6599
6633
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelSubstitutorDirective, [{
|
|
6600
6634
|
type: Directive,
|
|
6601
6635
|
args: [{ selector: '[ccdLabelSubstitutor]' }]
|
|
6602
|
-
}], () => [{ type: FieldsUtils }, { type: PlaceholderService }], { caseField: [{
|
|
6636
|
+
}], () => [{ type: FieldsUtils }, { type: PlaceholderService }, { type: i1.RpxTranslatePipe }], { caseField: [{
|
|
6603
6637
|
type: Input
|
|
6604
6638
|
}], contextFields: [{
|
|
6605
6639
|
type: Input
|
|
@@ -6990,9 +7024,55 @@ class ReadCookieService {
|
|
|
6990
7024
|
args: [DOCUMENT]
|
|
6991
7025
|
}] }], null); })();
|
|
6992
7026
|
|
|
7027
|
+
class CaseNotifier {
|
|
7028
|
+
casesService;
|
|
7029
|
+
static CASE_NAME = 'caseNameHmctsInternal';
|
|
7030
|
+
static CASE_LOCATION = 'caseManagementLocation';
|
|
7031
|
+
caseViewSource = new BehaviorSubject(new CaseView());
|
|
7032
|
+
caseView = this.caseViewSource.asObservable();
|
|
7033
|
+
cachedCaseView;
|
|
7034
|
+
constructor(casesService) {
|
|
7035
|
+
this.casesService = casesService;
|
|
7036
|
+
}
|
|
7037
|
+
removeCachedCase() {
|
|
7038
|
+
this.cachedCaseView = null;
|
|
7039
|
+
}
|
|
7040
|
+
announceCase(c) {
|
|
7041
|
+
this.caseViewSource.next(c);
|
|
7042
|
+
}
|
|
7043
|
+
fetchAndRefresh(cid) {
|
|
7044
|
+
return this.casesService
|
|
7045
|
+
.getCaseViewV2(cid)
|
|
7046
|
+
.pipe(map(caseView => {
|
|
7047
|
+
this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
|
|
7048
|
+
this.setBasicFields(this.cachedCaseView.tabs);
|
|
7049
|
+
this.announceCase(this.cachedCaseView);
|
|
7050
|
+
return this.cachedCaseView;
|
|
7051
|
+
}));
|
|
7052
|
+
}
|
|
7053
|
+
setBasicFields(tabs) {
|
|
7054
|
+
tabs.forEach((t) => {
|
|
7055
|
+
const caseName = t.fields.find(f => f.id === CaseNotifier.CASE_NAME);
|
|
7056
|
+
const caseLocation = t.fields.find(f => f.id === CaseNotifier.CASE_LOCATION);
|
|
7057
|
+
if (caseName || caseLocation) {
|
|
7058
|
+
this.cachedCaseView.basicFields = {
|
|
7059
|
+
caseNameHmctsInternal: caseName ? caseName.value : null,
|
|
7060
|
+
caseManagementLocation: caseLocation ? caseLocation.value : null
|
|
7061
|
+
};
|
|
7062
|
+
}
|
|
7063
|
+
});
|
|
7064
|
+
}
|
|
7065
|
+
static ɵfac = function CaseNotifier_Factory(t) { return new (t || CaseNotifier)(i0.ɵɵinject(CasesService)); };
|
|
7066
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseNotifier, factory: CaseNotifier.ɵfac });
|
|
7067
|
+
}
|
|
7068
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseNotifier, [{
|
|
7069
|
+
type: Injectable
|
|
7070
|
+
}], () => [{ type: CasesService }], null); })();
|
|
7071
|
+
|
|
6993
7072
|
class DocumentManagementService {
|
|
6994
7073
|
http;
|
|
6995
7074
|
appConfig;
|
|
7075
|
+
caseNotifierService;
|
|
6996
7076
|
static PDF = 'pdf';
|
|
6997
7077
|
static IMAGE = 'image';
|
|
6998
7078
|
static WORD = 'word';
|
|
@@ -7007,9 +7087,10 @@ class DocumentManagementService {
|
|
|
7007
7087
|
static wordList = ['DOC', 'DOCX', 'doc', 'docx'];
|
|
7008
7088
|
static excelList = ['XLS', 'XLSX', 'xls', 'xlsx'];
|
|
7009
7089
|
static powerpointList = ['PPT', 'PPTX', 'ppt', 'pptx'];
|
|
7010
|
-
constructor(http, appConfig) {
|
|
7090
|
+
constructor(http, appConfig, caseNotifierService) {
|
|
7011
7091
|
this.http = http;
|
|
7012
7092
|
this.appConfig = appConfig;
|
|
7093
|
+
this.caseNotifierService = caseNotifierService;
|
|
7013
7094
|
}
|
|
7014
7095
|
uploadFile(formData) {
|
|
7015
7096
|
const url = this.getDocStoreUrl();
|
|
@@ -7087,14 +7168,22 @@ class DocumentManagementService {
|
|
|
7087
7168
|
return documentBinaryUrl.replace(remoteDocumentManagementPattern, this.getDocStoreUrl());
|
|
7088
7169
|
}
|
|
7089
7170
|
getDocStoreUrl() {
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7171
|
+
let docStoreUrl = '';
|
|
7172
|
+
this.caseNotifierService.caseView.subscribe((caseDetails) => {
|
|
7173
|
+
const caseType = caseDetails?.case_type?.id;
|
|
7174
|
+
const documentSecureModeCaseTypeExclusions = this.appConfig.getDocumentSecureModeCaseTypeExclusions()?.split(',');
|
|
7175
|
+
const isDocumentOnExclusionList = documentSecureModeCaseTypeExclusions?.includes(caseType);
|
|
7176
|
+
const documentSecureModeEnabled = this.appConfig.getDocumentSecureMode();
|
|
7177
|
+
docStoreUrl = (documentSecureModeEnabled && !isDocumentOnExclusionList) ? this.appConfig.getDocumentManagementUrlV2() : this.appConfig.getDocumentManagementUrl();
|
|
7178
|
+
}).unsubscribe();
|
|
7179
|
+
return docStoreUrl;
|
|
7180
|
+
}
|
|
7181
|
+
static ɵfac = function DocumentManagementService_Factory(t) { return new (t || DocumentManagementService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(CaseNotifier)); };
|
|
7093
7182
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DocumentManagementService, factory: DocumentManagementService.ɵfac });
|
|
7094
7183
|
}
|
|
7095
7184
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentManagementService, [{
|
|
7096
7185
|
type: Injectable
|
|
7097
|
-
}], () => [{ type: HttpService }, { type: AbstractAppConfig }], null); })();
|
|
7186
|
+
}], () => [{ type: HttpService }, { type: AbstractAppConfig }, { type: CaseNotifier }], null); })();
|
|
7098
7187
|
|
|
7099
7188
|
class ErrorNotifierService {
|
|
7100
7189
|
errorSource = new BehaviorSubject(null);
|
|
@@ -8435,51 +8524,6 @@ class CaseworkerService {
|
|
|
8435
8524
|
type: Injectable
|
|
8436
8525
|
}], () => [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }], null); })();
|
|
8437
8526
|
|
|
8438
|
-
class CaseNotifier {
|
|
8439
|
-
casesService;
|
|
8440
|
-
static CASE_NAME = 'caseNameHmctsInternal';
|
|
8441
|
-
static CASE_LOCATION = 'caseManagementLocation';
|
|
8442
|
-
caseViewSource = new BehaviorSubject(new CaseView());
|
|
8443
|
-
caseView = this.caseViewSource.asObservable();
|
|
8444
|
-
cachedCaseView;
|
|
8445
|
-
constructor(casesService) {
|
|
8446
|
-
this.casesService = casesService;
|
|
8447
|
-
}
|
|
8448
|
-
removeCachedCase() {
|
|
8449
|
-
this.cachedCaseView = null;
|
|
8450
|
-
}
|
|
8451
|
-
announceCase(c) {
|
|
8452
|
-
this.caseViewSource.next(c);
|
|
8453
|
-
}
|
|
8454
|
-
fetchAndRefresh(cid) {
|
|
8455
|
-
return this.casesService
|
|
8456
|
-
.getCaseViewV2(cid)
|
|
8457
|
-
.pipe(map(caseView => {
|
|
8458
|
-
this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
|
|
8459
|
-
this.setBasicFields(this.cachedCaseView.tabs);
|
|
8460
|
-
this.announceCase(this.cachedCaseView);
|
|
8461
|
-
return this.cachedCaseView;
|
|
8462
|
-
}));
|
|
8463
|
-
}
|
|
8464
|
-
setBasicFields(tabs) {
|
|
8465
|
-
tabs.forEach((t) => {
|
|
8466
|
-
const caseName = t.fields.find(f => f.id === CaseNotifier.CASE_NAME);
|
|
8467
|
-
const caseLocation = t.fields.find(f => f.id === CaseNotifier.CASE_LOCATION);
|
|
8468
|
-
if (caseName || caseLocation) {
|
|
8469
|
-
this.cachedCaseView.basicFields = {
|
|
8470
|
-
caseNameHmctsInternal: caseName ? caseName.value : null,
|
|
8471
|
-
caseManagementLocation: caseLocation ? caseLocation.value : null
|
|
8472
|
-
};
|
|
8473
|
-
}
|
|
8474
|
-
});
|
|
8475
|
-
}
|
|
8476
|
-
static ɵfac = function CaseNotifier_Factory(t) { return new (t || CaseNotifier)(i0.ɵɵinject(CasesService)); };
|
|
8477
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseNotifier, factory: CaseNotifier.ɵfac });
|
|
8478
|
-
}
|
|
8479
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseNotifier, [{
|
|
8480
|
-
type: Injectable
|
|
8481
|
-
}], () => [{ type: CasesService }], null); })();
|
|
8482
|
-
|
|
8483
8527
|
var Permissions;
|
|
8484
8528
|
(function (Permissions) {
|
|
8485
8529
|
Permissions["Own"] = "OWN";
|
|
@@ -11476,12 +11520,11 @@ class CallbackErrorsContext {
|
|
|
11476
11520
|
function CallbackErrorsComponent_div_0_ng_container_2_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
11477
11521
|
i0.ɵɵelementStart(0, "li");
|
|
11478
11522
|
i0.ɵɵtext(1);
|
|
11479
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
11480
11523
|
i0.ɵɵelementEnd();
|
|
11481
11524
|
} if (rf & 2) {
|
|
11482
11525
|
const errorMsg_r1 = ctx.$implicit;
|
|
11483
11526
|
i0.ɵɵadvance();
|
|
11484
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
11527
|
+
i0.ɵɵtextInterpolate1(" ", errorMsg_r1, " ");
|
|
11485
11528
|
} }
|
|
11486
11529
|
function CallbackErrorsComponent_div_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
11487
11530
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -11490,7 +11533,7 @@ function CallbackErrorsComponent_div_0_ng_container_2_Template(rf, ctx) { if (rf
|
|
|
11490
11533
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
11491
11534
|
i0.ɵɵelementEnd();
|
|
11492
11535
|
i0.ɵɵelementStart(4, "ul", 4);
|
|
11493
|
-
i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_2_li_5_Template,
|
|
11536
|
+
i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_2_li_5_Template, 2, 1, "li", 5);
|
|
11494
11537
|
i0.ɵɵelementEnd();
|
|
11495
11538
|
i0.ɵɵelementContainerEnd();
|
|
11496
11539
|
} if (rf & 2) {
|
|
@@ -11506,12 +11549,11 @@ function CallbackErrorsComponent_div_0_br_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
11506
11549
|
function CallbackErrorsComponent_div_0_ng_container_4_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
11507
11550
|
i0.ɵɵelementStart(0, "li");
|
|
11508
11551
|
i0.ɵɵtext(1);
|
|
11509
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
11510
11552
|
i0.ɵɵelementEnd();
|
|
11511
11553
|
} if (rf & 2) {
|
|
11512
11554
|
const warningMsg_r3 = ctx.$implicit;
|
|
11513
11555
|
i0.ɵɵadvance();
|
|
11514
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
11556
|
+
i0.ɵɵtextInterpolate1(" ", warningMsg_r3, " ");
|
|
11515
11557
|
} }
|
|
11516
11558
|
function CallbackErrorsComponent_div_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
11517
11559
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -11520,7 +11562,7 @@ function CallbackErrorsComponent_div_0_ng_container_4_Template(rf, ctx) { if (rf
|
|
|
11520
11562
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
11521
11563
|
i0.ɵɵelementEnd();
|
|
11522
11564
|
i0.ɵɵelementStart(4, "ul", 6);
|
|
11523
|
-
i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_4_li_5_Template,
|
|
11565
|
+
i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_4_li_5_Template, 2, 1, "li", 5);
|
|
11524
11566
|
i0.ɵɵelementEnd();
|
|
11525
11567
|
i0.ɵɵelementContainerEnd();
|
|
11526
11568
|
} if (rf & 2) {
|
|
@@ -11594,7 +11636,7 @@ class CallbackErrorsComponent {
|
|
|
11594
11636
|
&& this.error.details.field_errors.length;
|
|
11595
11637
|
}
|
|
11596
11638
|
static ɵfac = function CallbackErrorsComponent_Factory(t) { return new (t || CallbackErrorsComponent)(); };
|
|
11597
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CallbackErrorsComponent, selectors: [["ccd-callback-errors"]], inputs: { triggerTextIgnore: "triggerTextIgnore", triggerTextContinue: "triggerTextContinue", callbackErrorsSubject: "callbackErrorsSubject" }, outputs: { callbackErrorsContext: "callbackErrorsContext" }, decls: 1, vars: 1, consts: [["class", "error-summary", "
|
|
11639
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CallbackErrorsComponent, selectors: [["ccd-callback-errors"]], inputs: { triggerTextIgnore: "triggerTextIgnore", triggerTextContinue: "triggerTextContinue", callbackErrorsSubject: "callbackErrorsSubject" }, outputs: { callbackErrorsContext: "callbackErrorsContext" }, decls: 1, vars: 1, consts: [["class", "error-summary", "tabindex", "-1", 4, "ngIf"], ["tabindex", "-1", 1, "error-summary"], [4, "ngIf"], [1, "heading-h3", "error-summary-heading"], ["id", "errors", 1, "error-summary-list"], [4, "ngFor", "ngForOf"], ["id", "warnings", 1, "error-summary-list"]], template: function CallbackErrorsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11598
11640
|
i0.ɵɵtemplate(0, CallbackErrorsComponent_div_0_Template, 5, 6, "div", 0);
|
|
11599
11641
|
} if (rf & 2) {
|
|
11600
11642
|
i0.ɵɵproperty("ngIf", ctx.hasErrors() || ctx.hasWarnings());
|
|
@@ -11602,7 +11644,7 @@ class CallbackErrorsComponent {
|
|
|
11602
11644
|
}
|
|
11603
11645
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CallbackErrorsComponent, [{
|
|
11604
11646
|
type: Component,
|
|
11605
|
-
args: [{ selector: 'ccd-callback-errors', template: "<div *ngIf=\"hasErrors() || hasWarnings()\" class=\"error-summary\"
|
|
11647
|
+
args: [{ selector: 'ccd-callback-errors', template: "<div *ngIf=\"hasErrors() || hasWarnings()\" class=\"error-summary\"\n [attr.aria-label]=\"'Cannot continue because the service reported one or more errors or warnings' | rpxTranslate\"\n tabindex=\"-1\">\n <ng-container *ngIf=\"hasErrors()\">\n <h3 class=\"heading-h3 error-summary-heading\">\n {{'Errors' | rpxTranslate}}\n </h3>\n <ul id=\"errors\" class=\"error-summary-list\">\n <li *ngFor=\"let errorMsg of error.callbackErrors\">\n {{errorMsg}}\n </li>\n </ul>\n </ng-container>\n <!-- Add a break for spacing if there are both errors and warnings -->\n <br *ngIf=\"hasErrors() && hasWarnings()\">\n <ng-container *ngIf=\"hasWarnings()\">\n <h3 class=\"heading-h3 error-summary-heading\">\n {{'Warnings' | rpxTranslate}}\n </h3>\n <ul id=\"warnings\" class=\"error-summary-list\">\n <li *ngFor=\"let warningMsg of error.callbackWarnings\">\n {{warningMsg}}\n </li>\n </ul>\n </ng-container>\n</div>\n" }]
|
|
11606
11648
|
}], null, { triggerTextIgnore: [{
|
|
11607
11649
|
type: Input
|
|
11608
11650
|
}], triggerTextContinue: [{
|
|
@@ -15555,12 +15597,13 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15555
15597
|
class MarkdownComponent {
|
|
15556
15598
|
router;
|
|
15557
15599
|
renderer;
|
|
15600
|
+
ngZone;
|
|
15558
15601
|
content;
|
|
15559
|
-
markdownUseHrefAsRouterLink;
|
|
15560
15602
|
renderUrlToTextFeature = true;
|
|
15561
|
-
constructor(router, renderer) {
|
|
15603
|
+
constructor(router, renderer, ngZone) {
|
|
15562
15604
|
this.router = router;
|
|
15563
15605
|
this.renderer = renderer;
|
|
15606
|
+
this.ngZone = ngZone;
|
|
15564
15607
|
}
|
|
15565
15608
|
ngOnInit() {
|
|
15566
15609
|
this.content = this.content.replace(/ \n/g, '<br>');
|
|
@@ -15568,12 +15611,28 @@ class MarkdownComponent {
|
|
|
15568
15611
|
this.renderUrlToText();
|
|
15569
15612
|
}
|
|
15570
15613
|
}
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15614
|
+
interceptClick(event) {
|
|
15615
|
+
this.ngZone.runOutsideAngular(() => {
|
|
15616
|
+
const target = event.target;
|
|
15617
|
+
if (target.tagName.toLowerCase() === 'a') {
|
|
15618
|
+
const href = target.getAttribute('href');
|
|
15619
|
+
if (href && href.startsWith('/') && !href.startsWith('//')) {
|
|
15620
|
+
const currentUrl = window.location.href;
|
|
15621
|
+
if (currentUrl.includes('trigger')) {
|
|
15622
|
+
// if we are already in an event and there is a markdown we should reload the page as without the components will not reinitialise
|
|
15623
|
+
this.ngZone.run(() => {
|
|
15624
|
+
this.router.navigateByUrl(href);
|
|
15625
|
+
});
|
|
15626
|
+
}
|
|
15627
|
+
else {
|
|
15628
|
+
event.preventDefault();
|
|
15629
|
+
this.ngZone.run(() => {
|
|
15630
|
+
this.router.navigateByUrl(href);
|
|
15631
|
+
});
|
|
15632
|
+
}
|
|
15633
|
+
}
|
|
15634
|
+
}
|
|
15635
|
+
});
|
|
15577
15636
|
}
|
|
15578
15637
|
renderUrlToText() {
|
|
15579
15638
|
const renderer = new marked.Renderer();
|
|
@@ -15596,34 +15655,27 @@ class MarkdownComponent {
|
|
|
15596
15655
|
const markdownLinkRegex = /\[([^\]]+)\]\(?([^ )]+)\)/g;
|
|
15597
15656
|
return markdownLinkRegex.test(inputString);
|
|
15598
15657
|
}
|
|
15599
|
-
static ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
15600
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]],
|
|
15601
|
-
i0.ɵɵ
|
|
15602
|
-
} }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink", renderUrlToTextFeature: "renderUrlToTextFeature" }, decls: 4, vars: 5, consts: [[1, "markdown", 3, "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15603
|
-
i0.ɵɵelementStart(0, "div");
|
|
15604
|
-
i0.ɵɵelement(1, "markdown", 0);
|
|
15658
|
+
static ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.NgZone)); };
|
|
15659
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature" }, decls: 4, vars: 5, consts: [[1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15660
|
+
i0.ɵɵelementStart(0, "div")(1, "markdown", 0);
|
|
15605
15661
|
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
15606
15662
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
15607
|
-
i0.ɵɵ
|
|
15663
|
+
i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
|
|
15664
|
+
i0.ɵɵelementEnd()();
|
|
15608
15665
|
} if (rf & 2) {
|
|
15609
15666
|
i0.ɵɵadvance();
|
|
15610
15667
|
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(3, 3, i0.ɵɵpipeBind1(2, 1, ctx.content)));
|
|
15611
|
-
} }, dependencies: [i2$1.MarkdownComponent, i1.RpxTranslatePipe, CaseReferencePipe], encapsulation: 2 });
|
|
15668
|
+
} }, dependencies: [i2$1.MarkdownComponent, i1.RpxTranslatePipe, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
15612
15669
|
}
|
|
15613
15670
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
15614
15671
|
type: Component,
|
|
15615
|
-
args: [{ selector: 'ccd-markdown', template: "<div><markdown class=\"markdown\" [data]=\"content | ccdCaseReference | rpxTranslate\"></markdown></div>\n" }]
|
|
15616
|
-
}], () => [{ type: i1$1.Router }, { type: i0.Renderer2 }], { content: [{
|
|
15617
|
-
type: Input
|
|
15618
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
15672
|
+
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference | rpxTranslate\"></markdown></div>\n" }]
|
|
15673
|
+
}], () => [{ type: i1$1.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }], { content: [{
|
|
15619
15674
|
type: Input
|
|
15620
15675
|
}], renderUrlToTextFeature: [{
|
|
15621
15676
|
type: Input
|
|
15622
|
-
}], onMarkdownClick: [{
|
|
15623
|
-
type: HostListener,
|
|
15624
|
-
args: ['click', ['$event']]
|
|
15625
15677
|
}] }); })();
|
|
15626
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber:
|
|
15678
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 10 }); })();
|
|
15627
15679
|
|
|
15628
15680
|
class FixedListPipe {
|
|
15629
15681
|
static EMPTY = '';
|
|
@@ -16639,45 +16691,50 @@ function LabelFieldComponent_ccd_markdown_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
16639
16691
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
16640
16692
|
} if (rf & 2) {
|
|
16641
16693
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16642
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(1,
|
|
16694
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(1, 1, ctx_r0.caseField.label));
|
|
16643
16695
|
} }
|
|
16644
16696
|
function LabelFieldComponent_ccd_markdown_3_Template(rf, ctx) { if (rf & 1) {
|
|
16645
16697
|
i0.ɵɵelement(0, "ccd-markdown", 2);
|
|
16646
16698
|
} if (rf & 2) {
|
|
16647
16699
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16648
|
-
i0.ɵɵproperty("content", ctx_r0.caseField.
|
|
16700
|
+
i0.ɵɵproperty("content", ctx_r0.caseField.label);
|
|
16701
|
+
} }
|
|
16702
|
+
function LabelFieldComponent_ccd_markdown_4_Template(rf, ctx) { if (rf & 1) {
|
|
16703
|
+
i0.ɵɵelement(0, "ccd-markdown", 2);
|
|
16704
|
+
} if (rf & 2) {
|
|
16705
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16706
|
+
i0.ɵɵproperty("content", ctx_r0.caseField.value || ctx_r0.caseField.label);
|
|
16649
16707
|
} }
|
|
16650
16708
|
class LabelFieldComponent {
|
|
16651
16709
|
caseField;
|
|
16652
16710
|
caseFields = [];
|
|
16653
16711
|
labelCanBeTranslated = false;
|
|
16654
|
-
markdownUseHrefAsRouterLink;
|
|
16655
16712
|
static ɵfac = function LabelFieldComponent_Factory(t) { return new (t || LabelFieldComponent)(); };
|
|
16656
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", labelCanBeTranslated: "labelCanBeTranslated"
|
|
16713
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", labelCanBeTranslated: "labelCanBeTranslated" }, decls: 6, vars: 7, consts: [["ccdLabelSubstitutor", "", 1, "case-field", 3, "hidden", "caseField", "contextFields", "id"], [3, "content", 4, "ngIf"], [3, "content"]], template: function LabelFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16657
16714
|
i0.ɵɵelementStart(0, "dl", 0)(1, "dt");
|
|
16658
|
-
i0.ɵɵtemplate(2, LabelFieldComponent_ccd_markdown_2_Template, 2,
|
|
16715
|
+
i0.ɵɵtemplate(2, LabelFieldComponent_ccd_markdown_2_Template, 2, 3, "ccd-markdown", 1)(3, LabelFieldComponent_ccd_markdown_3_Template, 1, 1, "ccd-markdown", 1)(4, LabelFieldComponent_ccd_markdown_4_Template, 1, 1, "ccd-markdown", 1);
|
|
16659
16716
|
i0.ɵɵelementEnd();
|
|
16660
|
-
i0.ɵɵelement(
|
|
16717
|
+
i0.ɵɵelement(5, "dd");
|
|
16661
16718
|
i0.ɵɵelementEnd();
|
|
16662
16719
|
} if (rf & 2) {
|
|
16663
16720
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden)("caseField", ctx.caseField)("contextFields", ctx.caseFields)("id", ctx.caseField.id);
|
|
16664
16721
|
i0.ɵɵadvance(2);
|
|
16665
|
-
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated);
|
|
16722
|
+
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && !ctx.caseField.isTranslated);
|
|
16723
|
+
i0.ɵɵadvance();
|
|
16724
|
+
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && ctx.caseField.isTranslated);
|
|
16666
16725
|
i0.ɵɵadvance();
|
|
16667
16726
|
i0.ɵɵproperty("ngIf", !ctx.labelCanBeTranslated);
|
|
16668
16727
|
} }, encapsulation: 2 });
|
|
16669
16728
|
}
|
|
16670
16729
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelFieldComponent, [{
|
|
16671
16730
|
type: Component,
|
|
16672
|
-
args: [{ selector: 'ccd-label-field', template: "<dl [hidden]=\"caseField.hidden\" class=\"case-field\" ccdLabelSubstitutor [caseField]=\"caseField\" [contextFields]=\"caseFields\" [id]=\"caseField.id\">\n <dt>\n <ccd-markdown *ngIf=\"labelCanBeTranslated\" [content]=\"caseField.label | rpxTranslate\" [
|
|
16731
|
+
args: [{ selector: 'ccd-label-field', template: "<dl [hidden]=\"caseField.hidden\" class=\"case-field\" ccdLabelSubstitutor [caseField]=\"caseField\" [contextFields]=\"caseFields\" [id]=\"caseField.id\">\n <dt>\n <ccd-markdown *ngIf=\"labelCanBeTranslated && !caseField.isTranslated\" [content]=\"caseField.label | rpxTranslate\">\n </ccd-markdown>\n\n <ccd-markdown *ngIf=\"labelCanBeTranslated && caseField.isTranslated\" [content]=\"caseField.label\">\n </ccd-markdown>\n\n <ccd-markdown *ngIf=\"!labelCanBeTranslated\" [content]=\"caseField.value || caseField.label\">\n </ccd-markdown>\n </dt>\n <dd></dd>\n</dl>\n" }]
|
|
16673
16732
|
}], null, { caseField: [{
|
|
16674
16733
|
type: Input
|
|
16675
16734
|
}], caseFields: [{
|
|
16676
16735
|
type: Input
|
|
16677
16736
|
}], labelCanBeTranslated: [{
|
|
16678
16737
|
type: Input
|
|
16679
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
16680
|
-
type: Input
|
|
16681
16738
|
}] }); })();
|
|
16682
16739
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LabelFieldComponent, { className: "LabelFieldComponent", filePath: "lib/shared/components/palette/label/label-field.component.ts", lineNumber: 8 }); })();
|
|
16683
16740
|
|
|
@@ -21279,9 +21336,9 @@ class QueryCheckYourAnswersComponent {
|
|
|
21279
21336
|
// Check if the field_type matches CaseQueriesCollection and type is Complex
|
|
21280
21337
|
if (data.field_type.id === this.CASE_QUERIES_COLLECTION_ID && data.field_type.type === this.FIELD_TYPE_COMPLEX) {
|
|
21281
21338
|
if (this.isNewQueryContext(data)) {
|
|
21282
|
-
//
|
|
21339
|
+
// If there is more than one qmCaseQueriesCollection, pick the one with the lowest order
|
|
21283
21340
|
if (count > 1) {
|
|
21284
|
-
if (!this.handleMultipleCollections(
|
|
21341
|
+
if (!this.handleMultipleCollections()) {
|
|
21285
21342
|
return;
|
|
21286
21343
|
}
|
|
21287
21344
|
}
|
|
@@ -21306,20 +21363,15 @@ class QueryCheckYourAnswersComponent {
|
|
|
21306
21363
|
isNewQueryContext(data) {
|
|
21307
21364
|
return this.queryCreateContext === QueryCreateContext.NEW_QUERY && data.display_context !== this.DISPLAY_CONTEXT_READONLY;
|
|
21308
21365
|
}
|
|
21309
|
-
handleMultipleCollections(
|
|
21366
|
+
handleMultipleCollections() {
|
|
21310
21367
|
const jurisdictionId = this.caseDetails?.case_type?.jurisdiction?.id;
|
|
21311
21368
|
if (!jurisdictionId) {
|
|
21312
21369
|
console.error('Jurisdiction ID is missing.');
|
|
21313
21370
|
return false;
|
|
21314
21371
|
}
|
|
21315
21372
|
if (this.getCollectionSelectionMethod(jurisdictionId) === this.QM_SELECT_FIRST_COLLECTION) {
|
|
21316
|
-
const fieldOrder = this.getFieldOrderFromWizardPages(id);
|
|
21317
21373
|
// Pick the collection with the lowest order
|
|
21318
|
-
|
|
21319
|
-
(this.firstCollectionOrder === undefined || fieldOrder < this.firstCollectionOrder)) {
|
|
21320
|
-
this.fieldId = id;
|
|
21321
|
-
this.firstCollectionOrder = fieldOrder;
|
|
21322
|
-
}
|
|
21374
|
+
this.fieldId = this.getCaseQueriesCollectionFieldOrderFromWizardPages()?.id;
|
|
21323
21375
|
}
|
|
21324
21376
|
else {
|
|
21325
21377
|
// Display Error, for now, until EXUI-2644 is implemented
|
|
@@ -21328,13 +21380,21 @@ class QueryCheckYourAnswersComponent {
|
|
|
21328
21380
|
}
|
|
21329
21381
|
return true;
|
|
21330
21382
|
}
|
|
21331
|
-
|
|
21332
|
-
const
|
|
21333
|
-
|
|
21383
|
+
getCaseQueriesCollectionFieldOrderFromWizardPages() {
|
|
21384
|
+
const candidateFields = this.eventData?.case_fields?.filter((field) => field.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
|
|
21385
|
+
field.field_type.type === this.FIELD_TYPE_COMPLEX &&
|
|
21386
|
+
field.display_context !== this.DISPLAY_CONTEXT_READONLY);
|
|
21387
|
+
if (!candidateFields?.length)
|
|
21334
21388
|
return undefined;
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21389
|
+
const firstPageFields = this.eventData?.wizard_pages?.[0]?.wizard_page_fields;
|
|
21390
|
+
if (!firstPageFields)
|
|
21391
|
+
return undefined;
|
|
21392
|
+
return candidateFields
|
|
21393
|
+
.map((field) => {
|
|
21394
|
+
const wizardField = firstPageFields.find(f => f.case_field_id === field.id);
|
|
21395
|
+
return { field, order: wizardField?.order ?? Number.MAX_SAFE_INTEGER };
|
|
21396
|
+
})
|
|
21397
|
+
.sort((a, b) => a.order - b.order)[0]?.field;
|
|
21338
21398
|
}
|
|
21339
21399
|
getCollectionSelectionMethod(jurisdiction) {
|
|
21340
21400
|
return jurisdiction.toUpperCase() === this.CIVIL_JURISDICTION ? this.QM_SELECT_FIRST_COLLECTION : this.QM_COLLECTION_PROMPT;
|
|
@@ -22872,21 +22932,20 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
22872
22932
|
|
|
22873
22933
|
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
22874
22934
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(t) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(t || ReadTextAreaFieldComponent); }; })();
|
|
22875
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
22935
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[2, "white-space", "pre-wrap"]], template: function ReadTextAreaFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22876
22936
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22877
22937
|
i0.ɵɵtext(1);
|
|
22878
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22879
22938
|
i0.ɵɵelementEnd();
|
|
22880
22939
|
} if (rf & 2) {
|
|
22881
22940
|
i0.ɵɵadvance();
|
|
22882
|
-
i0.ɵɵtextInterpolate(
|
|
22883
|
-
} },
|
|
22941
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
22942
|
+
} }, encapsulation: 2 });
|
|
22884
22943
|
}
|
|
22885
22944
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
|
|
22886
22945
|
type: Component,
|
|
22887
22946
|
args: [{
|
|
22888
22947
|
selector: 'ccd-read-text-area-field',
|
|
22889
|
-
template: `<span style="white-space: pre-wrap">{{caseField.value
|
|
22948
|
+
template: `<span style="white-space: pre-wrap">{{ caseField.value }}</span>`
|
|
22890
22949
|
}]
|
|
22891
22950
|
}], null, null); })();
|
|
22892
22951
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -22971,21 +23030,20 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
22971
23030
|
|
|
22972
23031
|
class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
22973
23032
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(t) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(t || ReadTextFieldComponent); }; })();
|
|
22974
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextFieldComponent, selectors: [["ccd-read-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
23033
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextFieldComponent, selectors: [["ccd-read-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[1, "text-16"]], template: function ReadTextFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22975
23034
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22976
23035
|
i0.ɵɵtext(1);
|
|
22977
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22978
23036
|
i0.ɵɵelementEnd();
|
|
22979
23037
|
} if (rf & 2) {
|
|
22980
23038
|
i0.ɵɵadvance();
|
|
22981
|
-
i0.ɵɵtextInterpolate(
|
|
22982
|
-
} },
|
|
23039
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
23040
|
+
} }, encapsulation: 2 });
|
|
22983
23041
|
}
|
|
22984
23042
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextFieldComponent, [{
|
|
22985
23043
|
type: Component,
|
|
22986
23044
|
args: [{
|
|
22987
23045
|
selector: 'ccd-read-text-field',
|
|
22988
|
-
template: `<span class="text-16">{{caseField.value
|
|
23046
|
+
template: `<span class="text-16">{{ caseField.value }}</span>`
|
|
22989
23047
|
}]
|
|
22990
23048
|
}], null, null); })();
|
|
22991
23049
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -23378,7 +23436,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23378
23436
|
withLabel = false;
|
|
23379
23437
|
formGroup = new FormGroup({});
|
|
23380
23438
|
caseFields = [];
|
|
23381
|
-
markdownUseHrefAsRouterLink;
|
|
23382
23439
|
fieldContainer;
|
|
23383
23440
|
constructor(resolver, paletteService) {
|
|
23384
23441
|
super();
|
|
@@ -23411,7 +23468,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23411
23468
|
component.instance['parent'] = this.parent;
|
|
23412
23469
|
component.instance['caseReference'] = this.caseReference;
|
|
23413
23470
|
component.instance['context'] = this.context;
|
|
23414
|
-
component.instance['markdownUseHrefAsRouterLink'] = this.markdownUseHrefAsRouterLink;
|
|
23415
23471
|
component.instance['labelCanBeTranslated'] = this.labelCanBeTranslated(this.caseField);
|
|
23416
23472
|
this.fieldContainer.insert(component.hostView);
|
|
23417
23473
|
});
|
|
@@ -23425,27 +23481,25 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23425
23481
|
} if (rf & 2) {
|
|
23426
23482
|
let _t;
|
|
23427
23483
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
23428
|
-
} }, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields"
|
|
23484
|
+
} }, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 5, consts: [["fieldContainer", ""], [3, "hidden"], [3, "formGroup", "topLevelFormGroup", "caseField", "withLabel"]], template: function FieldReadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23429
23485
|
i0.ɵɵelementStart(0, "div", 1)(1, "ccd-field-read-label", 2);
|
|
23430
23486
|
i0.ɵɵelementContainer(2, null, 0);
|
|
23431
23487
|
i0.ɵɵelementEnd()();
|
|
23432
23488
|
} if (rf & 2) {
|
|
23433
23489
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
23434
23490
|
i0.ɵɵadvance();
|
|
23435
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel)
|
|
23491
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel);
|
|
23436
23492
|
} }, encapsulation: 2 });
|
|
23437
23493
|
}
|
|
23438
23494
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadComponent, [{
|
|
23439
23495
|
type: Component,
|
|
23440
|
-
args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\"
|
|
23496
|
+
args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\">\n <ng-container #fieldContainer></ng-container>\n </ccd-field-read-label>\n</div>\n" }]
|
|
23441
23497
|
}], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { withLabel: [{
|
|
23442
23498
|
type: Input
|
|
23443
23499
|
}], formGroup: [{
|
|
23444
23500
|
type: Input
|
|
23445
23501
|
}], caseFields: [{
|
|
23446
23502
|
type: Input
|
|
23447
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23448
|
-
type: Input
|
|
23449
23503
|
}], fieldContainer: [{
|
|
23450
23504
|
type: ViewChild,
|
|
23451
23505
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
@@ -23549,7 +23603,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23549
23603
|
// EUI-3267. Flag for whether or not this can have a grey bar.
|
|
23550
23604
|
canHaveGreyBar = false;
|
|
23551
23605
|
withLabel;
|
|
23552
|
-
markdownUseHrefAsRouterLink;
|
|
23553
23606
|
isLabel() {
|
|
23554
23607
|
return this.caseField.field_type && this.caseField.field_type.type === 'Label';
|
|
23555
23608
|
}
|
|
@@ -23577,7 +23630,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23577
23630
|
}
|
|
23578
23631
|
}
|
|
23579
23632
|
static ɵfac = /*@__PURE__*/ (() => { let ɵFieldReadLabelComponent_BaseFactory; return function FieldReadLabelComponent_Factory(t) { return (ɵFieldReadLabelComponent_BaseFactory || (ɵFieldReadLabelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FieldReadLabelComponent)))(t || FieldReadLabelComponent); }; })();
|
|
23580
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel"
|
|
23633
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$v, decls: 4, vars: 5, consts: [["caseFieldValue", ""], [3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23581
23634
|
i0.ɵɵprojectionDef();
|
|
23582
23635
|
i0.ɵɵelementStart(0, "div", 1);
|
|
23583
23636
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 6, 4, "dl", 2)(2, FieldReadLabelComponent_ng_template_2_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
@@ -23595,8 +23648,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23595
23648
|
args: [{ selector: 'ccd-field-read-label', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <dl class=\"case-field\" *ngIf=\"withLabel && !isLabel() && (!isComplex() || isCaseLink()); else caseFieldValue\">\n <dt class=\"case-field__label\">{{caseField.label | rpxTranslate}}</dt>\n <dd class=\"case-field__value\">\n <ng-container *ngTemplateOutlet=\"caseFieldValue\"></ng-container>\n </dd>\n </dl>\n <ng-template #caseFieldValue>\n <ng-content></ng-content>\n </ng-template>\n</div>\n", styles: [".case-field:after{content:\"\";display:block;clear:both}.case-field{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:15px}@media (min-width: 641px){.case-field{margin-bottom:30px}}.case-field .case-field__label{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.case-field .case-field__label{font-size:19px;line-height:1.3157894737}}.case-field .case-field__value{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.case-field .case-field__value{font-size:19px;line-height:1.3157894737}}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
|
|
23596
23649
|
}], null, { withLabel: [{
|
|
23597
23650
|
type: Input
|
|
23598
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23599
|
-
type: Input
|
|
23600
23651
|
}] }); })();
|
|
23601
23652
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadLabelComponent, { className: "FieldReadLabelComponent", filePath: "lib/shared/components/palette/base-field/field-read-label.component.ts", lineNumber: 14 }); })();
|
|
23602
23653
|
|
|
@@ -24621,7 +24672,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
24621
24672
|
}] }); })();
|
|
24622
24673
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber: 12 }); })();
|
|
24623
24674
|
|
|
24624
|
-
function
|
|
24675
|
+
function CaseFlagSummaryListComponent_dl_0_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
24625
24676
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
24626
24677
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24627
24678
|
i0.ɵɵtext(2);
|
|
@@ -24631,7 +24682,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24631
24682
|
i0.ɵɵtext(5);
|
|
24632
24683
|
i0.ɵɵelementEnd();
|
|
24633
24684
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24634
|
-
i0.ɵɵlistener("click", function
|
|
24685
|
+
i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_27_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r1.caseFlagFieldState.FLAG_TYPE)); });
|
|
24635
24686
|
i0.ɵɵtext(8);
|
|
24636
24687
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24637
24688
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24649,7 +24700,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24649
24700
|
i0.ɵɵadvance(3);
|
|
24650
24701
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "other description (Welsh)"), "");
|
|
24651
24702
|
} }
|
|
24652
|
-
function
|
|
24703
|
+
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
24653
24704
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
24654
24705
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24655
24706
|
i0.ɵɵtext(2);
|
|
@@ -24659,7 +24710,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24659
24710
|
i0.ɵɵtext(5);
|
|
24660
24711
|
i0.ɵɵelementEnd();
|
|
24661
24712
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24662
|
-
i0.ɵɵlistener("click", function
|
|
24713
|
+
i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_28_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_COMMENTS)); });
|
|
24663
24714
|
i0.ɵɵtext(8);
|
|
24664
24715
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24665
24716
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24677,7 +24728,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24677
24728
|
i0.ɵɵadvance(3);
|
|
24678
24729
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments"), "");
|
|
24679
24730
|
} }
|
|
24680
|
-
function
|
|
24731
|
+
function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1) {
|
|
24681
24732
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
24682
24733
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24683
24734
|
i0.ɵɵtext(2);
|
|
@@ -24687,7 +24738,7 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24687
24738
|
i0.ɵɵtext(5);
|
|
24688
24739
|
i0.ɵɵelementEnd();
|
|
24689
24740
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24690
|
-
i0.ɵɵlistener("click", function
|
|
24741
|
+
i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_29_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r1.caseFlagFieldState.FLAG_COMMENTS)); });
|
|
24691
24742
|
i0.ɵɵtext(8);
|
|
24692
24743
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24693
24744
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24705,10 +24756,10 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24705
24756
|
i0.ɵɵadvance(3);
|
|
24706
24757
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments (Welsh)"), "");
|
|
24707
24758
|
} }
|
|
24708
|
-
function
|
|
24759
|
+
function CaseFlagSummaryListComponent_dl_0_a_38_Template(rf, ctx) { if (rf & 1) {
|
|
24709
24760
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
24710
24761
|
i0.ɵɵelementStart(0, "a", 6);
|
|
24711
|
-
i0.ɵɵlistener("click", function
|
|
24762
|
+
i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_a_38_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_STATUS)); });
|
|
24712
24763
|
i0.ɵɵtext(1);
|
|
24713
24764
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24714
24765
|
i0.ɵɵelementStart(3, "span", 7);
|
|
@@ -24729,61 +24780,60 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24729
24780
|
i0.ɵɵelementEnd();
|
|
24730
24781
|
i0.ɵɵelementStart(5, "dd", 4);
|
|
24731
24782
|
i0.ɵɵtext(6);
|
|
24732
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
24733
24783
|
i0.ɵɵelementEnd();
|
|
24734
|
-
i0.ɵɵelementStart(
|
|
24735
|
-
i0.ɵɵlistener("click", function
|
|
24736
|
-
i0.ɵɵtext(
|
|
24737
|
-
i0.ɵɵpipe(
|
|
24738
|
-
i0.ɵɵelementStart(
|
|
24739
|
-
i0.ɵɵtext(
|
|
24740
|
-
i0.ɵɵpipe(
|
|
24784
|
+
i0.ɵɵelementStart(7, "dd", 5)(8, "a", 6);
|
|
24785
|
+
i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_8_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : ctx_r1.caseFlagFieldState.FLAG_LOCATION)); });
|
|
24786
|
+
i0.ɵɵtext(9);
|
|
24787
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
24788
|
+
i0.ɵɵelementStart(11, "span", 7);
|
|
24789
|
+
i0.ɵɵtext(12);
|
|
24790
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
24741
24791
|
i0.ɵɵelementEnd()()()();
|
|
24742
|
-
i0.ɵɵelementStart(
|
|
24743
|
-
i0.ɵɵtext(
|
|
24744
|
-
i0.ɵɵpipe(
|
|
24792
|
+
i0.ɵɵelementStart(14, "div", 2)(15, "dt", 3);
|
|
24793
|
+
i0.ɵɵtext(16);
|
|
24794
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
24745
24795
|
i0.ɵɵelementEnd();
|
|
24746
|
-
i0.ɵɵelementStart(
|
|
24747
|
-
i0.ɵɵtext(
|
|
24796
|
+
i0.ɵɵelementStart(18, "dd", 4);
|
|
24797
|
+
i0.ɵɵtext(19);
|
|
24748
24798
|
i0.ɵɵelementEnd();
|
|
24749
|
-
i0.ɵɵelementStart(
|
|
24750
|
-
i0.ɵɵlistener("click", function
|
|
24751
|
-
i0.ɵɵtext(
|
|
24752
|
-
i0.ɵɵpipe(
|
|
24753
|
-
i0.ɵɵelementStart(
|
|
24754
|
-
i0.ɵɵtext(
|
|
24755
|
-
i0.ɵɵpipe(
|
|
24799
|
+
i0.ɵɵelementStart(20, "dd", 5)(21, "a", 6);
|
|
24800
|
+
i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_TYPE)); });
|
|
24801
|
+
i0.ɵɵtext(22);
|
|
24802
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
24803
|
+
i0.ɵɵelementStart(24, "span", 7);
|
|
24804
|
+
i0.ɵɵtext(25);
|
|
24805
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
24756
24806
|
i0.ɵɵelementEnd()()()();
|
|
24757
|
-
i0.ɵɵtemplate(
|
|
24758
|
-
i0.ɵɵelementStart(
|
|
24759
|
-
i0.ɵɵtext(
|
|
24760
|
-
i0.ɵɵpipe(
|
|
24807
|
+
i0.ɵɵtemplate(27, CaseFlagSummaryListComponent_dl_0_div_27_Template, 13, 10, "div", 8)(28, CaseFlagSummaryListComponent_dl_0_div_28_Template, 13, 10, "div", 8)(29, CaseFlagSummaryListComponent_dl_0_div_29_Template, 13, 10, "div", 8);
|
|
24808
|
+
i0.ɵɵelementStart(30, "div", 2)(31, "dt", 3);
|
|
24809
|
+
i0.ɵɵtext(32);
|
|
24810
|
+
i0.ɵɵpipe(33, "rpxTranslate");
|
|
24761
24811
|
i0.ɵɵelementEnd();
|
|
24762
|
-
i0.ɵɵelementStart(
|
|
24763
|
-
i0.ɵɵtext(
|
|
24764
|
-
i0.ɵɵpipe(
|
|
24812
|
+
i0.ɵɵelementStart(34, "dd", 4);
|
|
24813
|
+
i0.ɵɵtext(35);
|
|
24814
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
24765
24815
|
i0.ɵɵelementEnd();
|
|
24766
|
-
i0.ɵɵelementStart(
|
|
24767
|
-
i0.ɵɵtemplate(
|
|
24816
|
+
i0.ɵɵelementStart(37, "dd", 5);
|
|
24817
|
+
i0.ɵɵtemplate(38, CaseFlagSummaryListComponent_dl_0_a_38_Template, 6, 6, "a", 9);
|
|
24768
24818
|
i0.ɵɵelementEnd()()();
|
|
24769
24819
|
} if (rf & 2) {
|
|
24770
24820
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
24771
24821
|
i0.ɵɵadvance(3);
|
|
24772
24822
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 14, ctx_r1.addUpdateFlagHeaderText), " ");
|
|
24773
24823
|
i0.ɵɵadvance(3);
|
|
24774
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24775
|
-
i0.ɵɵadvance(
|
|
24776
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24824
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagForSummaryDisplay.partyName || ctx_r1.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION, " ");
|
|
24825
|
+
i0.ɵɵadvance(3);
|
|
24826
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, "Change"), "");
|
|
24777
24827
|
i0.ɵɵadvance(3);
|
|
24778
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24828
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 18, "party name"), "");
|
|
24779
24829
|
i0.ɵɵadvance(4);
|
|
24780
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24830
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 20, ctx_r1.flagTypeHeaderText), " ");
|
|
24781
24831
|
i0.ɵɵadvance(3);
|
|
24782
24832
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagDescription, " ");
|
|
24783
24833
|
i0.ɵɵadvance(3);
|
|
24784
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24834
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, "Change"), "");
|
|
24785
24835
|
i0.ɵɵadvance(3);
|
|
24786
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24836
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 24, "flag type"), "");
|
|
24787
24837
|
i0.ɵɵadvance(2);
|
|
24788
24838
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagDescriptionWelsh == null ? null : ctx_r1.flagDescriptionWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24789
24839
|
i0.ɵɵadvance();
|
|
@@ -24791,9 +24841,9 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24791
24841
|
i0.ɵɵadvance();
|
|
24792
24842
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagCommentsWelsh == null ? null : ctx_r1.flagCommentsWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24793
24843
|
i0.ɵɵadvance(3);
|
|
24794
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24844
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(33, 26, "Status"), " ");
|
|
24795
24845
|
i0.ɵɵadvance(3);
|
|
24796
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24846
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(36, 28, ctx_r1.flagStatus), " ");
|
|
24797
24847
|
i0.ɵɵadvance(3);
|
|
24798
24848
|
i0.ɵɵproperty("ngIf", ctx_r1.is2Point1Enabled);
|
|
24799
24849
|
} }
|
|
@@ -24899,14 +24949,14 @@ class CaseFlagSummaryListComponent {
|
|
|
24899
24949
|
}
|
|
24900
24950
|
static ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
24901
24951
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", displayContextParameter: "displayContextParameter" }, outputs: { changeButtonEmitter: "changeButtonEmitter" }, decls: 1, vars: 1, consts: [["class", "govuk-summary-list", 4, "ngIf"], [1, "govuk-summary-list"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-visually-hidden"], ["class", "govuk-summary-list__row", 4, "ngIf"], ["class", "govuk-link", "href", "javascript:void(0)", 3, "click", 4, "ngIf"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24902
|
-
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template,
|
|
24952
|
+
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 39, 30, "dl", 0);
|
|
24903
24953
|
} if (rf & 2) {
|
|
24904
24954
|
i0.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
|
|
24905
24955
|
} }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24906
24956
|
}
|
|
24907
24957
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagSummaryListComponent, [{
|
|
24908
24958
|
type: Component,
|
|
24909
|
-
args: [{ selector: 'ccd-case-flag-summary-list', template: "<dl class=\"govuk-summary-list\" *ngIf=\"flagForSummaryDisplay\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{addUpdateFlagHeaderText | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagForSummaryDisplay.partyName || caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION
|
|
24959
|
+
args: [{ selector: 'ccd-case-flag-summary-list', template: "<dl class=\"govuk-summary-list\" *ngIf=\"flagForSummaryDisplay\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{addUpdateFlagHeaderText | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagForSummaryDisplay.partyName || caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION }}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : caseFlagFieldState.FLAG_LOCATION)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'party name' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{flagTypeHeaderText | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagDescription}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_TYPE)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'flag type' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagDescriptionWelsh?.length > 0 && !externalUserUpdate\">\n <dt class=\"govuk-summary-list__key\">\n {{'Other description (Welsh)' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagDescriptionWelsh}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : caseFlagFieldState.FLAG_TYPE)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'other description (Welsh)' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagComments?.length > 0\">\n <dt class=\"govuk-summary-list__key\">\n {{'Comments' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{externalUserUpdate ? flagUpdateComments : flagComments}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_COMMENTS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'comments' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagCommentsWelsh?.length > 0 && !externalUserUpdate\">\n <dt class=\"govuk-summary-list__key\">\n {{'Comments (Welsh)' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagCommentsWelsh}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : caseFlagFieldState.FLAG_COMMENTS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'comments (Welsh)' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{'Status' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagStatus | rpxTranslate}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a *ngIf=\"is2Point1Enabled\" class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_STATUS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'status' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n</dl>\n" }]
|
|
24910
24960
|
}], () => [{ type: i1.RpxTranslationService }], { flagForSummaryDisplay: [{
|
|
24911
24961
|
type: Input
|
|
24912
24962
|
}], displayContextParameter: [{
|
|
@@ -27682,7 +27732,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
27682
27732
|
i0.ɵɵadvance();
|
|
27683
27733
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
27684
27734
|
i0.ɵɵadvance(2);
|
|
27685
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 8, field_r1.label));
|
|
27735
|
+
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4, 8, field_r1.label) : field_r1.label);
|
|
27686
27736
|
i0.ɵɵadvance(2);
|
|
27687
27737
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
27688
27738
|
i0.ɵɵadvance();
|
|
@@ -27707,7 +27757,7 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
27707
27757
|
}
|
|
27708
27758
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
27709
27759
|
type: Component,
|
|
27710
|
-
args: [{ selector: 'ccd-read-complex-field-raw', template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
|
|
27760
|
+
args: [{ selector: 'ccd-read-complex-field-raw', template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
|
|
27711
27761
|
}], null, { caseFields: [{
|
|
27712
27762
|
type: Input
|
|
27713
27763
|
}] }); })();
|
|
@@ -28145,7 +28195,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28145
28195
|
return result;
|
|
28146
28196
|
}
|
|
28147
28197
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldCollectionTableComponent_BaseFactory; return function ReadComplexFieldCollectionTableComponent_Factory(t) { return (ɵReadComplexFieldCollectionTableComponent_BaseFactory || (ɵReadComplexFieldCollectionTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldCollectionTableComponent)))(t || ReadComplexFieldCollectionTableComponent); }; })();
|
|
28148
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldCollectionTableComponent, selectors: [["ccd-read-complex-field-collection-table"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 6, consts: [["showEmptyTd", ""], ["SimpleRow", ""], [1, "complex-panel", 3, "hidden"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex panel table", 1, "complex-panel-table"], ["scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], [1, "new-table-row", "accordion-heading", 3, "click"], [2, "float", "right"], ["href", "javascript:void(0)"], ["alt", "
|
|
28198
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldCollectionTableComponent, selectors: [["ccd-read-complex-field-collection-table"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 6, consts: [["showEmptyTd", ""], ["SimpleRow", ""], [1, "complex-panel", 3, "hidden"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex panel table", 1, "complex-panel-table"], ["scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], [1, "new-table-row", "accordion-heading", 3, "click"], [2, "float", "right"], ["href", "javascript:void(0)"], ["alt", "accordion-img", 1, "accordion-image", 3, "src"], [3, "hidden"], [3, "colSpan"], ["aria-describedby", "complex panel table expanded", 1, "complex-panel-table"], [4, "ngIf", "ngIfElse"], [3, "caseField", "context"], ["class", "complex-panel-simple-field accordion-body", 3, "hidden", 4, "ngIf"], [3, "hidden", 4, "ngIf"], [1, "complex-panel-simple-field", "accordion-body", 3, "hidden"], ["class", "text-16", 4, "ngIf"], ["colspan", "2"], ["class", "complex-panel-compound-field", 3, "hidden", 4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], [1, "complex-panel-nested-field", 3, "hidden"], [4, "ngIf"]], template: function ReadComplexFieldCollectionTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
28149
28199
|
i0.ɵɵelementStart(0, "div", 2)(1, "dl", 3)(2, "dt")(3, "span", 4);
|
|
28150
28200
|
i0.ɵɵtext(4);
|
|
28151
28201
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -28170,7 +28220,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28170
28220
|
}
|
|
28171
28221
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldCollectionTableComponent, [{
|
|
28172
28222
|
type: Component,
|
|
28173
|
-
args: [{ selector: 'ccd-read-complex-field-collection-table', template: "<div class=\"complex-panel\" [hidden]=\"caseField.hidden\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table\">\n <tbody>\n <!-- <COMPLEX table field header>-->\n <tr>\n <th *ngFor=\"let heading of columns\" scope=\"col\">\n <span class=\"text-16\">{{columnsAllLabels[heading].label | rpxTranslate}}</span>\n <a href=\"javascript:void(0)\"\n (click)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [innerHTML]=\"sortWidget(columnsAllLabels[heading])\"></a>\n </th>\n <th></th>\n </tr>\n <!-- </COMPLEX table field header>-->\n <ng-container *ngFor=\"let item of rows; let i = index;\">\n <!-- <COMPLEX table collapsed view>-->\n <tr class=\"new-table-row accordion-heading\" (click)=\"isHidden[i] = !isHidden[i]\"\n [class.last-accordion]=\"isHidden[i]\">\n <ng-container *ngFor=\"let heading of columns\">\n <td class=\"text-16\">\n <div *ngIf=\"item[heading]; else showEmptyTd\">\n <ccd-field-read\n [caseField]=\"toCaseField(heading, item[heading].label, columnsHorizontalLabel[heading].type, item[heading])\"\n [context]=\"context\"></ccd-field-read>\n </div>\n <ng-template #showEmptyTd>\n <div> </div>\n </ng-template>\n </td>\n </ng-container>\n <td>\n <div style=\"float: right;\">\n <a href=\"javascript:void(0)\"> <img src=\"{{ getImage(i) }}\" alt=\"
|
|
28223
|
+
args: [{ selector: 'ccd-read-complex-field-collection-table', template: "<div class=\"complex-panel\" [hidden]=\"caseField.hidden\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table\">\n <tbody>\n <!-- <COMPLEX table field header>-->\n <tr>\n <th *ngFor=\"let heading of columns\" scope=\"col\">\n <span class=\"text-16\">{{columnsAllLabels[heading].label | rpxTranslate}}</span>\n <a href=\"javascript:void(0)\"\n (click)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [innerHTML]=\"sortWidget(columnsAllLabels[heading])\"></a>\n </th>\n <th></th>\n </tr>\n <!-- </COMPLEX table field header>-->\n <ng-container *ngFor=\"let item of rows; let i = index;\">\n <!-- <COMPLEX table collapsed view>-->\n <tr class=\"new-table-row accordion-heading\" (click)=\"isHidden[i] = !isHidden[i]\"\n [class.last-accordion]=\"isHidden[i]\">\n <ng-container *ngFor=\"let heading of columns\">\n <td class=\"text-16\">\n <div *ngIf=\"item[heading]; else showEmptyTd\">\n <ccd-field-read\n [caseField]=\"toCaseField(heading, item[heading].label, columnsHorizontalLabel[heading].type, item[heading])\"\n [context]=\"context\"></ccd-field-read>\n </div>\n <ng-template #showEmptyTd>\n <div> </div>\n </ng-template>\n </td>\n </ng-container>\n <td>\n <div style=\"float: right;\">\n <a href=\"javascript:void(0)\"> <img src=\"{{ getImage(i) }}\" alt=\"accordion-img\" class=\"accordion-image\"/></a>\n </div>\n </td>\n </tr>\n <!-- </COMPLEX table collapsed view>-->\n <!-- <COMPLEX table expanded view>-->\n <tr [hidden]=\"isHidden[i]\">\n <td [colSpan]=\"columns.length + 1\">\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table expanded\">\n <tbody>\n <ng-container\n *ngFor=\"let vLabel of columnsVerticalLabel | keyvalue: keepOriginalOrder | ccdCollectionTableCaseFieldsFilter: caseField: rows[i] | ccdReadFieldsFilter:true :undefined :true\">\n <!-- <COMPLEX table expandable body simple field>-->\n <tr class=\"complex-panel-simple-field accordion-body\" *ngIf=\"item[vLabel.id]\" [hidden]=\"vLabel.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{ vLabel.label | rpxTranslate }}</span></th>\n <td *ngIf=\"vLabel['type'] !== 'Complex'\" class=\"text-16\">\n <ccd-field-read [caseField]=\"toCaseField('', vLabel.label, vLabel.field_type, item[vLabel.id])\"\n [context]=\"context\"></ccd-field-read>\n </td>\n </tr>\n <!-- </COMPLEX table expandable body simple field>-->\n\n <!-- <COMPLEX table expandable body complex field>-->\n <tr *ngIf=\"vLabel['type'] === 'Complex' && addCaseFieldValue(vLabel, item[vLabel.id])\" [hidden]=\"vLabel.hidden\">\n <td colspan=\"2\">\n <ng-container *ngFor=\"let caseField of vLabel | ccdReadFieldsFilter:true :undefined :true\">\n <tr class=\"complex-panel-compound-field\" *ngIf=\"(caseField | ccdIsCompound); else SimpleRow\" [hidden]=\"caseField\">\n <td colspan=\"2\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n </tr>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-nested-field\" [hidden]=\"caseField.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></th>\n <td *ngIf=\"!item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n <td *ngIf=\"item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <ccd-read-case-link-field [caseField]=\"addCaseReferenceValue(caseField, item[vLabel.id].CaseReference)\" [context]=\"context\"></ccd-read-case-link-field>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </td>\n </tr>\n <!-- <COMPLEX table expandable body complex field>-->\n </ng-container>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- </COMPLEX table expanded view>-->\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".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{border-bottom:none}.complex-panel .complex-panel-table th{padding-left:5px;font-weight:700;border-bottom:none}.complex-panel .complex-panel-table td{padding-left:5px;padding-top:0;padding-bottom:0;border-bottom:none}.complex-panel .new-table-row{border-top:1px solid #bfc1c3}.complex-panel .complex-panel-simple-field th{padding-left:5px;padding-top:0;padding-bottom:0;width:295px}.complex-panel .complex-panel-nested-field th{padding-left:33px;padding-top:0;padding-bottom:0;width:200px}.complex-panel .complex-panel-compound-field td{padding:5px;border-bottom:none}.sort-widget{cursor:pointer;text-decoration:none;color:#0b0c0c}.accordion-wrapper{margin-bottom:20px}.accordion-wrapper .heading-medium{margin:0}.accordion-wrapper .accordion-heading{border-top:1px solid #bfc1c3;padding-top:20px;padding-bottom:10px;height:20px;cursor:pointer}.accordion-wrapper .accordion-heading .accordion-image{width:25px;margin-right:20px}.accordion-wrapper .accordion-body{margin-top:20px;margin-right:20px}.accordion-wrapper .last-accordion{border-bottom:1px solid #bfc1c3;padding-bottom:30px}\n"] }]
|
|
28174
28224
|
}], null, null); })();
|
|
28175
28225
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldCollectionTableComponent, { className: "ReadComplexFieldCollectionTableComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-collection-table.component.ts", lineNumber: 12 }); })();
|
|
28176
28226
|
|
|
@@ -33071,7 +33121,7 @@ function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_4_Template
|
|
|
33071
33121
|
i0.ɵɵproperty("caseField", field_r1)("caseReference", ctx_r1.caseHistory.case_id);
|
|
33072
33122
|
} }
|
|
33073
33123
|
function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
33074
|
-
i0.ɵɵelementStart(0, "tr", 17)(1, "
|
|
33124
|
+
i0.ɵɵelementStart(0, "tr", 17)(1, "th", 18);
|
|
33075
33125
|
i0.ɵɵelement(2, "ccd-field-read", 16);
|
|
33076
33126
|
i0.ɵɵelementEnd()();
|
|
33077
33127
|
} if (rf & 2) {
|
|
@@ -33285,7 +33335,7 @@ class CaseHistoryComponent {
|
|
|
33285
33335
|
}
|
|
33286
33336
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseHistoryComponent, [{
|
|
33287
33337
|
type: Component,
|
|
33288
|
-
args: [{ selector: 'ccd-case-history', template: "<div *ngIf=\"isDataLoaded()\">\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n </div>\n </div>\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <div>\n <h2 class=\"heading-h2\">{{'Event Details' | rpxTranslate}}</h2>\n <table class=\"EventDetails\" aria-describedby=\"event details table\">\n <tbody>\n <tr>\n <th>{{'Date' | rpxTranslate}}</th>\n <td>{{caseHistory.event.timestamp | ccdDate : 'local'}}</td>\n </tr>\n <tr>\n <th>{{'Author' | rpxTranslate}}</th>\n <td>{{caseHistory.event.user_first_name | titlecase}} {{caseHistory.event.user_last_name | uppercase}}</td>\n </tr>\n <tr>\n <th>{{'End state' | rpxTranslate}}</th>\n <td>{{caseHistory.event.state_name}}</td>\n </tr>\n <tr>\n <th>{{'Event' | rpxTranslate}}</th>\n <td>{{caseHistory.event.event_name}}</td>\n </tr>\n <tr>\n <th>{{'Summary' | rpxTranslate}}</th>\n <td>{{caseHistory.event.summary | ccdDash}}</td>\n </tr>\n <tr>\n <th>{{'Comment' | rpxTranslate}}</th>\n <td>{{caseHistory.event.comment | ccdDash}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <h2 class=\"heading-h2\">{{'Case Details' | rpxTranslate}}</h2>\n <ng-container *ngFor=\"let tab of tabs\">\n <div class=\"caseHistorySection\">\n <h3 class=\"heading-h3\">{{tab.label}}</h3>\n <table class=\"CaseHistory\" id=\"{{tab.id}}\" [attr.aria-describedby]=\"'case history table' | rpxTranslate\">\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"tab.fields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-label-header\">\n <div class=\"case-viewer-label\">{{field.label}}</div>\n </th>\n <td>\n <ccd-field-read [caseField]=\"field\" [caseReference]=\"caseHistory.case_id\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <
|
|
33338
|
+
args: [{ selector: 'ccd-case-history', template: "<div *ngIf=\"isDataLoaded()\">\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n </div>\n </div>\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <div>\n <h2 class=\"heading-h2\">{{'Event Details' | rpxTranslate}}</h2>\n <table class=\"EventDetails\" aria-describedby=\"event details table\">\n <tbody>\n <tr>\n <th>{{'Date' | rpxTranslate}}</th>\n <td>{{caseHistory.event.timestamp | ccdDate : 'local'}}</td>\n </tr>\n <tr>\n <th>{{'Author' | rpxTranslate}}</th>\n <td>{{caseHistory.event.user_first_name | titlecase}} {{caseHistory.event.user_last_name | uppercase}}</td>\n </tr>\n <tr>\n <th>{{'End state' | rpxTranslate}}</th>\n <td>{{caseHistory.event.state_name}}</td>\n </tr>\n <tr>\n <th>{{'Event' | rpxTranslate}}</th>\n <td>{{caseHistory.event.event_name}}</td>\n </tr>\n <tr>\n <th>{{'Summary' | rpxTranslate}}</th>\n <td>{{caseHistory.event.summary | ccdDash}}</td>\n </tr>\n <tr>\n <th>{{'Comment' | rpxTranslate}}</th>\n <td>{{caseHistory.event.comment | ccdDash}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <h2 class=\"heading-h2\">{{'Case Details' | rpxTranslate}}</h2>\n <ng-container *ngFor=\"let tab of tabs\">\n <div class=\"caseHistorySection\">\n <h3 class=\"heading-h3\">{{tab.label}}</h3>\n <table class=\"CaseHistory\" id=\"{{tab.id}}\" [attr.aria-describedby]=\"'case history table' | rpxTranslate\">\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"tab.fields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-label-header\">\n <div class=\"case-viewer-label\">{{field.label}}</div>\n </th>\n <td>\n <ccd-field-read [caseField]=\"field\" [caseReference]=\"caseHistory.case_id\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th colspan=\"2\">\n <ccd-field-read [caseField]=\"field\" [caseReference]=\"caseHistory.case_id\"></ccd-field-read>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </table>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [".CaseHistory th,.CaseHistory td{border-bottom:none}.caseHistorySection{margin-top:40px}.EventDetails th,.EventDetails td{border-bottom:none}th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{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}\n"] }]
|
|
33289
33339
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: AlertService }, { type: OrderService }, { type: CaseNotifier }, { type: CaseHistoryService }], { event: [{
|
|
33290
33340
|
type: Input
|
|
33291
33341
|
}] }); })();
|
|
@@ -33629,9 +33679,13 @@ class EventTriggerResolver {
|
|
|
33629
33679
|
this.loadingService = loadingService;
|
|
33630
33680
|
}
|
|
33631
33681
|
resolve(route) {
|
|
33632
|
-
|
|
33633
|
-
|
|
33634
|
-
|
|
33682
|
+
if (this.isRootTriggerEventRoute(route)) {
|
|
33683
|
+
return this.getAndCacheEventTrigger(route);
|
|
33684
|
+
}
|
|
33685
|
+
if (this.cachedEventTrigger && (route.params?.eid === this.cachedEventTrigger?.id)) {
|
|
33686
|
+
return Promise.resolve(this.cachedEventTrigger);
|
|
33687
|
+
}
|
|
33688
|
+
return this.getAndCacheEventTrigger(route);
|
|
33635
33689
|
}
|
|
33636
33690
|
isRootTriggerEventRoute(route) {
|
|
33637
33691
|
// if route is 'trigger/:eid'
|
|
@@ -34019,15 +34073,14 @@ function CaseBasicAccessViewComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
34019
34073
|
i0.ɵɵelementEnd();
|
|
34020
34074
|
i0.ɵɵelementStart(4, "dd", 12);
|
|
34021
34075
|
i0.ɵɵtext(5);
|
|
34022
|
-
i0.ɵɵpipe(6, "
|
|
34023
|
-
i0.ɵɵpipe(7, "titlecase");
|
|
34076
|
+
i0.ɵɵpipe(6, "titlecase");
|
|
34024
34077
|
i0.ɵɵelementEnd()();
|
|
34025
34078
|
} if (rf & 2) {
|
|
34026
34079
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
34027
34080
|
i0.ɵɵadvance(2);
|
|
34028
34081
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Court or hearing centre"));
|
|
34029
34082
|
i0.ɵɵadvance(3);
|
|
34030
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
34083
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.courtOrHearingCentre));
|
|
34031
34084
|
} }
|
|
34032
34085
|
function CaseBasicAccessViewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
34033
34086
|
i0.ɵɵelementStart(0, "div", 10)(1, "dt", 11);
|
|
@@ -34102,7 +34155,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34102
34155
|
i0.ɵɵpipe(13, "rpxTranslate");
|
|
34103
34156
|
i0.ɵɵelementEnd();
|
|
34104
34157
|
i0.ɵɵelementStart(14, "dl", 4);
|
|
34105
|
-
i0.ɵɵtemplate(15, CaseBasicAccessViewComponent_div_15_Template, 7, 6, "div", 5)(16, CaseBasicAccessViewComponent_div_16_Template, 7, 6, "div", 5)(17, CaseBasicAccessViewComponent_div_17_Template, 7, 6, "div", 5)(18, CaseBasicAccessViewComponent_div_18_Template,
|
|
34158
|
+
i0.ɵɵtemplate(15, CaseBasicAccessViewComponent_div_15_Template, 7, 6, "div", 5)(16, CaseBasicAccessViewComponent_div_16_Template, 7, 6, "div", 5)(17, CaseBasicAccessViewComponent_div_17_Template, 7, 6, "div", 5)(18, CaseBasicAccessViewComponent_div_18_Template, 7, 6, "div", 5)(19, CaseBasicAccessViewComponent_div_19_Template, 8, 8, "div", 5);
|
|
34106
34159
|
i0.ɵɵelementEnd()();
|
|
34107
34160
|
i0.ɵɵelementStart(20, "div", 6)(21, "button", 7);
|
|
34108
34161
|
i0.ɵɵtext(22);
|
|
@@ -34147,7 +34200,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34147
34200
|
}
|
|
34148
34201
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseBasicAccessViewComponent, [{
|
|
34149
34202
|
type: Component,
|
|
34150
|
-
args: [{ selector: 'ccd-case-basic-access-view', template: "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spinner>\n<div>\n <cut-alert type=\"information\">\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This case requires' | rpxTranslate}} {{accessType | rpxTranslate | lowercase}} {{'access' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{'Authorisation is needed to access this case' | rpxTranslate}}</ng-container>\n <br />\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{\"This could be because it's outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes\" | rpxTranslate }}.</ng-container>\n </cut-alert>\n <h1 class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n <h2 class=\"govuk-heading-m\">{{'Case details' | rpxTranslate}}</h2>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.basicFields?.caseNameHmctsInternal\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Case name' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.basicFields.caseNameHmctsInternal | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.case_type?.jurisdiction?.name\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Service' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.case_type.jurisdiction.name | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.state?.description\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'State' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.state.description | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"courtOrHearingCentre\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Court or hearing centre' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{courtOrHearingCentre |
|
|
34203
|
+
args: [{ selector: 'ccd-case-basic-access-view', template: "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spinner>\n<div>\n <cut-alert type=\"information\">\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This case requires' | rpxTranslate}} {{accessType | rpxTranslate | lowercase}} {{'access' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{'Authorisation is needed to access this case' | rpxTranslate}}</ng-container>\n <br />\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{\"This could be because it's outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes\" | rpxTranslate }}.</ng-container>\n </cut-alert>\n <h1 class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n <h2 class=\"govuk-heading-m\">{{'Case details' | rpxTranslate}}</h2>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.basicFields?.caseNameHmctsInternal\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Case name' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.basicFields.caseNameHmctsInternal | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.case_type?.jurisdiction?.name\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Service' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.case_type.jurisdiction.name | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.state?.description\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'State' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.state.description | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"courtOrHearingCentre\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Court or hearing centre' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{courtOrHearingCentre | titlecase}}</dd>\n </div>\n\n <div class=\"govuk-summary-list__row\" *ngIf=\"accessType\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Access' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{accessType | titlecase | rpxTranslate}}</dd>\n </div>\n </dl>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" [routerLink]=\"getRequestUrl(accessType)\">\n {{'Request access' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel()\" href=\"javascript:void(0)\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n</div>\n" }]
|
|
34151
34204
|
}], () => [{ type: CasesService }, { type: i1$1.Router }], { caseDetails: [{
|
|
34152
34205
|
type: Input
|
|
34153
34206
|
}], accessType: [{
|
|
@@ -34384,7 +34437,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34384
34437
|
i0.ɵɵadvance();
|
|
34385
34438
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34386
34439
|
i0.ɵɵadvance(2);
|
|
34387
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)
|
|
34440
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34388
34441
|
} }
|
|
34389
34442
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
34390
34443
|
i0.ɵɵelementStart(0, "tr", 40)(1, "th", 35)(2, "span", 36);
|
|
@@ -34396,14 +34449,14 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34396
34449
|
i0.ɵɵadvance();
|
|
34397
34450
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34398
34451
|
i0.ɵɵadvance(2);
|
|
34399
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)
|
|
34452
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34400
34453
|
} }
|
|
34401
34454
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
34402
34455
|
i0.ɵɵelementContainerStart(0);
|
|
34403
34456
|
i0.ɵɵelementStart(1, "div", 30);
|
|
34404
34457
|
i0.ɵɵelementContainerStart(2, 31);
|
|
34405
34458
|
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
34406
|
-
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_Template, 5,
|
|
34459
|
+
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_Template, 5, 5, "tr", 32)(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template, 4, 4, "tr", 33);
|
|
34407
34460
|
i0.ɵɵelementContainerEnd();
|
|
34408
34461
|
i0.ɵɵelementEnd();
|
|
34409
34462
|
i0.ɵɵelementContainerEnd();
|
|
@@ -34521,7 +34574,6 @@ class CaseFullAccessViewComponent {
|
|
|
34521
34574
|
caseSubscription;
|
|
34522
34575
|
errorSubscription;
|
|
34523
34576
|
dialogConfig;
|
|
34524
|
-
markdownUseHrefAsRouterLink;
|
|
34525
34577
|
message;
|
|
34526
34578
|
subscription;
|
|
34527
34579
|
notificationBannerConfig;
|
|
@@ -34565,7 +34617,6 @@ class CaseFullAccessViewComponent {
|
|
|
34565
34617
|
}));
|
|
34566
34618
|
initDialog();
|
|
34567
34619
|
this.init();
|
|
34568
|
-
this.markdownUseHrefAsRouterLink = true;
|
|
34569
34620
|
this.sessionStorageService?.removeItem('eventUrl');
|
|
34570
34621
|
this.subscription = this.convertHrefToRouterService?.getHrefMarkdownLinkContent().subscribe((hrefMarkdownLinkContent) => {
|
|
34571
34622
|
// do not convert router with initial default value; convert to router only on updated link content
|
|
@@ -34900,7 +34951,7 @@ class CaseFullAccessViewComponent {
|
|
|
34900
34951
|
} if (rf & 2) {
|
|
34901
34952
|
let _t;
|
|
34902
34953
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
34903
|
-
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex"], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label", "aria-label", 4, "ngFor", "ngForOf"], [3, "id", "label"], [3, "id", "label", "aria-label"], ["matTabContent", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference"
|
|
34954
|
+
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex"], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label", "aria-label", 4, "ngFor", "ngForOf"], [3, "id", "label"], [3, "id", "label", "aria-label"], ["matTabContent", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
34904
34955
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
|
|
34905
34956
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
|
|
34906
34957
|
i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
@@ -34938,7 +34989,7 @@ class CaseFullAccessViewComponent {
|
|
|
34938
34989
|
}
|
|
34939
34990
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
34940
34991
|
type: Component,
|
|
34941
|
-
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\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\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\" [aria-label]=\"curIdx === 0 ? tab.label + ', Please use left and right arrow keys to navigate case tabs' : '' | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'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\"
|
|
34992
|
+
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\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\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\" [aria-label]=\"curIdx === 0 ? tab.label + ', Please use left and right arrow keys to navigate case tabs' : '' | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'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 </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 </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}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
34942
34993
|
}], () => [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }, { type: LoadingService }, { type: LinkedCasesService }, { type: CaseFlagStateService }], { hasPrint: [{
|
|
34943
34994
|
type: Input
|
|
34944
34995
|
}], hasEventSelector: [{
|
|
@@ -35016,20 +35067,19 @@ function CasePrinterComponent_div_0_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
35016
35067
|
i0.ɵɵelementStart(0, "tr")(1, "td", 4)(2, "a", 5);
|
|
35017
35068
|
i0.ɵɵpipe(3, "ccdPrintUrl");
|
|
35018
35069
|
i0.ɵɵtext(4);
|
|
35019
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
35020
35070
|
i0.ɵɵelementEnd()();
|
|
35021
|
-
i0.ɵɵelementStart(
|
|
35022
|
-
i0.ɵɵtext(
|
|
35023
|
-
i0.ɵɵpipe(
|
|
35071
|
+
i0.ɵɵelementStart(5, "td", 6);
|
|
35072
|
+
i0.ɵɵtext(6);
|
|
35073
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
35024
35074
|
i0.ɵɵelementEnd()();
|
|
35025
35075
|
} if (rf & 2) {
|
|
35026
35076
|
const document_r1 = ctx.$implicit;
|
|
35027
35077
|
i0.ɵɵadvance(2);
|
|
35028
35078
|
i0.ɵɵproperty("href", i0.ɵɵpipeBind1(3, 3, document_r1.url), i0.ɵɵsanitizeUrl);
|
|
35029
35079
|
i0.ɵɵadvance(2);
|
|
35030
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
35031
|
-
i0.ɵɵadvance(
|
|
35032
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
35080
|
+
i0.ɵɵtextInterpolate1(" ", document_r1.name, " ");
|
|
35081
|
+
i0.ɵɵadvance(2);
|
|
35082
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 5, document_r1.type));
|
|
35033
35083
|
} }
|
|
35034
35084
|
function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
35035
35085
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -35049,7 +35099,7 @@ function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
35049
35099
|
i0.ɵɵpipe(14, "rpxTranslate");
|
|
35050
35100
|
i0.ɵɵelementEnd()()();
|
|
35051
35101
|
i0.ɵɵelementStart(15, "tbody");
|
|
35052
|
-
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template,
|
|
35102
|
+
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template, 8, 7, "tr", 3);
|
|
35053
35103
|
i0.ɵɵelementEnd()()();
|
|
35054
35104
|
} if (rf & 2) {
|
|
35055
35105
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -35114,7 +35164,7 @@ class CasePrinterComponent {
|
|
|
35114
35164
|
}
|
|
35115
35165
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePrinterComponent, [{
|
|
35116
35166
|
type: Component,
|
|
35117
|
-
args: [{ template: "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <h2 class=\"heading-h2\">{{'Print' | rpxTranslate}}</h2>\n <table [attr.aria-describedby]=\"'case print table' | rpxTranslate\">\n <thead>\n <tr>\n <th>{{'Name' | rpxTranslate}}</th>\n <th>{{'Type' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let document of documents\">\n <td class=\"document-name\"><a [href]=\"document.url | ccdPrintUrl\" target=\"_blank\" rel=\"external\">\n {{document.name
|
|
35167
|
+
args: [{ template: "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <h2 class=\"heading-h2\">{{'Print' | rpxTranslate}}</h2>\n <table [attr.aria-describedby]=\"'case print table' | rpxTranslate\">\n <thead>\n <tr>\n <th>{{'Name' | rpxTranslate}}</th>\n <th>{{'Type' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let document of documents\">\n <td class=\"document-name\"><a [href]=\"document.url | ccdPrintUrl\" target=\"_blank\" rel=\"external\">\n {{document.name}}\n </a></td>\n <td class=\"document-type\">{{document.type | rpxTranslate}}</td>\n </tr>\n </tbody>\n </table>\n</div>\n" }]
|
|
35118
35168
|
}], () => [{ type: CaseNotifier }, { type: CasesService }, { type: AlertService }], null); })();
|
|
35119
35169
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePrinterComponent, { className: "CasePrinterComponent", filePath: "lib/shared/components/case-viewer/printer/case-printer.component.ts", lineNumber: 14 }); })();
|
|
35120
35170
|
|
|
@@ -38412,7 +38462,7 @@ function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
38412
38462
|
} if (rf & 2) {
|
|
38413
38463
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38414
38464
|
i0.ɵɵadvance();
|
|
38415
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8,
|
|
38465
|
+
i0.ɵɵattribute("aria-label", ctx_r0.getTotalResults() + " " + i0.ɵɵpipeBind1(2, 8, "results have been found"));
|
|
38416
38466
|
i0.ɵɵadvance(3);
|
|
38417
38467
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
38418
38468
|
i0.ɵɵadvance(3);
|
|
@@ -38481,7 +38531,7 @@ function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
38481
38531
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38482
38532
|
i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
|
|
38483
38533
|
i0.ɵɵadvance(3);
|
|
38484
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
|
|
38534
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.isTranslatable(col_r5) ? i0.ɵɵpipeBind1(4, 3, col_r5.label) : col_r5.label, " ");
|
|
38485
38535
|
i0.ɵɵadvance(2);
|
|
38486
38536
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
38487
38537
|
} }
|
|
@@ -38855,6 +38905,9 @@ class SearchResultComponent {
|
|
|
38855
38905
|
this.selected.page = (changes['page']).currentValue;
|
|
38856
38906
|
}
|
|
38857
38907
|
}
|
|
38908
|
+
isTranslatable(col) {
|
|
38909
|
+
return FieldsUtils.isTranslatable(col.case_field_type);
|
|
38910
|
+
}
|
|
38858
38911
|
get resultTotal() {
|
|
38859
38912
|
const total = this.paginationMetadata.totalResultsCount;
|
|
38860
38913
|
const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
|
|
@@ -39130,7 +39183,7 @@ class SearchResultComponent {
|
|
|
39130
39183
|
}
|
|
39131
39184
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
39132
39185
|
type: Component,
|
|
39133
|
-
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\" scope=\"col\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{col.label | rpxTranslate}}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\" scope=\"col\">​</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
|
|
39186
|
+
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' ' + ('results have been found' | rpxTranslate)\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\" scope=\"col\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{ isTranslatable(col) ? (col.label | rpxTranslate) : col.label }}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\" scope=\"col\">​</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
|
|
39134
39187
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
39135
39188
|
type: Input
|
|
39136
39189
|
}], jurisdiction: [{
|