@hmcts/ccd-case-ui-toolkit 7.4.27 → 7.4.28-accessibility-issue

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.
@@ -36382,25 +36382,24 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
36382
36382
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldRawComponent, { className: "ReadOrganisationFieldRawComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field-raw.component.ts", lineNumber: 16 }); })();
36383
36383
 
36384
36384
  function ReadOrganisationFieldTableComponent_table_12_Template(rf, ctx) { if (rf & 1) {
36385
- i0.ɵɵelementStart(0, "table", 1)(1, "tr", 6);
36386
- i0.ɵɵelement(2, "th", 7);
36387
- i0.ɵɵelementStart(3, "td", 8)(4, "span", 4);
36385
+ i0.ɵɵelementStart(0, "table", 6)(1, "tr", 7);
36386
+ i0.ɵɵelement(2, "th", 8);
36387
+ i0.ɵɵelementStart(3, "td", 9)(4, "span", 4);
36388
36388
  i0.ɵɵtext(5);
36389
36389
  i0.ɵɵelementEnd()();
36390
36390
  i0.ɵɵelementStart(6, "td")(7, "span", 4);
36391
36391
  i0.ɵɵtext(8);
36392
36392
  i0.ɵɵelementEnd()()();
36393
- i0.ɵɵelementStart(9, "tr", 6);
36394
- i0.ɵɵelement(10, "th", 7);
36395
- i0.ɵɵelementStart(11, "td", 8)(12, "span", 4);
36393
+ i0.ɵɵelementStart(9, "tr", 7);
36394
+ i0.ɵɵelement(10, "th", 8);
36395
+ i0.ɵɵelementStart(11, "td", 9)(12, "span", 4);
36396
36396
  i0.ɵɵtext(13);
36397
36397
  i0.ɵɵelementEnd()();
36398
36398
  i0.ɵɵelementStart(14, "td");
36399
- i0.ɵɵelement(15, "ccd-markdown", 9);
36399
+ i0.ɵɵelement(15, "ccd-markdown", 10);
36400
36400
  i0.ɵɵelementEnd()()();
36401
36401
  } if (rf & 2) {
36402
36402
  const selectedOrg_r1 = ctx.ngIf;
36403
- i0.ɵɵattribute("aria-describedby", "selected organisation field table");
36404
36403
  i0.ɵɵadvance(5);
36405
36404
  i0.ɵɵtextInterpolate("Name:");
36406
36405
  i0.ɵɵadvance(3);
@@ -36429,7 +36428,7 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
36429
36428
  }
36430
36429
  }
36431
36430
  static ɵfac = function ReadOrganisationFieldTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadOrganisationFieldTableComponent)(i0.ɵɵdirectiveInject(OrganisationService), i0.ɵɵdirectiveInject(OrganisationConverter)); };
36432
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 14, vars: 9, consts: [[1, "complex-panel"], [1, "complex-field-table"], [1, "complex-field-title"], [1, "complex-panel-title"], [1, "text-16"], ["class", "complex-field-table", 4, "ngIf"], [1, "complex-panel-compound-field"], [2, "display", "none"], [1, "label-width-medium"], [3, "content"]], template: function ReadOrganisationFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
36431
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 14, vars: 9, consts: [[1, "complex-panel"], [1, "complex-field-table"], [1, "complex-field-title"], [1, "complex-panel-title"], [1, "text-16"], ["class", "complex-field-table", "aria-label", "selected organisation field table", 4, "ngIf"], ["aria-label", "selected organisation field table", 1, "complex-field-table"], [1, "complex-panel-compound-field"], [2, "display", "none"], [1, "label-width-medium"], [3, "content"]], template: function ReadOrganisationFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
36433
36432
  i0.ɵɵelementStart(0, "div", 0)(1, "table", 1);
36434
36433
  i0.ɵɵpipe(2, "rpxTranslate");
36435
36434
  i0.ɵɵelementStart(3, "tbody")(4, "tr")(5, "th", 2)(6, "dl", 3)(7, "dt")(8, "span", 4);
@@ -36437,12 +36436,12 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
36437
36436
  i0.ɵɵpipe(10, "rpxTranslate");
36438
36437
  i0.ɵɵelementEnd()()()();
36439
36438
  i0.ɵɵelementStart(11, "td");
36440
- i0.ɵɵtemplate(12, ReadOrganisationFieldTableComponent_table_12_Template, 16, 5, "table", 5);
36439
+ i0.ɵɵtemplate(12, ReadOrganisationFieldTableComponent_table_12_Template, 16, 4, "table", 5);
36441
36440
  i0.ɵɵpipe(13, "async");
36442
36441
  i0.ɵɵelementEnd()()()()();
36443
36442
  } if (rf & 2) {
36444
36443
  i0.ɵɵadvance();
36445
- i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
36444
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
36446
36445
  i0.ɵɵadvance(8);
36447
36446
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
36448
36447
  i0.ɵɵadvance(3);
@@ -36451,7 +36450,7 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
36451
36450
  }
36452
36451
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
36453
36452
  type: Component,
36454
- 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"] }]
36453
+ args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-label]=\"'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 aria-label=\"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"] }]
36455
36454
  }], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
36456
36455
  type: Input
36457
36456
  }] }); })();