@hmcts/ccd-case-ui-toolkit 7.1.61-qm-task-management → 7.1.62-makdown-eventtrigger
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/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 +57 -6
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +57 -42
- package/esm2022/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.mjs +2 -1
- 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 +500 -356
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +0 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read-label.component.d.ts +1 -2
- package/lib/shared/components/palette/base-field/field-read-label.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts +1 -2
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/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 +2 -0
- 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 +1 -0
- 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,6 +20492,7 @@ 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";
|
|
20495
|
+
RaiseQueryErrorMessage["QUERY_SUBJECT_MAX_LENGTH"] = "Query subject must be less than 201 characters in length";
|
|
20428
20496
|
RaiseQueryErrorMessage["RESPOND_QUERY_BODY"] = "Add a response before continue";
|
|
20429
20497
|
})(RaiseQueryErrorMessage || (RaiseQueryErrorMessage = {}));
|
|
20430
20498
|
|
|
@@ -20790,11 +20858,12 @@ class QueryManagementUtils {
|
|
|
20790
20858
|
static caseLevelCaseFieldId = 'CaseQueriesCollection';
|
|
20791
20859
|
static FIELD_TYPE_COLLECTION = 'Collection';
|
|
20792
20860
|
static FIELD_TYPE_COMPLEX = 'Complex';
|
|
20861
|
+
static DISPLAY_CONTEXT_READONLY = 'READONLY';
|
|
20793
20862
|
static extractCaseQueriesFromCaseField(caseField) {
|
|
20794
|
-
const { field_type, value } = caseField;
|
|
20863
|
+
const { field_type, value, display_context } = caseField;
|
|
20795
20864
|
// Handle Complex type fields
|
|
20796
20865
|
if (field_type.type === QueryManagementUtils.FIELD_TYPE_COMPLEX) {
|
|
20797
|
-
if (field_type.id === QueryManagementUtils.caseLevelCaseFieldId && QueryManagementUtils.isNonEmptyObject(value)) {
|
|
20866
|
+
if (field_type.id === QueryManagementUtils.caseLevelCaseFieldId && display_context !== QueryManagementUtils.DISPLAY_CONTEXT_READONLY && QueryManagementUtils.isNonEmptyObject(value)) {
|
|
20798
20867
|
return value;
|
|
20799
20868
|
}
|
|
20800
20869
|
return null;
|
|
@@ -21066,6 +21135,9 @@ class QueryCheckYourAnswersComponent {
|
|
|
21066
21135
|
CASE_QUERIES_COLLECTION_ID = 'CaseQueriesCollection';
|
|
21067
21136
|
FIELD_TYPE_COMPLEX = 'Complex';
|
|
21068
21137
|
DISPLAY_CONTEXT_READONLY = 'READONLY';
|
|
21138
|
+
QM_SELECT_FIRST_COLLECTION = 'selectFirstCollection';
|
|
21139
|
+
QM_COLLECTION_PROMPT = 'promptQmCollection';
|
|
21140
|
+
CIVIL_JURISDICTION = 'CIVIL';
|
|
21069
21141
|
formGroup;
|
|
21070
21142
|
queryItem;
|
|
21071
21143
|
queryCreateContext;
|
|
@@ -21078,6 +21150,8 @@ class QueryCheckYourAnswersComponent {
|
|
|
21078
21150
|
tid;
|
|
21079
21151
|
createEventSubscription;
|
|
21080
21152
|
searchTasksSubscription;
|
|
21153
|
+
firstCollectionPicked = false; // Track whether the first collection has been picked
|
|
21154
|
+
firstCollectionOrder;
|
|
21081
21155
|
queryCreateContextEnum = QueryCreateContext;
|
|
21082
21156
|
eventCompletionParams;
|
|
21083
21157
|
caseQueriesCollections;
|
|
@@ -21281,10 +21355,17 @@ class QueryCheckYourAnswersComponent {
|
|
|
21281
21355
|
const messageId = this.route.snapshot.params.dataid;
|
|
21282
21356
|
// Check if the field_type matches CaseQueriesCollection and type is Complex
|
|
21283
21357
|
if (data.field_type.id === this.CASE_QUERIES_COLLECTION_ID && data.field_type.type === this.FIELD_TYPE_COMPLEX) {
|
|
21284
|
-
if (this.
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21358
|
+
if (this.isNewQueryContext(data)) {
|
|
21359
|
+
// If there is more than one qmCaseQueriesCollection, pick the one with the lowest order
|
|
21360
|
+
if (count > 1) {
|
|
21361
|
+
if (!this.handleMultipleCollections()) {
|
|
21362
|
+
return;
|
|
21363
|
+
}
|
|
21364
|
+
}
|
|
21365
|
+
else {
|
|
21366
|
+
// Set the field ID dynamically based on the extracted data
|
|
21367
|
+
this.fieldId = id; // Store the ID for use in generating newQueryData
|
|
21368
|
+
}
|
|
21288
21369
|
}
|
|
21289
21370
|
// If messageId is present, find the corresponding case message
|
|
21290
21371
|
this.setMessageFieldId(messageId, value, id);
|
|
@@ -21299,6 +21380,45 @@ class QueryCheckYourAnswersComponent {
|
|
|
21299
21380
|
}
|
|
21300
21381
|
}
|
|
21301
21382
|
}
|
|
21383
|
+
isNewQueryContext(data) {
|
|
21384
|
+
return this.queryCreateContext === QueryCreateContext.NEW_QUERY && data.display_context !== this.DISPLAY_CONTEXT_READONLY;
|
|
21385
|
+
}
|
|
21386
|
+
handleMultipleCollections() {
|
|
21387
|
+
const jurisdictionId = this.caseDetails?.case_type?.jurisdiction?.id;
|
|
21388
|
+
if (!jurisdictionId) {
|
|
21389
|
+
console.error('Jurisdiction ID is missing.');
|
|
21390
|
+
return false;
|
|
21391
|
+
}
|
|
21392
|
+
if (this.getCollectionSelectionMethod(jurisdictionId) === this.QM_SELECT_FIRST_COLLECTION) {
|
|
21393
|
+
// Pick the collection with the lowest order
|
|
21394
|
+
this.fieldId = this.getCaseQueriesCollectionFieldOrderFromWizardPages()?.id;
|
|
21395
|
+
}
|
|
21396
|
+
else {
|
|
21397
|
+
// Display Error, for now, until EXUI-2644 is implemented
|
|
21398
|
+
console.error(`Error: Multiple CaseQueriesCollections are not supported yet for the ${jurisdictionId} jurisdiction`);
|
|
21399
|
+
return false;
|
|
21400
|
+
}
|
|
21401
|
+
return true;
|
|
21402
|
+
}
|
|
21403
|
+
getCaseQueriesCollectionFieldOrderFromWizardPages() {
|
|
21404
|
+
const candidateFields = this.eventData?.case_fields?.filter((field) => field.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
|
|
21405
|
+
field.field_type.type === this.FIELD_TYPE_COMPLEX &&
|
|
21406
|
+
field.display_context !== this.DISPLAY_CONTEXT_READONLY);
|
|
21407
|
+
if (!candidateFields?.length)
|
|
21408
|
+
return undefined;
|
|
21409
|
+
const firstPageFields = this.eventData?.wizard_pages?.[0]?.wizard_page_fields;
|
|
21410
|
+
if (!firstPageFields)
|
|
21411
|
+
return undefined;
|
|
21412
|
+
return candidateFields
|
|
21413
|
+
.map((field) => {
|
|
21414
|
+
const wizardField = firstPageFields.find(f => f.case_field_id === field.id);
|
|
21415
|
+
return { field, order: wizardField?.order ?? Number.MAX_SAFE_INTEGER };
|
|
21416
|
+
})
|
|
21417
|
+
.sort((a, b) => a.order - b.order)[0]?.field;
|
|
21418
|
+
}
|
|
21419
|
+
getCollectionSelectionMethod(jurisdiction) {
|
|
21420
|
+
return jurisdiction.toUpperCase() === this.CIVIL_JURISDICTION ? this.QM_SELECT_FIRST_COLLECTION : this.QM_COLLECTION_PROMPT;
|
|
21421
|
+
}
|
|
21302
21422
|
getDocumentAttachments() {
|
|
21303
21423
|
const attachmentsValue = this.formGroup.get('attachments').value;
|
|
21304
21424
|
if (attachmentsValue && attachmentsValue.length > 0) {
|
|
@@ -21391,7 +21511,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21391
21511
|
}], querySubmitted: [{
|
|
21392
21512
|
type: Output
|
|
21393
21513
|
}] }); })();
|
|
21394
|
-
(() => { (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:
|
|
21514
|
+
(() => { (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 }); })();
|
|
21395
21515
|
|
|
21396
21516
|
function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
|
|
21397
21517
|
i0.ɵɵelementStart(0, "cut-alert", 11);
|
|
@@ -22176,11 +22296,11 @@ function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf &
|
|
|
22176
22296
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22177
22297
|
i0.ɵɵelementEnd();
|
|
22178
22298
|
} if (rf & 2) {
|
|
22179
|
-
const
|
|
22299
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
22180
22300
|
i0.ɵɵadvance(2);
|
|
22181
|
-
i0.ɵɵ
|
|
22301
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
22182
22302
|
i0.ɵɵadvance(2);
|
|
22183
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4,
|
|
22303
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.getSubjectErrorMessage()), " ");
|
|
22184
22304
|
} }
|
|
22185
22305
|
function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
|
|
22186
22306
|
i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
|
|
@@ -22191,11 +22311,11 @@ function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf &
|
|
|
22191
22311
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22192
22312
|
i0.ɵɵelementEnd();
|
|
22193
22313
|
} if (rf & 2) {
|
|
22194
|
-
const
|
|
22314
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
22195
22315
|
i0.ɵɵadvance(2);
|
|
22196
22316
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
22197
22317
|
i0.ɵɵadvance(2);
|
|
22198
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4,
|
|
22318
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_BODY), " ");
|
|
22199
22319
|
} }
|
|
22200
22320
|
function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
|
|
22201
22321
|
i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
|
|
@@ -22206,11 +22326,11 @@ function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf &
|
|
|
22206
22326
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22207
22327
|
i0.ɵɵelementEnd();
|
|
22208
22328
|
} if (rf & 2) {
|
|
22209
|
-
const
|
|
22329
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
22210
22330
|
i0.ɵɵadvance(2);
|
|
22211
22331
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
22212
22332
|
i0.ɵɵadvance(2);
|
|
22213
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4,
|
|
22333
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
|
|
22214
22334
|
} }
|
|
22215
22335
|
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
22216
22336
|
i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
|
|
@@ -22221,11 +22341,11 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, c
|
|
|
22221
22341
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
22222
22342
|
i0.ɵɵelementEnd();
|
|
22223
22343
|
} if (rf & 2) {
|
|
22224
|
-
const
|
|
22344
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
22225
22345
|
i0.ɵɵadvance(2);
|
|
22226
22346
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
22227
22347
|
i0.ɵɵadvance(2);
|
|
22228
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4,
|
|
22348
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
|
|
22229
22349
|
} }
|
|
22230
22350
|
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
|
|
22231
22351
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -22238,15 +22358,16 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx)
|
|
|
22238
22358
|
i0.ɵɵelementEnd()();
|
|
22239
22359
|
i0.ɵɵelementContainerEnd();
|
|
22240
22360
|
} if (rf & 2) {
|
|
22241
|
-
const
|
|
22361
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
22242
22362
|
i0.ɵɵadvance();
|
|
22243
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C,
|
|
22363
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C, ctx_r1.submitted && ctx_r1.formGroup.get("isHearingRelated").value === true && ctx_r1.formGroup.get("hearingDate").value === null));
|
|
22244
22364
|
i0.ɵɵadvance(4);
|
|
22245
22365
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
|
|
22246
22366
|
i0.ɵɵadvance(2);
|
|
22247
|
-
i0.ɵɵproperty("ngIf",
|
|
22367
|
+
i0.ɵɵproperty("ngIf", ctx_r1.submitted && ctx_r1.formGroup.get("isHearingRelated").value === true && ctx_r1.formGroup.get("hearingDate").value === null);
|
|
22248
22368
|
} }
|
|
22249
22369
|
function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
22370
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
22250
22371
|
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
|
|
22251
22372
|
i0.ɵɵtext(6);
|
|
22252
22373
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
@@ -22256,7 +22377,8 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
22256
22377
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
22257
22378
|
i0.ɵɵelementEnd();
|
|
22258
22379
|
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
|
|
22259
|
-
i0.ɵɵ
|
|
22380
|
+
i0.ɵɵelementStart(12, "input", 12);
|
|
22381
|
+
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()); });
|
|
22260
22382
|
i0.ɵɵelementEnd()();
|
|
22261
22383
|
i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
|
|
22262
22384
|
i0.ɵɵtext(16);
|
|
@@ -22288,50 +22410,46 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
22288
22410
|
i0.ɵɵpipe(41, "rpxTranslate");
|
|
22289
22411
|
i0.ɵɵelementEnd()()()();
|
|
22290
22412
|
i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
|
|
22291
|
-
i0.ɵɵelementEnd()()();
|
|
22413
|
+
i0.ɵɵelementEnd()()()();
|
|
22292
22414
|
} if (rf & 2) {
|
|
22293
|
-
|
|
22294
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
22415
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
22295
22416
|
i0.ɵɵadvance();
|
|
22296
|
-
i0.ɵɵproperty("formGroup",
|
|
22417
|
+
i0.ɵɵproperty("formGroup", ctx_r1.formGroup);
|
|
22297
22418
|
i0.ɵɵadvance(2);
|
|
22298
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22419
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(40, _c0$C, ctx_r1.submitted && ctx_r1.formGroup.get("subject").hasError("required")));
|
|
22299
22420
|
i0.ɵɵadvance(3);
|
|
22300
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
22421
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 22, "Query subject"), " ");
|
|
22301
22422
|
i0.ɵɵadvance(3);
|
|
22302
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10,
|
|
22423
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 24, "The subject should be a summary of your query"), " ");
|
|
22303
22424
|
i0.ɵɵadvance(2);
|
|
22304
|
-
i0.ɵɵproperty("ngIf",
|
|
22305
|
-
i0.ɵɵadvance();
|
|
22306
|
-
i0.ɵɵ
|
|
22307
|
-
i0.ɵɵproperty("formControlName", "subject");
|
|
22308
|
-
i0.ɵɵadvance();
|
|
22309
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
|
|
22425
|
+
i0.ɵɵproperty("ngIf", ctx_r1.submitted && (ctx_r1.formGroup.get("subject").hasError("required") || ctx_r1.formGroup.get("subject").hasError("maxlength")));
|
|
22426
|
+
i0.ɵɵadvance(2);
|
|
22427
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(42, _c0$C, ctx_r1.submitted && ctx_r1.formGroup.get("body").hasError("required")));
|
|
22310
22428
|
i0.ɵɵadvance(3);
|
|
22311
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17,
|
|
22429
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 26, "Query detail"), " ");
|
|
22312
22430
|
i0.ɵɵadvance(3);
|
|
22313
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20,
|
|
22431
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 28, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
22314
22432
|
i0.ɵɵadvance(2);
|
|
22315
|
-
i0.ɵɵproperty("ngIf",
|
|
22433
|
+
i0.ɵɵproperty("ngIf", ctx_r1.submitted && ctx_r1.formGroup.get("body").hasError("required"));
|
|
22316
22434
|
i0.ɵɵadvance();
|
|
22317
|
-
i0.ɵɵclassProp("govuk-textarea--error",
|
|
22435
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r1.submitted && ctx_r1.formGroup.get("body").hasError("required"));
|
|
22318
22436
|
i0.ɵɵproperty("formControlName", "body");
|
|
22319
22437
|
i0.ɵɵadvance(2);
|
|
22320
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22438
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(44, _c0$C, ctx_r1.submitted && ctx_r1.formGroup.get("isHearingRelated").hasError("required")));
|
|
22321
22439
|
i0.ɵɵadvance(4);
|
|
22322
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29,
|
|
22440
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 30, "Is the query hearing related?"), " ");
|
|
22323
22441
|
i0.ɵɵadvance(2);
|
|
22324
|
-
i0.ɵɵproperty("ngIf",
|
|
22442
|
+
i0.ɵɵproperty("ngIf", ctx_r1.submitted && ctx_r1.formGroup.get("isHearingRelated").hasError("required"));
|
|
22325
22443
|
i0.ɵɵadvance(3);
|
|
22326
|
-
i0.ɵɵproperty("checked",
|
|
22444
|
+
i0.ɵɵproperty("checked", ctx_r1.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
22327
22445
|
i0.ɵɵadvance(2);
|
|
22328
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36,
|
|
22446
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 32, "Is the query hearing related?", null, "Yes"), " ");
|
|
22329
22447
|
i0.ɵɵadvance(3);
|
|
22330
|
-
i0.ɵɵproperty("checked",
|
|
22448
|
+
i0.ɵɵproperty("checked", ctx_r1.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
22331
22449
|
i0.ɵɵadvance(2);
|
|
22332
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41,
|
|
22450
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 36, "Is the query hearing related?", null, "No"), " ");
|
|
22333
22451
|
i0.ɵɵadvance(2);
|
|
22334
|
-
i0.ɵɵproperty("ngIf",
|
|
22452
|
+
i0.ɵɵproperty("ngIf", ctx_r1.formGroup.get("isHearingRelated").value);
|
|
22335
22453
|
} }
|
|
22336
22454
|
class QueryWriteRaiseQueryComponent {
|
|
22337
22455
|
formGroup;
|
|
@@ -22339,8 +22457,25 @@ class QueryWriteRaiseQueryComponent {
|
|
|
22339
22457
|
caseDetails;
|
|
22340
22458
|
showForm;
|
|
22341
22459
|
raiseQueryErrorMessage = RaiseQueryErrorMessage;
|
|
22460
|
+
onSubjectInput() {
|
|
22461
|
+
const control = this.formGroup.get('subject');
|
|
22462
|
+
const value = control?.value;
|
|
22463
|
+
if (value && value.length > 200) {
|
|
22464
|
+
control?.setValue(value.substring(0, 200));
|
|
22465
|
+
}
|
|
22466
|
+
}
|
|
22467
|
+
getSubjectErrorMessage() {
|
|
22468
|
+
const control = this.formGroup.get('subject');
|
|
22469
|
+
if (control.hasError('required')) {
|
|
22470
|
+
return this.raiseQueryErrorMessage.QUERY_SUBJECT;
|
|
22471
|
+
}
|
|
22472
|
+
if (control.hasError('maxlength')) {
|
|
22473
|
+
return this.raiseQueryErrorMessage.QUERY_SUBJECT_MAX_LENGTH;
|
|
22474
|
+
}
|
|
22475
|
+
return '';
|
|
22476
|
+
}
|
|
22342
22477
|
static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
|
|
22343
|
-
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", "
|
|
22478
|
+
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", "id", "subject", "formControlName", "subject", "maxlength", "200", "aria-describedby", "subject-error", 1, "govuk-input", 3, "input"], ["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) {
|
|
22344
22479
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
|
|
22345
22480
|
i0.ɵɵtext(3);
|
|
22346
22481
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -22353,7 +22488,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
22353
22488
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
|
|
22354
22489
|
i0.ɵɵelementEnd();
|
|
22355
22490
|
i0.ɵɵelement(10, "hr");
|
|
22356
|
-
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43,
|
|
22491
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 46, "div", 4);
|
|
22357
22492
|
i0.ɵɵelementEnd();
|
|
22358
22493
|
} if (rf & 2) {
|
|
22359
22494
|
i0.ɵɵadvance(3);
|
|
@@ -22368,7 +22503,7 @@ class QueryWriteRaiseQueryComponent {
|
|
|
22368
22503
|
}
|
|
22369
22504
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
|
|
22370
22505
|
type: Component,
|
|
22371
|
-
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
|
|
22506
|
+
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') || formGroup.get('subject').hasError('maxlength'))\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }}</span>\n {{ getSubjectErrorMessage() | rpxTranslate }}\n </p>\n\n <input type=\"text\"\n id=\"subject\"\n class=\"govuk-input\"\n formControlName=\"subject\"\n maxlength=\"200\"\n (input)=\"onSubjectInput()\"\n aria-describedby=\"subject-error\" />\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" }]
|
|
22372
22507
|
}], null, { formGroup: [{
|
|
22373
22508
|
type: Input
|
|
22374
22509
|
}], submitted: [{
|
|
@@ -22832,21 +22967,20 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
22832
22967
|
|
|
22833
22968
|
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
22834
22969
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(t) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(t || ReadTextAreaFieldComponent); }; })();
|
|
22835
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
22970
|
+
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) {
|
|
22836
22971
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22837
22972
|
i0.ɵɵtext(1);
|
|
22838
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22839
22973
|
i0.ɵɵelementEnd();
|
|
22840
22974
|
} if (rf & 2) {
|
|
22841
22975
|
i0.ɵɵadvance();
|
|
22842
|
-
i0.ɵɵtextInterpolate(
|
|
22843
|
-
} },
|
|
22976
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
22977
|
+
} }, encapsulation: 2 });
|
|
22844
22978
|
}
|
|
22845
22979
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
|
|
22846
22980
|
type: Component,
|
|
22847
22981
|
args: [{
|
|
22848
22982
|
selector: 'ccd-read-text-area-field',
|
|
22849
|
-
template: `<span style="white-space: pre-wrap">{{caseField.value
|
|
22983
|
+
template: `<span style="white-space: pre-wrap">{{ caseField.value }}</span>`
|
|
22850
22984
|
}]
|
|
22851
22985
|
}], null, null); })();
|
|
22852
22986
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -22931,21 +23065,20 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
22931
23065
|
|
|
22932
23066
|
class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
22933
23067
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(t) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(t || ReadTextFieldComponent); }; })();
|
|
22934
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextFieldComponent, selectors: [["ccd-read-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
23068
|
+
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) {
|
|
22935
23069
|
i0.ɵɵelementStart(0, "span", 0);
|
|
22936
23070
|
i0.ɵɵtext(1);
|
|
22937
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
22938
23071
|
i0.ɵɵelementEnd();
|
|
22939
23072
|
} if (rf & 2) {
|
|
22940
23073
|
i0.ɵɵadvance();
|
|
22941
|
-
i0.ɵɵtextInterpolate(
|
|
22942
|
-
} },
|
|
23074
|
+
i0.ɵɵtextInterpolate(ctx.caseField.value);
|
|
23075
|
+
} }, encapsulation: 2 });
|
|
22943
23076
|
}
|
|
22944
23077
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextFieldComponent, [{
|
|
22945
23078
|
type: Component,
|
|
22946
23079
|
args: [{
|
|
22947
23080
|
selector: 'ccd-read-text-field',
|
|
22948
|
-
template: `<span class="text-16">{{caseField.value
|
|
23081
|
+
template: `<span class="text-16">{{ caseField.value }}</span>`
|
|
22949
23082
|
}]
|
|
22950
23083
|
}], null, null); })();
|
|
22951
23084
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 8 }); })();
|
|
@@ -23338,7 +23471,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23338
23471
|
withLabel = false;
|
|
23339
23472
|
formGroup = new FormGroup({});
|
|
23340
23473
|
caseFields = [];
|
|
23341
|
-
markdownUseHrefAsRouterLink;
|
|
23342
23474
|
fieldContainer;
|
|
23343
23475
|
constructor(resolver, paletteService) {
|
|
23344
23476
|
super();
|
|
@@ -23371,7 +23503,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23371
23503
|
component.instance['parent'] = this.parent;
|
|
23372
23504
|
component.instance['caseReference'] = this.caseReference;
|
|
23373
23505
|
component.instance['context'] = this.context;
|
|
23374
|
-
component.instance['markdownUseHrefAsRouterLink'] = this.markdownUseHrefAsRouterLink;
|
|
23375
23506
|
component.instance['labelCanBeTranslated'] = this.labelCanBeTranslated(this.caseField);
|
|
23376
23507
|
this.fieldContainer.insert(component.hostView);
|
|
23377
23508
|
});
|
|
@@ -23385,27 +23516,25 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
23385
23516
|
} if (rf & 2) {
|
|
23386
23517
|
let _t;
|
|
23387
23518
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
23388
|
-
} }, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields"
|
|
23519
|
+
} }, 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) {
|
|
23389
23520
|
i0.ɵɵelementStart(0, "div", 1)(1, "ccd-field-read-label", 2);
|
|
23390
23521
|
i0.ɵɵelementContainer(2, null, 0);
|
|
23391
23522
|
i0.ɵɵelementEnd()();
|
|
23392
23523
|
} if (rf & 2) {
|
|
23393
23524
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
23394
23525
|
i0.ɵɵadvance();
|
|
23395
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel)
|
|
23526
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel);
|
|
23396
23527
|
} }, encapsulation: 2 });
|
|
23397
23528
|
}
|
|
23398
23529
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadComponent, [{
|
|
23399
23530
|
type: Component,
|
|
23400
|
-
args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\"
|
|
23531
|
+
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" }]
|
|
23401
23532
|
}], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { withLabel: [{
|
|
23402
23533
|
type: Input
|
|
23403
23534
|
}], formGroup: [{
|
|
23404
23535
|
type: Input
|
|
23405
23536
|
}], caseFields: [{
|
|
23406
23537
|
type: Input
|
|
23407
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23408
|
-
type: Input
|
|
23409
23538
|
}], fieldContainer: [{
|
|
23410
23539
|
type: ViewChild,
|
|
23411
23540
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
@@ -23509,7 +23638,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23509
23638
|
// EUI-3267. Flag for whether or not this can have a grey bar.
|
|
23510
23639
|
canHaveGreyBar = false;
|
|
23511
23640
|
withLabel;
|
|
23512
|
-
markdownUseHrefAsRouterLink;
|
|
23513
23641
|
isLabel() {
|
|
23514
23642
|
return this.caseField.field_type && this.caseField.field_type.type === 'Label';
|
|
23515
23643
|
}
|
|
@@ -23537,7 +23665,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23537
23665
|
}
|
|
23538
23666
|
}
|
|
23539
23667
|
static ɵfac = /*@__PURE__*/ (() => { let ɵFieldReadLabelComponent_BaseFactory; return function FieldReadLabelComponent_Factory(t) { return (ɵFieldReadLabelComponent_BaseFactory || (ɵFieldReadLabelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FieldReadLabelComponent)))(t || FieldReadLabelComponent); }; })();
|
|
23540
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel"
|
|
23668
|
+
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) {
|
|
23541
23669
|
i0.ɵɵprojectionDef();
|
|
23542
23670
|
i0.ɵɵelementStart(0, "div", 1);
|
|
23543
23671
|
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);
|
|
@@ -23555,8 +23683,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
23555
23683
|
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"] }]
|
|
23556
23684
|
}], null, { withLabel: [{
|
|
23557
23685
|
type: Input
|
|
23558
|
-
}], markdownUseHrefAsRouterLink: [{
|
|
23559
|
-
type: Input
|
|
23560
23686
|
}] }); })();
|
|
23561
23687
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadLabelComponent, { className: "FieldReadLabelComponent", filePath: "lib/shared/components/palette/base-field/field-read-label.component.ts", lineNumber: 14 }); })();
|
|
23562
23688
|
|
|
@@ -23594,7 +23720,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
|
|
|
23594
23720
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
23595
23721
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
23596
23722
|
i0.ɵɵelementStart(0, "div", 9)(1, "input", 10);
|
|
23597
|
-
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)); });
|
|
23723
|
+
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); });
|
|
23598
23724
|
i0.ɵɵelementEnd();
|
|
23599
23725
|
i0.ɵɵelementStart(2, "label", 11);
|
|
23600
23726
|
i0.ɵɵelement(3, "img", 12);
|
|
@@ -23674,10 +23800,10 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
23674
23800
|
return null;
|
|
23675
23801
|
}
|
|
23676
23802
|
static ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialogRef), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); };
|
|
23677
|
-
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) {
|
|
23803
|
+
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) {
|
|
23678
23804
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23679
|
-
i0.ɵɵelementStart(0, "
|
|
23680
|
-
i0.ɵɵlistener("click", function
|
|
23805
|
+
i0.ɵɵelementStart(0, "span", 1);
|
|
23806
|
+
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); });
|
|
23681
23807
|
i0.ɵɵelementEnd();
|
|
23682
23808
|
i0.ɵɵelementStart(1, "h2", 2);
|
|
23683
23809
|
i0.ɵɵtext(2, "Move File");
|
|
@@ -23706,7 +23832,7 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
23706
23832
|
}
|
|
23707
23833
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
23708
23834
|
type: Component,
|
|
23709
|
-
args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, template: "<
|
|
23835
|
+
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"] }]
|
|
23710
23836
|
}], () => [{ type: i1$3.MatLegacyDialogRef }, { type: undefined, decorators: [{
|
|
23711
23837
|
type: Inject,
|
|
23712
23838
|
args: [MAT_LEGACY_DIALOG_DATA]
|
|
@@ -23738,22 +23864,25 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(
|
|
|
23738
23864
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
23739
23865
|
i0.ɵɵelementContainerStart(0);
|
|
23740
23866
|
i0.ɵɵelementStart(1, "div", 7);
|
|
23741
|
-
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()); });
|
|
23867
|
+
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); });
|
|
23742
23868
|
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 3, "img", 8);
|
|
23743
|
-
i0.ɵɵelementStart(3, "
|
|
23869
|
+
i0.ɵɵelementStart(3, "span", 9);
|
|
23744
23870
|
i0.ɵɵtext(4);
|
|
23745
23871
|
i0.ɵɵelementEnd()();
|
|
23746
23872
|
i0.ɵɵelementContainerEnd();
|
|
23747
23873
|
} if (rf & 2) {
|
|
23748
23874
|
const item_r4 = ctx.$implicit;
|
|
23749
|
-
|
|
23875
|
+
const i_r5 = ctx.index;
|
|
23876
|
+
i0.ɵɵadvance();
|
|
23877
|
+
i0.ɵɵproperty("id", "overlay-menu__item" + i_r5);
|
|
23878
|
+
i0.ɵɵadvance();
|
|
23750
23879
|
i0.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
23751
23880
|
i0.ɵɵadvance(2);
|
|
23752
23881
|
i0.ɵɵtextInterpolate(item_r4.actionText);
|
|
23753
23882
|
} }
|
|
23754
23883
|
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
23755
23884
|
i0.ɵɵelementStart(0, "div", 3);
|
|
23756
|
-
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,
|
|
23885
|
+
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);
|
|
23757
23886
|
i0.ɵɵelementEnd();
|
|
23758
23887
|
} if (rf & 2) {
|
|
23759
23888
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -23772,8 +23901,12 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
23772
23901
|
this.isOpen = isOpen;
|
|
23773
23902
|
this.isOpenChange.emit(isOpen);
|
|
23774
23903
|
}
|
|
23904
|
+
actionAndClose(func) {
|
|
23905
|
+
func();
|
|
23906
|
+
this.closeOverlay();
|
|
23907
|
+
}
|
|
23775
23908
|
static ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
23776
|
-
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) {
|
|
23909
|
+
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) {
|
|
23777
23910
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23778
23911
|
i0.ɵɵprojectionDef(_c0$t);
|
|
23779
23912
|
i0.ɵɵelementStart(0, "div")(1, "button", 1, 0);
|
|
@@ -23784,14 +23917,14 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
23784
23917
|
i0.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.closeOverlay()); });
|
|
23785
23918
|
i0.ɵɵelementEnd();
|
|
23786
23919
|
} if (rf & 2) {
|
|
23787
|
-
const
|
|
23920
|
+
const trigger_r6 = i0.ɵɵreference(2);
|
|
23788
23921
|
i0.ɵɵadvance(4);
|
|
23789
|
-
i0.ɵɵproperty("cdkConnectedOverlayOrigin",
|
|
23790
|
-
} }, 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}"] });
|
|
23922
|
+
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r6)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
23923
|
+
} }, 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}"] });
|
|
23791
23924
|
}
|
|
23792
23925
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
23793
23926
|
type: Component,
|
|
23794
|
-
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 <
|
|
23927
|
+
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"] }]
|
|
23795
23928
|
}], null, { title: [{
|
|
23796
23929
|
type: Input
|
|
23797
23930
|
}], menuItems: [{
|
|
@@ -24581,7 +24714,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
24581
24714
|
}] }); })();
|
|
24582
24715
|
(() => { (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 }); })();
|
|
24583
24716
|
|
|
24584
|
-
function
|
|
24717
|
+
function CaseFlagSummaryListComponent_dl_0_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
24585
24718
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
24586
24719
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24587
24720
|
i0.ɵɵtext(2);
|
|
@@ -24591,7 +24724,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24591
24724
|
i0.ɵɵtext(5);
|
|
24592
24725
|
i0.ɵɵelementEnd();
|
|
24593
24726
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24594
|
-
i0.ɵɵlistener("click", function
|
|
24727
|
+
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)); });
|
|
24595
24728
|
i0.ɵɵtext(8);
|
|
24596
24729
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24597
24730
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24609,7 +24742,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
|
|
|
24609
24742
|
i0.ɵɵadvance(3);
|
|
24610
24743
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "other description (Welsh)"), "");
|
|
24611
24744
|
} }
|
|
24612
|
-
function
|
|
24745
|
+
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
24613
24746
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
24614
24747
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24615
24748
|
i0.ɵɵtext(2);
|
|
@@ -24619,7 +24752,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24619
24752
|
i0.ɵɵtext(5);
|
|
24620
24753
|
i0.ɵɵelementEnd();
|
|
24621
24754
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24622
|
-
i0.ɵɵlistener("click", function
|
|
24755
|
+
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)); });
|
|
24623
24756
|
i0.ɵɵtext(8);
|
|
24624
24757
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24625
24758
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24637,7 +24770,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
|
|
|
24637
24770
|
i0.ɵɵadvance(3);
|
|
24638
24771
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments"), "");
|
|
24639
24772
|
} }
|
|
24640
|
-
function
|
|
24773
|
+
function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1) {
|
|
24641
24774
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
24642
24775
|
i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
|
|
24643
24776
|
i0.ɵɵtext(2);
|
|
@@ -24647,7 +24780,7 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24647
24780
|
i0.ɵɵtext(5);
|
|
24648
24781
|
i0.ɵɵelementEnd();
|
|
24649
24782
|
i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
|
|
24650
|
-
i0.ɵɵlistener("click", function
|
|
24783
|
+
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)); });
|
|
24651
24784
|
i0.ɵɵtext(8);
|
|
24652
24785
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
24653
24786
|
i0.ɵɵelementStart(10, "span", 7);
|
|
@@ -24665,10 +24798,10 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
|
|
|
24665
24798
|
i0.ɵɵadvance(3);
|
|
24666
24799
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments (Welsh)"), "");
|
|
24667
24800
|
} }
|
|
24668
|
-
function
|
|
24801
|
+
function CaseFlagSummaryListComponent_dl_0_a_38_Template(rf, ctx) { if (rf & 1) {
|
|
24669
24802
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
24670
24803
|
i0.ɵɵelementStart(0, "a", 6);
|
|
24671
|
-
i0.ɵɵlistener("click", function
|
|
24804
|
+
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)); });
|
|
24672
24805
|
i0.ɵɵtext(1);
|
|
24673
24806
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24674
24807
|
i0.ɵɵelementStart(3, "span", 7);
|
|
@@ -24689,61 +24822,60 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24689
24822
|
i0.ɵɵelementEnd();
|
|
24690
24823
|
i0.ɵɵelementStart(5, "dd", 4);
|
|
24691
24824
|
i0.ɵɵtext(6);
|
|
24692
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
24693
24825
|
i0.ɵɵelementEnd();
|
|
24694
|
-
i0.ɵɵelementStart(
|
|
24695
|
-
i0.ɵɵlistener("click", function
|
|
24696
|
-
i0.ɵɵtext(
|
|
24697
|
-
i0.ɵɵpipe(
|
|
24698
|
-
i0.ɵɵelementStart(
|
|
24699
|
-
i0.ɵɵtext(
|
|
24700
|
-
i0.ɵɵpipe(
|
|
24826
|
+
i0.ɵɵelementStart(7, "dd", 5)(8, "a", 6);
|
|
24827
|
+
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)); });
|
|
24828
|
+
i0.ɵɵtext(9);
|
|
24829
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
24830
|
+
i0.ɵɵelementStart(11, "span", 7);
|
|
24831
|
+
i0.ɵɵtext(12);
|
|
24832
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
24701
24833
|
i0.ɵɵelementEnd()()()();
|
|
24702
|
-
i0.ɵɵelementStart(
|
|
24703
|
-
i0.ɵɵtext(
|
|
24704
|
-
i0.ɵɵpipe(
|
|
24834
|
+
i0.ɵɵelementStart(14, "div", 2)(15, "dt", 3);
|
|
24835
|
+
i0.ɵɵtext(16);
|
|
24836
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
24705
24837
|
i0.ɵɵelementEnd();
|
|
24706
|
-
i0.ɵɵelementStart(
|
|
24707
|
-
i0.ɵɵtext(
|
|
24838
|
+
i0.ɵɵelementStart(18, "dd", 4);
|
|
24839
|
+
i0.ɵɵtext(19);
|
|
24708
24840
|
i0.ɵɵelementEnd();
|
|
24709
|
-
i0.ɵɵelementStart(
|
|
24710
|
-
i0.ɵɵlistener("click", function
|
|
24711
|
-
i0.ɵɵtext(
|
|
24712
|
-
i0.ɵɵpipe(
|
|
24713
|
-
i0.ɵɵelementStart(
|
|
24714
|
-
i0.ɵɵtext(
|
|
24715
|
-
i0.ɵɵpipe(
|
|
24841
|
+
i0.ɵɵelementStart(20, "dd", 5)(21, "a", 6);
|
|
24842
|
+
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)); });
|
|
24843
|
+
i0.ɵɵtext(22);
|
|
24844
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
24845
|
+
i0.ɵɵelementStart(24, "span", 7);
|
|
24846
|
+
i0.ɵɵtext(25);
|
|
24847
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
24716
24848
|
i0.ɵɵelementEnd()()()();
|
|
24717
|
-
i0.ɵɵtemplate(
|
|
24718
|
-
i0.ɵɵelementStart(
|
|
24719
|
-
i0.ɵɵtext(
|
|
24720
|
-
i0.ɵɵpipe(
|
|
24849
|
+
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);
|
|
24850
|
+
i0.ɵɵelementStart(30, "div", 2)(31, "dt", 3);
|
|
24851
|
+
i0.ɵɵtext(32);
|
|
24852
|
+
i0.ɵɵpipe(33, "rpxTranslate");
|
|
24721
24853
|
i0.ɵɵelementEnd();
|
|
24722
|
-
i0.ɵɵelementStart(
|
|
24723
|
-
i0.ɵɵtext(
|
|
24724
|
-
i0.ɵɵpipe(
|
|
24854
|
+
i0.ɵɵelementStart(34, "dd", 4);
|
|
24855
|
+
i0.ɵɵtext(35);
|
|
24856
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
24725
24857
|
i0.ɵɵelementEnd();
|
|
24726
|
-
i0.ɵɵelementStart(
|
|
24727
|
-
i0.ɵɵtemplate(
|
|
24858
|
+
i0.ɵɵelementStart(37, "dd", 5);
|
|
24859
|
+
i0.ɵɵtemplate(38, CaseFlagSummaryListComponent_dl_0_a_38_Template, 6, 6, "a", 9);
|
|
24728
24860
|
i0.ɵɵelementEnd()()();
|
|
24729
24861
|
} if (rf & 2) {
|
|
24730
24862
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
24731
24863
|
i0.ɵɵadvance(3);
|
|
24732
24864
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 14, ctx_r1.addUpdateFlagHeaderText), " ");
|
|
24733
24865
|
i0.ɵɵadvance(3);
|
|
24734
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24735
|
-
i0.ɵɵadvance(4);
|
|
24736
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 18, "Change"), "");
|
|
24866
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagForSummaryDisplay.partyName || ctx_r1.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION, " ");
|
|
24737
24867
|
i0.ɵɵadvance(3);
|
|
24738
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24868
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, "Change"), "");
|
|
24869
|
+
i0.ɵɵadvance(3);
|
|
24870
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 18, "party name"), "");
|
|
24739
24871
|
i0.ɵɵadvance(4);
|
|
24740
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24872
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 20, ctx_r1.flagTypeHeaderText), " ");
|
|
24741
24873
|
i0.ɵɵadvance(3);
|
|
24742
24874
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.flagDescription, " ");
|
|
24743
24875
|
i0.ɵɵadvance(3);
|
|
24744
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24876
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, "Change"), "");
|
|
24745
24877
|
i0.ɵɵadvance(3);
|
|
24746
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24878
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 24, "flag type"), "");
|
|
24747
24879
|
i0.ɵɵadvance(2);
|
|
24748
24880
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagDescriptionWelsh == null ? null : ctx_r1.flagDescriptionWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24749
24881
|
i0.ɵɵadvance();
|
|
@@ -24751,9 +24883,9 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24751
24883
|
i0.ɵɵadvance();
|
|
24752
24884
|
i0.ɵɵproperty("ngIf", (ctx_r1.flagCommentsWelsh == null ? null : ctx_r1.flagCommentsWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
|
|
24753
24885
|
i0.ɵɵadvance(3);
|
|
24754
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24886
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(33, 26, "Status"), " ");
|
|
24755
24887
|
i0.ɵɵadvance(3);
|
|
24756
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
24888
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(36, 28, ctx_r1.flagStatus), " ");
|
|
24757
24889
|
i0.ɵɵadvance(3);
|
|
24758
24890
|
i0.ɵɵproperty("ngIf", ctx_r1.is2Point1Enabled);
|
|
24759
24891
|
} }
|
|
@@ -24859,14 +24991,14 @@ class CaseFlagSummaryListComponent {
|
|
|
24859
24991
|
}
|
|
24860
24992
|
static ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
24861
24993
|
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) {
|
|
24862
|
-
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template,
|
|
24994
|
+
i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 39, 30, "dl", 0);
|
|
24863
24995
|
} if (rf & 2) {
|
|
24864
24996
|
i0.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
|
|
24865
24997
|
} }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24866
24998
|
}
|
|
24867
24999
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagSummaryListComponent, [{
|
|
24868
25000
|
type: Component,
|
|
24869
|
-
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
|
|
25001
|
+
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" }]
|
|
24870
25002
|
}], () => [{ type: i1.RpxTranslationService }], { flagForSummaryDisplay: [{
|
|
24871
25003
|
type: Input
|
|
24872
25004
|
}], displayContextParameter: [{
|
|
@@ -27642,7 +27774,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
27642
27774
|
i0.ɵɵadvance();
|
|
27643
27775
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
27644
27776
|
i0.ɵɵadvance(2);
|
|
27645
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 8, field_r1.label));
|
|
27777
|
+
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4, 8, field_r1.label) : field_r1.label);
|
|
27646
27778
|
i0.ɵɵadvance(2);
|
|
27647
27779
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
27648
27780
|
i0.ɵɵadvance();
|
|
@@ -27667,7 +27799,7 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
27667
27799
|
}
|
|
27668
27800
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
27669
27801
|
type: Component,
|
|
27670
|
-
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"] }]
|
|
27802
|
+
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"] }]
|
|
27671
27803
|
}], null, { caseFields: [{
|
|
27672
27804
|
type: Input
|
|
27673
27805
|
}] }); })();
|
|
@@ -27769,15 +27901,17 @@ function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) { if (
|
|
|
27769
27901
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
27770
27902
|
i0.ɵɵelementEnd();
|
|
27771
27903
|
i0.ɵɵelementStart(4, "a", 9);
|
|
27772
|
-
i0.ɵɵ
|
|
27904
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
27905
|
+
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)); });
|
|
27773
27906
|
i0.ɵɵelementEnd()();
|
|
27774
27907
|
} if (rf & 2) {
|
|
27775
27908
|
const heading_r2 = ctx.$implicit;
|
|
27776
27909
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
27777
27910
|
i0.ɵɵadvance(2);
|
|
27778
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
27911
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, ctx_r2.columnsAllLabels[heading_r2].label));
|
|
27779
27912
|
i0.ɵɵadvance(2);
|
|
27780
27913
|
i0.ɵɵproperty("innerHTML", ctx_r2.sortWidget(ctx_r2.columnsAllLabels[heading_r2]), i0.ɵɵsanitizeHtml);
|
|
27914
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(5, 5, "Sort " + ctx_r2.columnsAllLabels[heading_r2].label));
|
|
27781
27915
|
} }
|
|
27782
27916
|
function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
27783
27917
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -27926,7 +28060,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_Template(rf, c
|
|
|
27926
28060
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
27927
28061
|
i0.ɵɵelementContainerStart(0);
|
|
27928
28062
|
i0.ɵɵelementStart(1, "tr", 10);
|
|
27929
|
-
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])); });
|
|
28063
|
+
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])); });
|
|
27930
28064
|
i0.ɵɵtemplate(2, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_Template, 5, 2, "ng-container", 7);
|
|
27931
28065
|
i0.ɵɵelementStart(3, "td")(4, "div", 11)(5, "a", 12);
|
|
27932
28066
|
i0.ɵɵelement(6, "img", 13);
|
|
@@ -28105,7 +28239,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28105
28239
|
return result;
|
|
28106
28240
|
}
|
|
28107
28241
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldCollectionTableComponent_BaseFactory; return function ReadComplexFieldCollectionTableComponent_Factory(t) { return (ɵReadComplexFieldCollectionTableComponent_BaseFactory || (ɵReadComplexFieldCollectionTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldCollectionTableComponent)))(t || ReadComplexFieldCollectionTableComponent); }; })();
|
|
28108
|
-
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", "
|
|
28242
|
+
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) {
|
|
28109
28243
|
i0.ɵɵelementStart(0, "div", 2)(1, "dl", 3)(2, "dt")(3, "span", 4);
|
|
28110
28244
|
i0.ɵɵtext(4);
|
|
28111
28245
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -28113,7 +28247,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28113
28247
|
i0.ɵɵelement(6, "dd");
|
|
28114
28248
|
i0.ɵɵelementEnd();
|
|
28115
28249
|
i0.ɵɵelementStart(7, "table", 5)(8, "tbody")(9, "tr");
|
|
28116
|
-
i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template,
|
|
28250
|
+
i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template, 6, 7, "th", 6);
|
|
28117
28251
|
i0.ɵɵelement(11, "th");
|
|
28118
28252
|
i0.ɵɵelementEnd();
|
|
28119
28253
|
i0.ɵɵtemplate(12, ReadComplexFieldCollectionTableComponent_ng_container_12_Template, 15, 19, "ng-container", 7);
|
|
@@ -28130,7 +28264,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
28130
28264
|
}
|
|
28131
28265
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldCollectionTableComponent, [{
|
|
28132
28266
|
type: Component,
|
|
28133
|
-
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=\"
|
|
28267
|
+
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"] }]
|
|
28134
28268
|
}], null, null); })();
|
|
28135
28269
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldCollectionTableComponent, { className: "ReadComplexFieldCollectionTableComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-collection-table.component.ts", lineNumber: 12 }); })();
|
|
28136
28270
|
|
|
@@ -30485,7 +30619,7 @@ ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1
|
|
|
30485
30619
|
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
30486
30620
|
i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
|
|
30487
30621
|
QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
30488
|
-
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,
|
|
30622
|
+
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.MaxLengthValidator, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,
|
|
30489
30623
|
QueryWriteDateInputComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
30490
30624
|
i0.ɵɵsetComponentScope(QueryCheckYourAnswersComponent, function () { return [i5.NgForOf, i5.NgIf, QueryCaseDetailsHeaderComponent,
|
|
30491
30625
|
QueryAttachmentsReadComponent,
|
|
@@ -31707,28 +31841,28 @@ function PaginationComponent_ul_4_li_5_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
31707
31841
|
i0.ɵɵadvance(3);
|
|
31708
31842
|
i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(9, 12, page_r6.label, ""));
|
|
31709
31843
|
} }
|
|
31710
|
-
function
|
|
31711
|
-
i0.ɵɵ
|
|
31712
|
-
i0.ɵɵelementStart(1, "span", 13);
|
|
31844
|
+
function PaginationComponent_ul_4_li_5_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
31845
|
+
i0.ɵɵelementStart(0, "a", 15)(1, "span", 13);
|
|
31713
31846
|
i0.ɵɵtext(2);
|
|
31714
31847
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
31715
31848
|
i0.ɵɵelementEnd();
|
|
31716
31849
|
i0.ɵɵelementStart(4, "span");
|
|
31717
31850
|
i0.ɵɵtext(5);
|
|
31718
31851
|
i0.ɵɵpipe(6, "number");
|
|
31719
|
-
i0.ɵɵelementEnd();
|
|
31720
|
-
i0.ɵɵelementContainerEnd();
|
|
31852
|
+
i0.ɵɵelementEnd()();
|
|
31721
31853
|
} if (rf & 2) {
|
|
31722
31854
|
const page_r6 = i0.ɵɵnextContext().$implicit;
|
|
31723
31855
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
31724
|
-
i0.ɵɵadvance(
|
|
31725
|
-
i0.ɵɵ
|
|
31856
|
+
i0.ɵɵadvance();
|
|
31857
|
+
i0.ɵɵattribute("current", page_r6)("aria-label", ctx_r3.screenReaderCurrentLabel);
|
|
31858
|
+
i0.ɵɵadvance();
|
|
31859
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 4, ctx_r3.screenReaderCurrentLabel), " ");
|
|
31726
31860
|
i0.ɵɵadvance(3);
|
|
31727
|
-
i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(6,
|
|
31861
|
+
i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(6, 6, page_r6.label, ""));
|
|
31728
31862
|
} }
|
|
31729
31863
|
function PaginationComponent_ul_4_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
31730
31864
|
i0.ɵɵelementStart(0, "li");
|
|
31731
|
-
i0.ɵɵtemplate(1, PaginationComponent_ul_4_li_5_a_1_Template, 10, 15, "a", 10)(2,
|
|
31865
|
+
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);
|
|
31732
31866
|
i0.ɵɵelementEnd();
|
|
31733
31867
|
} if (rf & 2) {
|
|
31734
31868
|
const page_r6 = ctx.$implicit;
|
|
@@ -31775,7 +31909,7 @@ function PaginationComponent_ul_4_li_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
31775
31909
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ctx_r3.screenReaderPageLabel));
|
|
31776
31910
|
} }
|
|
31777
31911
|
function PaginationComponent_ul_4_li_6_Template(rf, ctx) { if (rf & 1) {
|
|
31778
|
-
i0.ɵɵelementStart(0, "li",
|
|
31912
|
+
i0.ɵɵelementStart(0, "li", 16);
|
|
31779
31913
|
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);
|
|
31780
31914
|
i0.ɵɵelementEnd();
|
|
31781
31915
|
} if (rf & 2) {
|
|
@@ -31846,7 +31980,7 @@ class PaginationComponent {
|
|
|
31846
31980
|
this.pResponsive = coerceToBoolean(value);
|
|
31847
31981
|
}
|
|
31848
31982
|
static ɵfac = function PaginationComponent_Factory(t) { return new (t || PaginationComponent)(); };
|
|
31849
|
-
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) {
|
|
31983
|
+
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) {
|
|
31850
31984
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
31851
31985
|
i0.ɵɵelementStart(0, "pagination-template", 1, 0);
|
|
31852
31986
|
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)); });
|
|
@@ -31861,11 +31995,11 @@ class PaginationComponent {
|
|
|
31861
31995
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 4, "Pagination"));
|
|
31862
31996
|
i0.ɵɵadvance(2);
|
|
31863
31997
|
i0.ɵɵproperty("ngIf", !(ctx.autoHide && p_r3.pages.length <= 1));
|
|
31864
|
-
} }, 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}}"] });
|
|
31998
|
+
} }, 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}}"] });
|
|
31865
31999
|
}
|
|
31866
32000
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
31867
32001
|
type: Component,
|
|
31868
|
-
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 <
|
|
32002
|
+
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"] }]
|
|
31869
32003
|
}], null, { visibilityLabel: [{
|
|
31870
32004
|
type: Input
|
|
31871
32005
|
}], id: [{
|
|
@@ -31896,10 +32030,10 @@ class PaginationComponent {
|
|
|
31896
32030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "lib/shared/components/pagination/pagination.component.ts", lineNumber: 12 }); })();
|
|
31897
32031
|
|
|
31898
32032
|
const _c0$c = (a0, a1, a2) => ({ itemsPerPage: a0, currentPage: a1, totalItems: a2 });
|
|
31899
|
-
function
|
|
32033
|
+
function CaseListComponent_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
31900
32034
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
31901
|
-
i0.ɵɵelementStart(0, "
|
|
31902
|
-
i0.ɵɵlistener("change", function
|
|
32035
|
+
i0.ɵɵelementStart(0, "td", 8)(1, "div", 9)(2, "input", 10);
|
|
32036
|
+
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()); });
|
|
31903
32037
|
i0.ɵɵelementEnd();
|
|
31904
32038
|
i0.ɵɵelement(3, "label", 11);
|
|
31905
32039
|
i0.ɵɵelementEnd()();
|
|
@@ -31907,9 +32041,11 @@ function CaseListComponent_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
31907
32041
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
31908
32042
|
i0.ɵɵadvance(2);
|
|
31909
32043
|
i0.ɵɵproperty("checked", ctx_r1.allOnPageSelected())("disabled", !ctx_r1.canAnyBeShared());
|
|
32044
|
+
i0.ɵɵadvance();
|
|
32045
|
+
i0.ɵɵattribute("aria-labelledby", "select-all");
|
|
31910
32046
|
} }
|
|
31911
32047
|
function CaseListComponent_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
31912
|
-
i0.ɵɵelementStart(0, "th",
|
|
32048
|
+
i0.ɵɵelementStart(0, "th", 12);
|
|
31913
32049
|
i0.ɵɵtext(1);
|
|
31914
32050
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
31915
32051
|
i0.ɵɵelementEnd();
|
|
@@ -31918,22 +32054,25 @@ function CaseListComponent_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
31918
32054
|
i0.ɵɵadvance();
|
|
31919
32055
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, h_r3.header));
|
|
31920
32056
|
} }
|
|
31921
|
-
function
|
|
32057
|
+
function CaseListComponent_ng_container_9_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
31922
32058
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
31923
|
-
i0.ɵɵelementStart(0, "
|
|
31924
|
-
i0.ɵɵlistener("change", function
|
|
32059
|
+
i0.ɵɵelementStart(0, "td", 15)(1, "div", 9)(2, "input", 16);
|
|
32060
|
+
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)); });
|
|
31925
32061
|
i0.ɵɵelementEnd();
|
|
31926
|
-
i0.ɵɵelement(3, "label",
|
|
32062
|
+
i0.ɵɵelement(3, "label", 17);
|
|
31927
32063
|
i0.ɵɵelementEnd()();
|
|
31928
32064
|
} if (rf & 2) {
|
|
31929
|
-
const
|
|
32065
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
32066
|
+
const c_r5 = ctx_r5.$implicit;
|
|
32067
|
+
const i_r7 = ctx_r5.index;
|
|
31930
32068
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
31931
32069
|
i0.ɵɵadvance(2);
|
|
31932
|
-
i0.ɵɵpropertyInterpolate1("id", "select-", c_r5[ctx_r1.tableConfig.idField], "");
|
|
31933
|
-
i0.ɵɵpropertyInterpolate1("name", "select-", c_r5[ctx_r1.tableConfig.idField], "");
|
|
32070
|
+
i0.ɵɵpropertyInterpolate1("id", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
|
|
32071
|
+
i0.ɵɵpropertyInterpolate1("name", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
|
|
31934
32072
|
i0.ɵɵproperty("checked", ctx_r1.isSelected(c_r5))("disabled", !ctx_r1.canBeShared(c_r5));
|
|
31935
32073
|
i0.ɵɵadvance();
|
|
31936
|
-
i0.ɵɵpropertyInterpolate1("for", "select-", c_r5[ctx_r1.tableConfig.idField], "");
|
|
32074
|
+
i0.ɵɵpropertyInterpolate1("for", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
|
|
32075
|
+
i0.ɵɵattribute("aria-labelledby", "select-" + (c_r5[ctx_r1.tableConfig.idField] || i_r7));
|
|
31937
32076
|
} }
|
|
31938
32077
|
function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
31939
32078
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -31941,52 +32080,52 @@ function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Tem
|
|
|
31941
32080
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
31942
32081
|
i0.ɵɵelementContainerEnd();
|
|
31943
32082
|
} if (rf & 2) {
|
|
31944
|
-
const
|
|
32083
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
31945
32084
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31946
32085
|
i0.ɵɵadvance();
|
|
31947
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[
|
|
32086
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r8.key]));
|
|
31948
32087
|
} }
|
|
31949
32088
|
function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
31950
32089
|
i0.ɵɵelementContainerStart(0);
|
|
31951
|
-
i0.ɵɵelementStart(1, "a",
|
|
32090
|
+
i0.ɵɵelementStart(1, "a", 20);
|
|
31952
32091
|
i0.ɵɵtext(2);
|
|
31953
32092
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
31954
32093
|
i0.ɵɵelementEnd();
|
|
31955
32094
|
i0.ɵɵelementContainerEnd();
|
|
31956
32095
|
} if (rf & 2) {
|
|
31957
|
-
const
|
|
32096
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
31958
32097
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31959
32098
|
i0.ɵɵadvance();
|
|
31960
32099
|
i0.ɵɵproperty("routerLink", c_r5.routerLink);
|
|
31961
32100
|
i0.ɵɵadvance();
|
|
31962
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[
|
|
32101
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r8.key]));
|
|
31963
32102
|
} }
|
|
31964
32103
|
function CaseListComponent_ng_container_9_ng_container_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
31965
|
-
i0.ɵɵelementStart(0, "th",
|
|
31966
|
-
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template, 3, 3, "ng-container",
|
|
32104
|
+
i0.ɵɵelementStart(0, "th", 15);
|
|
32105
|
+
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);
|
|
31967
32106
|
i0.ɵɵelementEnd();
|
|
31968
32107
|
} if (rf & 2) {
|
|
31969
|
-
const
|
|
32108
|
+
const col_r8 = i0.ɵɵnextContext().$implicit;
|
|
31970
32109
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31971
32110
|
i0.ɵɵadvance();
|
|
31972
|
-
i0.ɵɵproperty("ngIf", !
|
|
32111
|
+
i0.ɵɵproperty("ngIf", !col_r8.type || col_r8.type === "text");
|
|
31973
32112
|
i0.ɵɵadvance();
|
|
31974
|
-
i0.ɵɵproperty("ngIf",
|
|
32113
|
+
i0.ɵɵproperty("ngIf", col_r8.type === "link" && c_r5.routerLink);
|
|
31975
32114
|
} }
|
|
31976
32115
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
31977
32116
|
i0.ɵɵelementContainerStart(0);
|
|
31978
|
-
i0.ɵɵelementStart(1, "a",
|
|
32117
|
+
i0.ɵɵelementStart(1, "a", 20);
|
|
31979
32118
|
i0.ɵɵtext(2);
|
|
31980
32119
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
31981
32120
|
i0.ɵɵelementEnd();
|
|
31982
32121
|
i0.ɵɵelementContainerEnd();
|
|
31983
32122
|
} if (rf & 2) {
|
|
31984
|
-
const
|
|
32123
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
31985
32124
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31986
32125
|
i0.ɵɵadvance();
|
|
31987
32126
|
i0.ɵɵproperty("routerLink", c_r5.routerLink);
|
|
31988
32127
|
i0.ɵɵadvance();
|
|
31989
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[
|
|
32128
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r8.key]));
|
|
31990
32129
|
} }
|
|
31991
32130
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
31992
32131
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -31994,32 +32133,32 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Tem
|
|
|
31994
32133
|
i0.ɵɵpipe(2, "currency");
|
|
31995
32134
|
i0.ɵɵelementContainerEnd();
|
|
31996
32135
|
} if (rf & 2) {
|
|
31997
|
-
const
|
|
32136
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
31998
32137
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
31999
32138
|
i0.ɵɵadvance();
|
|
32000
|
-
i0.ɵɵtextInterpolate1("-", i0.ɵɵpipeBind2(2, 1, c_r5[
|
|
32139
|
+
i0.ɵɵtextInterpolate1("-", i0.ɵɵpipeBind2(2, 1, c_r5[col_r8.key], "GBP"), "");
|
|
32001
32140
|
} }
|
|
32002
32141
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
32003
32142
|
i0.ɵɵelementContainerStart(0);
|
|
32004
32143
|
i0.ɵɵtext(1);
|
|
32005
32144
|
i0.ɵɵelementContainerEnd();
|
|
32006
32145
|
} if (rf & 2) {
|
|
32007
|
-
const
|
|
32146
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
32008
32147
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32009
32148
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
32010
32149
|
i0.ɵɵadvance();
|
|
32011
|
-
i0.ɵɵtextInterpolate(ctx_r1.formatDate(c_r5[
|
|
32150
|
+
i0.ɵɵtextInterpolate(ctx_r1.formatDate(c_r5[col_r8.key]));
|
|
32012
32151
|
} }
|
|
32013
32152
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
32014
32153
|
i0.ɵɵelementContainerStart(0);
|
|
32015
32154
|
i0.ɵɵtext(1);
|
|
32016
32155
|
i0.ɵɵelementContainerEnd();
|
|
32017
32156
|
} if (rf & 2) {
|
|
32018
|
-
const
|
|
32157
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
32019
32158
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32020
32159
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
32021
32160
|
i0.ɵɵadvance();
|
|
32022
|
-
i0.ɵɵtextInterpolate(ctx_r1.formatDateAtTime(c_r5[
|
|
32161
|
+
i0.ɵɵtextInterpolate(ctx_r1.formatDateAtTime(c_r5[col_r8.key]));
|
|
32023
32162
|
} }
|
|
32024
32163
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
32025
32164
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -32027,21 +32166,21 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Tem
|
|
|
32027
32166
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
32028
32167
|
i0.ɵɵelementContainerEnd();
|
|
32029
32168
|
} if (rf & 2) {
|
|
32030
|
-
const
|
|
32169
|
+
const col_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
32031
32170
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32032
32171
|
i0.ɵɵadvance();
|
|
32033
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[
|
|
32172
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r8.key]));
|
|
32034
32173
|
} }
|
|
32035
32174
|
function CaseListComponent_ng_container_9_ng_container_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
32036
|
-
i0.ɵɵelementStart(0, "td",
|
|
32037
|
-
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template, 4, 4, "ng-container",
|
|
32175
|
+
i0.ɵɵelementStart(0, "td", 21);
|
|
32176
|
+
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);
|
|
32038
32177
|
i0.ɵɵelementEnd();
|
|
32039
32178
|
} if (rf & 2) {
|
|
32040
|
-
const
|
|
32179
|
+
const col_r8 = i0.ɵɵnextContext().$implicit;
|
|
32041
32180
|
const c_r5 = i0.ɵɵnextContext().$implicit;
|
|
32042
|
-
i0.ɵɵproperty("ngSwitch",
|
|
32181
|
+
i0.ɵɵproperty("ngSwitch", col_r8 == null ? null : col_r8.type);
|
|
32043
32182
|
i0.ɵɵadvance();
|
|
32044
|
-
i0.ɵɵproperty("ngIf",
|
|
32183
|
+
i0.ɵɵproperty("ngIf", col_r8.type === "link" && c_r5.routerLink);
|
|
32045
32184
|
i0.ɵɵadvance();
|
|
32046
32185
|
i0.ɵɵproperty("ngSwitchCase", "money");
|
|
32047
32186
|
i0.ɵɵadvance();
|
|
@@ -32051,20 +32190,20 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_Template(rf, ctx)
|
|
|
32051
32190
|
} }
|
|
32052
32191
|
function CaseListComponent_ng_container_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
32053
32192
|
i0.ɵɵelementContainerStart(0);
|
|
32054
|
-
i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_Template, 3, 2, "th",
|
|
32193
|
+
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);
|
|
32055
32194
|
i0.ɵɵelementContainerEnd();
|
|
32056
32195
|
} if (rf & 2) {
|
|
32057
|
-
const
|
|
32196
|
+
const isFirst_r9 = ctx.first;
|
|
32058
32197
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
32059
32198
|
i0.ɵɵadvance();
|
|
32060
|
-
i0.ɵɵproperty("ngIf",
|
|
32199
|
+
i0.ɵɵproperty("ngIf", isFirst_r9 && ctx_r1.firstCellIsHeader);
|
|
32061
32200
|
i0.ɵɵadvance();
|
|
32062
|
-
i0.ɵɵproperty("ngIf", !(
|
|
32201
|
+
i0.ɵɵproperty("ngIf", !(isFirst_r9 && ctx_r1.firstCellIsHeader));
|
|
32063
32202
|
} }
|
|
32064
32203
|
function CaseListComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
32065
32204
|
i0.ɵɵelementContainerStart(0);
|
|
32066
|
-
i0.ɵɵelementStart(1, "tr",
|
|
32067
|
-
i0.ɵɵtemplate(2,
|
|
32205
|
+
i0.ɵɵelementStart(1, "tr", 13);
|
|
32206
|
+
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);
|
|
32068
32207
|
i0.ɵɵelementEnd();
|
|
32069
32208
|
i0.ɵɵelementContainerEnd();
|
|
32070
32209
|
} if (rf & 2) {
|
|
@@ -32075,9 +32214,9 @@ function CaseListComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
32075
32214
|
i0.ɵɵproperty("ngForOf", ctx_r1.tableConfig.columnConfigs);
|
|
32076
32215
|
} }
|
|
32077
32216
|
function CaseListComponent_ccd_pagination_11_Template(rf, ctx) { if (rf & 1) {
|
|
32078
|
-
const
|
|
32079
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
32080
|
-
i0.ɵɵlistener("pageChange", function CaseListComponent_ccd_pagination_11_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
32217
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
32218
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 24);
|
|
32219
|
+
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)); });
|
|
32081
32220
|
i0.ɵɵelementEnd();
|
|
32082
32221
|
} }
|
|
32083
32222
|
class DateTimeFormatUtils {
|
|
@@ -32177,13 +32316,13 @@ class CaseListComponent {
|
|
|
32177
32316
|
this.pageChange.emit(pageNumber);
|
|
32178
32317
|
}
|
|
32179
32318
|
static ɵfac = function CaseListComponent_Factory(t) { return new (t || CaseListComponent)(i0.ɵɵdirectiveInject(BrowserService)); };
|
|
32180
|
-
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",
|
|
32319
|
+
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) {
|
|
32181
32320
|
i0.ɵɵelementStart(0, "table")(1, "caption", 0);
|
|
32182
32321
|
i0.ɵɵtext(2);
|
|
32183
32322
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
32184
32323
|
i0.ɵɵelementEnd();
|
|
32185
32324
|
i0.ɵɵelementStart(4, "thead", 1)(5, "tr", 2);
|
|
32186
|
-
i0.ɵɵtemplate(6,
|
|
32325
|
+
i0.ɵɵtemplate(6, CaseListComponent_td_6_Template, 4, 3, "td", 3)(7, CaseListComponent_th_7_Template, 3, 3, "th", 4);
|
|
32187
32326
|
i0.ɵɵelementEnd()();
|
|
32188
32327
|
i0.ɵɵelementStart(8, "tbody", 5);
|
|
32189
32328
|
i0.ɵɵtemplate(9, CaseListComponent_ng_container_9_Template, 4, 2, "ng-container", 6);
|
|
@@ -32206,7 +32345,7 @@ class CaseListComponent {
|
|
|
32206
32345
|
}
|
|
32207
32346
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
|
|
32208
32347
|
type: Component,
|
|
32209
|
-
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 <
|
|
32348
|
+
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" }]
|
|
32210
32349
|
}], () => [{ type: BrowserService }], { classes: [{
|
|
32211
32350
|
type: Input
|
|
32212
32351
|
}], caption: [{
|
|
@@ -33031,7 +33170,7 @@ function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_4_Template
|
|
|
33031
33170
|
i0.ɵɵproperty("caseField", field_r1)("caseReference", ctx_r1.caseHistory.case_id);
|
|
33032
33171
|
} }
|
|
33033
33172
|
function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
33034
|
-
i0.ɵɵelementStart(0, "tr", 17)(1, "
|
|
33173
|
+
i0.ɵɵelementStart(0, "tr", 17)(1, "th", 18);
|
|
33035
33174
|
i0.ɵɵelement(2, "ccd-field-read", 16);
|
|
33036
33175
|
i0.ɵɵelementEnd()();
|
|
33037
33176
|
} if (rf & 2) {
|
|
@@ -33245,7 +33384,7 @@ class CaseHistoryComponent {
|
|
|
33245
33384
|
}
|
|
33246
33385
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseHistoryComponent, [{
|
|
33247
33386
|
type: Component,
|
|
33248
|
-
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 <
|
|
33387
|
+
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"] }]
|
|
33249
33388
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: AlertService }, { type: OrderService }, { type: CaseNotifier }, { type: CaseHistoryService }], { event: [{
|
|
33250
33389
|
type: Input
|
|
33251
33390
|
}] }); })();
|
|
@@ -33596,9 +33735,13 @@ class EventTriggerResolver {
|
|
|
33596
33735
|
this.loadingService = loadingService;
|
|
33597
33736
|
}
|
|
33598
33737
|
resolve(route) {
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33738
|
+
if (this.isRootTriggerEventRoute(route)) {
|
|
33739
|
+
return this.getAndCacheEventTrigger(route);
|
|
33740
|
+
}
|
|
33741
|
+
if (this.cachedEventTrigger && ((route.params?.eid === this.cachedEventTrigger?.id) && (route.params?.cid === this.cachedEventTrigger?.case_id))) {
|
|
33742
|
+
return Promise.resolve(this.cachedEventTrigger);
|
|
33743
|
+
}
|
|
33744
|
+
return this.getAndCacheEventTrigger(route);
|
|
33602
33745
|
}
|
|
33603
33746
|
isRootTriggerEventRoute(route) {
|
|
33604
33747
|
// if route is 'trigger/:eid'
|
|
@@ -33986,15 +34129,14 @@ function CaseBasicAccessViewComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
33986
34129
|
i0.ɵɵelementEnd();
|
|
33987
34130
|
i0.ɵɵelementStart(4, "dd", 12);
|
|
33988
34131
|
i0.ɵɵtext(5);
|
|
33989
|
-
i0.ɵɵpipe(6, "
|
|
33990
|
-
i0.ɵɵpipe(7, "titlecase");
|
|
34132
|
+
i0.ɵɵpipe(6, "titlecase");
|
|
33991
34133
|
i0.ɵɵelementEnd()();
|
|
33992
34134
|
} if (rf & 2) {
|
|
33993
34135
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33994
34136
|
i0.ɵɵadvance(2);
|
|
33995
34137
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Court or hearing centre"));
|
|
33996
34138
|
i0.ɵɵadvance(3);
|
|
33997
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
34139
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.courtOrHearingCentre));
|
|
33998
34140
|
} }
|
|
33999
34141
|
function CaseBasicAccessViewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
34000
34142
|
i0.ɵɵelementStart(0, "div", 10)(1, "dt", 11);
|
|
@@ -34069,7 +34211,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34069
34211
|
i0.ɵɵpipe(13, "rpxTranslate");
|
|
34070
34212
|
i0.ɵɵelementEnd();
|
|
34071
34213
|
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,
|
|
34214
|
+
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
34215
|
i0.ɵɵelementEnd()();
|
|
34074
34216
|
i0.ɵɵelementStart(20, "div", 6)(21, "button", 7);
|
|
34075
34217
|
i0.ɵɵtext(22);
|
|
@@ -34114,7 +34256,7 @@ class CaseBasicAccessViewComponent {
|
|
|
34114
34256
|
}
|
|
34115
34257
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseBasicAccessViewComponent, [{
|
|
34116
34258
|
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 |
|
|
34259
|
+
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
34260
|
}], () => [{ type: CasesService }, { type: i1$1.Router }], { caseDetails: [{
|
|
34119
34261
|
type: Input
|
|
34120
34262
|
}], accessType: [{
|
|
@@ -34351,7 +34493,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34351
34493
|
i0.ɵɵadvance();
|
|
34352
34494
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34353
34495
|
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)
|
|
34496
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34355
34497
|
} }
|
|
34356
34498
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
34357
34499
|
i0.ɵɵelementStart(0, "tr", 40)(1, "th", 35)(2, "span", 36);
|
|
@@ -34363,14 +34505,14 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
34363
34505
|
i0.ɵɵadvance();
|
|
34364
34506
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
34365
34507
|
i0.ɵɵadvance(2);
|
|
34366
|
-
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)
|
|
34508
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
34367
34509
|
} }
|
|
34368
34510
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
34369
34511
|
i0.ɵɵelementContainerStart(0);
|
|
34370
34512
|
i0.ɵɵelementStart(1, "div", 30);
|
|
34371
34513
|
i0.ɵɵelementContainerStart(2, 31);
|
|
34372
34514
|
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,
|
|
34515
|
+
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
34516
|
i0.ɵɵelementContainerEnd();
|
|
34375
34517
|
i0.ɵɵelementEnd();
|
|
34376
34518
|
i0.ɵɵelementContainerEnd();
|
|
@@ -34488,7 +34630,6 @@ class CaseFullAccessViewComponent {
|
|
|
34488
34630
|
caseSubscription;
|
|
34489
34631
|
errorSubscription;
|
|
34490
34632
|
dialogConfig;
|
|
34491
|
-
markdownUseHrefAsRouterLink;
|
|
34492
34633
|
message;
|
|
34493
34634
|
subscription;
|
|
34494
34635
|
notificationBannerConfig;
|
|
@@ -34532,7 +34673,6 @@ class CaseFullAccessViewComponent {
|
|
|
34532
34673
|
}));
|
|
34533
34674
|
initDialog();
|
|
34534
34675
|
this.init();
|
|
34535
|
-
this.markdownUseHrefAsRouterLink = true;
|
|
34536
34676
|
this.sessionStorageService?.removeItem('eventUrl');
|
|
34537
34677
|
this.subscription = this.convertHrefToRouterService?.getHrefMarkdownLinkContent().subscribe((hrefMarkdownLinkContent) => {
|
|
34538
34678
|
// do not convert router with initial default value; convert to router only on updated link content
|
|
@@ -34867,7 +35007,7 @@ class CaseFullAccessViewComponent {
|
|
|
34867
35007
|
} if (rf & 2) {
|
|
34868
35008
|
let _t;
|
|
34869
35009
|
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"
|
|
35010
|
+
} }, 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
35011
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
|
|
34872
35012
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
|
|
34873
35013
|
i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
@@ -34905,7 +35045,7 @@ class CaseFullAccessViewComponent {
|
|
|
34905
35045
|
}
|
|
34906
35046
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
34907
35047
|
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\"
|
|
35048
|
+
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
35049
|
}], () => [{ 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
35050
|
type: Input
|
|
34911
35051
|
}], hasEventSelector: [{
|
|
@@ -34983,20 +35123,19 @@ function CasePrinterComponent_div_0_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
34983
35123
|
i0.ɵɵelementStart(0, "tr")(1, "td", 4)(2, "a", 5);
|
|
34984
35124
|
i0.ɵɵpipe(3, "ccdPrintUrl");
|
|
34985
35125
|
i0.ɵɵtext(4);
|
|
34986
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
34987
35126
|
i0.ɵɵelementEnd()();
|
|
34988
|
-
i0.ɵɵelementStart(
|
|
34989
|
-
i0.ɵɵtext(
|
|
34990
|
-
i0.ɵɵpipe(
|
|
35127
|
+
i0.ɵɵelementStart(5, "td", 6);
|
|
35128
|
+
i0.ɵɵtext(6);
|
|
35129
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
34991
35130
|
i0.ɵɵelementEnd()();
|
|
34992
35131
|
} if (rf & 2) {
|
|
34993
35132
|
const document_r1 = ctx.$implicit;
|
|
34994
35133
|
i0.ɵɵadvance(2);
|
|
34995
35134
|
i0.ɵɵproperty("href", i0.ɵɵpipeBind1(3, 3, document_r1.url), i0.ɵɵsanitizeUrl);
|
|
34996
35135
|
i0.ɵɵadvance(2);
|
|
34997
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
34998
|
-
i0.ɵɵadvance(
|
|
34999
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
35136
|
+
i0.ɵɵtextInterpolate1(" ", document_r1.name, " ");
|
|
35137
|
+
i0.ɵɵadvance(2);
|
|
35138
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 5, document_r1.type));
|
|
35000
35139
|
} }
|
|
35001
35140
|
function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
35002
35141
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -35016,7 +35155,7 @@ function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
35016
35155
|
i0.ɵɵpipe(14, "rpxTranslate");
|
|
35017
35156
|
i0.ɵɵelementEnd()()();
|
|
35018
35157
|
i0.ɵɵelementStart(15, "tbody");
|
|
35019
|
-
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template,
|
|
35158
|
+
i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template, 8, 7, "tr", 3);
|
|
35020
35159
|
i0.ɵɵelementEnd()()();
|
|
35021
35160
|
} if (rf & 2) {
|
|
35022
35161
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -35081,7 +35220,7 @@ class CasePrinterComponent {
|
|
|
35081
35220
|
}
|
|
35082
35221
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePrinterComponent, [{
|
|
35083
35222
|
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
|
|
35223
|
+
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
35224
|
}], () => [{ type: CaseNotifier }, { type: CasesService }, { type: AlertService }], null); })();
|
|
35086
35225
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePrinterComponent, { className: "CasePrinterComponent", filePath: "lib/shared/components/case-viewer/printer/case-printer.component.ts", lineNumber: 14 }); })();
|
|
35087
35226
|
|
|
@@ -38379,7 +38518,7 @@ function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
38379
38518
|
} if (rf & 2) {
|
|
38380
38519
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38381
38520
|
i0.ɵɵadvance();
|
|
38382
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8,
|
|
38521
|
+
i0.ɵɵattribute("aria-label", ctx_r0.getTotalResults() + " " + i0.ɵɵpipeBind1(2, 8, "results have been found"));
|
|
38383
38522
|
i0.ɵɵadvance(3);
|
|
38384
38523
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
38385
38524
|
i0.ɵɵadvance(3);
|
|
@@ -38426,13 +38565,15 @@ function SearchResultComponent_table_0_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
38426
38565
|
function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
38427
38566
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
38428
38567
|
i0.ɵɵelementStart(0, "div", 28)(1, "a", 29);
|
|
38429
|
-
i0.ɵɵ
|
|
38568
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
38569
|
+
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
38570
|
i0.ɵɵelementEnd()();
|
|
38431
38571
|
} if (rf & 2) {
|
|
38432
38572
|
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
38433
38573
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38434
38574
|
i0.ɵɵadvance();
|
|
38435
38575
|
i0.ɵɵproperty("innerHTML", ctx_r0.sortWidget(col_r5), i0.ɵɵsanitizeHtml);
|
|
38576
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 2, "Sort " + col_r5.label));
|
|
38436
38577
|
} }
|
|
38437
38578
|
function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
38438
38579
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -38441,14 +38582,14 @@ function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
38441
38582
|
i0.ɵɵtext(3);
|
|
38442
38583
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
38443
38584
|
i0.ɵɵelementEnd();
|
|
38444
|
-
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template,
|
|
38585
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 3, 4, "div", 27);
|
|
38445
38586
|
i0.ɵɵelementEnd()();
|
|
38446
38587
|
} if (rf & 2) {
|
|
38447
38588
|
const col_r5 = ctx.$implicit;
|
|
38448
38589
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38449
38590
|
i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
|
|
38450
38591
|
i0.ɵɵadvance(3);
|
|
38451
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
|
|
38592
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.isTranslatable(col_r5) ? i0.ɵɵpipeBind1(4, 3, col_r5.label) : col_r5.label, " ");
|
|
38452
38593
|
i0.ɵɵadvance(2);
|
|
38453
38594
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
38454
38595
|
} }
|
|
@@ -38822,6 +38963,9 @@ class SearchResultComponent {
|
|
|
38822
38963
|
this.selected.page = (changes['page']).currentValue;
|
|
38823
38964
|
}
|
|
38824
38965
|
}
|
|
38966
|
+
isTranslatable(col) {
|
|
38967
|
+
return FieldsUtils.isTranslatable(col.case_field_type);
|
|
38968
|
+
}
|
|
38825
38969
|
get resultTotal() {
|
|
38826
38970
|
const total = this.paginationMetadata.totalResultsCount;
|
|
38827
38971
|
const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
|
|
@@ -39085,7 +39229,7 @@ class SearchResultComponent {
|
|
|
39085
39229
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
39086
39230
|
noop() { }
|
|
39087
39231
|
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) {
|
|
39232
|
+
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
39233
|
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
39234
|
} if (rf & 2) {
|
|
39091
39235
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
@@ -39097,7 +39241,7 @@ class SearchResultComponent {
|
|
|
39097
39241
|
}
|
|
39098
39242
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
39099
39243
|
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"] }]
|
|
39244
|
+
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
39245
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
39102
39246
|
type: Input
|
|
39103
39247
|
}], jurisdiction: [{
|