@hmcts/rpx-xui-common-lib 1.7.43 → 1.7.47-cancel-callback-xui-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 +249 -55
- 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 +3 -2
- package/esm2015/lib/components/find-location/find-location.component.js +2 -2
- package/esm2015/lib/components/find-service/find-service.component.js +126 -27
- package/esm2015/lib/components/generic-filter/generic-filter-utils.js +1 -1
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +31 -11
- package/esm2015/lib/components/search-location/search-location.component.js +2 -2
- package/esm2015/lib/components/search-service/search-service.component.js +16 -33
- package/esm2015/lib/exui-common-lib.module.js +10 -3
- package/esm2015/lib/models/filter.model.js +39 -3
- package/esm2015/lib/pipes/capitalize.pipe.js +21 -0
- package/esm2015/lib/services/filter/filter.service.js +13 -5
- package/esm2015/lib/services/find-person/find-person.service.js +3 -3
- package/esm2015/lib/services/storage/session-storage/session-storage.service.js +55 -0
- package/esm5/hmcts-rpx-xui-common-lib.js +3 -2
- package/esm5/lib/components/find-location/find-location.component.js +2 -2
- package/esm5/lib/components/find-service/find-service.component.js +164 -25
- package/esm5/lib/components/generic-filter/generic-filter-utils.js +1 -1
- package/esm5/lib/components/generic-filter/generic-filter.component.js +30 -10
- package/esm5/lib/components/search-location/search-location.component.js +2 -2
- package/esm5/lib/components/search-service/search-service.component.js +18 -37
- package/esm5/lib/exui-common-lib.module.js +8 -3
- package/esm5/lib/models/filter.model.js +39 -3
- package/esm5/lib/pipes/capitalize.pipe.js +29 -0
- package/esm5/lib/services/filter/filter.service.js +17 -5
- package/esm5/lib/services/find-person/find-person.service.js +3 -3
- package/esm5/lib/services/{session-storage → storage/session-storage}/session-storage.service.js +2 -2
- package/fesm2015/hmcts-rpx-xui-common-lib.js +206 -54
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +253 -55
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +2 -1
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/find-service/find-service.component.d.ts +15 -9
- package/lib/components/generic-filter/generic-filter-utils.d.ts +2 -5
- package/lib/components/generic-filter/generic-filter.component.d.ts +1 -1
- package/lib/components/search-location/search-location.component.d.ts +1 -1
- package/lib/components/search-service/search-service.component.d.ts +5 -11
- package/lib/exui-common-lib.module.d.ts +1 -2
- package/lib/models/filter.model.d.ts +18 -7
- package/lib/pipes/capitalize.pipe.d.ts +4 -0
- package/lib/services/filter/filter.service.d.ts +1 -0
- package/lib/services/find-person/find-person.service.d.ts +1 -1
- package/lib/services/{session-storage → storage/session-storage}/session-storage.service.d.ts +0 -0
- package/package.json +1 -1
- package/esm2015/lib/services/session-storage/session-storage.service.js +0 -55
|
@@ -709,10 +709,10 @@
|
|
|
709
709
|
return this.filterSettings[id];
|
|
710
710
|
}
|
|
711
711
|
if (sessionStorage.getItem(id)) {
|
|
712
|
-
return JSON.parse(
|
|
712
|
+
return JSON.parse(sessionStorage.getItem(id));
|
|
713
713
|
}
|
|
714
714
|
if (localStorage.getItem(id)) {
|
|
715
|
-
return JSON.parse(
|
|
715
|
+
return JSON.parse(localStorage.getItem(id));
|
|
716
716
|
}
|
|
717
717
|
return null;
|
|
718
718
|
};
|
|
@@ -730,6 +730,18 @@
|
|
|
730
730
|
}
|
|
731
731
|
return this.streams[id].asObservable();
|
|
732
732
|
};
|
|
733
|
+
/**
|
|
734
|
+
* @param {?} id
|
|
735
|
+
* @return {?}
|
|
736
|
+
*/
|
|
737
|
+
FilterService.prototype.clearSessionAndLocalPersistance = /**
|
|
738
|
+
* @param {?} id
|
|
739
|
+
* @return {?}
|
|
740
|
+
*/
|
|
741
|
+
function (id) {
|
|
742
|
+
sessionStorage.removeItem(id);
|
|
743
|
+
localStorage.removeItem(id);
|
|
744
|
+
};
|
|
733
745
|
/**
|
|
734
746
|
* @private
|
|
735
747
|
* @param {?} setting
|
|
@@ -741,7 +753,7 @@
|
|
|
741
753
|
* @return {?}
|
|
742
754
|
*/
|
|
743
755
|
function (setting) {
|
|
744
|
-
|
|
756
|
+
localStorage.setItem(setting.id, JSON.stringify(setting));
|
|
745
757
|
};
|
|
746
758
|
/**
|
|
747
759
|
* @private
|
|
@@ -754,7 +766,7 @@
|
|
|
754
766
|
* @return {?}
|
|
755
767
|
*/
|
|
756
768
|
function (setting) {
|
|
757
|
-
|
|
769
|
+
sessionStorage.setItem(setting.id, JSON.stringify(setting));
|
|
758
770
|
};
|
|
759
771
|
/**
|
|
760
772
|
* @private
|
|
@@ -917,10 +929,10 @@
|
|
|
917
929
|
function (field) {
|
|
918
930
|
/** @type {?} */
|
|
919
931
|
var validators = [];
|
|
920
|
-
if (field && field.minSelected) {
|
|
932
|
+
if (field && field.minSelected > 0) {
|
|
921
933
|
validators.push(minSelectedValidator(field.minSelected));
|
|
922
934
|
}
|
|
923
|
-
if (field && field.maxSelected) {
|
|
935
|
+
if (field && field.maxSelected > 0) {
|
|
924
936
|
validators.push(maxSelectedValidator(field.maxSelected));
|
|
925
937
|
}
|
|
926
938
|
return validators;
|
|
@@ -1141,6 +1153,9 @@
|
|
|
1141
1153
|
this.filterService.persist(settings, this.config.persistence);
|
|
1142
1154
|
this.filterService.givenErrors.next(null);
|
|
1143
1155
|
this.submitted = false;
|
|
1156
|
+
if (this.config.cancelButtonCallback) {
|
|
1157
|
+
this.config.cancelButtonCallback();
|
|
1158
|
+
}
|
|
1144
1159
|
};
|
|
1145
1160
|
/**
|
|
1146
1161
|
* @param {?} values
|
|
@@ -1404,9 +1419,9 @@
|
|
|
1404
1419
|
var formArray = this_1.buildCheckBoxFormArray(field, settings);
|
|
1405
1420
|
this_1.form.addControl(field.name, formArray);
|
|
1406
1421
|
}
|
|
1407
|
-
else if (field.type === 'find-location') {
|
|
1422
|
+
else if (field.type === 'find-location' || field.type === 'find-service') {
|
|
1408
1423
|
/** @type {?} */
|
|
1409
|
-
var formArray = this_1.
|
|
1424
|
+
var formArray = this_1.buildFormArray(field, settings);
|
|
1410
1425
|
this_1.form.addControl(field.name, formArray);
|
|
1411
1426
|
}
|
|
1412
1427
|
else {
|
|
@@ -1417,6 +1432,9 @@
|
|
|
1417
1432
|
if (field.type === 'text-input') {
|
|
1418
1433
|
validators.push(forms.Validators.minLength(field.minSelected));
|
|
1419
1434
|
}
|
|
1435
|
+
if (field.type === 'email-input') {
|
|
1436
|
+
validators.push(forms.Validators.email);
|
|
1437
|
+
}
|
|
1420
1438
|
}
|
|
1421
1439
|
/** @type {?} */
|
|
1422
1440
|
var defaultValue = null;
|
|
@@ -1448,7 +1466,7 @@
|
|
|
1448
1466
|
});
|
|
1449
1467
|
this_1.form.addControl(field.name, formGroup);
|
|
1450
1468
|
}
|
|
1451
|
-
else {
|
|
1469
|
+
else if (field.type !== 'group-title') {
|
|
1452
1470
|
/** @type {?} */
|
|
1453
1471
|
var control = new forms.FormControl(defaultValue, validators);
|
|
1454
1472
|
this_1.form.addControl(field.name, control);
|
|
@@ -1544,7 +1562,7 @@
|
|
|
1544
1562
|
* @param {?} settings
|
|
1545
1563
|
* @return {?}
|
|
1546
1564
|
*/
|
|
1547
|
-
GenericFilterComponent.prototype.
|
|
1565
|
+
GenericFilterComponent.prototype.buildFormArray = /**
|
|
1548
1566
|
* @private
|
|
1549
1567
|
* @param {?} field
|
|
1550
1568
|
* @param {?} settings
|
|
@@ -1643,7 +1661,7 @@
|
|
|
1643
1661
|
var field = _c.value;
|
|
1644
1662
|
/** @type {?} */
|
|
1645
1663
|
var formGroup = form.get(field.name);
|
|
1646
|
-
if (formGroup && formGroup.errors && formGroup.errors.minlength) {
|
|
1664
|
+
if (formGroup && formGroup.errors && (formGroup.errors.minlength || formGroup.errors.required)) {
|
|
1647
1665
|
errors.push({ name: field.name, error: field.minSelectedError });
|
|
1648
1666
|
}
|
|
1649
1667
|
if (formGroup && formGroup.errors && formGroup.errors.maxLength) {
|
|
@@ -1664,6 +1682,18 @@
|
|
|
1664
1682
|
throw e_8.error;
|
|
1665
1683
|
}
|
|
1666
1684
|
}
|
|
1685
|
+
// remove duplicates
|
|
1686
|
+
errors = errors.filter(( /**
|
|
1687
|
+
* @param {?} filterError
|
|
1688
|
+
* @param {?} i
|
|
1689
|
+
* @param {?} arr
|
|
1690
|
+
* @return {?}
|
|
1691
|
+
*/function (filterError, i, arr) {
|
|
1692
|
+
return errors.indexOf(arr.find(( /**
|
|
1693
|
+
* @param {?} item
|
|
1694
|
+
* @return {?}
|
|
1695
|
+
*/function (item) { return item.name === filterError.name; }))) === i;
|
|
1696
|
+
}));
|
|
1667
1697
|
if (errors.length) {
|
|
1668
1698
|
this.filterService.givenErrors.next(errors);
|
|
1669
1699
|
}
|
|
@@ -1671,10 +1701,10 @@
|
|
|
1671
1701
|
GenericFilterComponent.decorators = [
|
|
1672
1702
|
{ type: i0.Component, args: [{
|
|
1673
1703
|
selector: 'xuilib-generic-filter',
|
|
1674
|
-
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 || form.get(field.name).errors?.required)\">\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.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 [fields]=\"config.fields\"\n [title]=\"field.title\"\n [enableAddServiceButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [selectedServices]=\"form.get(field.name)?.value\"\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 />\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",
|
|
1704
|
+
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?.minSelected === 0\" class=\"govuk-!-margin-left-2\">(optional)</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=\"'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-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 />\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",
|
|
1675
1705
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1676
1706
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1677
|
-
styles: [".contain-classes .elevated-break{margin-bottom:20px}@media (min-width:40.0625em){.contain-classes .elevated-break{margin-bottom:30px}}.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 .govuk-select{width:100%}"]
|
|
1707
|
+
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%}"]
|
|
1678
1708
|
}] }
|
|
1679
1709
|
];
|
|
1680
1710
|
/** @nocollapse */
|
|
@@ -3940,7 +3970,7 @@
|
|
|
3940
3970
|
|
|
3941
3971
|
/**
|
|
3942
3972
|
* @fileoverview added by tsickle
|
|
3943
|
-
* Generated from: lib/services/session-storage/session-storage.service.ts
|
|
3973
|
+
* Generated from: lib/services/storage/session-storage/session-storage.service.ts
|
|
3944
3974
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3945
3975
|
*/
|
|
3946
3976
|
var SessionStorageService = /** @class */ (function () {
|
|
@@ -4506,7 +4536,7 @@
|
|
|
4506
4536
|
FindLocationComponent.decorators = [
|
|
4507
4537
|
{ type: i0.Component, args: [{
|
|
4508
4538
|
selector: 'xuilib-find-location',
|
|
4509
|
-
template: "<div class=\"location-picker-custom\">\n <div class=\"search-location\">\n <div>\n <label id=\"input-selected-location-label\" *ngIf=\"locationTitle\">{{locationTitle}}</label>\n </div>\n\n <div class=\"search-location__input-container\">\n <exui-search-location class=\"search-location__input\"\n [locations]=\"locations\"\n [selectedLocations]=\"selectedLocations\"\n [singleMode]=\"field.maxSelected === 1\"\n [bookingCheck]=\"field.bookingCheckType\"\n [delay]=\"300\"\n [disabled]=\"disabled\"\n [serviceIds]=\"serviceIds\"\n (locationInputChanged)=\"onInputChanged($event)\"\n (locationSelected)=\"onLocationSelected($event)\"\n (searchLocationChanged)=\"onSearchInputChanged()\"\n [locationType]=\"'case-management'\"></exui-search-location>\n <a href=\"javascript:void(0)\" (click)=\"addLocation()\"
|
|
4539
|
+
template: "<div class=\"location-picker-custom\">\n <div class=\"search-location\">\n <div>\n <label id=\"input-selected-location-label\" *ngIf=\"locationTitle\">{{locationTitle}}</label>\n </div>\n\n <div class=\"search-location__input-container\">\n <exui-search-location class=\"search-location__input\"\n [locations]=\"locations\"\n [selectedLocations]=\"selectedLocations\"\n [singleMode]=\"field.maxSelected === 1\"\n [bookingCheck]=\"field.bookingCheckType\"\n [delay]=\"300\"\n [disabled]=\"disabled\"\n [serviceIds]=\"serviceIds\"\n (locationInputChanged)=\"onInputChanged($event)\"\n (locationSelected)=\"onLocationSelected($event)\"\n (searchLocationChanged)=\"onSearchInputChanged()\"\n [locationType]=\"'case-management'\"></exui-search-location>\n <a href=\"javascript:void(0)\" (click)=\"addLocation()\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\" data-module=\"govuk-button\"\n *ngIf=\"enableAddLocationButton\">\n Add\n </a>\n </div>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedLocations\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeLocation(selection)\" href=\"javascript:void(0)\">\n {{ selection.site_name }}\n </a>\n </li>\n </ul>\n</div>\n",
|
|
4510
4540
|
styles: [".search-location__input-container{display:flex}.search-location .auto-complete-container{min-width:unset;width:calc(100% - 4px)}.search-location__input{flex:1 0 auto}.search-location .govuk-button--secondary{background-color:#ddd}"]
|
|
4511
4541
|
}] }
|
|
4512
4542
|
];
|
|
@@ -5216,15 +5246,27 @@
|
|
|
5216
5246
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5217
5247
|
*/
|
|
5218
5248
|
var FindServiceComponent = /** @class */ (function () {
|
|
5219
|
-
function FindServiceComponent(
|
|
5220
|
-
this.
|
|
5221
|
-
this.
|
|
5249
|
+
function FindServiceComponent() {
|
|
5250
|
+
this.services = [];
|
|
5251
|
+
this.selectedServices = [];
|
|
5222
5252
|
this.enableAddServiceButton = true;
|
|
5223
|
-
this.
|
|
5224
|
-
this.
|
|
5225
|
-
|
|
5226
|
-
});
|
|
5253
|
+
this.disabled = false;
|
|
5254
|
+
this.serviceFieldChanged = new i0.EventEmitter();
|
|
5255
|
+
this.tempSelectedService = null;
|
|
5227
5256
|
}
|
|
5257
|
+
/**
|
|
5258
|
+
* @return {?}
|
|
5259
|
+
*/
|
|
5260
|
+
FindServiceComponent.prototype.ngOnInit = /**
|
|
5261
|
+
* @return {?}
|
|
5262
|
+
*/
|
|
5263
|
+
function () {
|
|
5264
|
+
this.selectedServices = this.selectedServices !== null ? this.selectedServices.filter(( /**
|
|
5265
|
+
* @param {?} service
|
|
5266
|
+
* @return {?}
|
|
5267
|
+
*/function (service) { return service.key; })) : [];
|
|
5268
|
+
this.SortAnOptions();
|
|
5269
|
+
};
|
|
5228
5270
|
/**
|
|
5229
5271
|
* @return {?}
|
|
5230
5272
|
*/
|
|
@@ -5232,21 +5274,148 @@
|
|
|
5232
5274
|
* @return {?}
|
|
5233
5275
|
*/
|
|
5234
5276
|
function () {
|
|
5235
|
-
|
|
5277
|
+
var _this = this;
|
|
5278
|
+
if (this.tempSelectedService === null) {
|
|
5279
|
+
return;
|
|
5280
|
+
}
|
|
5281
|
+
this.selectedServices = __spread(this.selectedServices, [this.tempSelectedService]);
|
|
5282
|
+
this.addSelectedServicesToForm([this.tempSelectedService]);
|
|
5283
|
+
this.services = this.services.filter(( /**
|
|
5284
|
+
* @param {?} s
|
|
5285
|
+
* @return {?}
|
|
5286
|
+
*/function (s) { return s.key !== _this.tempSelectedService.key; }));
|
|
5287
|
+
this.tempSelectedService = null;
|
|
5288
|
+
};
|
|
5289
|
+
/**
|
|
5290
|
+
* @param {?} service
|
|
5291
|
+
* @return {?}
|
|
5292
|
+
*/
|
|
5293
|
+
FindServiceComponent.prototype.removeService = /**
|
|
5294
|
+
* @param {?} service
|
|
5295
|
+
* @return {?}
|
|
5296
|
+
*/
|
|
5297
|
+
function (service) {
|
|
5298
|
+
if (service.key) {
|
|
5299
|
+
this.selectedServices = this.selectedServices !== null ? this.selectedServices.filter(( /**
|
|
5300
|
+
* @param {?} selectedService
|
|
5301
|
+
* @return {?}
|
|
5302
|
+
*/function (selectedService) { return selectedService.key !== service.key; })) : [];
|
|
5303
|
+
/** @type {?} */
|
|
5304
|
+
var formArray = ( /** @type {?} */(this.form.get(this.field.name)));
|
|
5305
|
+
/** @type {?} */
|
|
5306
|
+
var index = (formArray.value).findIndex(( /**
|
|
5307
|
+
* @param {?} selectedService
|
|
5308
|
+
* @return {?}
|
|
5309
|
+
*/function (selectedService) { return selectedService.key === service.key; }));
|
|
5310
|
+
if (index > -1) {
|
|
5311
|
+
formArray.removeAt(index);
|
|
5312
|
+
this.services.splice(index, 0, service);
|
|
5313
|
+
this.SortAnOptions();
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
};
|
|
5317
|
+
/**
|
|
5318
|
+
* @param {?} service
|
|
5319
|
+
* @return {?}
|
|
5320
|
+
*/
|
|
5321
|
+
FindServiceComponent.prototype.onServiceSelected = /**
|
|
5322
|
+
* @param {?} service
|
|
5323
|
+
* @return {?}
|
|
5324
|
+
*/
|
|
5325
|
+
function (service) {
|
|
5326
|
+
if (!service) {
|
|
5327
|
+
this.tempSelectedService = null;
|
|
5328
|
+
return;
|
|
5329
|
+
}
|
|
5330
|
+
if (this.field.maxSelected === 1) {
|
|
5331
|
+
this.removeSelectedValues();
|
|
5332
|
+
this.addSelectedServicesToForm([service]);
|
|
5333
|
+
}
|
|
5334
|
+
else {
|
|
5335
|
+
if (!this.selectedServices.find(( /**
|
|
5336
|
+
* @param {?} s
|
|
5337
|
+
* @return {?}
|
|
5338
|
+
*/function (s) { return s.key === service.key; }))) {
|
|
5339
|
+
if (service.key) {
|
|
5340
|
+
this.tempSelectedService = service;
|
|
5341
|
+
}
|
|
5342
|
+
}
|
|
5343
|
+
}
|
|
5344
|
+
};
|
|
5345
|
+
/**
|
|
5346
|
+
* @private
|
|
5347
|
+
* @return {?}
|
|
5348
|
+
*/
|
|
5349
|
+
FindServiceComponent.prototype.removeSelectedValues = /**
|
|
5350
|
+
* @private
|
|
5351
|
+
* @return {?}
|
|
5352
|
+
*/
|
|
5353
|
+
function () {
|
|
5354
|
+
/** @type {?} */
|
|
5355
|
+
var formArray = ( /** @type {?} */(this.form.get(this.field.name)));
|
|
5356
|
+
for (var i = 0; i < formArray.length; i++) {
|
|
5357
|
+
formArray.removeAt(i);
|
|
5358
|
+
}
|
|
5359
|
+
this.selectedServices = [];
|
|
5360
|
+
};
|
|
5361
|
+
/**
|
|
5362
|
+
* @private
|
|
5363
|
+
* @param {?} services
|
|
5364
|
+
* @return {?}
|
|
5365
|
+
*/
|
|
5366
|
+
FindServiceComponent.prototype.addSelectedServicesToForm = /**
|
|
5367
|
+
* @private
|
|
5368
|
+
* @param {?} services
|
|
5369
|
+
* @return {?}
|
|
5370
|
+
*/
|
|
5371
|
+
function (services) {
|
|
5372
|
+
var e_1, _a;
|
|
5373
|
+
/** @type {?} */
|
|
5374
|
+
var formArray = ( /** @type {?} */(this.form.get(this.field.name)));
|
|
5375
|
+
try {
|
|
5376
|
+
for (var services_1 = __values(services), services_1_1 = services_1.next(); !services_1_1.done; services_1_1 = services_1.next()) {
|
|
5377
|
+
var service = services_1_1.value;
|
|
5378
|
+
formArray.push(new forms.FormControl(service));
|
|
5379
|
+
}
|
|
5380
|
+
}
|
|
5381
|
+
catch (e_1_1) {
|
|
5382
|
+
e_1 = { error: e_1_1 };
|
|
5383
|
+
}
|
|
5384
|
+
finally {
|
|
5385
|
+
try {
|
|
5386
|
+
if (services_1_1 && !services_1_1.done && (_a = services_1.return))
|
|
5387
|
+
_a.call(services_1);
|
|
5388
|
+
}
|
|
5389
|
+
finally {
|
|
5390
|
+
if (e_1)
|
|
5391
|
+
throw e_1.error;
|
|
5392
|
+
}
|
|
5393
|
+
}
|
|
5394
|
+
};
|
|
5395
|
+
/**
|
|
5396
|
+
* @private
|
|
5397
|
+
* @return {?}
|
|
5398
|
+
*/
|
|
5399
|
+
FindServiceComponent.prototype.SortAnOptions = /**
|
|
5400
|
+
* @private
|
|
5401
|
+
* @return {?}
|
|
5402
|
+
*/
|
|
5403
|
+
function () {
|
|
5404
|
+
return this.services.sort(( /**
|
|
5405
|
+
* @param {?} a
|
|
5406
|
+
* @param {?} b
|
|
5407
|
+
* @return {?}
|
|
5408
|
+
*/function (a, b) {
|
|
5409
|
+
return a.label.toLowerCase() > b.label.toLowerCase() ? 1 : (b.label.toLowerCase() > a.label.toLowerCase() ? -1 : 0);
|
|
5410
|
+
}));
|
|
5236
5411
|
};
|
|
5237
5412
|
FindServiceComponent.decorators = [
|
|
5238
5413
|
{ type: i0.Component, args: [{
|
|
5239
5414
|
selector: 'xuilib-find-service',
|
|
5240
|
-
template: "<div class=\"service-picker-custom\">\n <div class=\"search-service\">\n
|
|
5415
|
+
template: "<div class=\"service-picker-custom\">\n <div class=\"search-service\">\n <div class=\"govuk-body\">\n <label id=\"selectServiceSearch-label\" for=\"serviceSearch__select\" *ngIf=\"serviceTitle\">\n {{ serviceTitle}}\n </label>\n </div>\n <div class=\"search-service__input-container\">\n <exui-search-service class=\"search-service__input\" [services]=\"services\"\n (serviceChanged)=\"onServiceSelected($event)\">\n </exui-search-service>\n <a href=\"javascript:void(0)\" (click)=\"addService()\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\" data-module=\"govuk-button\"\n *ngIf=\"enableAddServiceButton\" id=\"add-service\">\n Add\n </a>\n </div>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedServices\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeService(selection)\" href=\"javascript:void(0)\">\n {{ selection.label }}\n </a>\n </li>\n </ul>\n</div>",
|
|
5241
5416
|
styles: ["#add-service{background-color:#ddd}.search-service__input-container{display:flex}.search-service__input{flex:1 0 auto}"]
|
|
5242
5417
|
}] }
|
|
5243
5418
|
];
|
|
5244
|
-
/** @nocollapse */
|
|
5245
|
-
FindServiceComponent.ctorParameters = function () {
|
|
5246
|
-
return [
|
|
5247
|
-
{ type: forms.FormBuilder }
|
|
5248
|
-
];
|
|
5249
|
-
};
|
|
5250
5419
|
FindServiceComponent.propDecorators = {
|
|
5251
5420
|
field: [{ type: i0.Input }],
|
|
5252
5421
|
fields: [{ type: i0.Input }],
|
|
@@ -5254,9 +5423,9 @@
|
|
|
5254
5423
|
form: [{ type: i0.Input }],
|
|
5255
5424
|
services: [{ type: i0.Input }],
|
|
5256
5425
|
selectedServices: [{ type: i0.Input }],
|
|
5257
|
-
disabled: [{ type: i0.Input }],
|
|
5258
5426
|
enableAddServiceButton: [{ type: i0.Input }],
|
|
5259
|
-
|
|
5427
|
+
disabled: [{ type: i0.Input }],
|
|
5428
|
+
serviceFieldChanged: [{ type: i0.Output }]
|
|
5260
5429
|
};
|
|
5261
5430
|
return FindServiceComponent;
|
|
5262
5431
|
}());
|
|
@@ -5507,42 +5676,35 @@
|
|
|
5507
5676
|
*/
|
|
5508
5677
|
var SearchServiceComponent = /** @class */ (function () {
|
|
5509
5678
|
function SearchServiceComponent() {
|
|
5510
|
-
this.
|
|
5511
|
-
this.
|
|
5512
|
-
this.term = '';
|
|
5679
|
+
this.services = [];
|
|
5680
|
+
this.serviceChanged = new i0.EventEmitter();
|
|
5513
5681
|
}
|
|
5514
5682
|
/**
|
|
5683
|
+
* @param {?} key
|
|
5515
5684
|
* @return {?}
|
|
5516
5685
|
*/
|
|
5517
|
-
SearchServiceComponent.prototype.
|
|
5518
|
-
* @
|
|
5519
|
-
*/
|
|
5520
|
-
function () {
|
|
5521
|
-
// Todo
|
|
5522
|
-
};
|
|
5523
|
-
/**
|
|
5524
|
-
* @return {?}
|
|
5525
|
-
*/
|
|
5526
|
-
SearchServiceComponent.prototype.onSelectionChange = /**
|
|
5686
|
+
SearchServiceComponent.prototype.onSelectionChanged = /**
|
|
5687
|
+
* @param {?} key
|
|
5527
5688
|
* @return {?}
|
|
5528
5689
|
*/
|
|
5529
|
-
function () {
|
|
5530
|
-
|
|
5690
|
+
function (key) {
|
|
5691
|
+
/** @type {?} */
|
|
5692
|
+
var selectedService = this.services.find(( /**
|
|
5693
|
+
* @param {?} s
|
|
5694
|
+
* @return {?}
|
|
5695
|
+
*/function (s) { return s.key === key; }));
|
|
5696
|
+
this.serviceChanged.emit(selectedService);
|
|
5531
5697
|
};
|
|
5532
5698
|
SearchServiceComponent.decorators = [
|
|
5533
5699
|
{ type: i0.Component, args: [{
|
|
5534
5700
|
selector: 'exui-search-service',
|
|
5535
|
-
template: "<div class=\"
|
|
5701
|
+
template: "<div class=\"govuk-form-group\">\n <select id=\"serviceSearch__select\" class=\"govuk-select\" name=\"serviceSearch__select\"\n (change)=\"onSelectionChanged($event.target.value)\">\n <option [value]=\"null\">All</option>\n <option *ngFor=\"let service of services\" [value]=\"service.key\">\n {{ service.label }}\n </option>\n </select>\n</div>",
|
|
5536
5702
|
styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:rgba(0,0,0,.256863) 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{width:calc(100% - 4px);display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}"]
|
|
5537
5703
|
}] }
|
|
5538
5704
|
];
|
|
5539
5705
|
SearchServiceComponent.propDecorators = {
|
|
5540
5706
|
services: [{ type: i0.Input }],
|
|
5541
|
-
|
|
5542
|
-
disabled: [{ type: i0.Input }],
|
|
5543
|
-
delay: [{ type: i0.Input }],
|
|
5544
|
-
form: [{ type: i0.Input }],
|
|
5545
|
-
showAutocomplete: [{ type: i0.Input }]
|
|
5707
|
+
serviceChanged: [{ type: i0.Output }]
|
|
5546
5708
|
};
|
|
5547
5709
|
return SearchServiceComponent;
|
|
5548
5710
|
}());
|
|
@@ -6905,6 +7067,33 @@
|
|
|
6905
7067
|
return RemoveHostDirective;
|
|
6906
7068
|
}());
|
|
6907
7069
|
|
|
7070
|
+
/**
|
|
7071
|
+
* @fileoverview added by tsickle
|
|
7072
|
+
* Generated from: lib/pipes/capitalize.pipe.ts
|
|
7073
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7074
|
+
*/
|
|
7075
|
+
var CapitalizePipe = /** @class */ (function () {
|
|
7076
|
+
function CapitalizePipe() {
|
|
7077
|
+
}
|
|
7078
|
+
/**
|
|
7079
|
+
* @param {?} value
|
|
7080
|
+
* @return {?}
|
|
7081
|
+
*/
|
|
7082
|
+
CapitalizePipe.prototype.transform = /**
|
|
7083
|
+
* @param {?} value
|
|
7084
|
+
* @return {?}
|
|
7085
|
+
*/
|
|
7086
|
+
function (value) {
|
|
7087
|
+
/** @type {?} */
|
|
7088
|
+
var lowerCaseString = value.toLowerCase();
|
|
7089
|
+
return lowerCaseString.charAt(0).toUpperCase() + lowerCaseString.slice(1);
|
|
7090
|
+
};
|
|
7091
|
+
CapitalizePipe.decorators = [
|
|
7092
|
+
{ type: i0.Pipe, args: [{ name: 'capitalize' },] }
|
|
7093
|
+
];
|
|
7094
|
+
return CapitalizePipe;
|
|
7095
|
+
}());
|
|
7096
|
+
|
|
6908
7097
|
/**
|
|
6909
7098
|
* @fileoverview added by tsickle
|
|
6910
7099
|
* Generated from: lib/exui-common-lib.module.ts
|
|
@@ -6974,13 +7163,17 @@
|
|
|
6974
7163
|
GovUkFileUploadComponent,
|
|
6975
7164
|
RemoveHostDirective
|
|
6976
7165
|
];
|
|
7166
|
+
/** @type {?} */
|
|
7167
|
+
var pipes = [
|
|
7168
|
+
CapitalizePipe
|
|
7169
|
+
];
|
|
6977
7170
|
var ɵ0 = windowProvider;
|
|
6978
7171
|
var ExuiCommonLibModule = /** @class */ (function () {
|
|
6979
7172
|
function ExuiCommonLibModule() {
|
|
6980
7173
|
}
|
|
6981
7174
|
ExuiCommonLibModule.decorators = [
|
|
6982
7175
|
{ type: i0.NgModule, args: [{
|
|
6983
|
-
declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS),
|
|
7176
|
+
declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, pipes),
|
|
6984
7177
|
imports: [
|
|
6985
7178
|
i4.CommonModule,
|
|
6986
7179
|
forms.FormsModule,
|
|
@@ -6996,7 +7189,7 @@
|
|
|
6996
7189
|
],
|
|
6997
7190
|
exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
|
|
6998
7191
|
ngxPagination.PaginatePipe
|
|
6999
|
-
])
|
|
7192
|
+
], pipes)
|
|
7000
7193
|
},] }
|
|
7001
7194
|
];
|
|
7002
7195
|
return ExuiCommonLibModule;
|
|
@@ -8126,6 +8319,7 @@
|
|
|
8126
8319
|
exports.ɵbv = HmctsPrimaryNavigationComponent;
|
|
8127
8320
|
exports.ɵbu = HmctsSubNavigationComponent;
|
|
8128
8321
|
exports.ɵcn = RemoveHostDirective;
|
|
8322
|
+
exports.ɵco = CapitalizePipe;
|
|
8129
8323
|
exports.ɵr = CaseSharingStateService;
|
|
8130
8324
|
exports.ɵbg = CookieService;
|
|
8131
8325
|
exports.ɵh = FeatureToggleService;
|