@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,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/material'), require('@angular/material/autocomplete'), require('ngx-pagination'), 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', 'ngx-pagination', '@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.ngxPagination,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,ngxPagination,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
|
|
@@ -1035,7 +1035,13 @@
|
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
|
-
|
|
1038
|
+
// find-location is special case where need to reset textbox (by existing disabling functionality)
|
|
1039
|
+
// field.disable referred to component itself
|
|
1040
|
+
if (field.type === 'find-location') {
|
|
1041
|
+
return true;
|
|
1042
|
+
}
|
|
1043
|
+
// Note: field.disable decides whether to actually disable or not
|
|
1044
|
+
return field.disable ? field.disable : null;
|
|
1039
1045
|
};
|
|
1040
1046
|
/**
|
|
1041
1047
|
* @param {?} form
|
|
@@ -1101,6 +1107,24 @@
|
|
|
1101
1107
|
}
|
|
1102
1108
|
}
|
|
1103
1109
|
};
|
|
1110
|
+
// when user enters input change radio button
|
|
1111
|
+
// when user enters input change radio button
|
|
1112
|
+
/**
|
|
1113
|
+
* @param {?} field
|
|
1114
|
+
* @return {?}
|
|
1115
|
+
*/
|
|
1116
|
+
GenericFilterComponent.prototype.inputChanged =
|
|
1117
|
+
// when user enters input change radio button
|
|
1118
|
+
/**
|
|
1119
|
+
* @param {?} field
|
|
1120
|
+
* @return {?}
|
|
1121
|
+
*/
|
|
1122
|
+
function (field) {
|
|
1123
|
+
if (field.radioSelectionChange && typeof field.radioSelectionChange === 'string') {
|
|
1124
|
+
var _a = __read(field.enableCondition.split('='), 2), name_3 = _a[0], value = _a[1];
|
|
1125
|
+
this.form.get(name_3).patchValue(value);
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1104
1128
|
/**
|
|
1105
1129
|
* @return {?}
|
|
1106
1130
|
*/
|
|
@@ -1513,7 +1537,7 @@
|
|
|
1513
1537
|
* @param {?} f
|
|
1514
1538
|
* @return {?}
|
|
1515
1539
|
*/function (f) { return f.name === field.name; }));
|
|
1516
|
-
if (defaultValues) {
|
|
1540
|
+
if (defaultValues && defaultValues.value && defaultValues.value.length > 0) {
|
|
1517
1541
|
try {
|
|
1518
1542
|
for (var _b = __values(defaultValues.value), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1519
1543
|
var defaultValue = _c.value;
|
|
@@ -1621,7 +1645,7 @@
|
|
|
1621
1645
|
GenericFilterComponent.decorators = [
|
|
1622
1646
|
{ type: i0.Component, args: [{
|
|
1623
1647
|
selector: 'xuilib-generic-filter',
|
|
1624
|
-
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",
|
|
1648
|
+
template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n <div class=\"contain-classes\" *ngFor=\"let field of config.fields\">\n <hr *ngIf=\"field.lineBreakBefore\" class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.minLength || form.get(field.name).errors?.maxLength)}\">\n <h3 *ngIf=\"field.title\" class=\"govuk-heading-s\">{{field.title}}</h3>\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMinSelectedError && submitted && form.get(field.name).errors?.minLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.minSelectedError}}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{field.maxSelectedError}}\n </span>\n <div class=\"govuk-body\" [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option class=\"govuk-radios__item\" *ngFor=\"let item of field.options\" [value]=\"item.key\">{{item.label}}</option>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox-large'\">\n <div class=\"govuk-checkboxes\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + item.key\"\n [name]=\"'checkbox_' + item.key\"\n />\n <label\n [for]=\"'checkbox_' + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'radio'\">\n <div class=\"govuk-radios\">\n <div *ngFor=\"let item of field.options\" class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-person'\">\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n ></xuilib-find-person>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-location'\">\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle\"\n [enableAddLocationButton]=\"field.enableAddLocationButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [selectedLocations]=\"form.get(field.name)?.value\"\n [submitted]=\"submitted\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [field]=\"field\"\n ></xuilib-find-location>\n </ng-container>\n </div>\n </div>\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{config.applyButtonText || 'Apply'}}</button>\n <button *ngIf=\"config.showCancelFilterButton\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ config.cancelButtonText || 'Cancel'}}</button>\n </div>\n </div>\n</form>\n",
|
|
1625
1649
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1626
1650
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1627
1651
|
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}"]
|
|
@@ -3419,7 +3443,17 @@
|
|
|
3419
3443
|
function UserListComponent() {
|
|
3420
3444
|
this.users = [];
|
|
3421
3445
|
this.userClick = new i0.EventEmitter();
|
|
3446
|
+
this.pageChange = new i0.EventEmitter();
|
|
3422
3447
|
}
|
|
3448
|
+
/**
|
|
3449
|
+
* @return {?}
|
|
3450
|
+
*/
|
|
3451
|
+
UserListComponent.prototype.ngOnInit = /**
|
|
3452
|
+
* @return {?}
|
|
3453
|
+
*/
|
|
3454
|
+
function () {
|
|
3455
|
+
this.pagination = { itemsPerPage: 50, currentPage: this.currentPageNumber, totalItems: this.pageTotalSize };
|
|
3456
|
+
};
|
|
3423
3457
|
/**
|
|
3424
3458
|
* @param {?} user
|
|
3425
3459
|
* @return {?}
|
|
@@ -3431,16 +3465,31 @@
|
|
|
3431
3465
|
function (user) {
|
|
3432
3466
|
this.userClick.emit(user);
|
|
3433
3467
|
};
|
|
3468
|
+
/**
|
|
3469
|
+
* @param {?} pageNumber
|
|
3470
|
+
* @return {?}
|
|
3471
|
+
*/
|
|
3472
|
+
UserListComponent.prototype.emitPageClickEvent = /**
|
|
3473
|
+
* @param {?} pageNumber
|
|
3474
|
+
* @return {?}
|
|
3475
|
+
*/
|
|
3476
|
+
function (pageNumber) {
|
|
3477
|
+
this.currentPageNumber = pageNumber;
|
|
3478
|
+
this.pageChange.emit(pageNumber);
|
|
3479
|
+
};
|
|
3434
3480
|
UserListComponent.decorators = [
|
|
3435
3481
|
{ type: i0.Component, args: [{
|
|
3436
3482
|
selector: 'xuilib-user-list',
|
|
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\"
|
|
3483
|
+
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",
|
|
3438
3484
|
styles: [":host{display:block}"]
|
|
3439
3485
|
}] }
|
|
3440
3486
|
];
|
|
3441
3487
|
UserListComponent.propDecorators = {
|
|
3442
3488
|
users: [{ type: i0.Input }],
|
|
3443
|
-
|
|
3489
|
+
currentPageNumber: [{ type: i0.Input }],
|
|
3490
|
+
pageTotalSize: [{ type: i0.Input }],
|
|
3491
|
+
userClick: [{ type: i0.Output }],
|
|
3492
|
+
pageChange: [{ type: i0.Output }]
|
|
3444
3493
|
};
|
|
3445
3494
|
return UserListComponent;
|
|
3446
3495
|
}());
|
|
@@ -3803,6 +3852,7 @@
|
|
|
3803
3852
|
this.locations = [];
|
|
3804
3853
|
this.locationSelected = new i0.EventEmitter();
|
|
3805
3854
|
this.locationInputChanged = new i0.EventEmitter();
|
|
3855
|
+
this.searchLocationChanged = new i0.EventEmitter();
|
|
3806
3856
|
this.minSearchCharacters = 3;
|
|
3807
3857
|
this.term = '';
|
|
3808
3858
|
this.pSelectedLocations = [];
|
|
@@ -3923,6 +3973,15 @@
|
|
|
3923
3973
|
_this.showAutocomplete = true;
|
|
3924
3974
|
}));
|
|
3925
3975
|
};
|
|
3976
|
+
/**
|
|
3977
|
+
* @return {?}
|
|
3978
|
+
*/
|
|
3979
|
+
SearchLocationComponent.prototype.onInput = /**
|
|
3980
|
+
* @return {?}
|
|
3981
|
+
*/
|
|
3982
|
+
function () {
|
|
3983
|
+
this.searchLocationChanged.emit();
|
|
3984
|
+
};
|
|
3926
3985
|
/**
|
|
3927
3986
|
* @param {?} term
|
|
3928
3987
|
* @return {?}
|
|
@@ -3971,7 +4030,7 @@
|
|
|
3971
4030
|
SearchLocationComponent.decorators = [
|
|
3972
4031
|
{ type: i0.Component, args: [{
|
|
3973
4032
|
selector: 'exui-search-location',
|
|
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",
|
|
4033
|
+
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",
|
|
3975
4034
|
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}"]
|
|
3976
4035
|
}] }
|
|
3977
4036
|
];
|
|
@@ -3996,6 +4055,7 @@
|
|
|
3996
4055
|
locations: [{ type: i0.Input }],
|
|
3997
4056
|
locationSelected: [{ type: i0.Output }],
|
|
3998
4057
|
locationInputChanged: [{ type: i0.Output }],
|
|
4058
|
+
searchLocationChanged: [{ type: i0.Output }],
|
|
3999
4059
|
reset: [{ type: i0.Input }],
|
|
4000
4060
|
selectedLocations: [{ type: i0.Input }]
|
|
4001
4061
|
};
|
|
@@ -4009,10 +4069,12 @@
|
|
|
4009
4069
|
*/
|
|
4010
4070
|
var FindLocationComponent = /** @class */ (function () {
|
|
4011
4071
|
function FindLocationComponent() {
|
|
4072
|
+
this.locationFieldChanged = new i0.EventEmitter();
|
|
4012
4073
|
this.selectedLocations = [];
|
|
4013
4074
|
this.submitted = true;
|
|
4014
4075
|
this.enableAddLocationButton = true;
|
|
4015
4076
|
this.locationTitle = 'Search for a location by name';
|
|
4077
|
+
this.disableInputField = false;
|
|
4016
4078
|
this.locations = [];
|
|
4017
4079
|
this.tempSelectedLocation = null;
|
|
4018
4080
|
this.serviceIds = 'SSCS,IA';
|
|
@@ -4033,7 +4095,7 @@
|
|
|
4033
4095
|
this.searchLocationComponent.resetSearchTerm();
|
|
4034
4096
|
this.removeSelectedValues();
|
|
4035
4097
|
}
|
|
4036
|
-
this.pDisabled =
|
|
4098
|
+
this.pDisabled = this.disableInputField === true ? true : null;
|
|
4037
4099
|
},
|
|
4038
4100
|
enumerable: true,
|
|
4039
4101
|
configurable: true
|
|
@@ -4125,6 +4187,15 @@
|
|
|
4125
4187
|
this.removeSelectedValues();
|
|
4126
4188
|
}
|
|
4127
4189
|
};
|
|
4190
|
+
/**
|
|
4191
|
+
* @return {?}
|
|
4192
|
+
*/
|
|
4193
|
+
FindLocationComponent.prototype.onSearchInputChanged = /**
|
|
4194
|
+
* @return {?}
|
|
4195
|
+
*/
|
|
4196
|
+
function () {
|
|
4197
|
+
this.locationFieldChanged.emit();
|
|
4198
|
+
};
|
|
4128
4199
|
/**
|
|
4129
4200
|
* @param {?} location
|
|
4130
4201
|
* @return {?}
|
|
@@ -4202,11 +4273,12 @@
|
|
|
4202
4273
|
FindLocationComponent.decorators = [
|
|
4203
4274
|
{ type: i0.Component, args: [{
|
|
4204
4275
|
selector: 'xuilib-find-location',
|
|
4205
|
-
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",
|
|
4276
|
+
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",
|
|
4206
4277
|
styles: [""]
|
|
4207
4278
|
}] }
|
|
4208
4279
|
];
|
|
4209
4280
|
FindLocationComponent.propDecorators = {
|
|
4281
|
+
locationFieldChanged: [{ type: i0.Output }],
|
|
4210
4282
|
selectedLocations: [{ type: i0.Input }],
|
|
4211
4283
|
submitted: [{ type: i0.Input }],
|
|
4212
4284
|
enableAddLocationButton: [{ type: i0.Input }],
|
|
@@ -4214,6 +4286,7 @@
|
|
|
4214
4286
|
field: [{ type: i0.Input }],
|
|
4215
4287
|
fields: [{ type: i0.Input }],
|
|
4216
4288
|
locationTitle: [{ type: i0.Input }],
|
|
4289
|
+
disableInputField: [{ type: i0.Input }],
|
|
4217
4290
|
searchLocationComponent: [{ type: i0.ViewChild, args: [SearchLocationComponent,] }],
|
|
4218
4291
|
disabled: [{ type: i0.Input }],
|
|
4219
4292
|
services: [{ type: i0.Input }]
|
|
@@ -4860,6 +4933,7 @@
|
|
|
4860
4933
|
this.findPersonService = findPersonService;
|
|
4861
4934
|
this.cd = cd;
|
|
4862
4935
|
this.personSelected = new i0.EventEmitter();
|
|
4936
|
+
this.personFieldChanged = new i0.EventEmitter();
|
|
4863
4937
|
this.boldTitle = 'Find the person';
|
|
4864
4938
|
this.subTitle = 'Type the name of the person and select them.';
|
|
4865
4939
|
this.domain = PersonRole.ALL;
|
|
@@ -5006,14 +5080,23 @@
|
|
|
5006
5080
|
return '';
|
|
5007
5081
|
}
|
|
5008
5082
|
if (selectedPerson.domain === PersonRole.JUDICIAL && selectedPerson.knownAs) {
|
|
5009
|
-
return selectedPerson.knownAs + "(" + selectedPerson.email + ")";
|
|
5083
|
+
return selectedPerson.knownAs + " (" + selectedPerson.email + ")";
|
|
5010
5084
|
}
|
|
5011
|
-
return selectedPerson.email ? selectedPerson.name + "(" + selectedPerson.email + ")" : selectedPerson.name;
|
|
5085
|
+
return selectedPerson.email ? selectedPerson.name + " (" + selectedPerson.email + ")" : selectedPerson.name;
|
|
5086
|
+
};
|
|
5087
|
+
/**
|
|
5088
|
+
* @return {?}
|
|
5089
|
+
*/
|
|
5090
|
+
FindPersonComponent.prototype.onInput = /**
|
|
5091
|
+
* @return {?}
|
|
5092
|
+
*/
|
|
5093
|
+
function () {
|
|
5094
|
+
this.personFieldChanged.emit();
|
|
5012
5095
|
};
|
|
5013
5096
|
FindPersonComponent.decorators = [
|
|
5014
5097
|
{ type: i0.Component, args: [{
|
|
5015
5098
|
selector: 'xuilib-find-person',
|
|
5016
|
-
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",
|
|
5099
|
+
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",
|
|
5017
5100
|
styles: [".mat-option:hover{background:#2596be}.mat-option.select-option:hover{background:#1d70b8;color:#fff}.hide-autocomplete{display:none}"]
|
|
5018
5101
|
}] }
|
|
5019
5102
|
];
|
|
@@ -5026,6 +5109,7 @@
|
|
|
5026
5109
|
};
|
|
5027
5110
|
FindPersonComponent.propDecorators = {
|
|
5028
5111
|
personSelected: [{ type: i0.Output }],
|
|
5112
|
+
personFieldChanged: [{ type: i0.Output }],
|
|
5029
5113
|
title: [{ type: i0.Input }],
|
|
5030
5114
|
boldTitle: [{ type: i0.Input }],
|
|
5031
5115
|
subTitle: [{ type: i0.Input }],
|
|
@@ -6423,6 +6507,39 @@
|
|
|
6423
6507
|
return HmctsMainWrapperComponent;
|
|
6424
6508
|
}());
|
|
6425
6509
|
|
|
6510
|
+
/**
|
|
6511
|
+
* @fileoverview added by tsickle
|
|
6512
|
+
* Generated from: lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.ts
|
|
6513
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6514
|
+
*/
|
|
6515
|
+
var HmctsPaginationComponent = /** @class */ (function () {
|
|
6516
|
+
function HmctsPaginationComponent() {
|
|
6517
|
+
this.maxSize = 7;
|
|
6518
|
+
this.pageSize = 10;
|
|
6519
|
+
this.showPageNumbers = true;
|
|
6520
|
+
this.showResultCount = true;
|
|
6521
|
+
this.pageChange = new i0.EventEmitter();
|
|
6522
|
+
this.pageBoundsCorrection = new i0.EventEmitter();
|
|
6523
|
+
}
|
|
6524
|
+
HmctsPaginationComponent.decorators = [
|
|
6525
|
+
{ type: i0.Component, args: [{
|
|
6526
|
+
selector: 'xuilib-hmcts-pagination',
|
|
6527
|
+
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>",
|
|
6528
|
+
styles: [".hmcts-pagination__results{float:right}"]
|
|
6529
|
+
}] }
|
|
6530
|
+
];
|
|
6531
|
+
HmctsPaginationComponent.propDecorators = {
|
|
6532
|
+
id: [{ type: i0.Input }],
|
|
6533
|
+
maxSize: [{ type: i0.Input }],
|
|
6534
|
+
pageSize: [{ type: i0.Input }],
|
|
6535
|
+
showPageNumbers: [{ type: i0.Input }],
|
|
6536
|
+
showResultCount: [{ type: i0.Input }],
|
|
6537
|
+
pageChange: [{ type: i0.Output }],
|
|
6538
|
+
pageBoundsCorrection: [{ type: i0.Output }]
|
|
6539
|
+
};
|
|
6540
|
+
return HmctsPaginationComponent;
|
|
6541
|
+
}());
|
|
6542
|
+
|
|
6426
6543
|
/**
|
|
6427
6544
|
* @fileoverview added by tsickle
|
|
6428
6545
|
* Generated from: lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.ts
|
|
@@ -6570,6 +6687,7 @@
|
|
|
6570
6687
|
/** @type {?} */
|
|
6571
6688
|
var GOV_UI_COMPONENTS = [
|
|
6572
6689
|
HmctsIdentityBarComponent,
|
|
6690
|
+
HmctsPaginationComponent,
|
|
6573
6691
|
HmctsSubNavigationComponent,
|
|
6574
6692
|
HmctsPrimaryNavigationComponent,
|
|
6575
6693
|
HmctsErrorSummaryComponent,
|
|
@@ -6605,12 +6723,15 @@
|
|
|
6605
6723
|
i2$2.RouterModule.forChild([]),
|
|
6606
6724
|
autocomplete.MatAutocompleteModule,
|
|
6607
6725
|
material.MatTabsModule,
|
|
6608
|
-
material.MatInputModule
|
|
6726
|
+
material.MatInputModule,
|
|
6727
|
+
ngxPagination.NgxPaginationModule
|
|
6609
6728
|
],
|
|
6610
6729
|
providers: [
|
|
6611
6730
|
{ provide: windowToken, useFactory: ɵ0 }
|
|
6612
6731
|
],
|
|
6613
|
-
exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS
|
|
6732
|
+
exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
|
|
6733
|
+
ngxPagination.PaginatePipe
|
|
6734
|
+
])
|
|
6614
6735
|
},] }
|
|
6615
6736
|
];
|
|
6616
6737
|
return ExuiCommonLibModule;
|
|
@@ -7711,27 +7832,28 @@
|
|
|
7711
7832
|
exports.ɵg = FeatureToggleDirective;
|
|
7712
7833
|
exports.ɵi = LetContext;
|
|
7713
7834
|
exports.ɵj = LetDirective;
|
|
7714
|
-
exports.ɵ
|
|
7715
|
-
exports.ɵ
|
|
7716
|
-
exports.ɵ
|
|
7717
|
-
exports.ɵ
|
|
7718
|
-
exports.ɵ
|
|
7719
|
-
exports.ɵ
|
|
7720
|
-
exports.ɵ
|
|
7721
|
-
exports.ɵ
|
|
7722
|
-
exports.ɵ
|
|
7723
|
-
exports.ɵ
|
|
7724
|
-
exports.ɵ
|
|
7725
|
-
exports.ɵ
|
|
7726
|
-
exports.ɵ
|
|
7727
|
-
exports.ɵ
|
|
7728
|
-
exports.ɵ
|
|
7729
|
-
exports.ɵ
|
|
7835
|
+
exports.ɵbz = GovUkCheckboxComponent;
|
|
7836
|
+
exports.ɵcf = GovUkCheckboxesComponent;
|
|
7837
|
+
exports.ɵce = GovUkDateComponent;
|
|
7838
|
+
exports.ɵcc = GovUkErrorMessageComponent;
|
|
7839
|
+
exports.ɵcd = GovUkFieldsetComponent;
|
|
7840
|
+
exports.ɵck = GovUkFileUploadComponent;
|
|
7841
|
+
exports.ɵca = GovUkFormGroupWrapperComponent;
|
|
7842
|
+
exports.ɵby = GovUkInputComponent;
|
|
7843
|
+
exports.ɵcb = GovUkLabelComponent;
|
|
7844
|
+
exports.ɵcg = GovUkRadioComponent;
|
|
7845
|
+
exports.ɵch = GovUkRadiosComponent;
|
|
7846
|
+
exports.ɵci = GovUkSelectComponent;
|
|
7847
|
+
exports.ɵbx = GovukTableComponent;
|
|
7848
|
+
exports.ɵcj = GovUkTextareaComponent;
|
|
7849
|
+
exports.ɵbw = HmctsBannerComponent;
|
|
7850
|
+
exports.ɵbu = HmctsErrorSummaryComponent;
|
|
7730
7851
|
exports.ɵbq = HmctsIdentityBarComponent;
|
|
7731
|
-
exports.ɵ
|
|
7732
|
-
exports.ɵ
|
|
7733
|
-
exports.ɵ
|
|
7734
|
-
exports.ɵ
|
|
7852
|
+
exports.ɵbv = HmctsMainWrapperComponent;
|
|
7853
|
+
exports.ɵbr = HmctsPaginationComponent;
|
|
7854
|
+
exports.ɵbt = HmctsPrimaryNavigationComponent;
|
|
7855
|
+
exports.ɵbs = HmctsSubNavigationComponent;
|
|
7856
|
+
exports.ɵcl = RemoveHostDirective;
|
|
7735
7857
|
exports.ɵr = CaseSharingStateService;
|
|
7736
7858
|
exports.ɵbg = CookieService;
|
|
7737
7859
|
exports.ɵh = FeatureToggleService;
|