@hmcts/rpx-xui-common-lib 1.7.12 → 1.7.13-task-name-filter
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +254 -114
- 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 +27 -26
- package/esm2015/lib/components/find-task-name/find-task-name.component.js +228 -0
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +22 -2
- package/esm2015/lib/exui-common-lib.module.js +4 -4
- package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +5 -2
- package/esm2015/lib/models/filter.model.js +5 -1
- package/esm2015/lib/models/pagination.model.js +1 -11
- package/esm2015/lib/models/task-name.model.js +16 -0
- package/esm2015/lib/services/task-name/task-name.service.js +65 -0
- package/esm5/hmcts-rpx-xui-common-lib.js +27 -26
- package/esm5/lib/components/find-task-name/find-task-name.component.js +243 -0
- package/esm5/lib/components/generic-filter/generic-filter.component.js +27 -2
- package/esm5/lib/exui-common-lib.module.js +4 -4
- package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +5 -2
- package/esm5/lib/models/filter.model.js +5 -1
- package/esm5/lib/models/pagination.model.js +1 -11
- package/esm5/lib/models/task-name.model.js +16 -0
- package/esm5/lib/services/task-name/task-name.service.js +70 -0
- package/fesm2015/hmcts-rpx-xui-common-lib.js +192 -62
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +226 -86
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +26 -25
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/find-task-name/find-task-name.component.d.ts +41 -0
- package/lib/components/generic-filter/generic-filter.component.d.ts +1 -0
- package/lib/exui-common-lib.module.d.ts +2 -1
- package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +1 -0
- package/lib/models/filter.model.d.ts +3 -1
- package/lib/models/pagination.model.d.ts +0 -4
- package/lib/models/task-name.model.d.ts +4 -0
- package/lib/services/task-name/task-name.service.d.ts +13 -0
- package/package.json +1 -1
- package/esm2015/lib/components/pagination-v1/pagination.component.js +0 -130
- package/esm5/lib/components/pagination-v1/pagination.component.js +0 -144
- package/lib/components/pagination-v1/pagination.component.d.ts +0 -19
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { PersonRole } from '../../models';
|
|
5
|
+
import { TaskNameModel } from '../../models/task-name.model';
|
|
6
|
+
import { TaskNameService } from '../../services/task-name/task-name.service';
|
|
7
|
+
export declare class FindTaskNameComponent implements OnChanges, OnDestroy {
|
|
8
|
+
private readonly cd;
|
|
9
|
+
private readonly taskService;
|
|
10
|
+
taskNameSelected: EventEmitter<any>;
|
|
11
|
+
taskNameFieldChanged: EventEmitter<void>;
|
|
12
|
+
title: string;
|
|
13
|
+
boldTitle: string;
|
|
14
|
+
subTitle: string;
|
|
15
|
+
domain: PersonRole;
|
|
16
|
+
findTaskNameGroup: FormGroup;
|
|
17
|
+
selectedTaskName: string;
|
|
18
|
+
submitted: boolean;
|
|
19
|
+
userIncluded?: boolean;
|
|
20
|
+
assignedUser?: string;
|
|
21
|
+
placeholderContent: string;
|
|
22
|
+
isNoResultsShown: boolean;
|
|
23
|
+
showUpdatedColor: boolean;
|
|
24
|
+
selectedTaskNames: TaskNameModel[];
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
idValue: string;
|
|
27
|
+
services: string[];
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
showAutocomplete: boolean;
|
|
30
|
+
findTaskNameControl: FormControl;
|
|
31
|
+
filteredOptions: string[];
|
|
32
|
+
readonly minSearchCharacters = 1;
|
|
33
|
+
private sub;
|
|
34
|
+
searchTerm: string;
|
|
35
|
+
constructor(cd: ChangeDetectorRef, taskService: TaskNameService);
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
ngOnChanges(): void;
|
|
38
|
+
getTaskName(): Observable<any[]>;
|
|
39
|
+
onSelectionChange(selectedTaskName: string): void;
|
|
40
|
+
onInput(): void;
|
|
41
|
+
}
|
|
@@ -24,6 +24,7 @@ export declare class GenericFilterComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
inputChanged(field: FilterFieldConfig): void;
|
|
25
25
|
cancelFilter(): void;
|
|
26
26
|
updatePersonControls(values: any, field: FilterFieldConfig): void;
|
|
27
|
+
updateTaskNameControls(values: any, field: FilterFieldConfig): void;
|
|
27
28
|
toggleSelectAll(event: any, form: FormGroup, item: {
|
|
28
29
|
key: string;
|
|
29
30
|
label: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AccessibilityComponent } from './components/accessibility/accessibility.component';
|
|
2
2
|
import { CookieBannerComponent } from './components/cookie-banner/cookie-banner.component';
|
|
3
3
|
import { FindPersonComponent } from './components/find-person/find-person.component';
|
|
4
|
+
import { FindTaskNameComponent } from './components/find-task-name/find-task-name.component';
|
|
4
5
|
import { GenericFilterComponent } from './components/generic-filter/generic-filter.component';
|
|
5
6
|
import { SearchJudicialsComponent } from './components/search-judicials/search-judicials.component';
|
|
6
7
|
import { SearchLocationComponent } from './components/search-location/search-location.component';
|
|
@@ -27,7 +28,7 @@ import { HmctsPaginationComponent } from './gov-ui/components/hmcts-pagination/h
|
|
|
27
28
|
import { HmctsPrimaryNavigationComponent } from './gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component';
|
|
28
29
|
import { HmctsSubNavigationComponent } from './gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component';
|
|
29
30
|
import { RemoveHostDirective } from './gov-ui/directives/remove-host.directive';
|
|
30
|
-
export declare const COMMON_COMPONENTS: (typeof AccessibilityComponent | typeof GenericFilterComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof ServiceMessagesComponent | typeof ShareCaseConfirmComponent | typeof ShareCaseComponent | typeof CookieBannerComponent | typeof SearchLocationComponent | typeof FeatureToggleDirective | typeof LetDirective | typeof FindPersonComponent | typeof SearchJudicialsComponent | typeof SearchVenueComponent)[];
|
|
31
|
+
export declare const COMMON_COMPONENTS: (typeof AccessibilityComponent | typeof GenericFilterComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof ServiceMessagesComponent | typeof ShareCaseConfirmComponent | typeof ShareCaseComponent | typeof CookieBannerComponent | typeof SearchLocationComponent | typeof FeatureToggleDirective | typeof LetDirective | typeof FindPersonComponent | typeof SearchJudicialsComponent | typeof FindTaskNameComponent | typeof SearchVenueComponent)[];
|
|
31
32
|
export declare const GOV_UI_COMPONENTS: (typeof HmctsIdentityBarComponent | typeof HmctsPaginationComponent | typeof HmctsSubNavigationComponent | typeof HmctsPrimaryNavigationComponent | typeof HmctsErrorSummaryComponent | typeof HmctsMainWrapperComponent | typeof HmctsBannerComponent | typeof GovukTableComponent | typeof GovUkFormGroupWrapperComponent | typeof GovUkLabelComponent | typeof GovUkErrorMessageComponent | typeof GovUkCheckboxesComponent | typeof GovUkRadioComponent | typeof RemoveHostDirective)[];
|
|
32
33
|
export declare class ExuiCommonLibModule {
|
|
33
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PersonRole } from './person.model';
|
|
2
|
-
export declare type FilterFieldType = 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'checkbox-large';
|
|
2
|
+
export declare type FilterFieldType = 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'find-task-name' | 'checkbox-large';
|
|
3
3
|
export declare type FilterPersistence = 'local' | 'session' | 'memory';
|
|
4
4
|
export interface FilterConfig {
|
|
5
5
|
id: string;
|
|
@@ -28,9 +28,11 @@ export interface FilterFieldConfig {
|
|
|
28
28
|
showCondition?: string;
|
|
29
29
|
enableCondition?: string;
|
|
30
30
|
enableAddLocationButton?: boolean;
|
|
31
|
+
enableAddTaskNameButton?: boolean;
|
|
31
32
|
changeResetFields?: string[];
|
|
32
33
|
findPersonField?: string;
|
|
33
34
|
findLocationField?: string;
|
|
35
|
+
findTaskNameField?: string;
|
|
34
36
|
domainField?: string;
|
|
35
37
|
disable?: boolean;
|
|
36
38
|
disabledText?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SessionStorageService } from '../session-storage/session-storage.service';
|
|
4
|
+
export declare class TaskNameService {
|
|
5
|
+
private readonly http;
|
|
6
|
+
private readonly sessionStorageService;
|
|
7
|
+
static taskNamesKey: string;
|
|
8
|
+
constructor(http: HttpClient, sessionStorageService: SessionStorageService);
|
|
9
|
+
/**
|
|
10
|
+
* @return Observable<any[]>: Array of taskName in Observable
|
|
11
|
+
*/
|
|
12
|
+
getTaskName(): Observable<any[]>;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/pagination-v1/pagination.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @param {?} input
|
|
9
|
-
* @return {?}
|
|
10
|
-
*/
|
|
11
|
-
function coerceToBoolean(input) {
|
|
12
|
-
return !!input && input !== 'false';
|
|
13
|
-
}
|
|
14
|
-
export class PaginationV1Component {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.maxSize = 7;
|
|
17
|
-
this.previousLabel = 'Previous';
|
|
18
|
-
this.nextLabel = 'Next';
|
|
19
|
-
this.screenReaderPaginationLabel = 'Pagination';
|
|
20
|
-
this.screenReaderPageLabel = 'page';
|
|
21
|
-
this.screenReaderCurrentLabel = `You're on page`;
|
|
22
|
-
this.pageChange = new EventEmitter();
|
|
23
|
-
this.pageBoundsCorrection = new EventEmitter();
|
|
24
|
-
// tslint:disable-next-line:variable-name
|
|
25
|
-
this._directionLinks = true;
|
|
26
|
-
// tslint:disable-next-line:variable-name
|
|
27
|
-
this._autoHide = false;
|
|
28
|
-
// tslint:disable-next-line:variable-name
|
|
29
|
-
this._responsive = false;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @return {?}
|
|
33
|
-
*/
|
|
34
|
-
get directionLinks() {
|
|
35
|
-
return this._directionLinks;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @param {?} value
|
|
39
|
-
* @return {?}
|
|
40
|
-
*/
|
|
41
|
-
set directionLinks(value) {
|
|
42
|
-
this._directionLinks = coerceToBoolean(value);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @return {?}
|
|
46
|
-
*/
|
|
47
|
-
get autoHide() {
|
|
48
|
-
return this._autoHide;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @param {?} value
|
|
52
|
-
* @return {?}
|
|
53
|
-
*/
|
|
54
|
-
set autoHide(value) {
|
|
55
|
-
this._autoHide = coerceToBoolean(value);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* @return {?}
|
|
59
|
-
*/
|
|
60
|
-
get responsive() {
|
|
61
|
-
return this._responsive;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @param {?} value
|
|
65
|
-
* @return {?}
|
|
66
|
-
*/
|
|
67
|
-
set responsive(value) {
|
|
68
|
-
this._responsive = coerceToBoolean(value);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
PaginationV1Component.decorators = [
|
|
72
|
-
{ type: Component, args: [{
|
|
73
|
-
selector: 'xuilib-pagination-v1',
|
|
74
|
-
template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" aria-label=\"Pagination\">\n <ul class=\"ngx-pagination\" role=\"navigation\" [attr.aria-label]=\"screenReaderPaginationLabel\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"previousLabel + ' ' + screenReaderPageLabel\">\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\">\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\n <span class=\"show-for-sr\">{{ screenReaderCurrentLabel }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </ng-container>\n </li>\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\"\n [attr.aria-label]=\"nextLabel + ' ' + screenReaderPageLabel\">\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </a>\n <span *ngIf=\"p.isLastPage()\">\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </span>\n </li>\n </ul>\n </nav>\n</pagination-template>\n",
|
|
75
|
-
styles: [".ngx-pagination{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination::after,.ngx-pagination::before{content:\" \";display:table}.ngx-pagination::after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination a,.ngx-pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6;cursor:pointer}.ngx-pagination a:hover,.ngx-pagination button:hover{background:#e6e6e6}.ngx-pagination .current{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination .disabled{display:none}.ngx-pagination .disabled:hover{background:0 0}.ngx-pagination .pagination-previous a::before,.ngx-pagination .pagination-previous.disabled::before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:0 0;transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination .pagination-next a::after,.ngx-pagination .pagination-next.disabled::after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:0 0;transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination .small-screen{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive .small-screen{display:inline-block}.ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"]
|
|
76
|
-
}] }
|
|
77
|
-
];
|
|
78
|
-
PaginationV1Component.propDecorators = {
|
|
79
|
-
visibilityLabel: [{ type: Input }],
|
|
80
|
-
id: [{ type: Input }],
|
|
81
|
-
maxSize: [{ type: Input }],
|
|
82
|
-
directionLinks: [{ type: Input }],
|
|
83
|
-
autoHide: [{ type: Input }],
|
|
84
|
-
responsive: [{ type: Input }],
|
|
85
|
-
previousLabel: [{ type: Input }],
|
|
86
|
-
nextLabel: [{ type: Input }],
|
|
87
|
-
screenReaderPaginationLabel: [{ type: Input }],
|
|
88
|
-
screenReaderPageLabel: [{ type: Input }],
|
|
89
|
-
screenReaderCurrentLabel: [{ type: Input }],
|
|
90
|
-
pageChange: [{ type: Output }],
|
|
91
|
-
pageBoundsCorrection: [{ type: Output }]
|
|
92
|
-
};
|
|
93
|
-
if (false) {
|
|
94
|
-
/** @type {?} */
|
|
95
|
-
PaginationV1Component.prototype.visibilityLabel;
|
|
96
|
-
/** @type {?} */
|
|
97
|
-
PaginationV1Component.prototype.id;
|
|
98
|
-
/** @type {?} */
|
|
99
|
-
PaginationV1Component.prototype.maxSize;
|
|
100
|
-
/** @type {?} */
|
|
101
|
-
PaginationV1Component.prototype.previousLabel;
|
|
102
|
-
/** @type {?} */
|
|
103
|
-
PaginationV1Component.prototype.nextLabel;
|
|
104
|
-
/** @type {?} */
|
|
105
|
-
PaginationV1Component.prototype.screenReaderPaginationLabel;
|
|
106
|
-
/** @type {?} */
|
|
107
|
-
PaginationV1Component.prototype.screenReaderPageLabel;
|
|
108
|
-
/** @type {?} */
|
|
109
|
-
PaginationV1Component.prototype.screenReaderCurrentLabel;
|
|
110
|
-
/** @type {?} */
|
|
111
|
-
PaginationV1Component.prototype.pageChange;
|
|
112
|
-
/** @type {?} */
|
|
113
|
-
PaginationV1Component.prototype.pageBoundsCorrection;
|
|
114
|
-
/**
|
|
115
|
-
* @type {?}
|
|
116
|
-
* @private
|
|
117
|
-
*/
|
|
118
|
-
PaginationV1Component.prototype._directionLinks;
|
|
119
|
-
/**
|
|
120
|
-
* @type {?}
|
|
121
|
-
* @private
|
|
122
|
-
*/
|
|
123
|
-
PaginationV1Component.prototype._autoHide;
|
|
124
|
-
/**
|
|
125
|
-
* @type {?}
|
|
126
|
-
* @private
|
|
127
|
-
*/
|
|
128
|
-
PaginationV1Component.prototype._responsive;
|
|
129
|
-
}
|
|
130
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGFnaW5hdGlvbi12MS9wYWdpbmF0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0FBRXZFLFNBQVMsZUFBZSxDQUFDLEtBQXVCO0lBQzlDLE9BQU8sQ0FBQyxDQUFDLEtBQUssSUFBSSxLQUFLLEtBQUssT0FBTyxDQUFDO0FBQ3RDLENBQUM7QUFPRCxNQUFNLE9BQU8scUJBQXFCO0lBTGxDO1FBV2tCLFlBQU8sR0FBRyxDQUFDLENBQUM7UUE0Qlosa0JBQWEsR0FBRyxVQUFVLENBQUM7UUFDM0IsY0FBUyxHQUFHLE1BQU0sQ0FBQztRQUNuQixnQ0FBMkIsR0FBRyxZQUFZLENBQUM7UUFDM0MsMEJBQXFCLEdBQUcsTUFBTSxDQUFDO1FBQy9CLDZCQUF3QixHQUFHLGdCQUFnQixDQUFDO1FBQzNDLGVBQVUsR0FBeUIsSUFBSS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9IG5ldyBFdmVudEVtaXR0ZXI8bnVtYmVyPigpO1xuICBAT3V0cHV0KCkgcHVibGljIHBhZ2VCb3VuZHNDb3JyZWN0aW9uOiBFdmVudEVtaXR0ZXI8bnVtYmVyPiA9IG5ldyBFdmVudEVtaXR0ZXI8bnVtYmVyPigpO1xuXG4gIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTp2YXJpYWJsZS1uYW1lXG4gIHByaXZhdGUgX2RpcmVjdGlvbkxpbmtzID0gdHJ1ZTtcbiAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOnZhcmlhYmxlLW5hbWVcbiAgcHJpdmF0ZSBfYXV0b0hpZGUgPSBmYWxzZTtcbiAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOnZhcmlhYmxlLW5hbWVcbiAgcHJpdmF0ZSBfcmVzcG9uc2l2ZSA9IGZhbHNlO1xufVxuIl19
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/pagination-v1/pagination.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @param {?} input
|
|
9
|
-
* @return {?}
|
|
10
|
-
*/
|
|
11
|
-
function coerceToBoolean(input) {
|
|
12
|
-
return !!input && input !== 'false';
|
|
13
|
-
}
|
|
14
|
-
var PaginationV1Component = /** @class */ (function () {
|
|
15
|
-
function PaginationV1Component() {
|
|
16
|
-
this.maxSize = 7;
|
|
17
|
-
this.previousLabel = 'Previous';
|
|
18
|
-
this.nextLabel = 'Next';
|
|
19
|
-
this.screenReaderPaginationLabel = 'Pagination';
|
|
20
|
-
this.screenReaderPageLabel = 'page';
|
|
21
|
-
this.screenReaderCurrentLabel = "You're on page";
|
|
22
|
-
this.pageChange = new EventEmitter();
|
|
23
|
-
this.pageBoundsCorrection = new EventEmitter();
|
|
24
|
-
// tslint:disable-next-line:variable-name
|
|
25
|
-
this._directionLinks = true;
|
|
26
|
-
// tslint:disable-next-line:variable-name
|
|
27
|
-
this._autoHide = false;
|
|
28
|
-
// tslint:disable-next-line:variable-name
|
|
29
|
-
this._responsive = false;
|
|
30
|
-
}
|
|
31
|
-
Object.defineProperty(PaginationV1Component.prototype, "directionLinks", {
|
|
32
|
-
get: /**
|
|
33
|
-
* @return {?}
|
|
34
|
-
*/
|
|
35
|
-
function () {
|
|
36
|
-
return this._directionLinks;
|
|
37
|
-
},
|
|
38
|
-
set: /**
|
|
39
|
-
* @param {?} value
|
|
40
|
-
* @return {?}
|
|
41
|
-
*/
|
|
42
|
-
function (value) {
|
|
43
|
-
this._directionLinks = coerceToBoolean(value);
|
|
44
|
-
},
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(PaginationV1Component.prototype, "autoHide", {
|
|
49
|
-
get: /**
|
|
50
|
-
* @return {?}
|
|
51
|
-
*/
|
|
52
|
-
function () {
|
|
53
|
-
return this._autoHide;
|
|
54
|
-
},
|
|
55
|
-
set: /**
|
|
56
|
-
* @param {?} value
|
|
57
|
-
* @return {?}
|
|
58
|
-
*/
|
|
59
|
-
function (value) {
|
|
60
|
-
this._autoHide = coerceToBoolean(value);
|
|
61
|
-
},
|
|
62
|
-
enumerable: true,
|
|
63
|
-
configurable: true
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(PaginationV1Component.prototype, "responsive", {
|
|
66
|
-
get: /**
|
|
67
|
-
* @return {?}
|
|
68
|
-
*/
|
|
69
|
-
function () {
|
|
70
|
-
return this._responsive;
|
|
71
|
-
},
|
|
72
|
-
set: /**
|
|
73
|
-
* @param {?} value
|
|
74
|
-
* @return {?}
|
|
75
|
-
*/
|
|
76
|
-
function (value) {
|
|
77
|
-
this._responsive = coerceToBoolean(value);
|
|
78
|
-
},
|
|
79
|
-
enumerable: true,
|
|
80
|
-
configurable: true
|
|
81
|
-
});
|
|
82
|
-
PaginationV1Component.decorators = [
|
|
83
|
-
{ type: Component, args: [{
|
|
84
|
-
selector: 'xuilib-pagination-v1',
|
|
85
|
-
template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" aria-label=\"Pagination\">\n <ul class=\"ngx-pagination\" role=\"navigation\" [attr.aria-label]=\"screenReaderPaginationLabel\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"previousLabel + ' ' + screenReaderPageLabel\">\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\">\n {{ previousLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\n <span class=\"show-for-sr\">{{ screenReaderCurrentLabel }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </ng-container>\n </li>\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\"\n [attr.aria-label]=\"nextLabel + ' ' + screenReaderPageLabel\">\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </a>\n <span *ngIf=\"p.isLastPage()\">\n {{ nextLabel }} <span class=\"show-for-sr\">{{ screenReaderPageLabel }}</span>\n </span>\n </li>\n </ul>\n </nav>\n</pagination-template>\n",
|
|
86
|
-
styles: [".ngx-pagination{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination::after,.ngx-pagination::before{content:\" \";display:table}.ngx-pagination::after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination a,.ngx-pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6;cursor:pointer}.ngx-pagination a:hover,.ngx-pagination button:hover{background:#e6e6e6}.ngx-pagination .current{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination .disabled{display:none}.ngx-pagination .disabled:hover{background:0 0}.ngx-pagination .pagination-previous a::before,.ngx-pagination .pagination-previous.disabled::before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:0 0;transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination .pagination-next a::after,.ngx-pagination .pagination-next.disabled::after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:0 0;transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination .small-screen{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive .small-screen{display:inline-block}.ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"]
|
|
87
|
-
}] }
|
|
88
|
-
];
|
|
89
|
-
PaginationV1Component.propDecorators = {
|
|
90
|
-
visibilityLabel: [{ type: Input }],
|
|
91
|
-
id: [{ type: Input }],
|
|
92
|
-
maxSize: [{ type: Input }],
|
|
93
|
-
directionLinks: [{ type: Input }],
|
|
94
|
-
autoHide: [{ type: Input }],
|
|
95
|
-
responsive: [{ type: Input }],
|
|
96
|
-
previousLabel: [{ type: Input }],
|
|
97
|
-
nextLabel: [{ type: Input }],
|
|
98
|
-
screenReaderPaginationLabel: [{ type: Input }],
|
|
99
|
-
screenReaderPageLabel: [{ type: Input }],
|
|
100
|
-
screenReaderCurrentLabel: [{ type: Input }],
|
|
101
|
-
pageChange: [{ type: Output }],
|
|
102
|
-
pageBoundsCorrection: [{ type: Output }]
|
|
103
|
-
};
|
|
104
|
-
return PaginationV1Component;
|
|
105
|
-
}());
|
|
106
|
-
export { PaginationV1Component };
|
|
107
|
-
if (false) {
|
|
108
|
-
/** @type {?} */
|
|
109
|
-
PaginationV1Component.prototype.visibilityLabel;
|
|
110
|
-
/** @type {?} */
|
|
111
|
-
PaginationV1Component.prototype.id;
|
|
112
|
-
/** @type {?} */
|
|
113
|
-
PaginationV1Component.prototype.maxSize;
|
|
114
|
-
/** @type {?} */
|
|
115
|
-
PaginationV1Component.prototype.previousLabel;
|
|
116
|
-
/** @type {?} */
|
|
117
|
-
PaginationV1Component.prototype.nextLabel;
|
|
118
|
-
/** @type {?} */
|
|
119
|
-
PaginationV1Component.prototype.screenReaderPaginationLabel;
|
|
120
|
-
/** @type {?} */
|
|
121
|
-
PaginationV1Component.prototype.screenReaderPageLabel;
|
|
122
|
-
/** @type {?} */
|
|
123
|
-
PaginationV1Component.prototype.screenReaderCurrentLabel;
|
|
124
|
-
/** @type {?} */
|
|
125
|
-
PaginationV1Component.prototype.pageChange;
|
|
126
|
-
/** @type {?} */
|
|
127
|
-
PaginationV1Component.prototype.pageBoundsCorrection;
|
|
128
|
-
/**
|
|
129
|
-
* @type {?}
|
|
130
|
-
* @private
|
|
131
|
-
*/
|
|
132
|
-
PaginationV1Component.prototype._directionLinks;
|
|
133
|
-
/**
|
|
134
|
-
* @type {?}
|
|
135
|
-
* @private
|
|
136
|
-
*/
|
|
137
|
-
PaginationV1Component.prototype._autoHide;
|
|
138
|
-
/**
|
|
139
|
-
* @type {?}
|
|
140
|
-
* @private
|
|
141
|
-
*/
|
|
142
|
-
PaginationV1Component.prototype._responsive;
|
|
143
|
-
}
|
|
144
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGFnaW5hdGlvbi12MS9wYWdpbmF0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0FBRXZFLFNBQVMsZUFBZSxDQUFDLEtBQXVCO0lBQzlDLE9BQU8sQ0FBQyxDQUFDLEtBQUssSUFBSSxLQUFLLEtBQUssT0FBTyxDQUFDO0FBQ3RDLENBQUM7QUFFRDtJQUFBO1FBV2tCLFlBQU8sR0FBRyxDQUFDLENBQUM7UUE0Qlosa0JBQWEsR0FBRyxVQUFVLENBQUM7UUFDM0IsY0FBUyxHQUFHLE1BQU0sQ0FBQztRQUNuQixnQ0FBMkIsR0FBRyxZQUFZLENBQUM7UUFDM0MsMEJBQXFCLEdBQUcsTUFBTSxDQUFDO1FBQy9CLDZCQUF3QixHQUFHLG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GVyQ3VycmVudExhYmVsID0gYFlvdSdyZSBvbiBwYWdlYDtcbiAgQE91dHB1dCgpIHB1YmxpYyBwYWdlQ2hhbmdlOiBFdmVudEVtaXR0ZXI8bnVtYmVyPiA9IG5ldyBFdmVudEVtaXR0ZXI8bnVtYmVyPigpO1xuICBAT3V0cHV0KCkgcHVibGljIHBhZ2VCb3VuZHNDb3JyZWN0aW9uOiBFdmVudEVtaXR0ZXI8bnVtYmVyPiA9IG5ldyBFdmVudEVtaXR0ZXI8bnVtYmVyPigpO1xuXG4gIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTp2YXJpYWJsZS1uYW1lXG4gIHByaXZhdGUgX2RpcmVjdGlvbkxpbmtzID0gdHJ1ZTtcbiAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOnZhcmlhYmxlLW5hbWVcbiAgcHJpdmF0ZSBfYXV0b0hpZGUgPSBmYWxzZTtcbiAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOnZhcmlhYmxlLW5hbWVcbiAgcHJpdmF0ZSBfcmVzcG9uc2l2ZSA9IGZhbHNlO1xufVxuIl19
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
export declare class PaginationV1Component {
|
|
3
|
-
visibilityLabel: string;
|
|
4
|
-
id: string;
|
|
5
|
-
maxSize: number;
|
|
6
|
-
directionLinks: boolean;
|
|
7
|
-
autoHide: boolean;
|
|
8
|
-
responsive: boolean;
|
|
9
|
-
previousLabel: string;
|
|
10
|
-
nextLabel: string;
|
|
11
|
-
screenReaderPaginationLabel: string;
|
|
12
|
-
screenReaderPageLabel: string;
|
|
13
|
-
screenReaderCurrentLabel: string;
|
|
14
|
-
pageChange: EventEmitter<number>;
|
|
15
|
-
pageBoundsCorrection: EventEmitter<number>;
|
|
16
|
-
private _directionLinks;
|
|
17
|
-
private _autoHide;
|
|
18
|
-
private _responsive;
|
|
19
|
-
}
|