@hmcts/ccd-case-ui-toolkit 7.0.19 → 7.0.20-aria-accessibility-fix
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/base-field/field-read.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/collection/read-collection-field.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/complex/read-complex-field-table.component.mjs +3 -3
- package/esm2020/lib/shared/components/palette/yes-no/read-yes-no-field.component.mjs +3 -6
- package/esm2020/lib/shared/components/search-result/search-result.component.mjs +187 -179
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +198 -191
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +196 -191
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/yes-no/read-yes-no-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -12900,7 +12900,7 @@ class ReadCollectionFieldComponent extends AbstractFieldReadComponent {
|
|
|
12900
12900
|
}
|
|
12901
12901
|
}
|
|
12902
12902
|
ReadCollectionFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵReadCollectionFieldComponent_BaseFactory; return function ReadCollectionFieldComponent_Factory(t) { return (ɵReadCollectionFieldComponent_BaseFactory || (ɵReadCollectionFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadCollectionFieldComponent)))(t || ReadCollectionFieldComponent); }; }();
|
|
12903
|
-
ReadCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadCollectionFieldComponent, selectors: [["ccd-read-collection-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "collection-field-table", "aria-describedby", "collection table", 4, "ngIf"], ["aria-describedby", "collection table", 1, "collection-field-table"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["id", "hiddenHeader", 2, "display", "none"], [3, "caseField", "context", "topLevelFormGroup"], [4, "ngFor", "ngForOf"], [3, "caseField", "context", "topLevelFormGroup", "idPrefix"]], template: function ReadCollectionFieldComponent_Template(rf, ctx) {
|
|
12903
|
+
ReadCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadCollectionFieldComponent, selectors: [["ccd-read-collection-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "collection-field-table", "id", "collection", "aria-describedby", "collection table", 4, "ngIf"], ["id", "collection", "aria-describedby", "collection table", 1, "collection-field-table"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["id", "hiddenHeader", 2, "display", "none"], [3, "caseField", "context", "topLevelFormGroup"], [4, "ngFor", "ngForOf"], [3, "caseField", "context", "topLevelFormGroup", "idPrefix"]], template: function ReadCollectionFieldComponent_Template(rf, ctx) {
|
|
12904
12904
|
if (rf & 1) {
|
|
12905
12905
|
i0.ɵɵtemplate(0, ReadCollectionFieldComponent_table_0_Template, 4, 3, "table", 0);
|
|
12906
12906
|
}
|
|
@@ -12911,7 +12911,7 @@ ReadCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
12911
12911
|
(function () {
|
|
12912
12912
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadCollectionFieldComponent, [{
|
|
12913
12913
|
type: Component,
|
|
12914
|
-
args: [{ selector: 'ccd-read-collection-field', template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" aria-describedby=\"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 }\"\n [context]=\"context\"\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 }\"\n [context]=\"context\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"buildIdPrefix(i)\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n </ng-container>\n</table>\n", styles: [".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}}.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"] }]
|
|
12914
|
+
args: [{ selector: 'ccd-read-collection-field', template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" id=\"collection\" aria-describedby=\"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 }\"\n [context]=\"context\"\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 }\"\n [context]=\"context\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"buildIdPrefix(i)\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n </ng-container>\n</table>\n", styles: [".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}}.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"] }]
|
|
12915
12915
|
}], null, null);
|
|
12916
12916
|
})();
|
|
12917
12917
|
|
|
@@ -21920,9 +21920,6 @@ class ReadYesNoFieldComponent extends AbstractFieldReadComponent {
|
|
|
21920
21920
|
ngOnInit() {
|
|
21921
21921
|
super.ngOnInit();
|
|
21922
21922
|
this.formattedValue = this.yesNoService.format(this.caseField.value);
|
|
21923
|
-
if (!this.caseField.label) {
|
|
21924
|
-
this.caseField.label = this.formattedValue;
|
|
21925
|
-
}
|
|
21926
21923
|
}
|
|
21927
21924
|
}
|
|
21928
21925
|
ReadYesNoFieldComponent.ɵfac = function ReadYesNoFieldComponent_Factory(t) { return new (t || ReadYesNoFieldComponent)(i0.ɵɵdirectiveInject(YesNoService)); };
|
|
@@ -21935,7 +21932,7 @@ ReadYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Rea
|
|
|
21935
21932
|
}
|
|
21936
21933
|
if (rf & 2) {
|
|
21937
21934
|
i0.ɵɵadvance(1);
|
|
21938
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue));
|
|
21935
|
+
i0.ɵɵtextInterpolate(ctx.formattedValue ? i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue) : null);
|
|
21939
21936
|
}
|
|
21940
21937
|
}, dependencies: [i1.RpxTranslatePipe], encapsulation: 2 });
|
|
21941
21938
|
(function () {
|
|
@@ -21943,7 +21940,7 @@ ReadYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Rea
|
|
|
21943
21940
|
type: Component,
|
|
21944
21941
|
args: [{
|
|
21945
21942
|
selector: 'ccd-read-yes-no-field',
|
|
21946
|
-
template: `<span class="text-16">{{caseField.label | rpxTranslate : null : formattedValue}}</span>`
|
|
21943
|
+
template: `<span class="text-16">{{formattedValue ? (caseField.label | rpxTranslate : null : formattedValue) : null}}</span>`
|
|
21947
21944
|
}]
|
|
21948
21945
|
}], function () { return [{ type: YesNoService }]; }, null);
|
|
21949
21946
|
})();
|
|
@@ -22212,7 +22209,7 @@ FieldReadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldRea
|
|
|
22212
22209
|
let _t;
|
|
22213
22210
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
22214
22211
|
}
|
|
22215
|
-
}, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 6, consts: [[3, "hidden"], [3, "formGroup", "topLevelFormGroup", "caseField", "withLabel", "markdownUseHrefAsRouterLink"], ["fieldContainer", ""]], template: function FieldReadComponent_Template(rf, ctx) {
|
|
22212
|
+
}, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 6, consts: [["id", "table", 3, "hidden"], [3, "formGroup", "topLevelFormGroup", "caseField", "withLabel", "markdownUseHrefAsRouterLink"], ["fieldContainer", ""]], template: function FieldReadComponent_Template(rf, ctx) {
|
|
22216
22213
|
if (rf & 1) {
|
|
22217
22214
|
i0.ɵɵelementStart(0, "div", 0)(1, "ccd-field-read-label", 1);
|
|
22218
22215
|
i0.ɵɵelementContainer(2, null, 2);
|
|
@@ -22227,7 +22224,7 @@ FieldReadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldRea
|
|
|
22227
22224
|
(function () {
|
|
22228
22225
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadComponent, [{
|
|
22229
22226
|
type: Component,
|
|
22230
|
-
args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\" [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n <ng-container #fieldContainer></ng-container>\n </ccd-field-read-label>\n</div>\n" }]
|
|
22227
|
+
args: [{ selector: 'ccd-field-read', template: "<div id=\"table\" [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\" [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n <ng-container #fieldContainer></ng-container>\n </ccd-field-read-label>\n</div>\n" }]
|
|
22231
22228
|
}], function () { return [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }]; }, { withLabel: [{
|
|
22232
22229
|
type: Input
|
|
22233
22230
|
}], formGroup: [{
|
|
@@ -26568,7 +26565,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
26568
26565
|
}
|
|
26569
26566
|
}
|
|
26570
26567
|
ReadComplexFieldTableComponent.ɵfac = /*@__PURE__*/ function () { let ɵReadComplexFieldTableComponent_BaseFactory; return function ReadComplexFieldTableComponent_Factory(t) { return (ɵReadComplexFieldTableComponent_BaseFactory || (ɵReadComplexFieldTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent)))(t || ReadComplexFieldTableComponent); }; }();
|
|
26571
|
-
ReadComplexFieldTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 16, consts: [[1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["SimpleRow", ""], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) {
|
|
26568
|
+
ReadComplexFieldTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 16, consts: [[1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["id", "complex", "aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["SimpleRow", ""], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) {
|
|
26572
26569
|
if (rf & 1) {
|
|
26573
26570
|
i0.ɵɵelementStart(0, "div", 0)(1, "dl", 1)(2, "dt")(3, "span", 2);
|
|
26574
26571
|
i0.ɵɵtext(4);
|
|
@@ -26591,7 +26588,7 @@ ReadComplexFieldTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
26591
26588
|
(function () {
|
|
26592
26589
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
26593
26590
|
type: Component,
|
|
26594
|
-
args: [{ selector: 'ccd-read-complex-field-table', template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup: undefined :idPrefix\">\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\"\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 id=\"complex-panel-simple-field-label\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.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"] }]
|
|
26591
|
+
args: [{ selector: 'ccd-read-complex-field-table', template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table id=\"complex\" class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup: undefined :idPrefix\">\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\"\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 id=\"complex-panel-simple-field-label\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.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"] }]
|
|
26595
26592
|
}], null, { caseFields: [{
|
|
26596
26593
|
type: Input
|
|
26597
26594
|
}] });
|
|
@@ -33507,7 +33504,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_Tem
|
|
|
33507
33504
|
const tab_r20 = i0.ɵɵnextContext().$implicit;
|
|
33508
33505
|
const ctx_r22 = i0.ɵɵnextContext(2);
|
|
33509
33506
|
i0.ɵɵclassMap(tab_r20.id);
|
|
33510
|
-
i0.ɵɵattribute("aria-
|
|
33507
|
+
i0.ɵɵattribute("aria-labelledby", i0.ɵɵpipeBind1(1, 4, tab_r20.id));
|
|
33511
33508
|
i0.ɵɵadvance(3);
|
|
33512
33509
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(4, 6, i0.ɵɵpureFunction2(14, _c1$3, i0.ɵɵpipeBind1(5, 12, tab_r20), ctx_r22.formGroup.controls["data"])));
|
|
33513
33510
|
}
|
|
@@ -33991,7 +33988,7 @@ CaseFullAccessViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
33991
33988
|
(function () {
|
|
33992
33989
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
33993
33990
|
type: Component,
|
|
33994
|
-
args: [{ selector: 'ccd-case-full-access-view', template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-
|
|
33991
|
+
args: [{ selector: 'ccd-case-full-access-view', template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-labelledby]=\"tab.id | rpxTranslate\">\n <tbody>\n \n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}\n"] }]
|
|
33995
33992
|
}], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i4.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }]; }, { hasPrint: [{
|
|
33996
33993
|
type: Input
|
|
33997
33994
|
}], hasEventSelector: [{
|
|
@@ -37344,10 +37341,10 @@ i0.ɵɵsetComponentScope(SearchFiltersWrapperComponent, function () { return [i4
|
|
|
37344
37341
|
|
|
37345
37342
|
function SearchResultComponent_table_0_div_5_Template(rf, ctx) {
|
|
37346
37343
|
if (rf & 1) {
|
|
37347
|
-
i0.ɵɵelementStart(0, "div",
|
|
37344
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "span", 13);
|
|
37348
37345
|
i0.ɵɵtext(2, "!");
|
|
37349
37346
|
i0.ɵɵelementEnd();
|
|
37350
|
-
i0.ɵɵelementStart(3, "strong",
|
|
37347
|
+
i0.ɵɵelementStart(3, "strong", 14)(4, "span", 15);
|
|
37351
37348
|
i0.ɵɵtext(5);
|
|
37352
37349
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
37353
37350
|
i0.ɵɵelementEnd();
|
|
@@ -37358,31 +37355,31 @@ function SearchResultComponent_table_0_div_5_Template(rf, ctx) {
|
|
|
37358
37355
|
i0.ɵɵelementEnd()();
|
|
37359
37356
|
}
|
|
37360
37357
|
if (rf & 2) {
|
|
37361
|
-
const
|
|
37358
|
+
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
37362
37359
|
i0.ɵɵadvance(5);
|
|
37363
37360
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Warning"));
|
|
37364
37361
|
i0.ɵɵadvance(2);
|
|
37365
|
-
i0.ɵɵtextInterpolate3(" ", i0.ɵɵpipeBind1(8, 6, "The total size of the result set is"), " ", i0.ɵɵpipeBind1(9, 8,
|
|
37362
|
+
i0.ɵɵtextInterpolate3(" ", i0.ɵɵpipeBind1(8, 6, "The total size of the result set is"), " ", i0.ɵɵpipeBind1(9, 8, ctx_r4.paginationMetadata.totalResultsCount), ". ", i0.ɵɵpipeBind1(10, 10, "Only the first 10,000 records are available for display."), " ");
|
|
37366
37363
|
}
|
|
37367
37364
|
}
|
|
37368
37365
|
function SearchResultComponent_table_0_div_6_Template(rf, ctx) {
|
|
37369
37366
|
if (rf & 1) {
|
|
37370
|
-
i0.ɵɵelementStart(0, "div",
|
|
37367
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
37371
37368
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
37372
|
-
i0.ɵɵelementStart(2, "span",
|
|
37369
|
+
i0.ɵɵelementStart(2, "span", 17);
|
|
37373
37370
|
i0.ɵɵtext(3);
|
|
37374
37371
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
37375
|
-
i0.ɵɵelementStart(5, "span",
|
|
37372
|
+
i0.ɵɵelementStart(5, "span", 18);
|
|
37376
37373
|
i0.ɵɵtext(6);
|
|
37377
37374
|
i0.ɵɵelementEnd();
|
|
37378
37375
|
i0.ɵɵtext(7);
|
|
37379
37376
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
37380
|
-
i0.ɵɵelementStart(9, "span",
|
|
37377
|
+
i0.ɵɵelementStart(9, "span", 18);
|
|
37381
37378
|
i0.ɵɵtext(10);
|
|
37382
37379
|
i0.ɵɵelementEnd();
|
|
37383
37380
|
i0.ɵɵtext(11);
|
|
37384
37381
|
i0.ɵɵpipe(12, "rpxTranslate");
|
|
37385
|
-
i0.ɵɵelementStart(13, "span",
|
|
37382
|
+
i0.ɵɵelementStart(13, "span", 18);
|
|
37386
37383
|
i0.ɵɵtext(14);
|
|
37387
37384
|
i0.ɵɵelementEnd();
|
|
37388
37385
|
i0.ɵɵtext(15);
|
|
@@ -37390,31 +37387,31 @@ function SearchResultComponent_table_0_div_6_Template(rf, ctx) {
|
|
|
37390
37387
|
i0.ɵɵelementEnd()();
|
|
37391
37388
|
}
|
|
37392
37389
|
if (rf & 2) {
|
|
37393
|
-
const
|
|
37394
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 8,
|
|
37390
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
37391
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 8, ctx_r5.getTotalResults() + " results have been found"));
|
|
37395
37392
|
i0.ɵɵadvance(3);
|
|
37396
37393
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 10, "Showing"), " ");
|
|
37397
37394
|
i0.ɵɵadvance(3);
|
|
37398
|
-
i0.ɵɵtextInterpolate(
|
|
37395
|
+
i0.ɵɵtextInterpolate(ctx_r5.getFirstResult());
|
|
37399
37396
|
i0.ɵɵadvance(1);
|
|
37400
37397
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 12, "to"), " ");
|
|
37401
37398
|
i0.ɵɵadvance(3);
|
|
37402
|
-
i0.ɵɵtextInterpolate(
|
|
37399
|
+
i0.ɵɵtextInterpolate(ctx_r5.getLastResult());
|
|
37403
37400
|
i0.ɵɵadvance(1);
|
|
37404
37401
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 14, "of"), " ");
|
|
37405
37402
|
i0.ɵɵadvance(3);
|
|
37406
|
-
i0.ɵɵtextInterpolate(
|
|
37403
|
+
i0.ɵɵtextInterpolate(ctx_r5.getTotalResults());
|
|
37407
37404
|
i0.ɵɵadvance(1);
|
|
37408
37405
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 16, "results"), "");
|
|
37409
37406
|
}
|
|
37410
37407
|
}
|
|
37411
37408
|
function SearchResultComponent_table_0_div_7_Template(rf, ctx) {
|
|
37412
37409
|
if (rf & 1) {
|
|
37413
|
-
const
|
|
37414
|
-
i0.ɵɵelementStart(0, "div",
|
|
37410
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
37411
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
37415
37412
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
37416
|
-
i0.ɵɵelementStart(2, "span")(3, "a",
|
|
37417
|
-
i0.ɵɵlistener("click", function SearchResultComponent_table_0_div_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(
|
|
37413
|
+
i0.ɵɵelementStart(2, "span")(3, "a", 20);
|
|
37414
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_div_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.clearSelection()); });
|
|
37418
37415
|
i0.ɵɵtext(4);
|
|
37419
37416
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
37420
37417
|
i0.ɵɵelementEnd()()();
|
|
@@ -37427,91 +37424,93 @@ function SearchResultComponent_table_0_div_7_Template(rf, ctx) {
|
|
|
37427
37424
|
}
|
|
37428
37425
|
function SearchResultComponent_table_0_th_10_Template(rf, ctx) {
|
|
37429
37426
|
if (rf & 1) {
|
|
37430
|
-
const
|
|
37431
|
-
i0.ɵɵelementStart(0, "th",
|
|
37432
|
-
i0.ɵɵlistener("change", function SearchResultComponent_table_0_th_10_Template_input_change_2_listener() { i0.ɵɵrestoreView(
|
|
37427
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
37428
|
+
i0.ɵɵelementStart(0, "th", 21)(1, "div", 22)(2, "input", 23);
|
|
37429
|
+
i0.ɵɵlistener("change", function SearchResultComponent_table_0_th_10_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.selectAll()); });
|
|
37433
37430
|
i0.ɵɵelementEnd();
|
|
37434
|
-
i0.ɵɵelement(3, "label",
|
|
37431
|
+
i0.ɵɵelement(3, "label", 24);
|
|
37435
37432
|
i0.ɵɵelementEnd()();
|
|
37436
37433
|
}
|
|
37437
37434
|
if (rf & 2) {
|
|
37438
|
-
const
|
|
37435
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
37439
37436
|
i0.ɵɵadvance(2);
|
|
37440
|
-
i0.ɵɵproperty("checked",
|
|
37437
|
+
i0.ɵɵproperty("checked", ctx_r7.allOnPageSelected())("disabled", !ctx_r7.canAnyBeShared());
|
|
37441
37438
|
}
|
|
37442
37439
|
}
|
|
37443
37440
|
function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) {
|
|
37444
37441
|
if (rf & 1) {
|
|
37445
|
-
const
|
|
37446
|
-
i0.ɵɵelementStart(0, "div",
|
|
37447
|
-
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_8_Template_a_click_1_listener() { i0.ɵɵrestoreView(
|
|
37442
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
37443
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "a", 29);
|
|
37444
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_8_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r20); const col_r16 = i0.ɵɵnextContext().$implicit; const ctx_r18 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r18.sort(col_r16)); });
|
|
37448
37445
|
i0.ɵɵelementEnd()();
|
|
37449
37446
|
}
|
|
37450
37447
|
if (rf & 2) {
|
|
37451
|
-
const
|
|
37452
|
-
const
|
|
37448
|
+
const col_r16 = i0.ɵɵnextContext().$implicit;
|
|
37449
|
+
const ctx_r17 = i0.ɵɵnextContext(2);
|
|
37453
37450
|
i0.ɵɵadvance(1);
|
|
37454
|
-
i0.ɵɵproperty("innerHTML",
|
|
37451
|
+
i0.ɵɵproperty("innerHTML", ctx_r17.sortWidget(col_r16), i0.ɵɵsanitizeHtml);
|
|
37455
37452
|
}
|
|
37456
37453
|
}
|
|
37457
37454
|
function SearchResultComponent_table_0_th_11_Template(rf, ctx) {
|
|
37458
37455
|
if (rf & 1) {
|
|
37459
|
-
const
|
|
37460
|
-
i0.ɵɵelementStart(0, "th")(1, "table",
|
|
37456
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
37457
|
+
i0.ɵɵelementStart(0, "th")(1, "table", 25);
|
|
37461
37458
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
37462
|
-
i0.ɵɵelementStart(3, "tr")(4, "th")(5, "div",
|
|
37463
|
-
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_Template_div_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
37459
|
+
i0.ɵɵelementStart(3, "tr")(4, "th")(5, "div", 26);
|
|
37460
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_Template_div_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r23); const col_r16 = restoredCtx.$implicit; const ctx_r22 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r22.sort(col_r16)); });
|
|
37464
37461
|
i0.ɵɵtext(6);
|
|
37465
37462
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
37466
37463
|
i0.ɵɵelementEnd();
|
|
37467
|
-
i0.ɵɵtemplate(8, SearchResultComponent_table_0_th_11_div_8_Template, 2, 1, "div",
|
|
37464
|
+
i0.ɵɵtemplate(8, SearchResultComponent_table_0_th_11_div_8_Template, 2, 1, "div", 27);
|
|
37468
37465
|
i0.ɵɵelementEnd()()()();
|
|
37469
37466
|
}
|
|
37470
37467
|
if (rf & 2) {
|
|
37471
|
-
const
|
|
37472
|
-
const
|
|
37468
|
+
const col_r16 = ctx.$implicit;
|
|
37469
|
+
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
37473
37470
|
i0.ɵɵadvance(1);
|
|
37474
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 3, "Sort by " +
|
|
37471
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 3, "Sort by " + col_r16.label + " " + ctx_r8.isSortAscending(col_r16) ? "ascending" : "descending"));
|
|
37475
37472
|
i0.ɵɵadvance(5);
|
|
37476
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5,
|
|
37473
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, col_r16.label), " ");
|
|
37477
37474
|
i0.ɵɵadvance(2);
|
|
37478
|
-
i0.ɵɵproperty("ngIf",
|
|
37475
|
+
i0.ɵɵproperty("ngIf", ctx_r8.comparator(col_r16));
|
|
37479
37476
|
}
|
|
37480
37477
|
}
|
|
37481
37478
|
function SearchResultComponent_table_0_th_12_Template(rf, ctx) {
|
|
37482
37479
|
if (rf & 1) {
|
|
37483
|
-
i0.ɵɵ
|
|
37480
|
+
i0.ɵɵelementStart(0, "th", 30);
|
|
37481
|
+
i0.ɵɵtext(1, "\u200B");
|
|
37482
|
+
i0.ɵɵelementEnd();
|
|
37484
37483
|
}
|
|
37485
37484
|
}
|
|
37486
37485
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ctx) {
|
|
37487
37486
|
if (rf & 1) {
|
|
37488
|
-
const
|
|
37489
|
-
i0.ɵɵelementStart(0, "td",
|
|
37490
|
-
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(
|
|
37487
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
37488
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 32);
|
|
37489
|
+
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r31); const result_r25 = i0.ɵɵnextContext().$implicit; const ctx_r29 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r29.changeSelection(result_r25)); });
|
|
37491
37490
|
i0.ɵɵelementEnd();
|
|
37492
|
-
i0.ɵɵelement(3, "label",
|
|
37491
|
+
i0.ɵɵelement(3, "label", 33);
|
|
37493
37492
|
i0.ɵɵelementEnd()();
|
|
37494
37493
|
}
|
|
37495
37494
|
if (rf & 2) {
|
|
37496
|
-
const
|
|
37497
|
-
const
|
|
37495
|
+
const result_r25 = i0.ɵɵnextContext().$implicit;
|
|
37496
|
+
const ctx_r26 = i0.ɵɵnextContext(3);
|
|
37498
37497
|
i0.ɵɵadvance(2);
|
|
37499
|
-
i0.ɵɵpropertyInterpolate1("id", "select-",
|
|
37500
|
-
i0.ɵɵproperty("checked",
|
|
37498
|
+
i0.ɵɵpropertyInterpolate1("id", "select-", result_r25.case_id, "")("name", "select-", result_r25.case_id, "");
|
|
37499
|
+
i0.ɵɵproperty("checked", ctx_r26.isSelected(result_r25))("disabled", !ctx_r26.canBeShared(result_r25));
|
|
37501
37500
|
i0.ɵɵadvance(1);
|
|
37502
|
-
i0.ɵɵpropertyInterpolate1("for", "select-",
|
|
37501
|
+
i0.ɵɵpropertyInterpolate1("for", "select-", result_r25.case_id, "");
|
|
37503
37502
|
}
|
|
37504
37503
|
}
|
|
37505
37504
|
const _c0 = function () { return ["value"]; };
|
|
37506
37505
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
|
|
37507
37506
|
if (rf & 1) {
|
|
37508
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
37507
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
37509
37508
|
}
|
|
37510
37509
|
if (rf & 2) {
|
|
37511
|
-
const
|
|
37512
|
-
const
|
|
37513
|
-
const
|
|
37514
|
-
i0.ɵɵproperty("caseField",
|
|
37510
|
+
const col_r33 = i0.ɵɵnextContext(3).$implicit;
|
|
37511
|
+
const result_r25 = i0.ɵɵnextContext().$implicit;
|
|
37512
|
+
const ctx_r38 = i0.ɵɵnextContext(3);
|
|
37513
|
+
i0.ɵɵproperty("caseField", ctx_r38.getColumnsWithPrefix(result_r25.columns[col_r33.case_field_id], result_r25))("contextFields", result_r25.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c0));
|
|
37515
37514
|
}
|
|
37516
37515
|
}
|
|
37517
37516
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) {
|
|
@@ -37520,147 +37519,147 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
37520
37519
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
37521
37520
|
}
|
|
37522
37521
|
if (rf & 2) {
|
|
37523
|
-
const
|
|
37524
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1,
|
|
37522
|
+
const result_r25 = i0.ɵɵnextContext(4).$implicit;
|
|
37523
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r25.case_id));
|
|
37525
37524
|
}
|
|
37526
37525
|
}
|
|
37527
37526
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
|
|
37528
37527
|
if (rf & 1) {
|
|
37529
|
-
i0.ɵɵelementContainerStart(0,
|
|
37530
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
37531
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null,
|
|
37528
|
+
i0.ɵɵelementContainerStart(0, 39);
|
|
37529
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
|
|
37530
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0.ɵɵtemplateRefExtractor);
|
|
37532
37531
|
i0.ɵɵelementContainerEnd();
|
|
37533
37532
|
}
|
|
37534
37533
|
if (rf & 2) {
|
|
37535
|
-
const
|
|
37536
|
-
const
|
|
37537
|
-
const
|
|
37538
|
-
const
|
|
37534
|
+
const _r39 = i0.ɵɵreference(3);
|
|
37535
|
+
const col_r33 = i0.ɵɵnextContext(2).$implicit;
|
|
37536
|
+
const result_r25 = i0.ɵɵnextContext().$implicit;
|
|
37537
|
+
const ctx_r37 = i0.ɵɵnextContext(3);
|
|
37539
37538
|
i0.ɵɵadvance(1);
|
|
37540
|
-
i0.ɵɵproperty("ngIf",
|
|
37539
|
+
i0.ɵɵproperty("ngIf", ctx_r37.draftPrefixOrGet(col_r33, result_r25))("ngIfElse", _r39);
|
|
37541
37540
|
}
|
|
37542
37541
|
}
|
|
37543
37542
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) {
|
|
37544
37543
|
if (rf & 1) {
|
|
37545
|
-
i0.ɵɵelementStart(0, "a",
|
|
37544
|
+
i0.ɵɵelementStart(0, "a", 37);
|
|
37546
37545
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
37547
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
37546
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
|
|
37548
37547
|
i0.ɵɵelementEnd();
|
|
37549
37548
|
}
|
|
37550
37549
|
if (rf & 2) {
|
|
37551
|
-
const
|
|
37552
|
-
const
|
|
37553
|
-
i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3,
|
|
37554
|
-
i0.ɵɵproperty("routerLink",
|
|
37550
|
+
const result_r25 = i0.ɵɵnextContext(2).$implicit;
|
|
37551
|
+
const ctx_r35 = i0.ɵɵnextContext(3);
|
|
37552
|
+
i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r25.case_id), "");
|
|
37553
|
+
i0.ɵɵproperty("routerLink", ctx_r35.prepareCaseLinkUrl(result_r25.case_id));
|
|
37555
37554
|
i0.ɵɵadvance(2);
|
|
37556
|
-
i0.ɵɵproperty("ngIf", !
|
|
37555
|
+
i0.ɵɵproperty("ngIf", !ctx_r35.hideRows);
|
|
37557
37556
|
}
|
|
37558
37557
|
}
|
|
37559
37558
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) {
|
|
37560
37559
|
if (rf & 1) {
|
|
37561
|
-
i0.ɵɵelementStart(0, "div",
|
|
37562
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
37560
|
+
i0.ɵɵelementStart(0, "div", 39);
|
|
37561
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
37563
37562
|
i0.ɵɵelementEnd();
|
|
37564
37563
|
}
|
|
37565
37564
|
if (rf & 2) {
|
|
37566
|
-
const
|
|
37567
|
-
const
|
|
37568
|
-
const
|
|
37569
|
-
i0.ɵɵstyleProp("visibility",
|
|
37565
|
+
const col_r33 = i0.ɵɵnextContext().$implicit;
|
|
37566
|
+
const result_r25 = i0.ɵɵnextContext().$implicit;
|
|
37567
|
+
const ctx_r36 = i0.ɵɵnextContext(3);
|
|
37568
|
+
i0.ɵɵstyleProp("visibility", ctx_r36.hideRows ? "hidden" : "visible");
|
|
37570
37569
|
i0.ɵɵadvance(1);
|
|
37571
|
-
i0.ɵɵproperty("caseField",
|
|
37570
|
+
i0.ɵɵproperty("caseField", result_r25.columns[col_r33.case_field_id])("contextFields", result_r25.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
|
|
37572
37571
|
}
|
|
37573
37572
|
}
|
|
37574
37573
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) {
|
|
37575
37574
|
if (rf & 1) {
|
|
37576
|
-
i0.ɵɵelementStart(0, "td",
|
|
37577
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a",
|
|
37578
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div",
|
|
37575
|
+
i0.ɵɵelementStart(0, "td", 34);
|
|
37576
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
|
|
37577
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
|
|
37579
37578
|
i0.ɵɵelementEnd();
|
|
37580
37579
|
}
|
|
37581
37580
|
if (rf & 2) {
|
|
37582
|
-
const
|
|
37581
|
+
const colIndex_r34 = ctx.index;
|
|
37583
37582
|
i0.ɵɵadvance(1);
|
|
37584
|
-
i0.ɵɵproperty("ngIf",
|
|
37583
|
+
i0.ɵɵproperty("ngIf", colIndex_r34 == 0);
|
|
37585
37584
|
i0.ɵɵadvance(1);
|
|
37586
|
-
i0.ɵɵproperty("ngIf",
|
|
37585
|
+
i0.ɵɵproperty("ngIf", colIndex_r34 != 0);
|
|
37587
37586
|
}
|
|
37588
37587
|
}
|
|
37589
37588
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) {
|
|
37590
37589
|
if (rf & 1) {
|
|
37591
37590
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
37592
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
37591
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
37593
37592
|
i0.ɵɵelementEnd()();
|
|
37594
37593
|
}
|
|
37595
37594
|
if (rf & 2) {
|
|
37596
|
-
const
|
|
37597
|
-
const
|
|
37595
|
+
const result_r25 = i0.ɵɵnextContext().$implicit;
|
|
37596
|
+
const ctx_r28 = i0.ɵɵnextContext(3);
|
|
37598
37597
|
i0.ɵɵadvance(1);
|
|
37599
|
-
i0.ɵɵstyleProp("visibility",
|
|
37598
|
+
i0.ɵɵstyleProp("visibility", ctx_r28.hideRows ? "hidden" : "visible");
|
|
37600
37599
|
i0.ɵɵadvance(1);
|
|
37601
|
-
i0.ɵɵproperty("caseId",
|
|
37600
|
+
i0.ɵɵproperty("caseId", result_r25.case_id)("displayMode", ctx_r28.ICON);
|
|
37602
37601
|
}
|
|
37603
37602
|
}
|
|
37604
37603
|
function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
|
|
37605
37604
|
if (rf & 1) {
|
|
37606
37605
|
i0.ɵɵelementStart(0, "tr");
|
|
37607
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td",
|
|
37608
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td",
|
|
37606
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 9);
|
|
37607
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 31);
|
|
37609
37608
|
i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
37610
37609
|
i0.ɵɵelementEnd();
|
|
37611
37610
|
}
|
|
37612
37611
|
if (rf & 2) {
|
|
37613
|
-
const
|
|
37612
|
+
const ctx_r24 = i0.ɵɵnextContext(3);
|
|
37614
37613
|
i0.ɵɵadvance(1);
|
|
37615
|
-
i0.ɵɵproperty("ngIf",
|
|
37614
|
+
i0.ɵɵproperty("ngIf", ctx_r24.selectionEnabled);
|
|
37616
37615
|
i0.ɵɵadvance(1);
|
|
37617
|
-
i0.ɵɵproperty("ngForOf",
|
|
37616
|
+
i0.ɵɵproperty("ngForOf", ctx_r24.resultView.columns);
|
|
37618
37617
|
i0.ɵɵadvance(1);
|
|
37619
|
-
i0.ɵɵproperty("ngIf",
|
|
37618
|
+
i0.ɵɵproperty("ngIf", ctx_r24.activityEnabled());
|
|
37620
37619
|
}
|
|
37621
37620
|
}
|
|
37622
37621
|
const _c1 = function (a0, a1, a2) { return { itemsPerPage: a0, currentPage: a1, totalItems: a2 }; };
|
|
37623
37622
|
function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) {
|
|
37624
37623
|
if (rf & 1) {
|
|
37625
37624
|
i0.ɵɵelementContainerStart(0);
|
|
37626
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr",
|
|
37625
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 10);
|
|
37627
37626
|
i0.ɵɵpipe(2, "paginate");
|
|
37628
37627
|
i0.ɵɵelementContainerEnd();
|
|
37629
37628
|
}
|
|
37630
37629
|
if (rf & 2) {
|
|
37631
|
-
const
|
|
37630
|
+
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
37632
37631
|
i0.ɵɵadvance(1);
|
|
37633
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(2, 1,
|
|
37632
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(2, 1, ctx_r10.resultView.results, i0.ɵɵpureFunction3(4, _c1, ctx_r10.paginationPageSize, ctx_r10.selected.page, ctx_r10.resultTotal)));
|
|
37634
37633
|
}
|
|
37635
37634
|
}
|
|
37636
37635
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ctx) {
|
|
37637
37636
|
if (rf & 1) {
|
|
37638
|
-
const
|
|
37639
|
-
i0.ɵɵelementStart(0, "td",
|
|
37640
|
-
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(
|
|
37637
|
+
const _r57 = i0.ɵɵgetCurrentView();
|
|
37638
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 44);
|
|
37639
|
+
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r57); const result_r51 = i0.ɵɵnextContext().$implicit; const ctx_r55 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r55.changeSelection(result_r51)); })("keyup", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r57); const result_r51 = i0.ɵɵnextContext().$implicit; const ctx_r58 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r58.onKeyUp($event, result_r51)); });
|
|
37641
37640
|
i0.ɵɵelementEnd();
|
|
37642
|
-
i0.ɵɵelement(3, "label",
|
|
37641
|
+
i0.ɵɵelement(3, "label", 33);
|
|
37643
37642
|
i0.ɵɵelementEnd()();
|
|
37644
37643
|
}
|
|
37645
37644
|
if (rf & 2) {
|
|
37646
|
-
const
|
|
37647
|
-
const
|
|
37645
|
+
const result_r51 = i0.ɵɵnextContext().$implicit;
|
|
37646
|
+
const ctx_r52 = i0.ɵɵnextContext(3);
|
|
37648
37647
|
i0.ɵɵadvance(2);
|
|
37649
|
-
i0.ɵɵpropertyInterpolate1("id", "select-",
|
|
37650
|
-
i0.ɵɵproperty("checked",
|
|
37648
|
+
i0.ɵɵpropertyInterpolate1("id", "select-", result_r51.case_id, "")("name", "select-", result_r51.case_id, "");
|
|
37649
|
+
i0.ɵɵproperty("checked", ctx_r52.isSelected(result_r51))("disabled", !ctx_r52.canBeShared(result_r51));
|
|
37651
37650
|
i0.ɵɵadvance(1);
|
|
37652
|
-
i0.ɵɵpropertyInterpolate1("for", "select-",
|
|
37651
|
+
i0.ɵɵpropertyInterpolate1("for", "select-", result_r51.case_id, "");
|
|
37653
37652
|
}
|
|
37654
37653
|
}
|
|
37655
37654
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
|
|
37656
37655
|
if (rf & 1) {
|
|
37657
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
37656
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
37658
37657
|
}
|
|
37659
37658
|
if (rf & 2) {
|
|
37660
|
-
const
|
|
37661
|
-
const
|
|
37662
|
-
const
|
|
37663
|
-
i0.ɵɵproperty("caseField",
|
|
37659
|
+
const col_r61 = i0.ɵɵnextContext(3).$implicit;
|
|
37660
|
+
const result_r51 = i0.ɵɵnextContext().$implicit;
|
|
37661
|
+
const ctx_r66 = i0.ɵɵnextContext(3);
|
|
37662
|
+
i0.ɵɵproperty("caseField", ctx_r66.getColumnsWithPrefix(result_r51.columns[col_r61.case_field_id], result_r51))("contextFields", result_r51.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c0));
|
|
37664
37663
|
}
|
|
37665
37664
|
}
|
|
37666
37665
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) {
|
|
@@ -37669,133 +37668,133 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
37669
37668
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
37670
37669
|
}
|
|
37671
37670
|
if (rf & 2) {
|
|
37672
|
-
const
|
|
37673
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1,
|
|
37671
|
+
const result_r51 = i0.ɵɵnextContext(4).$implicit;
|
|
37672
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r51.case_id));
|
|
37674
37673
|
}
|
|
37675
37674
|
}
|
|
37676
37675
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
|
|
37677
37676
|
if (rf & 1) {
|
|
37678
|
-
i0.ɵɵelementContainerStart(0,
|
|
37679
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
37680
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null,
|
|
37677
|
+
i0.ɵɵelementContainerStart(0, 39);
|
|
37678
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
|
|
37679
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0.ɵɵtemplateRefExtractor);
|
|
37681
37680
|
i0.ɵɵelementContainerEnd();
|
|
37682
37681
|
}
|
|
37683
37682
|
if (rf & 2) {
|
|
37684
|
-
const
|
|
37685
|
-
const
|
|
37686
|
-
const
|
|
37687
|
-
const
|
|
37683
|
+
const _r67 = i0.ɵɵreference(3);
|
|
37684
|
+
const col_r61 = i0.ɵɵnextContext(2).$implicit;
|
|
37685
|
+
const result_r51 = i0.ɵɵnextContext().$implicit;
|
|
37686
|
+
const ctx_r65 = i0.ɵɵnextContext(3);
|
|
37688
37687
|
i0.ɵɵadvance(1);
|
|
37689
|
-
i0.ɵɵproperty("ngIf",
|
|
37688
|
+
i0.ɵɵproperty("ngIf", ctx_r65.draftPrefixOrGet(col_r61, result_r51))("ngIfElse", _r67);
|
|
37690
37689
|
}
|
|
37691
37690
|
}
|
|
37692
37691
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) {
|
|
37693
37692
|
if (rf & 1) {
|
|
37694
|
-
i0.ɵɵelementStart(0, "a",
|
|
37693
|
+
i0.ɵɵelementStart(0, "a", 37);
|
|
37695
37694
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
37696
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
37695
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
|
|
37697
37696
|
i0.ɵɵelementEnd();
|
|
37698
37697
|
}
|
|
37699
37698
|
if (rf & 2) {
|
|
37700
|
-
const
|
|
37701
|
-
const
|
|
37702
|
-
i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3,
|
|
37703
|
-
i0.ɵɵproperty("routerLink",
|
|
37699
|
+
const result_r51 = i0.ɵɵnextContext(2).$implicit;
|
|
37700
|
+
const ctx_r63 = i0.ɵɵnextContext(3);
|
|
37701
|
+
i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r51.case_id), "");
|
|
37702
|
+
i0.ɵɵproperty("routerLink", ctx_r63.prepareCaseLinkUrl(result_r51.case_id));
|
|
37704
37703
|
i0.ɵɵadvance(2);
|
|
37705
|
-
i0.ɵɵproperty("ngIf", !
|
|
37704
|
+
i0.ɵɵproperty("ngIf", !ctx_r63.hideRows);
|
|
37706
37705
|
}
|
|
37707
37706
|
}
|
|
37708
37707
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) {
|
|
37709
37708
|
if (rf & 1) {
|
|
37710
|
-
i0.ɵɵelementStart(0, "div",
|
|
37711
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
37709
|
+
i0.ɵɵelementStart(0, "div", 39);
|
|
37710
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
37712
37711
|
i0.ɵɵelementEnd();
|
|
37713
37712
|
}
|
|
37714
37713
|
if (rf & 2) {
|
|
37715
|
-
const
|
|
37716
|
-
const
|
|
37717
|
-
const
|
|
37718
|
-
i0.ɵɵstyleProp("visibility",
|
|
37714
|
+
const col_r61 = i0.ɵɵnextContext().$implicit;
|
|
37715
|
+
const result_r51 = i0.ɵɵnextContext().$implicit;
|
|
37716
|
+
const ctx_r64 = i0.ɵɵnextContext(3);
|
|
37717
|
+
i0.ɵɵstyleProp("visibility", ctx_r64.hideRows ? "hidden" : "visible");
|
|
37719
37718
|
i0.ɵɵadvance(1);
|
|
37720
|
-
i0.ɵɵproperty("caseField",
|
|
37719
|
+
i0.ɵɵproperty("caseField", result_r51.columns[col_r61.case_field_id])("contextFields", result_r51.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
|
|
37721
37720
|
}
|
|
37722
37721
|
}
|
|
37723
37722
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ctx) {
|
|
37724
37723
|
if (rf & 1) {
|
|
37725
|
-
i0.ɵɵelementStart(0, "td",
|
|
37726
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 5, "a",
|
|
37727
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div",
|
|
37724
|
+
i0.ɵɵelementStart(0, "td", 34);
|
|
37725
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
|
|
37726
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
|
|
37728
37727
|
i0.ɵɵelementEnd();
|
|
37729
37728
|
}
|
|
37730
37729
|
if (rf & 2) {
|
|
37731
|
-
const
|
|
37730
|
+
const colIndex_r62 = ctx.index;
|
|
37732
37731
|
i0.ɵɵadvance(1);
|
|
37733
|
-
i0.ɵɵproperty("ngIf",
|
|
37732
|
+
i0.ɵɵproperty("ngIf", colIndex_r62 == 0);
|
|
37734
37733
|
i0.ɵɵadvance(1);
|
|
37735
|
-
i0.ɵɵproperty("ngIf",
|
|
37734
|
+
i0.ɵɵproperty("ngIf", colIndex_r62 != 0);
|
|
37736
37735
|
}
|
|
37737
37736
|
}
|
|
37738
37737
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ctx) {
|
|
37739
37738
|
if (rf & 1) {
|
|
37740
37739
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
37741
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
37740
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
37742
37741
|
i0.ɵɵelementEnd()();
|
|
37743
37742
|
}
|
|
37744
37743
|
if (rf & 2) {
|
|
37745
|
-
const
|
|
37746
|
-
const
|
|
37744
|
+
const result_r51 = i0.ɵɵnextContext().$implicit;
|
|
37745
|
+
const ctx_r54 = i0.ɵɵnextContext(3);
|
|
37747
37746
|
i0.ɵɵadvance(1);
|
|
37748
|
-
i0.ɵɵstyleProp("visibility",
|
|
37747
|
+
i0.ɵɵstyleProp("visibility", ctx_r54.hideRows ? "hidden" : "visible");
|
|
37749
37748
|
i0.ɵɵadvance(1);
|
|
37750
|
-
i0.ɵɵproperty("caseId",
|
|
37749
|
+
i0.ɵɵproperty("caseId", result_r51.case_id)("displayMode", ctx_r54.ICON);
|
|
37751
37750
|
}
|
|
37752
37751
|
}
|
|
37753
37752
|
function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) {
|
|
37754
37753
|
if (rf & 1) {
|
|
37755
37754
|
i0.ɵɵelementStart(0, "tr");
|
|
37756
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 5, "td",
|
|
37757
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td",
|
|
37755
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 5, "td", 9);
|
|
37756
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 31);
|
|
37758
37757
|
i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
37759
37758
|
i0.ɵɵelementEnd();
|
|
37760
37759
|
}
|
|
37761
37760
|
if (rf & 2) {
|
|
37762
|
-
const
|
|
37761
|
+
const ctx_r50 = i0.ɵɵnextContext(3);
|
|
37763
37762
|
i0.ɵɵadvance(1);
|
|
37764
|
-
i0.ɵɵproperty("ngIf",
|
|
37763
|
+
i0.ɵɵproperty("ngIf", ctx_r50.selectionEnabled);
|
|
37765
37764
|
i0.ɵɵadvance(1);
|
|
37766
|
-
i0.ɵɵproperty("ngForOf",
|
|
37765
|
+
i0.ɵɵproperty("ngForOf", ctx_r50.resultView.columns);
|
|
37767
37766
|
i0.ɵɵadvance(1);
|
|
37768
|
-
i0.ɵɵproperty("ngIf",
|
|
37767
|
+
i0.ɵɵproperty("ngIf", ctx_r50.activityEnabled());
|
|
37769
37768
|
}
|
|
37770
37769
|
}
|
|
37771
37770
|
function SearchResultComponent_table_0_ng_container_15_Template(rf, ctx) {
|
|
37772
37771
|
if (rf & 1) {
|
|
37773
37772
|
i0.ɵɵelementContainerStart(0);
|
|
37774
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr",
|
|
37773
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 10);
|
|
37775
37774
|
i0.ɵɵpipe(2, "paginate");
|
|
37776
37775
|
i0.ɵɵpipe(3, "ccdSortSearchResult");
|
|
37777
37776
|
i0.ɵɵelementContainerEnd();
|
|
37778
37777
|
}
|
|
37779
37778
|
if (rf & 2) {
|
|
37780
|
-
const
|
|
37779
|
+
const ctx_r11 = i0.ɵɵnextContext(2);
|
|
37781
37780
|
i0.ɵɵadvance(1);
|
|
37782
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(2, 1, i0.ɵɵpipeBind2(3, 4,
|
|
37781
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(2, 1, i0.ɵɵpipeBind2(3, 4, ctx_r11.resultView.results, ctx_r11.sortParameters), i0.ɵɵpureFunction3(7, _c1, ctx_r11.paginationPageSize, ctx_r11.selected.page, ctx_r11.resultTotal)));
|
|
37783
37782
|
}
|
|
37784
37783
|
}
|
|
37785
37784
|
function SearchResultComponent_table_0_Template(rf, ctx) {
|
|
37786
37785
|
if (rf & 1) {
|
|
37787
|
-
i0.ɵɵelementStart(0, "table")(1, "caption")(2, "h2",
|
|
37786
|
+
i0.ɵɵelementStart(0, "table")(1, "caption")(2, "h2", 4);
|
|
37788
37787
|
i0.ɵɵtext(3);
|
|
37789
37788
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
37790
37789
|
i0.ɵɵelementEnd();
|
|
37791
|
-
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div",
|
|
37792
|
-
i0.ɵɵtemplate(6, SearchResultComponent_table_0_div_6_Template, 17, 18, "div",
|
|
37793
|
-
i0.ɵɵtemplate(7, SearchResultComponent_table_0_div_7_Template, 6, 6, "div",
|
|
37790
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 5);
|
|
37791
|
+
i0.ɵɵtemplate(6, SearchResultComponent_table_0_div_6_Template, 17, 18, "div", 6);
|
|
37792
|
+
i0.ɵɵtemplate(7, SearchResultComponent_table_0_div_7_Template, 6, 6, "div", 7);
|
|
37794
37793
|
i0.ɵɵelementEnd();
|
|
37795
|
-
i0.ɵɵelementStart(8, "thead")(9, "tr",
|
|
37796
|
-
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th",
|
|
37797
|
-
i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 9, 7, "th",
|
|
37798
|
-
i0.ɵɵtemplate(12, SearchResultComponent_table_0_th_12_Template,
|
|
37794
|
+
i0.ɵɵelementStart(8, "thead")(9, "tr", 8);
|
|
37795
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th", 9);
|
|
37796
|
+
i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 9, 7, "th", 10);
|
|
37797
|
+
i0.ɵɵtemplate(12, SearchResultComponent_table_0_th_12_Template, 2, 0, "th", 11);
|
|
37799
37798
|
i0.ɵɵelementEnd()();
|
|
37800
37799
|
i0.ɵɵelementStart(13, "tbody");
|
|
37801
37800
|
i0.ɵɵtemplate(14, SearchResultComponent_table_0_ng_container_14_Template, 3, 8, "ng-container", 0);
|
|
@@ -37826,9 +37825,9 @@ function SearchResultComponent_table_0_Template(rf, ctx) {
|
|
|
37826
37825
|
}
|
|
37827
37826
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) {
|
|
37828
37827
|
if (rf & 1) {
|
|
37829
|
-
const
|
|
37830
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
37831
|
-
i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
37828
|
+
const _r79 = i0.ɵɵgetCurrentView();
|
|
37829
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 45);
|
|
37830
|
+
i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r79); const ctx_r78 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r78.goToPage($event)); });
|
|
37832
37831
|
i0.ɵɵelementEnd();
|
|
37833
37832
|
}
|
|
37834
37833
|
if (rf & 2) {
|
|
@@ -37838,16 +37837,21 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) {
|
|
|
37838
37837
|
}
|
|
37839
37838
|
function SearchResultComponent_div_2_Template(rf, ctx) {
|
|
37840
37839
|
if (rf & 1) {
|
|
37841
|
-
i0.ɵɵelementStart(0, "div",
|
|
37842
|
-
i0.ɵɵ
|
|
37843
|
-
i0.ɵɵ
|
|
37844
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
37840
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
37841
|
+
i0.ɵɵtext(1);
|
|
37842
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
37845
37843
|
i0.ɵɵelementEnd();
|
|
37846
37844
|
}
|
|
37847
37845
|
if (rf & 2) {
|
|
37848
|
-
i0.ɵɵ
|
|
37849
|
-
i0.ɵɵ
|
|
37850
|
-
|
|
37846
|
+
i0.ɵɵadvance(1);
|
|
37847
|
+
i0.ɵɵtextInterpolate1("\n", i0.ɵɵpipeBind1(2, 1, "No cases found. Try using different filters."), "\n");
|
|
37848
|
+
}
|
|
37849
|
+
}
|
|
37850
|
+
function SearchResultComponent_span_3_Template(rf, ctx) {
|
|
37851
|
+
if (rf & 1) {
|
|
37852
|
+
i0.ɵɵelementStart(0, "span", 47);
|
|
37853
|
+
i0.ɵɵtext(1, "\u200B");
|
|
37854
|
+
i0.ɵɵelementEnd();
|
|
37851
37855
|
}
|
|
37852
37856
|
}
|
|
37853
37857
|
class SearchResultComponent {
|
|
@@ -38184,11 +38188,12 @@ SearchResultComponent.PARAM_JURISDICTION = 'jurisdiction';
|
|
|
38184
38188
|
SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
|
|
38185
38189
|
SearchResultComponent.PARAM_CASE_STATE = 'case-state';
|
|
38186
38190
|
SearchResultComponent.ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
38187
|
-
SearchResultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls:
|
|
38191
|
+
SearchResultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 4, vars: 4, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["id", "no_case_found", "class", "notification", 4, "ngIf"], ["aria-describedby", "no_case_found", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["id", "no_case_found", 1, "notification"], ["aria-describedby", "no_case_found"]], template: function SearchResultComponent_Template(rf, ctx) {
|
|
38188
38192
|
if (rf & 1) {
|
|
38189
38193
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 0);
|
|
38190
38194
|
i0.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
|
|
38191
|
-
i0.ɵɵtemplate(2, SearchResultComponent_div_2_Template,
|
|
38195
|
+
i0.ɵɵtemplate(2, SearchResultComponent_div_2_Template, 3, 3, "div", 2);
|
|
38196
|
+
i0.ɵɵtemplate(3, SearchResultComponent_span_3_Template, 2, 0, "span", 3);
|
|
38192
38197
|
}
|
|
38193
38198
|
if (rf & 2) {
|
|
38194
38199
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
@@ -38196,12 +38201,14 @@ SearchResultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Searc
|
|
|
38196
38201
|
i0.ɵɵproperty("ngIf", ctx.hasResults());
|
|
38197
38202
|
i0.ɵɵadvance(1);
|
|
38198
38203
|
i0.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
|
|
38204
|
+
i0.ɵɵadvance(1);
|
|
38205
|
+
i0.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
|
|
38199
38206
|
}
|
|
38200
38207
|
}, styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:auto;width:initial;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
|
|
38201
38208
|
(function () {
|
|
38202
38209
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
38203
38210
|
type: Component,
|
|
38204
|
-
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\"\n [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\" role=\"status\">\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <th *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\">\n </label>\n </div>\n </th>\n <th *ngFor=\"let col of resultView.columns\">\n <table class=\"search-result-column-header\"\n [attr.aria-label]=\"('Sort by ' + col.label + ' ' + isSortAscending(col)? 'ascending' : 'descending') | rpxTranslate\">\n <tr>\n <th>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\">\n {{col.label | rpxTranslate}}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </th>\n </tr>\n </table>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\"
|
|
38211
|
+
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\"\n [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\" role=\"status\">\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <th *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\">\n </label>\n </div>\n </th>\n <th *ngFor=\"let col of resultView.columns\">\n <table class=\"search-result-column-header\"\n [attr.aria-label]=\"('Sort by ' + col.label + ' ' + isSortAscending(col)? 'ascending' : 'descending') | rpxTranslate\">\n <tr>\n <th>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\">\n {{col.label | rpxTranslate}}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </th>\n </tr>\n </table>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\">​</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div id=\"no_case_found\" *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n<span *ngIf=\"!(hasResults() || hasDrafts())\" aria-describedby=\"no_case_found\">​</span>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:auto;width:initial;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
|
|
38205
38212
|
}], function () { return [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }]; }, { caseLinkUrlTemplate: [{
|
|
38206
38213
|
type: Input
|
|
38207
38214
|
}], jurisdiction: [{
|