@hmcts/rpx-xui-common-lib 1.7.0-ao-rectification.1 → 1.7.0
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 +556 -209
- 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 +29 -28
- package/esm2015/lib/components/find-person/find-person.component.js +1 -1
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +1 -2
- package/esm2015/lib/components/index.js +2 -2
- package/esm2015/lib/components/public_api.js +1 -2
- package/esm2015/lib/components/search-judicials/search-judicials.component.js +249 -0
- package/esm2015/lib/components/search-location/search-location.component.js +2 -2
- package/esm2015/lib/components/search-venue/search-venue.component.js +246 -0
- package/esm2015/lib/components/user-list/user-list.component.js +2 -57
- package/esm2015/lib/exui-common-lib.module.js +10 -12
- package/esm2015/lib/models/index.js +1 -2
- package/esm2015/lib/models/person.model.js +27 -1
- package/esm2015/lib/services/find-person/find-person.service.js +9 -1
- package/esm2015/lib/services/locations/location.service.js +11 -1
- package/esm2015/public-api.js +2 -2
- package/esm5/hmcts-rpx-xui-common-lib.js +29 -28
- package/esm5/lib/components/find-person/find-person.component.js +1 -1
- package/esm5/lib/components/generic-filter/generic-filter.component.js +1 -2
- package/esm5/lib/components/index.js +2 -2
- package/esm5/lib/components/public_api.js +1 -2
- package/esm5/lib/components/search-judicials/search-judicials.component.js +291 -0
- package/esm5/lib/components/search-location/search-location.component.js +2 -2
- package/esm5/lib/components/search-venue/search-venue.component.js +290 -0
- package/esm5/lib/components/user-list/user-list.component.js +2 -73
- package/esm5/lib/exui-common-lib.module.js +10 -13
- package/esm5/lib/models/index.js +1 -2
- package/esm5/lib/models/person.model.js +27 -1
- package/esm5/lib/services/find-person/find-person.service.js +14 -1
- package/esm5/lib/services/locations/location.service.js +25 -1
- package/esm5/public-api.js +2 -2
- package/fesm2015/hmcts-rpx-xui-common-lib.js +428 -164
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +532 -195
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +27 -26
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/public_api.d.ts +0 -1
- package/lib/components/search-judicials/search-judicials.component.d.ts +37 -0
- package/lib/components/search-venue/search-venue.component.d.ts +37 -0
- package/lib/components/user-list/user-list.component.d.ts +0 -8
- package/lib/exui-common-lib.module.d.ts +3 -1
- package/lib/models/index.d.ts +0 -1
- package/lib/models/person.model.d.ts +12 -0
- package/lib/services/find-person/find-person.service.d.ts +2 -1
- package/lib/services/locations/location.service.d.ts +8 -0
- package/package.json +2 -3
- package/esm2015/lib/components/pagination-v1/pagination.component.js +0 -130
- package/esm2015/lib/models/pagination.model.js +0 -16
- package/esm5/lib/components/pagination-v1/pagination.component.js +0 -144
- package/esm5/lib/models/pagination.model.js +0 -16
- package/lib/components/pagination-v1/pagination.component.d.ts +0 -19
- package/lib/models/pagination.model.d.ts +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/material
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/rpx-xui-common-lib', ['exports', '@angular/material
|
|
4
|
-
(factory((global.hmcts = global.hmcts || {}, global.hmcts['rpx-xui-common-lib'] = {}),global.ng.material
|
|
5
|
-
}(this, (function (exports,autocomplete,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/material'), require('@angular/material/autocomplete'), require('@angular/common/http'), require('@angular/forms'), require('launchdarkly-js-client-sdk'), require('@angular/common'), require('@angular/platform-browser'), require('@ng-idle/core'), require('@ng-idle/keepalive'), require('@angular/router'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/rpx-xui-common-lib', ['exports', '@angular/material', '@angular/material/autocomplete', '@angular/common/http', '@angular/forms', 'launchdarkly-js-client-sdk', '@angular/common', '@angular/platform-browser', '@ng-idle/core', '@ng-idle/keepalive', '@angular/router', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
+
(factory((global.hmcts = global.hmcts || {}, global.hmcts['rpx-xui-common-lib'] = {}),global.ng.material,global.ng.material.autocomplete,global.ng.common.http,global.ng.forms,global.LDClient,global.ng.common,global.ng.platformBrowser,global.i1$1,global.i2$1,global.ng.router,global.ng.core,global.rxjs,global.rxjs.operators));
|
|
5
|
+
}(this, (function (exports,material,autocomplete,i1,forms,LDClient,i4,i2,i1$1,i2$1,i2$2,i0,rxjs,operators) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @fileoverview added by tsickle
|
|
@@ -1130,7 +1130,6 @@
|
|
|
1130
1130
|
*/
|
|
1131
1131
|
function (values, field) {
|
|
1132
1132
|
var e_2, _a;
|
|
1133
|
-
console.log('updatePersonControls', values, field);
|
|
1134
1133
|
/** @type {?} */
|
|
1135
1134
|
var keys;
|
|
1136
1135
|
if (!values) {
|
|
@@ -3420,11 +3419,6 @@
|
|
|
3420
3419
|
function UserListComponent() {
|
|
3421
3420
|
this.users = [];
|
|
3422
3421
|
this.userClick = new i0.EventEmitter();
|
|
3423
|
-
this.moreResultsToGo = false;
|
|
3424
|
-
this.pagination = {
|
|
3425
|
-
page_number: 1,
|
|
3426
|
-
page_size: 25
|
|
3427
|
-
};
|
|
3428
3422
|
}
|
|
3429
3423
|
/**
|
|
3430
3424
|
* @param {?} user
|
|
@@ -3437,75 +3431,13 @@
|
|
|
3437
3431
|
function (user) {
|
|
3438
3432
|
this.userClick.emit(user);
|
|
3439
3433
|
};
|
|
3440
|
-
/**
|
|
3441
|
-
* @param {?} pageNumber
|
|
3442
|
-
* @return {?}
|
|
3443
|
-
*/
|
|
3444
|
-
UserListComponent.prototype.onPaginationHandler = /**
|
|
3445
|
-
* @param {?} pageNumber
|
|
3446
|
-
* @return {?}
|
|
3447
|
-
*/
|
|
3448
|
-
function (pageNumber) {
|
|
3449
|
-
this.pagination.page_number = pageNumber;
|
|
3450
|
-
};
|
|
3451
|
-
/**
|
|
3452
|
-
* @param {?} rows
|
|
3453
|
-
* @return {?}
|
|
3454
|
-
*/
|
|
3455
|
-
UserListComponent.prototype.getFirstResult = /**
|
|
3456
|
-
* @param {?} rows
|
|
3457
|
-
* @return {?}
|
|
3458
|
-
*/
|
|
3459
|
-
function (rows) {
|
|
3460
|
-
if (rows && rows.length > 0) {
|
|
3461
|
-
/** @type {?} */
|
|
3462
|
-
var currentPage = (this.pagination.page_number ? this.pagination.page_number : 1);
|
|
3463
|
-
if (currentPage === 1) {
|
|
3464
|
-
return currentPage;
|
|
3465
|
-
}
|
|
3466
|
-
return (currentPage - 1) * this.pagination.page_size + 1;
|
|
3467
|
-
}
|
|
3468
|
-
return 0;
|
|
3469
|
-
};
|
|
3470
|
-
/**
|
|
3471
|
-
* @param {?} rows
|
|
3472
|
-
* @return {?}
|
|
3473
|
-
*/
|
|
3474
|
-
UserListComponent.prototype.getLastResult = /**
|
|
3475
|
-
* @param {?} rows
|
|
3476
|
-
* @return {?}
|
|
3477
|
-
*/
|
|
3478
|
-
function (rows) {
|
|
3479
|
-
if (rows && rows.length > 0) {
|
|
3480
|
-
/** @type {?} */
|
|
3481
|
-
var currentPage = (this.pagination.page_number ? this.pagination.page_number : 1);
|
|
3482
|
-
return (currentPage) * this.pagination.page_size;
|
|
3483
|
-
}
|
|
3484
|
-
return 0;
|
|
3485
|
-
};
|
|
3486
|
-
/**
|
|
3487
|
-
* @param {?} rows
|
|
3488
|
-
* @return {?}
|
|
3489
|
-
*/
|
|
3490
|
-
UserListComponent.prototype.getTotalResults = /**
|
|
3491
|
-
* @param {?} rows
|
|
3492
|
-
* @return {?}
|
|
3493
|
-
*/
|
|
3494
|
-
function (rows) {
|
|
3495
|
-
if (rows && rows.length > 0) {
|
|
3496
|
-
return rows.length;
|
|
3497
|
-
}
|
|
3498
|
-
return 0;
|
|
3499
|
-
};
|
|
3500
3434
|
UserListComponent.decorators = [
|
|
3501
3435
|
{ type: i0.Component, args: [{
|
|
3502
3436
|
selector: 'xuilib-user-list',
|
|
3503
|
-
template: "<
|
|
3437
|
+
template: "<table class=\"govuk-table\">\n <thead clas=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\">Name</th>\n <th class=\"govuk-table__header\" scope=\"col\">Email</th>\n <th class=\"govuk-table__header\" scope=\"col\">Status</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" data-selector=\"table-row\" *ngFor=\"let u of users\">\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">\n <a class=\"govuk-link\" [attr.title]=\"u.routerLinkTitle\" [routerLink]=\"u.routerLink\" (click)=\"onUserClick(u)\">{{ u.fullName }}</a>\n </td>\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">{{ u.email }}</td>\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">{{ u.status }}</td>\n </tr>\n </tbody>\n</table>",
|
|
3504
3438
|
styles: [":host{display:block}"]
|
|
3505
3439
|
}] }
|
|
3506
3440
|
];
|
|
3507
|
-
/** @nocollapse */
|
|
3508
|
-
UserListComponent.ctorParameters = function () { return []; };
|
|
3509
3441
|
UserListComponent.propDecorators = {
|
|
3510
3442
|
users: [{ type: i0.Input }],
|
|
3511
3443
|
userClick: [{ type: i0.Output }]
|
|
@@ -3812,6 +3744,30 @@
|
|
|
3812
3744
|
function (serviceIds, locationType, searchTerm) {
|
|
3813
3745
|
return this.http.get("api/locations/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
|
|
3814
3746
|
};
|
|
3747
|
+
/**
|
|
3748
|
+
* @description searchLocations from service Ids/location type/search term
|
|
3749
|
+
* @param serviceIds: BBA3 | BBA3,BFA1 split with ','
|
|
3750
|
+
* @param locationType: optional | hearing | case_management
|
|
3751
|
+
* @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
|
|
3752
|
+
* @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
|
|
3753
|
+
*/
|
|
3754
|
+
/**
|
|
3755
|
+
* \@description searchLocations from service Ids/location type/search term
|
|
3756
|
+
* @param {?} serviceIds
|
|
3757
|
+
* @param {?} locationType
|
|
3758
|
+
* @param {?} searchTerm
|
|
3759
|
+
* @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
|
|
3760
|
+
*/
|
|
3761
|
+
LocationService.prototype.searchLocations = /**
|
|
3762
|
+
* \@description searchLocations from service Ids/location type/search term
|
|
3763
|
+
* @param {?} serviceIds
|
|
3764
|
+
* @param {?} locationType
|
|
3765
|
+
* @param {?} searchTerm
|
|
3766
|
+
* @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
|
|
3767
|
+
*/
|
|
3768
|
+
function (serviceIds, locationType, searchTerm) {
|
|
3769
|
+
return this.http.get("api/prd/location/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
|
|
3770
|
+
};
|
|
3815
3771
|
LocationService.decorators = [
|
|
3816
3772
|
{ type: i0.Injectable, args: [{
|
|
3817
3773
|
providedIn: 'root'
|
|
@@ -4015,7 +3971,7 @@
|
|
|
4015
3971
|
SearchLocationComponent.decorators = [
|
|
4016
3972
|
{ type: i0.Component, args: [{
|
|
4017
3973
|
selector: 'exui-search-location',
|
|
4018
|
-
template: "<div class=\"auto-complete-container\">\n <input\n [formControl]=\"form.controls.searchTerm\"\n [matAutocomplete]=\"autoSearchLocation\"\n class=\"govuk-input\"\n [attr.disabled]=\"disabled\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLocation=\"matAutocomplete\">\n <mat-option *ngFor=\"let location of locations\"\n (onSelectionChange)=\"onSelectionChange(location)\">\n {{ location.site_name }}\n </mat-option>\n <mat-option *ngIf=\"!locations.length && showAutocomplete && term && term.length >= this.minSearchCharacters\">No results found</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
3974
|
+
template: "<div class=\"auto-complete-container\">\n <input\n id=\"inputLocationSearch\"\n [formControl]=\"form.controls.searchTerm\"\n [matAutocomplete]=\"autoSearchLocation\"\n class=\"govuk-input\"\n [attr.disabled]=\"disabled\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLocation=\"matAutocomplete\">\n <mat-option *ngFor=\"let location of locations\"\n (onSelectionChange)=\"onSelectionChange(location)\">\n {{ location.site_name }}\n </mat-option>\n <mat-option *ngIf=\"!locations.length && showAutocomplete && term && term.length >= this.minSearchCharacters\">No results found</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
4019
3975
|
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:100%;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{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}"]
|
|
4020
3976
|
}] }
|
|
4021
3977
|
];
|
|
@@ -4311,105 +4267,6 @@
|
|
|
4311
4267
|
return PaginationComponent;
|
|
4312
4268
|
}());
|
|
4313
4269
|
|
|
4314
|
-
/**
|
|
4315
|
-
* @fileoverview added by tsickle
|
|
4316
|
-
* Generated from: lib/components/pagination-v1/pagination.component.ts
|
|
4317
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4318
|
-
*/
|
|
4319
|
-
/**
|
|
4320
|
-
* @param {?} input
|
|
4321
|
-
* @return {?}
|
|
4322
|
-
*/
|
|
4323
|
-
function coerceToBoolean(input$$1) {
|
|
4324
|
-
return !!input$$1 && input$$1 !== 'false';
|
|
4325
|
-
}
|
|
4326
|
-
var PaginationV1Component = /** @class */ (function () {
|
|
4327
|
-
function PaginationV1Component() {
|
|
4328
|
-
this.maxSize = 7;
|
|
4329
|
-
this.previousLabel = 'Previous';
|
|
4330
|
-
this.nextLabel = 'Next';
|
|
4331
|
-
this.screenReaderPaginationLabel = 'Pagination';
|
|
4332
|
-
this.screenReaderPageLabel = 'page';
|
|
4333
|
-
this.screenReaderCurrentLabel = "You're on page";
|
|
4334
|
-
this.pageChange = new i0.EventEmitter();
|
|
4335
|
-
this.pageBoundsCorrection = new i0.EventEmitter();
|
|
4336
|
-
// tslint:disable-next-line:variable-name
|
|
4337
|
-
this._directionLinks = true;
|
|
4338
|
-
// tslint:disable-next-line:variable-name
|
|
4339
|
-
this._autoHide = false;
|
|
4340
|
-
// tslint:disable-next-line:variable-name
|
|
4341
|
-
this._responsive = false;
|
|
4342
|
-
}
|
|
4343
|
-
Object.defineProperty(PaginationV1Component.prototype, "directionLinks", {
|
|
4344
|
-
get: /**
|
|
4345
|
-
* @return {?}
|
|
4346
|
-
*/ function () {
|
|
4347
|
-
return this._directionLinks;
|
|
4348
|
-
},
|
|
4349
|
-
set: /**
|
|
4350
|
-
* @param {?} value
|
|
4351
|
-
* @return {?}
|
|
4352
|
-
*/ function (value) {
|
|
4353
|
-
this._directionLinks = coerceToBoolean(value);
|
|
4354
|
-
},
|
|
4355
|
-
enumerable: true,
|
|
4356
|
-
configurable: true
|
|
4357
|
-
});
|
|
4358
|
-
Object.defineProperty(PaginationV1Component.prototype, "autoHide", {
|
|
4359
|
-
get: /**
|
|
4360
|
-
* @return {?}
|
|
4361
|
-
*/ function () {
|
|
4362
|
-
return this._autoHide;
|
|
4363
|
-
},
|
|
4364
|
-
set: /**
|
|
4365
|
-
* @param {?} value
|
|
4366
|
-
* @return {?}
|
|
4367
|
-
*/ function (value) {
|
|
4368
|
-
this._autoHide = coerceToBoolean(value);
|
|
4369
|
-
},
|
|
4370
|
-
enumerable: true,
|
|
4371
|
-
configurable: true
|
|
4372
|
-
});
|
|
4373
|
-
Object.defineProperty(PaginationV1Component.prototype, "responsive", {
|
|
4374
|
-
get: /**
|
|
4375
|
-
* @return {?}
|
|
4376
|
-
*/ function () {
|
|
4377
|
-
return this._responsive;
|
|
4378
|
-
},
|
|
4379
|
-
set: /**
|
|
4380
|
-
* @param {?} value
|
|
4381
|
-
* @return {?}
|
|
4382
|
-
*/ function (value) {
|
|
4383
|
-
this._responsive = coerceToBoolean(value);
|
|
4384
|
-
},
|
|
4385
|
-
enumerable: true,
|
|
4386
|
-
configurable: true
|
|
4387
|
-
});
|
|
4388
|
-
PaginationV1Component.decorators = [
|
|
4389
|
-
{ type: i0.Component, args: [{
|
|
4390
|
-
selector: 'xuilib-pagination-v1',
|
|
4391
|
-
template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" aria-label=\"Pagination\">\n <ul class=\"ngx-pagination\" role=\"navigation\" [attr.aria-label]=\"screenReaderPaginationLabel\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"previousLabel + ' ' + screenReaderPageLabel\">\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\">\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\n <span class=\"show-for-sr\">{{ screenReaderCurrentLabel }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </ng-container>\n </li>\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\"\n [attr.aria-label]=\"nextLabel + ' ' + screenReaderPageLabel\">\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </a>\n <span *ngIf=\"p.isLastPage()\">\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </span>\n </li>\n </ul>\n </nav>\n</pagination-template>\n",
|
|
4392
|
-
styles: [".ngx-pagination{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination::after,.ngx-pagination::before{content:\" \";display:table}.ngx-pagination::after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination a,.ngx-pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6;cursor:pointer}.ngx-pagination a:hover,.ngx-pagination button:hover{background:#e6e6e6}.ngx-pagination .current{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination .disabled{display:none}.ngx-pagination .disabled:hover{background:0 0}.ngx-pagination .pagination-previous a::before,.ngx-pagination .pagination-previous.disabled::before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:0 0;transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination .pagination-next a::after,.ngx-pagination .pagination-next.disabled::after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:0 0;transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination .small-screen{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive .small-screen{display:inline-block}.ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"]
|
|
4393
|
-
}] }
|
|
4394
|
-
];
|
|
4395
|
-
PaginationV1Component.propDecorators = {
|
|
4396
|
-
visibilityLabel: [{ type: i0.Input }],
|
|
4397
|
-
id: [{ type: i0.Input }],
|
|
4398
|
-
maxSize: [{ type: i0.Input }],
|
|
4399
|
-
directionLinks: [{ type: i0.Input }],
|
|
4400
|
-
autoHide: [{ type: i0.Input }],
|
|
4401
|
-
responsive: [{ type: i0.Input }],
|
|
4402
|
-
previousLabel: [{ type: i0.Input }],
|
|
4403
|
-
nextLabel: [{ type: i0.Input }],
|
|
4404
|
-
screenReaderPaginationLabel: [{ type: i0.Input }],
|
|
4405
|
-
screenReaderPageLabel: [{ type: i0.Input }],
|
|
4406
|
-
screenReaderCurrentLabel: [{ type: i0.Input }],
|
|
4407
|
-
pageChange: [{ type: i0.Output }],
|
|
4408
|
-
pageBoundsCorrection: [{ type: i0.Output }]
|
|
4409
|
-
};
|
|
4410
|
-
return PaginationV1Component;
|
|
4411
|
-
}());
|
|
4412
|
-
|
|
4413
4270
|
/**
|
|
4414
4271
|
* @fileoverview added by tsickle
|
|
4415
4272
|
* Generated from: lib/components/public_api.ts
|
|
@@ -4963,6 +4820,19 @@
|
|
|
4963
4820
|
* @return {?}
|
|
4964
4821
|
*/function (person) { return person && person.id !== _this.userId && person.id !== _this.assignedUser; }));
|
|
4965
4822
|
};
|
|
4823
|
+
/**
|
|
4824
|
+
* @param {?} value
|
|
4825
|
+
* @param {?} serviceId
|
|
4826
|
+
* @return {?}
|
|
4827
|
+
*/
|
|
4828
|
+
FindAPersonService.prototype.searchJudicial = /**
|
|
4829
|
+
* @param {?} value
|
|
4830
|
+
* @param {?} serviceId
|
|
4831
|
+
* @return {?}
|
|
4832
|
+
*/
|
|
4833
|
+
function (value, serviceId) {
|
|
4834
|
+
return this.http.post('api/prd/judicial/getJudicialUsersSearch', { searchString: value, serviceCode: serviceId });
|
|
4835
|
+
};
|
|
4966
4836
|
FindAPersonService.caseworkersKey = 'caseworkers';
|
|
4967
4837
|
FindAPersonService.decorators = [
|
|
4968
4838
|
{ type: i0.Injectable, args: [{
|
|
@@ -5177,6 +5047,485 @@
|
|
|
5177
5047
|
return FindPersonComponent;
|
|
5178
5048
|
}());
|
|
5179
5049
|
|
|
5050
|
+
/**
|
|
5051
|
+
* @fileoverview added by tsickle
|
|
5052
|
+
* Generated from: lib/components/search-judicials/search-judicials.component.ts
|
|
5053
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5054
|
+
*/
|
|
5055
|
+
var SearchJudicialsComponent = /** @class */ (function () {
|
|
5056
|
+
function SearchJudicialsComponent(judicialService, fb) {
|
|
5057
|
+
this.judicialService = judicialService;
|
|
5058
|
+
this.disabled = null;
|
|
5059
|
+
this.selectedJudicials = [];
|
|
5060
|
+
this.submitted = true;
|
|
5061
|
+
this.placeholderContent = '';
|
|
5062
|
+
this.showAutocomplete = false;
|
|
5063
|
+
this.judicialChanged = new i0.EventEmitter();
|
|
5064
|
+
this.idValue = '';
|
|
5065
|
+
this.errorMessage = 'You must select a name';
|
|
5066
|
+
this.serviceId = '';
|
|
5067
|
+
this.minSearchCharacters = 3;
|
|
5068
|
+
this.keyUpSubject$ = new rxjs.Subject();
|
|
5069
|
+
this.searchInProgress = false;
|
|
5070
|
+
this.formGroup = fb.group({
|
|
5071
|
+
formControl: [null],
|
|
5072
|
+
selectedFormControl: [null]
|
|
5073
|
+
});
|
|
5074
|
+
}
|
|
5075
|
+
/**
|
|
5076
|
+
* @return {?}
|
|
5077
|
+
*/
|
|
5078
|
+
SearchJudicialsComponent.prototype.ngOnInit = /**
|
|
5079
|
+
* @return {?}
|
|
5080
|
+
*/
|
|
5081
|
+
function () {
|
|
5082
|
+
var _this = this;
|
|
5083
|
+
this.displayedJudicials = [];
|
|
5084
|
+
if (this.control) {
|
|
5085
|
+
if (this.formGroup && this.formGroup.controls) {
|
|
5086
|
+
this.formGroup.controls.selectedFormControl = this.control;
|
|
5087
|
+
this.formGroup.controls.formControl.setValue(this.getControlValueDisplayText());
|
|
5088
|
+
}
|
|
5089
|
+
}
|
|
5090
|
+
this.keyUpSubject$.pipe(operators.debounceTime(500)).subscribe(( /**
|
|
5091
|
+
* @param {?} searchValue
|
|
5092
|
+
* @return {?}
|
|
5093
|
+
*/function (searchValue) { return _this.search(( /** @type {?} */(searchValue))); }));
|
|
5094
|
+
};
|
|
5095
|
+
/**
|
|
5096
|
+
* @return {?}
|
|
5097
|
+
*/
|
|
5098
|
+
SearchJudicialsComponent.prototype.onKeyDown = /**
|
|
5099
|
+
* @return {?}
|
|
5100
|
+
*/
|
|
5101
|
+
function () {
|
|
5102
|
+
this.judicialChanged.emit();
|
|
5103
|
+
};
|
|
5104
|
+
/**
|
|
5105
|
+
* @param {?} event
|
|
5106
|
+
* @return {?}
|
|
5107
|
+
*/
|
|
5108
|
+
SearchJudicialsComponent.prototype.onKeyUp = /**
|
|
5109
|
+
* @param {?} event
|
|
5110
|
+
* @return {?}
|
|
5111
|
+
*/
|
|
5112
|
+
function (event) {
|
|
5113
|
+
this.showAutocomplete = false;
|
|
5114
|
+
this.keyUpSubject$.next(event.target.value);
|
|
5115
|
+
};
|
|
5116
|
+
/**
|
|
5117
|
+
* @return {?}
|
|
5118
|
+
*/
|
|
5119
|
+
SearchJudicialsComponent.prototype.onFocus = /**
|
|
5120
|
+
* @return {?}
|
|
5121
|
+
*/
|
|
5122
|
+
function () {
|
|
5123
|
+
this.showAutocomplete = false;
|
|
5124
|
+
};
|
|
5125
|
+
Object.defineProperty(SearchJudicialsComponent.prototype, "displayedJudicialsDuplicationFiltered", {
|
|
5126
|
+
get: /**
|
|
5127
|
+
* @return {?}
|
|
5128
|
+
*/ function () {
|
|
5129
|
+
var _this = this;
|
|
5130
|
+
return this.displayedJudicials.filter(( /**
|
|
5131
|
+
* @param {?} judicial
|
|
5132
|
+
* @return {?}
|
|
5133
|
+
*/function (judicial) {
|
|
5134
|
+
return !_this.selectedJudicials.map(( /**
|
|
5135
|
+
* @param {?} selectedJudicial
|
|
5136
|
+
* @return {?}
|
|
5137
|
+
*/function (selectedJudicial) { return selectedJudicial.idamId; })).includes(judicial.idamId);
|
|
5138
|
+
}));
|
|
5139
|
+
},
|
|
5140
|
+
enumerable: true,
|
|
5141
|
+
configurable: true
|
|
5142
|
+
});
|
|
5143
|
+
/**
|
|
5144
|
+
* @param {?} term
|
|
5145
|
+
* @return {?}
|
|
5146
|
+
*/
|
|
5147
|
+
SearchJudicialsComponent.prototype.filter = /**
|
|
5148
|
+
* @param {?} term
|
|
5149
|
+
* @return {?}
|
|
5150
|
+
*/
|
|
5151
|
+
function (term) {
|
|
5152
|
+
var _this = this;
|
|
5153
|
+
this.searchJudicials(term, this.serviceId).pipe(operators.mergeMap(( /**
|
|
5154
|
+
* @param {?} apiData
|
|
5155
|
+
* @return {?}
|
|
5156
|
+
*/function (apiData) {
|
|
5157
|
+
/** @type {?} */
|
|
5158
|
+
var apiFilter = apiData.filter(( /**
|
|
5159
|
+
* @param {?} apiJudicial
|
|
5160
|
+
* @return {?}
|
|
5161
|
+
*/function (apiJudicial) {
|
|
5162
|
+
return !_this.selectedJudicials.map(( /**
|
|
5163
|
+
* @param {?} selectedJudicial
|
|
5164
|
+
* @return {?}
|
|
5165
|
+
*/function (selectedJudicial) { return selectedJudicial.idamId; })).includes(apiJudicial.idamId);
|
|
5166
|
+
}));
|
|
5167
|
+
_this.displayedJudicials = apiFilter;
|
|
5168
|
+
_this.searchInProgress = false;
|
|
5169
|
+
return apiFilter;
|
|
5170
|
+
}))).subscribe(( /**
|
|
5171
|
+
* @param {?} judicial
|
|
5172
|
+
* @return {?}
|
|
5173
|
+
*/function (judicial) {
|
|
5174
|
+
if (term === judicial.knownAs) {
|
|
5175
|
+
_this.formGroup.controls.selectedFormControl.setValue(judicial);
|
|
5176
|
+
_this.displayedJudicials = [];
|
|
5177
|
+
_this.judicialChanged.emit(judicial);
|
|
5178
|
+
_this.showAutocomplete = false;
|
|
5179
|
+
}
|
|
5180
|
+
_this.searchInProgress = false;
|
|
5181
|
+
}));
|
|
5182
|
+
};
|
|
5183
|
+
/**
|
|
5184
|
+
* @param {?=} selection
|
|
5185
|
+
* @return {?}
|
|
5186
|
+
*/
|
|
5187
|
+
SearchJudicialsComponent.prototype.onSelectionChange = /**
|
|
5188
|
+
* @param {?=} selection
|
|
5189
|
+
* @return {?}
|
|
5190
|
+
*/
|
|
5191
|
+
function (selection) {
|
|
5192
|
+
if (this.formGroup.controls.formControl instanceof forms.FormArray) {
|
|
5193
|
+
(( /** @type {?} */(this.formGroup.controls.selectedFormControl))).push(new forms.FormControl(selection.idamId));
|
|
5194
|
+
}
|
|
5195
|
+
else {
|
|
5196
|
+
this.formGroup.controls.selectedFormControl.setValue(selection);
|
|
5197
|
+
}
|
|
5198
|
+
this.judicialChanged.emit(selection);
|
|
5199
|
+
};
|
|
5200
|
+
/**
|
|
5201
|
+
* @param {?} currentValue
|
|
5202
|
+
* @return {?}
|
|
5203
|
+
*/
|
|
5204
|
+
SearchJudicialsComponent.prototype.search = /**
|
|
5205
|
+
* @param {?} currentValue
|
|
5206
|
+
* @return {?}
|
|
5207
|
+
*/
|
|
5208
|
+
function (currentValue) {
|
|
5209
|
+
this.searchInProgress = true;
|
|
5210
|
+
this.showAutocomplete = !!currentValue && (currentValue.length >= this.minSearchCharacters);
|
|
5211
|
+
if (!!currentValue) {
|
|
5212
|
+
this.formGroup.controls.selectedFormControl.markAsDirty();
|
|
5213
|
+
}
|
|
5214
|
+
else {
|
|
5215
|
+
this.formGroup.controls.selectedFormControl.reset();
|
|
5216
|
+
}
|
|
5217
|
+
if (this.showAutocomplete) {
|
|
5218
|
+
this.filter(currentValue);
|
|
5219
|
+
}
|
|
5220
|
+
else {
|
|
5221
|
+
this.searchInProgress = false;
|
|
5222
|
+
}
|
|
5223
|
+
};
|
|
5224
|
+
/**
|
|
5225
|
+
* @param {?} selectedJudicial
|
|
5226
|
+
* @return {?}
|
|
5227
|
+
*/
|
|
5228
|
+
SearchJudicialsComponent.prototype.getDisplayName = /**
|
|
5229
|
+
* @param {?} selectedJudicial
|
|
5230
|
+
* @return {?}
|
|
5231
|
+
*/
|
|
5232
|
+
function (selectedJudicial) {
|
|
5233
|
+
return selectedJudicial.knownAs + " (" + selectedJudicial.emailId + ")";
|
|
5234
|
+
};
|
|
5235
|
+
/**
|
|
5236
|
+
* @param {?} term
|
|
5237
|
+
* @param {?} serviceId
|
|
5238
|
+
* @return {?}
|
|
5239
|
+
*/
|
|
5240
|
+
SearchJudicialsComponent.prototype.searchJudicials = /**
|
|
5241
|
+
* @param {?} term
|
|
5242
|
+
* @param {?} serviceId
|
|
5243
|
+
* @return {?}
|
|
5244
|
+
*/
|
|
5245
|
+
function (term, serviceId) {
|
|
5246
|
+
return this.judicialService.searchJudicial(term, serviceId);
|
|
5247
|
+
};
|
|
5248
|
+
/**
|
|
5249
|
+
* @return {?}
|
|
5250
|
+
*/
|
|
5251
|
+
SearchJudicialsComponent.prototype.getControlValueDisplayText = /**
|
|
5252
|
+
* @return {?}
|
|
5253
|
+
*/
|
|
5254
|
+
function () {
|
|
5255
|
+
return this.formGroup && this.formGroup.controls && this.formGroup.controls.selectedFormControl.value ?
|
|
5256
|
+
this.getDisplayName(( /** @type {?} */(this.formGroup.controls.selectedFormControl.value))) : '';
|
|
5257
|
+
};
|
|
5258
|
+
SearchJudicialsComponent.decorators = [
|
|
5259
|
+
{ type: i0.Component, args: [{
|
|
5260
|
+
selector: 'xuilib-search-judicials',
|
|
5261
|
+
template: "<div class=\"govuk-form-group\">\n <input id=\"inputSelectPerson{{idValue}}\" [placeholder]=\"placeholderContent\" [formControl]=\"formGroup.controls.formControl\"\n [matAutocomplete]=\"autoComplete\" (keydown)=\"onKeyDown()\" (keyup)=\"onKeyUp($event)\" (focus)=\"onFocus()\"\n class=\"govuk-input\" [attr.disabled]=\"!disabled ? null: disabled\" [value]=\"getControlValueDisplayText()\"\n #inputSelection>\n <mat-autocomplete autoActiveFirstOption #autoComplete=\"matAutocomplete\">\n <mat-option *ngFor=\"let judicial of displayedJudicialsDuplicationFiltered\" class=\"select-option\"\n [value]=\"getDisplayName(judicial)\" (onSelectionChange)=\"onSelectionChange(judicial)\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete}\">\n {{ getDisplayName(judicial) }}\n </mat-option>\n <mat-option class=\"select-option\"\n *ngIf=\"!displayedJudicialsDuplicationFiltered?.length && showAutocomplete && !searchInProgress\">\n {{ 'No results found' }}</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
5262
|
+
styles: [".hide-autocomplete{display:none}.mat-option:hover{background:#2596be}.mat-option.select-option:hover{background:#1d70b8;color:#fff}"]
|
|
5263
|
+
}] }
|
|
5264
|
+
];
|
|
5265
|
+
/** @nocollapse */
|
|
5266
|
+
SearchJudicialsComponent.ctorParameters = function () {
|
|
5267
|
+
return [
|
|
5268
|
+
{ type: FindAPersonService },
|
|
5269
|
+
{ type: forms.FormBuilder }
|
|
5270
|
+
];
|
|
5271
|
+
};
|
|
5272
|
+
SearchJudicialsComponent.propDecorators = {
|
|
5273
|
+
control: [{ type: i0.Input }],
|
|
5274
|
+
disabled: [{ type: i0.Input }],
|
|
5275
|
+
selectedJudicials: [{ type: i0.Input }],
|
|
5276
|
+
submitted: [{ type: i0.Input }],
|
|
5277
|
+
placeholderContent: [{ type: i0.Input }],
|
|
5278
|
+
showAutocomplete: [{ type: i0.Input }],
|
|
5279
|
+
displayedJudicials: [{ type: i0.Input }],
|
|
5280
|
+
judicialChanged: [{ type: i0.Output }],
|
|
5281
|
+
idValue: [{ type: i0.Input }],
|
|
5282
|
+
errorMessage: [{ type: i0.Input }],
|
|
5283
|
+
serviceId: [{ type: i0.Input }],
|
|
5284
|
+
autoCompleteInputBox: [{ type: i0.ViewChild, args: ['inputSelection', { read: i0.ElementRef },] }]
|
|
5285
|
+
};
|
|
5286
|
+
return SearchJudicialsComponent;
|
|
5287
|
+
}());
|
|
5288
|
+
|
|
5289
|
+
/**
|
|
5290
|
+
* @fileoverview added by tsickle
|
|
5291
|
+
* Generated from: lib/components/search-venue/search-venue.component.ts
|
|
5292
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5293
|
+
*/
|
|
5294
|
+
var SearchVenueComponent = /** @class */ (function () {
|
|
5295
|
+
function SearchVenueComponent(locationService, fb) {
|
|
5296
|
+
this.locationService = locationService;
|
|
5297
|
+
this.disabled = null;
|
|
5298
|
+
this.locationType = '';
|
|
5299
|
+
this.serviceIds = '';
|
|
5300
|
+
this.submitted = true;
|
|
5301
|
+
this.showAutocomplete = false;
|
|
5302
|
+
this.locationChanged = new i0.EventEmitter();
|
|
5303
|
+
this.minSearchCharacters = 3;
|
|
5304
|
+
this.keyUpSubject$ = new rxjs.Subject();
|
|
5305
|
+
this.readyAfterContent = false;
|
|
5306
|
+
this.searchInProgress = false;
|
|
5307
|
+
this.findLocationFormGroup = fb.group({
|
|
5308
|
+
findLocationFormControl: [null],
|
|
5309
|
+
locationSelectedFormControl: [null]
|
|
5310
|
+
});
|
|
5311
|
+
this.selectedLocations = [];
|
|
5312
|
+
}
|
|
5313
|
+
/**
|
|
5314
|
+
* @return {?}
|
|
5315
|
+
*/
|
|
5316
|
+
SearchVenueComponent.prototype.ngAfterContentInit = /**
|
|
5317
|
+
* @return {?}
|
|
5318
|
+
*/
|
|
5319
|
+
function () {
|
|
5320
|
+
this.readyAfterContent = true;
|
|
5321
|
+
};
|
|
5322
|
+
/**
|
|
5323
|
+
* @return {?}
|
|
5324
|
+
*/
|
|
5325
|
+
SearchVenueComponent.prototype.ngOnInit = /**
|
|
5326
|
+
* @return {?}
|
|
5327
|
+
*/
|
|
5328
|
+
function () {
|
|
5329
|
+
var _this = this;
|
|
5330
|
+
this.displayedLocations = [];
|
|
5331
|
+
if (this.control) {
|
|
5332
|
+
if (this.findLocationFormGroup && this.findLocationFormGroup.controls) {
|
|
5333
|
+
this.findLocationFormGroup.controls.locationSelectedFormControl = this.control;
|
|
5334
|
+
}
|
|
5335
|
+
}
|
|
5336
|
+
this.keyUpSubject$.pipe(operators.debounceTime(500)).subscribe(( /**
|
|
5337
|
+
* @param {?} searchValue
|
|
5338
|
+
* @return {?}
|
|
5339
|
+
*/function (searchValue) { return _this.search(( /** @type {?} */(searchValue))); }));
|
|
5340
|
+
};
|
|
5341
|
+
/**
|
|
5342
|
+
* @return {?}
|
|
5343
|
+
*/
|
|
5344
|
+
SearchVenueComponent.prototype.onKeyDown = /**
|
|
5345
|
+
* @return {?}
|
|
5346
|
+
*/
|
|
5347
|
+
function () {
|
|
5348
|
+
this.locationChanged.emit();
|
|
5349
|
+
};
|
|
5350
|
+
/**
|
|
5351
|
+
* @param {?} event
|
|
5352
|
+
* @return {?}
|
|
5353
|
+
*/
|
|
5354
|
+
SearchVenueComponent.prototype.onKeyUp = /**
|
|
5355
|
+
* @param {?} event
|
|
5356
|
+
* @return {?}
|
|
5357
|
+
*/
|
|
5358
|
+
function (event) {
|
|
5359
|
+
this.showAutocomplete = false;
|
|
5360
|
+
this.keyUpSubject$.next(event.target.value);
|
|
5361
|
+
};
|
|
5362
|
+
/**
|
|
5363
|
+
* @return {?}
|
|
5364
|
+
*/
|
|
5365
|
+
SearchVenueComponent.prototype.onFocus = /**
|
|
5366
|
+
* @return {?}
|
|
5367
|
+
*/
|
|
5368
|
+
function () {
|
|
5369
|
+
this.showAutocomplete = false;
|
|
5370
|
+
};
|
|
5371
|
+
Object.defineProperty(SearchVenueComponent.prototype, "displayedLocationsDuplicationFiltered", {
|
|
5372
|
+
get: /**
|
|
5373
|
+
* @return {?}
|
|
5374
|
+
*/ function () {
|
|
5375
|
+
var _this = this;
|
|
5376
|
+
return this.displayedLocations.filter(( /**
|
|
5377
|
+
* @param {?} location
|
|
5378
|
+
* @return {?}
|
|
5379
|
+
*/function (location) {
|
|
5380
|
+
return !_this.selectedLocations.map(( /**
|
|
5381
|
+
* @param {?} selectedLocation
|
|
5382
|
+
* @return {?}
|
|
5383
|
+
*/function (selectedLocation) { return selectedLocation.epimms_id; })).includes(location.epimms_id) && location.court_name;
|
|
5384
|
+
}));
|
|
5385
|
+
},
|
|
5386
|
+
enumerable: true,
|
|
5387
|
+
configurable: true
|
|
5388
|
+
});
|
|
5389
|
+
/**
|
|
5390
|
+
* @param {?} term
|
|
5391
|
+
* @return {?}
|
|
5392
|
+
*/
|
|
5393
|
+
SearchVenueComponent.prototype.filter = /**
|
|
5394
|
+
* @param {?} term
|
|
5395
|
+
* @return {?}
|
|
5396
|
+
*/
|
|
5397
|
+
function (term) {
|
|
5398
|
+
var _this = this;
|
|
5399
|
+
this.searchLocations(term).pipe(operators.mergeMap(( /**
|
|
5400
|
+
* @param {?} apiData
|
|
5401
|
+
* @return {?}
|
|
5402
|
+
*/function (apiData) {
|
|
5403
|
+
/** @type {?} */
|
|
5404
|
+
var apiFilter = apiData.filter(( /**
|
|
5405
|
+
* @param {?} apiLocation
|
|
5406
|
+
* @return {?}
|
|
5407
|
+
*/function (apiLocation) {
|
|
5408
|
+
return !_this.selectedLocations.map(( /**
|
|
5409
|
+
* @param {?} selectedLocation
|
|
5410
|
+
* @return {?}
|
|
5411
|
+
*/function (selectedLocation) { return selectedLocation.epimms_id; })).includes(apiLocation.epimms_id);
|
|
5412
|
+
}));
|
|
5413
|
+
_this.displayedLocations = apiFilter;
|
|
5414
|
+
_this.searchInProgress = false;
|
|
5415
|
+
return apiFilter;
|
|
5416
|
+
}))).subscribe(( /**
|
|
5417
|
+
* @param {?} location
|
|
5418
|
+
* @return {?}
|
|
5419
|
+
*/function (location) {
|
|
5420
|
+
if (term === location.court_name) {
|
|
5421
|
+
_this.findLocationFormGroup.controls.locationSelectedFormControl.setValue(location);
|
|
5422
|
+
_this.displayedLocations = [];
|
|
5423
|
+
_this.locationChanged.emit(location);
|
|
5424
|
+
_this.showAutocomplete = false;
|
|
5425
|
+
}
|
|
5426
|
+
_this.searchInProgress = false;
|
|
5427
|
+
}));
|
|
5428
|
+
};
|
|
5429
|
+
/**
|
|
5430
|
+
* @param {?=} selection
|
|
5431
|
+
* @return {?}
|
|
5432
|
+
*/
|
|
5433
|
+
SearchVenueComponent.prototype.onSelectionChange = /**
|
|
5434
|
+
* @param {?=} selection
|
|
5435
|
+
* @return {?}
|
|
5436
|
+
*/
|
|
5437
|
+
function (selection) {
|
|
5438
|
+
if (this.findLocationFormGroup.controls.findLocationFormControl instanceof forms.FormArray) {
|
|
5439
|
+
(( /** @type {?} */(this.findLocationFormGroup.controls.locationSelectedFormControl))).push(new forms.FormControl(selection.epimms_id));
|
|
5440
|
+
}
|
|
5441
|
+
else {
|
|
5442
|
+
this.findLocationFormGroup.controls.locationSelectedFormControl.setValue(selection);
|
|
5443
|
+
}
|
|
5444
|
+
this.locationChanged.emit(selection);
|
|
5445
|
+
};
|
|
5446
|
+
/**
|
|
5447
|
+
* @param {?} currentValue
|
|
5448
|
+
* @return {?}
|
|
5449
|
+
*/
|
|
5450
|
+
SearchVenueComponent.prototype.search = /**
|
|
5451
|
+
* @param {?} currentValue
|
|
5452
|
+
* @return {?}
|
|
5453
|
+
*/
|
|
5454
|
+
function (currentValue) {
|
|
5455
|
+
this.searchInProgress = true;
|
|
5456
|
+
this.showAutocomplete = !!currentValue && (currentValue.length >= this.minSearchCharacters);
|
|
5457
|
+
if (!currentValue || !currentValue.length) {
|
|
5458
|
+
this.findLocationFormGroup.controls.locationSelectedFormControl.markAsPristine();
|
|
5459
|
+
this.findLocationFormGroup.controls.locationSelectedFormControl.reset();
|
|
5460
|
+
}
|
|
5461
|
+
if (this.showAutocomplete) {
|
|
5462
|
+
this.filter(currentValue);
|
|
5463
|
+
}
|
|
5464
|
+
else {
|
|
5465
|
+
this.searchInProgress = false;
|
|
5466
|
+
}
|
|
5467
|
+
};
|
|
5468
|
+
/**
|
|
5469
|
+
* @param {?} selectedLocation
|
|
5470
|
+
* @return {?}
|
|
5471
|
+
*/
|
|
5472
|
+
SearchVenueComponent.prototype.getDisplayName = /**
|
|
5473
|
+
* @param {?} selectedLocation
|
|
5474
|
+
* @return {?}
|
|
5475
|
+
*/
|
|
5476
|
+
function (selectedLocation) {
|
|
5477
|
+
return selectedLocation.court_name;
|
|
5478
|
+
};
|
|
5479
|
+
/**
|
|
5480
|
+
* @param {?} term
|
|
5481
|
+
* @return {?}
|
|
5482
|
+
*/
|
|
5483
|
+
SearchVenueComponent.prototype.searchLocations = /**
|
|
5484
|
+
* @param {?} term
|
|
5485
|
+
* @return {?}
|
|
5486
|
+
*/
|
|
5487
|
+
function (term) {
|
|
5488
|
+
return this.locationService.searchLocations(this.serviceIds, this.locationType, term);
|
|
5489
|
+
};
|
|
5490
|
+
/**
|
|
5491
|
+
* @return {?}
|
|
5492
|
+
*/
|
|
5493
|
+
SearchVenueComponent.prototype.getControlCourtNameValue = /**
|
|
5494
|
+
* @return {?}
|
|
5495
|
+
*/
|
|
5496
|
+
function () {
|
|
5497
|
+
return this.findLocationFormGroup && this.findLocationFormGroup.controls && this.findLocationFormGroup.controls.locationSelectedFormControl.value ?
|
|
5498
|
+
(( /** @type {?} */(this.findLocationFormGroup.controls.locationSelectedFormControl.value))).court_name : '';
|
|
5499
|
+
};
|
|
5500
|
+
SearchVenueComponent.decorators = [
|
|
5501
|
+
{ type: i0.Component, args: [{
|
|
5502
|
+
selector: 'xuilib-search-venue',
|
|
5503
|
+
template: "<div class=\"auto-complete-container\">\n <div *ngIf=\"readyAfterContent\" class=\"autocomplete__wrapper\">\n <input\n [formControl]=\"findLocationFormGroup.controls.findLocationFormControl\"\n [matAutocomplete]=\"autoSearchLocation\"\n (keydown)=\"onKeyDown()\"\n (keyup)=\"onKeyUp($event)\"\n (focus)=\"onFocus()\"\n class=\"autocomplete__input autocomplete__input--default search-box\"\n [attr.disabled]=\"!disabled ? null: disabled\"\n [value]=\"getControlCourtNameValue()\"\n #inputSelectedLocation>\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLocation=\"matAutocomplete\">\n <mat-option *ngFor=\"let location of displayedLocationsDuplicationFiltered\"\n [value]=\"getDisplayName(location)\"\n (onSelectionChange)=\"onSelectionChange(location)\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete}\">\n {{ getDisplayName(location) }}\n </mat-option>\n <mat-option *ngIf=\"!displayedLocationsDuplicationFiltered?.length && showAutocomplete && !searchInProgress\">{{ 'No results found' }}</mat-option>\n </mat-autocomplete>\n </div>\n</div>\n",
|
|
5504
|
+
styles: [".autocomplete__input{-webkit-appearance:none;border:2px solid #0b0c0c;border-radius:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin-bottom:0;width:100%;background-color:transparent;position:relative}.autocomplete__hint{color:#b1b4b6;position:absolute}.autocomplete__input--default{padding:5px}.autocomplete__input--focused{outline:#fd0 solid 3px;outline-offset:0;box-shadow:inset 0 0 0 2px}.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:100%;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{min-width:550px;display:inline-block;margin-right:4px}"]
|
|
5505
|
+
}] }
|
|
5506
|
+
];
|
|
5507
|
+
/** @nocollapse */
|
|
5508
|
+
SearchVenueComponent.ctorParameters = function () {
|
|
5509
|
+
return [
|
|
5510
|
+
{ type: LocationService },
|
|
5511
|
+
{ type: forms.FormBuilder }
|
|
5512
|
+
];
|
|
5513
|
+
};
|
|
5514
|
+
SearchVenueComponent.propDecorators = {
|
|
5515
|
+
control: [{ type: i0.Input }],
|
|
5516
|
+
disabled: [{ type: i0.Input }],
|
|
5517
|
+
locationType: [{ type: i0.Input }],
|
|
5518
|
+
selectedLocations: [{ type: i0.Input }],
|
|
5519
|
+
serviceIds: [{ type: i0.Input }],
|
|
5520
|
+
submitted: [{ type: i0.Input }],
|
|
5521
|
+
autoCompleteInputBox: [{ type: i0.ViewChild, args: ['inputSelectedLocation', { read: i0.ElementRef },] }],
|
|
5522
|
+
showAutocomplete: [{ type: i0.Input }],
|
|
5523
|
+
displayedLocations: [{ type: i0.Input }],
|
|
5524
|
+
locationChanged: [{ type: i0.Output }]
|
|
5525
|
+
};
|
|
5526
|
+
return SearchVenueComponent;
|
|
5527
|
+
}());
|
|
5528
|
+
|
|
5180
5529
|
/**
|
|
5181
5530
|
* @fileoverview added by tsickle
|
|
5182
5531
|
* Generated from: lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.ts
|
|
@@ -6212,10 +6561,11 @@
|
|
|
6212
6561
|
GenericFilterComponent,
|
|
6213
6562
|
CookieBannerComponent,
|
|
6214
6563
|
FindPersonComponent,
|
|
6215
|
-
|
|
6216
|
-
PaginationV1Component,
|
|
6564
|
+
SearchJudicialsComponent,
|
|
6217
6565
|
FindLocationComponent,
|
|
6218
|
-
SearchLocationComponent
|
|
6566
|
+
SearchLocationComponent,
|
|
6567
|
+
SearchVenueComponent,
|
|
6568
|
+
PaginationComponent
|
|
6219
6569
|
];
|
|
6220
6570
|
/** @type {?} */
|
|
6221
6571
|
var GOV_UI_COMPONENTS = [
|
|
@@ -6254,16 +6604,13 @@
|
|
|
6254
6604
|
forms.ReactiveFormsModule,
|
|
6255
6605
|
i2$2.RouterModule.forChild([]),
|
|
6256
6606
|
autocomplete.MatAutocompleteModule,
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
ngxPagination.NgxPaginationModule
|
|
6607
|
+
material.MatTabsModule,
|
|
6608
|
+
material.MatInputModule
|
|
6260
6609
|
],
|
|
6261
6610
|
providers: [
|
|
6262
6611
|
{ provide: windowToken, useFactory: ɵ0 }
|
|
6263
6612
|
],
|
|
6264
|
-
exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS
|
|
6265
|
-
ngxPagination.PaginatePipe
|
|
6266
|
-
])
|
|
6613
|
+
exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS)
|
|
6267
6614
|
},] }
|
|
6268
6615
|
];
|
|
6269
6616
|
return ExuiCommonLibModule;
|
|
@@ -7294,7 +7641,6 @@
|
|
|
7294
7641
|
exports.FindLocationComponent = FindLocationComponent;
|
|
7295
7642
|
exports.SearchLocationComponent = SearchLocationComponent;
|
|
7296
7643
|
exports.PaginationComponent = PaginationComponent;
|
|
7297
|
-
exports.PaginationV1Component = PaginationV1Component;
|
|
7298
7644
|
exports.FeatureToggleDirective = FeatureToggleDirective;
|
|
7299
7645
|
exports.LetContext = LetContext;
|
|
7300
7646
|
exports.LetDirective = LetDirective;
|
|
@@ -7336,16 +7682,17 @@
|
|
|
7336
7682
|
exports.ɵbf = CookieBannerComponent;
|
|
7337
7683
|
exports.ɵy = DueDateComponent;
|
|
7338
7684
|
exports.ɵa = ExuiPageWrapperComponent;
|
|
7339
|
-
exports.ɵ
|
|
7685
|
+
exports.ɵbl = FindLocationComponent;
|
|
7340
7686
|
exports.ɵbh = FindPersonComponent;
|
|
7341
7687
|
exports.ɵbd = GenericFilterComponent;
|
|
7342
7688
|
exports.ɵk = HmctsSessionDialogComponent;
|
|
7343
7689
|
exports.ɵo = InviteUserFormComponent;
|
|
7344
7690
|
exports.ɵn = InviteUserPermissionComponent;
|
|
7345
7691
|
exports.ɵbc = LoadingSpinnerComponent;
|
|
7346
|
-
exports.ɵ
|
|
7347
|
-
exports.ɵbk =
|
|
7348
|
-
exports.ɵ
|
|
7692
|
+
exports.ɵbp = PaginationComponent;
|
|
7693
|
+
exports.ɵbk = SearchJudicialsComponent;
|
|
7694
|
+
exports.ɵbm = SearchLocationComponent;
|
|
7695
|
+
exports.ɵbo = SearchVenueComponent;
|
|
7349
7696
|
exports.ɵv = SelectedCaseConfirmComponent;
|
|
7350
7697
|
exports.ɵt = SelectedCaseListComponent;
|
|
7351
7698
|
exports.ɵu = SelectedCaseComponent;
|
|
@@ -7364,33 +7711,33 @@
|
|
|
7364
7711
|
exports.ɵg = FeatureToggleDirective;
|
|
7365
7712
|
exports.ɵi = LetContext;
|
|
7366
7713
|
exports.ɵj = LetDirective;
|
|
7367
|
-
exports.ɵ
|
|
7368
|
-
exports.ɵ
|
|
7369
|
-
exports.ɵ
|
|
7370
|
-
exports.ɵ
|
|
7371
|
-
exports.ɵ
|
|
7372
|
-
exports.ɵ
|
|
7373
|
-
exports.ɵ
|
|
7374
|
-
exports.ɵ
|
|
7375
|
-
exports.ɵ
|
|
7376
|
-
exports.ɵ
|
|
7377
|
-
exports.ɵ
|
|
7378
|
-
exports.ɵ
|
|
7379
|
-
exports.ɵ
|
|
7380
|
-
exports.ɵ
|
|
7381
|
-
exports.ɵ
|
|
7382
|
-
exports.ɵ
|
|
7383
|
-
exports.ɵ
|
|
7384
|
-
exports.ɵ
|
|
7385
|
-
exports.ɵ
|
|
7386
|
-
exports.ɵ
|
|
7387
|
-
exports.ɵ
|
|
7714
|
+
exports.ɵby = GovUkCheckboxComponent;
|
|
7715
|
+
exports.ɵce = GovUkCheckboxesComponent;
|
|
7716
|
+
exports.ɵcd = GovUkDateComponent;
|
|
7717
|
+
exports.ɵcb = GovUkErrorMessageComponent;
|
|
7718
|
+
exports.ɵcc = GovUkFieldsetComponent;
|
|
7719
|
+
exports.ɵcj = GovUkFileUploadComponent;
|
|
7720
|
+
exports.ɵbz = GovUkFormGroupWrapperComponent;
|
|
7721
|
+
exports.ɵbx = GovUkInputComponent;
|
|
7722
|
+
exports.ɵca = GovUkLabelComponent;
|
|
7723
|
+
exports.ɵcf = GovUkRadioComponent;
|
|
7724
|
+
exports.ɵcg = GovUkRadiosComponent;
|
|
7725
|
+
exports.ɵch = GovUkSelectComponent;
|
|
7726
|
+
exports.ɵbw = GovukTableComponent;
|
|
7727
|
+
exports.ɵci = GovUkTextareaComponent;
|
|
7728
|
+
exports.ɵbv = HmctsBannerComponent;
|
|
7729
|
+
exports.ɵbt = HmctsErrorSummaryComponent;
|
|
7730
|
+
exports.ɵbq = HmctsIdentityBarComponent;
|
|
7731
|
+
exports.ɵbu = HmctsMainWrapperComponent;
|
|
7732
|
+
exports.ɵbs = HmctsPrimaryNavigationComponent;
|
|
7733
|
+
exports.ɵbr = HmctsSubNavigationComponent;
|
|
7734
|
+
exports.ɵck = RemoveHostDirective;
|
|
7388
7735
|
exports.ɵr = CaseSharingStateService;
|
|
7389
7736
|
exports.ɵbg = CookieService;
|
|
7390
7737
|
exports.ɵh = FeatureToggleService;
|
|
7391
7738
|
exports.ɵbe = FilterService;
|
|
7392
7739
|
exports.ɵbi = FindAPersonService;
|
|
7393
|
-
exports.ɵ
|
|
7740
|
+
exports.ɵbn = LocationService;
|
|
7394
7741
|
exports.ɵbj = SessionStorageService;
|
|
7395
7742
|
|
|
7396
7743
|
Object.defineProperty(exports, '__esModule', { value: true });
|