@hmcts/ccd-case-ui-toolkit 7.1.56 → 7.1.57
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/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 +253 -203
- 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/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
|
|
|
@@ -22823,21 +22880,20 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
22823
22880
|
|
|
22824
22881
|
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
22825
22882
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(t) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(t || ReadTextAreaFieldComponent); }; })();
|
|
22826
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
22883
|
+
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) {
|
|
22827
22884
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22828
22885
|
i0.ɵɵtext(1);
|
|
22829
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22830
22886
|
i0.ɵɵelementEnd();
|
|
22831
22887
|
} if (rf & 2) {
|
|
22832
22888
|
i0.ɵɵadvance();
|
|
22833
|
-
i0.ɵɵtextInterpolate(
|
|
22834
|
-
} },
|
|
22889
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
22890
|
+
} }, encapsulation: 2 });
|
|
22835
22891
|
}
|
|
22836
22892
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
|
|
22837
22893
|
type: Component,
|
|
22838
22894
|
args: [{
|
|
22839
22895
|
selector: 'ccd-read-text-area-field',
|
|
22840
|
-
template: `<span style="white-space: pre-wrap">{{caseField.value
|
|
22896
|
+
template: `<span style="white-space: pre-wrap">{{ caseField.value }}</span>`
|
|
22841
22897
|
}]
|
|
22842
22898
|
}], null, null); })();
|
|
22843
22899
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -22922,21 +22978,20 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
22922
22978
|
|
|
22923
22979
|
class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
22924
22980
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(t) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(t || ReadTextFieldComponent); }; })();
|
|
22925
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextFieldComponent, selectors: [["ccd-read-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
22981
|
+
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) {
|
|
22926
22982
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22927
22983
|
i0.ɵɵtext(1);
|
|
22928
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22929
22984
|
i0.ɵɵelementEnd();
|
|
22930
22985
|
} if (rf & 2) {
|
|
22931
22986
|
i0.ɵɵadvance();
|
|
22932
|
-
i0.ɵɵtextInterpolate(
|
|
22933
|
-
} },
|
|
22987
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
22988
|
+
} }, encapsulation: 2 });
|
|
22934
22989
|
}
|
|
22935
22990
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextFieldComponent, [{
|
|
22936
22991
|
type: Component,
|
|
22937
22992
|
args: [{
|
|
22938
22993
|
selector: 'ccd-read-text-field',
|
|
22939
|
-
template: `<span class="text-16">{{caseField.value
|
|
22994
|
+
template: `<span class="text-16">{{ caseField.value }}</span>`
|
|
22940
22995
|
}]
|
|
22941
22996
|
}], null, null); })();
|
|
22942
22997
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -23329,7 +23384,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23329
23384
|
withLabel = false;
|
|
23330
23385
|
formGroup = new FormGroup({});
|
|
23331
23386
|
caseFields = [];
|
|
23332
|
-
markdownUseHrefAsRouterLink;
|
|
23333
23387
|
fieldContainer;
|
|
23334
23388
|
constructor(resolver, paletteService) {
|
|
23335
23389
|
super();
|
|
@@ -23362,7 +23416,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23362
23416
|
component.instance['parent'] = this.parent;
|
|
23363
23417
|
component.instance['caseReference'] = this.caseReference;
|
|
23364
23418
|
component.instance['context'] = this.context;
|
|
23365
|
-
component.instance['markdownUseHrefAsRouterLink'] = this.markdownUseHrefAsRouterLink;
|
|
23366
23419
|
component.instance['labelCanBeTranslated'] = this.labelCanBeTranslated(this.caseField);
|
|
23367
23420
|
this.fieldContainer.insert(component.hostView);
|
|
23368
23421
|
});
|
|
@@ -23376,27 +23429,25 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23376
23429
|
} if (rf & 2) {
|
|
23377
23430
|
let _t;
|
|
23378
23431
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
23379
|
-
} }, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields"
|
|
23432
|
+
} }, 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) {
|
|
23380
23433
|
i0.ɵɵelementStart(0, "div", 1)(1, "ccd-field-read-label", 2);
|
|
23381
23434
|
i0.ɵɵelementContainer(2, null, 0);
|
|
23382
23435
|
i0.ɵɵelementEnd()();
|
|
23383
23436
|
} if (rf & 2) {
|
|
23384
23437
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
23385
23438
|
i0.ɵɵadvance();
|
|
23386
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel)
|
|
23439
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel);
|
|
23387
23440
|
} }, encapsulation: 2 });
|
|
23388
23441
|
}
|
|
23389
23442
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadComponent, [{
|
|
23390
23443
|
type: Component,
|
|
23391
|
-
args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\"
|
|
23444
|
+
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" }]
|
|
23392
23445
|
}], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { withLabel: [{
|
|
23393
23446
|
type: Input
|
|
23394
23447
|
}], formGroup: [{
|
|
23395
23448
|
type: Input
|
|
23396
23449
|
}], caseFields: [{
|
|
23397
23450
|
type: Input
|
|
23398
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23399
|
-
type: Input
|
|
23400
23451
|
}], fieldContainer: [{
|
|
23401
23452
|
type: ViewChild,
|
|
23402
23453
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
@@ -23500,7 +23551,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23500
23551
|
// EUI-3267. Flag for whether or not this can have a grey bar.
|
|
23501
23552
|
canHaveGreyBar = false;
|
|
23502
23553
|
withLabel;
|
|
23503
|
-
markdownUseHrefAsRouterLink;
|
|
23504
23554
|
isLabel() {
|
|
23505
23555
|
return this.caseField.field_type && this.caseField.field_type.type === 'Label';
|
|
23506
23556
|
}
|
|
@@ -23528,7 +23578,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23528
23578
|
}
|
|
23529
23579
|
}
|
|
23530
23580
|
static ɵfac = /*@__PURE__*/ (() => { let ɵFieldReadLabelComponent_BaseFactory; return function FieldReadLabelComponent_Factory(t) { return (ɵFieldReadLabelComponent_BaseFactory || (ɵFieldReadLabelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FieldReadLabelComponent)))(t || FieldReadLabelComponent); }; })();
|
|
23531
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel"
|
|
23581
|
+
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) {
|
|
23532
23582
|
i0.ɵɵprojectionDef();
|
|
23533
23583
|
i0.ɵɵelementStart(0, "div", 1);
|
|
23534
23584
|
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);
|
|
@@ -23546,8 +23596,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23546
23596
|
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"] }]
|
|
23547
23597
|
}], null, { withLabel: [{
|
|
23548
23598
|
type: Input
|
|
23549
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23550
|
-
type: Input
|
|
23551
23599
|
}] }); })();
|
|
23552
23600
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadLabelComponent, { className: "FieldReadLabelComponent", filePath: "lib/shared/components/palette/base-field/field-read-label.component.ts", lineNumber: 14 }); })();
|
|
23553
23601
|
|
|
@@ -24572,7 +24620,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
24572
24620
|
}] }); })();
|
|
24573
24621
|
(() => { (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 }); })();
|
|
24574
24622
|
|
|
24575
|
-
function
|
|
24623
|
+
function CaseFlagSummaryListComponent_dl_0_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
24576
24624
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
24577
24625
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24578
24626
|
i0.ɵɵtext(2);
|
|
@@ -24582,7 +24630,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24582
24630
|
i0.ɵɵtext(5);
|
|
24583
24631
|
i0.ɵɵelementEnd();
|
|
24584
24632
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24585
|
-
i0.ɵɵlistener("click", function
|
|
24633
|
+
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)); });
|
|
24586
24634
|
i0.ɵɵtext(8);
|
|
24587
24635
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24588
24636
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24600,7 +24648,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24600
24648
|
i0.ɵɵadvance(3);
|
|
24601
24649
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "other description (Welsh)"), "");
|
|
24602
24650
|
} }
|
|
24603
|
-
function
|
|
24651
|
+
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
24604
24652
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
24605
24653
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24606
24654
|
i0.ɵɵtext(2);
|
|
@@ -24610,7 +24658,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24610
24658
|
i0.ɵɵtext(5);
|
|
24611
24659
|
i0.ɵɵelementEnd();
|
|
24612
24660
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24613
|
-
i0.ɵɵlistener("click", function
|
|
24661
|
+
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)); });
|
|
24614
24662
|
i0.ɵɵtext(8);
|
|
24615
24663
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24616
24664
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24628,7 +24676,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24628
24676
|
i0.ɵɵadvance(3);
|
|
24629
24677
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments"), "");
|
|
24630
24678
|
} }
|
|
24631
|
-
function
|
|
24679
|
+
function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1) {
|
|
24632
24680
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
24633
24681
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24634
24682
|
i0.ɵɵtext(2);
|
|
@@ -24638,7 +24686,7 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24638
24686
|
i0.ɵɵtext(5);
|
|
24639
24687
|
i0.ɵɵelementEnd();
|
|
24640
24688
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24641
|
-
i0.ɵɵlistener("click", function
|
|
24689
|
+
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)); });
|
|
24642
24690
|
i0.ɵɵtext(8);
|
|
24643
24691
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24644
24692
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24656,10 +24704,10 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24656
24704
|
i0.ɵɵadvance(3);
|
|
24657
24705
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments (Welsh)"), "");
|
|
24658
24706
|
} }
|
|
24659
|
-
function
|
|
24707
|
+
function CaseFlagSummaryListComponent_dl_0_a_38_Template(rf, ctx) { if (rf & 1) {
|
|
24660
24708
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
24661
24709
|
i0.ɵɵelementStart(0, "a", 6);
|
|
24662
|
-
i0.ɵɵlistener("click", function
|
|
24710
|
+
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)); });
|
|
24663
24711
|
i0.ɵɵtext(1);
|
|
24664
24712
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24665
24713
|
i0.ɵɵelementStart(3, "span", 7);
|
|
@@ -24680,61 +24728,60 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24680
24728
|
i0.ɵɵelementEnd();
|
|
24681
24729
|
i0.ɵɵelementStart(5, "dd", 4);
|
|
24682
24730
|
i0.ɵɵtext(6);
|
|
24683
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
24684
24731
|
i0.ɵɵelementEnd();
|
|
24685
|
-
i0.ɵɵelementStart(
|
|
24686
|
-
i0.ɵɵlistener("click", function
|
|
24687
|
-
i0.ɵɵtext(
|
|
24688
|
-
i0.ɵɵpipe(
|
|
24689
|
-
i0.ɵɵelementStart(
|
|
24690
|
-
i0.ɵɵtext(
|
|
24691
|
-
i0.ɵɵpipe(
|
|
24732
|
+
i0.ɵɵelementStart(7, "dd", 5)(8, "a", 6);
|
|
24733
|
+
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)); });
|
|
24734
|
+
i0.ɵɵtext(9);
|
|
24735
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
24736
|
+
i0.ɵɵelementStart(11, "span", 7);
|
|
24737
|
+
i0.ɵɵtext(12);
|
|
24738
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
24692
24739
|
i0.ɵɵelementEnd()()()();
|
|
24693
|
-
i0.ɵɵelementStart(
|
|
24694
|
-
i0.ɵɵtext(
|
|
24695
|
-
i0.ɵɵpipe(
|
|
24740
|
+
i0.ɵɵelementStart(14, "div", 2)(15, "dt", 3);
|
|
24741
|
+
i0.ɵɵtext(16);
|
|
24742
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
24696
24743
|
i0.ɵɵelementEnd();
|
|
24697
|
-
i0.ɵɵelementStart(
|
|
24698
|
-
i0.ɵɵtext(
|
|
24744
|
+
i0.ɵɵelementStart(18, "dd", 4);
|
|
24745
|
+
i0.ɵɵtext(19);
|
|
24699
24746
|
i0.ɵɵelementEnd();
|
|
24700
|
-
i0.ɵɵelementStart(
|
|
24701
|
-
i0.ɵɵlistener("click", function
|
|
24702
|
-
i0.ɵɵtext(
|
|
24703
|
-
i0.ɵɵpipe(
|
|
24704
|
-
i0.ɵɵelementStart(
|
|
24705
|
-
i0.ɵɵtext(
|
|
24706
|
-
i0.ɵɵpipe(
|
|
24747
|
+
i0.ɵɵelementStart(20, "dd", 5)(21, "a", 6);
|
|
24748
|
+
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)); });
|
|
24749
|
+
i0.ɵɵtext(22);
|
|
24750
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
24751
|
+
i0.ɵɵelementStart(24, "span", 7);
|
|
24752
|
+
i0.ɵɵtext(25);
|
|
24753
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
24707
24754
|
i0.ɵɵelementEnd()()()();
|
|
24708
|
-
i0.ɵɵtemplate(
|
|
24709
|
-
i0.ɵɵelementStart(
|
|
24710
|
-
i0.ɵɵtext(
|
|
24711
|
-
i0.ɵɵpipe(
|
|
24755
|
+
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);
|
|
24756
|
+
i0.ɵɵelementStart(30, "div", 2)(31, "dt", 3);
|
|
24757
|
+
i0.ɵɵtext(32);
|
|
24758
|
+
i0.ɵɵpipe(33, "rpxTranslate");
|
|
24712
24759
|
i0.ɵɵelementEnd();
|
|
24713
|
-
i0.ɵɵelementStart(
|
|
24714
|
-
i0.ɵɵtext(
|
|
24715
|
-
i0.ɵɵpipe(
|
|
24760
|
+
i0.ɵɵelementStart(34, "dd", 4);
|
|
24761
|
+
i0.ɵɵtext(35);
|
|
24762
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
24716
24763
|
i0.ɵɵelementEnd();
|
|
24717
|
-
i0.ɵɵelementStart(
|
|
24718
|
-
i0.ɵɵtemplate(
|
|
24764
|
+
i0.ɵɵelementStart(37, "dd", 5);
|
|
24765
|
+
i0.ɵɵtemplate(38, CaseFlagSummaryListComponent_dl_0_a_38_Template, 6, 6, "a", 9);
|
|
24719
24766
|
i0.ɵɵelementEnd()()();
|
|
24720
24767
|
} if (rf & 2) {
|
|
24721
24768
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
24722
24769
|
i0.ɵɵadvance(3);
|
|
24723
24770
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 14, ctx_r1.addUpdateFlagHeaderText), " ");
|
|
24724
24771
|
i0.ɵɵadvance(3);
|
|
24725
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24726
|
-
i0.ɵɵadvance(
|
|
24727
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24772
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagForSummaryDisplay.partyName || ctx_r1.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION, " ");
|
|
24773
|
+
i0.ɵɵadvance(3);
|
|
24774
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, "Change"), "");
|
|
24728
24775
|
i0.ɵɵadvance(3);
|
|
24729
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24776
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 18, "party name"), "");
|
|
24730
24777
|
i0.ɵɵadvance(4);
|
|
24731
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24778
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 20, ctx_r1.flagTypeHeaderText), " ");
|
|
24732
24779
|
i0.ɵɵadvance(3);
|
|
24733
24780
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagDescription, " ");
|
|
24734
24781
|
i0.ɵɵadvance(3);
|
|
24735
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24782
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, "Change"), "");
|
|
24736
24783
|
i0.ɵɵadvance(3);
|
|
24737
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24784
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 24, "flag type"), "");
|
|
24738
24785
|
i0.ɵɵadvance(2);
|
|
24739
24786
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagDescriptionWelsh == null ? null : ctx_r1.flagDescriptionWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24740
24787
|
i0.ɵɵadvance();
|
|
@@ -24742,9 +24789,9 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24742
24789
|
i0.ɵɵadvance();
|
|
24743
24790
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagCommentsWelsh == null ? null : ctx_r1.flagCommentsWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24744
24791
|
i0.ɵɵadvance(3);
|
|
24745
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24792
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(33, 26, "Status"), " ");
|
|
24746
24793
|
i0.ɵɵadvance(3);
|
|
24747
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24794
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(36, 28, ctx_r1.flagStatus), " ");
|
|
24748
24795
|
i0.ɵɵadvance(3);
|
|
24749
24796
|
i0.ɵɵproperty("ngIf", ctx_r1.is2Point1Enabled);
|
|
24750
24797
|
} }
|
|
@@ -24850,14 +24897,14 @@ class CaseFlagSummaryListComponent {
|
|
|
24850
24897
|
}
|
|
24851
24898
|
static ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
24852
24899
|
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) {
|
|
24853
|
-
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template,
|
|
24900
|
+
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 39, 30, "dl", 0);
|
|
24854
24901
|
} if (rf & 2) {
|
|
24855
24902
|
i0.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
|
|
24856
24903
|
} }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24857
24904
|
}
|
|
24858
24905
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagSummaryListComponent, [{
|
|
24859
24906
|
type: Component,
|
|
24860
|
-
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
|
|
24907
|
+
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" }]
|
|
24861
24908
|
}], () => [{ type: i1.RpxTranslationService }], { flagForSummaryDisplay: [{
|
|
24862
24909
|
type: Input
|
|
24863
24910
|
}], displayContextParameter: [{
|
|
@@ -27633,7 +27680,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
27633
27680
|
i0.ɵɵadvance();
|
|
27634
27681
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
27635
27682
|
i0.ɵɵadvance(2);
|
|
27636
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 8, field_r1.label));
|
|
27683
|
+
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4, 8, field_r1.label) : field_r1.label);
|
|
27637
27684
|
i0.ɵɵadvance(2);
|
|
27638
27685
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
27639
27686
|
i0.ɵɵadvance();
|
|
@@ -27658,7 +27705,7 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
27658
27705
|
}
|
|
27659
27706
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
27660
27707
|
type: Component,
|
|
27661
|
-
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"] }]
|
|
27708
|
+
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"] }]
|
|
27662
27709
|
}], null, { caseFields: [{
|
|
27663
27710
|
type: Input
|
|
27664
27711
|
}] }); })();
|
|
@@ -28096,7 +28143,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28096
28143
|
return result;
|
|
28097
28144
|
}
|
|
28098
28145
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldCollectionTableComponent_BaseFactory; return function ReadComplexFieldCollectionTableComponent_Factory(t) { return (ɵReadComplexFieldCollectionTableComponent_BaseFactory || (ɵReadComplexFieldCollectionTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldCollectionTableComponent)))(t || ReadComplexFieldCollectionTableComponent); }; })();
|
|
28099
|
-
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", "
|
|
28146
|
+
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) {
|
|
28100
28147
|
i0.ɵɵelementStart(0, "div", 2)(1, "dl", 3)(2, "dt")(3, "span", 4);
|
|
28101
28148
|
i0.ɵɵtext(4);
|
|
28102
28149
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -28121,7 +28168,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28121
28168
|
}
|
|
28122
28169
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldCollectionTableComponent, [{
|
|
28123
28170
|
type: Component,
|
|
28124
|
-
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=\"
|
|
28171
|
+
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"] }]
|
|
28125
28172
|
}], null, null); })();
|
|
28126
28173
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldCollectionTableComponent, { className: "ReadComplexFieldCollectionTableComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-collection-table.component.ts", lineNumber: 12 }); })();
|
|
28127
28174
|
|
|
@@ -33022,7 +33069,7 @@ function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_4_Template
|
|
|
33022
33069
|
i0.ɵɵproperty("caseField", field_r1)("caseReference", ctx_r1.caseHistory.case_id);
|
|
33023
33070
|
} }
|
|
33024
33071
|
function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
33025
|
-
i0.ɵɵelementStart(0, "tr", 17)(1, "
|
|
33072
|
+
i0.ɵɵelementStart(0, "tr", 17)(1, "th", 18);
|
|
33026
33073
|
i0.ɵɵelement(2, "ccd-field-read", 16);
|
|
33027
33074
|
i0.ɵɵelementEnd()();
|
|
33028
33075
|
} if (rf & 2) {
|
|
@@ -33236,7 +33283,7 @@ class CaseHistoryComponent {
|
|
|
33236
33283
|
}
|
|
33237
33284
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseHistoryComponent, [{
|
|
33238
33285
|
type: Component,
|
|
33239
|
-
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 <
|
|
33286
|
+
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"] }]
|
|
33240
33287
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: AlertService }, { type: OrderService }, { type: CaseNotifier }, { type: CaseHistoryService }], { event: [{
|
|
33241
33288
|
type: Input
|
|
33242
33289
|
}] }); })();
|
|
@@ -33580,9 +33627,13 @@ class EventTriggerResolver {
|
|
|
33580
33627
|
this.loadingService = loadingService;
|
|
33581
33628
|
}
|
|
33582
33629
|
resolve(route) {
|
|
33583
|
-
|
|
33584
|
-
|
|
33585
|
-
|
|
33630
|
+
if (this.isRootTriggerEventRoute(route)) {
|
|
33631
|
+
return this.getAndCacheEventTrigger(route);
|
|
33632
|
+
}
|
|
33633
|
+
if (this.cachedEventTrigger && (route.params?.eid === this.cachedEventTrigger?.id)) {
|
|
33634
|
+
return Promise.resolve(this.cachedEventTrigger);
|
|
33635
|
+
}
|
|
33636
|
+
return this.getAndCacheEventTrigger(route);
|
|
33586
33637
|
}
|
|
33587
33638
|
isRootTriggerEventRoute(route) {
|
|
33588
33639
|
// if route is 'trigger/:eid'
|
|
@@ -33970,15 +34021,14 @@ function CaseBasicAccessViewComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
33970
34021
|
i0.ɵɵelementEnd();
|
|
33971
34022
|
i0.ɵɵelementStart(4, "dd", 12);
|
|
33972
34023
|
i0.ɵɵtext(5);
|
|
33973
|
-
i0.ɵɵpipe(6, "
|
|
33974
|
-
i0.ɵɵpipe(7, "titlecase");
|
|
34024
|
+
i0.ɵɵpipe(6, "titlecase");
|
|
33975
34025
|
i0.ɵɵelementEnd()();
|
|
33976
34026
|
} if (rf & 2) {
|
|
33977
34027
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33978
34028
|
i0.ɵɵadvance(2);
|
|
33979
34029
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Court or hearing centre"));
|
|
33980
34030
|
i0.ɵɵadvance(3);
|
|
33981
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
34031
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.courtOrHearingCentre));
|
|
33982
34032
|
} }
|
|
33983
34033
|
function CaseBasicAccessViewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
33984
34034
|
i0.ɵɵelementStart(0, "div", 10)(1, "dt", 11);
|
|
@@ -34053,7 +34103,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34053
34103
|
i0.ɵɵpipe(13, "rpxTranslate");
|
|
34054
34104
|
i0.ɵɵelementEnd();
|
|
34055
34105
|
i0.ɵɵelementStart(14, "dl", 4);
|
|
34056
|
-
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,
|
|
34106
|
+
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);
|
|
34057
34107
|
i0.ɵɵelementEnd()();
|
|
34058
34108
|
i0.ɵɵelementStart(20, "div", 6)(21, "button", 7);
|
|
34059
34109
|
i0.ɵɵtext(22);
|
|
@@ -34098,7 +34148,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34098
34148
|
}
|
|
34099
34149
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseBasicAccessViewComponent, [{
|
|
34100
34150
|
type: Component,
|
|
34101
|
-
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 |
|
|
34151
|
+
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" }]
|
|
34102
34152
|
}], () => [{ type: CasesService }, { type: i1$1.Router }], { caseDetails: [{
|
|
34103
34153
|
type: Input
|
|
34104
34154
|
}], accessType: [{
|
|
@@ -34335,7 +34385,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34335
34385
|
i0.ɵɵadvance();
|
|
34336
34386
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34337
34387
|
i0.ɵɵadvance(2);
|
|
34338
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)
|
|
34388
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34339
34389
|
} }
|
|
34340
34390
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
34341
34391
|
i0.ɵɵelementStart(0, "tr", 40)(1, "th", 35)(2, "span", 36);
|
|
@@ -34347,14 +34397,14 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34347
34397
|
i0.ɵɵadvance();
|
|
34348
34398
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34349
34399
|
i0.ɵɵadvance(2);
|
|
34350
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)
|
|
34400
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34351
34401
|
} }
|
|
34352
34402
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
34353
34403
|
i0.ɵɵelementContainerStart(0);
|
|
34354
34404
|
i0.ɵɵelementStart(1, "div", 30);
|
|
34355
34405
|
i0.ɵɵelementContainerStart(2, 31);
|
|
34356
34406
|
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
34357
|
-
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_Template, 5,
|
|
34407
|
+
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);
|
|
34358
34408
|
i0.ɵɵelementContainerEnd();
|
|
34359
34409
|
i0.ɵɵelementEnd();
|
|
34360
34410
|
i0.ɵɵelementContainerEnd();
|
|
@@ -34472,7 +34522,6 @@ class CaseFullAccessViewComponent {
|
|
|
34472
34522
|
caseSubscription;
|
|
34473
34523
|
errorSubscription;
|
|
34474
34524
|
dialogConfig;
|
|
34475
|
-
markdownUseHrefAsRouterLink;
|
|
34476
34525
|
message;
|
|
34477
34526
|
subscription;
|
|
34478
34527
|
notificationBannerConfig;
|
|
@@ -34516,7 +34565,6 @@ class CaseFullAccessViewComponent {
|
|
|
34516
34565
|
}));
|
|
34517
34566
|
initDialog();
|
|
34518
34567
|
this.init();
|
|
34519
|
-
this.markdownUseHrefAsRouterLink = true;
|
|
34520
34568
|
this.sessionStorageService?.removeItem('eventUrl');
|
|
34521
34569
|
this.subscription = this.convertHrefToRouterService?.getHrefMarkdownLinkContent().subscribe((hrefMarkdownLinkContent) => {
|
|
34522
34570
|
// do not convert router with initial default value; convert to router only on updated link content
|
|
@@ -34851,7 +34899,7 @@ class CaseFullAccessViewComponent {
|
|
|
34851
34899
|
} if (rf & 2) {
|
|
34852
34900
|
let _t;
|
|
34853
34901
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
34854
|
-
} }, 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"
|
|
34902
|
+
} }, 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) {
|
|
34855
34903
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
|
|
34856
34904
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
|
|
34857
34905
|
i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
@@ -34889,7 +34937,7 @@ class CaseFullAccessViewComponent {
|
|
|
34889
34937
|
}
|
|
34890
34938
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
34891
34939
|
type: Component,
|
|
34892
|
-
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\"
|
|
34940
|
+
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"] }]
|
|
34893
34941
|
}], () => [{ 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: [{
|
|
34894
34942
|
type: Input
|
|
34895
34943
|
}], hasEventSelector: [{
|
|
@@ -34967,20 +35015,19 @@ function CasePrinterComponent_div_0_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
34967
35015
|
i0.ɵɵelementStart(0, "tr")(1, "td", 4)(2, "a", 5);
|
|
34968
35016
|
i0.ɵɵpipe(3, "ccdPrintUrl");
|
|
34969
35017
|
i0.ɵɵtext(4);
|
|
34970
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
34971
35018
|
i0.ɵɵelementEnd()();
|
|
34972
|
-
i0.ɵɵelementStart(
|
|
34973
|
-
i0.ɵɵtext(
|
|
34974
|
-
i0.ɵɵpipe(
|
|
35019
|
+
i0.ɵɵelementStart(5, "td", 6);
|
|
35020
|
+
i0.ɵɵtext(6);
|
|
35021
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
34975
35022
|
i0.ɵɵelementEnd()();
|
|
34976
35023
|
} if (rf & 2) {
|
|
34977
35024
|
const document_r1 = ctx.$implicit;
|
|
34978
35025
|
i0.ɵɵadvance(2);
|
|
34979
35026
|
i0.ɵɵproperty("href", i0.ɵɵpipeBind1(3, 3, document_r1.url), i0.ɵɵsanitizeUrl);
|
|
34980
35027
|
i0.ɵɵadvance(2);
|
|
34981
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
34982
|
-
i0.ɵɵadvance(
|
|
34983
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
35028
|
+
i0.ɵɵtextInterpolate1(" ", document_r1.name, " ");
|
|
35029
|
+
i0.ɵɵadvance(2);
|
|
35030
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 5, document_r1.type));
|
|
34984
35031
|
} }
|
|
34985
35032
|
function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
34986
35033
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -35000,7 +35047,7 @@ function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
35000
35047
|
i0.ɵɵpipe(14, "rpxTranslate");
|
|
35001
35048
|
i0.ɵɵelementEnd()()();
|
|
35002
35049
|
i0.ɵɵelementStart(15, "tbody");
|
|
35003
|
-
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template,
|
|
35050
|
+
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template, 8, 7, "tr", 3);
|
|
35004
35051
|
i0.ɵɵelementEnd()()();
|
|
35005
35052
|
} if (rf & 2) {
|
|
35006
35053
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -35065,7 +35112,7 @@ class CasePrinterComponent {
|
|
|
35065
35112
|
}
|
|
35066
35113
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePrinterComponent, [{
|
|
35067
35114
|
type: Component,
|
|
35068
|
-
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
|
|
35115
|
+
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" }]
|
|
35069
35116
|
}], () => [{ type: CaseNotifier }, { type: CasesService }, { type: AlertService }], null); })();
|
|
35070
35117
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePrinterComponent, { className: "CasePrinterComponent", filePath: "lib/shared/components/case-viewer/printer/case-printer.component.ts", lineNumber: 14 }); })();
|
|
35071
35118
|
|
|
@@ -38363,7 +38410,7 @@ function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
38363
38410
|
} if (rf & 2) {
|
|
38364
38411
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38365
38412
|
i0.ɵɵadvance();
|
|
38366
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8,
|
|
38413
|
+
i0.ɵɵattribute("aria-label", ctx_r0.getTotalResults() + " " + i0.ɵɵpipeBind1(2, 8, "results have been found"));
|
|
38367
38414
|
i0.ɵɵadvance(3);
|
|
38368
38415
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
38369
38416
|
i0.ɵɵadvance(3);
|
|
@@ -38432,7 +38479,7 @@ function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
38432
38479
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38433
38480
|
i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
|
|
38434
38481
|
i0.ɵɵadvance(3);
|
|
38435
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
|
|
38482
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.isTranslatable(col_r5) ? i0.ɵɵpipeBind1(4, 3, col_r5.label) : col_r5.label, " ");
|
|
38436
38483
|
i0.ɵɵadvance(2);
|
|
38437
38484
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
38438
38485
|
} }
|
|
@@ -38806,6 +38853,9 @@ class SearchResultComponent {
|
|
|
38806
38853
|
this.selected.page = (changes['page']).currentValue;
|
|
38807
38854
|
}
|
|
38808
38855
|
}
|
|
38856
|
+
isTranslatable(col) {
|
|
38857
|
+
return FieldsUtils.isTranslatable(col.case_field_type);
|
|
38858
|
+
}
|
|
38809
38859
|
get resultTotal() {
|
|
38810
38860
|
const total = this.paginationMetadata.totalResultsCount;
|
|
38811
38861
|
const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
|
|
@@ -39081,7 +39131,7 @@ class SearchResultComponent {
|
|
|
39081
39131
|
}
|
|
39082
39132
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
39083
39133
|
type: Component,
|
|
39084
|
-
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"] }]
|
|
39134
|
+
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"] }]
|
|
39085
39135
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
39086
39136
|
type: Input
|
|
39087
39137
|
}], jurisdiction: [{
|