@hmcts/ccd-case-ui-toolkit 7.1.60-subject-message-length → 7.1.60
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-list/case-list.component.mjs +56 -51
- 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/case.resolver.mjs +8 -1
- 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/pagination/pagination.component.mjs +14 -14
- 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-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +6 -6
- package/esm2022/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.mjs +17 -10
- 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 +9 -7
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-raw.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/complex/write-complex-field.component.mjs +26 -16
- package/esm2022/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/label/label-field.component.mjs +16 -11
- package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/markdown/markdown.component.mjs +36 -26
- package/esm2022/lib/shared/components/palette/palette.module.mjs +2 -2
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +72 -12
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +42 -57
- package/esm2022/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.mjs +1 -2
- package/esm2022/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +4 -3
- 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 +13 -8
- 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 +506 -378
- 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/case.resolver.d.ts +1 -0
- package/lib/shared/components/case-viewer/services/case.resolver.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/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +1 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/read-complex-field-raw.component.d.ts.map +1 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts +1 -2
- package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/markdown/markdown.component.d.ts +5 -5
- package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +9 -0
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +0 -2
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.d.ts +0 -1
- package/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +1 -0
- package/lib/shared/components/palette/query-management/utils/query-management.utils.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: [{
|
|
@@ -12073,34 +12115,46 @@ class FieldsFilterPipe {
|
|
|
12073
12115
|
}]
|
|
12074
12116
|
}], null, null); })();
|
|
12075
12117
|
|
|
12076
|
-
function
|
|
12077
|
-
i0.ɵɵ
|
|
12078
|
-
i0.ɵɵ
|
|
12118
|
+
function WriteComplexFieldComponent_legend_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
12119
|
+
i0.ɵɵelementContainerStart(0);
|
|
12120
|
+
i0.ɵɵelementStart(1, "h2", 3);
|
|
12121
|
+
i0.ɵɵtext(2);
|
|
12122
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
12123
|
+
i0.ɵɵelementEnd();
|
|
12124
|
+
i0.ɵɵelementContainerEnd();
|
|
12125
|
+
} if (rf & 2) {
|
|
12126
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
12127
|
+
i0.ɵɵadvance(2);
|
|
12128
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx_r0.caseField));
|
|
12129
|
+
} }
|
|
12130
|
+
function WriteComplexFieldComponent_legend_2_Template(rf, ctx) { if (rf & 1) {
|
|
12131
|
+
i0.ɵɵelementStart(0, "legend");
|
|
12132
|
+
i0.ɵɵtemplate(1, WriteComplexFieldComponent_legend_2_ng_container_1_Template, 4, 3, "ng-container", 1);
|
|
12079
12133
|
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
12080
12134
|
i0.ɵɵelementEnd();
|
|
12081
12135
|
} if (rf & 2) {
|
|
12082
12136
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
12083
12137
|
i0.ɵɵadvance();
|
|
12084
|
-
i0.ɵɵ
|
|
12138
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
12085
12139
|
} }
|
|
12086
|
-
function
|
|
12140
|
+
function WriteComplexFieldComponent_ng_container_3_ccd_field_read_2_Template(rf, ctx) { if (rf & 1) {
|
|
12087
12141
|
i0.ɵɵelement(0, "ccd-field-read", 7);
|
|
12088
12142
|
} if (rf & 2) {
|
|
12089
12143
|
const field_r2 = i0.ɵɵnextContext().$implicit;
|
|
12090
12144
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
12091
12145
|
i0.ɵɵproperty("caseField", ctx_r0.buildField(field_r2))("caseFields", ctx_r0.caseFields)("formGroup", ctx_r0.formGroup)("withLabel", true);
|
|
12092
12146
|
} }
|
|
12093
|
-
function
|
|
12147
|
+
function WriteComplexFieldComponent_ng_container_3_ccd_field_write_3_Template(rf, ctx) { if (rf & 1) {
|
|
12094
12148
|
i0.ɵɵelement(0, "ccd-field-write", 8);
|
|
12095
12149
|
} if (rf & 2) {
|
|
12096
12150
|
const field_r2 = i0.ɵɵnextContext().$implicit;
|
|
12097
12151
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
12098
12152
|
i0.ɵɵproperty("caseField", field_r2)("caseFields", ctx_r0.caseFields)("formGroup", ctx_r0.formGroup)("parent", ctx_r0.complexGroup)("idPrefix", ctx_r0.buildIdPrefix(field_r2))("hidden", field_r2.hidden)("isExpanded", ctx_r0.isExpanded)("isInSearchBlock", ctx_r0.isInSearchBlock);
|
|
12099
12153
|
} }
|
|
12100
|
-
function
|
|
12154
|
+
function WriteComplexFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12101
12155
|
i0.ɵɵelementContainerStart(0, 4);
|
|
12102
12156
|
i0.ɵɵpipe(1, "ccdIsReadOnly");
|
|
12103
|
-
i0.ɵɵtemplate(2,
|
|
12157
|
+
i0.ɵɵtemplate(2, WriteComplexFieldComponent_ng_container_3_ccd_field_read_2_Template, 1, 4, "ccd-field-read", 5)(3, WriteComplexFieldComponent_ng_container_3_ccd_field_write_3_Template, 1, 8, "ccd-field-write", 6);
|
|
12104
12158
|
i0.ɵɵelementContainerEnd();
|
|
12105
12159
|
} if (rf & 2) {
|
|
12106
12160
|
const field_r2 = ctx.$implicit;
|
|
@@ -12207,15 +12261,13 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12207
12261
|
});
|
|
12208
12262
|
}
|
|
12209
12263
|
static ɵfac = function WriteComplexFieldComponent_Factory(t) { return new (t || WriteComplexFieldComponent)(i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService)); };
|
|
12210
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteComplexFieldComponent, selectors: [["ccd-write-complex-type-field"]], inputs: { caseFields: "caseFields", renderLabel: "renderLabel", ignoreMandatory: "ignoreMandatory" }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
12211
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")
|
|
12212
|
-
i0.ɵɵtemplate(
|
|
12213
|
-
i0.ɵɵelementEnd();
|
|
12214
|
-
i0.ɵɵtemplate(4, WriteComplexFieldComponent_ng_container_4_Template, 4, 5, "ng-container", 2);
|
|
12264
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteComplexFieldComponent, selectors: [["ccd-write-complex-type-field"]], inputs: { caseFields: "caseFields", renderLabel: "renderLabel", ignoreMandatory: "ignoreMandatory" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 3, consts: [[1, "form-group", 3, "id"], [4, "ngIf"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [1, "heading-h2"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"]], template: function WriteComplexFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12265
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset");
|
|
12266
|
+
i0.ɵɵtemplate(2, WriteComplexFieldComponent_legend_2_Template, 3, 3, "legend", 1)(3, WriteComplexFieldComponent_ng_container_3_Template, 4, 5, "ng-container", 2);
|
|
12215
12267
|
i0.ɵɵelementEnd()();
|
|
12216
12268
|
} if (rf & 2) {
|
|
12217
12269
|
i0.ɵɵproperty("id", ctx.id());
|
|
12218
|
-
i0.ɵɵadvance(
|
|
12270
|
+
i0.ɵɵadvance(2);
|
|
12219
12271
|
i0.ɵɵproperty("ngIf", ctx.renderLabel);
|
|
12220
12272
|
i0.ɵɵadvance();
|
|
12221
12273
|
i0.ɵɵproperty("ngForOf", ctx.complexFields);
|
|
@@ -12223,7 +12275,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12223
12275
|
}
|
|
12224
12276
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteComplexFieldComponent, [{
|
|
12225
12277
|
type: Component,
|
|
12226
|
-
args: [{ selector: 'ccd-write-complex-type-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <fieldset>\n <legend
|
|
12278
|
+
args: [{ selector: 'ccd-write-complex-type-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <fieldset>\n <legend *ngIf=\"renderLabel\">\n <ng-container *ngIf=\"caseField | ccdFieldLabel\">\n <h2 class=\"heading-h2\">{{(caseField | ccdFieldLabel)}}</h2>\n </ng-container>\n </legend>\n <ng-container [ngSwitch]=\"field | ccdIsReadOnly\" *ngFor=\"let field of complexFields\">\n <ccd-field-read *ngSwitchCase=\"true\"\n ccdLabelSubstitutor\n [caseField]=\"buildField(field)\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [withLabel]=\"true\">\n </ccd-field-read>\n <ccd-field-write *ngSwitchCase=\"false\"\n ccdLabelSubstitutor\n [caseField]=\"field\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"complexGroup\"\n [idPrefix]=\"buildIdPrefix(field)\"\n [hidden]=\"field.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </ng-container>\n </fieldset>\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,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
|
|
12227
12279
|
}], () => [{ type: IsCompoundPipe }, { type: FormValidatorsService }], { caseFields: [{
|
|
12228
12280
|
type: Input
|
|
12229
12281
|
}], renderLabel: [{
|
|
@@ -15478,7 +15530,7 @@ function WriteDynamicListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
15478
15530
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r0.dynamicListFormControl.errors, ctx_r0.caseField.label));
|
|
15479
15531
|
} }
|
|
15480
15532
|
function WriteDynamicListFieldComponent_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
15481
|
-
i0.ɵɵelementStart(0, "option",
|
|
15533
|
+
i0.ɵɵelementStart(0, "option", 6);
|
|
15482
15534
|
i0.ɵɵtext(1);
|
|
15483
15535
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
15484
15536
|
i0.ɵɵelementEnd();
|
|
@@ -15513,7 +15565,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15513
15565
|
this.dynamicListFormControl.setValue(this.caseField.value);
|
|
15514
15566
|
}
|
|
15515
15567
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDynamicListFieldComponent_BaseFactory; return function WriteDynamicListFieldComponent_Factory(t) { return (ɵWriteDynamicListFieldComponent_BaseFactory || (ɵWriteDynamicListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent)))(t || WriteDynamicListFieldComponent); }; })();
|
|
15516
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicListFieldComponent, selectors: [["ccd-write-dynamic-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 15, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], [
|
|
15568
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicListFieldComponent, selectors: [["ccd-write-dynamic-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 15, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteDynamicListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15517
15569
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
15518
15570
|
i0.ɵɵtemplate(2, WriteDynamicListFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
15519
15571
|
i0.ɵɵelementEnd();
|
|
@@ -15548,19 +15600,20 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15548
15600
|
}
|
|
15549
15601
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
|
|
15550
15602
|
type: Component,
|
|
15551
|
-
args: [{ selector: 'ccd-write-dynamic-list-field', template: "<div class=\"form-group\"\n [ngClass]=\"{'form-group-error': !dynamicListFormControl.valid && (dynamicListFormControl.dirty || dynamicListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"form-label\" *ngIf=\"!caseField.label && !caseField.hint_text\">{{'Select an option from the dropdown' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dynamicListFormControl.errors && dynamicListFormControl.dirty\">{{(dynamicListFormControl.errors |\n ccdFirstError:caseField.label)}}</span>\n\n <select class=\"form-control ccd-dropdown bottom-30\" [id]=\"id()\"\n [formControl]=\"dynamicListFormControl\">\n <option [ngValue]=null>{{'--Select a value--' | rpxTranslate}}</option>\n <option [ngValue]=\"type.code\" *ngFor=\"let type of caseField.list_items\"
|
|
15603
|
+
args: [{ selector: 'ccd-write-dynamic-list-field', template: "<div class=\"form-group\"\n [ngClass]=\"{'form-group-error': !dynamicListFormControl.valid && (dynamicListFormControl.dirty || dynamicListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"form-label\" *ngIf=\"!caseField.label && !caseField.hint_text\">{{'Select an option from the dropdown' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dynamicListFormControl.errors && dynamicListFormControl.dirty\">{{(dynamicListFormControl.errors |\n ccdFirstError:caseField.label)}}</span>\n\n <select class=\"form-control ccd-dropdown bottom-30\" [id]=\"id()\"\n [formControl]=\"dynamicListFormControl\">\n <option [ngValue]=null>{{'--Select a value--' | rpxTranslate}}</option>\n <option [ngValue]=\"type.code\" *ngFor=\"let type of caseField.list_items\">{{type.label | rpxTranslate}}</option>\n </select>\n</div>\n" }]
|
|
15552
15604
|
}], null, null); })();
|
|
15553
15605
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicListFieldComponent, { className: "WriteDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.ts", lineNumber: 9 }); })();
|
|
15554
15606
|
|
|
15555
15607
|
class MarkdownComponent {
|
|
15556
15608
|
router;
|
|
15557
15609
|
renderer;
|
|
15610
|
+
ngZone;
|
|
15558
15611
|
content;
|
|
15559
|
-
markdownUseHrefAsRouterLink;
|
|
15560
15612
|
renderUrlToTextFeature = true;
|
|
15561
|
-
constructor(router, renderer) {
|
|
15613
|
+
constructor(router, renderer, ngZone) {
|
|
15562
15614
|
this.router = router;
|
|
15563
15615
|
this.renderer = renderer;
|
|
15616
|
+
this.ngZone = ngZone;
|
|
15564
15617
|
}
|
|
15565
15618
|
ngOnInit() {
|
|
15566
15619
|
this.content = this.content.replace(/ \n/g, '<br>');
|
|
@@ -15568,12 +15621,28 @@ class MarkdownComponent {
|
|
|
15568
15621
|
this.renderUrlToText();
|
|
15569
15622
|
}
|
|
15570
15623
|
}
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15624
|
+
interceptClick(event) {
|
|
15625
|
+
this.ngZone.runOutsideAngular(() => {
|
|
15626
|
+
const target = event.target;
|
|
15627
|
+
if (target.tagName.toLowerCase() === 'a') {
|
|
15628
|
+
const href = target.getAttribute('href');
|
|
15629
|
+
if (href && href.startsWith('/') && !href.startsWith('//')) {
|
|
15630
|
+
const currentUrl = window.location.href;
|
|
15631
|
+
if (currentUrl.includes('trigger')) {
|
|
15632
|
+
// if we are already in an event and there is a markdown we should reload the page as without the components will not reinitialise
|
|
15633
|
+
this.ngZone.run(() => {
|
|
15634
|
+
this.router.navigateByUrl(href);
|
|
15635
|
+
});
|
|
15636
|
+
}
|
|
15637
|
+
else {
|
|
15638
|
+
event.preventDefault();
|
|
15639
|
+
this.ngZone.run(() => {
|
|
15640
|
+
this.router.navigateByUrl(href);
|
|
15641
|
+
});
|
|
15642
|
+
}
|
|
15643
|
+
}
|
|
15644
|
+
}
|
|
15645
|
+
});
|
|
15577
15646
|
}
|
|
15578
15647
|
renderUrlToText() {
|
|
15579
15648
|
const renderer = new marked.Renderer();
|
|
@@ -15596,34 +15665,27 @@ class MarkdownComponent {
|
|
|
15596
15665
|
const markdownLinkRegex = /\[([^\]]+)\]\(?([^ )]+)\)/g;
|
|
15597
15666
|
return markdownLinkRegex.test(inputString);
|
|
15598
15667
|
}
|
|
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);
|
|
15668
|
+
static ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.NgZone)); };
|
|
15669
|
+
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) {
|
|
15670
|
+
i0.ɵɵelementStart(0, "div")(1, "markdown", 0);
|
|
15605
15671
|
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
15606
15672
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
15607
|
-
i0.ɵɵ
|
|
15673
|
+
i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
|
|
15674
|
+
i0.ɵɵelementEnd()();
|
|
15608
15675
|
} if (rf & 2) {
|
|
15609
15676
|
i0.ɵɵadvance();
|
|
15610
15677
|
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(3, 3, i0.ɵɵpipeBind1(2, 1, ctx.content)));
|
|
15611
|
-
} }, dependencies: [i2$1.MarkdownComponent, i1.RpxTranslatePipe, CaseReferencePipe], encapsulation: 2 });
|
|
15678
|
+
} }, dependencies: [i2$1.MarkdownComponent, i1.RpxTranslatePipe, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
15612
15679
|
}
|
|
15613
15680
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
15614
15681
|
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: [{
|
|
15682
|
+
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference | rpxTranslate\"></markdown></div>\n" }]
|
|
15683
|
+
}], () => [{ type: i1$1.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }], { content: [{
|
|
15619
15684
|
type: Input
|
|
15620
15685
|
}], renderUrlToTextFeature: [{
|
|
15621
15686
|
type: Input
|
|
15622
|
-
}], onMarkdownClick: [{
|
|
15623
|
-
type: HostListener,
|
|
15624
|
-
args: ['click', ['$event']]
|
|
15625
15687
|
}] }); })();
|
|
15626
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber:
|
|
15688
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 10 }); })();
|
|
15627
15689
|
|
|
15628
15690
|
class FixedListPipe {
|
|
15629
15691
|
static EMPTY = '';
|
|
@@ -16639,45 +16701,50 @@ function LabelFieldComponent_ccd_markdown_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
16639
16701
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
16640
16702
|
} if (rf & 2) {
|
|
16641
16703
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16642
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(1,
|
|
16704
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(1, 1, ctx_r0.caseField.label));
|
|
16643
16705
|
} }
|
|
16644
16706
|
function LabelFieldComponent_ccd_markdown_3_Template(rf, ctx) { if (rf & 1) {
|
|
16645
16707
|
i0.ɵɵelement(0, "ccd-markdown", 2);
|
|
16646
16708
|
} if (rf & 2) {
|
|
16647
16709
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16648
|
-
i0.ɵɵproperty("content", ctx_r0.caseField.
|
|
16710
|
+
i0.ɵɵproperty("content", ctx_r0.caseField.label);
|
|
16711
|
+
} }
|
|
16712
|
+
function LabelFieldComponent_ccd_markdown_4_Template(rf, ctx) { if (rf & 1) {
|
|
16713
|
+
i0.ɵɵelement(0, "ccd-markdown", 2);
|
|
16714
|
+
} if (rf & 2) {
|
|
16715
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16716
|
+
i0.ɵɵproperty("content", ctx_r0.caseField.value || ctx_r0.caseField.label);
|
|
16649
16717
|
} }
|
|
16650
16718
|
class LabelFieldComponent {
|
|
16651
16719
|
caseField;
|
|
16652
16720
|
caseFields = [];
|
|
16653
16721
|
labelCanBeTranslated = false;
|
|
16654
|
-
markdownUseHrefAsRouterLink;
|
|
16655
16722
|
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"
|
|
16723
|
+
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
16724
|
i0.ɵɵelementStart(0, "dl", 0)(1, "dt");
|
|
16658
|
-
i0.ɵɵtemplate(2, LabelFieldComponent_ccd_markdown_2_Template, 2,
|
|
16725
|
+
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
16726
|
i0.ɵɵelementEnd();
|
|
16660
|
-
i0.ɵɵelement(
|
|
16727
|
+
i0.ɵɵelement(5, "dd");
|
|
16661
16728
|
i0.ɵɵelementEnd();
|
|
16662
16729
|
} if (rf & 2) {
|
|
16663
16730
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden)("caseField", ctx.caseField)("contextFields", ctx.caseFields)("id", ctx.caseField.id);
|
|
16664
16731
|
i0.ɵɵadvance(2);
|
|
16665
|
-
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated);
|
|
16732
|
+
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && !ctx.caseField.isTranslated);
|
|
16733
|
+
i0.ɵɵadvance();
|
|
16734
|
+
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && ctx.caseField.isTranslated);
|
|
16666
16735
|
i0.ɵɵadvance();
|
|
16667
16736
|
i0.ɵɵproperty("ngIf", !ctx.labelCanBeTranslated);
|
|
16668
16737
|
} }, encapsulation: 2 });
|
|
16669
16738
|
}
|
|
16670
16739
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelFieldComponent, [{
|
|
16671
16740
|
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\" [
|
|
16741
|
+
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
16742
|
}], null, { caseField: [{
|
|
16674
16743
|
type: Input
|
|
16675
16744
|
}], caseFields: [{
|
|
16676
16745
|
type: Input
|
|
16677
16746
|
}], labelCanBeTranslated: [{
|
|
16678
16747
|
type: Input
|
|
16679
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
16680
|
-
type: Input
|
|
16681
16748
|
}] }); })();
|
|
16682
16749
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LabelFieldComponent, { className: "LabelFieldComponent", filePath: "lib/shared/components/palette/label/label-field.component.ts", lineNumber: 8 }); })();
|
|
16683
16750
|
|
|
@@ -17015,7 +17082,7 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
17015
17082
|
i0.ɵɵelementStart(12, "th", 8);
|
|
17016
17083
|
i0.ɵɵtext(13, "Reasons for case link");
|
|
17017
17084
|
i0.ɵɵelementEnd();
|
|
17018
|
-
i0.ɵɵelement(14, "
|
|
17085
|
+
i0.ɵɵelement(14, "td", 8);
|
|
17019
17086
|
i0.ɵɵtemplate(15, CheckYourAnswersComponent_th_15_Template, 1, 0, "th", 9);
|
|
17020
17087
|
i0.ɵɵelementEnd()();
|
|
17021
17088
|
i0.ɵɵelementStart(16, "tbody", 10);
|
|
@@ -17036,7 +17103,7 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
17036
17103
|
}
|
|
17037
17104
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
17038
17105
|
type: Component,
|
|
17039
|
-
args: [{ selector: 'ccd-linked-cases-check-your-answers', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Check your answers</h1>\n <!-- Top table for manage link cases journey -->\n <table id=\"cases-to-unlink-table\" class=\"govuk-table\" *ngIf=\"!isLinkCasesJourney\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Cases to unlink</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of casesToUnlink\">\n <td class=\"govuk-table__cell\">\n {{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}\n </td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!casesToUnlink.length\">\n <td class=\"govuk-table__cell\" colspan=\"2\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n <!-- Table for both link case and manage link case journeys -->\n <table id=\"linked-cases-table\" class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">{{linkedCasesTableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\">Reasons for case link</th>\n <
|
|
17106
|
+
args: [{ selector: 'ccd-linked-cases-check-your-answers', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Check your answers</h1>\n <!-- Top table for manage link cases journey -->\n <table id=\"cases-to-unlink-table\" class=\"govuk-table\" *ngIf=\"!isLinkCasesJourney\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Cases to unlink</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of casesToUnlink\">\n <td class=\"govuk-table__cell\">\n {{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}\n </td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!casesToUnlink.length\">\n <td class=\"govuk-table__cell\" colspan=\"2\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n <!-- Table for both link case and manage link case journeys -->\n <table id=\"linked-cases-table\" class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">{{linkedCasesTableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\">Reasons for case link</th>\n <td scope=\"col\" class=\"govuk-table__header\"></td>\n <th scope=\"col\" class=\"govuk-table__header\" *ngIf=\"isLinkCasesJourney\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of linkedCases\">\n <td class=\"govuk-table__cell\">\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}} </span>\n </td>\n <td class=\"govuk-table__cell\">\n <span *ngFor=\"let reason of case.reasons; last as isLast\">\n <span *ngIf=\"isLinkCasesJourney\">\n {{reason | ccdLinkCasesReasonValue}}\n </span>\n <span *ngIf=\"!isLinkCasesJourney\">\n {{reason.Reason.value | ccdLinkCasesReasonValue}}\n </span>\n <br *ngIf=\"!isLast\">\n </span>\n </td>\n <td class=\"govuk-table__cell\"></td>\n <td class=\"govuk-table__cell\" *ngIf=\"isLinkCasesJourney\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!linkedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"4\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n", styles: [".float-right{float:right}\n"] }]
|
|
17040
17107
|
}], () => [{ type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
|
|
17041
17108
|
type: Output
|
|
17042
17109
|
}] }); })();
|
|
@@ -20425,7 +20492,6 @@ var RaiseQueryErrorMessage;
|
|
|
20425
20492
|
RaiseQueryErrorMessage["QUERY_BODY"] = "Enter query details";
|
|
20426
20493
|
RaiseQueryErrorMessage["QUERY_HEARING_RELATED"] = "Select whether the query is hearing related or not";
|
|
20427
20494
|
RaiseQueryErrorMessage["QUERY_HEARING_DATE"] = "Enter a valid date";
|
|
20428
|
-
RaiseQueryErrorMessage["QUERY_SUBJECT_MAX_LENGTH"] = "Query subject must be less than 201 characters in length";
|
|
20429
20495
|
RaiseQueryErrorMessage["RESPOND_QUERY_BODY"] = "Add a response before continue";
|
|
20430
20496
|
})(RaiseQueryErrorMessage || (RaiseQueryErrorMessage = {}));
|
|
20431
20497
|
|
|
@@ -20791,11 +20857,12 @@ class QueryManagementUtils {
|
|
|
20791
20857
|
static caseLevelCaseFieldId = 'CaseQueriesCollection';
|
|
20792
20858
|
static FIELD_TYPE_COLLECTION = 'Collection';
|
|
20793
20859
|
static FIELD_TYPE_COMPLEX = 'Complex';
|
|
20860
|
+
static DISPLAY_CONTEXT_READONLY = 'READONLY';
|
|
20794
20861
|
static extractCaseQueriesFromCaseField(caseField) {
|
|
20795
|
-
const { field_type, value } = caseField;
|
|
20862
|
+
const { field_type, value, display_context } = caseField;
|
|
20796
20863
|
// Handle Complex type fields
|
|
20797
20864
|
if (field_type.type === QueryManagementUtils.FIELD_TYPE_COMPLEX) {
|
|
20798
|
-
if (field_type.id === QueryManagementUtils.caseLevelCaseFieldId && QueryManagementUtils.isNonEmptyObject(value)) {
|
|
20865
|
+
if (field_type.id === QueryManagementUtils.caseLevelCaseFieldId && display_context !== QueryManagementUtils.DISPLAY_CONTEXT_READONLY && QueryManagementUtils.isNonEmptyObject(value)) {
|
|
20799
20866
|
return value;
|
|
20800
20867
|
}
|
|
20801
20868
|
return null;
|
|
@@ -21067,6 +21134,9 @@ class QueryCheckYourAnswersComponent {
|
|
|
21067
21134
|
CASE_QUERIES_COLLECTION_ID = 'CaseQueriesCollection';
|
|
21068
21135
|
FIELD_TYPE_COMPLEX = 'Complex';
|
|
21069
21136
|
DISPLAY_CONTEXT_READONLY = 'READONLY';
|
|
21137
|
+
QM_SELECT_FIRST_COLLECTION = 'selectFirstCollection';
|
|
21138
|
+
QM_COLLECTION_PROMPT = 'promptQmCollection';
|
|
21139
|
+
CIVIL_JURISDICTION = 'CIVIL';
|
|
21070
21140
|
formGroup;
|
|
21071
21141
|
queryItem;
|
|
21072
21142
|
queryCreateContext;
|
|
@@ -21079,6 +21149,8 @@ class QueryCheckYourAnswersComponent {
|
|
|
21079
21149
|
tid;
|
|
21080
21150
|
createEventSubscription;
|
|
21081
21151
|
searchTasksSubscription;
|
|
21152
|
+
firstCollectionPicked = false; // Track whether the first collection has been picked
|
|
21153
|
+
firstCollectionOrder;
|
|
21082
21154
|
queryCreateContextEnum = QueryCreateContext;
|
|
21083
21155
|
eventCompletionParams;
|
|
21084
21156
|
caseQueriesCollections;
|
|
@@ -21115,11 +21187,13 @@ class QueryCheckYourAnswersComponent {
|
|
|
21115
21187
|
.subscribe({
|
|
21116
21188
|
next: (response) => {
|
|
21117
21189
|
// Filter task by query id
|
|
21118
|
-
if (this.tid
|
|
21119
|
-
|
|
21120
|
-
|
|
21121
|
-
|
|
21122
|
-
|
|
21190
|
+
if (this.tid) {
|
|
21191
|
+
if (response.tasks?.length > 1) {
|
|
21192
|
+
this.filteredTasks = response.tasks?.filter((task) => task.id === this.tid);
|
|
21193
|
+
}
|
|
21194
|
+
else {
|
|
21195
|
+
this.filteredTasks = response.tasks;
|
|
21196
|
+
}
|
|
21123
21197
|
}
|
|
21124
21198
|
},
|
|
21125
21199
|
error: (error) => {
|
|
@@ -21158,7 +21232,14 @@ class QueryCheckYourAnswersComponent {
|
|
|
21158
21232
|
});
|
|
21159
21233
|
}
|
|
21160
21234
|
else {
|
|
21161
|
-
console.error('Error: No task to complete found');
|
|
21235
|
+
console.error('Error: No task to complete was found');
|
|
21236
|
+
this.errorMessages = [
|
|
21237
|
+
{
|
|
21238
|
+
title: 'Error',
|
|
21239
|
+
description: 'No task to complete was found',
|
|
21240
|
+
fieldId: 'field-id'
|
|
21241
|
+
}
|
|
21242
|
+
];
|
|
21162
21243
|
}
|
|
21163
21244
|
}
|
|
21164
21245
|
else {
|
|
@@ -21273,10 +21354,17 @@ class QueryCheckYourAnswersComponent {
|
|
|
21273
21354
|
const messageId = this.route.snapshot.params.dataid;
|
|
21274
21355
|
// Check if the field_type matches CaseQueriesCollection and type is Complex
|
|
21275
21356
|
if (data.field_type.id === this.CASE_QUERIES_COLLECTION_ID && data.field_type.type === this.FIELD_TYPE_COMPLEX) {
|
|
21276
|
-
if (this.
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21357
|
+
if (this.isNewQueryContext(data)) {
|
|
21358
|
+
// If there is more than one qmCaseQueriesCollection, pick the one with the lowest order
|
|
21359
|
+
if (count > 1) {
|
|
21360
|
+
if (!this.handleMultipleCollections()) {
|
|
21361
|
+
return;
|
|
21362
|
+
}
|
|
21363
|
+
}
|
|
21364
|
+
else {
|
|
21365
|
+
// Set the field ID dynamically based on the extracted data
|
|
21366
|
+
this.fieldId = id; // Store the ID for use in generating newQueryData
|
|
21367
|
+
}
|
|
21280
21368
|
}
|
|
21281
21369
|
// If messageId is present, find the corresponding case message
|
|
21282
21370
|
this.setMessageFieldId(messageId, value, id);
|
|
@@ -21291,6 +21379,45 @@ class QueryCheckYourAnswersComponent {
|
|
|
21291
21379
|
}
|
|
21292
21380
|
}
|
|
21293
21381
|
}
|
|
21382
|
+
isNewQueryContext(data) {
|
|
21383
|
+
return this.queryCreateContext === QueryCreateContext.NEW_QUERY && data.display_context !== this.DISPLAY_CONTEXT_READONLY;
|
|
21384
|
+
}
|
|
21385
|
+
handleMultipleCollections() {
|
|
21386
|
+
const jurisdictionId = this.caseDetails?.case_type?.jurisdiction?.id;
|
|
21387
|
+
if (!jurisdictionId) {
|
|
21388
|
+
console.error('Jurisdiction ID is missing.');
|
|
21389
|
+
return false;
|
|
21390
|
+
}
|
|
21391
|
+
if (this.getCollectionSelectionMethod(jurisdictionId) === this.QM_SELECT_FIRST_COLLECTION) {
|
|
21392
|
+
// Pick the collection with the lowest order
|
|
21393
|
+
this.fieldId = this.getCaseQueriesCollectionFieldOrderFromWizardPages()?.id;
|
|
21394
|
+
}
|
|
21395
|
+
else {
|
|
21396
|
+
// Display Error, for now, until EXUI-2644 is implemented
|
|
21397
|
+
console.error(`Error: Multiple CaseQueriesCollections are not supported yet for the ${jurisdictionId} jurisdiction`);
|
|
21398
|
+
return false;
|
|
21399
|
+
}
|
|
21400
|
+
return true;
|
|
21401
|
+
}
|
|
21402
|
+
getCaseQueriesCollectionFieldOrderFromWizardPages() {
|
|
21403
|
+
const candidateFields = this.eventData?.case_fields?.filter((field) => field.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
|
|
21404
|
+
field.field_type.type === this.FIELD_TYPE_COMPLEX &&
|
|
21405
|
+
field.display_context !== this.DISPLAY_CONTEXT_READONLY);
|
|
21406
|
+
if (!candidateFields?.length)
|
|
21407
|
+
return undefined;
|
|
21408
|
+
const firstPageFields = this.eventData?.wizard_pages?.[0]?.wizard_page_fields;
|
|
21409
|
+
if (!firstPageFields)
|
|
21410
|
+
return undefined;
|
|
21411
|
+
return candidateFields
|
|
21412
|
+
.map((field) => {
|
|
21413
|
+
const wizardField = firstPageFields.find(f => f.case_field_id === field.id);
|
|
21414
|
+
return { field, order: wizardField?.order ?? Number.MAX_SAFE_INTEGER };
|
|
21415
|
+
})
|
|
21416
|
+
.sort((a, b) => a.order - b.order)[0]?.field;
|
|
21417
|
+
}
|
|
21418
|
+
getCollectionSelectionMethod(jurisdiction) {
|
|
21419
|
+
return jurisdiction.toUpperCase() === this.CIVIL_JURISDICTION ? this.QM_SELECT_FIRST_COLLECTION : this.QM_COLLECTION_PROMPT;
|
|
21420
|
+
}
|
|
21294
21421
|
getDocumentAttachments() {
|
|
21295
21422
|
const attachmentsValue = this.formGroup.get('attachments').value;
|
|
21296
21423
|
if (attachmentsValue && attachmentsValue.length > 0) {
|
|
@@ -21383,7 +21510,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21383
21510
|
}], querySubmitted: [{
|
|
21384
21511
|
type: Output
|
|
21385
21512
|
}] }); })();
|
|
21386
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber:
|
|
21513
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 26 }); })();
|
|
21387
21514
|
|
|
21388
21515
|
function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
|
|
21389
21516
|
i0.ɵɵelementStart(0, "cut-alert", 11);
|
|
@@ -22168,11 +22295,11 @@ function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf &
|
|
|
22168
22295
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22169
22296
|
i0.ɵɵelementEnd();
|
|
22170
22297
|
} if (rf & 2) {
|
|
22171
|
-
const
|
|
22298
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
22172
22299
|
i0.ɵɵadvance(2);
|
|
22173
|
-
i0.ɵɵ
|
|
22300
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
22174
22301
|
i0.ɵɵadvance(2);
|
|
22175
|
-
i0.ɵɵtextInterpolate1("
|
|
22302
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
|
|
22176
22303
|
} }
|
|
22177
22304
|
function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
|
|
22178
22305
|
i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
|
|
@@ -22183,11 +22310,11 @@ function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf &
|
|
|
22183
22310
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22184
22311
|
i0.ɵɵelementEnd();
|
|
22185
22312
|
} if (rf & 2) {
|
|
22186
|
-
const
|
|
22313
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
22187
22314
|
i0.ɵɵadvance(2);
|
|
22188
22315
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
22189
22316
|
i0.ɵɵadvance(2);
|
|
22190
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4,
|
|
22317
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
|
|
22191
22318
|
} }
|
|
22192
22319
|
function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
|
|
22193
22320
|
i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
|
|
@@ -22198,11 +22325,11 @@ function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf &
|
|
|
22198
22325
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22199
22326
|
i0.ɵɵelementEnd();
|
|
22200
22327
|
} if (rf & 2) {
|
|
22201
|
-
const
|
|
22328
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
22202
22329
|
i0.ɵɵadvance(2);
|
|
22203
22330
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
22204
22331
|
i0.ɵɵadvance(2);
|
|
22205
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4,
|
|
22332
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
|
|
22206
22333
|
} }
|
|
22207
22334
|
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
22208
22335
|
i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
|
|
@@ -22213,11 +22340,11 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, c
|
|
|
22213
22340
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22214
22341
|
i0.ɵɵelementEnd();
|
|
22215
22342
|
} if (rf & 2) {
|
|
22216
|
-
const
|
|
22343
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
22217
22344
|
i0.ɵɵadvance(2);
|
|
22218
22345
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
22219
22346
|
i0.ɵɵadvance(2);
|
|
22220
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4,
|
|
22347
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
|
|
22221
22348
|
} }
|
|
22222
22349
|
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
|
|
22223
22350
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -22230,16 +22357,15 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx)
|
|
|
22230
22357
|
i0.ɵɵelementEnd()();
|
|
22231
22358
|
i0.ɵɵelementContainerEnd();
|
|
22232
22359
|
} if (rf & 2) {
|
|
22233
|
-
const
|
|
22360
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
22234
22361
|
i0.ɵɵadvance();
|
|
22235
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C,
|
|
22362
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
|
|
22236
22363
|
i0.ɵɵadvance(4);
|
|
22237
22364
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
|
|
22238
22365
|
i0.ɵɵadvance(2);
|
|
22239
|
-
i0.ɵɵproperty("ngIf",
|
|
22366
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
|
|
22240
22367
|
} }
|
|
22241
22368
|
function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
22242
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
22243
22369
|
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
|
|
22244
22370
|
i0.ɵɵtext(6);
|
|
22245
22371
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
@@ -22249,8 +22375,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
22249
22375
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
22250
22376
|
i0.ɵɵelementEnd();
|
|
22251
22377
|
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
|
|
22252
|
-
i0.ɵɵ
|
|
22253
|
-
i0.ɵɵlistener("input", function QueryWriteRaiseQueryComponent_div_11_Template_input_input_12_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSubjectInput()); });
|
|
22378
|
+
i0.ɵɵelement(12, "input", 12);
|
|
22254
22379
|
i0.ɵɵelementEnd()();
|
|
22255
22380
|
i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
|
|
22256
22381
|
i0.ɵɵtext(16);
|
|
@@ -22282,46 +22407,50 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
22282
22407
|
i0.ɵɵpipe(41, "rpxTranslate");
|
|
22283
22408
|
i0.ɵɵelementEnd()()()();
|
|
22284
22409
|
i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
|
|
22285
|
-
i0.ɵɵelementEnd()()()
|
|
22410
|
+
i0.ɵɵelementEnd()()();
|
|
22286
22411
|
} if (rf & 2) {
|
|
22287
|
-
|
|
22412
|
+
let tmp_6_0;
|
|
22413
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
22288
22414
|
i0.ɵɵadvance();
|
|
22289
|
-
i0.ɵɵproperty("formGroup",
|
|
22415
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
22290
22416
|
i0.ɵɵadvance(2);
|
|
22291
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22417
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
|
|
22292
22418
|
i0.ɵɵadvance(3);
|
|
22293
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
22419
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
|
|
22294
22420
|
i0.ɵɵadvance(3);
|
|
22295
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10,
|
|
22296
|
-
i0.ɵɵadvance(2);
|
|
22297
|
-
i0.ɵɵproperty("ngIf", ctx_r1.submitted && (ctx_r1.formGroup.get("subject").hasError("required") || ctx_r1.formGroup.get("subject").hasError("maxlength")));
|
|
22421
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
|
|
22298
22422
|
i0.ɵɵadvance(2);
|
|
22299
|
-
i0.ɵɵproperty("
|
|
22423
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
|
|
22424
|
+
i0.ɵɵadvance();
|
|
22425
|
+
i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
|
|
22426
|
+
i0.ɵɵproperty("formControlName", "subject");
|
|
22427
|
+
i0.ɵɵadvance();
|
|
22428
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
|
|
22300
22429
|
i0.ɵɵadvance(3);
|
|
22301
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17,
|
|
22430
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
|
|
22302
22431
|
i0.ɵɵadvance(3);
|
|
22303
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20,
|
|
22432
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
22304
22433
|
i0.ɵɵadvance(2);
|
|
22305
|
-
i0.ɵɵproperty("ngIf",
|
|
22434
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
22306
22435
|
i0.ɵɵadvance();
|
|
22307
|
-
i0.ɵɵclassProp("govuk-textarea--error",
|
|
22436
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
22308
22437
|
i0.ɵɵproperty("formControlName", "body");
|
|
22309
22438
|
i0.ɵɵadvance(2);
|
|
22310
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22439
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
|
|
22311
22440
|
i0.ɵɵadvance(4);
|
|
22312
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29,
|
|
22441
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
|
|
22313
22442
|
i0.ɵɵadvance(2);
|
|
22314
|
-
i0.ɵɵproperty("ngIf",
|
|
22443
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
|
|
22315
22444
|
i0.ɵɵadvance(3);
|
|
22316
|
-
i0.ɵɵproperty("checked",
|
|
22445
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
22317
22446
|
i0.ɵɵadvance(2);
|
|
22318
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36,
|
|
22447
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
|
|
22319
22448
|
i0.ɵɵadvance(3);
|
|
22320
|
-
i0.ɵɵproperty("checked",
|
|
22449
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
22321
22450
|
i0.ɵɵadvance(2);
|
|
22322
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41,
|
|
22451
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
|
|
22323
22452
|
i0.ɵɵadvance(2);
|
|
22324
|
-
i0.ɵɵproperty("ngIf",
|
|
22453
|
+
i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
|
|
22325
22454
|
} }
|
|
22326
22455
|
class QueryWriteRaiseQueryComponent {
|
|
22327
22456
|
formGroup;
|
|
@@ -22329,25 +22458,8 @@ class QueryWriteRaiseQueryComponent {
|
|
|
22329
22458
|
caseDetails;
|
|
22330
22459
|
showForm;
|
|
22331
22460
|
raiseQueryErrorMessage = RaiseQueryErrorMessage;
|
|
22332
|
-
onSubjectInput() {
|
|
22333
|
-
const control = this.formGroup.get('subject');
|
|
22334
|
-
const value = control?.value;
|
|
22335
|
-
if (value && value.length > 200) {
|
|
22336
|
-
control?.setValue(value.substring(0, 200));
|
|
22337
|
-
}
|
|
22338
|
-
}
|
|
22339
|
-
getSubjectErrorMessage() {
|
|
22340
|
-
const control = this.formGroup.get('subject');
|
|
22341
|
-
if (control.hasError('required')) {
|
|
22342
|
-
return this.raiseQueryErrorMessage.QUERY_SUBJECT;
|
|
22343
|
-
}
|
|
22344
|
-
if (control.hasError('maxlength')) {
|
|
22345
|
-
return this.raiseQueryErrorMessage.QUERY_SUBJECT_MAX_LENGTH;
|
|
22346
|
-
}
|
|
22347
|
-
return '';
|
|
22348
|
-
}
|
|
22349
22461
|
static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
|
|
22350
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails", showForm: "showForm" }, decls: 12, vars: 8, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-!-margin-bottom-4", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "
|
|
22462
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails", showForm: "showForm" }, decls: 12, vars: 8, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-!-margin-bottom-4", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "subject-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-radios__conditional", "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22351
22463
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
|
|
22352
22464
|
i0.ɵɵtext(3);
|
|
22353
22465
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -22360,7 +22472,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
22360
22472
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
|
|
22361
22473
|
i0.ɵɵelementEnd();
|
|
22362
22474
|
i0.ɵɵelement(10, "hr");
|
|
22363
|
-
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43,
|
|
22475
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
|
|
22364
22476
|
i0.ɵɵelementEnd();
|
|
22365
22477
|
} if (rf & 2) {
|
|
22366
22478
|
i0.ɵɵadvance(3);
|
|
@@ -22375,7 +22487,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
22375
22487
|
}
|
|
22376
22488
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
|
|
22377
22489
|
type: Component,
|
|
22378
|
-
args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\" *ngIf=\"showForm\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n
|
|
22490
|
+
args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\" *ngIf=\"showForm\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
22379
22491
|
}], null, { formGroup: [{
|
|
22380
22492
|
type: Input
|
|
22381
22493
|
}], submitted: [{
|
|
@@ -22839,21 +22951,20 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
22839
22951
|
|
|
22840
22952
|
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
22841
22953
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(t) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(t || ReadTextAreaFieldComponent); }; })();
|
|
22842
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
22954
|
+
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) {
|
|
22843
22955
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22844
22956
|
i0.ɵɵtext(1);
|
|
22845
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22846
22957
|
i0.ɵɵelementEnd();
|
|
22847
22958
|
} if (rf & 2) {
|
|
22848
22959
|
i0.ɵɵadvance();
|
|
22849
|
-
i0.ɵɵtextInterpolate(
|
|
22850
|
-
} },
|
|
22960
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
22961
|
+
} }, encapsulation: 2 });
|
|
22851
22962
|
}
|
|
22852
22963
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
|
|
22853
22964
|
type: Component,
|
|
22854
22965
|
args: [{
|
|
22855
22966
|
selector: 'ccd-read-text-area-field',
|
|
22856
|
-
template: `<span style="white-space: pre-wrap">{{caseField.value
|
|
22967
|
+
template: `<span style="white-space: pre-wrap">{{ caseField.value }}</span>`
|
|
22857
22968
|
}]
|
|
22858
22969
|
}], null, null); })();
|
|
22859
22970
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -22938,21 +23049,20 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
22938
23049
|
|
|
22939
23050
|
class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
22940
23051
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(t) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(t || ReadTextFieldComponent); }; })();
|
|
22941
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextFieldComponent, selectors: [["ccd-read-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
23052
|
+
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) {
|
|
22942
23053
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22943
23054
|
i0.ɵɵtext(1);
|
|
22944
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22945
23055
|
i0.ɵɵelementEnd();
|
|
22946
23056
|
} if (rf & 2) {
|
|
22947
23057
|
i0.ɵɵadvance();
|
|
22948
|
-
i0.ɵɵtextInterpolate(
|
|
22949
|
-
} },
|
|
23058
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
23059
|
+
} }, encapsulation: 2 });
|
|
22950
23060
|
}
|
|
22951
23061
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextFieldComponent, [{
|
|
22952
23062
|
type: Component,
|
|
22953
23063
|
args: [{
|
|
22954
23064
|
selector: 'ccd-read-text-field',
|
|
22955
|
-
template: `<span class="text-16">{{caseField.value
|
|
23065
|
+
template: `<span class="text-16">{{ caseField.value }}</span>`
|
|
22956
23066
|
}]
|
|
22957
23067
|
}], null, null); })();
|
|
22958
23068
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -23345,7 +23455,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23345
23455
|
withLabel = false;
|
|
23346
23456
|
formGroup = new FormGroup({});
|
|
23347
23457
|
caseFields = [];
|
|
23348
|
-
markdownUseHrefAsRouterLink;
|
|
23349
23458
|
fieldContainer;
|
|
23350
23459
|
constructor(resolver, paletteService) {
|
|
23351
23460
|
super();
|
|
@@ -23378,7 +23487,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23378
23487
|
component.instance['parent'] = this.parent;
|
|
23379
23488
|
component.instance['caseReference'] = this.caseReference;
|
|
23380
23489
|
component.instance['context'] = this.context;
|
|
23381
|
-
component.instance['markdownUseHrefAsRouterLink'] = this.markdownUseHrefAsRouterLink;
|
|
23382
23490
|
component.instance['labelCanBeTranslated'] = this.labelCanBeTranslated(this.caseField);
|
|
23383
23491
|
this.fieldContainer.insert(component.hostView);
|
|
23384
23492
|
});
|
|
@@ -23392,27 +23500,25 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23392
23500
|
} if (rf & 2) {
|
|
23393
23501
|
let _t;
|
|
23394
23502
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
23395
|
-
} }, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields"
|
|
23503
|
+
} }, 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) {
|
|
23396
23504
|
i0.ɵɵelementStart(0, "div", 1)(1, "ccd-field-read-label", 2);
|
|
23397
23505
|
i0.ɵɵelementContainer(2, null, 0);
|
|
23398
23506
|
i0.ɵɵelementEnd()();
|
|
23399
23507
|
} if (rf & 2) {
|
|
23400
23508
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
23401
23509
|
i0.ɵɵadvance();
|
|
23402
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel)
|
|
23510
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel);
|
|
23403
23511
|
} }, encapsulation: 2 });
|
|
23404
23512
|
}
|
|
23405
23513
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadComponent, [{
|
|
23406
23514
|
type: Component,
|
|
23407
|
-
args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\"
|
|
23515
|
+
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" }]
|
|
23408
23516
|
}], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { withLabel: [{
|
|
23409
23517
|
type: Input
|
|
23410
23518
|
}], formGroup: [{
|
|
23411
23519
|
type: Input
|
|
23412
23520
|
}], caseFields: [{
|
|
23413
23521
|
type: Input
|
|
23414
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23415
|
-
type: Input
|
|
23416
23522
|
}], fieldContainer: [{
|
|
23417
23523
|
type: ViewChild,
|
|
23418
23524
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
@@ -23516,7 +23622,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23516
23622
|
// EUI-3267. Flag for whether or not this can have a grey bar.
|
|
23517
23623
|
canHaveGreyBar = false;
|
|
23518
23624
|
withLabel;
|
|
23519
|
-
markdownUseHrefAsRouterLink;
|
|
23520
23625
|
isLabel() {
|
|
23521
23626
|
return this.caseField.field_type && this.caseField.field_type.type === 'Label';
|
|
23522
23627
|
}
|
|
@@ -23544,7 +23649,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23544
23649
|
}
|
|
23545
23650
|
}
|
|
23546
23651
|
static ɵfac = /*@__PURE__*/ (() => { let ɵFieldReadLabelComponent_BaseFactory; return function FieldReadLabelComponent_Factory(t) { return (ɵFieldReadLabelComponent_BaseFactory || (ɵFieldReadLabelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FieldReadLabelComponent)))(t || FieldReadLabelComponent); }; })();
|
|
23547
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel"
|
|
23652
|
+
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) {
|
|
23548
23653
|
i0.ɵɵprojectionDef();
|
|
23549
23654
|
i0.ɵɵelementStart(0, "div", 1);
|
|
23550
23655
|
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);
|
|
@@ -23562,8 +23667,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23562
23667
|
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"] }]
|
|
23563
23668
|
}], null, { withLabel: [{
|
|
23564
23669
|
type: Input
|
|
23565
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23566
|
-
type: Input
|
|
23567
23670
|
}] }); })();
|
|
23568
23671
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadLabelComponent, { className: "FieldReadLabelComponent", filePath: "lib/shared/components/palette/base-field/field-read-label.component.ts", lineNumber: 14 }); })();
|
|
23569
23672
|
|
|
@@ -23601,7 +23704,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
|
|
|
23601
23704
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
23602
23705
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
23603
23706
|
i0.ɵɵelementStart(0, "div", 9)(1, "input", 10);
|
|
23604
|
-
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.handleChange($event)); });
|
|
23707
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.handleChange($event)); })("keyup", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_keyup_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView($event.key === "Enter" ? ctx_r4.handleChange($event) : null); });
|
|
23605
23708
|
i0.ɵɵelementEnd();
|
|
23606
23709
|
i0.ɵɵelementStart(2, "label", 11);
|
|
23607
23710
|
i0.ɵɵelement(3, "img", 12);
|
|
@@ -23681,10 +23784,10 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
23681
23784
|
return null;
|
|
23682
23785
|
}
|
|
23683
23786
|
static ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialogRef), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); };
|
|
23684
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [["folder", ""], [1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "click", "name", "id"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23787
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [["folder", ""], ["tabindex", "0", "aria-label", "close", 1, "close", 3, "click", "keyup"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["href", "javascript:void(0)", 1, "cancel", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "click", "keyup", "name", "id"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23685
23788
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23686
|
-
i0.ɵɵelementStart(0, "
|
|
23687
|
-
i0.ɵɵlistener("click", function
|
|
23789
|
+
i0.ɵɵelementStart(0, "span", 1);
|
|
23790
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); })("keyup", function CaseFileViewFolderSelectorComponent_Template_span_keyup_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.key === "Enter" ? ctx.cancel() : null); });
|
|
23688
23791
|
i0.ɵɵelementEnd();
|
|
23689
23792
|
i0.ɵɵelementStart(1, "h2", 2);
|
|
23690
23793
|
i0.ɵɵtext(2, "Move File");
|
|
@@ -23713,7 +23816,7 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
23713
23816
|
}
|
|
23714
23817
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
23715
23818
|
type: Component,
|
|
23716
|
-
args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, template: "<
|
|
23819
|
+
args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, template: "<span tabindex=\"0\" aria-label=\"close\" class=\"close\" (click)=\"cancel()\" (keyup)=\"$event.key === 'Enter' ? cancel() : null\"></span>\n<h2 class=\"govuk-heading-l\">Move File</h2>\n<p>Where do you want to move \"{{ data.document.document_filename }}\" file?</p>\n<div class=\"folders govuk-radios govuk-radios--conditional\">\n <ng-container *ngFor=\"let cat of currentCategories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:cat,level:1}\"></ng-container>\n </ng-container>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"save()\">Save</button>\n <a (click)=\"cancel()\" class=\"cancel\" href=\"javascript:void(0)\">Cancel</a>\n</div>\n\n<ng-template #folder let-cat=\"cat\" let-level=\"level\">\n <div class=\"folder govuk-radios__item\">\n <input class=\"govuk-radios__input\" type=\"radio\" name=\"level-{{level}}\" [id]=\"cat.category_id\" (click)=\"handleChange($event)\" (keyup)=\"$event.key === 'Enter' ? handleChange($event) : null\" />\n <label class=\"govuk-label govuk-radios__label\" [for]=\"cat.category_id\">\n <img class=\"iconImg\" src=\"/assets/images/folder.png\" alt=\"Folder icon\" />\n {{ cat.category_name }}\n </label>\n <ng-container *ngFor=\"let subcat of cat.sub_categories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:subcat,level:level+1}\"></ng-container>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #CCC;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #CCC}.folders>.folder{display:block}input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat center center;cursor:pointer}.cancel{cursor:pointer}.cdk-overlay-pane{overflow:auto;background:#fff}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}\n"] }]
|
|
23717
23820
|
}], () => [{ type: i1$3.MatLegacyDialogRef }, { type: undefined, decorators: [{
|
|
23718
23821
|
type: Inject,
|
|
23719
23822
|
args: [MAT_LEGACY_DIALOG_DATA]
|
|
@@ -23745,22 +23848,25 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(
|
|
|
23745
23848
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
23746
23849
|
i0.ɵɵelementContainerStart(0);
|
|
23747
23850
|
i0.ɵɵelementStart(1, "div", 7);
|
|
23748
|
-
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); item_r4.actionFn(); return i0.ɵɵresetView(ctx_r1.closeOverlay()); });
|
|
23851
|
+
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); item_r4.actionFn(); return i0.ɵɵresetView(ctx_r1.closeOverlay()); })("keyup", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_keyup_1_listener($event) { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView($event.key === "Enter" ? ctx_r1.actionAndClose(item_r4.actionFn()) : null); });
|
|
23749
23852
|
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 3, "img", 8);
|
|
23750
|
-
i0.ɵɵelementStart(3, "
|
|
23853
|
+
i0.ɵɵelementStart(3, "span", 9);
|
|
23751
23854
|
i0.ɵɵtext(4);
|
|
23752
23855
|
i0.ɵɵelementEnd()();
|
|
23753
23856
|
i0.ɵɵelementContainerEnd();
|
|
23754
23857
|
} if (rf & 2) {
|
|
23755
23858
|
const item_r4 = ctx.$implicit;
|
|
23756
|
-
|
|
23859
|
+
const i_r5 = ctx.index;
|
|
23860
|
+
i0.ɵɵadvance();
|
|
23861
|
+
i0.ɵɵproperty("id", "overlay-menu__item" + i_r5);
|
|
23862
|
+
i0.ɵɵadvance();
|
|
23757
23863
|
i0.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
23758
23864
|
i0.ɵɵadvance(2);
|
|
23759
23865
|
i0.ɵɵtextInterpolate(item_r4.actionText);
|
|
23760
23866
|
} }
|
|
23761
23867
|
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
23762
23868
|
i0.ɵɵelementStart(0, "div", 3);
|
|
23763
|
-
i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4)(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5,
|
|
23869
|
+
i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4)(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 3, "ng-container", 5);
|
|
23764
23870
|
i0.ɵɵelementEnd();
|
|
23765
23871
|
} if (rf & 2) {
|
|
23766
23872
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -23779,8 +23885,12 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
23779
23885
|
this.isOpen = isOpen;
|
|
23780
23886
|
this.isOpenChange.emit(isOpen);
|
|
23781
23887
|
}
|
|
23888
|
+
actionAndClose(func) {
|
|
23889
|
+
func();
|
|
23890
|
+
this.closeOverlay();
|
|
23891
|
+
}
|
|
23782
23892
|
static ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
23783
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["trigger", "cdkOverlayOrigin"], ["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["cdkConnectedOverlay", "", 3, "backdropClick", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23893
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["trigger", "cdkOverlayOrigin"], ["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["cdkConnectedOverlay", "", 3, "backdropClick", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], ["tabindex", "0", 1, "overlay-menu__item", 3, "click", "keyup", "id"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23784
23894
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23785
23895
|
i0.ɵɵprojectionDef(_c0$t);
|
|
23786
23896
|
i0.ɵɵelementStart(0, "div")(1, "button", 1, 0);
|
|
@@ -23791,14 +23901,14 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
23791
23901
|
i0.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.closeOverlay()); });
|
|
23792
23902
|
i0.ɵɵelementEnd();
|
|
23793
23903
|
} if (rf & 2) {
|
|
23794
|
-
const
|
|
23904
|
+
const trigger_r6 = i0.ɵɵreference(2);
|
|
23795
23905
|
i0.ɵɵadvance(4);
|
|
23796
|
-
i0.ɵɵproperty("cdkConnectedOverlayOrigin",
|
|
23797
|
-
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$2.CdkConnectedOverlay, i2$2.CdkOverlayOrigin], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title[_ngcontent-%COMP%], .overlay-menu__item[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__title[_ngcontent-%COMP%]:last-child, .overlay-menu__item[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
23906
|
+
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r6)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
23907
|
+
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$2.CdkConnectedOverlay, i2$2.CdkOverlayOrigin], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title[_ngcontent-%COMP%], .overlay-menu__item[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__title[_ngcontent-%COMP%]:last-child, .overlay-menu__item[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__item[_ngcontent-%COMP%]:focus{border:2px solid #ffbf47}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
23798
23908
|
}
|
|
23799
23909
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
23800
23910
|
type: Component,
|
|
23801
|
-
args: [{ selector: 'ccd-case-file-view-overlay-menu', template: "<div>\n <button type=\"button\" class=\"overlay-toggle\"\n (click)=\"$event.stopPropagation(); isOpen = !isOpen\"\n cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\">\n <ng-content select=\"[trigger]\"></ng-content>\n </button>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"isOpen\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n [cdkConnectedOverlayBackdropClass]=\"'cdk-overlay-transparent-backdrop'\"\n (backdropClick)=\"closeOverlay()\"\n >\n <div class=\"overlay-menu\">\n <ng-container *ngIf=\"title\">\n <div class=\"overlay-menu__title\">{{title}}</div>\n </ng-container>\n\n <ng-container *ngFor=\"let item of menuItems\">\n <div class=\"overlay-menu__item\" (click)=\"item.actionFn(); closeOverlay();\">\n <img *ngIf=\"item.iconSrc\" [src]=\"item.iconSrc\" class=\"overlay-menu__itemIcon\" alt=\"{{title}} icon'\" />\n <
|
|
23911
|
+
args: [{ selector: 'ccd-case-file-view-overlay-menu', template: "<div>\n <button type=\"button\" class=\"overlay-toggle\"\n (click)=\"$event.stopPropagation(); isOpen = !isOpen\"\n cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\">\n <ng-content select=\"[trigger]\"></ng-content>\n </button>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"isOpen\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n [cdkConnectedOverlayBackdropClass]=\"'cdk-overlay-transparent-backdrop'\"\n (backdropClick)=\"closeOverlay()\"\n >\n <div class=\"overlay-menu\">\n <ng-container *ngIf=\"title\">\n <div class=\"overlay-menu__title\">{{title}}</div>\n </ng-container>\n\n <ng-container *ngFor=\"let item of menuItems; index as i\">\n <div class=\"overlay-menu__item\" tabindex=\"0\" [id]=\"'overlay-menu__item' + i\" (click)=\"item.actionFn(); closeOverlay();\" (keyup)=\"$event.key === 'Enter' ? actionAndClose(item.actionFn()) : null\">\n <img *ngIf=\"item.iconSrc\" [src]=\"item.iconSrc\" class=\"overlay-menu__itemIcon\" alt=\"{{title}} icon'\" />\n <span class=\"overlay-menu__actionText\">{{item.actionText}}</span>\n </div>\n </ng-container>\n </div>\n </ng-template>\n</div>\n", styles: [".overlay-toggle{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title,.overlay-menu__item{padding:10px;border-bottom:1px solid grey}.overlay-menu__title:last-child,.overlay-menu__item:last-child{border:none}.overlay-menu__title{padding-left:6px;padding-right:6px}.overlay-menu__item{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item:hover{background-color:#fff2cc}.overlay-menu__item:focus{border:2px solid #ffbf47}.overlay-menu__itemIcon{height:1.25em;width:1.25em;margin-right:6px}\n"] }]
|
|
23802
23912
|
}], null, { title: [{
|
|
23803
23913
|
type: Input
|
|
23804
23914
|
}], menuItems: [{
|
|
@@ -24588,7 +24698,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
24588
24698
|
}] }); })();
|
|
24589
24699
|
(() => { (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 }); })();
|
|
24590
24700
|
|
|
24591
|
-
function
|
|
24701
|
+
function CaseFlagSummaryListComponent_dl_0_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
24592
24702
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
24593
24703
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24594
24704
|
i0.ɵɵtext(2);
|
|
@@ -24598,7 +24708,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24598
24708
|
i0.ɵɵtext(5);
|
|
24599
24709
|
i0.ɵɵelementEnd();
|
|
24600
24710
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24601
|
-
i0.ɵɵlistener("click", function
|
|
24711
|
+
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)); });
|
|
24602
24712
|
i0.ɵɵtext(8);
|
|
24603
24713
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24604
24714
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24616,7 +24726,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24616
24726
|
i0.ɵɵadvance(3);
|
|
24617
24727
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "other description (Welsh)"), "");
|
|
24618
24728
|
} }
|
|
24619
|
-
function
|
|
24729
|
+
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
24620
24730
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
24621
24731
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24622
24732
|
i0.ɵɵtext(2);
|
|
@@ -24626,7 +24736,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24626
24736
|
i0.ɵɵtext(5);
|
|
24627
24737
|
i0.ɵɵelementEnd();
|
|
24628
24738
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24629
|
-
i0.ɵɵlistener("click", function
|
|
24739
|
+
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)); });
|
|
24630
24740
|
i0.ɵɵtext(8);
|
|
24631
24741
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24632
24742
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24644,7 +24754,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24644
24754
|
i0.ɵɵadvance(3);
|
|
24645
24755
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments"), "");
|
|
24646
24756
|
} }
|
|
24647
|
-
function
|
|
24757
|
+
function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1) {
|
|
24648
24758
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
24649
24759
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24650
24760
|
i0.ɵɵtext(2);
|
|
@@ -24654,7 +24764,7 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24654
24764
|
i0.ɵɵtext(5);
|
|
24655
24765
|
i0.ɵɵelementEnd();
|
|
24656
24766
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24657
|
-
i0.ɵɵlistener("click", function
|
|
24767
|
+
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)); });
|
|
24658
24768
|
i0.ɵɵtext(8);
|
|
24659
24769
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24660
24770
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24672,10 +24782,10 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24672
24782
|
i0.ɵɵadvance(3);
|
|
24673
24783
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments (Welsh)"), "");
|
|
24674
24784
|
} }
|
|
24675
|
-
function
|
|
24785
|
+
function CaseFlagSummaryListComponent_dl_0_a_38_Template(rf, ctx) { if (rf & 1) {
|
|
24676
24786
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
24677
24787
|
i0.ɵɵelementStart(0, "a", 6);
|
|
24678
|
-
i0.ɵɵlistener("click", function
|
|
24788
|
+
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)); });
|
|
24679
24789
|
i0.ɵɵtext(1);
|
|
24680
24790
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24681
24791
|
i0.ɵɵelementStart(3, "span", 7);
|
|
@@ -24696,61 +24806,60 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24696
24806
|
i0.ɵɵelementEnd();
|
|
24697
24807
|
i0.ɵɵelementStart(5, "dd", 4);
|
|
24698
24808
|
i0.ɵɵtext(6);
|
|
24699
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
24700
24809
|
i0.ɵɵelementEnd();
|
|
24701
|
-
i0.ɵɵelementStart(
|
|
24702
|
-
i0.ɵɵlistener("click", function
|
|
24703
|
-
i0.ɵɵtext(
|
|
24704
|
-
i0.ɵɵpipe(
|
|
24705
|
-
i0.ɵɵelementStart(
|
|
24706
|
-
i0.ɵɵtext(
|
|
24707
|
-
i0.ɵɵpipe(
|
|
24810
|
+
i0.ɵɵelementStart(7, "dd", 5)(8, "a", 6);
|
|
24811
|
+
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)); });
|
|
24812
|
+
i0.ɵɵtext(9);
|
|
24813
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
24814
|
+
i0.ɵɵelementStart(11, "span", 7);
|
|
24815
|
+
i0.ɵɵtext(12);
|
|
24816
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
24708
24817
|
i0.ɵɵelementEnd()()()();
|
|
24709
|
-
i0.ɵɵelementStart(
|
|
24710
|
-
i0.ɵɵtext(
|
|
24711
|
-
i0.ɵɵpipe(
|
|
24818
|
+
i0.ɵɵelementStart(14, "div", 2)(15, "dt", 3);
|
|
24819
|
+
i0.ɵɵtext(16);
|
|
24820
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
24712
24821
|
i0.ɵɵelementEnd();
|
|
24713
|
-
i0.ɵɵelementStart(
|
|
24714
|
-
i0.ɵɵtext(
|
|
24822
|
+
i0.ɵɵelementStart(18, "dd", 4);
|
|
24823
|
+
i0.ɵɵtext(19);
|
|
24715
24824
|
i0.ɵɵelementEnd();
|
|
24716
|
-
i0.ɵɵelementStart(
|
|
24717
|
-
i0.ɵɵlistener("click", function
|
|
24718
|
-
i0.ɵɵtext(
|
|
24719
|
-
i0.ɵɵpipe(
|
|
24720
|
-
i0.ɵɵelementStart(
|
|
24721
|
-
i0.ɵɵtext(
|
|
24722
|
-
i0.ɵɵpipe(
|
|
24825
|
+
i0.ɵɵelementStart(20, "dd", 5)(21, "a", 6);
|
|
24826
|
+
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)); });
|
|
24827
|
+
i0.ɵɵtext(22);
|
|
24828
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
24829
|
+
i0.ɵɵelementStart(24, "span", 7);
|
|
24830
|
+
i0.ɵɵtext(25);
|
|
24831
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
24723
24832
|
i0.ɵɵelementEnd()()()();
|
|
24724
|
-
i0.ɵɵtemplate(
|
|
24725
|
-
i0.ɵɵelementStart(
|
|
24726
|
-
i0.ɵɵtext(
|
|
24727
|
-
i0.ɵɵpipe(
|
|
24833
|
+
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);
|
|
24834
|
+
i0.ɵɵelementStart(30, "div", 2)(31, "dt", 3);
|
|
24835
|
+
i0.ɵɵtext(32);
|
|
24836
|
+
i0.ɵɵpipe(33, "rpxTranslate");
|
|
24728
24837
|
i0.ɵɵelementEnd();
|
|
24729
|
-
i0.ɵɵelementStart(
|
|
24730
|
-
i0.ɵɵtext(
|
|
24731
|
-
i0.ɵɵpipe(
|
|
24838
|
+
i0.ɵɵelementStart(34, "dd", 4);
|
|
24839
|
+
i0.ɵɵtext(35);
|
|
24840
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
24732
24841
|
i0.ɵɵelementEnd();
|
|
24733
|
-
i0.ɵɵelementStart(
|
|
24734
|
-
i0.ɵɵtemplate(
|
|
24842
|
+
i0.ɵɵelementStart(37, "dd", 5);
|
|
24843
|
+
i0.ɵɵtemplate(38, CaseFlagSummaryListComponent_dl_0_a_38_Template, 6, 6, "a", 9);
|
|
24735
24844
|
i0.ɵɵelementEnd()()();
|
|
24736
24845
|
} if (rf & 2) {
|
|
24737
24846
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
24738
24847
|
i0.ɵɵadvance(3);
|
|
24739
24848
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 14, ctx_r1.addUpdateFlagHeaderText), " ");
|
|
24740
24849
|
i0.ɵɵadvance(3);
|
|
24741
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24742
|
-
i0.ɵɵadvance(4);
|
|
24743
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 18, "Change"), "");
|
|
24850
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagForSummaryDisplay.partyName || ctx_r1.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION, " ");
|
|
24744
24851
|
i0.ɵɵadvance(3);
|
|
24745
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24852
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, "Change"), "");
|
|
24853
|
+
i0.ɵɵadvance(3);
|
|
24854
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 18, "party name"), "");
|
|
24746
24855
|
i0.ɵɵadvance(4);
|
|
24747
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24856
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 20, ctx_r1.flagTypeHeaderText), " ");
|
|
24748
24857
|
i0.ɵɵadvance(3);
|
|
24749
24858
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagDescription, " ");
|
|
24750
24859
|
i0.ɵɵadvance(3);
|
|
24751
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24860
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, "Change"), "");
|
|
24752
24861
|
i0.ɵɵadvance(3);
|
|
24753
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24862
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 24, "flag type"), "");
|
|
24754
24863
|
i0.ɵɵadvance(2);
|
|
24755
24864
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagDescriptionWelsh == null ? null : ctx_r1.flagDescriptionWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24756
24865
|
i0.ɵɵadvance();
|
|
@@ -24758,9 +24867,9 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24758
24867
|
i0.ɵɵadvance();
|
|
24759
24868
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagCommentsWelsh == null ? null : ctx_r1.flagCommentsWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24760
24869
|
i0.ɵɵadvance(3);
|
|
24761
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24870
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(33, 26, "Status"), " ");
|
|
24762
24871
|
i0.ɵɵadvance(3);
|
|
24763
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24872
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(36, 28, ctx_r1.flagStatus), " ");
|
|
24764
24873
|
i0.ɵɵadvance(3);
|
|
24765
24874
|
i0.ɵɵproperty("ngIf", ctx_r1.is2Point1Enabled);
|
|
24766
24875
|
} }
|
|
@@ -24866,14 +24975,14 @@ class CaseFlagSummaryListComponent {
|
|
|
24866
24975
|
}
|
|
24867
24976
|
static ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
24868
24977
|
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) {
|
|
24869
|
-
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template,
|
|
24978
|
+
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 39, 30, "dl", 0);
|
|
24870
24979
|
} if (rf & 2) {
|
|
24871
24980
|
i0.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
|
|
24872
24981
|
} }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24873
24982
|
}
|
|
24874
24983
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagSummaryListComponent, [{
|
|
24875
24984
|
type: Component,
|
|
24876
|
-
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
|
|
24985
|
+
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" }]
|
|
24877
24986
|
}], () => [{ type: i1.RpxTranslationService }], { flagForSummaryDisplay: [{
|
|
24878
24987
|
type: Input
|
|
24879
24988
|
}], displayContextParameter: [{
|
|
@@ -27649,7 +27758,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
27649
27758
|
i0.ɵɵadvance();
|
|
27650
27759
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
27651
27760
|
i0.ɵɵadvance(2);
|
|
27652
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 8, field_r1.label));
|
|
27761
|
+
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4, 8, field_r1.label) : field_r1.label);
|
|
27653
27762
|
i0.ɵɵadvance(2);
|
|
27654
27763
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
27655
27764
|
i0.ɵɵadvance();
|
|
@@ -27674,7 +27783,7 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
27674
27783
|
}
|
|
27675
27784
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
27676
27785
|
type: Component,
|
|
27677
|
-
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"] }]
|
|
27786
|
+
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"] }]
|
|
27678
27787
|
}], null, { caseFields: [{
|
|
27679
27788
|
type: Input
|
|
27680
27789
|
}] }); })();
|
|
@@ -27776,15 +27885,17 @@ function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) { if (
|
|
|
27776
27885
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
27777
27886
|
i0.ɵɵelementEnd();
|
|
27778
27887
|
i0.ɵɵelementStart(4, "a", 9);
|
|
27779
|
-
i0.ɵɵ
|
|
27888
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
27889
|
+
i0.ɵɵlistener("click", function ReadComplexFieldCollectionTableComponent_th_10_Template_a_click_4_listener() { const heading_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.sortRowsByColumns(heading_r2)); })("keyup.enter", function ReadComplexFieldCollectionTableComponent_th_10_Template_a_keyup_enter_4_listener() { const heading_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.sortRowsByColumns(heading_r2)); });
|
|
27780
27890
|
i0.ɵɵelementEnd()();
|
|
27781
27891
|
} if (rf & 2) {
|
|
27782
27892
|
const heading_r2 = ctx.$implicit;
|
|
27783
27893
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
27784
27894
|
i0.ɵɵadvance(2);
|
|
27785
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
27895
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, ctx_r2.columnsAllLabels[heading_r2].label));
|
|
27786
27896
|
i0.ɵɵadvance(2);
|
|
27787
27897
|
i0.ɵɵproperty("innerHTML", ctx_r2.sortWidget(ctx_r2.columnsAllLabels[heading_r2]), i0.ɵɵsanitizeHtml);
|
|
27898
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(5, 5, "Sort " + ctx_r2.columnsAllLabels[heading_r2].label));
|
|
27788
27899
|
} }
|
|
27789
27900
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
27790
27901
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -27933,7 +28044,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_Template(rf, c
|
|
|
27933
28044
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
27934
28045
|
i0.ɵɵelementContainerStart(0);
|
|
27935
28046
|
i0.ɵɵelementStart(1, "tr", 10);
|
|
27936
|
-
i0.ɵɵlistener("click", function ReadComplexFieldCollectionTableComponent_ng_container_12_Template_tr_click_1_listener() { const i_r5 = i0.ɵɵrestoreView(_r4).index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r2.isHidden[i_r5] = !ctx_r2.isHidden[i_r5])); });
|
|
28047
|
+
i0.ɵɵlistener("keyup", function ReadComplexFieldCollectionTableComponent_ng_container_12_Template_tr_keyup_1_listener($event) { const i_r5 = i0.ɵɵrestoreView(_r4).index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView($event.key === "Enter" ? (ctx_r2.isHidden[i_r5] = !ctx_r2.isHidden[i_r5]) : null); })("click", function ReadComplexFieldCollectionTableComponent_ng_container_12_Template_tr_click_1_listener() { const i_r5 = i0.ɵɵrestoreView(_r4).index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r2.isHidden[i_r5] = !ctx_r2.isHidden[i_r5])); });
|
|
27937
28048
|
i0.ɵɵtemplate(2, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_Template, 5, 2, "ng-container", 7);
|
|
27938
28049
|
i0.ɵɵelementStart(3, "td")(4, "div", 11)(5, "a", 12);
|
|
27939
28050
|
i0.ɵɵelement(6, "img", 13);
|
|
@@ -28112,7 +28223,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28112
28223
|
return result;
|
|
28113
28224
|
}
|
|
28114
28225
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldCollectionTableComponent_BaseFactory; return function ReadComplexFieldCollectionTableComponent_Factory(t) { return (ɵReadComplexFieldCollectionTableComponent_BaseFactory || (ɵReadComplexFieldCollectionTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldCollectionTableComponent)))(t || ReadComplexFieldCollectionTableComponent); }; })();
|
|
28115
|
-
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", "
|
|
28226
|
+
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", "keyup.enter", "innerHTML"], [1, "new-table-row", "accordion-heading", 3, "keyup", "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) {
|
|
28116
28227
|
i0.ɵɵelementStart(0, "div", 2)(1, "dl", 3)(2, "dt")(3, "span", 4);
|
|
28117
28228
|
i0.ɵɵtext(4);
|
|
28118
28229
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -28120,7 +28231,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28120
28231
|
i0.ɵɵelement(6, "dd");
|
|
28121
28232
|
i0.ɵɵelementEnd();
|
|
28122
28233
|
i0.ɵɵelementStart(7, "table", 5)(8, "tbody")(9, "tr");
|
|
28123
|
-
i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template,
|
|
28234
|
+
i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template, 6, 7, "th", 6);
|
|
28124
28235
|
i0.ɵɵelement(11, "th");
|
|
28125
28236
|
i0.ɵɵelementEnd();
|
|
28126
28237
|
i0.ɵɵtemplate(12, ReadComplexFieldCollectionTableComponent_ng_container_12_Template, 15, 19, "ng-container", 7);
|
|
@@ -28137,7 +28248,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28137
28248
|
}
|
|
28138
28249
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldCollectionTableComponent, [{
|
|
28139
28250
|
type: Component,
|
|
28140
|
-
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=\"
|
|
28251
|
+
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 (keyup.enter)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [attr.aria-label]=\"'Sort ' + columnsAllLabels[heading].label | rpxTranslate\"\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\" (keyup)=\"$event.key === 'Enter' ? (isHidden[i] = !isHidden[i]) : null\" (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"] }]
|
|
28141
28252
|
}], null, null); })();
|
|
28142
28253
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldCollectionTableComponent, { className: "ReadComplexFieldCollectionTableComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-collection-table.component.ts", lineNumber: 12 }); })();
|
|
28143
28254
|
|
|
@@ -30492,7 +30603,7 @@ ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1
|
|
|
30492
30603
|
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
30493
30604
|
i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
|
|
30494
30605
|
QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
30495
|
-
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.
|
|
30606
|
+
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,
|
|
30496
30607
|
QueryWriteDateInputComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
30497
30608
|
i0.ɵɵsetComponentScope(QueryCheckYourAnswersComponent, function () { return [i5.NgForOf, i5.NgIf, QueryCaseDetailsHeaderComponent,
|
|
30498
30609
|
QueryAttachmentsReadComponent,
|
|
@@ -31714,28 +31825,28 @@ function PaginationComponent_ul_4_li_5_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
31714
31825
|
i0.ɵɵadvance(3);
|
|
31715
31826
|
i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(9, 12, page_r6.label, ""));
|
|
31716
31827
|
} }
|
|
31717
|
-
function
|
|
31718
|
-
i0.ɵɵ
|
|
31719
|
-
i0.ɵɵelementStart(1, "span", 13);
|
|
31828
|
+
function PaginationComponent_ul_4_li_5_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
31829
|
+
i0.ɵɵelementStart(0, "a", 15)(1, "span", 13);
|
|
31720
31830
|
i0.ɵɵtext(2);
|
|
31721
31831
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
31722
31832
|
i0.ɵɵelementEnd();
|
|
31723
31833
|
i0.ɵɵelementStart(4, "span");
|
|
31724
31834
|
i0.ɵɵtext(5);
|
|
31725
31835
|
i0.ɵɵpipe(6, "number");
|
|
31726
|
-
i0.ɵɵelementEnd();
|
|
31727
|
-
i0.ɵɵelementContainerEnd();
|
|
31836
|
+
i0.ɵɵelementEnd()();
|
|
31728
31837
|
} if (rf & 2) {
|
|
31729
31838
|
const page_r6 = i0.ɵɵnextContext().$implicit;
|
|
31730
31839
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
31731
|
-
i0.ɵɵadvance(
|
|
31732
|
-
i0.ɵɵ
|
|
31840
|
+
i0.ɵɵadvance();
|
|
31841
|
+
i0.ɵɵattribute("current", page_r6)("aria-label", ctx_r3.screenReaderCurrentLabel);
|
|
31842
|
+
i0.ɵɵadvance();
|
|
31843
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 4, ctx_r3.screenReaderCurrentLabel), " ");
|
|
31733
31844
|
i0.ɵɵadvance(3);
|
|
31734
|
-
i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(6,
|
|
31845
|
+
i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(6, 6, page_r6.label, ""));
|
|
31735
31846
|
} }
|
|
31736
31847
|
function PaginationComponent_ul_4_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
31737
31848
|
i0.ɵɵelementStart(0, "li");
|
|
31738
|
-
i0.ɵɵtemplate(1, PaginationComponent_ul_4_li_5_a_1_Template, 10, 15, "a", 10)(2,
|
|
31849
|
+
i0.ɵɵtemplate(1, PaginationComponent_ul_4_li_5_a_1_Template, 10, 15, "a", 10)(2, PaginationComponent_ul_4_li_5_a_2_Template, 7, 9, "a", 14);
|
|
31739
31850
|
i0.ɵɵelementEnd();
|
|
31740
31851
|
} if (rf & 2) {
|
|
31741
31852
|
const page_r6 = ctx.$implicit;
|
|
@@ -31782,7 +31893,7 @@ function PaginationComponent_ul_4_li_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
31782
31893
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ctx_r3.screenReaderPageLabel));
|
|
31783
31894
|
} }
|
|
31784
31895
|
function PaginationComponent_ul_4_li_6_Template(rf, ctx) { if (rf & 1) {
|
|
31785
|
-
i0.ɵɵelementStart(0, "li",
|
|
31896
|
+
i0.ɵɵelementStart(0, "li", 16);
|
|
31786
31897
|
i0.ɵɵtemplate(1, PaginationComponent_ul_4_li_6_a_1_Template, 7, 9, "a", 10)(2, PaginationComponent_ul_4_li_6_span_2_Template, 6, 6, "span", 11);
|
|
31787
31898
|
i0.ɵɵelementEnd();
|
|
31788
31899
|
} if (rf & 2) {
|
|
@@ -31853,7 +31964,7 @@ class PaginationComponent {
|
|
|
31853
31964
|
this.pResponsive = coerceToBoolean(value);
|
|
31854
31965
|
}
|
|
31855
31966
|
static ɵfac = function PaginationComponent_Factory(t) { return new (t || PaginationComponent)(); };
|
|
31856
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["ccd-pagination"]], inputs: { visibilityLabel: "visibilityLabel", id: "id", maxSize: "maxSize", previousLabel: "previousLabel", nextLabel: "nextLabel", screenReaderPaginationLabel: "screenReaderPaginationLabel", screenReaderPageLabel: "screenReaderPageLabel", screenReaderCurrentLabel: "screenReaderCurrentLabel", directionLinks: "directionLinks", autoHide: "autoHide", responsive: "responsive" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, decls: 5, vars: 6, consts: [["p", "paginationApi"], [3, "pageChange", "pageBoundsCorrection", "id", "maxSize"], ["role", "navigation"], ["class", "ngx-pagination", 3, "responsive", 4, "ngIf"], [1, "ngx-pagination"], ["class", "pagination-previous", 3, "disabled", 4, "ngIf"], [1, "small-screen"], [3, "current", "ellipsis", 4, "ngFor", "ngForOf"], ["class", "pagination-next", 3, "disabled", 4, "ngIf"], [1, "pagination-previous"], ["tabindex", "0", 3, "keyup.enter", "click", 4, "ngIf"], [4, "ngIf"], ["tabindex", "0", 3, "keyup.enter", "click"], [1, "show-for-sr"], [1, "pagination-next"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31967
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["ccd-pagination"]], inputs: { visibilityLabel: "visibilityLabel", id: "id", maxSize: "maxSize", previousLabel: "previousLabel", nextLabel: "nextLabel", screenReaderPaginationLabel: "screenReaderPaginationLabel", screenReaderPageLabel: "screenReaderPageLabel", screenReaderCurrentLabel: "screenReaderCurrentLabel", directionLinks: "directionLinks", autoHide: "autoHide", responsive: "responsive" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, decls: 5, vars: 6, consts: [["p", "paginationApi"], [3, "pageChange", "pageBoundsCorrection", "id", "maxSize"], ["role", "navigation"], ["class", "ngx-pagination", 3, "responsive", 4, "ngIf"], [1, "ngx-pagination"], ["class", "pagination-previous", 3, "disabled", 4, "ngIf"], [1, "small-screen"], [3, "current", "ellipsis", 4, "ngFor", "ngForOf"], ["class", "pagination-next", 3, "disabled", 4, "ngIf"], [1, "pagination-previous"], ["tabindex", "0", 3, "keyup.enter", "click", 4, "ngIf"], [4, "ngIf"], ["tabindex", "0", 3, "keyup.enter", "click"], [1, "show-for-sr"], ["tabindex", "0", 4, "ngIf"], ["tabindex", "0"], [1, "pagination-next"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31857
31968
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
31858
31969
|
i0.ɵɵelementStart(0, "pagination-template", 1, 0);
|
|
31859
31970
|
i0.ɵɵlistener("pageChange", function PaginationComponent_Template_pagination_template_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageChange.emit($event)); })("pageBoundsCorrection", function PaginationComponent_Template_pagination_template_pageBoundsCorrection_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageBoundsCorrection.emit($event)); });
|
|
@@ -31868,11 +31979,11 @@ class PaginationComponent {
|
|
|
31868
31979
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 4, "Pagination"));
|
|
31869
31980
|
i0.ɵɵadvance(2);
|
|
31870
31981
|
i0.ɵɵproperty("ngIf", !(ctx.autoHide && p_r3.pages.length <= 1));
|
|
31871
|
-
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$3.PaginationControlsDirective, i5.DecimalPipe, i1.RpxTranslatePipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%]:after{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
31982
|
+
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$3.PaginationControlsDirective, i5.DecimalPipe, i1.RpxTranslatePipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%]:after{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900;text-decoration:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
31872
31983
|
}
|
|
31873
31984
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
31874
31985
|
type: Component,
|
|
31875
|
-
args: [{ selector: 'ccd-pagination', template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" [attr.aria-label]=\"'Pagination' | rpxTranslate\">\n <ul class=\"ngx-pagination\" [attr.aria-label]=\"screenReaderPaginationLabel | rpxTranslate\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\" [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\" [attr.aria-label]=\"(page.label === '...') ? ('Change pagination range' | rpxTranslate) : ('Page ' | rpxTranslate) + (page.label | number:'')\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <
|
|
31986
|
+
args: [{ selector: 'ccd-pagination', template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" [attr.aria-label]=\"'Pagination' | rpxTranslate\">\n <ul class=\"ngx-pagination\" [attr.aria-label]=\"screenReaderPaginationLabel | rpxTranslate\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\" [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\" [attr.aria-label]=\"(page.label === '...') ? ('Change pagination range' | rpxTranslate) : ('Page ' | rpxTranslate) + (page.label | number:'')\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <a tabindex=\"0\" *ngIf=\"p.getCurrent() === page.value\">\n <span class=\"show-for-sr\" [attr.current]=\"page\" [attr.aria-label]=\"screenReaderCurrentLabel\">{{ screenReaderCurrentLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n </li>\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\"\n [attr.aria-label]=\"'Next page' | rpxTranslate\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isLastPage()\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n </ul>\n </nav>\n</pagination-template>\n", styles: [".ngx-pagination{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination:before,.ngx-pagination:after{content:\" \";display:table}.ngx-pagination:after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination li{display:inline-block}.ngx-pagination a,.ngx-pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination a:hover,.ngx-pagination button:hover{background:#e6e6e6}.ngx-pagination .current{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900;text-decoration:none}.ngx-pagination .disabled{display:none}.ngx-pagination .disabled:hover{background:transparent}.ngx-pagination a,.ngx-pagination button{cursor:pointer}.ngx-pagination .pagination-previous a:before,.ngx-pagination .pagination-previous.disabled:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination .pagination-next a:after,.ngx-pagination .pagination-next.disabled:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination .small-screen{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive .small-screen{display:inline-block}.ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}\n"] }]
|
|
31876
31987
|
}], null, { visibilityLabel: [{
|
|
31877
31988
|
type: Input
|
|
31878
31989
|
}], id: [{
|
|
@@ -31903,10 +32014,10 @@ class PaginationComponent {
|
|
|
31903
32014
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "lib/shared/components/pagination/pagination.component.ts", lineNumber: 12 }); })();
|
|
31904
32015
|
|
|
31905
32016
|
const _c0$c = (a0, a1, a2) => ({ itemsPerPage: a0, currentPage: a1, totalItems: a2 });
|
|
31906
|
-
function
|
|
32017
|
+
function CaseListComponent_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
31907
32018
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
31908
|
-
i0.ɵɵelementStart(0, "
|
|
31909
|
-
i0.ɵɵlistener("change", function
|
|
32019
|
+
i0.ɵɵelementStart(0, "td", 8)(1, "div", 9)(2, "input", 10);
|
|
32020
|
+
i0.ɵɵlistener("change", function CaseListComponent_td_6_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.selectAll()); });
|
|
31910
32021
|
i0.ɵɵelementEnd();
|
|
31911
32022
|
i0.ɵɵelement(3, "label", 11);
|
|
31912
32023
|
i0.ɵɵelementEnd()();
|
|
@@ -31914,9 +32025,11 @@ function CaseListComponent_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
31914
32025
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
31915
32026
|
i0.ɵɵadvance(2);
|
|
31916
32027
|
i0.ɵɵproperty("checked", ctx_r1.allOnPageSelected())("disabled", !ctx_r1.canAnyBeShared());
|
|
32028
|
+
i0.ɵɵadvance();
|
|
32029
|
+
i0.ɵɵattribute("aria-labelledby", "select-all");
|
|
31917
32030
|
} }
|
|
31918
32031
|
function CaseListComponent_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
31919
|
-
i0.ɵɵelementStart(0, "th",
|
|
32032
|
+
i0.ɵɵelementStart(0, "th", 12);
|
|
31920
32033
|
i0.ɵɵtext(1);
|
|
31921
32034
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
31922
32035
|
i0.ɵɵelementEnd();
|
|
@@ -31925,22 +32038,25 @@ function CaseListComponent_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
31925
32038
|
i0.ɵɵadvance();
|
|
31926
32039
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, h_r3.header));
|
|
31927
32040
|
} }
|
|
31928
|
-
function
|
|
32041
|
+
function CaseListComponent_ng_container_9_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
31929
32042
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
31930
|
-
i0.ɵɵelementStart(0, "
|
|
31931
|
-
i0.ɵɵlistener("change", function
|
|
32043
|
+
i0.ɵɵelementStart(0, "td", 15)(1, "div", 9)(2, "input", 16);
|
|
32044
|
+
i0.ɵɵlistener("change", function CaseListComponent_ng_container_9_td_2_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r4); const c_r5 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeSelection(c_r5)); })("keyup", function CaseListComponent_ng_container_9_td_2_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r4); const c_r5 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onKeyUp($event, c_r5)); });
|
|
31932
32045
|
i0.ɵɵelementEnd();
|
|
31933
|
-
i0.ɵɵelement(3, "label",
|
|
32046
|
+
i0.ɵɵelement(3, "label", 17);
|
|
31934
32047
|
i0.ɵɵelementEnd()();
|
|
31935
32048
|
} if (rf & 2) {
|
|
31936
|
-
const
|
|
32049
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
32050
|
+
const c_r5 = ctx_r5.$implicit;
|
|
32051
|
+
const i_r7 = ctx_r5.index;
|
|
31937
32052
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
31938
32053
|
i0.ɵɵadvance(2);
|
|
31939
|
-
i0.ɵɵpropertyInterpolate1("id", "select-", c_r5[ctx_r1.tableConfig.idField], "");
|
|
31940
|
-
i0.ɵɵpropertyInterpolate1("name", "select-", c_r5[ctx_r1.tableConfig.idField], "");
|
|
32054
|
+
i0.ɵɵpropertyInterpolate1("id", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
|
|
32055
|
+
i0.ɵɵpropertyInterpolate1("name", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
|
|
31941
32056
|
i0.ɵɵproperty("checked", ctx_r1.isSelected(c_r5))("disabled", !ctx_r1.canBeShared(c_r5));
|
|
31942
32057
|
i0.ɵɵadvance();
|
|
31943
|
-
i0.ɵɵpropertyInterpolate1("for", "select-", c_r5[ctx_r1.tableConfig.idField], "");
|
|
32058
|
+
i0.ɵɵpropertyInterpolate1("for", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
|
|
32059
|
+
i0.ɵɵattribute("aria-labelledby", "select-" + (c_r5[ctx_r1.tableConfig.idField] || i_r7));
|
|
31944
32060
|
} }
|
|
31945
32061
|
function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
31946
32062
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -31948,52 +32064,52 @@ function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Tem
|
|
|
31948
32064
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
31949
32065
|
i0.ɵɵelementContainerEnd();
|
|
31950
32066
|
} if (rf & 2) {
|
|
31951
|
-
const
|
|
32067
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
31952
32068
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31953
32069
|
i0.ɵɵadvance();
|
|
31954
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[
|
|
32070
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r8.key]));
|
|
31955
32071
|
} }
|
|
31956
32072
|
function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
31957
32073
|
i0.ɵɵelementContainerStart(0);
|
|
31958
|
-
i0.ɵɵelementStart(1, "a",
|
|
32074
|
+
i0.ɵɵelementStart(1, "a", 20);
|
|
31959
32075
|
i0.ɵɵtext(2);
|
|
31960
32076
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
31961
32077
|
i0.ɵɵelementEnd();
|
|
31962
32078
|
i0.ɵɵelementContainerEnd();
|
|
31963
32079
|
} if (rf & 2) {
|
|
31964
|
-
const
|
|
32080
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
31965
32081
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31966
32082
|
i0.ɵɵadvance();
|
|
31967
32083
|
i0.ɵɵproperty("routerLink", c_r5.routerLink);
|
|
31968
32084
|
i0.ɵɵadvance();
|
|
31969
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[
|
|
32085
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r8.key]));
|
|
31970
32086
|
} }
|
|
31971
32087
|
function CaseListComponent_ng_container_9_ng_container_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
31972
|
-
i0.ɵɵelementStart(0, "th",
|
|
31973
|
-
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template, 3, 3, "ng-container",
|
|
32088
|
+
i0.ɵɵelementStart(0, "th", 15);
|
|
32089
|
+
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template, 3, 3, "ng-container", 19)(2, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_2_Template, 4, 4, "ng-container", 19);
|
|
31974
32090
|
i0.ɵɵelementEnd();
|
|
31975
32091
|
} if (rf & 2) {
|
|
31976
|
-
const
|
|
32092
|
+
const col_r8 = i0.ɵɵnextContext().$implicit;
|
|
31977
32093
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31978
32094
|
i0.ɵɵadvance();
|
|
31979
|
-
i0.ɵɵproperty("ngIf", !
|
|
32095
|
+
i0.ɵɵproperty("ngIf", !col_r8.type || col_r8.type === "text");
|
|
31980
32096
|
i0.ɵɵadvance();
|
|
31981
|
-
i0.ɵɵproperty("ngIf",
|
|
32097
|
+
i0.ɵɵproperty("ngIf", col_r8.type === "link" && c_r5.routerLink);
|
|
31982
32098
|
} }
|
|
31983
32099
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
31984
32100
|
i0.ɵɵelementContainerStart(0);
|
|
31985
|
-
i0.ɵɵelementStart(1, "a",
|
|
32101
|
+
i0.ɵɵelementStart(1, "a", 20);
|
|
31986
32102
|
i0.ɵɵtext(2);
|
|
31987
32103
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
31988
32104
|
i0.ɵɵelementEnd();
|
|
31989
32105
|
i0.ɵɵelementContainerEnd();
|
|
31990
32106
|
} if (rf & 2) {
|
|
31991
|
-
const
|
|
32107
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
31992
32108
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31993
32109
|
i0.ɵɵadvance();
|
|
31994
32110
|
i0.ɵɵproperty("routerLink", c_r5.routerLink);
|
|
31995
32111
|
i0.ɵɵadvance();
|
|
31996
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[
|
|
32112
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r8.key]));
|
|
31997
32113
|
} }
|
|
31998
32114
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
31999
32115
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -32001,32 +32117,32 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Tem
|
|
|
32001
32117
|
i0.ɵɵpipe(2, "currency");
|
|
32002
32118
|
i0.ɵɵelementContainerEnd();
|
|
32003
32119
|
} if (rf & 2) {
|
|
32004
|
-
const
|
|
32120
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
32005
32121
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32006
32122
|
i0.ɵɵadvance();
|
|
32007
|
-
i0.ɵɵtextInterpolate1("-", i0.ɵɵpipeBind2(2, 1, c_r5[
|
|
32123
|
+
i0.ɵɵtextInterpolate1("-", i0.ɵɵpipeBind2(2, 1, c_r5[col_r8.key], "GBP"), "");
|
|
32008
32124
|
} }
|
|
32009
32125
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
32010
32126
|
i0.ɵɵelementContainerStart(0);
|
|
32011
32127
|
i0.ɵɵtext(1);
|
|
32012
32128
|
i0.ɵɵelementContainerEnd();
|
|
32013
32129
|
} if (rf & 2) {
|
|
32014
|
-
const
|
|
32130
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
32015
32131
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32016
32132
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
32017
32133
|
i0.ɵɵadvance();
|
|
32018
|
-
i0.ɵɵtextInterpolate(ctx_r1.formatDate(c_r5[
|
|
32134
|
+
i0.ɵɵtextInterpolate(ctx_r1.formatDate(c_r5[col_r8.key]));
|
|
32019
32135
|
} }
|
|
32020
32136
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
32021
32137
|
i0.ɵɵelementContainerStart(0);
|
|
32022
32138
|
i0.ɵɵtext(1);
|
|
32023
32139
|
i0.ɵɵelementContainerEnd();
|
|
32024
32140
|
} if (rf & 2) {
|
|
32025
|
-
const
|
|
32141
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
32026
32142
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32027
32143
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
32028
32144
|
i0.ɵɵadvance();
|
|
32029
|
-
i0.ɵɵtextInterpolate(ctx_r1.formatDateAtTime(c_r5[
|
|
32145
|
+
i0.ɵɵtextInterpolate(ctx_r1.formatDateAtTime(c_r5[col_r8.key]));
|
|
32030
32146
|
} }
|
|
32031
32147
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
32032
32148
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -32034,21 +32150,21 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Tem
|
|
|
32034
32150
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
32035
32151
|
i0.ɵɵelementContainerEnd();
|
|
32036
32152
|
} if (rf & 2) {
|
|
32037
|
-
const
|
|
32153
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
32038
32154
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32039
32155
|
i0.ɵɵadvance();
|
|
32040
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[
|
|
32156
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r8.key]));
|
|
32041
32157
|
} }
|
|
32042
32158
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
32043
|
-
i0.ɵɵelementStart(0, "td",
|
|
32044
|
-
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template, 4, 4, "ng-container",
|
|
32159
|
+
i0.ɵɵelementStart(0, "td", 21);
|
|
32160
|
+
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template, 4, 4, "ng-container", 19)(2, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Template, 3, 4, "ng-container", 22)(3, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_3_Template, 2, 1, "ng-container", 22)(4, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_4_Template, 2, 1, "ng-container", 22)(5, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Template, 3, 3, "ng-container", 23);
|
|
32045
32161
|
i0.ɵɵelementEnd();
|
|
32046
32162
|
} if (rf & 2) {
|
|
32047
|
-
const
|
|
32163
|
+
const col_r8 = i0.ɵɵnextContext().$implicit;
|
|
32048
32164
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32049
|
-
i0.ɵɵproperty("ngSwitch",
|
|
32165
|
+
i0.ɵɵproperty("ngSwitch", col_r8 == null ? null : col_r8.type);
|
|
32050
32166
|
i0.ɵɵadvance();
|
|
32051
|
-
i0.ɵɵproperty("ngIf",
|
|
32167
|
+
i0.ɵɵproperty("ngIf", col_r8.type === "link" && c_r5.routerLink);
|
|
32052
32168
|
i0.ɵɵadvance();
|
|
32053
32169
|
i0.ɵɵproperty("ngSwitchCase", "money");
|
|
32054
32170
|
i0.ɵɵadvance();
|
|
@@ -32058,20 +32174,20 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_Template(rf, ctx)
|
|
|
32058
32174
|
} }
|
|
32059
32175
|
function CaseListComponent_ng_container_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
32060
32176
|
i0.ɵɵelementContainerStart(0);
|
|
32061
|
-
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_Template, 3, 2, "th",
|
|
32177
|
+
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_Template, 3, 2, "th", 14)(2, CaseListComponent_ng_container_9_ng_container_3_td_2_Template, 6, 5, "td", 18);
|
|
32062
32178
|
i0.ɵɵelementContainerEnd();
|
|
32063
32179
|
} if (rf & 2) {
|
|
32064
|
-
const
|
|
32180
|
+
const isFirst_r9 = ctx.first;
|
|
32065
32181
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
32066
32182
|
i0.ɵɵadvance();
|
|
32067
|
-
i0.ɵɵproperty("ngIf",
|
|
32183
|
+
i0.ɵɵproperty("ngIf", isFirst_r9 && ctx_r1.firstCellIsHeader);
|
|
32068
32184
|
i0.ɵɵadvance();
|
|
32069
|
-
i0.ɵɵproperty("ngIf", !(
|
|
32185
|
+
i0.ɵɵproperty("ngIf", !(isFirst_r9 && ctx_r1.firstCellIsHeader));
|
|
32070
32186
|
} }
|
|
32071
32187
|
function CaseListComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
32072
32188
|
i0.ɵɵelementContainerStart(0);
|
|
32073
|
-
i0.ɵɵelementStart(1, "tr",
|
|
32074
|
-
i0.ɵɵtemplate(2,
|
|
32189
|
+
i0.ɵɵelementStart(1, "tr", 13);
|
|
32190
|
+
i0.ɵɵtemplate(2, CaseListComponent_ng_container_9_td_2_Template, 4, 9, "td", 14)(3, CaseListComponent_ng_container_9_ng_container_3_Template, 3, 2, "ng-container", 6);
|
|
32075
32191
|
i0.ɵɵelementEnd();
|
|
32076
32192
|
i0.ɵɵelementContainerEnd();
|
|
32077
32193
|
} if (rf & 2) {
|
|
@@ -32082,9 +32198,9 @@ function CaseListComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
32082
32198
|
i0.ɵɵproperty("ngForOf", ctx_r1.tableConfig.columnConfigs);
|
|
32083
32199
|
} }
|
|
32084
32200
|
function CaseListComponent_ccd_pagination_11_Template(rf, ctx) { if (rf & 1) {
|
|
32085
|
-
const
|
|
32086
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
32087
|
-
i0.ɵɵlistener("pageChange", function CaseListComponent_ccd_pagination_11_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
32201
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
32202
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 24);
|
|
32203
|
+
i0.ɵɵlistener("pageChange", function CaseListComponent_ccd_pagination_11_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.goToPage($event)); });
|
|
32088
32204
|
i0.ɵɵelementEnd();
|
|
32089
32205
|
} }
|
|
32090
32206
|
class DateTimeFormatUtils {
|
|
@@ -32184,13 +32300,13 @@ class CaseListComponent {
|
|
|
32184
32300
|
this.pageChange.emit(pageNumber);
|
|
32185
32301
|
}
|
|
32186
32302
|
static ɵfac = function CaseListComponent_Factory(t) { return new (t || CaseListComponent)(i0.ɵɵdirectiveInject(BrowserService)); };
|
|
32187
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseListComponent, selectors: [["ccd-case-list"]], inputs: { classes: "classes", caption: "caption", firstCellIsHeader: "firstCellIsHeader", cases: "cases", tableConfig: "tableConfig", selectionEnabled: "selectionEnabled", selectedCases: "selectedCases", currentPageNo: "currentPageNo", totalResultsCount: "totalResultsCount", pageSize: "pageSize" }, outputs: { selection: "selection", pageChange: "pageChange" }, decls: 12, vars: 17, consts: [[1, "govuk-table__caption"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["class", "govuk-table__header",
|
|
32303
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseListComponent, selectors: [["ccd-case-list"]], inputs: { classes: "classes", caption: "caption", firstCellIsHeader: "firstCellIsHeader", cases: "cases", tableConfig: "tableConfig", selectionEnabled: "selectionEnabled", selectedCases: "selectedCases", currentPageNo: "currentPageNo", totalResultsCount: "totalResultsCount", pageSize: "pageSize" }, outputs: { selection: "selection", pageChange: "pageChange" }, decls: 12, vars: 17, consts: [[1, "govuk-table__caption"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["class", "govuk-table__header", 4, "ngIf"], ["class", "govuk-table__header", "scope", "col", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], [4, "ngFor", "ngForOf"], [3, "pageChange", 4, "ngIf"], [1, "govuk-table__header"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "govuk-table__header"], ["data-selector", "table-row", 1, "govuk-table__row"], ["data-selector", "table-header", "class", "govuk-table__header", "scope", "row", 4, "ngIf"], ["data-selector", "table-header", "scope", "row", 1, "govuk-table__header"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["data-selector", "table-cell", "class", "govuk-table__cell", 3, "ngSwitch", 4, "ngIf"], [4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["data-selector", "table-cell", 1, "govuk-table__cell", 3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "pageChange"]], template: function CaseListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32188
32304
|
i0.ɵɵelementStart(0, "table")(1, "caption", 0);
|
|
32189
32305
|
i0.ɵɵtext(2);
|
|
32190
32306
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
32191
32307
|
i0.ɵɵelementEnd();
|
|
32192
32308
|
i0.ɵɵelementStart(4, "thead", 1)(5, "tr", 2);
|
|
32193
|
-
i0.ɵɵtemplate(6,
|
|
32309
|
+
i0.ɵɵtemplate(6, CaseListComponent_td_6_Template, 4, 3, "td", 3)(7, CaseListComponent_th_7_Template, 3, 3, "th", 4);
|
|
32194
32310
|
i0.ɵɵelementEnd()();
|
|
32195
32311
|
i0.ɵɵelementStart(8, "tbody", 5);
|
|
32196
32312
|
i0.ɵɵtemplate(9, CaseListComponent_ng_container_9_Template, 4, 2, "ng-container", 6);
|
|
@@ -32213,7 +32329,7 @@ class CaseListComponent {
|
|
|
32213
32329
|
}
|
|
32214
32330
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
|
|
32215
32331
|
type: Component,
|
|
32216
|
-
args: [{ selector: 'ccd-case-list', template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption | rpxTranslate}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <
|
|
32332
|
+
args: [{ selector: 'ccd-case-list', template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption | rpxTranslate}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" *ngIf=\"selectionEnabled\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\"\n [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <!-- This label element is used to hide the standard checkbox with a govuk-styled one -->\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th class=\"govuk-table__header\" scope=\"col\" *ngFor=\"let h of tableConfig.columnConfigs\">{{h.header | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <ng-container *ngFor=\"let c of cases | paginate: { itemsPerPage: pageSize, currentPage: currentPageNo, totalItems: totalResultsCount }; index as i\">\n <tr data-selector=\"table-row\" class=\"govuk-table__row\">\n <td data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"selectionEnabled\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ c[tableConfig.idField] || i }}\" name=\"select-{{ c[tableConfig.idField] || i }}\"\n type=\"checkbox\" (change)=\"changeSelection(c)\" [checked]=\"isSelected(c)\" [disabled]=\"!canBeShared(c)\" (keyup)=\"onKeyUp($event, c)\" />\n <!-- This label element is used to hide the standard checkbox with a govuk-styled one -->\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ c[tableConfig.idField] || i }}\" [attr.aria-labelledby]=\"'select-' + (c[tableConfig.idField] || i)\">\n </label>\n </div>\n </td>\n <ng-container *ngFor=\"let col of tableConfig.columnConfigs; first as isFirst\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"isFirst && firstCellIsHeader\">\n <ng-container *ngIf=\"!col.type || col.type === 'text'\">{{c[col.key] | rpxTranslate}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && c.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"c.routerLink\">{{c[col.key] | rpxTranslate}}</a>\n </ng-container>\n </th>\n <td data-selector=\"table-cell\" class=\"govuk-table__cell\" *ngIf=\"!(isFirst && firstCellIsHeader)\" [ngSwitch]=\"col?.type\">\n <ng-container *ngIf=\"col.type === 'link' && c.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"c.routerLink\">{{c[col.key] | rpxTranslate}}</a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'money'\">-{{ c[col.key] | currency:'GBP' }}</ng-container>\n <ng-container *ngSwitchCase=\"'date'\">{{formatDate(c[col.key])}}</ng-container>\n <ng-container *ngSwitchCase=\"'dateAtTime'\">{{formatDateAtTime(c[col.key])}}</ng-container>\n <ng-container *ngSwitchDefault>{{c[col.key] | rpxTranslate}}</ng-container>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n</table>\n<ccd-pagination *ngIf=\"totalResultsCount > pageSize\"\n (pageChange)=\"goToPage($event)\"\n></ccd-pagination>\n" }]
|
|
32217
32333
|
}], () => [{ type: BrowserService }], { classes: [{
|
|
32218
32334
|
type: Input
|
|
32219
32335
|
}], caption: [{
|
|
@@ -33038,7 +33154,7 @@ function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_4_Template
|
|
|
33038
33154
|
i0.ɵɵproperty("caseField", field_r1)("caseReference", ctx_r1.caseHistory.case_id);
|
|
33039
33155
|
} }
|
|
33040
33156
|
function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
33041
|
-
i0.ɵɵelementStart(0, "tr", 17)(1, "
|
|
33157
|
+
i0.ɵɵelementStart(0, "tr", 17)(1, "th", 18);
|
|
33042
33158
|
i0.ɵɵelement(2, "ccd-field-read", 16);
|
|
33043
33159
|
i0.ɵɵelementEnd()();
|
|
33044
33160
|
} if (rf & 2) {
|
|
@@ -33252,7 +33368,7 @@ class CaseHistoryComponent {
|
|
|
33252
33368
|
}
|
|
33253
33369
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseHistoryComponent, [{
|
|
33254
33370
|
type: Component,
|
|
33255
|
-
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 <
|
|
33371
|
+
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"] }]
|
|
33256
33372
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: AlertService }, { type: OrderService }, { type: CaseNotifier }, { type: CaseHistoryService }], { event: [{
|
|
33257
33373
|
type: Input
|
|
33258
33374
|
}] }); })();
|
|
@@ -33458,6 +33574,7 @@ class CaseResolver {
|
|
|
33458
33574
|
static EVENT_REGEX = new RegExp('\/trigger\/.*?\/submit$');
|
|
33459
33575
|
static PARAM_CASE_ID = 'cid';
|
|
33460
33576
|
static CASE_CREATED_MSG = 'The case has been created successfully';
|
|
33577
|
+
static EVENT_ID_QM_RESPOND_TO_QUERY = 'eventId=queryManagementRespondQuery';
|
|
33461
33578
|
static defaultWAPage = '/work/my-work/list';
|
|
33462
33579
|
static defaultPage = '/cases';
|
|
33463
33580
|
// we need to run the CaseResolver on every child route of 'case/:jid/:ctid/:cid'
|
|
@@ -33478,6 +33595,12 @@ class CaseResolver {
|
|
|
33478
33595
|
}
|
|
33479
33596
|
resolve(route) {
|
|
33480
33597
|
const cid = route.paramMap.get(CaseResolver.PARAM_CASE_ID);
|
|
33598
|
+
const currentUrl = this.router.url ?? '';
|
|
33599
|
+
// Prevent resolving if eventId=queryManagementRespondQuery is in the URL
|
|
33600
|
+
if (currentUrl.includes(CaseResolver.EVENT_ID_QM_RESPOND_TO_QUERY)) {
|
|
33601
|
+
console.info('Skipping resolve for event queryManagementRespondQuery.');
|
|
33602
|
+
this.goToDefaultPage();
|
|
33603
|
+
}
|
|
33481
33604
|
if (!cid) {
|
|
33482
33605
|
console.info('No case ID available in the route. Will navigate to case list.');
|
|
33483
33606
|
// when redirected to case view after a case created, and the user has no READ access,
|
|
@@ -33596,9 +33719,13 @@ class EventTriggerResolver {
|
|
|
33596
33719
|
this.loadingService = loadingService;
|
|
33597
33720
|
}
|
|
33598
33721
|
resolve(route) {
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33722
|
+
if (this.isRootTriggerEventRoute(route)) {
|
|
33723
|
+
return this.getAndCacheEventTrigger(route);
|
|
33724
|
+
}
|
|
33725
|
+
if (this.cachedEventTrigger && (route.params?.eid === this.cachedEventTrigger?.id)) {
|
|
33726
|
+
return Promise.resolve(this.cachedEventTrigger);
|
|
33727
|
+
}
|
|
33728
|
+
return this.getAndCacheEventTrigger(route);
|
|
33602
33729
|
}
|
|
33603
33730
|
isRootTriggerEventRoute(route) {
|
|
33604
33731
|
// if route is 'trigger/:eid'
|
|
@@ -33986,15 +34113,14 @@ function CaseBasicAccessViewComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
33986
34113
|
i0.ɵɵelementEnd();
|
|
33987
34114
|
i0.ɵɵelementStart(4, "dd", 12);
|
|
33988
34115
|
i0.ɵɵtext(5);
|
|
33989
|
-
i0.ɵɵpipe(6, "
|
|
33990
|
-
i0.ɵɵpipe(7, "titlecase");
|
|
34116
|
+
i0.ɵɵpipe(6, "titlecase");
|
|
33991
34117
|
i0.ɵɵelementEnd()();
|
|
33992
34118
|
} if (rf & 2) {
|
|
33993
34119
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33994
34120
|
i0.ɵɵadvance(2);
|
|
33995
34121
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Court or hearing centre"));
|
|
33996
34122
|
i0.ɵɵadvance(3);
|
|
33997
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
34123
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.courtOrHearingCentre));
|
|
33998
34124
|
} }
|
|
33999
34125
|
function CaseBasicAccessViewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
34000
34126
|
i0.ɵɵelementStart(0, "div", 10)(1, "dt", 11);
|
|
@@ -34069,7 +34195,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34069
34195
|
i0.ɵɵpipe(13, "rpxTranslate");
|
|
34070
34196
|
i0.ɵɵelementEnd();
|
|
34071
34197
|
i0.ɵɵelementStart(14, "dl", 4);
|
|
34072
|
-
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,
|
|
34198
|
+
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);
|
|
34073
34199
|
i0.ɵɵelementEnd()();
|
|
34074
34200
|
i0.ɵɵelementStart(20, "div", 6)(21, "button", 7);
|
|
34075
34201
|
i0.ɵɵtext(22);
|
|
@@ -34114,7 +34240,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34114
34240
|
}
|
|
34115
34241
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseBasicAccessViewComponent, [{
|
|
34116
34242
|
type: Component,
|
|
34117
|
-
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 |
|
|
34243
|
+
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" }]
|
|
34118
34244
|
}], () => [{ type: CasesService }, { type: i1$1.Router }], { caseDetails: [{
|
|
34119
34245
|
type: Input
|
|
34120
34246
|
}], accessType: [{
|
|
@@ -34351,7 +34477,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34351
34477
|
i0.ɵɵadvance();
|
|
34352
34478
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34353
34479
|
i0.ɵɵadvance(2);
|
|
34354
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)
|
|
34480
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34355
34481
|
} }
|
|
34356
34482
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
34357
34483
|
i0.ɵɵelementStart(0, "tr", 40)(1, "th", 35)(2, "span", 36);
|
|
@@ -34363,14 +34489,14 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34363
34489
|
i0.ɵɵadvance();
|
|
34364
34490
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34365
34491
|
i0.ɵɵadvance(2);
|
|
34366
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)
|
|
34492
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34367
34493
|
} }
|
|
34368
34494
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
34369
34495
|
i0.ɵɵelementContainerStart(0);
|
|
34370
34496
|
i0.ɵɵelementStart(1, "div", 30);
|
|
34371
34497
|
i0.ɵɵelementContainerStart(2, 31);
|
|
34372
34498
|
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
34373
|
-
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_Template, 5,
|
|
34499
|
+
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);
|
|
34374
34500
|
i0.ɵɵelementContainerEnd();
|
|
34375
34501
|
i0.ɵɵelementEnd();
|
|
34376
34502
|
i0.ɵɵelementContainerEnd();
|
|
@@ -34488,7 +34614,6 @@ class CaseFullAccessViewComponent {
|
|
|
34488
34614
|
caseSubscription;
|
|
34489
34615
|
errorSubscription;
|
|
34490
34616
|
dialogConfig;
|
|
34491
|
-
markdownUseHrefAsRouterLink;
|
|
34492
34617
|
message;
|
|
34493
34618
|
subscription;
|
|
34494
34619
|
notificationBannerConfig;
|
|
@@ -34532,7 +34657,6 @@ class CaseFullAccessViewComponent {
|
|
|
34532
34657
|
}));
|
|
34533
34658
|
initDialog();
|
|
34534
34659
|
this.init();
|
|
34535
|
-
this.markdownUseHrefAsRouterLink = true;
|
|
34536
34660
|
this.sessionStorageService?.removeItem('eventUrl');
|
|
34537
34661
|
this.subscription = this.convertHrefToRouterService?.getHrefMarkdownLinkContent().subscribe((hrefMarkdownLinkContent) => {
|
|
34538
34662
|
// do not convert router with initial default value; convert to router only on updated link content
|
|
@@ -34867,7 +34991,7 @@ class CaseFullAccessViewComponent {
|
|
|
34867
34991
|
} if (rf & 2) {
|
|
34868
34992
|
let _t;
|
|
34869
34993
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
34870
|
-
} }, 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"
|
|
34994
|
+
} }, 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) {
|
|
34871
34995
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
|
|
34872
34996
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
|
|
34873
34997
|
i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
@@ -34905,7 +35029,7 @@ class CaseFullAccessViewComponent {
|
|
|
34905
35029
|
}
|
|
34906
35030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
34907
35031
|
type: Component,
|
|
34908
|
-
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\"
|
|
35032
|
+
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"] }]
|
|
34909
35033
|
}], () => [{ 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: [{
|
|
34910
35034
|
type: Input
|
|
34911
35035
|
}], hasEventSelector: [{
|
|
@@ -34983,20 +35107,19 @@ function CasePrinterComponent_div_0_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
34983
35107
|
i0.ɵɵelementStart(0, "tr")(1, "td", 4)(2, "a", 5);
|
|
34984
35108
|
i0.ɵɵpipe(3, "ccdPrintUrl");
|
|
34985
35109
|
i0.ɵɵtext(4);
|
|
34986
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
34987
35110
|
i0.ɵɵelementEnd()();
|
|
34988
|
-
i0.ɵɵelementStart(
|
|
34989
|
-
i0.ɵɵtext(
|
|
34990
|
-
i0.ɵɵpipe(
|
|
35111
|
+
i0.ɵɵelementStart(5, "td", 6);
|
|
35112
|
+
i0.ɵɵtext(6);
|
|
35113
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
34991
35114
|
i0.ɵɵelementEnd()();
|
|
34992
35115
|
} if (rf & 2) {
|
|
34993
35116
|
const document_r1 = ctx.$implicit;
|
|
34994
35117
|
i0.ɵɵadvance(2);
|
|
34995
35118
|
i0.ɵɵproperty("href", i0.ɵɵpipeBind1(3, 3, document_r1.url), i0.ɵɵsanitizeUrl);
|
|
34996
35119
|
i0.ɵɵadvance(2);
|
|
34997
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
34998
|
-
i0.ɵɵadvance(
|
|
34999
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
35120
|
+
i0.ɵɵtextInterpolate1(" ", document_r1.name, " ");
|
|
35121
|
+
i0.ɵɵadvance(2);
|
|
35122
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 5, document_r1.type));
|
|
35000
35123
|
} }
|
|
35001
35124
|
function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
35002
35125
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -35016,7 +35139,7 @@ function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
35016
35139
|
i0.ɵɵpipe(14, "rpxTranslate");
|
|
35017
35140
|
i0.ɵɵelementEnd()()();
|
|
35018
35141
|
i0.ɵɵelementStart(15, "tbody");
|
|
35019
|
-
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template,
|
|
35142
|
+
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template, 8, 7, "tr", 3);
|
|
35020
35143
|
i0.ɵɵelementEnd()()();
|
|
35021
35144
|
} if (rf & 2) {
|
|
35022
35145
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -35081,7 +35204,7 @@ class CasePrinterComponent {
|
|
|
35081
35204
|
}
|
|
35082
35205
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePrinterComponent, [{
|
|
35083
35206
|
type: Component,
|
|
35084
|
-
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
|
|
35207
|
+
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" }]
|
|
35085
35208
|
}], () => [{ type: CaseNotifier }, { type: CasesService }, { type: AlertService }], null); })();
|
|
35086
35209
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePrinterComponent, { className: "CasePrinterComponent", filePath: "lib/shared/components/case-viewer/printer/case-printer.component.ts", lineNumber: 14 }); })();
|
|
35087
35210
|
|
|
@@ -38379,7 +38502,7 @@ function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
38379
38502
|
} if (rf & 2) {
|
|
38380
38503
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38381
38504
|
i0.ɵɵadvance();
|
|
38382
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8,
|
|
38505
|
+
i0.ɵɵattribute("aria-label", ctx_r0.getTotalResults() + " " + i0.ɵɵpipeBind1(2, 8, "results have been found"));
|
|
38383
38506
|
i0.ɵɵadvance(3);
|
|
38384
38507
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
38385
38508
|
i0.ɵɵadvance(3);
|
|
@@ -38426,13 +38549,15 @@ function SearchResultComponent_table_0_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
38426
38549
|
function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
38427
38550
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
38428
38551
|
i0.ɵɵelementStart(0, "div", 28)(1, "a", 29);
|
|
38429
|
-
i0.ɵɵ
|
|
38552
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
38553
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); })("keyup.enter", function SearchResultComponent_table_0_th_11_div_5_Template_a_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); });
|
|
38430
38554
|
i0.ɵɵelementEnd()();
|
|
38431
38555
|
} if (rf & 2) {
|
|
38432
38556
|
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
38433
38557
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38434
38558
|
i0.ɵɵadvance();
|
|
38435
38559
|
i0.ɵɵproperty("innerHTML", ctx_r0.sortWidget(col_r5), i0.ɵɵsanitizeHtml);
|
|
38560
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 2, "Sort " + col_r5.label));
|
|
38436
38561
|
} }
|
|
38437
38562
|
function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
38438
38563
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -38441,14 +38566,14 @@ function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
38441
38566
|
i0.ɵɵtext(3);
|
|
38442
38567
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
38443
38568
|
i0.ɵɵelementEnd();
|
|
38444
|
-
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template,
|
|
38569
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 3, 4, "div", 27);
|
|
38445
38570
|
i0.ɵɵelementEnd()();
|
|
38446
38571
|
} if (rf & 2) {
|
|
38447
38572
|
const col_r5 = ctx.$implicit;
|
|
38448
38573
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38449
38574
|
i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
|
|
38450
38575
|
i0.ɵɵadvance(3);
|
|
38451
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
|
|
38576
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.isTranslatable(col_r5) ? i0.ɵɵpipeBind1(4, 3, col_r5.label) : col_r5.label, " ");
|
|
38452
38577
|
i0.ɵɵadvance(2);
|
|
38453
38578
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
38454
38579
|
} }
|
|
@@ -38822,6 +38947,9 @@ class SearchResultComponent {
|
|
|
38822
38947
|
this.selected.page = (changes['page']).currentValue;
|
|
38823
38948
|
}
|
|
38824
38949
|
}
|
|
38950
|
+
isTranslatable(col) {
|
|
38951
|
+
return FieldsUtils.isTranslatable(col.case_field_type);
|
|
38952
|
+
}
|
|
38825
38953
|
get resultTotal() {
|
|
38826
38954
|
const total = this.paginationMetadata.totalResultsCount;
|
|
38827
38955
|
const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
|
|
@@ -39085,7 +39213,7 @@ class SearchResultComponent {
|
|
|
39085
39213
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
39086
39214
|
noop() { }
|
|
39087
39215
|
static ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
39088
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", 4, "ngIf"], ["class", "search-result-column-header", "scope", "col", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", "scope", "col", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], [1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], ["scope", "col", 2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__checkbox"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39216
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", 4, "ngIf"], ["class", "search-result-column-header", "scope", "col", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", "scope", "col", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], [1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "keyup.enter", "innerHTML"], ["scope", "col", 2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__checkbox"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39089
39217
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 1)(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 2)(2, SearchResultComponent_div_2_Template, 4, 6, "div", 3);
|
|
39090
39218
|
} if (rf & 2) {
|
|
39091
39219
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
@@ -39097,7 +39225,7 @@ class SearchResultComponent {
|
|
|
39097
39225
|
}
|
|
39098
39226
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
39099
39227
|
type: Component,
|
|
39100
|
-
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"] }]
|
|
39228
|
+
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)\" (keyup.enter)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" [attr.aria-label]=\"'Sort ' + col.label | rpxTranslate\" 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"] }]
|
|
39101
39229
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
39102
39230
|
type: Input
|
|
39103
39231
|
}], jurisdiction: [{
|