@hmcts/rpx-xui-common-lib 1.7.9-filter-non-base-location → 1.7.10-accessibility-statement-change

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.
Files changed (26) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +137 -178
  2. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
  3. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
  4. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/accessibility/accessibility.component.js +2 -2
  6. package/esm2015/lib/components/find-location/find-location.component.js +1 -12
  7. package/esm2015/lib/components/generic-filter/generic-filter.component.js +13 -19
  8. package/esm2015/lib/components/search-location/search-location.component.js +3 -14
  9. package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +5 -2
  10. package/esm2015/lib/services/locations/location.service.js +3 -4
  11. package/esm5/lib/components/accessibility/accessibility.component.js +2 -2
  12. package/esm5/lib/components/find-location/find-location.component.js +1 -15
  13. package/esm5/lib/components/generic-filter/generic-filter.component.js +27 -44
  14. package/esm5/lib/components/search-location/search-location.component.js +3 -13
  15. package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +5 -2
  16. package/esm5/lib/services/locations/location.service.js +3 -5
  17. package/fesm2015/hmcts-rpx-xui-common-lib.js +72 -94
  18. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  19. package/fesm5/hmcts-rpx-xui-common-lib.js +126 -162
  20. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  21. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  22. package/lib/components/find-location/find-location.component.d.ts +2 -3
  23. package/lib/components/search-location/search-location.component.d.ts +1 -3
  24. package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +1 -0
  25. package/lib/services/locations/location.service.d.ts +1 -1
  26. package/package.json +1 -1
@@ -15,7 +15,7 @@
15
15
  AccessibilityComponent.decorators = [
16
16
  { type: i0.Component, args: [{
17
17
  selector: 'xuilib-accessibility',
18
- template: "<h1 class=\"govuk-heading-xl\" id=\"Accessibility-statement-for-Expert-UI\">Accessibility statement for Expert UI</h1>\n\n<ul class=\"govuk-list\">\n <li><a href=\"accessibility#immigration\">Immigration and Asylum</a></li>\n <li><a href=\"accessibility#family\">Family Public Law </a></li>\n</ul>\n\n<p class=\"govuk-body\">This website is run by HM Courts & Tribunals Service. We want as many people as possible to be\n able to use this website. For example, you should be able to:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>change colours, contrast levels and fonts</li>\n <li>zoom in up to 300% without the text spilling off the screen</li>\n <li>navigate most of the website using just a keyboard</li>\n <li>navigate most of the website using speech recognition software</li>\n <li>listen to most of the website using a screen reader (including the most recent versions of JAWS, NVDA and\n VoiceOver)\n </li>\n</ul>\n\n<p class=\"govuk-body\">We\u2019ve also made the website text as simple as possible to understand.</p>\n\n<p class=\"govuk-body\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https://mcmw.abilitynet.org.uk/\">AbilityNet</a>\n has advice on making your device easier to use if you have a disability.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"How-accessible-this-website-is\">How accessible this website is</h2>\n\n<p class=\"govuk-body\">We know some parts of the website are not fully accessible:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>some pages are difficult to navigate using just a keyboard</li>\n <li>some pages can\u2019t be listened to in full using a screen reader</li>\n <li>some pages have problems with colour contrasts between text and background</li>\n <li>some PDFs may not be fully accessible to a screen reader</li>\n</ul>\n\n<h2 class=\"govuk-heading-l\" id=\"What-to-do-if-you-cannot-access-parts-of-this-website\">Feedback and contact\n information</h2>\n\n<p class=\"govuk-body\">If you need information on this website in a different format like accessible PDF, large print,\n easy read, audio recording or braille, you can:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>email: <a href=\"mailto:HMCTSforms@justice.gov.uk\"> HMCTSforms@justice.gov.uk</a></li>\n <li>call: +44 (0) 300 123 1711</li>\n <li>contact your service representative</li>\n</ul>\n\n<p class=\"govuk-body\">We\u2019ll consider your request and get back to you in 10 working days.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"Reporting-accessibility-problems-with-this-website\">Reporting accessibility problems\n with this website</h2>\n\n<p class=\"govuk-body\">We\u2019re always looking to improve the accessibility of this website. If you find any problems not\n listed on this page or think we\u2019re not meeting accessibility requirements, contact:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>email: <a href=\"mailto:customer.service@justice.gov.uk\"> customer.service@justice.gov.uk</a></li>\n <li>telephone: +44 (0) 300 123 1711</li>\n</ul>\n\n<h2 class=\"govuk-heading-l\" id=\"Enforcement-procedure \">Enforcement procedure</h2>\n\n<p class=\"govuk-body\">The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector\n Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the \u2018accessibility\n regulations\u2019). </p>\n\n<p class=\"govuk-body\">If you\u2019re not happy with how we respond to your complaint, <a rel=\"noopener noreferrer\"\n target=\"_blank\"\n href=\"https://www.equalityadvisoryservice.com/\">contact\n the Equality Advisory and Support Service (EASS).</a></p>\n\n<h1 class=\"govuk-heading-l\" id=\"Contacting-us-by-phone-or-visiting-us-in-person\">Contacting us by phone or visiting us\n in person</h1>\n\n<p class=\"govuk-body\">We provide a text relay service for people who are D/deaf, hearing impaired or have a speech\n impediment.</p>\n\n<p class=\"govuk-body\">Our offices and tribunal venues have audio induction loops, or if you contact us before your visit\n we can arrange a British Sign Language (BSL) interpreter. You can also request step-free access or a foreign language\n interpreter.</p>\n\n<p class=\"govuk-body\">If you have a question about accessibility in our Tribunal venues, you can contact the First-tier\n Tribunal enquiry line: +44 (0) 300 123 1711. You can <a target=\"_blank\"\n href=\"https://courttribunalfinder.service.gov.uk/search/\">find\n the contact details for court and tribunal venues</a>. </p>\n\n<p class=\"govuk-body\">You can also contact your service representative for more information.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"Technical-information-about-this-website\u2019s-accessibility\">Technical information about\n this website\u2019s accessibility</h1>\n\n<p class=\"govuk-body\">HMCTS is committed to making its website accessible, in accordance with the Public Sector Bodies\n (Websites and Mobile Applications) (No.2) Accessibility Regulations 2018.</p>\n\n<p class=\"govuk-body\">This website is partially compliant with the <a rel=\"noopener noreferrer\" target=\"_blank\"\n href=\"https://www.w3.org/TR/WCAG21/\">Web Content\n Accessibility Guidelines version 2.1</a>, due to the non-compliances listed below.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"Non-accessible-content\">Non-accessible content </h1>\n\n<p class=\"govuk-body\">The content listed below is non-compliant for the following reasons.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"Non-compliance-with-the-accessibility-regulations\">Non-compliance with the accessibility\n regulations</h2>\n\n<p class=\"govuk-body\">Some pages cannot be navigated completely using just a keyboard, so some people won\u2019t be able to\n tab through the pages. This fails WCAG 2.1 success criterion 2.1 (keyboard accessible).</p>\n\n<p class=\"govuk-body\">Some pages can\u2019t be listened to in full using a screen reader, so some people won\u2019t be able to\n access the information. This fails WCAG 2.1 success criterion 1.2.5 (audio description \u2013 prerecorded).</p>\n\n<p class=\"govuk-body\">Some of the contrast ratios don\u2019t meet the current accessibility requirements. This fails WCAG 2.1\n success criterion 1.4.3 (contrast \u2013 minimum).</p>\n\n<h3 class=\"govuk-heading-m\" id=\"immigration\">Immigration and Asylum</h3>\n\n<p class=\"govuk-body\">Some of the images on the service include text and are not accessible for some low vision users.\n We have identified a solution for this issue that we will implement as soon as possible.</p>\n\n<h3 class=\"govuk-heading-m\" id=\"family\">Family Public Law </h3>\n\n<ol class=\"govuk-list govuk-list--alpha\">\n <li>The navigation system used in family public law cannot be rendered well by screen readers, so features can\u2019t be\n listened to in full\n </li>\n <li>Some essential functions within the family public law digital service cannot be accessed properly using screen\n readers\n </li>\n <li>Some complex forms within the service will not be rendered correctly or cannot be listened to by screen readers\n </li>\n</ol>\n\n<h2 class=\"govuk-heading-m\" id=\"Disproportionate burden \">Disproportionate burden </h2>\n\n<p class=\"govuk-body\">For Manage organisation, Register organisation, Approve organisations and Manage cases, we found\n the following issues that are currently being triaged to find out if there is a disproportionate burden:</p>\n\n<ol class=\"govuk-list govuk-list--alpha\">\n <li>Screen readers can\u2019t switch between headers, read content in tabs and buttons</li>\n <li>Screen readers can\u2019t tab between radio buttons, read links or content</li>\n <li>Colour contrast ratios uneven between page background and content</li>\n <li>Some labels, fields, error messages and other content can\u2019t be clearly identified by screen readers and voice\n activation software\n </li>\n <li>Some page headings and titles don\u2019t follow a logical structure for screen readers</li>\n <li>The navigation of some pages isn\u2019t clear</li>\n <li>Some headings, links and button labels aren\u2019t clearly descriptive</li>\n</ol>\n\n<h2 class=\"govuk-heading-m\" id=\"Content-that\u2019s-not-within-the-scope-of-the-accessibility-regulations\">Content that\u2019s not\n within the scope of the accessibility regulations </h2>\n\n<p class=\"govuk-body\">PDFs, documents and attachments to email notifications published before 23 September 2018 may not\n meet accessibility standards. For example, they may not be structured so they\u2019re accessible to a screen reader.</p>\n\n<p class=\"govuk-body\">Any new PDFs or Word documents we publish will meet accessibility standards.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"what-to-improve-accessibility\">What we\u2019re doing to improve accessibility</h1>\n\n<p class=\"govuk-body\">We\u2019re committed to ensuring our services are accessible to all our users and that they comply with\n level AA of the Web Content Accessibility Guidelines \u2013 WCAG 2.1.</p>\n\n<p class=\"govuk-body\">We\u2019re actively working to improve the identified issues and make them AA-compliant by 23 September\n 2020. We\u2019re also continuing to improve all other AAA-level accessibility issues as we iterate the service.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"preparation-of-this-accessibility-statement\">Preparation of this accessibility\n statement</h1>\n\n<p class=\"govuk-body\">This statement was prepared on 16 September 2019. It was last reviewed on 16 September 2020.</p>\n\n<p class=\"govuk-body\">This website was last tested on 19 May 2020. The test was carried out by the <a target=\"_blank\"\n href=\"https://digitalaccessibilitycentre.org/\">Digital\n Accessibility Centre (DAC)</a>.</p>\n",
18
+ template: "<h1 class=\"govuk-heading-xl\" id=\"Accessibility-statement-for-Expert-UI\">Accessibility statement for Expert UI</h1>\n\n<ul class=\"govuk-list\">\n <li><a href=\"accessibility#immigration\">Immigration and Asylum</a></li>\n <li><a href=\"accessibility#family\">Family Public Law </a></li>\n</ul>\n\n<p class=\"govuk-body\">This website is run by HM Courts & Tribunals Service. We want as many people as possible to be\n able to use this website. For example, you should be able to:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>change colours, contrast levels and fonts</li>\n <li>zoom in up to 300% without the text spilling off the screen</li>\n <li>navigate most of the website using just a keyboard</li>\n <li>navigate most of the website using speech recognition software</li>\n <li>listen to most of the website using a screen reader (including the most recent versions of JAWS, NVDA and\n VoiceOver)\n </li>\n</ul>\n\n<p class=\"govuk-body\">We\u2019ve also made the website text as simple as possible to understand.</p>\n\n<p class=\"govuk-body\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https://mcmw.abilitynet.org.uk/\">AbilityNet</a>\n has advice on making your device easier to use if you have a disability.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"How-accessible-this-website-is\">How accessible this website is</h2>\n\n<p class=\"govuk-body\">We know some parts of the website are not fully accessible:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>some pages are difficult to navigate using just a keyboard</li>\n <li>some pages can\u2019t be listened to in full using a screen reader</li>\n <li>some pages have problems with colour contrasts between text and background</li>\n <li>some PDFs may not be fully accessible to a screen reader</li>\n</ul>\n\n<h2 class=\"govuk-heading-l\" id=\"What-to-do-if-you-cannot-access-parts-of-this-website\">Feedback and contact\n information</h2>\n\n<p class=\"govuk-body\">If you need information on this website in a different format like accessible PDF, large print,\n easy read, audio recording or braille, you can:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>email: <a href=\"mailto:HMCTSforms@justice.gov.uk\"> HMCTSforms@justice.gov.uk</a></li>\n <li>call: +44 (0) 300 123 1711</li>\n <li>contact your service representative</li>\n</ul>\n\n<p class=\"govuk-body\">We\u2019ll consider your request and get back to you in 10 working days.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"Reporting-accessibility-problems-with-this-website\">Reporting accessibility problems\n with this website</h2>\n\n<p class=\"govuk-body\">We\u2019re always looking to improve the accessibility of this website. If you find any problems not\n listed on this page or think we\u2019re not meeting accessibility requirements, contact:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>email: <a href=\"mailto:customer.service@justice.gov.uk\"> customer.service@justice.gov.uk</a></li>\n <li>telephone: +44 (0) 300 123 1711</li>\n</ul>\n\n<h2 class=\"govuk-heading-l\" id=\"Enforcement-procedure \">Enforcement procedure</h2>\n\n<p class=\"govuk-body\">The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector\n Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the \u2018accessibility\n regulations\u2019). </p>\n\n<p class=\"govuk-body\">If you\u2019re not happy with how we respond to your complaint, <a rel=\"noopener noreferrer\"\n target=\"_blank\"\n href=\"https://www.equalityadvisoryservice.com/\">contact\n the Equality Advisory and Support Service (EASS).</a></p>\n\n<h1 class=\"govuk-heading-l\" id=\"Contacting-us-by-phone-or-visiting-us-in-person\">Contacting us by phone or visiting us\n in person</h1>\n\n<p class=\"govuk-body\">We provide a text relay service for people who are D/deaf, hearing impaired or have a speech\n impediment.</p>\n\n<p class=\"govuk-body\">Our offices and tribunal venues have audio induction loops, or if you contact us before your visit\n we can arrange a British Sign Language (BSL) interpreter. You can also request step-free access or a foreign language\n interpreter.</p>\n\n<p class=\"govuk-body\">If you have a question about accessibility in our Tribunal venues, you can contact the First-tier\n Tribunal enquiry line: +44 (0) 300 123 1711. You can <a target=\"_blank\"\n href=\"https://courttribunalfinder.service.gov.uk/search/\">find\n the contact details for court and tribunal venues</a>. </p>\n\n<p class=\"govuk-body\">You can also contact your service representative for more information.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"Technical-information-about-this-website\u2019s-accessibility\">Technical information about\n this website\u2019s accessibility</h1>\n\n<p class=\"govuk-body\">HMCTS is committed to making its website accessible, in accordance with the Public Sector Bodies\n (Websites and Mobile Applications) (No.2) Accessibility Regulations 2018.</p>\n\n<p class=\"govuk-body\">This website is partially compliant with the <a rel=\"noopener noreferrer\" target=\"_blank\"\n href=\"https://www.w3.org/TR/WCAG21/\">Web Content\n Accessibility Guidelines version 2.1</a>, due to the non-compliances listed below.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"Non-accessible-content\">Non-accessible content </h1>\n\n<p class=\"govuk-body\">The content listed below is non-compliant for the following reasons.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"Non-compliance-with-the-accessibility-regulations\">Non-compliance with the accessibility\n regulations</h2>\n\n<p class=\"govuk-body\">Some pages cannot be navigated completely using just a keyboard, so some people won\u2019t be able to\n tab through the pages. This fails WCAG 2.1 success criterion 2.1 (keyboard accessible).</p>\n\n<p class=\"govuk-body\">Some pages can\u2019t be listened to in full using a screen reader, so some people won\u2019t be able to\n access the information. This fails WCAG 2.1 success criterion 1.2.5 (audio description \u2013 prerecorded).</p>\n\n<p class=\"govuk-body\">Some of the contrast ratios don\u2019t meet the current accessibility requirements. This fails WCAG 2.1\n success criterion 1.4.3 (contrast \u2013 minimum).</p>\n\n<h3 class=\"govuk-heading-m\" id=\"immigration\">Immigration and Asylum</h3>\n\n<p class=\"govuk-body\">Some of the images on the service include text and are not accessible for some low vision users.\n We have identified a solution for this issue that we will implement as soon as possible.</p>\n\n<h3 class=\"govuk-heading-m\" id=\"family\">Family Public Law </h3>\n\n<ol class=\"govuk-list govuk-list--alpha\">\n <li>The navigation system used in family public law cannot be rendered well by screen readers, so features can\u2019t be\n listened to in full\n </li>\n <li>Some essential functions within the family public law digital service cannot be accessed properly using screen\n readers\n </li>\n <li>Some complex forms within the service will not be rendered correctly or cannot be listened to by screen readers\n </li>\n</ol>\n\n<h2 class=\"govuk-heading-m\" id=\"Disproportionate burden \">Disproportionate burden </h2>\n\n<p class=\"govuk-body\">For Manage organisation, Register organisation, Approve organisations and Manage cases, we found\n the following issues that are currently being triaged to find out if there is a disproportionate burden:</p>\n\n<ol class=\"govuk-list govuk-list--alpha\">\n <li>Screen readers can\u2019t switch between headers, read content in tabs and buttons</li>\n <li>Screen readers can\u2019t tab between radio buttons, read links or content</li>\n <li>Colour contrast ratios uneven between page background and content</li>\n <li>Some labels, fields, error messages and other content can\u2019t be clearly identified by screen readers and voice\n activation software\n </li>\n <li>Some page headings and titles don\u2019t follow a logical structure for screen readers</li>\n <li>The navigation of some pages isn\u2019t clear</li>\n <li>Some headings, links and button labels aren\u2019t clearly descriptive</li>\n</ol>\n\n<h2 class=\"govuk-heading-m\" id=\"Content-that\u2019s-not-within-the-scope-of-the-accessibility-regulations\">Content that\u2019s not\n within the scope of the accessibility regulations </h2>\n\n<p class=\"govuk-body\">PDFs, documents and attachments to email notifications published before 23 September 2018 may not\n meet accessibility standards. For example, they may not be structured so they\u2019re accessible to a screen reader.</p>\n\n<p class=\"govuk-body\">Any new PDFs or Word documents we publish will meet accessibility standards.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"what-to-improve-accessibility\">What we\u2019re doing to improve accessibility</h1>\n\n<p class=\"govuk-body\">We\u2019re committed to ensuring our services are accessible to all our users and that they comply with\n level AA of the Web Content Accessibility Guidelines \u2013 WCAG 2.1.</p>\n\n<p class=\"govuk-body\">We\u2019re actively working to improve the identified issues and make them AA-compliant by 23 September\n 2020. We\u2019re also continuing to improve all other AAA-level accessibility issues as we iterate the service.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"preparation-of-this-accessibility-statement\">Preparation of this accessibility\n statement</h1>\n\n<p class=\"govuk-body\">This statement was prepared on 16 September 2019. It was last reviewed on 16 September 2020.</p>\n\n<p class=\"govuk-body\">This website was last tested on 19 May 2020. The test was carried out by the <a target=\"_blank\"\n href=\"https://digitalaccessibilitycentre.org/\">Digital\n Accessibility Centre (DAC)</a>.</p>\n\n<h3 class=\"govuk-heading-m\">Family Private Law:</h3>\n\n<p class=\"govuk-body\">This service has not yet been tested for accessibility issues. In the future, we will conduct an\n accessibility audit in order to find out if there are any accessibility issues. The accessibility statement will be\n updated with any relevant changes that we find.</p>\n\n <p class=\"govuk-body\">If there are any issues with accessing information or using this website please contact:</p>\n\n <ol class=\"govuk-list govuk-list--bullet\">\n <li>Nicola Whitcher - 02380 384324</li>\n <li>Hannah Townley - 02380 384313</li>\n </ol>\n ",
19
19
  styles: [".govuk-list--alpha{padding-left:20px;list-style-type:lower-alpha}"]
20
20
  }] }
21
21
  ];
@@ -1201,7 +1201,6 @@
1201
1201
  * @return {?}
1202
1202
  */
1203
1203
  function (event, form, item, field) {
1204
- var e_3, _a;
1205
1204
  /** @type {?} */
1206
1205
  var isChecked = event.target.checked;
1207
1206
  /** @type {?} */
@@ -1252,41 +1251,19 @@
1252
1251
  else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
1253
1252
  formArray.controls[index_1].patchValue(true);
1254
1253
  }
1254
+ return;
1255
1255
  }
1256
- else {
1257
- formArray.controls.forEach(( /**
1258
- * @param {?} control
1259
- * @return {?}
1260
- */function (control) {
1261
- if (isChecked) {
1262
- control.patchValue(true);
1263
- }
1264
- else {
1265
- control.patchValue(false);
1266
- }
1267
- }));
1268
- }
1269
- if (field.changeResetFields && field.changeResetFields.length) {
1270
- try {
1271
- for (var _b = __values(field.changeResetFields), _c = _b.next(); !_c.done; _c = _b.next()) {
1272
- var resetField = _c.value;
1273
- this.resetField(resetField, form);
1274
- }
1275
- }
1276
- catch (e_3_1) {
1277
- e_3 = { error: e_3_1 };
1256
+ formArray.controls.forEach(( /**
1257
+ * @param {?} control
1258
+ * @return {?}
1259
+ */function (control) {
1260
+ if (isChecked) {
1261
+ control.patchValue(true);
1278
1262
  }
1279
- finally {
1280
- try {
1281
- if (_c && !_c.done && (_a = _b.return))
1282
- _a.call(_b);
1283
- }
1284
- finally {
1285
- if (e_3)
1286
- throw e_3.error;
1287
- }
1263
+ else {
1264
+ control.patchValue(false);
1288
1265
  }
1289
- }
1266
+ }));
1290
1267
  };
1291
1268
  /**
1292
1269
  * @private
@@ -1301,7 +1278,7 @@
1301
1278
  * @return {?}
1302
1279
  */
1303
1280
  function (resetField, form) {
1304
- var e_4, _a;
1281
+ var e_3, _a;
1305
1282
  /** @type {?} */
1306
1283
  var control = form.get(resetField);
1307
1284
  /** @type {?} */
@@ -1323,8 +1300,8 @@
1323
1300
  this.resetField(key, control);
1324
1301
  }
1325
1302
  }
1326
- catch (e_4_1) {
1327
- e_4 = { error: e_4_1 };
1303
+ catch (e_3_1) {
1304
+ e_3 = { error: e_3_1 };
1328
1305
  }
1329
1306
  finally {
1330
1307
  try {
@@ -1332,8 +1309,8 @@
1332
1309
  _a.call(keys_2);
1333
1310
  }
1334
1311
  finally {
1335
- if (e_4)
1336
- throw e_4.error;
1312
+ if (e_3)
1313
+ throw e_3.error;
1337
1314
  }
1338
1315
  }
1339
1316
  }
@@ -1390,7 +1367,7 @@
1390
1367
  * @return {?}
1391
1368
  */
1392
1369
  function (config, settings, reset) {
1393
- var e_5, _a;
1370
+ var e_4, _a;
1394
1371
  /** @type {?} */
1395
1372
  var findPersonControl = this.form ? this.form.get('findPersonControl') : null;
1396
1373
  this.form = this.fb.group({});
@@ -1463,8 +1440,8 @@
1463
1440
  _loop_1(field);
1464
1441
  }
1465
1442
  }
1466
- catch (e_5_1) {
1467
- e_5 = { error: e_5_1 };
1443
+ catch (e_4_1) {
1444
+ e_4 = { error: e_4_1 };
1468
1445
  }
1469
1446
  finally {
1470
1447
  try {
@@ -1472,8 +1449,8 @@
1472
1449
  _a.call(_b);
1473
1450
  }
1474
1451
  finally {
1475
- if (e_5)
1476
- throw e_5.error;
1452
+ if (e_4)
1453
+ throw e_4.error;
1477
1454
  }
1478
1455
  }
1479
1456
  };
@@ -1490,7 +1467,7 @@
1490
1467
  * @return {?}
1491
1468
  */
1492
1469
  function (field, settings) {
1493
- var e_6, _a;
1470
+ var e_5, _a;
1494
1471
  /** @type {?} */
1495
1472
  var validators = GenericFilterComponent.addFormValidators(field);
1496
1473
  /** @type {?} */
@@ -1520,8 +1497,8 @@
1520
1497
  _loop_2(option);
1521
1498
  }
1522
1499
  }
1523
- catch (e_6_1) {
1524
- e_6 = { error: e_6_1 };
1500
+ catch (e_5_1) {
1501
+ e_5 = { error: e_5_1 };
1525
1502
  }
1526
1503
  finally {
1527
1504
  try {
@@ -1529,8 +1506,8 @@
1529
1506
  _a.call(_b);
1530
1507
  }
1531
1508
  finally {
1532
- if (e_6)
1533
- throw e_6.error;
1509
+ if (e_5)
1510
+ throw e_5.error;
1534
1511
  }
1535
1512
  }
1536
1513
  return formArray;
@@ -1548,7 +1525,7 @@
1548
1525
  * @return {?}
1549
1526
  */
1550
1527
  function (field, settings) {
1551
- var e_7, _a;
1528
+ var e_6, _a;
1552
1529
  /** @type {?} */
1553
1530
  var validators = GenericFilterComponent.addFormValidators(field);
1554
1531
  /** @type {?} */
@@ -1567,8 +1544,8 @@
1567
1544
  formArray.push(new forms.FormControl(defaultValue));
1568
1545
  }
1569
1546
  }
1570
- catch (e_7_1) {
1571
- e_7 = { error: e_7_1 };
1547
+ catch (e_6_1) {
1548
+ e_6 = { error: e_6_1 };
1572
1549
  }
1573
1550
  finally {
1574
1551
  try {
@@ -1576,8 +1553,8 @@
1576
1553
  _a.call(_b);
1577
1554
  }
1578
1555
  finally {
1579
- if (e_7)
1580
- throw e_7.error;
1556
+ if (e_6)
1557
+ throw e_6.error;
1581
1558
  }
1582
1559
  }
1583
1560
  }
@@ -1632,7 +1609,7 @@
1632
1609
  * @return {?}
1633
1610
  */
1634
1611
  function (form) {
1635
- var e_8, _a;
1612
+ var e_7, _a;
1636
1613
  /** @type {?} */
1637
1614
  var errors = [];
1638
1615
  try {
@@ -1648,8 +1625,8 @@
1648
1625
  }
1649
1626
  }
1650
1627
  }
1651
- catch (e_8_1) {
1652
- e_8 = { error: e_8_1 };
1628
+ catch (e_7_1) {
1629
+ e_7 = { error: e_7_1 };
1653
1630
  }
1654
1631
  finally {
1655
1632
  try {
@@ -1657,8 +1634,8 @@
1657
1634
  _a.call(_b);
1658
1635
  }
1659
1636
  finally {
1660
- if (e_8)
1661
- throw e_8.error;
1637
+ if (e_7)
1638
+ throw e_7.error;
1662
1639
  }
1663
1640
  }
1664
1641
  if (errors.length) {
@@ -3804,7 +3781,6 @@
3804
3781
  * @param {?} serviceIds
3805
3782
  * @param {?} locationType
3806
3783
  * @param {?} searchTerm
3807
- * @param {?} userLocations
3808
3784
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3809
3785
  */
3810
3786
  LocationService.prototype.getAllLocations = /**
@@ -3812,11 +3788,10 @@
3812
3788
  * @param {?} serviceIds
3813
3789
  * @param {?} locationType
3814
3790
  * @param {?} searchTerm
3815
- * @param {?} userLocations
3816
3791
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3817
3792
  */
3818
- function (serviceIds, locationType, searchTerm, userLocations) {
3819
- return this.http.post("api/locations/getLocations", { serviceIds: serviceIds, locationType: locationType, searchTerm: searchTerm, userLocations: userLocations });
3793
+ function (serviceIds, locationType, searchTerm) {
3794
+ return this.http.get("api/locations/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
3820
3795
  };
3821
3796
  /**
3822
3797
  * @description searchLocations from service Ids/location type/search term
@@ -3857,110 +3832,14 @@
3857
3832
  return LocationService;
3858
3833
  }());
3859
3834
 
3860
- /**
3861
- * @fileoverview added by tsickle
3862
- * Generated from: lib/services/session-storage/session-storage.service.ts
3863
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3864
- */
3865
- var SessionStorageService = /** @class */ (function () {
3866
- function SessionStorageService() {
3867
- }
3868
- /**
3869
- * Get an item from the session storage.
3870
- * If remove is true, the item will be removed once read
3871
- * @param removeAfterRead removed the key once it has been read
3872
- */
3873
- /**
3874
- * Get an item from the session storage.
3875
- * If remove is true, the item will be removed once read
3876
- * @param {?} key
3877
- * @param {?=} removeAfterRead removed the key once it has been read
3878
- * @return {?}
3879
- */
3880
- SessionStorageService.prototype.getItem = /**
3881
- * Get an item from the session storage.
3882
- * If remove is true, the item will be removed once read
3883
- * @param {?} key
3884
- * @param {?=} removeAfterRead removed the key once it has been read
3885
- * @return {?}
3886
- */
3887
- function (key, removeAfterRead) {
3888
- if (removeAfterRead === void 0) {
3889
- removeAfterRead = false;
3890
- }
3891
- /** @type {?} */
3892
- var item = sessionStorage.getItem(key);
3893
- if (removeAfterRead) {
3894
- this.removeItem(key);
3895
- }
3896
- return item;
3897
- };
3898
- /**
3899
- * Set an item in the session storage.
3900
- */
3901
- /**
3902
- * Set an item in the session storage.
3903
- * @param {?} key
3904
- * @param {?} value
3905
- * @return {?}
3906
- */
3907
- SessionStorageService.prototype.setItem = /**
3908
- * Set an item in the session storage.
3909
- * @param {?} key
3910
- * @param {?} value
3911
- * @return {?}
3912
- */
3913
- function (key, value) {
3914
- sessionStorage.setItem(key, value);
3915
- };
3916
- /**
3917
- * Remove an item in the session storage.
3918
- */
3919
- /**
3920
- * Remove an item in the session storage.
3921
- * @param {?} key
3922
- * @return {?}
3923
- */
3924
- SessionStorageService.prototype.removeItem = /**
3925
- * Remove an item in the session storage.
3926
- * @param {?} key
3927
- * @return {?}
3928
- */
3929
- function (key) {
3930
- sessionStorage.removeItem(key);
3931
- };
3932
- /**
3933
- * Clear all the items held in session storage.
3934
- */
3935
- /**
3936
- * Clear all the items held in session storage.
3937
- * @return {?}
3938
- */
3939
- SessionStorageService.prototype.clear = /**
3940
- * Clear all the items held in session storage.
3941
- * @return {?}
3942
- */
3943
- function () {
3944
- sessionStorage.clear();
3945
- };
3946
- SessionStorageService.decorators = [
3947
- { type: i0.Injectable, args: [{
3948
- providedIn: 'root'
3949
- },] }
3950
- ];
3951
- /** @nocollapse */ SessionStorageService.ngInjectableDef = i0.defineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
3952
- return SessionStorageService;
3953
- }());
3954
-
3955
3835
  /**
3956
3836
  * @fileoverview added by tsickle
3957
3837
  * Generated from: lib/components/search-location/search-location.component.ts
3958
3838
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3959
3839
  */
3960
3840
  var SearchLocationComponent = /** @class */ (function () {
3961
- function SearchLocationComponent(locationService, sessionStorageService, fb, cd) {
3841
+ function SearchLocationComponent(locationService, fb, cd) {
3962
3842
  this.locationService = locationService;
3963
- this.sessionStorageService = sessionStorageService;
3964
3843
  this.fb = fb;
3965
3844
  this.cd = cd;
3966
3845
  this.disabled = null;
@@ -4112,9 +3991,7 @@
4112
3991
  * @return {?}
4113
3992
  */
4114
3993
  function (term) {
4115
- /** @type {?} */
4116
- var userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4117
- return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations);
3994
+ return this.locationService.getAllLocations(this.serviceIds, this.locationType, term);
4118
3995
  };
4119
3996
  /**
4120
3997
  * @return {?}
@@ -4161,7 +4038,6 @@
4161
4038
  SearchLocationComponent.ctorParameters = function () {
4162
4039
  return [
4163
4040
  { type: LocationService },
4164
- { type: SessionStorageService },
4165
4041
  { type: forms.FormBuilder },
4166
4042
  { type: i0.ChangeDetectorRef }
4167
4043
  ];
@@ -4256,19 +4132,6 @@
4256
4132
  enumerable: true,
4257
4133
  configurable: true
4258
4134
  });
4259
- /**
4260
- * @return {?}
4261
- */
4262
- FindLocationComponent.prototype.ngOnInit = /**
4263
- * @return {?}
4264
- */
4265
- function () {
4266
- // implemented to get rid of undefined values
4267
- this.selectedLocations = this.selectedLocations.filter(( /**
4268
- * @param {?} location
4269
- * @return {?}
4270
- */function (location) { return location.epimms_id; }));
4271
- };
4272
4135
  /**
4273
4136
  * @return {?}
4274
4137
  */
@@ -4762,6 +4625,101 @@
4762
4625
  sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
4763
4626
  });
4764
4627
 
4628
+ /**
4629
+ * @fileoverview added by tsickle
4630
+ * Generated from: lib/services/session-storage/session-storage.service.ts
4631
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4632
+ */
4633
+ var SessionStorageService = /** @class */ (function () {
4634
+ function SessionStorageService() {
4635
+ }
4636
+ /**
4637
+ * Get an item from the session storage.
4638
+ * If remove is true, the item will be removed once read
4639
+ * @param removeAfterRead removed the key once it has been read
4640
+ */
4641
+ /**
4642
+ * Get an item from the session storage.
4643
+ * If remove is true, the item will be removed once read
4644
+ * @param {?} key
4645
+ * @param {?=} removeAfterRead removed the key once it has been read
4646
+ * @return {?}
4647
+ */
4648
+ SessionStorageService.prototype.getItem = /**
4649
+ * Get an item from the session storage.
4650
+ * If remove is true, the item will be removed once read
4651
+ * @param {?} key
4652
+ * @param {?=} removeAfterRead removed the key once it has been read
4653
+ * @return {?}
4654
+ */
4655
+ function (key, removeAfterRead) {
4656
+ if (removeAfterRead === void 0) {
4657
+ removeAfterRead = false;
4658
+ }
4659
+ /** @type {?} */
4660
+ var item = sessionStorage.getItem(key);
4661
+ if (removeAfterRead) {
4662
+ this.removeItem(key);
4663
+ }
4664
+ return item;
4665
+ };
4666
+ /**
4667
+ * Set an item in the session storage.
4668
+ */
4669
+ /**
4670
+ * Set an item in the session storage.
4671
+ * @param {?} key
4672
+ * @param {?} value
4673
+ * @return {?}
4674
+ */
4675
+ SessionStorageService.prototype.setItem = /**
4676
+ * Set an item in the session storage.
4677
+ * @param {?} key
4678
+ * @param {?} value
4679
+ * @return {?}
4680
+ */
4681
+ function (key, value) {
4682
+ sessionStorage.setItem(key, value);
4683
+ };
4684
+ /**
4685
+ * Remove an item in the session storage.
4686
+ */
4687
+ /**
4688
+ * Remove an item in the session storage.
4689
+ * @param {?} key
4690
+ * @return {?}
4691
+ */
4692
+ SessionStorageService.prototype.removeItem = /**
4693
+ * Remove an item in the session storage.
4694
+ * @param {?} key
4695
+ * @return {?}
4696
+ */
4697
+ function (key) {
4698
+ sessionStorage.removeItem(key);
4699
+ };
4700
+ /**
4701
+ * Clear all the items held in session storage.
4702
+ */
4703
+ /**
4704
+ * Clear all the items held in session storage.
4705
+ * @return {?}
4706
+ */
4707
+ SessionStorageService.prototype.clear = /**
4708
+ * Clear all the items held in session storage.
4709
+ * @return {?}
4710
+ */
4711
+ function () {
4712
+ sessionStorage.clear();
4713
+ };
4714
+ SessionStorageService.decorators = [
4715
+ { type: i0.Injectable, args: [{
4716
+ providedIn: 'root'
4717
+ },] }
4718
+ ];
4719
+ /** @nocollapse */ SessionStorageService.ngInjectableDef = i0.defineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
4720
+ return SessionStorageService;
4721
+ }());
4722
+
4765
4723
  /**
4766
4724
  * @fileoverview added by tsickle
4767
4725
  * Generated from: lib/services/find-person/find-person.service.ts
@@ -6629,7 +6587,8 @@
6629
6587
  HmctsSubNavigationComponent.decorators = [
6630
6588
  { type: i0.Component, args: [{
6631
6589
  selector: 'xuilib-hmcts-sub-navigation',
6632
- template: "<nav class=\"hmcts-sub-navigation\" attr.aria-label=\"{{label}}\" role=\"navigation\" *ngIf=\"items\">\n <ul class=\"hmcts-sub-navigation__list\">\n <li class=\"hmcts-sub-navigation__item\" *ngFor=\"let item of items\">\n <a data-selector=\"sub-nav-link\" class=\"hmcts-sub-navigation__link\" [routerLink]=\"item.href\"\n [attr.aria-current]=\"item.active ? 'page' : null\">\n {{item.text}}\n </a>\n </li>\n </ul>\n</nav>\n"
6590
+ template: "<nav class=\"hmcts-sub-navigation\" attr.aria-label=\"{{label}}\" role=\"navigation\" *ngIf=\"items\">\n <ul class=\"hmcts-sub-navigation__list\">\n <li class=\"hmcts-sub-navigation__item\" *ngFor=\"let item of items\">\n <a data-selector=\"sub-nav-link\" class=\"hmcts-sub-navigation__link\" [routerLink]=\"item.href\"\n [attr.aria-current]=\"item.active ? 'page' : null\">\n {{item.text}}\n\n <span *ngIf=\"item.roundel && item.roundel > 0 \" class=\"xui-alert-link__number\"> {{item.roundel}} </span>\n </a>\n </li>\n </ul>\n</nav>\n",
6591
+ styles: [".xui-alert-link__number{font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:.875rem;line-height:1.78571;border-radius:50%;background-color:#1d70b8;color:#fff;font-weight:700;width:25px;height:25px;margin-left:5px;text-align:center;display:inline-block;text-decoration:none}"]
6633
6592
  }] }
6634
6593
  ];
6635
6594
  HmctsSubNavigationComponent.propDecorators = {