@hmcts/rpx-xui-common-lib 1.7.4 → 1.7.5
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 +159 -37
- 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 +22 -21
- package/esm2015/lib/components/find-location/find-location.component.js +18 -4
- package/esm2015/lib/components/find-person/find-person.component.js +14 -4
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +21 -4
- package/esm2015/lib/components/search-location/search-location.component.js +12 -2
- package/esm2015/lib/components/user-list/user-list.component.js +29 -3
- package/esm2015/lib/exui-common-lib.module.js +8 -3
- package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +49 -0
- package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +1 -3
- package/esm2015/lib/models/filter.model.js +5 -1
- package/esm2015/lib/models/index.js +2 -1
- package/esm2015/lib/models/pagination.model.js +18 -0
- package/esm5/hmcts-rpx-xui-common-lib.js +22 -21
- package/esm5/lib/components/find-location/find-location.component.js +21 -4
- package/esm5/lib/components/find-person/find-person.component.js +17 -4
- package/esm5/lib/components/generic-filter/generic-filter.component.js +28 -4
- package/esm5/lib/components/search-location/search-location.component.js +15 -2
- package/esm5/lib/components/user-list/user-list.component.js +36 -3
- package/esm5/lib/exui-common-lib.module.js +9 -3
- package/esm5/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +51 -0
- package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +1 -3
- package/esm5/lib/models/filter.model.js +5 -1
- package/esm5/lib/models/index.js +2 -1
- package/esm5/lib/models/pagination.model.js +18 -0
- package/fesm2015/hmcts-rpx-xui-common-lib.js +117 -14
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +143 -15
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +21 -20
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/find-location/find-location.component.d.ts +4 -0
- package/lib/components/find-person/find-person.component.d.ts +2 -0
- package/lib/components/generic-filter/generic-filter.component.d.ts +1 -0
- package/lib/components/search-location/search-location.component.d.ts +2 -0
- package/lib/components/user-list/user-list.component.d.ts +9 -2
- package/lib/exui-common-lib.module.d.ts +2 -2
- package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +10 -0
- package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +0 -1
- package/lib/models/filter.model.d.ts +2 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/pagination.model.d.ts +5 -0
- package/package.json +3 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MatInputModule, MatTabsModule } from '@angular/material';
|
|
2
2
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
3
|
+
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
3
4
|
import { HttpClient } from '@angular/common/http';
|
|
4
5
|
import { FormArray, FormBuilder, FormControl, FormGroup, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
6
|
import { __spread, __values, __assign, __read } from 'tslib';
|
|
@@ -9,7 +10,7 @@ import { Title } from '@angular/platform-browser';
|
|
|
9
10
|
import { DocumentInterruptSource, Idle } from '@ng-idle/core';
|
|
10
11
|
import { Keepalive } from '@ng-idle/keepalive';
|
|
11
12
|
import { RouterModule, Router, NavigationEnd } from '@angular/router';
|
|
12
|
-
import { Component, EventEmitter, Input, Output, ViewEncapsulation, Injectable, Directive, TemplateRef, ViewContainerRef, ElementRef, Inject, ViewChild, ChangeDetectorRef, InjectionToken, defineInjectable, inject,
|
|
13
|
+
import { Component, EventEmitter, Input, Output, ViewEncapsulation, Injectable, Directive, TemplateRef, ViewContainerRef, ElementRef, Inject, ViewChild, ChangeDetectorRef, InjectionToken, defineInjectable, inject, NgModule, ChangeDetectionStrategy } from '@angular/core';
|
|
13
14
|
import { BehaviorSubject, of, zip, Subject, combineLatest } from 'rxjs';
|
|
14
15
|
import { distinctUntilChanged, map, debounceTime, filter, mergeMap, tap, catchError, switchMap, delay } from 'rxjs/operators';
|
|
15
16
|
|
|
@@ -998,7 +999,13 @@ var GenericFilterComponent = /** @class */ (function () {
|
|
|
998
999
|
}
|
|
999
1000
|
}
|
|
1000
1001
|
}
|
|
1001
|
-
|
|
1002
|
+
// find-location is special case where need to reset textbox (by existing disabling functionality)
|
|
1003
|
+
// field.disable referred to component itself
|
|
1004
|
+
if (field.type === 'find-location') {
|
|
1005
|
+
return true;
|
|
1006
|
+
}
|
|
1007
|
+
// Note: field.disable decides whether to actually disable or not
|
|
1008
|
+
return field.disable ? field.disable : null;
|
|
1002
1009
|
};
|
|
1003
1010
|
/**
|
|
1004
1011
|
* @param {?} form
|
|
@@ -1058,6 +1065,24 @@ var GenericFilterComponent = /** @class */ (function () {
|
|
|
1058
1065
|
}
|
|
1059
1066
|
}
|
|
1060
1067
|
};
|
|
1068
|
+
// when user enters input change radio button
|
|
1069
|
+
// when user enters input change radio button
|
|
1070
|
+
/**
|
|
1071
|
+
* @param {?} field
|
|
1072
|
+
* @return {?}
|
|
1073
|
+
*/
|
|
1074
|
+
GenericFilterComponent.prototype.inputChanged =
|
|
1075
|
+
// when user enters input change radio button
|
|
1076
|
+
/**
|
|
1077
|
+
* @param {?} field
|
|
1078
|
+
* @return {?}
|
|
1079
|
+
*/
|
|
1080
|
+
function (field) {
|
|
1081
|
+
if (field.radioSelectionChange && typeof field.radioSelectionChange === 'string') {
|
|
1082
|
+
var _a = __read(field.enableCondition.split('='), 2), name_3 = _a[0], value = _a[1];
|
|
1083
|
+
this.form.get(name_3).patchValue(value);
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1061
1086
|
/**
|
|
1062
1087
|
* @return {?}
|
|
1063
1088
|
*/
|
|
@@ -1458,7 +1483,7 @@ var GenericFilterComponent = /** @class */ (function () {
|
|
|
1458
1483
|
* @return {?}
|
|
1459
1484
|
*/
|
|
1460
1485
|
function (f) { return f.name === field.name; }));
|
|
1461
|
-
if (defaultValues) {
|
|
1486
|
+
if (defaultValues && defaultValues.value && defaultValues.value.length > 0) {
|
|
1462
1487
|
try {
|
|
1463
1488
|
for (var _b = __values(defaultValues.value), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1464
1489
|
var defaultValue = _c.value;
|
|
@@ -1556,7 +1581,7 @@ var GenericFilterComponent = /** @class */ (function () {
|
|
|
1556
1581
|
GenericFilterComponent.decorators = [
|
|
1557
1582
|
{ type: Component, args: [{
|
|
1558
1583
|
selector: 'xuilib-generic-filter',
|
|
1559
|
-
template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n <div class=\"contain-classes\" *ngFor=\"let field of config.fields\">\n <hr *ngIf=\"field.lineBreakBefore\" class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.minLength || form.get(field.name).errors?.maxLength)}\">\n <h3 *ngIf=\"field.title\" class=\"govuk-heading-s\">{{field.title}}</h3>\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMinSelectedError && submitted && form.get(field.name).errors?.minLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.minSelectedError}}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.maxSelectedError}}\n </span>\n <div class=\"govuk-body\" [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option class=\"govuk-radios__item\" *ngFor=\"let item of field.options\" [value]=\"item.key\">{{item.label}}</option>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox-large'\">\n <div class=\"govuk-checkboxes\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'radio'\">\n <div class=\"govuk-radios\">\n <div *ngFor=\"let item of field.options\" class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-person'\">\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n [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 [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle\"\n [enableAddLocationButton]=\"field.enableAddLocationButton\"\n [disabled]=\"disabled(field, form)\"\n [selectedLocations]=\"form.get(field.name)?.value\"\n [submitted]=\"submitted\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [field]=\"field\"\n ></xuilib-find-location>\n </ng-container>\n </div>\n </div>\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{config.applyButtonText || 'Apply'}}</button>\n <button *ngIf=\"config.showCancelFilterButton\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ config.cancelButtonText || 'Cancel'}}</button>\n </div>\n </div>\n</form>\n",
|
|
1584
|
+
template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n <div class=\"contain-classes\" *ngFor=\"let field of config.fields\">\n <hr *ngIf=\"field.lineBreakBefore\" class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.minLength || form.get(field.name).errors?.maxLength)}\">\n <h3 *ngIf=\"field.title\" class=\"govuk-heading-s\">{{field.title}}</h3>\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMinSelectedError && submitted && form.get(field.name).errors?.minLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.minSelectedError}}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.maxSelectedError}}\n </span>\n <div class=\"govuk-body\" [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option class=\"govuk-radios__item\" *ngFor=\"let item of field.options\" [value]=\"item.key\">{{item.label}}</option>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox-large'\">\n <div class=\"govuk-checkboxes\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'radio'\">\n <div class=\"govuk-radios\">\n <div *ngFor=\"let item of field.options\" class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-person'\">\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n ></xuilib-find-person>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-location'\">\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle\"\n [enableAddLocationButton]=\"field.enableAddLocationButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [selectedLocations]=\"form.get(field.name)?.value\"\n [submitted]=\"submitted\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [field]=\"field\"\n ></xuilib-find-location>\n </ng-container>\n </div>\n </div>\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{config.applyButtonText || 'Apply'}}</button>\n <button *ngIf=\"config.showCancelFilterButton\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ config.cancelButtonText || 'Cancel'}}</button>\n </div>\n </div>\n</form>\n",
|
|
1560
1585
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1561
1586
|
encapsulation: ViewEncapsulation.None,
|
|
1562
1587
|
styles: [".contain-classes .elevated-break{position:relative;top:-10px}.contain-classes .xui-generic-filter .select-all{margin-bottom:10px}.contain-classes .xui-generic-filter .govuk-checkboxes{display:flex;flex-wrap:wrap}.contain-classes .xui-generic-filter .govuk-checkboxes>div{flex-grow:1;flex-shrink:0}"]
|
|
@@ -3313,7 +3338,17 @@ var UserListComponent = /** @class */ (function () {
|
|
|
3313
3338
|
function UserListComponent() {
|
|
3314
3339
|
this.users = [];
|
|
3315
3340
|
this.userClick = new EventEmitter();
|
|
3341
|
+
this.pageChange = new EventEmitter();
|
|
3316
3342
|
}
|
|
3343
|
+
/**
|
|
3344
|
+
* @return {?}
|
|
3345
|
+
*/
|
|
3346
|
+
UserListComponent.prototype.ngOnInit = /**
|
|
3347
|
+
* @return {?}
|
|
3348
|
+
*/
|
|
3349
|
+
function () {
|
|
3350
|
+
this.pagination = { itemsPerPage: 50, currentPage: this.currentPageNumber, totalItems: this.pageTotalSize };
|
|
3351
|
+
};
|
|
3317
3352
|
/**
|
|
3318
3353
|
* @param {?} user
|
|
3319
3354
|
* @return {?}
|
|
@@ -3325,16 +3360,31 @@ var UserListComponent = /** @class */ (function () {
|
|
|
3325
3360
|
function (user) {
|
|
3326
3361
|
this.userClick.emit(user);
|
|
3327
3362
|
};
|
|
3363
|
+
/**
|
|
3364
|
+
* @param {?} pageNumber
|
|
3365
|
+
* @return {?}
|
|
3366
|
+
*/
|
|
3367
|
+
UserListComponent.prototype.emitPageClickEvent = /**
|
|
3368
|
+
* @param {?} pageNumber
|
|
3369
|
+
* @return {?}
|
|
3370
|
+
*/
|
|
3371
|
+
function (pageNumber) {
|
|
3372
|
+
this.currentPageNumber = pageNumber;
|
|
3373
|
+
this.pageChange.emit(pageNumber);
|
|
3374
|
+
};
|
|
3328
3375
|
UserListComponent.decorators = [
|
|
3329
3376
|
{ type: Component, args: [{
|
|
3330
3377
|
selector: 'xuilib-user-list',
|
|
3331
|
-
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\"
|
|
3378
|
+
template: "<table class=\"govuk-table\">\n\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 <ng-container *ngFor=\"let u of users | paginate: { itemsPerPage: pagination.itemsPerPage, currentPage: currentPageNumber, totalItems: pagination.totalItems }\">\n <tr class=\"govuk-table__row\" data-selector=\"table-row\">\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 </ng-container>\n </tbody>\n</table>\n<xuilib-hmcts-pagination (pageChange)=\"emitPageClickEvent($event)\" [pageSize]=\"pagination.itemsPerPage\"></xuilib-hmcts-pagination>\n",
|
|
3332
3379
|
styles: [":host{display:block}"]
|
|
3333
3380
|
}] }
|
|
3334
3381
|
];
|
|
3335
3382
|
UserListComponent.propDecorators = {
|
|
3336
3383
|
users: [{ type: Input }],
|
|
3337
|
-
|
|
3384
|
+
currentPageNumber: [{ type: Input }],
|
|
3385
|
+
pageTotalSize: [{ type: Input }],
|
|
3386
|
+
userClick: [{ type: Output }],
|
|
3387
|
+
pageChange: [{ type: Output }]
|
|
3338
3388
|
};
|
|
3339
3389
|
return UserListComponent;
|
|
3340
3390
|
}());
|
|
@@ -3693,6 +3743,7 @@ var SearchLocationComponent = /** @class */ (function () {
|
|
|
3693
3743
|
this.locations = [];
|
|
3694
3744
|
this.locationSelected = new EventEmitter();
|
|
3695
3745
|
this.locationInputChanged = new EventEmitter();
|
|
3746
|
+
this.searchLocationChanged = new EventEmitter();
|
|
3696
3747
|
this.minSearchCharacters = 3;
|
|
3697
3748
|
this.term = '';
|
|
3698
3749
|
this.pSelectedLocations = [];
|
|
@@ -3825,6 +3876,15 @@ var SearchLocationComponent = /** @class */ (function () {
|
|
|
3825
3876
|
_this.showAutocomplete = true;
|
|
3826
3877
|
}));
|
|
3827
3878
|
};
|
|
3879
|
+
/**
|
|
3880
|
+
* @return {?}
|
|
3881
|
+
*/
|
|
3882
|
+
SearchLocationComponent.prototype.onInput = /**
|
|
3883
|
+
* @return {?}
|
|
3884
|
+
*/
|
|
3885
|
+
function () {
|
|
3886
|
+
this.searchLocationChanged.emit();
|
|
3887
|
+
};
|
|
3828
3888
|
/**
|
|
3829
3889
|
* @param {?} term
|
|
3830
3890
|
* @return {?}
|
|
@@ -3873,7 +3933,7 @@ var SearchLocationComponent = /** @class */ (function () {
|
|
|
3873
3933
|
SearchLocationComponent.decorators = [
|
|
3874
3934
|
{ type: Component, args: [{
|
|
3875
3935
|
selector: 'exui-search-location',
|
|
3876
|
-
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",
|
|
3936
|
+
template: "<div class=\"auto-complete-container\">\n <input\n id=\"inputLocationSearch\"\n (input)=\"onInput()\"\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",
|
|
3877
3937
|
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}"]
|
|
3878
3938
|
}] }
|
|
3879
3939
|
];
|
|
@@ -3896,6 +3956,7 @@ var SearchLocationComponent = /** @class */ (function () {
|
|
|
3896
3956
|
locations: [{ type: Input }],
|
|
3897
3957
|
locationSelected: [{ type: Output }],
|
|
3898
3958
|
locationInputChanged: [{ type: Output }],
|
|
3959
|
+
searchLocationChanged: [{ type: Output }],
|
|
3899
3960
|
reset: [{ type: Input }],
|
|
3900
3961
|
selectedLocations: [{ type: Input }]
|
|
3901
3962
|
};
|
|
@@ -3909,10 +3970,12 @@ var SearchLocationComponent = /** @class */ (function () {
|
|
|
3909
3970
|
*/
|
|
3910
3971
|
var FindLocationComponent = /** @class */ (function () {
|
|
3911
3972
|
function FindLocationComponent() {
|
|
3973
|
+
this.locationFieldChanged = new EventEmitter();
|
|
3912
3974
|
this.selectedLocations = [];
|
|
3913
3975
|
this.submitted = true;
|
|
3914
3976
|
this.enableAddLocationButton = true;
|
|
3915
3977
|
this.locationTitle = 'Search for a location by name';
|
|
3978
|
+
this.disableInputField = false;
|
|
3916
3979
|
this.locations = [];
|
|
3917
3980
|
this.tempSelectedLocation = null;
|
|
3918
3981
|
this.serviceIds = 'SSCS,IA';
|
|
@@ -3935,7 +3998,7 @@ var FindLocationComponent = /** @class */ (function () {
|
|
|
3935
3998
|
this.searchLocationComponent.resetSearchTerm();
|
|
3936
3999
|
this.removeSelectedValues();
|
|
3937
4000
|
}
|
|
3938
|
-
this.pDisabled =
|
|
4001
|
+
this.pDisabled = this.disableInputField === true ? true : null;
|
|
3939
4002
|
},
|
|
3940
4003
|
enumerable: true,
|
|
3941
4004
|
configurable: true
|
|
@@ -4033,6 +4096,15 @@ var FindLocationComponent = /** @class */ (function () {
|
|
|
4033
4096
|
this.removeSelectedValues();
|
|
4034
4097
|
}
|
|
4035
4098
|
};
|
|
4099
|
+
/**
|
|
4100
|
+
* @return {?}
|
|
4101
|
+
*/
|
|
4102
|
+
FindLocationComponent.prototype.onSearchInputChanged = /**
|
|
4103
|
+
* @return {?}
|
|
4104
|
+
*/
|
|
4105
|
+
function () {
|
|
4106
|
+
this.locationFieldChanged.emit();
|
|
4107
|
+
};
|
|
4036
4108
|
/**
|
|
4037
4109
|
* @param {?} location
|
|
4038
4110
|
* @return {?}
|
|
@@ -4105,11 +4177,12 @@ var FindLocationComponent = /** @class */ (function () {
|
|
|
4105
4177
|
FindLocationComponent.decorators = [
|
|
4106
4178
|
{ type: Component, args: [{
|
|
4107
4179
|
selector: 'xuilib-find-location',
|
|
4108
|
-
template: "<div class=\"location-picker-custom\">\n <div class=\"search-location\">\n <div>\n <label id=\"input-selected-location-label\" *ngIf=\"locationTitle\">{{locationTitle}}</label>\n </div>\n <exui-search-location class=\"search-location\"\n [locations]=\"locations\"\n [selectedLocations]=\"selectedLocations\"\n [singleMode]=\"field.maxSelected === 1\"\n [delay]=\"300\"\n [disabled]=\"disabled\"\n [serviceIds]=\"serviceIds\"\n (locationInputChanged)=\"onInputChanged($event)\"\n (locationSelected)=\"onLocationSelected($event)\"\n [locationType]=\"'case-management'\"></exui-search-location>\n <a href=\"javascript:void(0)\" (click)=\"addLocation()\" class=\"govuk-button\" data-module=\"govuk-button\" *ngIf=\"enableAddLocationButton\">\n Add location\n </a>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedLocations\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeLocation(selection)\" href=\"javascript:void(0)\">\n {{ selection.site_name }}\n </a>\n </li>\n </ul>\n</div>\n",
|
|
4180
|
+
template: "<div class=\"location-picker-custom\">\n <div class=\"search-location\">\n <div>\n <label id=\"input-selected-location-label\" *ngIf=\"locationTitle\">{{locationTitle}}</label>\n </div>\n <exui-search-location class=\"search-location\"\n [locations]=\"locations\"\n [selectedLocations]=\"selectedLocations\"\n [singleMode]=\"field.maxSelected === 1\"\n [delay]=\"300\"\n [disabled]=\"disabled\"\n [serviceIds]=\"serviceIds\"\n (locationInputChanged)=\"onInputChanged($event)\"\n (locationSelected)=\"onLocationSelected($event)\"\n (searchLocationChanged)=\"onSearchInputChanged()\"\n [locationType]=\"'case-management'\"></exui-search-location>\n <a href=\"javascript:void(0)\" (click)=\"addLocation()\" class=\"govuk-button\" data-module=\"govuk-button\" *ngIf=\"enableAddLocationButton\">\n Add location\n </a>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedLocations\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeLocation(selection)\" href=\"javascript:void(0)\">\n {{ selection.site_name }}\n </a>\n </li>\n </ul>\n</div>\n",
|
|
4109
4181
|
styles: [""]
|
|
4110
4182
|
}] }
|
|
4111
4183
|
];
|
|
4112
4184
|
FindLocationComponent.propDecorators = {
|
|
4185
|
+
locationFieldChanged: [{ type: Output }],
|
|
4113
4186
|
selectedLocations: [{ type: Input }],
|
|
4114
4187
|
submitted: [{ type: Input }],
|
|
4115
4188
|
enableAddLocationButton: [{ type: Input }],
|
|
@@ -4117,6 +4190,7 @@ var FindLocationComponent = /** @class */ (function () {
|
|
|
4117
4190
|
field: [{ type: Input }],
|
|
4118
4191
|
fields: [{ type: Input }],
|
|
4119
4192
|
locationTitle: [{ type: Input }],
|
|
4193
|
+
disableInputField: [{ type: Input }],
|
|
4120
4194
|
searchLocationComponent: [{ type: ViewChild, args: [SearchLocationComponent,] }],
|
|
4121
4195
|
disabled: [{ type: Input }],
|
|
4122
4196
|
services: [{ type: Input }]
|
|
@@ -4397,6 +4471,12 @@ var LoggedInFeatureUser = /** @class */ (function () {
|
|
|
4397
4471
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4398
4472
|
*/
|
|
4399
4473
|
|
|
4474
|
+
/**
|
|
4475
|
+
* @fileoverview added by tsickle
|
|
4476
|
+
* Generated from: lib/models/pagination.model.ts
|
|
4477
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4478
|
+
*/
|
|
4479
|
+
|
|
4400
4480
|
/**
|
|
4401
4481
|
* @fileoverview added by tsickle
|
|
4402
4482
|
* Generated from: lib/models/person.model.ts
|
|
@@ -4825,6 +4905,7 @@ var FindPersonComponent = /** @class */ (function () {
|
|
|
4825
4905
|
this.findPersonService = findPersonService;
|
|
4826
4906
|
this.cd = cd;
|
|
4827
4907
|
this.personSelected = new EventEmitter();
|
|
4908
|
+
this.personFieldChanged = new EventEmitter();
|
|
4828
4909
|
this.boldTitle = 'Find the person';
|
|
4829
4910
|
this.subTitle = 'Type the name of the person and select them.';
|
|
4830
4911
|
this.domain = PersonRole.ALL;
|
|
@@ -4981,14 +5062,23 @@ var FindPersonComponent = /** @class */ (function () {
|
|
|
4981
5062
|
return '';
|
|
4982
5063
|
}
|
|
4983
5064
|
if (selectedPerson.domain === PersonRole.JUDICIAL && selectedPerson.knownAs) {
|
|
4984
|
-
return selectedPerson.knownAs + "(" + selectedPerson.email + ")";
|
|
5065
|
+
return selectedPerson.knownAs + " (" + selectedPerson.email + ")";
|
|
4985
5066
|
}
|
|
4986
|
-
return selectedPerson.email ? selectedPerson.name + "(" + selectedPerson.email + ")" : selectedPerson.name;
|
|
5067
|
+
return selectedPerson.email ? selectedPerson.name + " (" + selectedPerson.email + ")" : selectedPerson.name;
|
|
5068
|
+
};
|
|
5069
|
+
/**
|
|
5070
|
+
* @return {?}
|
|
5071
|
+
*/
|
|
5072
|
+
FindPersonComponent.prototype.onInput = /**
|
|
5073
|
+
* @return {?}
|
|
5074
|
+
*/
|
|
5075
|
+
function () {
|
|
5076
|
+
this.personFieldChanged.emit();
|
|
4987
5077
|
};
|
|
4988
5078
|
FindPersonComponent.decorators = [
|
|
4989
5079
|
{ type: Component, args: [{
|
|
4990
5080
|
selector: 'xuilib-find-person',
|
|
4991
|
-
template: "<h1 class=\"govuk-heading-l\" *ngIf=\"title && title.length\">\n <span class=\"govuk-caption-l\">{{title}}</span>\n {{boldTitle}}\n</h1>\n<div class=\"govuk-form-group\" [formGroup]=\"findPersonGroup\"\n [ngClass]=\"{'form-group-error': findPersonGroup.get('findPersonControl').invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sub-title-hint\">\n <div id=\"sub-title-hint\" class=\"govuk-hint\" *ngIf=\"subTitle && subTitle.length\">\n {{subTitle}}\n </div>\n <span id=\"validation-error\" class=\"govuk-error-message\" *ngIf=\"findPersonGroup && findPersonGroup.errors\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{findPersonGroup.errors.error ? findPersonGroup.errors.error : errorMessage}}\n </span>\n <input id=\"inputSelectPerson{{idValue}}\" type=\"text\" aria-label=\"select a person\"\n formControlName=\"findPersonControl\"\n [matAutocomplete]=\"auto\"\n class=\"govuk-input govuk-!-width-one-third\"\n [placeholder]=\"placeholderContent\"\n [attr.disabled]=\"disabled\">\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\" (optionSelected)=\"onSelectionChange($event.option.value)\">\n <mat-option *ngFor=\"let option of filteredOptions\"\n [value]=\"option\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete, 'select-option': showUpdatedColor}\">\n {{getDisplayName(option)}}\n </mat-option>\n <mat-option [ngClass]=\"{'select-option': showUpdatedColor}\" *ngIf=\"isNoResultsShown && !filteredOptions.length && showAutocomplete\">No results found</mat-option>\n </mat-autocomplete>\n </fieldset>\n</div>\n",
|
|
5081
|
+
template: "<h1 class=\"govuk-heading-l\" *ngIf=\"title && title.length\">\n <span class=\"govuk-caption-l\">{{title}}</span>\n {{boldTitle}}\n</h1>\n<div class=\"govuk-form-group\" [formGroup]=\"findPersonGroup\"\n [ngClass]=\"{'form-group-error': findPersonGroup.get('findPersonControl').invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sub-title-hint\">\n <div id=\"sub-title-hint\" class=\"govuk-hint\" *ngIf=\"subTitle && subTitle.length\">\n {{subTitle}}\n </div>\n <span id=\"validation-error\" class=\"govuk-error-message\" *ngIf=\"findPersonGroup && findPersonGroup.errors\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{findPersonGroup.errors.error ? findPersonGroup.errors.error : errorMessage}}\n </span>\n <input id=\"inputSelectPerson{{idValue}}\" type=\"text\" aria-label=\"select a person\"\n formControlName=\"findPersonControl\"\n [matAutocomplete]=\"auto\"\n class=\"govuk-input govuk-!-width-one-third\"\n [placeholder]=\"placeholderContent\"\n [attr.disabled]=\"disabled\"\n (input)=\"onInput()\">\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\" (optionSelected)=\"onSelectionChange($event.option.value)\">\n <mat-option *ngFor=\"let option of filteredOptions\"\n [value]=\"option\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete, 'select-option': showUpdatedColor}\">\n {{getDisplayName(option)}}\n </mat-option>\n <mat-option [ngClass]=\"{'select-option': showUpdatedColor}\" *ngIf=\"isNoResultsShown && !filteredOptions.length && showAutocomplete\">No results found</mat-option>\n </mat-autocomplete>\n </fieldset>\n</div>\n",
|
|
4992
5082
|
styles: [".mat-option:hover{background:#2596be}.mat-option.select-option:hover{background:#1d70b8;color:#fff}.hide-autocomplete{display:none}"]
|
|
4993
5083
|
}] }
|
|
4994
5084
|
];
|
|
@@ -4999,6 +5089,7 @@ var FindPersonComponent = /** @class */ (function () {
|
|
|
4999
5089
|
]; };
|
|
5000
5090
|
FindPersonComponent.propDecorators = {
|
|
5001
5091
|
personSelected: [{ type: Output }],
|
|
5092
|
+
personFieldChanged: [{ type: Output }],
|
|
5002
5093
|
title: [{ type: Input }],
|
|
5003
5094
|
boldTitle: [{ type: Input }],
|
|
5004
5095
|
subTitle: [{ type: Input }],
|
|
@@ -6403,6 +6494,39 @@ var HmctsMainWrapperComponent = /** @class */ (function () {
|
|
|
6403
6494
|
return HmctsMainWrapperComponent;
|
|
6404
6495
|
}());
|
|
6405
6496
|
|
|
6497
|
+
/**
|
|
6498
|
+
* @fileoverview added by tsickle
|
|
6499
|
+
* Generated from: lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.ts
|
|
6500
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6501
|
+
*/
|
|
6502
|
+
var HmctsPaginationComponent = /** @class */ (function () {
|
|
6503
|
+
function HmctsPaginationComponent() {
|
|
6504
|
+
this.maxSize = 7;
|
|
6505
|
+
this.pageSize = 10;
|
|
6506
|
+
this.showPageNumbers = true;
|
|
6507
|
+
this.showResultCount = true;
|
|
6508
|
+
this.pageChange = new EventEmitter();
|
|
6509
|
+
this.pageBoundsCorrection = new EventEmitter();
|
|
6510
|
+
}
|
|
6511
|
+
HmctsPaginationComponent.decorators = [
|
|
6512
|
+
{ type: Component, args: [{
|
|
6513
|
+
selector: 'xuilib-hmcts-pagination',
|
|
6514
|
+
template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n\n <nav class=\"hmcts-pagination\" id=\"pagination-label\">\n <p class=\"govuk-visually-hidden\" aria-labelledby=\"pagination-label\">Pagination navigation</p>\n <ul class=\"hmcts-pagination__list\" *ngIf=\"!(p.pages.length <= 1)\">\n\n <li class=\"hmcts-pagination__item hmcts-pagination__item--prev\" [class.disabled]=\"p.isFirstPage()\">\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\"\n (click)=\"p.previous()\">Previous <span class=\"govuk-visually-hidden\">set of pages</span></a>\n </li>\n\n <ng-container *ngIf=\"showPageNumbers\">\n <li class=\"hmcts-pagination__item\" [class.hmcts-pagination__item--active]=\"p.getCurrent() === page.value\"\n [class.hmcts-pagination__item--dots]=\"page.label === '...'\" *ngFor=\"let page of p.pages\">\n <a class=\"hmcts-pagination__link\" [routerLink]=\"\" (keyup.enter)=\"p.setCurrent(page.value)\"\n (click)=\"p.setCurrent(page.value)\" *ngIf=\"p.getCurrent() !== page.value\">\n <span class=\"govuk-visually-hidden\">page </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </ng-container>\n </li>\n </ng-container>\n\n <li class=\"hmcts-pagination__item hmcts-pagination__item--next\" [class.disabled]=\"p.isLastPage()\">\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\"\n (click)=\"p.next()\">Next<span class=\"govuk-visually-hidden\"> page</span></a>\n </li>\n\n </ul>\n <p class=\"hmcts-pagination__results\" *ngIf=\"showResultCount\">Showing <b>{{(p.getCurrent() * pageSize) - pageSize + 1}}</b>\n to <b>{{ p.getCurrent() * pageSize > p.getTotalItems() ? p.getTotalItems() : p.getCurrent() *\n pageSize}}</b> of <b>{{p.getTotalItems()}}</b> results</p>\n </nav>\n\n</pagination-template>",
|
|
6515
|
+
styles: [".hmcts-pagination__results{float:right}"]
|
|
6516
|
+
}] }
|
|
6517
|
+
];
|
|
6518
|
+
HmctsPaginationComponent.propDecorators = {
|
|
6519
|
+
id: [{ type: Input }],
|
|
6520
|
+
maxSize: [{ type: Input }],
|
|
6521
|
+
pageSize: [{ type: Input }],
|
|
6522
|
+
showPageNumbers: [{ type: Input }],
|
|
6523
|
+
showResultCount: [{ type: Input }],
|
|
6524
|
+
pageChange: [{ type: Output }],
|
|
6525
|
+
pageBoundsCorrection: [{ type: Output }]
|
|
6526
|
+
};
|
|
6527
|
+
return HmctsPaginationComponent;
|
|
6528
|
+
}());
|
|
6529
|
+
|
|
6406
6530
|
/**
|
|
6407
6531
|
* @fileoverview added by tsickle
|
|
6408
6532
|
* Generated from: lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.ts
|
|
@@ -6549,6 +6673,7 @@ var COMMON_COMPONENTS = [
|
|
|
6549
6673
|
/** @type {?} */
|
|
6550
6674
|
var GOV_UI_COMPONENTS = [
|
|
6551
6675
|
HmctsIdentityBarComponent,
|
|
6676
|
+
HmctsPaginationComponent,
|
|
6552
6677
|
HmctsSubNavigationComponent,
|
|
6553
6678
|
HmctsPrimaryNavigationComponent,
|
|
6554
6679
|
HmctsErrorSummaryComponent,
|
|
@@ -6584,12 +6709,15 @@ var ExuiCommonLibModule = /** @class */ (function () {
|
|
|
6584
6709
|
RouterModule.forChild([]),
|
|
6585
6710
|
MatAutocompleteModule,
|
|
6586
6711
|
MatTabsModule,
|
|
6587
|
-
MatInputModule
|
|
6712
|
+
MatInputModule,
|
|
6713
|
+
NgxPaginationModule
|
|
6588
6714
|
],
|
|
6589
6715
|
providers: [
|
|
6590
6716
|
{ provide: windowToken, useFactory: ɵ0 }
|
|
6591
6717
|
],
|
|
6592
|
-
exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS
|
|
6718
|
+
exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
|
|
6719
|
+
PaginatePipe
|
|
6720
|
+
])
|
|
6593
6721
|
},] }
|
|
6594
6722
|
];
|
|
6595
6723
|
return ExuiCommonLibModule;
|
|
@@ -7610,6 +7738,6 @@ var LoadingService = /** @class */ (function () {
|
|
|
7610
7738
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7611
7739
|
*/
|
|
7612
7740
|
|
|
7613
|
-
export { AccessibilityComponent, CheckboxListComponent, ContactDetailsComponent, DueDateComponent, GenericFilterComponent, HmctsSessionDialogComponent, InviteUserFormComponent, InviteUserPermissionComponent, LoadingSpinnerComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, SelectedCaseComponent, ServiceMessageComponent, ServiceMessagesComponent, ShareCaseConfirmComponent, ShareCaseComponent, TabComponent, TcConfirmComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, TermsAndConditionsComponent, UserDetailsComponent, UserListComponent, CookieBannerComponent, FindLocationComponent, SearchLocationComponent, PaginationComponent, FeatureToggleDirective, LetContext, LetDirective, COMMON_COMPONENTS, GOV_UI_COMPONENTS, ExuiCommonLibModule, GovUiService, checkboxesBeCheckedValidator, dateValidator, radioGroupValidator, HmctsSubNavigationComponent, BadgeColour, DateBadgeColour, SECONDS_IN_A_DAY, AnonymousFeatureUser, LoggedInFeatureUser, PersonRole, RoleCategory, RadioFilterFieldConfig, FeatureToggleGuard, FeatureToggleService, LaunchDarklyService, GoogleAnalyticsService, GoogleTagManagerService, ManageSessionServices, TimeoutNotificationsService, RoleMatching, RoleGuard, RoleService, CookieService, HasLoadingState, LoadingService, FilterService, windowProvider, windowToken, AccessibilityComponent as ɵx, CheckboxListComponent as ɵz, ContactDetailsComponent as ɵf, CookieBannerComponent as ɵbf, DueDateComponent as ɵy, ExuiPageWrapperComponent as ɵa, FindLocationComponent as ɵbl, FindPersonComponent as ɵbh, GenericFilterComponent as ɵbd, HmctsSessionDialogComponent as ɵk, InviteUserFormComponent as ɵo, InviteUserPermissionComponent as ɵn, LoadingSpinnerComponent as ɵbc, PaginationComponent as ɵbp, SearchJudicialsComponent as ɵbk, SearchLocationComponent as ɵbm, SearchVenueComponent as ɵbo, SelectedCaseConfirmComponent as ɵv, SelectedCaseListComponent as ɵt, SelectedCaseComponent as ɵu, ServiceMessageComponent as ɵba, ServiceMessagesComponent as ɵbb, ShareCaseConfirmComponent as ɵs, ShareCaseComponent as ɵp, TabComponent as ɵw, TcConfirmComponent as ɵe, TcDisplayHtmlComponent as ɵc, TcDisplayPlainComponent as ɵd, TermsAndConditionsComponent as ɵb, UserDetailsComponent as ɵm, UserListComponent as ɵl, UserSelectComponent as ɵq, FeatureToggleDirective as ɵg, LetContext as ɵi, LetDirective as ɵj, GovUkCheckboxComponent as
|
|
7741
|
+
export { AccessibilityComponent, CheckboxListComponent, ContactDetailsComponent, DueDateComponent, GenericFilterComponent, HmctsSessionDialogComponent, InviteUserFormComponent, InviteUserPermissionComponent, LoadingSpinnerComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, SelectedCaseComponent, ServiceMessageComponent, ServiceMessagesComponent, ShareCaseConfirmComponent, ShareCaseComponent, TabComponent, TcConfirmComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, TermsAndConditionsComponent, UserDetailsComponent, UserListComponent, CookieBannerComponent, FindLocationComponent, SearchLocationComponent, PaginationComponent, FeatureToggleDirective, LetContext, LetDirective, COMMON_COMPONENTS, GOV_UI_COMPONENTS, ExuiCommonLibModule, GovUiService, checkboxesBeCheckedValidator, dateValidator, radioGroupValidator, HmctsSubNavigationComponent, BadgeColour, DateBadgeColour, SECONDS_IN_A_DAY, AnonymousFeatureUser, LoggedInFeatureUser, PersonRole, RoleCategory, RadioFilterFieldConfig, FeatureToggleGuard, FeatureToggleService, LaunchDarklyService, GoogleAnalyticsService, GoogleTagManagerService, ManageSessionServices, TimeoutNotificationsService, RoleMatching, RoleGuard, RoleService, CookieService, HasLoadingState, LoadingService, FilterService, windowProvider, windowToken, AccessibilityComponent as ɵx, CheckboxListComponent as ɵz, ContactDetailsComponent as ɵf, CookieBannerComponent as ɵbf, DueDateComponent as ɵy, ExuiPageWrapperComponent as ɵa, FindLocationComponent as ɵbl, FindPersonComponent as ɵbh, GenericFilterComponent as ɵbd, HmctsSessionDialogComponent as ɵk, InviteUserFormComponent as ɵo, InviteUserPermissionComponent as ɵn, LoadingSpinnerComponent as ɵbc, PaginationComponent as ɵbp, SearchJudicialsComponent as ɵbk, SearchLocationComponent as ɵbm, SearchVenueComponent as ɵbo, SelectedCaseConfirmComponent as ɵv, SelectedCaseListComponent as ɵt, SelectedCaseComponent as ɵu, ServiceMessageComponent as ɵba, ServiceMessagesComponent as ɵbb, ShareCaseConfirmComponent as ɵs, ShareCaseComponent as ɵp, TabComponent as ɵw, TcConfirmComponent as ɵe, TcDisplayHtmlComponent as ɵc, TcDisplayPlainComponent as ɵd, TermsAndConditionsComponent as ɵb, UserDetailsComponent as ɵm, UserListComponent as ɵl, UserSelectComponent as ɵq, FeatureToggleDirective as ɵg, LetContext as ɵi, LetDirective as ɵj, GovUkCheckboxComponent as ɵbz, GovUkCheckboxesComponent as ɵcf, GovUkDateComponent as ɵce, GovUkErrorMessageComponent as ɵcc, GovUkFieldsetComponent as ɵcd, GovUkFileUploadComponent as ɵck, GovUkFormGroupWrapperComponent as ɵca, GovUkInputComponent as ɵby, GovUkLabelComponent as ɵcb, GovUkRadioComponent as ɵcg, GovUkRadiosComponent as ɵch, GovUkSelectComponent as ɵci, GovukTableComponent as ɵbx, GovUkTextareaComponent as ɵcj, HmctsBannerComponent as ɵbw, HmctsErrorSummaryComponent as ɵbu, HmctsIdentityBarComponent as ɵbq, HmctsMainWrapperComponent as ɵbv, HmctsPaginationComponent as ɵbr, HmctsPrimaryNavigationComponent as ɵbt, HmctsSubNavigationComponent as ɵbs, RemoveHostDirective as ɵcl, CaseSharingStateService as ɵr, CookieService as ɵbg, FeatureToggleService as ɵh, FilterService as ɵbe, FindAPersonService as ɵbi, LocationService as ɵbn, SessionStorageService as ɵbj };
|
|
7614
7742
|
|
|
7615
7743
|
//# sourceMappingURL=hmcts-rpx-xui-common-lib.js.map
|