@hmcts/rpx-xui-common-lib 1.7.48-filter-skill-by-service → 1.7.48-task-name-filter-v2
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 +269 -150
- 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 +30 -28
- package/esm2015/lib/components/find-task-name/find-task-name.component.js +231 -0
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +23 -130
- package/esm2015/lib/exui-common-lib.module.js +3 -1
- package/esm2015/lib/models/filter.model.js +7 -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 +30 -28
- package/esm5/lib/components/find-task-name/find-task-name.component.js +246 -0
- package/esm5/lib/components/generic-filter/generic-filter.component.js +25 -138
- package/esm5/lib/exui-common-lib.module.js +3 -1
- package/esm5/lib/models/filter.model.js +7 -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 +228 -126
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +249 -135
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +29 -27
- 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 +3 -6
- package/lib/exui-common-lib.module.d.ts +2 -1
- package/lib/models/filter.model.d.ts +4 -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
|
@@ -881,7 +881,6 @@
|
|
|
881
881
|
this.filterService = filterService;
|
|
882
882
|
this.fb = fb;
|
|
883
883
|
this.submitted = false;
|
|
884
|
-
this.previousSelectedNestedCheckbox = [];
|
|
885
884
|
}
|
|
886
885
|
Object.defineProperty(GenericFilterComponent.prototype, "config", {
|
|
887
886
|
get: /**
|
|
@@ -961,14 +960,6 @@
|
|
|
961
960
|
* @return {?}
|
|
962
961
|
*/function () { return _this.submitted = false; }));
|
|
963
962
|
this.filterSkillsByServices(null, this.config);
|
|
964
|
-
/** @type {?} */
|
|
965
|
-
var services = this.config.fields.find(( /**
|
|
966
|
-
* @param {?} field
|
|
967
|
-
* @return {?}
|
|
968
|
-
*/function (field) { return field.name === 'user-services'; }));
|
|
969
|
-
if (services) {
|
|
970
|
-
this.startFilterSkillsByServices(this.form, services);
|
|
971
|
-
}
|
|
972
963
|
};
|
|
973
964
|
/**
|
|
974
965
|
* @return {?}
|
|
@@ -1223,17 +1214,29 @@
|
|
|
1223
1214
|
}
|
|
1224
1215
|
};
|
|
1225
1216
|
/**
|
|
1217
|
+
* @param {?} values
|
|
1226
1218
|
* @param {?} field
|
|
1227
|
-
* @param {?} i
|
|
1228
1219
|
* @return {?}
|
|
1229
1220
|
*/
|
|
1230
|
-
GenericFilterComponent.prototype.
|
|
1221
|
+
GenericFilterComponent.prototype.updateTaskNameControls = /**
|
|
1222
|
+
* @param {?} values
|
|
1231
1223
|
* @param {?} field
|
|
1232
|
-
* @param {?} i
|
|
1233
1224
|
* @return {?}
|
|
1234
1225
|
*/
|
|
1235
|
-
function (
|
|
1236
|
-
|
|
1226
|
+
function (values, field) {
|
|
1227
|
+
// let keys;
|
|
1228
|
+
// if (!values) {
|
|
1229
|
+
// keys = Object.keys(this.form.get(field.name).value);
|
|
1230
|
+
// } else {
|
|
1231
|
+
// keys = Object.keys(values);
|
|
1232
|
+
// }
|
|
1233
|
+
// for (const key of keys) {
|
|
1234
|
+
// if (this.form.get(field.name) && this.form.get(field.name).get(key)) {
|
|
1235
|
+
// const value = values && values[key] ? values[key] : null;
|
|
1236
|
+
// this.form.get(field.name).get(key).patchValue(value);
|
|
1237
|
+
// }
|
|
1238
|
+
// }
|
|
1239
|
+
this.form.get(field.name).patchValue(values);
|
|
1237
1240
|
};
|
|
1238
1241
|
/**
|
|
1239
1242
|
* @param {?} event
|
|
@@ -1336,56 +1339,6 @@
|
|
|
1336
1339
|
}
|
|
1337
1340
|
}
|
|
1338
1341
|
}
|
|
1339
|
-
if (field.name === 'user-services') {
|
|
1340
|
-
this.startFilterSkillsByServices(form, field);
|
|
1341
|
-
}
|
|
1342
|
-
else if (field.name === 'user-skills') {
|
|
1343
|
-
if (isChecked) {
|
|
1344
|
-
/** @type {?} */
|
|
1345
|
-
var selectedIndex = field.options.findIndex(( /**
|
|
1346
|
-
* @param {?} option
|
|
1347
|
-
* @return {?}
|
|
1348
|
-
*/function (option) { return option.key === event.target.value; }));
|
|
1349
|
-
/** @type {?} */
|
|
1350
|
-
var selectedCheckbox = this.form.get('user-skills').value;
|
|
1351
|
-
selectedCheckbox[selectedIndex] = true;
|
|
1352
|
-
this.form.get('user-skills').setValue(selectedCheckbox);
|
|
1353
|
-
this.previousSelectedNestedCheckbox.push(event.target.value);
|
|
1354
|
-
}
|
|
1355
|
-
else {
|
|
1356
|
-
/** @type {?} */
|
|
1357
|
-
var index = this.previousSelectedNestedCheckbox.indexOf(event.target.value);
|
|
1358
|
-
if (index !== -1) {
|
|
1359
|
-
this.previousSelectedNestedCheckbox.splice(index, 1);
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
};
|
|
1364
|
-
/**
|
|
1365
|
-
* @private
|
|
1366
|
-
* @param {?} form
|
|
1367
|
-
* @param {?} field
|
|
1368
|
-
* @return {?}
|
|
1369
|
-
*/
|
|
1370
|
-
GenericFilterComponent.prototype.startFilterSkillsByServices = /**
|
|
1371
|
-
* @private
|
|
1372
|
-
* @param {?} form
|
|
1373
|
-
* @param {?} field
|
|
1374
|
-
* @return {?}
|
|
1375
|
-
*/
|
|
1376
|
-
function (form, field) {
|
|
1377
|
-
/** @type {?} */
|
|
1378
|
-
var servicesArray = [];
|
|
1379
|
-
form.value[field.name].map(( /**
|
|
1380
|
-
* @param {?} service
|
|
1381
|
-
* @param {?} index
|
|
1382
|
-
* @return {?}
|
|
1383
|
-
*/function (service, index) {
|
|
1384
|
-
if (service) {
|
|
1385
|
-
servicesArray.push(field.options[index].key);
|
|
1386
|
-
}
|
|
1387
|
-
}));
|
|
1388
|
-
this.filterSkillsByServices(servicesArray, this.config);
|
|
1389
1342
|
};
|
|
1390
1343
|
/**
|
|
1391
1344
|
* @private
|
|
@@ -1498,7 +1451,7 @@
|
|
|
1498
1451
|
this.form.addControl('findPersonControl', findPersonControl);
|
|
1499
1452
|
}
|
|
1500
1453
|
var _loop_1 = function (field) {
|
|
1501
|
-
if (field.type === 'checkbox' || field.type === 'checkbox-large'
|
|
1454
|
+
if (field.type === 'checkbox' || field.type === 'checkbox-large') {
|
|
1502
1455
|
/** @type {?} */
|
|
1503
1456
|
var formArray = this_1.buildCheckBoxFormArray(field, settings);
|
|
1504
1457
|
this_1.form.addControl(field.name, formArray);
|
|
@@ -1795,20 +1748,14 @@
|
|
|
1795
1748
|
function (services, config) {
|
|
1796
1749
|
var _this = this;
|
|
1797
1750
|
this.filteredSkillsByServices = [];
|
|
1798
|
-
this.filteredSkillsByServicesCheckbox = [];
|
|
1799
|
-
/** @type {?} */
|
|
1800
|
-
var userSkillsSelectField = config.fields.find(( /**
|
|
1801
|
-
* @param {?} f
|
|
1802
|
-
* @return {?}
|
|
1803
|
-
*/function (f) { return f.name === 'user-skills' && f.type === 'group-select'; }));
|
|
1804
1751
|
/** @type {?} */
|
|
1805
|
-
var
|
|
1752
|
+
var userSkillsField = config.fields.find(( /**
|
|
1806
1753
|
* @param {?} f
|
|
1807
1754
|
* @return {?}
|
|
1808
|
-
*/function (f) { return f.name === 'user-skills'
|
|
1809
|
-
if (
|
|
1755
|
+
*/function (f) { return f.name === 'user-skills'; }));
|
|
1756
|
+
if (userSkillsField) {
|
|
1810
1757
|
/** @type {?} */
|
|
1811
|
-
var userSkills_1 =
|
|
1758
|
+
var userSkills_1 = userSkillsField.groupOptions;
|
|
1812
1759
|
if (!services || services.length === 0) {
|
|
1813
1760
|
this.filteredSkillsByServices = userSkills_1;
|
|
1814
1761
|
}
|
|
@@ -1821,59 +1768,13 @@
|
|
|
1821
1768
|
var groupOption = userSkills_1.find(( /**
|
|
1822
1769
|
* @param {?} u
|
|
1823
1770
|
* @return {?}
|
|
1824
|
-
*/function (u) { return u.group
|
|
1771
|
+
*/function (u) { return u.group === s; }));
|
|
1825
1772
|
if (groupOption) {
|
|
1826
1773
|
_this.filteredSkillsByServices.push(groupOption);
|
|
1827
1774
|
}
|
|
1828
1775
|
}));
|
|
1829
1776
|
}
|
|
1830
1777
|
}
|
|
1831
|
-
else if (userSkillsCheckboxField) {
|
|
1832
|
-
/** @type {?} */
|
|
1833
|
-
var userSkills_2 = userSkillsCheckboxField.groupOptions;
|
|
1834
|
-
if (!services || services.length === 0) {
|
|
1835
|
-
this.filteredSkillsByServices = userSkills_2;
|
|
1836
|
-
}
|
|
1837
|
-
else {
|
|
1838
|
-
services.forEach(( /**
|
|
1839
|
-
* @param {?} s
|
|
1840
|
-
* @return {?}
|
|
1841
|
-
*/function (s) {
|
|
1842
|
-
/** @type {?} */
|
|
1843
|
-
var groupOption = userSkills_2.find(( /**
|
|
1844
|
-
* @param {?} u
|
|
1845
|
-
* @return {?}
|
|
1846
|
-
*/function (u) { return u.group.toLowerCase() === s.toLowerCase(); }));
|
|
1847
|
-
if (groupOption) {
|
|
1848
|
-
_this.filteredSkillsByServices.push(groupOption);
|
|
1849
|
-
}
|
|
1850
|
-
}));
|
|
1851
|
-
this.filteredSkillsByServicesCheckbox = this.filteredSkillsByServices.map(( /**
|
|
1852
|
-
* @param {?} skill
|
|
1853
|
-
* @return {?}
|
|
1854
|
-
*/function (skill) {
|
|
1855
|
-
return skill.options;
|
|
1856
|
-
})).reduce(( /**
|
|
1857
|
-
* @param {?} a
|
|
1858
|
-
* @param {?} b
|
|
1859
|
-
* @return {?}
|
|
1860
|
-
*/function (a, b) {
|
|
1861
|
-
return a.concat(b);
|
|
1862
|
-
}), []);
|
|
1863
|
-
userSkillsCheckboxField.options = [];
|
|
1864
|
-
userSkillsCheckboxField.options = this.filteredSkillsByServicesCheckbox;
|
|
1865
|
-
(( /** @type {?} */(this.form.get('user-skills'))))['controls'] = this.filteredSkillsByServicesCheckbox.map(( /**
|
|
1866
|
-
* @return {?}
|
|
1867
|
-
*/function () { return new forms.FormControl(); }));
|
|
1868
|
-
this.form.get('user-skills').setValue(this.filteredSkillsByServicesCheckbox.map(( /**
|
|
1869
|
-
* @param {?} skill
|
|
1870
|
-
* @return {?}
|
|
1871
|
-
*/function (skill) {
|
|
1872
|
-
return _this.previousSelectedNestedCheckbox.includes(skill.key);
|
|
1873
|
-
})));
|
|
1874
|
-
return this.filteredSkillsByServicesCheckbox;
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
1778
|
this.filteredSkillsByServices = this.sortGroupOptions(this.filteredSkillsByServices);
|
|
1878
1779
|
return this.filteredSkillsByServices;
|
|
1879
1780
|
};
|
|
@@ -1956,7 +1857,7 @@
|
|
|
1956
1857
|
GenericFilterComponent.decorators = [
|
|
1957
1858
|
{ type: i0.Component, args: [{
|
|
1958
1859
|
selector: 'xuilib-generic-filter',
|
|
1959
|
-
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 elevated-break\">\n <ng-container [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'group-title'\">\n <div [class]=\"field.titleClasses ? field.titleClasses: 'govuk-label govuk-label--m govuk-!-margin-bottom-4'\">\n {{ field.name | capitalize }}\n </div>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\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?.required) || form.get(field.name).errors?.maxlength || form.get(field.name).errors?.email)}\">\n\n <div *ngIf=\"field.title\" class=\"xui-generic-filter__field-title\">\n <h3 [class]=\"field.titleClasses ? field.titleClasses : 'govuk-heading-s'\" style=\"margin-bottom: 0!important\">\n {{field.title | capitalize}}\n </h3>\n\n <div *ngIf=\"field?.titleHint\" class=\"govuk-!-margin-left-2\">\n {{ field.titleHint }}\n </div>\n </div>\n\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.displayMinSelectedError && submitted && (form.get(field.name).errors?.minlength || form.get(field.name).errors?.required)\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.minSelectedError}}\n </span>\n\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxlength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.maxSelectedError}}\n </span>\n\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.emailError && submitted && form.get(field.name).errors?.email\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.emailError}}\n </span>\n\n <div class=\"govuk-body\" [class.govuk-body--maxWidth480px]=\"field.maxWidth480px\" [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=\"'group-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 selected value=\"\">{{field.disabledText}}</option>\n <optgroup *ngFor = 'let grp of filteredSkillsByServices' label=\"{{grp.group | titlecase}}\">\n <option *ngFor = 'let item of grp.options' [value]=\"item.key\">{{item.label}}</option>\n </optgroup>\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=\"'nested-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 filteredSkillsByServicesCheckbox; 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 [checked]=\"checkBoxChecked(field, 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.enableAddButton\"\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-service'\">\n <xuilib-find-service (serviceFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [enableAddServiceButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [selectedServices]=\"form.get(field.name)?.value\"\n [services]=\"field.options\"\n [field]=\"field\"\n ></xuilib-find-service>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text-input'\">\n <input class=\"govuk-input\" type=\"text\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [attr.maxlength]=\"field.maxlength ? field.maxlength : null\"\n />\n </ng-container>\n <ng-container *ngSwitchCase=\"'email-input'\">\n <input class=\"govuk-input\" type=\"email\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n />\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m\"/>\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",
|
|
1860
|
+
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 elevated-break\">\n <ng-container [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'group-title'\">\n <div [class]=\"field.titleClasses ? field.titleClasses: 'govuk-label govuk-label--m govuk-!-margin-bottom-4'\">\n {{ field.name | capitalize }}\n </div>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\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?.required) || form.get(field.name).errors?.maxlength || form.get(field.name).errors?.email)}\">\n\n <div *ngIf=\"field.title\" class=\"xui-generic-filter__field-title\">\n <h3 [class]=\"field.titleClasses ? field.titleClasses : 'govuk-heading-s'\" style=\"margin-bottom: 0!important\">\n {{field.title | capitalize}}\n </h3>\n\n <div *ngIf=\"field?.titleHint\" class=\"govuk-!-margin-left-2\">\n {{ field.titleHint }}\n </div>\n </div>\n\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.displayMinSelectedError && submitted && (form.get(field.name).errors?.minlength || form.get(field.name).errors?.required)\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.minSelectedError}}\n </span>\n\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxlength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.maxSelectedError}}\n </span>\n\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.emailError && submitted && form.get(field.name).errors?.email\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.emailError}}\n </span>\n\n <div class=\"govuk-body\" [class.govuk-body--maxWidth480px]=\"field.maxWidth480px\" [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=\"'group-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 selected value=\"\">{{field.disabledText}}</option>\n <optgroup *ngFor = 'let grp of filteredSkillsByServices' label=\"{{grp.group | titlecase}}\">\n <option *ngFor = 'let item of grp.options' [value]=\"item.key\">{{item.label}}</option>\n </optgroup>\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.enableAddButton\"\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.taskName\"\n [userIncluded]=\"false\"\n ></xuilib-find-task-name>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-service'\">\n <xuilib-find-service (serviceFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [enableAddServiceButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [selectedServices]=\"form.get(field.name)?.value\"\n [services]=\"field.options\"\n [field]=\"field\"\n ></xuilib-find-service>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text-input'\">\n <input class=\"govuk-input\" type=\"text\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [attr.maxlength]=\"field.maxlength ? field.maxlength : null\"\n />\n </ng-container>\n <ng-container *ngSwitchCase=\"'email-input'\">\n <input class=\"govuk-input\" type=\"email\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n />\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m\"/>\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",
|
|
1960
1861
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1961
1862
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1962
1863
|
styles: [".contain-classes .elevated-break{margin-bottom:20px}@media (min-width:40.0625em){.contain-classes .elevated-break{margin-bottom:30px}}.contain-classes .govuk-body--maxWidth480px{max-width:480px}.contain-classes .xui-generic-filter .select-all{margin-bottom:10px}.contain-classes .xui-generic-filter .govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap}.contain-classes .xui-generic-filter .govuk-checkboxes>div{flex-grow:1;flex-shrink:0}.contain-classes .xui-generic-filter__field-title{display:flex;align-items:center;margin-bottom:10px}.contain-classes .govuk-select{width:100%}"]
|
|
@@ -5687,6 +5588,221 @@
|
|
|
5687
5588
|
return FindServiceComponent;
|
|
5688
5589
|
}());
|
|
5689
5590
|
|
|
5591
|
+
/**
|
|
5592
|
+
* @fileoverview added by tsickle
|
|
5593
|
+
* Generated from: lib/services/task-name/task-name.service.ts
|
|
5594
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5595
|
+
*/
|
|
5596
|
+
var TaskNameService = /** @class */ (function () {
|
|
5597
|
+
function TaskNameService(http, sessionStorageService) {
|
|
5598
|
+
this.http = http;
|
|
5599
|
+
this.sessionStorageService = sessionStorageService;
|
|
5600
|
+
}
|
|
5601
|
+
/**
|
|
5602
|
+
* @return Observable<any[]>: Array of taskName in Observable
|
|
5603
|
+
*/
|
|
5604
|
+
/**
|
|
5605
|
+
* @return {?} Observable<any[]>: Array of taskName in Observable
|
|
5606
|
+
*/
|
|
5607
|
+
TaskNameService.prototype.getTaskName = /**
|
|
5608
|
+
* @return {?} Observable<any[]>: Array of taskName in Observable
|
|
5609
|
+
*/
|
|
5610
|
+
function () {
|
|
5611
|
+
var _this = this;
|
|
5612
|
+
if (this.sessionStorageService.getItem(TaskNameService.taskNamesKey)) {
|
|
5613
|
+
/** @type {?} */
|
|
5614
|
+
var taskNames = JSON.parse(this.sessionStorageService.getItem(TaskNameService.taskNamesKey));
|
|
5615
|
+
return rxjs.of(( /** @type {?} */(taskNames)));
|
|
5616
|
+
}
|
|
5617
|
+
return this.http.get("/workallocation/taskNames").pipe(operators.tap(( /**
|
|
5618
|
+
* @param {?} taskNames
|
|
5619
|
+
* @return {?}
|
|
5620
|
+
*/function (taskNames) { return _this.sessionStorageService.setItem(TaskNameService.taskNamesKey, JSON.stringify(taskNames)); })));
|
|
5621
|
+
};
|
|
5622
|
+
TaskNameService.taskNamesKey = 'taskNames';
|
|
5623
|
+
TaskNameService.decorators = [
|
|
5624
|
+
{ type: i0.Injectable, args: [{
|
|
5625
|
+
providedIn: 'root'
|
|
5626
|
+
},] }
|
|
5627
|
+
];
|
|
5628
|
+
/** @nocollapse */
|
|
5629
|
+
TaskNameService.ctorParameters = function () {
|
|
5630
|
+
return [
|
|
5631
|
+
{ type: i1.HttpClient },
|
|
5632
|
+
{ type: SessionStorageService }
|
|
5633
|
+
];
|
|
5634
|
+
};
|
|
5635
|
+
/** @nocollapse */ TaskNameService.ngInjectableDef = i0.defineInjectable({ factory: function TaskNameService_Factory() { return new TaskNameService(i0.inject(i1.HttpClient), i0.inject(SessionStorageService)); }, token: TaskNameService, providedIn: "root" });
|
|
5636
|
+
return TaskNameService;
|
|
5637
|
+
}());
|
|
5638
|
+
|
|
5639
|
+
/**
|
|
5640
|
+
* @fileoverview added by tsickle
|
|
5641
|
+
* Generated from: lib/components/find-task-name/find-task-name.component.ts
|
|
5642
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5643
|
+
*/
|
|
5644
|
+
var FindTaskNameComponent = /** @class */ (function () {
|
|
5645
|
+
function FindTaskNameComponent(cd, taskService) {
|
|
5646
|
+
this.cd = cd;
|
|
5647
|
+
this.taskService = taskService;
|
|
5648
|
+
this.taskNameSelected = new i0.EventEmitter();
|
|
5649
|
+
this.taskNameFieldChanged = new i0.EventEmitter();
|
|
5650
|
+
this.boldTitle = 'Find the task name';
|
|
5651
|
+
this.subTitle = 'Type the name of the task name and select them.';
|
|
5652
|
+
this.domain = PersonRole.ALL;
|
|
5653
|
+
this.findTaskNameGroup = new forms.FormGroup({});
|
|
5654
|
+
this.submitted = true;
|
|
5655
|
+
this.userIncluded = false;
|
|
5656
|
+
this.placeholderContent = '';
|
|
5657
|
+
this.isNoResultsShown = true;
|
|
5658
|
+
this.showUpdatedColor = false;
|
|
5659
|
+
this.selectedTaskNames = [];
|
|
5660
|
+
this.errorMessage = 'You must select a name';
|
|
5661
|
+
this.idValue = '';
|
|
5662
|
+
this.services = ['IA'];
|
|
5663
|
+
this.disabled = null;
|
|
5664
|
+
this.showAutocomplete = false;
|
|
5665
|
+
this.filteredOptions = [];
|
|
5666
|
+
this.minSearchCharacters = 1;
|
|
5667
|
+
this.searchTerm = '';
|
|
5668
|
+
}
|
|
5669
|
+
/**
|
|
5670
|
+
* @return {?}
|
|
5671
|
+
*/
|
|
5672
|
+
FindTaskNameComponent.prototype.ngOnDestroy = /**
|
|
5673
|
+
* @return {?}
|
|
5674
|
+
*/
|
|
5675
|
+
function () {
|
|
5676
|
+
if (this.sub) {
|
|
5677
|
+
this.sub.unsubscribe();
|
|
5678
|
+
}
|
|
5679
|
+
};
|
|
5680
|
+
/**
|
|
5681
|
+
* @return {?}
|
|
5682
|
+
*/
|
|
5683
|
+
FindTaskNameComponent.prototype.ngOnChanges = /**
|
|
5684
|
+
* @return {?}
|
|
5685
|
+
*/
|
|
5686
|
+
function () {
|
|
5687
|
+
var _this = this;
|
|
5688
|
+
this.findTaskNameControl = new forms.FormControl(this.selectedTaskName);
|
|
5689
|
+
console.log(this.findTaskNameControl);
|
|
5690
|
+
console.log(this.selectedTaskName);
|
|
5691
|
+
this.findTaskNameGroup.addControl('findTaskNameControl', this.findTaskNameControl);
|
|
5692
|
+
this.sub = this.findTaskNameControl.valueChanges
|
|
5693
|
+
.pipe(operators.tap(( /**
|
|
5694
|
+
* @return {?}
|
|
5695
|
+
*/function () { return _this.showAutocomplete = false; })), operators.tap(( /**
|
|
5696
|
+
* @return {?}
|
|
5697
|
+
*/function () { return _this.filteredOptions = []; })), operators.tap(( /**
|
|
5698
|
+
* @param {?} term
|
|
5699
|
+
* @return {?}
|
|
5700
|
+
*/function (term) { return _this.searchTerm = term; })), operators.debounceTime(300), operators.tap(( /**
|
|
5701
|
+
* @param {?} searchTerm
|
|
5702
|
+
* @return {?}
|
|
5703
|
+
*/function (searchTerm) {
|
|
5704
|
+
if (!searchTerm) {
|
|
5705
|
+
_this.taskNameSelected.emit('');
|
|
5706
|
+
}
|
|
5707
|
+
return searchTerm;
|
|
5708
|
+
})),
|
|
5709
|
+
// tap((searchTerm) => typeof searchTerm === 'string' ? this.taskNameSelected.emit('null') : void 0),
|
|
5710
|
+
operators.filter(( /**
|
|
5711
|
+
* @param {?} searchTerm
|
|
5712
|
+
* @return {?}
|
|
5713
|
+
*/function (searchTerm) { return searchTerm && searchTerm.length >= _this.minSearchCharacters; })), operators.mergeMap(( /**
|
|
5714
|
+
* @return {?}
|
|
5715
|
+
*/function () { return _this.getTaskName(); }))).subscribe(( /**
|
|
5716
|
+
* @param {?} taskNameModel
|
|
5717
|
+
* @return {?}
|
|
5718
|
+
*/function (taskNameModel) {
|
|
5719
|
+
_this.filteredOptions = taskNameModel.map(( /**
|
|
5720
|
+
* @param {?} task
|
|
5721
|
+
* @return {?}
|
|
5722
|
+
*/function (task) { return task.taskName; }));
|
|
5723
|
+
if (_this.searchTerm) {
|
|
5724
|
+
_this.filteredOptions = _this.filteredOptions.filter(( /**
|
|
5725
|
+
* @param {?} taskName
|
|
5726
|
+
* @return {?}
|
|
5727
|
+
*/function (taskName) { return taskName.toLocaleLowerCase().includes(_this.searchTerm.toLocaleLowerCase()); })).map(( /**
|
|
5728
|
+
* @param {?} taskName
|
|
5729
|
+
* @return {?}
|
|
5730
|
+
*/function (taskName) { return taskName; }));
|
|
5731
|
+
}
|
|
5732
|
+
console.log(_this.filteredOptions);
|
|
5733
|
+
_this.cd.detectChanges();
|
|
5734
|
+
}));
|
|
5735
|
+
};
|
|
5736
|
+
/**
|
|
5737
|
+
* @return {?}
|
|
5738
|
+
*/
|
|
5739
|
+
FindTaskNameComponent.prototype.getTaskName = /**
|
|
5740
|
+
* @return {?}
|
|
5741
|
+
*/
|
|
5742
|
+
function () {
|
|
5743
|
+
return this.taskService.getTaskName();
|
|
5744
|
+
};
|
|
5745
|
+
/**
|
|
5746
|
+
* @param {?} selectedTaskName
|
|
5747
|
+
* @return {?}
|
|
5748
|
+
*/
|
|
5749
|
+
FindTaskNameComponent.prototype.onSelectionChange = /**
|
|
5750
|
+
* @param {?} selectedTaskName
|
|
5751
|
+
* @return {?}
|
|
5752
|
+
*/
|
|
5753
|
+
function (selectedTaskName) {
|
|
5754
|
+
if (selectedTaskName) {
|
|
5755
|
+
this.taskNameSelected.emit(selectedTaskName);
|
|
5756
|
+
this.findTaskNameControl.setValue(selectedTaskName);
|
|
5757
|
+
}
|
|
5758
|
+
};
|
|
5759
|
+
/**
|
|
5760
|
+
* @return {?}
|
|
5761
|
+
*/
|
|
5762
|
+
FindTaskNameComponent.prototype.onInput = /**
|
|
5763
|
+
* @return {?}
|
|
5764
|
+
*/
|
|
5765
|
+
function () {
|
|
5766
|
+
this.taskNameFieldChanged.emit();
|
|
5767
|
+
};
|
|
5768
|
+
FindTaskNameComponent.decorators = [
|
|
5769
|
+
{ type: i0.Component, args: [{
|
|
5770
|
+
selector: 'xuilib-find-task-name',
|
|
5771
|
+
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 }}\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",
|
|
5772
|
+
styles: [""]
|
|
5773
|
+
}] }
|
|
5774
|
+
];
|
|
5775
|
+
/** @nocollapse */
|
|
5776
|
+
FindTaskNameComponent.ctorParameters = function () {
|
|
5777
|
+
return [
|
|
5778
|
+
{ type: i0.ChangeDetectorRef },
|
|
5779
|
+
{ type: TaskNameService }
|
|
5780
|
+
];
|
|
5781
|
+
};
|
|
5782
|
+
FindTaskNameComponent.propDecorators = {
|
|
5783
|
+
taskNameSelected: [{ type: i0.Output }],
|
|
5784
|
+
taskNameFieldChanged: [{ type: i0.Output }],
|
|
5785
|
+
title: [{ type: i0.Input }],
|
|
5786
|
+
boldTitle: [{ type: i0.Input }],
|
|
5787
|
+
subTitle: [{ type: i0.Input }],
|
|
5788
|
+
domain: [{ type: i0.Input }],
|
|
5789
|
+
findTaskNameGroup: [{ type: i0.Input }],
|
|
5790
|
+
selectedTaskName: [{ type: i0.Input }],
|
|
5791
|
+
submitted: [{ type: i0.Input }],
|
|
5792
|
+
userIncluded: [{ type: i0.Input }],
|
|
5793
|
+
assignedUser: [{ type: i0.Input }],
|
|
5794
|
+
placeholderContent: [{ type: i0.Input }],
|
|
5795
|
+
isNoResultsShown: [{ type: i0.Input }],
|
|
5796
|
+
showUpdatedColor: [{ type: i0.Input }],
|
|
5797
|
+
selectedTaskNames: [{ type: i0.Input }],
|
|
5798
|
+
errorMessage: [{ type: i0.Input }],
|
|
5799
|
+
idValue: [{ type: i0.Input }],
|
|
5800
|
+
services: [{ type: i0.Input }],
|
|
5801
|
+
disabled: [{ type: i0.Input }]
|
|
5802
|
+
};
|
|
5803
|
+
return FindTaskNameComponent;
|
|
5804
|
+
}());
|
|
5805
|
+
|
|
5690
5806
|
/**
|
|
5691
5807
|
* @fileoverview added by tsickle
|
|
5692
5808
|
* Generated from: lib/components/search-judicials/search-judicials.component.ts
|
|
@@ -7389,6 +7505,7 @@
|
|
|
7389
7505
|
FindPersonComponent,
|
|
7390
7506
|
SearchJudicialsComponent,
|
|
7391
7507
|
FindLocationComponent,
|
|
7508
|
+
FindTaskNameComponent,
|
|
7392
7509
|
SearchLocationComponent,
|
|
7393
7510
|
FindServiceComponent,
|
|
7394
7511
|
SearchServiceComponent,
|
|
@@ -8525,17 +8642,18 @@
|
|
|
8525
8642
|
exports.ɵa = ExuiPageWrapperComponent;
|
|
8526
8643
|
exports.ɵbl = FindLocationComponent;
|
|
8527
8644
|
exports.ɵbh = FindPersonComponent;
|
|
8528
|
-
exports.ɵ
|
|
8645
|
+
exports.ɵbq = FindServiceComponent;
|
|
8646
|
+
exports.ɵbo = FindTaskNameComponent;
|
|
8529
8647
|
exports.ɵbd = GenericFilterComponent;
|
|
8530
8648
|
exports.ɵk = HmctsSessionDialogComponent;
|
|
8531
8649
|
exports.ɵo = InviteUserFormComponent;
|
|
8532
8650
|
exports.ɵn = InviteUserPermissionComponent;
|
|
8533
8651
|
exports.ɵbc = LoadingSpinnerComponent;
|
|
8534
|
-
exports.ɵ
|
|
8652
|
+
exports.ɵbt = PaginationComponent;
|
|
8535
8653
|
exports.ɵbk = SearchJudicialsComponent;
|
|
8536
8654
|
exports.ɵbm = SearchLocationComponent;
|
|
8537
|
-
exports.ɵ
|
|
8538
|
-
exports.ɵ
|
|
8655
|
+
exports.ɵbr = SearchServiceComponent;
|
|
8656
|
+
exports.ɵbs = SearchVenueComponent;
|
|
8539
8657
|
exports.ɵv = SelectedCaseConfirmComponent;
|
|
8540
8658
|
exports.ɵt = SelectedCaseListComponent;
|
|
8541
8659
|
exports.ɵu = SelectedCaseComponent;
|
|
@@ -8554,29 +8672,29 @@
|
|
|
8554
8672
|
exports.ɵg = FeatureToggleDirective;
|
|
8555
8673
|
exports.ɵi = LetContext;
|
|
8556
8674
|
exports.ɵj = LetDirective;
|
|
8557
|
-
exports.ɵ
|
|
8558
|
-
exports.ɵ
|
|
8559
|
-
exports.ɵ
|
|
8560
|
-
exports.ɵ
|
|
8561
|
-
exports.ɵ
|
|
8562
|
-
exports.ɵ
|
|
8563
|
-
exports.ɵ
|
|
8564
|
-
exports.ɵ
|
|
8565
|
-
exports.ɵ
|
|
8566
|
-
exports.ɵ
|
|
8567
|
-
exports.ɵ
|
|
8568
|
-
exports.ɵ
|
|
8569
|
-
exports.ɵ
|
|
8570
|
-
exports.ɵ
|
|
8571
|
-
exports.ɵ
|
|
8572
|
-
exports.ɵ
|
|
8573
|
-
exports.ɵ
|
|
8574
|
-
exports.ɵ
|
|
8575
|
-
exports.ɵ
|
|
8576
|
-
exports.ɵ
|
|
8577
|
-
exports.ɵ
|
|
8578
|
-
exports.ɵ
|
|
8579
|
-
exports.ɵ
|
|
8675
|
+
exports.ɵcd = GovUkCheckboxComponent;
|
|
8676
|
+
exports.ɵcj = GovUkCheckboxesComponent;
|
|
8677
|
+
exports.ɵci = GovUkDateComponent;
|
|
8678
|
+
exports.ɵcg = GovUkErrorMessageComponent;
|
|
8679
|
+
exports.ɵch = GovUkFieldsetComponent;
|
|
8680
|
+
exports.ɵco = GovUkFileUploadComponent;
|
|
8681
|
+
exports.ɵce = GovUkFormGroupWrapperComponent;
|
|
8682
|
+
exports.ɵcc = GovUkInputComponent;
|
|
8683
|
+
exports.ɵcf = GovUkLabelComponent;
|
|
8684
|
+
exports.ɵck = GovUkRadioComponent;
|
|
8685
|
+
exports.ɵcl = GovUkRadiosComponent;
|
|
8686
|
+
exports.ɵcm = GovUkSelectComponent;
|
|
8687
|
+
exports.ɵcb = GovukTableComponent;
|
|
8688
|
+
exports.ɵcn = GovUkTextareaComponent;
|
|
8689
|
+
exports.ɵca = HmctsBannerComponent;
|
|
8690
|
+
exports.ɵby = HmctsErrorSummaryComponent;
|
|
8691
|
+
exports.ɵbu = HmctsIdentityBarComponent;
|
|
8692
|
+
exports.ɵbz = HmctsMainWrapperComponent;
|
|
8693
|
+
exports.ɵbv = HmctsPaginationComponent;
|
|
8694
|
+
exports.ɵbx = HmctsPrimaryNavigationComponent;
|
|
8695
|
+
exports.ɵbw = HmctsSubNavigationComponent;
|
|
8696
|
+
exports.ɵcp = RemoveHostDirective;
|
|
8697
|
+
exports.ɵcq = CapitalizePipe;
|
|
8580
8698
|
exports.ɵr = CaseSharingStateService;
|
|
8581
8699
|
exports.ɵbg = CookieService;
|
|
8582
8700
|
exports.ɵh = FeatureToggleService;
|
|
@@ -8584,6 +8702,7 @@
|
|
|
8584
8702
|
exports.ɵbi = FindAPersonService;
|
|
8585
8703
|
exports.ɵbn = LocationService;
|
|
8586
8704
|
exports.ɵbj = SessionStorageService;
|
|
8705
|
+
exports.ɵbp = TaskNameService;
|
|
8587
8706
|
|
|
8588
8707
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8589
8708
|
|