@hmcts/ccd-case-ui-toolkit 7.4.15 → 7.4.16-exui-5388
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.
|
@@ -3299,12 +3299,10 @@ class FieldLabelPipe {
|
|
|
3299
3299
|
' (' + this.rpxTranslationPipe.transform('Optional') + ')' : '');
|
|
3300
3300
|
}
|
|
3301
3301
|
getTranslatedLabel(field) {
|
|
3302
|
-
if (
|
|
3303
|
-
return this.rpxTranslationPipe.transform(field.label);
|
|
3304
|
-
}
|
|
3305
|
-
else {
|
|
3302
|
+
if (field.isTranslated || field.translationHandledLocally) {
|
|
3306
3303
|
return field.label;
|
|
3307
3304
|
}
|
|
3305
|
+
return this.rpxTranslationPipe.transform(field.label);
|
|
3308
3306
|
}
|
|
3309
3307
|
getOriginalLabelForYesNoTranslation(field) {
|
|
3310
3308
|
return field.originalLabel || field.label;
|
|
@@ -3689,6 +3687,7 @@ class CaseField {
|
|
|
3689
3687
|
_value;
|
|
3690
3688
|
_list_items = [];
|
|
3691
3689
|
isTranslatedFlag = false;
|
|
3690
|
+
_translationHandledLocally;
|
|
3692
3691
|
get value() {
|
|
3693
3692
|
if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
|
|
3694
3693
|
return this._value && this._value.value ? this._value.value.code : this._value;
|
|
@@ -3810,11 +3809,17 @@ class CaseField {
|
|
|
3810
3809
|
return this.id;
|
|
3811
3810
|
}
|
|
3812
3811
|
}
|
|
3812
|
+
get isTranslated() {
|
|
3813
|
+
return this.isTranslatedFlag;
|
|
3814
|
+
}
|
|
3813
3815
|
set isTranslated(val) {
|
|
3814
3816
|
this.isTranslatedFlag = val;
|
|
3815
3817
|
}
|
|
3816
|
-
get
|
|
3817
|
-
return this.
|
|
3818
|
+
get translationHandledLocally() {
|
|
3819
|
+
return !!this._translationHandledLocally;
|
|
3820
|
+
}
|
|
3821
|
+
set translationHandledLocally(value) {
|
|
3822
|
+
this._translationHandledLocally = value;
|
|
3818
3823
|
}
|
|
3819
3824
|
}
|
|
3820
3825
|
__decorate([
|
|
@@ -7880,8 +7885,8 @@ ___
|
|
|
7880
7885
|
class LabelSubstitutorDirective {
|
|
7881
7886
|
fieldsUtils;
|
|
7882
7887
|
placeholderService;
|
|
7883
|
-
rpxTranslationPipe;
|
|
7884
7888
|
rpxTranslationService;
|
|
7889
|
+
cdr;
|
|
7885
7890
|
caseField;
|
|
7886
7891
|
contextFields = [];
|
|
7887
7892
|
formGroup;
|
|
@@ -7889,11 +7894,12 @@ class LabelSubstitutorDirective {
|
|
|
7889
7894
|
initialLabel;
|
|
7890
7895
|
initialHintText;
|
|
7891
7896
|
languageSubscription;
|
|
7892
|
-
|
|
7897
|
+
templateTranslationSubscription;
|
|
7898
|
+
constructor(fieldsUtils, placeholderService, rpxTranslationService, cdr) {
|
|
7893
7899
|
this.fieldsUtils = fieldsUtils;
|
|
7894
7900
|
this.placeholderService = placeholderService;
|
|
7895
|
-
this.rpxTranslationPipe = rpxTranslationPipe;
|
|
7896
7901
|
this.rpxTranslationService = rpxTranslationService;
|
|
7902
|
+
this.cdr = cdr;
|
|
7897
7903
|
}
|
|
7898
7904
|
ngOnInit() {
|
|
7899
7905
|
this.initialLabel = this.caseField.label;
|
|
@@ -7922,10 +7928,12 @@ class LabelSubstitutorDirective {
|
|
|
7922
7928
|
}
|
|
7923
7929
|
}
|
|
7924
7930
|
}
|
|
7925
|
-
applySubstitutions(
|
|
7931
|
+
applySubstitutions() {
|
|
7932
|
+
this.templateTranslationSubscription?.unsubscribe();
|
|
7926
7933
|
const fields = this.getReadOnlyAndFormFields();
|
|
7934
|
+
this.caseField.translationHandledLocally = false;
|
|
7927
7935
|
if (this.shouldSubstitute('label')) {
|
|
7928
|
-
this.applyLabelSubstitution(fields
|
|
7936
|
+
this.applyLabelSubstitution(fields);
|
|
7929
7937
|
}
|
|
7930
7938
|
if (this.shouldSubstitute('hint_text')) {
|
|
7931
7939
|
this.caseField.hint_text = this.resolvePlaceholders(fields, this.caseField.hint_text);
|
|
@@ -7934,7 +7942,7 @@ class LabelSubstitutorDirective {
|
|
|
7934
7942
|
this.caseField.value = this.resolvePlaceholders(fields, this.caseField.value);
|
|
7935
7943
|
}
|
|
7936
7944
|
}
|
|
7937
|
-
applyLabelSubstitution(fields
|
|
7945
|
+
applyLabelSubstitution(fields) {
|
|
7938
7946
|
const currentLabel = this.caseField.label;
|
|
7939
7947
|
// `originalLabel` stores the label exactly as it came from the server, before any
|
|
7940
7948
|
// placeholder values were inserted. That gives us a clean starting point when the user
|
|
@@ -7955,46 +7963,41 @@ class LabelSubstitutorDirective {
|
|
|
7955
7963
|
}
|
|
7956
7964
|
// Preserve the original template the first time we successfully interpolate it.
|
|
7957
7965
|
this.caseField.originalLabel = this.caseField.originalLabel || originalLabel;
|
|
7958
|
-
this.applyTranslatedLabelState(fields, originalLabel, substitutedLabel
|
|
7959
|
-
}
|
|
7960
|
-
applyTranslatedLabelState(fields, originalLabel, substitutedLabel
|
|
7961
|
-
//
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
// the render layer translate that final resolved string.
|
|
7966
|
-
const translatedResolvedLabel = isLanguageChange
|
|
7967
|
-
? this.translateLabelOnLanguageChange(substitutedLabel)
|
|
7968
|
-
: this.translateLabel(substitutedLabel);
|
|
7969
|
-
const languageIsWelsh = this.rpxTranslationService.language === 'cy';
|
|
7970
|
-
const hasResolvedWelshTranslation = languageIsWelsh
|
|
7971
|
-
&& translatedResolvedLabel
|
|
7972
|
-
&& translatedResolvedLabel !== substitutedLabel;
|
|
7973
|
-
const hasTemplateWelshTranslation = languageIsWelsh
|
|
7974
|
-
&& translatedTemplateLabel
|
|
7975
|
-
&& translatedTemplateLabel !== substitutedLabel;
|
|
7976
|
-
if (hasResolvedWelshTranslation) {
|
|
7977
|
-
// Keep the resolved English label and mark it as not yet translated so the field
|
|
7978
|
-
// template can run `rpxTranslate` on the full phrase at render time.
|
|
7979
|
-
this.setLabelState(substitutedLabel);
|
|
7980
|
-
return;
|
|
7981
|
-
}
|
|
7982
|
-
if (hasTemplateWelshTranslation) {
|
|
7983
|
-
// Use the template-translated result when translating the fully resolved label does
|
|
7984
|
-
// not improve the Welsh output.
|
|
7985
|
-
this.setLabelState(translatedTemplateLabel, true);
|
|
7966
|
+
this.applyTranslatedLabelState(fields, originalLabel, substitutedLabel);
|
|
7967
|
+
}
|
|
7968
|
+
applyTranslatedLabelState(fields, originalLabel, substitutedLabel) {
|
|
7969
|
+
// Interpolated content must be rendered without another translation request.
|
|
7970
|
+
this.caseField.translationHandledLocally = true;
|
|
7971
|
+
this.setLabelState(substitutedLabel, false);
|
|
7972
|
+
if (this.rpxTranslationService.language !== 'cy') {
|
|
7986
7973
|
return;
|
|
7987
7974
|
}
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7975
|
+
this.templateTranslationSubscription = this.rpxTranslationService
|
|
7976
|
+
.getTranslation$(originalLabel)
|
|
7977
|
+
.subscribe((translatedTemplate) => {
|
|
7978
|
+
if (this.rpxTranslationService.language !== 'cy' ||
|
|
7979
|
+
!translatedTemplate ||
|
|
7980
|
+
translatedTemplate.includes('[Translation in progress]')) {
|
|
7981
|
+
return;
|
|
7982
|
+
}
|
|
7983
|
+
// Initial English emissions and English fallbacks are not Welsh results.
|
|
7984
|
+
if (translatedTemplate.trim() === originalLabel.trim()) {
|
|
7985
|
+
this.setLabelState(substitutedLabel, false);
|
|
7986
|
+
this.cdr.markForCheck();
|
|
7987
|
+
return;
|
|
7988
|
+
}
|
|
7989
|
+
// Re-read values at emission time so delayed translations use the latest form/context values.
|
|
7990
|
+
const latestFields = this.getReadOnlyAndFormFields();
|
|
7991
|
+
const resolvedLabel = this.resolvePlaceholders(latestFields, translatedTemplate);
|
|
7992
|
+
// Keep usable existing content if the template cannot be resolved.
|
|
7993
|
+
if (resolvedLabel && resolvedLabel.trim()) {
|
|
7994
|
+
this.setLabelState(resolvedLabel, resolvedLabel !== substitutedLabel);
|
|
7995
|
+
}
|
|
7996
|
+
else {
|
|
7997
|
+
this.setLabelState(substitutedLabel, false);
|
|
7998
|
+
}
|
|
7999
|
+
this.cdr.markForCheck();
|
|
8000
|
+
});
|
|
7998
8001
|
}
|
|
7999
8002
|
setLabelState(label, isTranslated = false) {
|
|
8000
8003
|
this.caseField.label = label;
|
|
@@ -8002,7 +8005,7 @@ class LabelSubstitutorDirective {
|
|
|
8002
8005
|
}
|
|
8003
8006
|
onLanguageChange() {
|
|
8004
8007
|
this.resetToInitialValues(true);
|
|
8005
|
-
this.applySubstitutions(
|
|
8008
|
+
this.applySubstitutions();
|
|
8006
8009
|
}
|
|
8007
8010
|
resetToInitialValues(isLanguageChange = false) {
|
|
8008
8011
|
if (isLanguageChange && this.caseField?.originalLabel) {
|
|
@@ -8017,6 +8020,7 @@ class LabelSubstitutorDirective {
|
|
|
8017
8020
|
// Check if isTranslated is a property on caseField before setting it
|
|
8018
8021
|
if (this.caseField) {
|
|
8019
8022
|
this.caseField.isTranslated = false;
|
|
8023
|
+
this.caseField.translationHandledLocally = false;
|
|
8020
8024
|
}
|
|
8021
8025
|
}
|
|
8022
8026
|
ngOnDestroy() {
|
|
@@ -8024,6 +8028,9 @@ class LabelSubstitutorDirective {
|
|
|
8024
8028
|
if (this.languageSubscription) {
|
|
8025
8029
|
this.languageSubscription.unsubscribe();
|
|
8026
8030
|
}
|
|
8031
|
+
if (this.templateTranslationSubscription) {
|
|
8032
|
+
this.templateTranslationSubscription.unsubscribe();
|
|
8033
|
+
}
|
|
8027
8034
|
}
|
|
8028
8035
|
shouldSubstitute(element) {
|
|
8029
8036
|
return this.elementsToSubstitute.find(e => e === element) !== undefined;
|
|
@@ -8050,7 +8057,7 @@ class LabelSubstitutorDirective {
|
|
|
8050
8057
|
resolvePlaceholders(fields, stringToResolve) {
|
|
8051
8058
|
return this.placeholderService.resolvePlaceholders(fields, stringToResolve);
|
|
8052
8059
|
}
|
|
8053
|
-
static ɵfac = function LabelSubstitutorDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LabelSubstitutorDirective)(i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(i1.
|
|
8060
|
+
static ɵfac = function LabelSubstitutorDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LabelSubstitutorDirective)(i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
8054
8061
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LabelSubstitutorDirective, selectors: [["", "ccdLabelSubstitutor", ""]], inputs: { caseField: "caseField", contextFields: "contextFields", formGroup: "formGroup", elementsToSubstitute: "elementsToSubstitute" }, standalone: false });
|
|
8055
8062
|
}
|
|
8056
8063
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelSubstitutorDirective, [{
|
|
@@ -8059,7 +8066,7 @@ class LabelSubstitutorDirective {
|
|
|
8059
8066
|
selector: '[ccdLabelSubstitutor]',
|
|
8060
8067
|
standalone: false
|
|
8061
8068
|
}]
|
|
8062
|
-
}], () => [{ type: FieldsUtils }, { type: PlaceholderService }, { type: i1.
|
|
8069
|
+
}], () => [{ type: FieldsUtils }, { type: PlaceholderService }, { type: i1.RpxTranslationService }, { type: i0.ChangeDetectorRef }], { caseField: [{
|
|
8063
8070
|
type: Input
|
|
8064
8071
|
}], contextFields: [{
|
|
8065
8072
|
type: Input
|
|
@@ -16302,8 +16309,8 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16302
16309
|
}] }); })();
|
|
16303
16310
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 12 }); })();
|
|
16304
16311
|
|
|
16305
|
-
const _c0$X = (a0, a1, a2, a3, a4, a5, a6) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6 });
|
|
16306
|
-
const _c1$o = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
|
|
16312
|
+
const _c0$X = (a0, a1, a2, a3, a4, a5, a6, a7, a8) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6, isTranslated: a7, translationHandledLocally: a8 });
|
|
16313
|
+
const _c1$o = (a0, a1, a2, a3, a4, a5, a6, a7) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5, isTranslated: a6, translationHandledLocally: a7 });
|
|
16307
16314
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
16308
16315
|
i0.ɵɵelementStart(0, "tbody")(1, "tr");
|
|
16309
16316
|
i0.ɵɵelement(2, "th", 4);
|
|
@@ -16313,7 +16320,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
16313
16320
|
} if (rf & 2) {
|
|
16314
16321
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
16315
16322
|
i0.ɵɵadvance(4);
|
|
16316
|
-
i0.ɵɵproperty("caseField", i0.ɵɵ
|
|
16323
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunctionV(4, _c0$X, [ctx_r0.caseField.label, ctx_r0.caseField.label, ctx_r0.caseField.field_type.collection_field_type, ctx_r0.caseField.display_context_parameter, ctx_r0.caseField.value, ctx_r0.caseField.hidden, ctx_r0.caseField, ctx_r0.caseField.isTranslated, ctx_r0.caseField.translationHandledLocally]))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup);
|
|
16317
16324
|
} }
|
|
16318
16325
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
16319
16326
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
@@ -16324,11 +16331,11 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
16324
16331
|
const i_r3 = ctx.index;
|
|
16325
16332
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
16326
16333
|
i0.ɵɵadvance(2);
|
|
16327
|
-
i0.ɵɵproperty("caseField", i0.ɵɵ
|
|
16334
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction8(5, _c1$o, i_r3 + "", ctx_r0.caseField.label + " " + (i_r3 + 1), ctx_r0.caseField.field_type.collection_field_type, item_r2.value, ctx_r0.caseField.hidden, ctx_r0.caseField, ctx_r0.caseField.isTranslated, ctx_r0.caseField.translationHandledLocally))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.buildIdPrefix(i_r3));
|
|
16328
16335
|
} }
|
|
16329
16336
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
16330
16337
|
i0.ɵɵelementStart(0, "tbody");
|
|
16331
|
-
i0.ɵɵtemplate(1, ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template, 3,
|
|
16338
|
+
i0.ɵɵtemplate(1, ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template, 3, 14, "tr", 6);
|
|
16332
16339
|
i0.ɵɵelementEnd();
|
|
16333
16340
|
} if (rf & 2) {
|
|
16334
16341
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -16338,7 +16345,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf
|
|
|
16338
16345
|
function ReadCollectionFieldComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
16339
16346
|
i0.ɵɵelementStart(0, "table", 1);
|
|
16340
16347
|
i0.ɵɵelementContainerStart(1, 2);
|
|
16341
|
-
i0.ɵɵtemplate(2, ReadCollectionFieldComponent_table_0_tbody_2_Template, 5,
|
|
16348
|
+
i0.ɵɵtemplate(2, ReadCollectionFieldComponent_table_0_tbody_2_Template, 5, 14, "tbody", 3)(3, ReadCollectionFieldComponent_table_0_tbody_3_Template, 2, 1, "tbody", 3);
|
|
16342
16349
|
i0.ɵɵelementContainerEnd();
|
|
16343
16350
|
i0.ɵɵelementEnd();
|
|
16344
16351
|
} if (rf & 2) {
|
|
@@ -16374,7 +16381,7 @@ class ReadCollectionFieldComponent extends AbstractFieldReadComponent {
|
|
|
16374
16381
|
}
|
|
16375
16382
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadCollectionFieldComponent, [{
|
|
16376
16383
|
type: Component,
|
|
16377
|
-
args: [{ selector: 'ccd-read-collection-field', standalone: false, template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" aria-label=\"collection table\">\n <ng-container [ngSwitch]=\"isDisplayContextParameterAvailable\">\n <tbody *ngSwitchCase=\"true\">\n <tr>\n <th id=\"hiddenHeader\" style=\"display: none;\"></th>\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: caseField.label,\n label: caseField.label,\n field_type: caseField.field_type.collection_field_type,\n display_context_parameter: caseField.display_context_parameter,\n value: caseField.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n <tbody *ngSwitchCase=\"false\">\n <tr *ngFor=\"let item of caseField.value; let i = index\">\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: i + '',\n label: caseField.label + ' ' + (i + 1),\n field_type: caseField.field_type.collection_field_type,\n value: item.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"buildIdPrefix(i)\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n </ng-container>\n</table>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
|
|
16384
|
+
args: [{ selector: 'ccd-read-collection-field', standalone: false, template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" aria-label=\"collection table\">\n <ng-container [ngSwitch]=\"isDisplayContextParameterAvailable\">\n <tbody *ngSwitchCase=\"true\">\n <tr>\n <th id=\"hiddenHeader\" style=\"display: none;\"></th>\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: caseField.label,\n label: caseField.label,\n field_type: caseField.field_type.collection_field_type,\n display_context_parameter: caseField.display_context_parameter,\n value: caseField.value,\n hidden: caseField.hidden,\n parent: caseField,\n isTranslated: caseField.isTranslated,\n translationHandledLocally: caseField.translationHandledLocally\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n <tbody *ngSwitchCase=\"false\">\n <tr *ngFor=\"let item of caseField.value; let i = index\">\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: i + '',\n label: caseField.label + ' ' + (i + 1),\n field_type: caseField.field_type.collection_field_type,\n value: item.value,\n hidden: caseField.hidden,\n parent: caseField,\n isTranslated: caseField.isTranslated,\n translationHandledLocally: caseField.translationHandledLocally\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"buildIdPrefix(i)\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n </ng-container>\n</table>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
|
|
16378
16385
|
}], null, { caseFields: [{
|
|
16379
16386
|
type: Input
|
|
16380
16387
|
}] }); })();
|
|
@@ -16484,11 +16491,12 @@ function WriteCollectionFieldComponent_div_7_div_2_Template(rf, ctx) { if (rf &
|
|
|
16484
16491
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
16485
16492
|
i0.ɵɵelementEnd()()()();
|
|
16486
16493
|
i0.ɵɵelementStart(9, "div", 21)(10, "button", 22);
|
|
16494
|
+
i0.ɵɵpipe(11, "rpxTranslate");
|
|
16487
16495
|
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_div_7_div_2_Template_button_click_10_listener() { const i_r3 = i0.ɵɵrestoreView(_r2).index; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.openModal(i_r3)); });
|
|
16488
|
-
i0.ɵɵtext(
|
|
16489
|
-
i0.ɵɵpipe(
|
|
16496
|
+
i0.ɵɵtext(12);
|
|
16497
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
16490
16498
|
i0.ɵɵelementEnd()()();
|
|
16491
|
-
i0.ɵɵelement(
|
|
16499
|
+
i0.ɵɵelement(14, "ccd-field-write", 23);
|
|
16492
16500
|
i0.ɵɵelementEnd();
|
|
16493
16501
|
} if (rf & 2) {
|
|
16494
16502
|
const item_r4 = ctx.$implicit;
|
|
@@ -16498,18 +16506,18 @@ function WriteCollectionFieldComponent_div_7_div_2_Template(rf, ctx) { if (rf &
|
|
|
16498
16506
|
i0.ɵɵadvance(5);
|
|
16499
16507
|
i0.ɵɵproperty("for", item_r4.prefix + i_r3);
|
|
16500
16508
|
i0.ɵɵadvance(2);
|
|
16501
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8,
|
|
16509
|
+
i0.ɵɵtextInterpolate(ctx_r0.caseField.isTranslated || ctx_r0.caseField.translationHandledLocally ? ctx_r0.itemLabel(i_r3) : i0.ɵɵpipeBind1(8, 14, ctx_r0.itemLabel(i_r3)));
|
|
16502
16510
|
i0.ɵɵadvance(3);
|
|
16503
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵinterpolate1("Remove ", ctx_r0.itemLabel(i_r3)));
|
|
16504
16511
|
i0.ɵɵproperty("disabled", ctx_r0.isNotAuthorisedToDelete(i_r3));
|
|
16505
|
-
i0.ɵɵ
|
|
16506
|
-
i0.ɵɵ
|
|
16512
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(11, 16, "Remove") + " " + ctx_r0.itemLabel(i_r3));
|
|
16513
|
+
i0.ɵɵadvance(2);
|
|
16514
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 18, "Remove"));
|
|
16507
16515
|
i0.ɵɵadvance(2);
|
|
16508
16516
|
i0.ɵɵproperty("caseField", item_r4.caseField)("caseFields", ctx_r0.caseFields)("formGroup", ctx_r0.formGroup)("parent", item_r4.container)("idPrefix", item_r4.prefix)("hidden", item_r4.caseField.hidden)("isExpanded", ctx_r0.isExpanded)("isInSearchBlock", ctx_r0.isInSearchBlock);
|
|
16509
16517
|
} }
|
|
16510
16518
|
function WriteCollectionFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
16511
16519
|
i0.ɵɵelementStart(0, "div", 13)(1, "fieldset", 14);
|
|
16512
|
-
i0.ɵɵtemplate(2, WriteCollectionFieldComponent_div_7_div_2_Template,
|
|
16520
|
+
i0.ɵɵtemplate(2, WriteCollectionFieldComponent_div_7_div_2_Template, 15, 20, "div", 15);
|
|
16513
16521
|
i0.ɵɵelementEnd()();
|
|
16514
16522
|
} if (rf & 2) {
|
|
16515
16523
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -16888,7 +16896,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16888
16896
|
}
|
|
16889
16897
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCollectionFieldComponent, [{
|
|
16890
16898
|
type: Component,
|
|
16891
|
-
args: [{ selector: 'ccd-write-collection-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"!caseField.hidden\">\n {{(caseField | ccdFieldLabel)}}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n <ccd-markdown [content]=\"caseField.hint_text | rpxTranslate\"></ccd-markdown>\n </span>\n <span *ngIf=\"formArray.errors\" class=\"error-message\">\n {{(formArray.errors | ccdFirstError:caseField.label)}}\n </span>\n </h2>\n\n <div class=\"form-group\" [hidden]=\"caseField.hidden\" *ngIf=\"caseField.value && caseField.value.length\">\n <fieldset class=\"govuk-fieldset\">\n <div *ngFor=\"let item of collItems; let i = index; trackBy: trackByCollectionItem\" #collectionItem\n [id]=\"this.buildIdPrefix(i) + i\" class=\"form-group\">\n <div class=\"collection-title\">\n <div class=\"float-left\">\n <legend class=\"govuk-fieldset__legend\">\n <label [for]=\"item.prefix + i\"><h3 class=\"heading-h3\">{{itemLabel(i) | rpxTranslate}}</h3></label>\n </legend>\n </div>\n <div class=\"float-right\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"openModal(i)\"\n [disabled]=\"isNotAuthorisedToDelete(i)\"\n attr.aria-label=\"Remove
|
|
16899
|
+
args: [{ selector: 'ccd-write-collection-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"!caseField.hidden\">\n {{(caseField | ccdFieldLabel)}}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n <ccd-markdown [content]=\"caseField.hint_text | rpxTranslate\"></ccd-markdown>\n </span>\n <span *ngIf=\"formArray.errors\" class=\"error-message\">\n {{(formArray.errors | ccdFirstError:caseField.label)}}\n </span>\n </h2>\n\n <div class=\"form-group\" [hidden]=\"caseField.hidden\" *ngIf=\"caseField.value && caseField.value.length\">\n <fieldset class=\"govuk-fieldset\">\n <div *ngFor=\"let item of collItems; let i = index; trackBy: trackByCollectionItem\" #collectionItem\n [id]=\"this.buildIdPrefix(i) + i\" class=\"form-group\">\n <div class=\"collection-title\">\n <div class=\"float-left\">\n <legend class=\"govuk-fieldset__legend\">\n <label [for]=\"item.prefix + i\"><h3 class=\"heading-h3\">{{ (caseField.isTranslated || caseField.translationHandledLocally)\n ? itemLabel(i)\n : (itemLabel(i) | rpxTranslate) }}</h3></label>\n </legend>\n </div>\n <div class=\"float-right\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"openModal(i)\"\n [disabled]=\"isNotAuthorisedToDelete(i)\"\n [attr.aria-label]=\"('Remove' | rpxTranslate) + ' ' + itemLabel(i)\">{{'Remove' | rpxTranslate}}</button>\n </div>\n </div>\n <ccd-field-write [caseField]=\"item.caseField\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"item.container\"\n [idPrefix]=\"item.prefix\"\n [hidden]=\"item.caseField.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </div>\n </fieldset>\n </div>\n\n <button class=\"button write-collection-add-item__bottom\" type=\"button\" (click)=\"addItem(false)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\" *ngIf=\"caseField.value && caseField.value.length\">{{'Add new' | rpxTranslate }}</button>\n\n </div>\n\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
|
|
16892
16900
|
}], () => [{ type: i1$3.MatLegacyDialog }, { type: ProfileNotifier }, { type: i0.ChangeDetectorRef }], { caseFields: [{
|
|
16893
16901
|
type: Input
|
|
16894
16902
|
}], items: [{
|
|
@@ -19252,16 +19260,16 @@ class LabelFieldComponent {
|
|
|
19252
19260
|
} if (rf & 2) {
|
|
19253
19261
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden)("caseField", ctx.caseField)("contextFields", ctx.caseFields)("id", ctx.caseField.id);
|
|
19254
19262
|
i0.ɵɵadvance(2);
|
|
19255
|
-
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && !ctx.caseField.isTranslated);
|
|
19263
|
+
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && !ctx.caseField.isTranslated && !ctx.caseField.translationHandledLocally);
|
|
19256
19264
|
i0.ɵɵadvance();
|
|
19257
|
-
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && ctx.caseField.isTranslated);
|
|
19265
|
+
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && (ctx.caseField.isTranslated || ctx.caseField.translationHandledLocally));
|
|
19258
19266
|
i0.ɵɵadvance();
|
|
19259
19267
|
i0.ɵɵproperty("ngIf", !ctx.labelCanBeTranslated);
|
|
19260
19268
|
} }, encapsulation: 2 });
|
|
19261
19269
|
}
|
|
19262
19270
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelFieldComponent, [{
|
|
19263
19271
|
type: Component,
|
|
19264
|
-
args: [{ selector: 'ccd-label-field', standalone: false, 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\"
|
|
19272
|
+
args: [{ selector: 'ccd-label-field', standalone: false, 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 && !caseField.translationHandledLocally\"\n [content]=\"caseField.label | rpxTranslate\">\n </ccd-markdown>\n\n <ccd-markdown *ngIf=\"labelCanBeTranslated && (caseField.isTranslated || caseField.translationHandledLocally)\"\n [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" }]
|
|
19265
19273
|
}], null, { caseField: [{
|
|
19266
19274
|
type: Input
|
|
19267
19275
|
}], caseFields: [{
|
|
@@ -29958,7 +29966,7 @@ function FieldReadLabelComponent_dl_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
29958
29966
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
29959
29967
|
const caseFieldValue_r2 = i0.ɵɵreference(3);
|
|
29960
29968
|
i0.ɵɵadvance(2);
|
|
29961
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx_r0.caseField.label));
|
|
29969
|
+
i0.ɵɵtextInterpolate(ctx_r0.caseField.isTranslated || ctx_r0.caseField.translationHandledLocally ? ctx_r0.caseField.label : i0.ɵɵpipeBind1(3, 2, ctx_r0.caseField.label));
|
|
29962
29970
|
i0.ɵɵadvance(3);
|
|
29963
29971
|
i0.ɵɵproperty("ngTemplateOutlet", caseFieldValue_r2);
|
|
29964
29972
|
} }
|
|
@@ -30011,7 +30019,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
30011
30019
|
}
|
|
30012
30020
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadLabelComponent, [{
|
|
30013
30021
|
type: Component,
|
|
30014
|
-
args: [{ selector: 'ccd-field-read-label', standalone: false, 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}.govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.case-field{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}}@media print{.case-field .case-field__label{font-size:14pt}}.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}}@media print{.case-field .case-field__value{font-size:14pt}}.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"] }]
|
|
30022
|
+
args: [{ selector: 'ccd-field-read-label', standalone: false, 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.isTranslated || caseField.translationHandledLocally)\n ? caseField.label\n : (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}.govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.case-field{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}}@media print{.case-field .case-field__label{font-size:14pt}}.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}}@media print{.case-field .case-field__value{font-size:14pt}}.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"] }]
|
|
30015
30023
|
}], null, { withLabel: [{
|
|
30016
30024
|
type: Input
|
|
30017
30025
|
}] }); })();
|
|
@@ -34267,7 +34275,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
34267
34275
|
i0.ɵɵadvance();
|
|
34268
34276
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
34269
34277
|
i0.ɵɵadvance(2);
|
|
34270
|
-
i0.ɵɵ
|
|
34278
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.isTranslatable(field_r1) && !field_r1.isTranslated && !field_r1.translationHandledLocally ? i0.ɵɵpipeBind1(5, 11, field_r1.label) : field_r1.label, " ");
|
|
34271
34279
|
i0.ɵɵadvance(2);
|
|
34272
34280
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
34273
34281
|
i0.ɵɵadvance();
|
|
@@ -34292,7 +34300,7 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
34292
34300
|
}
|
|
34293
34301
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
34294
34302
|
type: Component,
|
|
34295
|
-
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n
|
|
34303
|
+
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\">\n <span class=\"text-16\">\n {{ (isTranslatable(field)\n && !field.isTranslated\n && !field.translationHandledLocally)\n ? (field.label | rpxTranslate)\n : field.label }}\n </span>\n </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 </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"] }]
|
|
34296
34304
|
}], null, { caseFields: [{
|
|
34297
34305
|
type: Input
|
|
34298
34306
|
}] }); })();
|
|
@@ -34321,7 +34329,7 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_template_4_th_1_Templa
|
|
|
34321
34329
|
} if (rf & 2) {
|
|
34322
34330
|
const field_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
34323
34331
|
i0.ɵɵadvance(2);
|
|
34324
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, field_r1.label));
|
|
34332
|
+
i0.ɵɵtextInterpolate(field_r1.isTranslated || field_r1.translationHandledLocally ? field_r1.label : i0.ɵɵpipeBind1(3, 1, field_r1.label));
|
|
34325
34333
|
} }
|
|
34326
34334
|
function ReadComplexFieldTableComponent_ng_container_9_ng_template_4_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
34327
34335
|
i0.ɵɵelement(0, "td");
|
|
@@ -34390,14 +34398,14 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
34390
34398
|
i0.ɵɵelementEnd()()();
|
|
34391
34399
|
} if (rf & 2) {
|
|
34392
34400
|
i0.ɵɵadvance(4);
|
|
34393
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 2, ctx.caseField.label));
|
|
34401
|
+
i0.ɵɵtextInterpolate(ctx.caseField.isTranslated || ctx.caseField.translationHandledLocally ? ctx.caseField.label : i0.ɵɵpipeBind1(5, 2, ctx.caseField.label));
|
|
34394
34402
|
i0.ɵɵadvance(5);
|
|
34395
34403
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(10, 4, i0.ɵɵpureFunction4(12, _c0$k, ctx.caseField, ctx.topLevelFormGroup, ctx.path, ctx.idPrefix)));
|
|
34396
34404
|
} }, styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.complex-panel[_ngcontent-%COMP%]{margin:13px 0;border:1px solid #bfc1c3}.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{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[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}@media print{.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{font-size:14pt}}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{vertical-align:top}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%], .complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.complex-panel[_ngcontent-%COMP%] .complex-panel-simple-field[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-left:5px;width:295px}.complex-panel[_ngcontent-%COMP%] .complex-panel-compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px}"] });
|
|
34397
34405
|
}
|
|
34398
34406
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
34399
34407
|
type: Component,
|
|
34400
|
-
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"
|
|
34408
|
+
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\">\n <dt>\n <span class=\"text-16\">{{ (caseField.isTranslated || caseField.translationHandledLocally)\n ? caseField.label\n : (caseField.label | rpxTranslate) }}</span>\n </dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-label=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th *ngIf=\"field.label\" scope=\"row\">\n <span class=\"text-16\">{{ (field.isTranslated || field.translationHandledLocally)\n ? field.label\n : (field.label | rpxTranslate) }}</span>\n </th>\n <td *ngIf=\"!field.label\"></td>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.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}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.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"] }]
|
|
34401
34409
|
}], null, { caseFields: [{
|
|
34402
34410
|
type: Input
|
|
34403
34411
|
}] }); })();
|
|
@@ -34411,16 +34419,17 @@ function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) { if (
|
|
|
34411
34419
|
i0.ɵɵelementEnd();
|
|
34412
34420
|
i0.ɵɵelementStart(4, "a", 10);
|
|
34413
34421
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
34422
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
34414
34423
|
i0.ɵɵlistener("click", function ReadComplexFieldCollectionTableComponent_th_10_Template_a_click_4_listener($event) { const heading_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); ctx_r2.sortRowsByColumns(heading_r2); return i0.ɵɵresetView($event.preventDefault()); })("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)); });
|
|
34415
34424
|
i0.ɵɵelementEnd()();
|
|
34416
34425
|
} if (rf & 2) {
|
|
34417
34426
|
const heading_r2 = ctx.$implicit;
|
|
34418
34427
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
34419
34428
|
i0.ɵɵadvance(2);
|
|
34420
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, ctx_r2.columnsAllLabels[heading_r2].label));
|
|
34429
|
+
i0.ɵɵtextInterpolate((ctx_r2.columnsAllLabels[heading_r2].caseField == null ? null : ctx_r2.columnsAllLabels[heading_r2].caseField.isTranslated) || (ctx_r2.columnsAllLabels[heading_r2].caseField == null ? null : ctx_r2.columnsAllLabels[heading_r2].caseField.translationHandledLocally) ? ctx_r2.columnsAllLabels[heading_r2].caseField.label : i0.ɵɵpipeBind1(3, 3, ctx_r2.columnsAllLabels[heading_r2].label));
|
|
34421
34430
|
i0.ɵɵadvance(2);
|
|
34422
34431
|
i0.ɵɵproperty("innerHTML", ctx_r2.sortWidget(ctx_r2.columnsAllLabels[heading_r2]), i0.ɵɵsanitizeHtml);
|
|
34423
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(5, 5, "Sort " + ctx_r2.columnsAllLabels[heading_r2].label));
|
|
34432
|
+
i0.ɵɵattribute("aria-label", (ctx_r2.columnsAllLabels[heading_r2].caseField == null ? null : ctx_r2.columnsAllLabels[heading_r2].caseField.isTranslated) || (ctx_r2.columnsAllLabels[heading_r2].caseField == null ? null : ctx_r2.columnsAllLabels[heading_r2].caseField.translationHandledLocally) ? i0.ɵɵpipeBind1(5, 5, "Sort") + " " + ctx_r2.columnsAllLabels[heading_r2].caseField.label : i0.ɵɵpipeBind1(6, 7, "Sort " + ctx_r2.columnsAllLabels[heading_r2].label));
|
|
34424
34433
|
} }
|
|
34425
34434
|
function ReadComplexFieldCollectionTableComponent_ng_container_14_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
34426
34435
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -34460,7 +34469,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_14_ng_container_1
|
|
|
34460
34469
|
const item_r7 = i0.ɵɵnextContext().$implicit;
|
|
34461
34470
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
34462
34471
|
i0.ɵɵadvance();
|
|
34463
|
-
i0.ɵɵproperty("caseField", ctx_r2.toCaseField("", vLabel_r9.label, vLabel_r9.field_type, item_r7[vLabel_r9.id]))("context", ctx_r2.context);
|
|
34472
|
+
i0.ɵɵproperty("caseField", ctx_r2.toCaseField("", vLabel_r9.label, vLabel_r9.field_type, item_r7[vLabel_r9.id], vLabel_r9))("context", ctx_r2.context);
|
|
34464
34473
|
} }
|
|
34465
34474
|
function ReadComplexFieldCollectionTableComponent_ng_container_14_ng_container_11_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
34466
34475
|
i0.ɵɵelementStart(0, "tr", 22)(1, "th", 9)(2, "span", 4);
|
|
@@ -34473,7 +34482,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_14_ng_container_1
|
|
|
34473
34482
|
const vLabel_r9 = i0.ɵɵnextContext().$implicit;
|
|
34474
34483
|
i0.ɵɵproperty("hidden", vLabel_r9.hidden);
|
|
34475
34484
|
i0.ɵɵadvance(3);
|
|
34476
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, vLabel_r9.label));
|
|
34485
|
+
i0.ɵɵtextInterpolate(vLabel_r9.isTranslated || vLabel_r9.translationHandledLocally ? vLabel_r9.label : i0.ɵɵpipeBind1(4, 3, vLabel_r9.label));
|
|
34477
34486
|
i0.ɵɵadvance(2);
|
|
34478
34487
|
i0.ɵɵproperty("ngIf", vLabel_r9["type"] !== "Complex");
|
|
34479
34488
|
} }
|
|
@@ -34523,7 +34532,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_14_ng_container_1
|
|
|
34523
34532
|
const item_r7 = i0.ɵɵnextContext().$implicit;
|
|
34524
34533
|
i0.ɵɵproperty("hidden", caseField_r10.hidden);
|
|
34525
34534
|
i0.ɵɵadvance(3);
|
|
34526
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, caseField_r10.label));
|
|
34535
|
+
i0.ɵɵtextInterpolate(caseField_r10.isTranslated || caseField_r10.translationHandledLocally ? caseField_r10.label : i0.ɵɵpipeBind1(4, 4, caseField_r10.label));
|
|
34527
34536
|
i0.ɵɵadvance(2);
|
|
34528
34537
|
i0.ɵɵproperty("ngIf", !(item_r7[vLabel_r9.id] == null ? null : item_r7[vLabel_r9.id].hasOwnProperty("CaseReference")));
|
|
34529
34538
|
i0.ɵɵadvance();
|
|
@@ -34654,13 +34663,15 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
34654
34663
|
field.value = { CaseReference: value };
|
|
34655
34664
|
return field;
|
|
34656
34665
|
}
|
|
34657
|
-
toCaseField(id, label, fieldType, value) {
|
|
34666
|
+
toCaseField(id, label, fieldType, value, sourceField) {
|
|
34658
34667
|
return plainToClassFromExist(new CaseField(), {
|
|
34659
34668
|
id,
|
|
34660
34669
|
label,
|
|
34661
34670
|
display_context: 'READONLY',
|
|
34662
34671
|
value,
|
|
34663
|
-
field_type: fieldType
|
|
34672
|
+
field_type: fieldType,
|
|
34673
|
+
isTranslated: !!sourceField?.isTranslated,
|
|
34674
|
+
translationHandledLocally: !!sourceField?.translationHandledLocally
|
|
34664
34675
|
});
|
|
34665
34676
|
}
|
|
34666
34677
|
keepOriginalOrder = (a, b) => a.key;
|
|
@@ -34758,7 +34769,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
34758
34769
|
i0.ɵɵelement(6, "dd");
|
|
34759
34770
|
i0.ɵɵelementEnd();
|
|
34760
34771
|
i0.ɵɵelementStart(7, "table", 5)(8, "tbody")(9, "tr");
|
|
34761
|
-
i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template,
|
|
34772
|
+
i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template, 7, 9, "th", 6);
|
|
34762
34773
|
i0.ɵɵelementStart(11, "th")(12, "span", 7);
|
|
34763
34774
|
i0.ɵɵtext(13, "Expand row");
|
|
34764
34775
|
i0.ɵɵelementEnd()()();
|
|
@@ -34767,7 +34778,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
34767
34778
|
} if (rf & 2) {
|
|
34768
34779
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
34769
34780
|
i0.ɵɵadvance(4);
|
|
34770
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ctx.caseField.label));
|
|
34781
|
+
i0.ɵɵtextInterpolate(ctx.caseField.isTranslated || ctx.caseField.translationHandledLocally ? ctx.caseField.label : i0.ɵɵpipeBind1(5, 4, ctx.caseField.label));
|
|
34771
34782
|
i0.ɵɵadvance(6);
|
|
34772
34783
|
i0.ɵɵproperty("ngForOf", ctx.columns);
|
|
34773
34784
|
i0.ɵɵadvance(4);
|
|
@@ -34776,7 +34787,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
|
|
|
34776
34787
|
}
|
|
34777
34788
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldCollectionTableComponent, [{
|
|
34778
34789
|
type: Component,
|
|
34779
|
-
args: [{ selector: 'ccd-read-complex-field-collection-table', standalone: false, 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-label=\"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=\"#\"\n (click)=\"sortRowsByColumns(heading); $event.preventDefault()\"\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><span class=\"govuk-visually-hidden\">Expand row</span></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=\"#\" (click)=\"$event.preventDefault()\"> <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-label=\"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: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.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}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.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"] }]
|
|
34790
|
+
args: [{ selector: 'ccd-read-complex-field-collection-table', standalone: false, template: "<div class=\"complex-panel\" [hidden]=\"caseField.hidden\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{ (caseField.isTranslated || caseField.translationHandledLocally)\n ? caseField.label\n : (caseField.label | rpxTranslate) }}</span></dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-label=\"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].caseField?.isTranslated\n || columnsAllLabels[heading].caseField?.translationHandledLocally)\n ? columnsAllLabels[heading].caseField.label\n : (columnsAllLabels[heading].label | rpxTranslate) }}</span>\n <a href=\"#\"\n (click)=\"sortRowsByColumns(heading); $event.preventDefault()\"\n (keyup.enter)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [attr.aria-label]=\"(columnsAllLabels[heading].caseField?.isTranslated\n || columnsAllLabels[heading].caseField?.translationHandledLocally)\n ? ('Sort' | rpxTranslate) + ' ' + columnsAllLabels[heading].caseField.label\n : ('Sort ' + columnsAllLabels[heading].label | rpxTranslate)\"\n [innerHTML]=\"sortWidget(columnsAllLabels[heading])\"></a>\n </th>\n <th><span class=\"govuk-visually-hidden\">Expand row</span></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=\"#\" (click)=\"$event.preventDefault()\"> <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-label=\"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.isTranslated || vLabel.translationHandledLocally)\n ? vLabel.label\n : (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], vLabel)\"\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.isTranslated || caseField.translationHandledLocally)\n ? caseField.label\n : (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: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.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}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.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"] }]
|
|
34780
34791
|
}], null, null); })();
|
|
34781
34792
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldCollectionTableComponent, { className: "ReadComplexFieldCollectionTableComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-collection-table.component.ts", lineNumber: 13 }); })();
|
|
34782
34793
|
|
|
@@ -35831,6 +35842,8 @@ class ReadFieldsFilterPipe {
|
|
|
35831
35842
|
}
|
|
35832
35843
|
static cloneFieldWithValue(field, values, index) {
|
|
35833
35844
|
const clone = FieldsUtils.cloneObject(field);
|
|
35845
|
+
clone.isTranslated = !!field.isTranslated;
|
|
35846
|
+
clone.translationHandledLocally = !!field.translationHandledLocally;
|
|
35834
35847
|
const value = ReadFieldsFilterPipe.getValue(field, values, index);
|
|
35835
35848
|
if (!ReadFieldsFilterPipe.isEmpty(value)) {
|
|
35836
35849
|
clone.value = value;
|
|
@@ -36367,14 +36380,14 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
36367
36380
|
i0.ɵɵadvance();
|
|
36368
36381
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
|
|
36369
36382
|
i0.ɵɵadvance(8);
|
|
36370
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
|
|
36383
|
+
i0.ɵɵtextInterpolate(ctx.caseField.isTranslated || ctx.caseField.translationHandledLocally ? ctx.caseField.label : i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
|
|
36371
36384
|
i0.ɵɵadvance(3);
|
|
36372
36385
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 7, ctx.selectedOrg$));
|
|
36373
36386
|
} }, dependencies: [i5.NgIf, MarkdownComponent, i5.AsyncPipe, i1.RpxTranslatePipe], styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.hmcts-banner[_ngcontent-%COMP%]{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{font-weight:700}.govuk-hint[_ngcontent-%COMP%]{font-size:1.1rem}.name-header[_ngcontent-%COMP%]{font-weight:700;margin-top:10px;font-size:18px}.td-address[_ngcontent-%COMP%]{width:90%;padding-top:2px}.td-select[_ngcontent-%COMP%]{width:10%}.warning-panel[_ngcontent-%COMP%]{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{padding-left:15px}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{border:none}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%], .complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.complex-field-title[_ngcontent-%COMP%]{width:300px}.label-width-small[_ngcontent-%COMP%]{width:100px}.label-width-medium[_ngcontent-%COMP%]{width:150px}.scroll-container[_ngcontent-%COMP%]{height:600px;overflow-y:scroll}.no-result-message[_ngcontent-%COMP%]{margin-top:15px}"] });
|
|
36374
36387
|
}
|
|
36375
36388
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
|
|
36376
36389
|
type: Component,
|
|
36377
|
-
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
36390
|
+
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{ (caseField.isTranslated || caseField.translationHandledLocally)\n ? caseField.label\n : (caseField.label | rpxTranslate) }}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
36378
36391
|
}], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
|
|
36379
36392
|
type: Input
|
|
36380
36393
|
}] }); })();
|
|
@@ -37347,7 +37360,7 @@ function CaseEditSubmitComponent_div_12_ng_container_1_ng_container_7_ng_contain
|
|
|
37347
37360
|
} if (rf & 2) {
|
|
37348
37361
|
const field_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
37349
37362
|
i0.ɵɵadvance(2);
|
|
37350
|
-
i0.ɵɵ
|
|
37363
|
+
i0.ɵɵtextInterpolate1(" ", field_r3.isTranslated || field_r3.translationHandledLocally ? field_r3.label : i0.ɵɵpipeBind1(3, 1, field_r3.label), " ");
|
|
37351
37364
|
} }
|
|
37352
37365
|
function CaseEditSubmitComponent_div_12_ng_container_1_ng_container_7_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
37353
37366
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -37362,7 +37375,7 @@ function CaseEditSubmitComponent_div_12_ng_container_1_ng_container_7_ng_contain
|
|
|
37362
37375
|
} if (rf & 2) {
|
|
37363
37376
|
const field_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
37364
37377
|
i0.ɵɵadvance();
|
|
37365
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵinterpolate2("", i0.ɵɵpipeBind1(2, 4, "Change"), " ", i0.ɵɵpipeBind1(3, 6, field_r3.label)));
|
|
37378
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵinterpolate2("", i0.ɵɵpipeBind1(2, 4, "Change"), " ", field_r3.isTranslated || field_r3.translationHandledLocally ? field_r3.label : i0.ɵɵpipeBind1(3, 6, field_r3.label)));
|
|
37366
37379
|
i0.ɵɵadvance(3);
|
|
37367
37380
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 8, "Change"), " ");
|
|
37368
37381
|
} }
|
|
@@ -37965,7 +37978,7 @@ class CaseEditSubmitComponent {
|
|
|
37965
37978
|
}
|
|
37966
37979
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
37967
37980
|
type: Component,
|
|
37968
|
-
args: [{ selector: 'ccd-case-edit-submit', standalone: false, template: "<div>\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-label=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\"
|
|
37981
|
+
args: [{ selector: 'ccd-case-edit-submit', standalone: false, template: "<div>\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-label=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">\n {{ (field.isTranslated || field.translationHandledLocally)\n ? field.label\n : (field.label | rpxTranslate) }}\n </span>\n </th>\n <td class=\"form-cell case-field-content text-16\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id); $event.preventDefault()\"\n href=\"#\">\n <span class=\"text-16\"\n attr.aria-label=\"{{ 'Change' | rpxTranslate }} {{\n (field.isTranslated || field.translationHandledLocally)\n ? field.label\n : (field.label | rpxTranslate) }}\">\n {{ 'Change' | rpxTranslate }}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-label=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel(); $event.preventDefault()\" href=\"#\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}.refresh-modal-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.refresh-modal{background:#fff;padding:24px;max-width:520px;width:90%;box-shadow:0 8px 24px #0003;border-radius:4px;text-align:center}.refresh-modal .button{margin-top:12px}\n"] }]
|
|
37969
37982
|
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$2.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: MultipageComponentStateService }, { type: FormValidatorsService }, { type: CaseFlagStateService }, { type: LinkedCasesService }, { type: PlaceholderService }], null); })();
|
|
37970
37983
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber: 32 }); })();
|
|
37971
37984
|
|
|
@@ -41260,7 +41273,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
41260
41273
|
const field_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
41261
41274
|
i0.ɵɵproperty("id", "case-viewer-field-label--" + field_r7.id);
|
|
41262
41275
|
i0.ɵɵadvance(2);
|
|
41263
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, field_r7.label));
|
|
41276
|
+
i0.ɵɵtextInterpolate1(" ", field_r7.isTranslated || field_r7.translationHandledLocally ? field_r7.label : i0.ɵɵpipeBind1(3, 2, field_r7.label), " ");
|
|
41264
41277
|
} }
|
|
41265
41278
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
41266
41279
|
i0.ɵɵelementStart(0, "tr");
|
|
@@ -41289,7 +41302,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
|
|
|
41289
41302
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
41290
41303
|
i0.ɵɵadvance();
|
|
41291
41304
|
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
|
|
41292
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 6, field_r7.label || field_r7.id));
|
|
41305
|
+
i0.ɵɵattribute("aria-label", field_r7.label && (field_r7.isTranslated || field_r7.translationHandledLocally) ? field_r7.label : i0.ɵɵpipeBind1(2, 6, field_r7.label || field_r7.id));
|
|
41293
41306
|
i0.ɵɵadvance(3);
|
|
41294
41307
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseFields", ctx_r1.caseFields)("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
|
|
41295
41308
|
} }
|
|
@@ -41879,7 +41892,7 @@ class CaseFullAccessViewComponent {
|
|
|
41879
41892
|
}
|
|
41880
41893
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
41881
41894
|
type: Component,
|
|
41882
|
-
args: [{ selector: 'ccd-case-full-access-view', standalone: false, 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\" [(selectedIndex)]=\"selectedTabIndex\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"tab.id === 'tasks'\">\n <exui-tasks-ce></exui-tasks-ce>\n </ng-container>\n <ng-container *ngIf=\"tab.id === 'roles-and-access'\">\n <exui-roles-and-access-ce></exui-roles-and-access-ce>\n </ng-container>\n </ng-template>\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--' + field.id\" scope=\"row\" *ngIf=\"!isFieldToHaveNoLabel(field) && field.label\">\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']\" [caseFields]=\"caseFields\"\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 <td role=\"rowheader\"
|
|
41895
|
+
args: [{ selector: 'ccd-case-full-access-view', standalone: false, 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\" [(selectedIndex)]=\"selectedTabIndex\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"tab.id === 'tasks'\">\n <exui-tasks-ce></exui-tasks-ce>\n </ng-container>\n <ng-container *ngIf=\"tab.id === 'roles-and-access'\">\n <exui-roles-and-access-ce></exui-roles-and-access-ce>\n </ng-container>\n </ng-template>\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--' + field.id\" scope=\"row\" *ngIf=\"!isFieldToHaveNoLabel(field) && field.label\">\n <div class=\"case-viewer-label text-16\">\n {{ (field.isTranslated || field.translationHandledLocally)\n ? field.label\n : (field.label | rpxTranslate) }}\n </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']\" [caseFields]=\"caseFields\"\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 <td role=\"rowheader\"\n [attr.aria-label]=\"field.label && (field.isTranslated || field.translationHandledLocally)\n ? field.label\n : ((field.label || field.id) | rpxTranslate)\"\n [id]=\"'case-viewer-field-read--' + field.id\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\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 <ng-template matTabContent>\n <ng-container *ngIf=\"tab.id === 'hearings'\">\n <exui-case-hearings-ce></exui-case-hearings-ce>\n </ng-container>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n </div>\n</div>\n", styles: ["th,.compound-field>td{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.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}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
41883
41896
|
}], () => [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.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 }, { type: i0.NgZone }], { hasPrint: [{
|
|
41884
41897
|
type: Input
|
|
41885
41898
|
}], hasEventSelector: [{
|