@hmcts/rpx-xui-common-lib 1.7.10-accessibility-statement-change → 1.7.10-booking-check-type

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 (36) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +267 -195
  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/hmcts-rpx-xui-common-lib.js +2 -2
  6. package/esm2015/lib/components/accessibility/accessibility.component.js +2 -2
  7. package/esm2015/lib/components/find-location/find-location.component.js +13 -2
  8. package/esm2015/lib/components/generic-filter/generic-filter.component.js +19 -13
  9. package/esm2015/lib/components/search-location/search-location.component.js +32 -3
  10. package/esm2015/lib/models/filter.model.js +3 -1
  11. package/esm2015/lib/models/index.js +2 -1
  12. package/esm2015/lib/models/location.model.js +22 -1
  13. package/esm2015/lib/services/locations/location.service.js +5 -3
  14. package/esm2015/public-api.js +2 -2
  15. package/esm5/hmcts-rpx-xui-common-lib.js +2 -2
  16. package/esm5/lib/components/accessibility/accessibility.component.js +2 -2
  17. package/esm5/lib/components/find-location/find-location.component.js +16 -2
  18. package/esm5/lib/components/generic-filter/generic-filter.component.js +44 -27
  19. package/esm5/lib/components/search-location/search-location.component.js +31 -3
  20. package/esm5/lib/models/filter.model.js +3 -1
  21. package/esm5/lib/models/index.js +2 -1
  22. package/esm5/lib/models/location.model.js +22 -1
  23. package/esm5/lib/services/locations/location.service.js +7 -3
  24. package/esm5/public-api.js +2 -2
  25. package/fesm2015/hmcts-rpx-xui-common-lib.js +233 -182
  26. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  27. package/fesm5/hmcts-rpx-xui-common-lib.js +312 -246
  28. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  29. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  30. package/lib/components/find-location/find-location.component.d.ts +3 -2
  31. package/lib/components/search-location/search-location.component.d.ts +5 -2
  32. package/lib/models/filter.model.d.ts +2 -0
  33. package/lib/models/index.d.ts +1 -0
  34. package/lib/models/location.model.d.ts +11 -0
  35. package/lib/services/locations/location.service.d.ts +2 -2
  36. 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\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 ",
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",
19
19
  styles: [".govuk-list--alpha{padding-left:20px;list-style-type:lower-alpha}"]
20
20
  }] }
21
21
  ];
@@ -1201,6 +1201,7 @@
1201
1201
  * @return {?}
1202
1202
  */
1203
1203
  function (event, form, item, field) {
1204
+ var e_3, _a;
1204
1205
  /** @type {?} */
1205
1206
  var isChecked = event.target.checked;
1206
1207
  /** @type {?} */
@@ -1251,19 +1252,41 @@
1251
1252
  else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
1252
1253
  formArray.controls[index_1].patchValue(true);
1253
1254
  }
1254
- return;
1255
1255
  }
1256
- formArray.controls.forEach(( /**
1257
- * @param {?} control
1258
- * @return {?}
1259
- */function (control) {
1260
- if (isChecked) {
1261
- control.patchValue(true);
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
+ }
1262
1275
  }
1263
- else {
1264
- control.patchValue(false);
1276
+ catch (e_3_1) {
1277
+ e_3 = { error: e_3_1 };
1265
1278
  }
1266
- }));
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
+ }
1288
+ }
1289
+ }
1267
1290
  };
1268
1291
  /**
1269
1292
  * @private
@@ -1278,7 +1301,7 @@
1278
1301
  * @return {?}
1279
1302
  */
1280
1303
  function (resetField, form) {
1281
- var e_3, _a;
1304
+ var e_4, _a;
1282
1305
  /** @type {?} */
1283
1306
  var control = form.get(resetField);
1284
1307
  /** @type {?} */
@@ -1300,8 +1323,8 @@
1300
1323
  this.resetField(key, control);
1301
1324
  }
1302
1325
  }
1303
- catch (e_3_1) {
1304
- e_3 = { error: e_3_1 };
1326
+ catch (e_4_1) {
1327
+ e_4 = { error: e_4_1 };
1305
1328
  }
1306
1329
  finally {
1307
1330
  try {
@@ -1309,8 +1332,8 @@
1309
1332
  _a.call(keys_2);
1310
1333
  }
1311
1334
  finally {
1312
- if (e_3)
1313
- throw e_3.error;
1335
+ if (e_4)
1336
+ throw e_4.error;
1314
1337
  }
1315
1338
  }
1316
1339
  }
@@ -1367,7 +1390,7 @@
1367
1390
  * @return {?}
1368
1391
  */
1369
1392
  function (config, settings, reset) {
1370
- var e_4, _a;
1393
+ var e_5, _a;
1371
1394
  /** @type {?} */
1372
1395
  var findPersonControl = this.form ? this.form.get('findPersonControl') : null;
1373
1396
  this.form = this.fb.group({});
@@ -1440,8 +1463,8 @@
1440
1463
  _loop_1(field);
1441
1464
  }
1442
1465
  }
1443
- catch (e_4_1) {
1444
- e_4 = { error: e_4_1 };
1466
+ catch (e_5_1) {
1467
+ e_5 = { error: e_5_1 };
1445
1468
  }
1446
1469
  finally {
1447
1470
  try {
@@ -1449,8 +1472,8 @@
1449
1472
  _a.call(_b);
1450
1473
  }
1451
1474
  finally {
1452
- if (e_4)
1453
- throw e_4.error;
1475
+ if (e_5)
1476
+ throw e_5.error;
1454
1477
  }
1455
1478
  }
1456
1479
  };
@@ -1467,7 +1490,7 @@
1467
1490
  * @return {?}
1468
1491
  */
1469
1492
  function (field, settings) {
1470
- var e_5, _a;
1493
+ var e_6, _a;
1471
1494
  /** @type {?} */
1472
1495
  var validators = GenericFilterComponent.addFormValidators(field);
1473
1496
  /** @type {?} */
@@ -1497,8 +1520,8 @@
1497
1520
  _loop_2(option);
1498
1521
  }
1499
1522
  }
1500
- catch (e_5_1) {
1501
- e_5 = { error: e_5_1 };
1523
+ catch (e_6_1) {
1524
+ e_6 = { error: e_6_1 };
1502
1525
  }
1503
1526
  finally {
1504
1527
  try {
@@ -1506,8 +1529,8 @@
1506
1529
  _a.call(_b);
1507
1530
  }
1508
1531
  finally {
1509
- if (e_5)
1510
- throw e_5.error;
1532
+ if (e_6)
1533
+ throw e_6.error;
1511
1534
  }
1512
1535
  }
1513
1536
  return formArray;
@@ -1525,7 +1548,7 @@
1525
1548
  * @return {?}
1526
1549
  */
1527
1550
  function (field, settings) {
1528
- var e_6, _a;
1551
+ var e_7, _a;
1529
1552
  /** @type {?} */
1530
1553
  var validators = GenericFilterComponent.addFormValidators(field);
1531
1554
  /** @type {?} */
@@ -1544,8 +1567,8 @@
1544
1567
  formArray.push(new forms.FormControl(defaultValue));
1545
1568
  }
1546
1569
  }
1547
- catch (e_6_1) {
1548
- e_6 = { error: e_6_1 };
1570
+ catch (e_7_1) {
1571
+ e_7 = { error: e_7_1 };
1549
1572
  }
1550
1573
  finally {
1551
1574
  try {
@@ -1553,8 +1576,8 @@
1553
1576
  _a.call(_b);
1554
1577
  }
1555
1578
  finally {
1556
- if (e_6)
1557
- throw e_6.error;
1579
+ if (e_7)
1580
+ throw e_7.error;
1558
1581
  }
1559
1582
  }
1560
1583
  }
@@ -1609,7 +1632,7 @@
1609
1632
  * @return {?}
1610
1633
  */
1611
1634
  function (form) {
1612
- var e_7, _a;
1635
+ var e_8, _a;
1613
1636
  /** @type {?} */
1614
1637
  var errors = [];
1615
1638
  try {
@@ -1625,8 +1648,8 @@
1625
1648
  }
1626
1649
  }
1627
1650
  }
1628
- catch (e_7_1) {
1629
- e_7 = { error: e_7_1 };
1651
+ catch (e_8_1) {
1652
+ e_8 = { error: e_8_1 };
1630
1653
  }
1631
1654
  finally {
1632
1655
  try {
@@ -1634,8 +1657,8 @@
1634
1657
  _a.call(_b);
1635
1658
  }
1636
1659
  finally {
1637
- if (e_7)
1638
- throw e_7.error;
1660
+ if (e_8)
1661
+ throw e_8.error;
1639
1662
  }
1640
1663
  }
1641
1664
  if (errors.length) {
@@ -3760,6 +3783,77 @@
3760
3783
  return CookieBannerComponent;
3761
3784
  }());
3762
3785
 
3786
+ /**
3787
+ * @fileoverview added by tsickle
3788
+ * Generated from: lib/models/contact-details.model.ts
3789
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3790
+ */
3791
+ /** @enum {string} */
3792
+ var BadgeColour = {
3793
+ BADGE_RED: "hmcts-badge--red",
3794
+ BADGE_BLUE: "hmcts-badge--blue",
3795
+ BADGE_GREEN: "hmcts-badge--green",
3796
+ };
3797
+
3798
+ /**
3799
+ * @fileoverview added by tsickle
3800
+ * Generated from: lib/models/feature-user.ts
3801
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3802
+ */
3803
+ var AnonymousFeatureUser = /** @class */ (function () {
3804
+ function AnonymousFeatureUser() {
3805
+ }
3806
+ return AnonymousFeatureUser;
3807
+ }());
3808
+ var LoggedInFeatureUser = /** @class */ (function () {
3809
+ function LoggedInFeatureUser() {
3810
+ }
3811
+ return LoggedInFeatureUser;
3812
+ }());
3813
+
3814
+ /**
3815
+ * @fileoverview added by tsickle
3816
+ * Generated from: lib/models/location.model.ts
3817
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3818
+ */
3819
+ /** @enum {string} */
3820
+ var BookingCheckType = {
3821
+ NO_CHECK: "NO_CHECK",
3822
+ BOOKINGS_AND_BASE: "BOOKINGS_AND_BASE",
3823
+ POSSIBLE_BOOKINGS: "POSSIBLE_BOOKINGS",
3824
+ };
3825
+
3826
+ /**
3827
+ * @fileoverview added by tsickle
3828
+ * Generated from: lib/models/person.model.ts
3829
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3830
+ */
3831
+ /** @enum {string} */
3832
+ var PersonRole = {
3833
+ JUDICIAL: "Judicial",
3834
+ CASEWORKER: "Legal Ops",
3835
+ ADMIN: "Admin",
3836
+ ALL: "All",
3837
+ };
3838
+ /** @enum {string} */
3839
+ var RoleCategory = {
3840
+ JUDICIAL: "JUDICIAL",
3841
+ CASEWORKER: "LEGAL_OPERATIONS",
3842
+ ADMIN: "ADMIN",
3843
+ ALL: "ALL",
3844
+ };
3845
+
3846
+ /**
3847
+ * @fileoverview added by tsickle
3848
+ * Generated from: lib/models/filter.model.ts
3849
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3850
+ */
3851
+ var RadioFilterFieldConfig = /** @class */ (function () {
3852
+ function RadioFilterFieldConfig() {
3853
+ }
3854
+ return RadioFilterFieldConfig;
3855
+ }());
3856
+
3763
3857
  /**
3764
3858
  * @fileoverview added by tsickle
3765
3859
  * Generated from: lib/services/locations/location.service.ts
@@ -3781,6 +3875,8 @@
3781
3875
  * @param {?} serviceIds
3782
3876
  * @param {?} locationType
3783
3877
  * @param {?} searchTerm
3878
+ * @param {?} userLocations
3879
+ * @param {?} bookingLocations
3784
3880
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3785
3881
  */
3786
3882
  LocationService.prototype.getAllLocations = /**
@@ -3788,10 +3884,12 @@
3788
3884
  * @param {?} serviceIds
3789
3885
  * @param {?} locationType
3790
3886
  * @param {?} searchTerm
3887
+ * @param {?} userLocations
3888
+ * @param {?} bookingLocations
3791
3889
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3792
3890
  */
3793
- function (serviceIds, locationType, searchTerm) {
3794
- return this.http.get("api/locations/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
3891
+ function (serviceIds, locationType, searchTerm, userLocations, bookingLocations) {
3892
+ return this.http.post("api/locations/getLocations", { serviceIds: serviceIds, locationType: locationType, searchTerm: searchTerm, userLocations: userLocations, bookingLocations: bookingLocations });
3795
3893
  };
3796
3894
  /**
3797
3895
  * @description searchLocations from service Ids/location type/search term
@@ -3832,14 +3930,110 @@
3832
3930
  return LocationService;
3833
3931
  }());
3834
3932
 
3933
+ /**
3934
+ * @fileoverview added by tsickle
3935
+ * Generated from: lib/services/session-storage/session-storage.service.ts
3936
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3937
+ */
3938
+ var SessionStorageService = /** @class */ (function () {
3939
+ function SessionStorageService() {
3940
+ }
3941
+ /**
3942
+ * Get an item from the session storage.
3943
+ * If remove is true, the item will be removed once read
3944
+ * @param removeAfterRead removed the key once it has been read
3945
+ */
3946
+ /**
3947
+ * Get an item from the session storage.
3948
+ * If remove is true, the item will be removed once read
3949
+ * @param {?} key
3950
+ * @param {?=} removeAfterRead removed the key once it has been read
3951
+ * @return {?}
3952
+ */
3953
+ SessionStorageService.prototype.getItem = /**
3954
+ * Get an item from the session storage.
3955
+ * If remove is true, the item will be removed once read
3956
+ * @param {?} key
3957
+ * @param {?=} removeAfterRead removed the key once it has been read
3958
+ * @return {?}
3959
+ */
3960
+ function (key, removeAfterRead) {
3961
+ if (removeAfterRead === void 0) {
3962
+ removeAfterRead = false;
3963
+ }
3964
+ /** @type {?} */
3965
+ var item = sessionStorage.getItem(key);
3966
+ if (removeAfterRead) {
3967
+ this.removeItem(key);
3968
+ }
3969
+ return item;
3970
+ };
3971
+ /**
3972
+ * Set an item in the session storage.
3973
+ */
3974
+ /**
3975
+ * Set an item in the session storage.
3976
+ * @param {?} key
3977
+ * @param {?} value
3978
+ * @return {?}
3979
+ */
3980
+ SessionStorageService.prototype.setItem = /**
3981
+ * Set an item in the session storage.
3982
+ * @param {?} key
3983
+ * @param {?} value
3984
+ * @return {?}
3985
+ */
3986
+ function (key, value) {
3987
+ sessionStorage.setItem(key, value);
3988
+ };
3989
+ /**
3990
+ * Remove an item in the session storage.
3991
+ */
3992
+ /**
3993
+ * Remove an item in the session storage.
3994
+ * @param {?} key
3995
+ * @return {?}
3996
+ */
3997
+ SessionStorageService.prototype.removeItem = /**
3998
+ * Remove an item in the session storage.
3999
+ * @param {?} key
4000
+ * @return {?}
4001
+ */
4002
+ function (key) {
4003
+ sessionStorage.removeItem(key);
4004
+ };
4005
+ /**
4006
+ * Clear all the items held in session storage.
4007
+ */
4008
+ /**
4009
+ * Clear all the items held in session storage.
4010
+ * @return {?}
4011
+ */
4012
+ SessionStorageService.prototype.clear = /**
4013
+ * Clear all the items held in session storage.
4014
+ * @return {?}
4015
+ */
4016
+ function () {
4017
+ sessionStorage.clear();
4018
+ };
4019
+ SessionStorageService.decorators = [
4020
+ { type: i0.Injectable, args: [{
4021
+ providedIn: 'root'
4022
+ },] }
4023
+ ];
4024
+ /** @nocollapse */ SessionStorageService.ngInjectableDef = i0.defineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
4025
+ return SessionStorageService;
4026
+ }());
4027
+
3835
4028
  /**
3836
4029
  * @fileoverview added by tsickle
3837
4030
  * Generated from: lib/components/search-location/search-location.component.ts
3838
4031
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3839
4032
  */
3840
4033
  var SearchLocationComponent = /** @class */ (function () {
3841
- function SearchLocationComponent(locationService, fb, cd) {
4034
+ function SearchLocationComponent(locationService, sessionStorageService, fb, cd) {
3842
4035
  this.locationService = locationService;
4036
+ this.sessionStorageService = sessionStorageService;
3843
4037
  this.fb = fb;
3844
4038
  this.cd = cd;
3845
4039
  this.disabled = null;
@@ -3991,7 +4185,23 @@
3991
4185
  * @return {?}
3992
4186
  */
3993
4187
  function (term) {
3994
- return this.locationService.getAllLocations(this.serviceIds, this.locationType, term);
4188
+ /** @type {?} */
4189
+ var userLocations;
4190
+ /** @type {?} */
4191
+ var bookingLocations;
4192
+ // Booking type info - can create more
4193
+ // NO_CHECK - All work - Do not filter out locations - Default assumption
4194
+ // ONLY_BOOKINGS - My work - Try to only show base locations/booking locations
4195
+ // POSSIBLE_BOOKINGS - Create booking screen - Show only potential bookings
4196
+ if (this.bookingCheck === BookingCheckType.BOOKINGS_AND_BASE) {
4197
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4198
+ bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
4199
+ }
4200
+ else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
4201
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4202
+ this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4203
+ }
4204
+ return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
3995
4205
  };
3996
4206
  /**
3997
4207
  * @return {?}
@@ -4038,6 +4248,7 @@
4038
4248
  SearchLocationComponent.ctorParameters = function () {
4039
4249
  return [
4040
4250
  { type: LocationService },
4251
+ { type: SessionStorageService },
4041
4252
  { type: forms.FormBuilder },
4042
4253
  { type: i0.ChangeDetectorRef }
4043
4254
  ];
@@ -4053,6 +4264,7 @@
4053
4264
  form: [{ type: i0.Input }],
4054
4265
  showAutocomplete: [{ type: i0.Input }],
4055
4266
  locations: [{ type: i0.Input }],
4267
+ bookingCheck: [{ type: i0.Input }],
4056
4268
  locationSelected: [{ type: i0.Output }],
4057
4269
  locationInputChanged: [{ type: i0.Output }],
4058
4270
  searchLocationChanged: [{ type: i0.Output }],
@@ -4132,6 +4344,19 @@
4132
4344
  enumerable: true,
4133
4345
  configurable: true
4134
4346
  });
4347
+ /**
4348
+ * @return {?}
4349
+ */
4350
+ FindLocationComponent.prototype.ngOnInit = /**
4351
+ * @return {?}
4352
+ */
4353
+ function () {
4354
+ // implemented to get rid of undefined values
4355
+ this.selectedLocations = this.selectedLocations.filter(( /**
4356
+ * @param {?} location
4357
+ * @return {?}
4358
+ */function (location) { return location.epimms_id; }));
4359
+ };
4135
4360
  /**
4136
4361
  * @return {?}
4137
4362
  */
@@ -4273,7 +4498,7 @@
4273
4498
  FindLocationComponent.decorators = [
4274
4499
  { type: i0.Component, args: [{
4275
4500
  selector: 'xuilib-find-location',
4276
- template: "<div class=\"location-picker-custom\">\n <div class=\"search-location\">\n <div>\n <label id=\"input-selected-location-label\" *ngIf=\"locationTitle\">{{locationTitle}}</label>\n </div>\n <exui-search-location class=\"search-location\"\n [locations]=\"locations\"\n [selectedLocations]=\"selectedLocations\"\n [singleMode]=\"field.maxSelected === 1\"\n [delay]=\"300\"\n [disabled]=\"disabled\"\n [serviceIds]=\"serviceIds\"\n (locationInputChanged)=\"onInputChanged($event)\"\n (locationSelected)=\"onLocationSelected($event)\"\n (searchLocationChanged)=\"onSearchInputChanged()\"\n [locationType]=\"'case-management'\"></exui-search-location>\n <a href=\"javascript:void(0)\" (click)=\"addLocation()\" class=\"govuk-button\" data-module=\"govuk-button\" *ngIf=\"enableAddLocationButton\">\n Add location\n </a>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedLocations\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeLocation(selection)\" href=\"javascript:void(0)\">\n {{ selection.site_name }}\n </a>\n </li>\n </ul>\n</div>\n",
4501
+ template: "<div class=\"location-picker-custom\">\n <div class=\"search-location\">\n <div>\n <label id=\"input-selected-location-label\" *ngIf=\"locationTitle\">{{locationTitle}}</label>\n </div>\n <exui-search-location class=\"search-location\"\n [locations]=\"locations\"\n [selectedLocations]=\"selectedLocations\"\n [singleMode]=\"field.maxSelected === 1\"\n [bookingCheck]=\"field.bookingCheckType\"\n [delay]=\"300\"\n [disabled]=\"disabled\"\n [serviceIds]=\"serviceIds\"\n (locationInputChanged)=\"onInputChanged($event)\"\n (locationSelected)=\"onLocationSelected($event)\"\n (searchLocationChanged)=\"onSearchInputChanged()\"\n [locationType]=\"'case-management'\"></exui-search-location>\n <a href=\"javascript:void(0)\" (click)=\"addLocation()\" class=\"govuk-button\" data-module=\"govuk-button\" *ngIf=\"enableAddLocationButton\">\n Add location\n </a>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedLocations\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeLocation(selection)\" href=\"javascript:void(0)\">\n {{ selection.site_name }}\n </a>\n </li>\n </ul>\n</div>\n",
4277
4502
  styles: [""]
4278
4503
  }] }
4279
4504
  ];
@@ -4527,65 +4752,6 @@
4527
4752
  return ExuiPageWrapperComponent;
4528
4753
  }());
4529
4754
 
4530
- /**
4531
- * @fileoverview added by tsickle
4532
- * Generated from: lib/models/contact-details.model.ts
4533
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4534
- */
4535
- /** @enum {string} */
4536
- var BadgeColour = {
4537
- BADGE_RED: "hmcts-badge--red",
4538
- BADGE_BLUE: "hmcts-badge--blue",
4539
- BADGE_GREEN: "hmcts-badge--green",
4540
- };
4541
-
4542
- /**
4543
- * @fileoverview added by tsickle
4544
- * Generated from: lib/models/feature-user.ts
4545
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4546
- */
4547
- var AnonymousFeatureUser = /** @class */ (function () {
4548
- function AnonymousFeatureUser() {
4549
- }
4550
- return AnonymousFeatureUser;
4551
- }());
4552
- var LoggedInFeatureUser = /** @class */ (function () {
4553
- function LoggedInFeatureUser() {
4554
- }
4555
- return LoggedInFeatureUser;
4556
- }());
4557
-
4558
- /**
4559
- * @fileoverview added by tsickle
4560
- * Generated from: lib/models/person.model.ts
4561
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4562
- */
4563
- /** @enum {string} */
4564
- var PersonRole = {
4565
- JUDICIAL: "Judicial",
4566
- CASEWORKER: "Legal Ops",
4567
- ADMIN: "Admin",
4568
- ALL: "All",
4569
- };
4570
- /** @enum {string} */
4571
- var RoleCategory = {
4572
- JUDICIAL: "JUDICIAL",
4573
- CASEWORKER: "LEGAL_OPERATIONS",
4574
- ADMIN: "ADMIN",
4575
- ALL: "ALL",
4576
- };
4577
-
4578
- /**
4579
- * @fileoverview added by tsickle
4580
- * Generated from: lib/models/filter.model.ts
4581
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4582
- */
4583
- var RadioFilterFieldConfig = /** @class */ (function () {
4584
- function RadioFilterFieldConfig() {
4585
- }
4586
- return RadioFilterFieldConfig;
4587
- }());
4588
-
4589
4755
  /**
4590
4756
  * @fileoverview added by tsickle
4591
4757
  * Generated from: lib/gov-ui/util/session-storage/session-storage-utils.ts
@@ -4625,101 +4791,6 @@
4625
4791
  sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
4626
4792
  });
4627
4793
 
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
-
4723
4794
  /**
4724
4795
  * @fileoverview added by tsickle
4725
4796
  * Generated from: lib/services/find-person/find-person.service.ts
@@ -7779,6 +7850,7 @@
7779
7850
  exports.SECONDS_IN_A_DAY = SECONDS_IN_A_DAY;
7780
7851
  exports.AnonymousFeatureUser = AnonymousFeatureUser;
7781
7852
  exports.LoggedInFeatureUser = LoggedInFeatureUser;
7853
+ exports.BookingCheckType = BookingCheckType;
7782
7854
  exports.PersonRole = PersonRole;
7783
7855
  exports.RoleCategory = RoleCategory;
7784
7856
  exports.RadioFilterFieldConfig = RadioFilterFieldConfig;