@hmcts/rpx-xui-common-lib 1.7.11 → 1.7.12-task-name-filter
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +374 -27
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +27 -25
- package/esm2015/lib/components/accessibility/accessibility.component.js +2 -2
- package/esm2015/lib/components/find-task-name/find-task-name.component.js +258 -0
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +22 -2
- package/esm2015/lib/exui-common-lib.module.js +3 -1
- package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +5 -2
- package/esm2015/lib/models/filter.model.js +5 -1
- package/esm2015/lib/models/task-name.model.js +16 -0
- package/esm2015/lib/services/task-name/task-name.service.js +65 -0
- package/esm5/hmcts-rpx-xui-common-lib.js +27 -25
- package/esm5/lib/components/accessibility/accessibility.component.js +2 -2
- package/esm5/lib/components/find-task-name/find-task-name.component.js +347 -0
- package/esm5/lib/components/generic-filter/generic-filter.component.js +27 -2
- package/esm5/lib/exui-common-lib.module.js +3 -1
- package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +5 -2
- package/esm5/lib/models/filter.model.js +5 -1
- package/esm5/lib/models/task-name.model.js +16 -0
- package/esm5/lib/services/task-name/task-name.service.js +70 -0
- package/fesm2015/hmcts-rpx-xui-common-lib.js +257 -4
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +355 -5
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +26 -24
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/find-task-name/find-task-name.component.d.ts +41 -0
- package/lib/components/generic-filter/generic-filter.component.d.ts +1 -0
- package/lib/exui-common-lib.module.d.ts +2 -1
- package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +1 -0
- package/lib/models/filter.model.d.ts +3 -1
- package/lib/models/task-name.model.d.ts +4 -0
- package/lib/services/task-name/task-name.service.d.ts +13 -0
- 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>",
|
|
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
|
];
|
|
@@ -1186,6 +1186,31 @@
|
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
};
|
|
1189
|
+
/**
|
|
1190
|
+
* @param {?} values
|
|
1191
|
+
* @param {?} field
|
|
1192
|
+
* @return {?}
|
|
1193
|
+
*/
|
|
1194
|
+
GenericFilterComponent.prototype.updateTaskNameControls = /**
|
|
1195
|
+
* @param {?} values
|
|
1196
|
+
* @param {?} field
|
|
1197
|
+
* @return {?}
|
|
1198
|
+
*/
|
|
1199
|
+
function (values, field) {
|
|
1200
|
+
// let keys;
|
|
1201
|
+
// if (!values) {
|
|
1202
|
+
// keys = Object.keys(this.form.get(field.name).value);
|
|
1203
|
+
// } else {
|
|
1204
|
+
// keys = Object.keys(values);
|
|
1205
|
+
// }
|
|
1206
|
+
// for (const key of keys) {
|
|
1207
|
+
// if (this.form.get(field.name) && this.form.get(field.name).get(key)) {
|
|
1208
|
+
// const value = values && values[key] ? values[key] : null;
|
|
1209
|
+
// this.form.get(field.name).get(key).patchValue(value);
|
|
1210
|
+
// }
|
|
1211
|
+
// }
|
|
1212
|
+
this.form.get(field.name).patchValue(values);
|
|
1213
|
+
};
|
|
1189
1214
|
/**
|
|
1190
1215
|
* @param {?} event
|
|
1191
1216
|
* @param {?} form
|
|
@@ -1645,7 +1670,7 @@
|
|
|
1645
1670
|
GenericFilterComponent.decorators = [
|
|
1646
1671
|
{ type: i0.Component, args: [{
|
|
1647
1672
|
selector: 'xuilib-generic-filter',
|
|
1648
|
-
template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n <div class=\"contain-classes\" *ngFor=\"let field of config.fields\">\n <hr *ngIf=\"field.lineBreakBefore\" class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.minLength || form.get(field.name).errors?.maxLength)}\">\n <h3 *ngIf=\"field.title\" class=\"govuk-heading-s\">{{field.title}}</h3>\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMinSelectedError && submitted && form.get(field.name).errors?.minLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.minSelectedError}}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.maxSelectedError}}\n </span>\n <div class=\"govuk-body\" [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option class=\"govuk-radios__item\" *ngFor=\"let item of field.options\" [value]=\"item.key\">{{item.label}}</option>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox-large'\">\n <div class=\"govuk-checkboxes\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'radio'\">\n <div class=\"govuk-radios\">\n <div *ngFor=\"let item of field.options\" class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-person'\">\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n ></xuilib-find-person>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-location'\">\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle\"\n [enableAddLocationButton]=\"field.enableAddLocationButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [selectedLocations]=\"form.get(field.name)?.value\"\n [submitted]=\"submitted\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [field]=\"field\"\n ></xuilib-find-location>\n </ng-container>\n </div>\n </div>\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{config.applyButtonText || 'Apply'}}</button>\n <button *ngIf=\"config.showCancelFilterButton\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ config.cancelButtonText || 'Cancel'}}</button>\n </div>\n </div>\n</form>\n",
|
|
1673
|
+
template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n <div class=\"contain-classes\" *ngFor=\"let field of config.fields\">\n <hr *ngIf=\"field.lineBreakBefore\" class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.minLength || form.get(field.name).errors?.maxLength)}\">\n <h3 *ngIf=\"field.title\" class=\"govuk-heading-s\">{{field.title}}</h3>\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMinSelectedError && submitted && form.get(field.name).errors?.minLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.minSelectedError}}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.maxSelectedError}}\n </span>\n <div class=\"govuk-body\" [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option class=\"govuk-radios__item\" *ngFor=\"let item of field.options\" [value]=\"item.key\">{{item.label}}</option>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox-large'\">\n <div class=\"govuk-checkboxes\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'radio'\">\n <div class=\"govuk-radios\">\n <div *ngFor=\"let item of field.options\" class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-person'\">\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n ></xuilib-find-person>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-location'\">\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle\"\n [enableAddLocationButton]=\"field.enableAddLocationButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [selectedLocations]=\"form.get(field.name)?.value\"\n [submitted]=\"submitted\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [field]=\"field\"\n ></xuilib-find-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-task-name'\">\n <xuilib-find-task-name subTitle=\"\" (taskNameSelected)=\"updateTaskNameControls($event, field)\"\n (taskNameFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findTaskNameGroup]=\"form\"\n [selectedTaskName]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n ></xuilib-find-task-name>\n </ng-container>\n </div>\n </div>\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{config.applyButtonText || 'Apply'}}</button>\n <button *ngIf=\"config.showCancelFilterButton\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ config.cancelButtonText || 'Cancel'}}</button>\n </div>\n </div>\n</form>\n",
|
|
1649
1674
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1650
1675
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1651
1676
|
styles: [".contain-classes .elevated-break{position:relative;top:-10px}.contain-classes .xui-generic-filter .select-all{margin-bottom:10px}.contain-classes .xui-generic-filter .govuk-checkboxes{display:flex;flex-wrap:wrap}.contain-classes .xui-generic-filter .govuk-checkboxes>div{flex-grow:1;flex-shrink:0}"]
|
|
@@ -5131,6 +5156,324 @@
|
|
|
5131
5156
|
return FindPersonComponent;
|
|
5132
5157
|
}());
|
|
5133
5158
|
|
|
5159
|
+
/**
|
|
5160
|
+
* @fileoverview added by tsickle
|
|
5161
|
+
* Generated from: lib/services/task-name/task-name.service.ts
|
|
5162
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5163
|
+
*/
|
|
5164
|
+
var TaskNameService = /** @class */ (function () {
|
|
5165
|
+
function TaskNameService(http, sessionStorageService) {
|
|
5166
|
+
this.http = http;
|
|
5167
|
+
this.sessionStorageService = sessionStorageService;
|
|
5168
|
+
}
|
|
5169
|
+
/**
|
|
5170
|
+
* @return Observable<any[]>: Array of taskName in Observable
|
|
5171
|
+
*/
|
|
5172
|
+
/**
|
|
5173
|
+
* @return {?} Observable<any[]>: Array of taskName in Observable
|
|
5174
|
+
*/
|
|
5175
|
+
TaskNameService.prototype.getTaskName = /**
|
|
5176
|
+
* @return {?} Observable<any[]>: Array of taskName in Observable
|
|
5177
|
+
*/
|
|
5178
|
+
function () {
|
|
5179
|
+
var _this = this;
|
|
5180
|
+
if (this.sessionStorageService.getItem(TaskNameService.taskNamesKey)) {
|
|
5181
|
+
/** @type {?} */
|
|
5182
|
+
var taskNames = JSON.parse(this.sessionStorageService.getItem(TaskNameService.taskNamesKey));
|
|
5183
|
+
return rxjs.of(( /** @type {?} */(taskNames)));
|
|
5184
|
+
}
|
|
5185
|
+
return this.http.get("/workallocation2/taskNames").pipe(operators.tap(( /**
|
|
5186
|
+
* @param {?} taskNames
|
|
5187
|
+
* @return {?}
|
|
5188
|
+
*/function (taskNames) { return _this.sessionStorageService.setItem(TaskNameService.taskNamesKey, JSON.stringify(taskNames)); })));
|
|
5189
|
+
};
|
|
5190
|
+
TaskNameService.taskNamesKey = 'taskNames';
|
|
5191
|
+
TaskNameService.decorators = [
|
|
5192
|
+
{ type: i0.Injectable, args: [{
|
|
5193
|
+
providedIn: 'root'
|
|
5194
|
+
},] }
|
|
5195
|
+
];
|
|
5196
|
+
/** @nocollapse */
|
|
5197
|
+
TaskNameService.ctorParameters = function () {
|
|
5198
|
+
return [
|
|
5199
|
+
{ type: i1.HttpClient },
|
|
5200
|
+
{ type: SessionStorageService }
|
|
5201
|
+
];
|
|
5202
|
+
};
|
|
5203
|
+
/** @nocollapse */ TaskNameService.ngInjectableDef = i0.defineInjectable({ factory: function TaskNameService_Factory() { return new TaskNameService(i0.inject(i1.HttpClient), i0.inject(SessionStorageService)); }, token: TaskNameService, providedIn: "root" });
|
|
5204
|
+
return TaskNameService;
|
|
5205
|
+
}());
|
|
5206
|
+
|
|
5207
|
+
/**
|
|
5208
|
+
* @fileoverview added by tsickle
|
|
5209
|
+
* Generated from: lib/components/find-task-name/find-task-name.component.ts
|
|
5210
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5211
|
+
*/
|
|
5212
|
+
var FindTaskNameComponent = /** @class */ (function () {
|
|
5213
|
+
function FindTaskNameComponent(cd, taskService) {
|
|
5214
|
+
this.cd = cd;
|
|
5215
|
+
this.taskService = taskService;
|
|
5216
|
+
this.taskNameSelected = new i0.EventEmitter();
|
|
5217
|
+
this.taskNameFieldChanged = new i0.EventEmitter();
|
|
5218
|
+
this.boldTitle = 'Find the task name';
|
|
5219
|
+
this.subTitle = 'Type the name of the task name and select them.';
|
|
5220
|
+
this.domain = PersonRole.ALL;
|
|
5221
|
+
this.findTaskNameGroup = new forms.FormGroup({});
|
|
5222
|
+
this.submitted = true;
|
|
5223
|
+
this.userIncluded = false;
|
|
5224
|
+
this.placeholderContent = '';
|
|
5225
|
+
this.isNoResultsShown = true;
|
|
5226
|
+
this.showUpdatedColor = false;
|
|
5227
|
+
this.selectedTaskNames = [];
|
|
5228
|
+
this.errorMessage = 'You must select a name';
|
|
5229
|
+
this.idValue = '';
|
|
5230
|
+
this.services = ['IA'];
|
|
5231
|
+
this.disabled = null;
|
|
5232
|
+
this.showAutocomplete = false;
|
|
5233
|
+
this.filteredOptions = [];
|
|
5234
|
+
this.minSearchCharacters = 1;
|
|
5235
|
+
this.searchTerm = '';
|
|
5236
|
+
}
|
|
5237
|
+
/**
|
|
5238
|
+
* @return {?}
|
|
5239
|
+
*/
|
|
5240
|
+
FindTaskNameComponent.prototype.ngOnDestroy = /**
|
|
5241
|
+
* @return {?}
|
|
5242
|
+
*/
|
|
5243
|
+
function () {
|
|
5244
|
+
if (this.sub) {
|
|
5245
|
+
this.sub.unsubscribe();
|
|
5246
|
+
}
|
|
5247
|
+
};
|
|
5248
|
+
/**
|
|
5249
|
+
* @return {?}
|
|
5250
|
+
*/
|
|
5251
|
+
FindTaskNameComponent.prototype.ngOnInit = /**
|
|
5252
|
+
* @return {?}
|
|
5253
|
+
*/
|
|
5254
|
+
function () {
|
|
5255
|
+
var _this = this;
|
|
5256
|
+
this.findTaskNameControl = new forms.FormControl(this.selectedTaskName);
|
|
5257
|
+
this.findTaskNameGroup.addControl('findTaskNameControl', this.findTaskNameControl);
|
|
5258
|
+
this.sub = this.findTaskNameControl.valueChanges
|
|
5259
|
+
.pipe(operators.tap(( /**
|
|
5260
|
+
* @return {?}
|
|
5261
|
+
*/function () { return _this.showAutocomplete = false; })), operators.tap(( /**
|
|
5262
|
+
* @return {?}
|
|
5263
|
+
*/function () { return _this.filteredOptions = []; })), operators.tap(( /**
|
|
5264
|
+
* @param {?} term
|
|
5265
|
+
* @return {?}
|
|
5266
|
+
*/function (term) { return _this.searchTerm = term; })), operators.debounceTime(300), operators.tap(( /**
|
|
5267
|
+
* @param {?} searchTerm
|
|
5268
|
+
* @return {?}
|
|
5269
|
+
*/function (searchTerm) {
|
|
5270
|
+
if (!searchTerm) {
|
|
5271
|
+
_this.taskNameSelected.emit('');
|
|
5272
|
+
}
|
|
5273
|
+
return searchTerm;
|
|
5274
|
+
})),
|
|
5275
|
+
// tap((searchTerm) => typeof searchTerm === 'string' ? this.taskNameSelected.emit('null') : void 0),
|
|
5276
|
+
operators.filter(( /**
|
|
5277
|
+
* @param {?} searchTerm
|
|
5278
|
+
* @return {?}
|
|
5279
|
+
*/function (searchTerm) { return searchTerm && searchTerm.length >= _this.minSearchCharacters; })), operators.mergeMap(( /**
|
|
5280
|
+
* @return {?}
|
|
5281
|
+
*/function () { return _this.getTaskName(); }))).subscribe(( /**
|
|
5282
|
+
* @param {?} task
|
|
5283
|
+
* @return {?}
|
|
5284
|
+
*/function (task) {
|
|
5285
|
+
_this.filteredOptions = task;
|
|
5286
|
+
if (_this.searchTerm) {
|
|
5287
|
+
_this.filteredOptions = _this.filteredOptions.filter(( /**
|
|
5288
|
+
* @param {?} t
|
|
5289
|
+
* @return {?}
|
|
5290
|
+
*/function (t) { return t.taskName.toLocaleLowerCase().includes(_this.searchTerm.toLocaleLowerCase()); }));
|
|
5291
|
+
}
|
|
5292
|
+
_this.cd.detectChanges();
|
|
5293
|
+
}));
|
|
5294
|
+
};
|
|
5295
|
+
/**
|
|
5296
|
+
* @return {?}
|
|
5297
|
+
*/
|
|
5298
|
+
FindTaskNameComponent.prototype.getTaskName = /**
|
|
5299
|
+
* @return {?}
|
|
5300
|
+
*/
|
|
5301
|
+
function () {
|
|
5302
|
+
return this.taskService.getTaskName();
|
|
5303
|
+
};
|
|
5304
|
+
// public filter(searchTerm: string): Observable<Person[]> {
|
|
5305
|
+
// console.log("**filter**");
|
|
5306
|
+
// const findJudicialPeople = this.taskService.getTaskName();
|
|
5307
|
+
// // const findJudicialPeople = this.findPersonService.find({searchTerm, userRole: this.domain, services: this.services, userIncluded: this.userIncluded, assignedUser: this.assignedUser});
|
|
5308
|
+
// const findCaseworkersOrAdmins = this.findPersonService.findCaseworkers({searchTerm, userRole: this.domain, services: this.services, userIncluded: this.userIncluded, assignedUser: this.assignedUser});
|
|
5309
|
+
// if (searchTerm && searchTerm.length > this.minSearchCharacters) {
|
|
5310
|
+
// switch (this.domain) {
|
|
5311
|
+
// case PersonRole.JUDICIAL: {
|
|
5312
|
+
// return findJudicialPeople.pipe(map(persons => {
|
|
5313
|
+
// const ids: string[] = this.selectedTaskNames.map(({id}) => id);
|
|
5314
|
+
// return persons.filter(({ id }) => !ids.includes(id));
|
|
5315
|
+
// }));
|
|
5316
|
+
// }
|
|
5317
|
+
// case PersonRole.ALL: {
|
|
5318
|
+
// return zip(findJudicialPeople, findCaseworkersOrAdmins).pipe(map(separatePeople => separatePeople[0].concat(separatePeople[1])));
|
|
5319
|
+
// }
|
|
5320
|
+
// case PersonRole.CASEWORKER:
|
|
5321
|
+
// case PersonRole.ADMIN: {
|
|
5322
|
+
// return findCaseworkersOrAdmins;
|
|
5323
|
+
// }
|
|
5324
|
+
// default: {
|
|
5325
|
+
// return of([]);
|
|
5326
|
+
// }
|
|
5327
|
+
// }
|
|
5328
|
+
// }
|
|
5329
|
+
// return of([]);
|
|
5330
|
+
// }
|
|
5331
|
+
// public filter(searchTerm: string): Observable<Person[]> {
|
|
5332
|
+
// console.log("**filter**");
|
|
5333
|
+
// const findJudicialPeople = this.taskService.getTaskName();
|
|
5334
|
+
// // const findJudicialPeople = this.findPersonService.find({searchTerm, userRole: this.domain, services: this.services, userIncluded: this.userIncluded, assignedUser: this.assignedUser});
|
|
5335
|
+
// const findCaseworkersOrAdmins = this.findPersonService.findCaseworkers({searchTerm, userRole: this.domain, services: this.services, userIncluded: this.userIncluded, assignedUser: this.assignedUser});
|
|
5336
|
+
// if (searchTerm && searchTerm.length > this.minSearchCharacters) {
|
|
5337
|
+
// switch (this.domain) {
|
|
5338
|
+
// case PersonRole.JUDICIAL: {
|
|
5339
|
+
// return findJudicialPeople.pipe(map(persons => {
|
|
5340
|
+
// const ids: string[] = this.selectedTaskNames.map(({id}) => id);
|
|
5341
|
+
// return persons.filter(({ id }) => !ids.includes(id));
|
|
5342
|
+
// }));
|
|
5343
|
+
// }
|
|
5344
|
+
// case PersonRole.ALL: {
|
|
5345
|
+
// return zip(findJudicialPeople, findCaseworkersOrAdmins).pipe(map(separatePeople => separatePeople[0].concat(separatePeople[1])));
|
|
5346
|
+
// }
|
|
5347
|
+
// case PersonRole.CASEWORKER:
|
|
5348
|
+
// case PersonRole.ADMIN: {
|
|
5349
|
+
// return findCaseworkersOrAdmins;
|
|
5350
|
+
// }
|
|
5351
|
+
// default: {
|
|
5352
|
+
// return of([]);
|
|
5353
|
+
// }
|
|
5354
|
+
// }
|
|
5355
|
+
// }
|
|
5356
|
+
// return of([]);
|
|
5357
|
+
// }
|
|
5358
|
+
/**
|
|
5359
|
+
* @param {?} selectedTaskName
|
|
5360
|
+
* @return {?}
|
|
5361
|
+
*/
|
|
5362
|
+
FindTaskNameComponent.prototype.onSelectionChange =
|
|
5363
|
+
// public filter(searchTerm: string): Observable<Person[]> {
|
|
5364
|
+
// console.log("**filter**");
|
|
5365
|
+
// const findJudicialPeople = this.taskService.getTaskName();
|
|
5366
|
+
// // const findJudicialPeople = this.findPersonService.find({searchTerm, userRole: this.domain, services: this.services, userIncluded: this.userIncluded, assignedUser: this.assignedUser});
|
|
5367
|
+
// const findCaseworkersOrAdmins = this.findPersonService.findCaseworkers({searchTerm, userRole: this.domain, services: this.services, userIncluded: this.userIncluded, assignedUser: this.assignedUser});
|
|
5368
|
+
// if (searchTerm && searchTerm.length > this.minSearchCharacters) {
|
|
5369
|
+
// switch (this.domain) {
|
|
5370
|
+
// case PersonRole.JUDICIAL: {
|
|
5371
|
+
// return findJudicialPeople.pipe(map(persons => {
|
|
5372
|
+
// const ids: string[] = this.selectedTaskNames.map(({id}) => id);
|
|
5373
|
+
// return persons.filter(({ id }) => !ids.includes(id));
|
|
5374
|
+
// }));
|
|
5375
|
+
// }
|
|
5376
|
+
// case PersonRole.ALL: {
|
|
5377
|
+
// return zip(findJudicialPeople, findCaseworkersOrAdmins).pipe(map(separatePeople => separatePeople[0].concat(separatePeople[1])));
|
|
5378
|
+
// }
|
|
5379
|
+
// case PersonRole.CASEWORKER:
|
|
5380
|
+
// case PersonRole.ADMIN: {
|
|
5381
|
+
// return findCaseworkersOrAdmins;
|
|
5382
|
+
// }
|
|
5383
|
+
// default: {
|
|
5384
|
+
// return of([]);
|
|
5385
|
+
// }
|
|
5386
|
+
// }
|
|
5387
|
+
// }
|
|
5388
|
+
// return of([]);
|
|
5389
|
+
// }
|
|
5390
|
+
/**
|
|
5391
|
+
* @param {?} selectedTaskName
|
|
5392
|
+
* @return {?}
|
|
5393
|
+
*/
|
|
5394
|
+
function (selectedTaskName) {
|
|
5395
|
+
if (selectedTaskName && selectedTaskName.taskName) {
|
|
5396
|
+
/** @type {?} */
|
|
5397
|
+
var taskName = selectedTaskName.taskName;
|
|
5398
|
+
this.taskNameSelected.emit(taskName);
|
|
5399
|
+
this.findTaskNameControl.setValue(taskName);
|
|
5400
|
+
}
|
|
5401
|
+
};
|
|
5402
|
+
// public getDisplayName(selectedPerson: Person): string {
|
|
5403
|
+
// if (!selectedPerson) {
|
|
5404
|
+
// return '';
|
|
5405
|
+
// }
|
|
5406
|
+
// if (selectedPerson.domain === PersonRole.JUDICIAL && selectedPerson.knownAs) {
|
|
5407
|
+
// return `${selectedPerson.knownAs} (${selectedPerson.email})`;
|
|
5408
|
+
// }
|
|
5409
|
+
// return selectedPerson.email ? `${selectedPerson.name} (${selectedPerson.email})` : selectedPerson.name;
|
|
5410
|
+
// }
|
|
5411
|
+
// public getDisplayName(selectedPerson: Person): string {
|
|
5412
|
+
// if (!selectedPerson) {
|
|
5413
|
+
// return '';
|
|
5414
|
+
// }
|
|
5415
|
+
// if (selectedPerson.domain === PersonRole.JUDICIAL && selectedPerson.knownAs) {
|
|
5416
|
+
// return `${selectedPerson.knownAs} (${selectedPerson.email})`;
|
|
5417
|
+
// }
|
|
5418
|
+
// return selectedPerson.email ? `${selectedPerson.name} (${selectedPerson.email})` : selectedPerson.name;
|
|
5419
|
+
// }
|
|
5420
|
+
/**
|
|
5421
|
+
* @return {?}
|
|
5422
|
+
*/
|
|
5423
|
+
FindTaskNameComponent.prototype.onInput =
|
|
5424
|
+
// public getDisplayName(selectedPerson: Person): string {
|
|
5425
|
+
// if (!selectedPerson) {
|
|
5426
|
+
// return '';
|
|
5427
|
+
// }
|
|
5428
|
+
// if (selectedPerson.domain === PersonRole.JUDICIAL && selectedPerson.knownAs) {
|
|
5429
|
+
// return `${selectedPerson.knownAs} (${selectedPerson.email})`;
|
|
5430
|
+
// }
|
|
5431
|
+
// return selectedPerson.email ? `${selectedPerson.name} (${selectedPerson.email})` : selectedPerson.name;
|
|
5432
|
+
// }
|
|
5433
|
+
/**
|
|
5434
|
+
* @return {?}
|
|
5435
|
+
*/
|
|
5436
|
+
function () {
|
|
5437
|
+
this.taskNameFieldChanged.emit();
|
|
5438
|
+
};
|
|
5439
|
+
FindTaskNameComponent.decorators = [
|
|
5440
|
+
{ type: i0.Component, args: [{
|
|
5441
|
+
selector: 'xuilib-find-task-name',
|
|
5442
|
+
template: "<h1 class=\"govuk-heading-l\" *ngIf=\"title && title.length\">\n <span class=\"govuk-caption-l\">{{title}}</span>\n {{boldTitle}}\n</h1>\n<div class=\"govuk-form-group\" [formGroup]=\"findTaskNameGroup\"\n [ngClass]=\"{'form-group-error': findTaskNameGroup.get('findTaskNameControl').invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sub-title-hint\">\n <div id=\"sub-title-hint\" class=\"govuk-hint\" *ngIf=\"subTitle && subTitle.length\">\n {{subTitle}}\n </div>\n <span id=\"validation-error\" class=\"govuk-error-message\" *ngIf=\"findTaskNameGroup && findTaskNameGroup.errors\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{findTaskNameGroup.errors.error ? findTaskNameGroup.errors.error : errorMessage}}\n </span>\n <input id=\"inputSelectTaskName{{idValue}}\" type=\"text\" aria-label=\"select a task name\"\n formControlName=\"findTaskNameControl\"\n [matAutocomplete]=\"auto\"\n class=\"govuk-input govuk-!-width-one-third\"\n [placeholder]=\"placeholderContent\"\n [attr.disabled]=\"disabled\"\n (input)=\"onInput()\">\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\" (optionSelected)=\"onSelectionChange($event.option.value)\">\n <mat-option *ngFor=\"let option of filteredOptions\"\n [value]=\"option\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete, 'select-option': showUpdatedColor}\">\n {{ option.taskName }}\n </mat-option>\n <mat-option [ngClass]=\"{'select-option': showUpdatedColor}\" *ngIf=\"isNoResultsShown && !filteredOptions.length && showAutocomplete\">No results found</mat-option>\n </mat-autocomplete>\n </fieldset>\n</div>\n",
|
|
5443
|
+
styles: [""]
|
|
5444
|
+
}] }
|
|
5445
|
+
];
|
|
5446
|
+
/** @nocollapse */
|
|
5447
|
+
FindTaskNameComponent.ctorParameters = function () {
|
|
5448
|
+
return [
|
|
5449
|
+
{ type: i0.ChangeDetectorRef },
|
|
5450
|
+
{ type: TaskNameService }
|
|
5451
|
+
];
|
|
5452
|
+
};
|
|
5453
|
+
FindTaskNameComponent.propDecorators = {
|
|
5454
|
+
taskNameSelected: [{ type: i0.Output }],
|
|
5455
|
+
taskNameFieldChanged: [{ type: i0.Output }],
|
|
5456
|
+
title: [{ type: i0.Input }],
|
|
5457
|
+
boldTitle: [{ type: i0.Input }],
|
|
5458
|
+
subTitle: [{ type: i0.Input }],
|
|
5459
|
+
domain: [{ type: i0.Input }],
|
|
5460
|
+
findTaskNameGroup: [{ type: i0.Input }],
|
|
5461
|
+
selectedTaskName: [{ type: i0.Input }],
|
|
5462
|
+
submitted: [{ type: i0.Input }],
|
|
5463
|
+
userIncluded: [{ type: i0.Input }],
|
|
5464
|
+
assignedUser: [{ type: i0.Input }],
|
|
5465
|
+
placeholderContent: [{ type: i0.Input }],
|
|
5466
|
+
isNoResultsShown: [{ type: i0.Input }],
|
|
5467
|
+
showUpdatedColor: [{ type: i0.Input }],
|
|
5468
|
+
selectedTaskNames: [{ type: i0.Input }],
|
|
5469
|
+
errorMessage: [{ type: i0.Input }],
|
|
5470
|
+
idValue: [{ type: i0.Input }],
|
|
5471
|
+
services: [{ type: i0.Input }],
|
|
5472
|
+
disabled: [{ type: i0.Input }]
|
|
5473
|
+
};
|
|
5474
|
+
return FindTaskNameComponent;
|
|
5475
|
+
}());
|
|
5476
|
+
|
|
5134
5477
|
/**
|
|
5135
5478
|
* @fileoverview added by tsickle
|
|
5136
5479
|
* Generated from: lib/components/search-judicials/search-judicials.component.ts
|
|
@@ -6587,7 +6930,8 @@
|
|
|
6587
6930
|
HmctsSubNavigationComponent.decorators = [
|
|
6588
6931
|
{ type: i0.Component, args: [{
|
|
6589
6932
|
selector: 'xuilib-hmcts-sub-navigation',
|
|
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 </a>\n </li>\n </ul>\n</nav>\n"
|
|
6933
|
+
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",
|
|
6934
|
+
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}"]
|
|
6591
6935
|
}] }
|
|
6592
6936
|
];
|
|
6593
6937
|
HmctsSubNavigationComponent.propDecorators = {
|
|
@@ -6680,6 +7024,7 @@
|
|
|
6680
7024
|
FindPersonComponent,
|
|
6681
7025
|
SearchJudicialsComponent,
|
|
6682
7026
|
FindLocationComponent,
|
|
7027
|
+
FindTaskNameComponent,
|
|
6683
7028
|
SearchLocationComponent,
|
|
6684
7029
|
SearchVenueComponent,
|
|
6685
7030
|
PaginationComponent
|
|
@@ -7805,15 +8150,16 @@
|
|
|
7805
8150
|
exports.ɵa = ExuiPageWrapperComponent;
|
|
7806
8151
|
exports.ɵbl = FindLocationComponent;
|
|
7807
8152
|
exports.ɵbh = FindPersonComponent;
|
|
8153
|
+
exports.ɵbo = FindTaskNameComponent;
|
|
7808
8154
|
exports.ɵbd = GenericFilterComponent;
|
|
7809
8155
|
exports.ɵk = HmctsSessionDialogComponent;
|
|
7810
8156
|
exports.ɵo = InviteUserFormComponent;
|
|
7811
8157
|
exports.ɵn = InviteUserPermissionComponent;
|
|
7812
8158
|
exports.ɵbc = LoadingSpinnerComponent;
|
|
7813
|
-
exports.ɵ
|
|
8159
|
+
exports.ɵbr = PaginationComponent;
|
|
7814
8160
|
exports.ɵbk = SearchJudicialsComponent;
|
|
7815
8161
|
exports.ɵbm = SearchLocationComponent;
|
|
7816
|
-
exports.ɵ
|
|
8162
|
+
exports.ɵbq = SearchVenueComponent;
|
|
7817
8163
|
exports.ɵv = SelectedCaseConfirmComponent;
|
|
7818
8164
|
exports.ɵt = SelectedCaseListComponent;
|
|
7819
8165
|
exports.ɵu = SelectedCaseComponent;
|
|
@@ -7832,28 +8178,28 @@
|
|
|
7832
8178
|
exports.ɵg = FeatureToggleDirective;
|
|
7833
8179
|
exports.ɵi = LetContext;
|
|
7834
8180
|
exports.ɵj = LetDirective;
|
|
7835
|
-
exports.ɵ
|
|
7836
|
-
exports.ɵ
|
|
7837
|
-
exports.ɵ
|
|
7838
|
-
exports.ɵ
|
|
7839
|
-
exports.ɵ
|
|
7840
|
-
exports.ɵ
|
|
7841
|
-
exports.ɵ
|
|
7842
|
-
exports.ɵ
|
|
7843
|
-
exports.ɵ
|
|
7844
|
-
exports.ɵ
|
|
7845
|
-
exports.ɵ
|
|
7846
|
-
exports.ɵ
|
|
7847
|
-
exports.ɵ
|
|
7848
|
-
exports.ɵ
|
|
7849
|
-
exports.ɵ
|
|
7850
|
-
exports.ɵ
|
|
7851
|
-
exports.ɵ
|
|
7852
|
-
exports.ɵ
|
|
7853
|
-
exports.ɵ
|
|
7854
|
-
exports.ɵ
|
|
7855
|
-
exports.ɵ
|
|
7856
|
-
exports.ɵ
|
|
8181
|
+
exports.ɵcb = GovUkCheckboxComponent;
|
|
8182
|
+
exports.ɵch = GovUkCheckboxesComponent;
|
|
8183
|
+
exports.ɵcg = GovUkDateComponent;
|
|
8184
|
+
exports.ɵce = GovUkErrorMessageComponent;
|
|
8185
|
+
exports.ɵcf = GovUkFieldsetComponent;
|
|
8186
|
+
exports.ɵcm = GovUkFileUploadComponent;
|
|
8187
|
+
exports.ɵcc = GovUkFormGroupWrapperComponent;
|
|
8188
|
+
exports.ɵca = GovUkInputComponent;
|
|
8189
|
+
exports.ɵcd = GovUkLabelComponent;
|
|
8190
|
+
exports.ɵci = GovUkRadioComponent;
|
|
8191
|
+
exports.ɵcj = GovUkRadiosComponent;
|
|
8192
|
+
exports.ɵck = GovUkSelectComponent;
|
|
8193
|
+
exports.ɵbz = GovukTableComponent;
|
|
8194
|
+
exports.ɵcl = GovUkTextareaComponent;
|
|
8195
|
+
exports.ɵby = HmctsBannerComponent;
|
|
8196
|
+
exports.ɵbw = HmctsErrorSummaryComponent;
|
|
8197
|
+
exports.ɵbs = HmctsIdentityBarComponent;
|
|
8198
|
+
exports.ɵbx = HmctsMainWrapperComponent;
|
|
8199
|
+
exports.ɵbt = HmctsPaginationComponent;
|
|
8200
|
+
exports.ɵbv = HmctsPrimaryNavigationComponent;
|
|
8201
|
+
exports.ɵbu = HmctsSubNavigationComponent;
|
|
8202
|
+
exports.ɵcn = RemoveHostDirective;
|
|
7857
8203
|
exports.ɵr = CaseSharingStateService;
|
|
7858
8204
|
exports.ɵbg = CookieService;
|
|
7859
8205
|
exports.ɵh = FeatureToggleService;
|
|
@@ -7861,6 +8207,7 @@
|
|
|
7861
8207
|
exports.ɵbi = FindAPersonService;
|
|
7862
8208
|
exports.ɵbn = LocationService;
|
|
7863
8209
|
exports.ɵbj = SessionStorageService;
|
|
8210
|
+
exports.ɵbp = TaskNameService;
|
|
7864
8211
|
|
|
7865
8212
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7866
8213
|
|