1 | import * as i2 from '@angular/common';
|
2 | import { CommonModule } from '@angular/common';
|
3 | import * as i0 from '@angular/core';
|
4 | import { Injectable, Optional, SkipSelf, InjectionToken, EventEmitter, Directive, Input, Output, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, NgModule } from '@angular/core';
|
5 | import * as i6 from '@angular/material/core';
|
6 | import { mixinDisabled, mixinInitialized, MatCommonModule } from '@angular/material/core';
|
7 | import * as i3 from '@angular/material/button';
|
8 | import { MatButtonModule } from '@angular/material/button';
|
9 | import * as i5 from '@angular/material/select';
|
10 | import { MatSelectModule } from '@angular/material/select';
|
11 | import * as i7 from '@angular/material/tooltip';
|
12 | import { MatTooltipModule } from '@angular/material/tooltip';
|
13 | import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
|
14 | import { Subject } from 'rxjs';
|
15 | import * as i4 from '@angular/material/form-field';
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | class MatPaginatorIntl {
|
29 | constructor() {
|
30 | |
31 |
|
32 |
|
33 |
|
34 | this.changes = new Subject();
|
35 |
|
36 | this.itemsPerPageLabel = 'Items per page:';
|
37 |
|
38 | this.nextPageLabel = 'Next page';
|
39 |
|
40 | this.previousPageLabel = 'Previous page';
|
41 |
|
42 | this.firstPageLabel = 'First page';
|
43 |
|
44 | this.lastPageLabel = 'Last page';
|
45 |
|
46 | this.getRangeLabel = (page, pageSize, length) => {
|
47 | if (length == 0 || pageSize == 0) {
|
48 | return `0 of ${length}`;
|
49 | }
|
50 | length = Math.max(length, 0);
|
51 | const startIndex = page * pageSize;
|
52 |
|
53 | const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;
|
54 | return `${startIndex + 1} – ${endIndex} of ${length}`;
|
55 | };
|
56 | }
|
57 | }
|
58 | MatPaginatorIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginatorIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
59 | MatPaginatorIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginatorIntl, providedIn: 'root' });
|
60 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginatorIntl, decorators: [{
|
61 | type: Injectable,
|
62 | args: [{ providedIn: 'root' }]
|
63 | }] });
|
64 |
|
65 | function MAT_PAGINATOR_INTL_PROVIDER_FACTORY(parentIntl) {
|
66 | return parentIntl || new MatPaginatorIntl();
|
67 | }
|
68 |
|
69 | const MAT_PAGINATOR_INTL_PROVIDER = {
|
70 |
|
71 | provide: MatPaginatorIntl,
|
72 | deps: [[new Optional(), new SkipSelf(), MatPaginatorIntl]],
|
73 | useFactory: MAT_PAGINATOR_INTL_PROVIDER_FACTORY,
|
74 | };
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 | const DEFAULT_PAGE_SIZE = 50;
|
85 |
|
86 |
|
87 |
|
88 |
|
89 | class PageEvent {
|
90 | }
|
91 |
|
92 | const MAT_PAGINATOR_DEFAULT_OPTIONS = new InjectionToken('MAT_PAGINATOR_DEFAULT_OPTIONS');
|
93 |
|
94 |
|
95 | const _MatPaginatorMixinBase = mixinDisabled(mixinInitialized(class {
|
96 | }));
|
97 |
|
98 |
|
99 |
|
100 |
|
101 | class _MatPaginatorBase extends _MatPaginatorMixinBase {
|
102 | constructor(_intl, _changeDetectorRef, defaults) {
|
103 | super();
|
104 | this._intl = _intl;
|
105 | this._changeDetectorRef = _changeDetectorRef;
|
106 | this._pageIndex = 0;
|
107 | this._length = 0;
|
108 | this._pageSizeOptions = [];
|
109 | this._hidePageSize = false;
|
110 | this._showFirstLastButtons = false;
|
111 |
|
112 | this.selectConfig = {};
|
113 |
|
114 | this.page = new EventEmitter();
|
115 | this._intlChanges = _intl.changes.subscribe(() => this._changeDetectorRef.markForCheck());
|
116 | if (defaults) {
|
117 | const { pageSize, pageSizeOptions, hidePageSize, showFirstLastButtons } = defaults;
|
118 | if (pageSize != null) {
|
119 | this._pageSize = pageSize;
|
120 | }
|
121 | if (pageSizeOptions != null) {
|
122 | this._pageSizeOptions = pageSizeOptions;
|
123 | }
|
124 | if (hidePageSize != null) {
|
125 | this._hidePageSize = hidePageSize;
|
126 | }
|
127 | if (showFirstLastButtons != null) {
|
128 | this._showFirstLastButtons = showFirstLastButtons;
|
129 | }
|
130 | }
|
131 | }
|
132 |
|
133 | get pageIndex() {
|
134 | return this._pageIndex;
|
135 | }
|
136 | set pageIndex(value) {
|
137 | this._pageIndex = Math.max(coerceNumberProperty(value), 0);
|
138 | this._changeDetectorRef.markForCheck();
|
139 | }
|
140 |
|
141 | get length() {
|
142 | return this._length;
|
143 | }
|
144 | set length(value) {
|
145 | this._length = coerceNumberProperty(value);
|
146 | this._changeDetectorRef.markForCheck();
|
147 | }
|
148 |
|
149 | get pageSize() {
|
150 | return this._pageSize;
|
151 | }
|
152 | set pageSize(value) {
|
153 | this._pageSize = Math.max(coerceNumberProperty(value), 0);
|
154 | this._updateDisplayedPageSizeOptions();
|
155 | }
|
156 |
|
157 | get pageSizeOptions() {
|
158 | return this._pageSizeOptions;
|
159 | }
|
160 | set pageSizeOptions(value) {
|
161 | this._pageSizeOptions = (value || []).map(p => coerceNumberProperty(p));
|
162 | this._updateDisplayedPageSizeOptions();
|
163 | }
|
164 |
|
165 | get hidePageSize() {
|
166 | return this._hidePageSize;
|
167 | }
|
168 | set hidePageSize(value) {
|
169 | this._hidePageSize = coerceBooleanProperty(value);
|
170 | }
|
171 |
|
172 | get showFirstLastButtons() {
|
173 | return this._showFirstLastButtons;
|
174 | }
|
175 | set showFirstLastButtons(value) {
|
176 | this._showFirstLastButtons = coerceBooleanProperty(value);
|
177 | }
|
178 | ngOnInit() {
|
179 | this._initialized = true;
|
180 | this._updateDisplayedPageSizeOptions();
|
181 | this._markInitialized();
|
182 | }
|
183 | ngOnDestroy() {
|
184 | this._intlChanges.unsubscribe();
|
185 | }
|
186 |
|
187 | nextPage() {
|
188 | if (!this.hasNextPage()) {
|
189 | return;
|
190 | }
|
191 | const previousPageIndex = this.pageIndex;
|
192 | this.pageIndex = this.pageIndex + 1;
|
193 | this._emitPageEvent(previousPageIndex);
|
194 | }
|
195 |
|
196 | previousPage() {
|
197 | if (!this.hasPreviousPage()) {
|
198 | return;
|
199 | }
|
200 | const previousPageIndex = this.pageIndex;
|
201 | this.pageIndex = this.pageIndex - 1;
|
202 | this._emitPageEvent(previousPageIndex);
|
203 | }
|
204 |
|
205 | firstPage() {
|
206 |
|
207 | if (!this.hasPreviousPage()) {
|
208 | return;
|
209 | }
|
210 | const previousPageIndex = this.pageIndex;
|
211 | this.pageIndex = 0;
|
212 | this._emitPageEvent(previousPageIndex);
|
213 | }
|
214 |
|
215 | lastPage() {
|
216 |
|
217 | if (!this.hasNextPage()) {
|
218 | return;
|
219 | }
|
220 | const previousPageIndex = this.pageIndex;
|
221 | this.pageIndex = this.getNumberOfPages() - 1;
|
222 | this._emitPageEvent(previousPageIndex);
|
223 | }
|
224 |
|
225 | hasPreviousPage() {
|
226 | return this.pageIndex >= 1 && this.pageSize != 0;
|
227 | }
|
228 |
|
229 | hasNextPage() {
|
230 | const maxPageIndex = this.getNumberOfPages() - 1;
|
231 | return this.pageIndex < maxPageIndex && this.pageSize != 0;
|
232 | }
|
233 |
|
234 | getNumberOfPages() {
|
235 | if (!this.pageSize) {
|
236 | return 0;
|
237 | }
|
238 | return Math.ceil(this.length / this.pageSize);
|
239 | }
|
240 | |
241 |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 |
|
248 | _changePageSize(pageSize) {
|
249 |
|
250 |
|
251 | const startIndex = this.pageIndex * this.pageSize;
|
252 | const previousPageIndex = this.pageIndex;
|
253 | this.pageIndex = Math.floor(startIndex / pageSize) || 0;
|
254 | this.pageSize = pageSize;
|
255 | this._emitPageEvent(previousPageIndex);
|
256 | }
|
257 |
|
258 | _nextButtonsDisabled() {
|
259 | return this.disabled || !this.hasNextPage();
|
260 | }
|
261 |
|
262 | _previousButtonsDisabled() {
|
263 | return this.disabled || !this.hasPreviousPage();
|
264 | }
|
265 | |
266 |
|
267 |
|
268 |
|
269 | _updateDisplayedPageSizeOptions() {
|
270 | if (!this._initialized) {
|
271 | return;
|
272 | }
|
273 |
|
274 | if (!this.pageSize) {
|
275 | this._pageSize =
|
276 | this.pageSizeOptions.length != 0 ? this.pageSizeOptions[0] : DEFAULT_PAGE_SIZE;
|
277 | }
|
278 | this._displayedPageSizeOptions = this.pageSizeOptions.slice();
|
279 | if (this._displayedPageSizeOptions.indexOf(this.pageSize) === -1) {
|
280 | this._displayedPageSizeOptions.push(this.pageSize);
|
281 | }
|
282 |
|
283 | this._displayedPageSizeOptions.sort((a, b) => a - b);
|
284 | this._changeDetectorRef.markForCheck();
|
285 | }
|
286 |
|
287 | _emitPageEvent(previousPageIndex) {
|
288 | this.page.emit({
|
289 | previousPageIndex,
|
290 | pageIndex: this.pageIndex,
|
291 | pageSize: this.pageSize,
|
292 | length: this.length,
|
293 | });
|
294 | }
|
295 | }
|
296 | _MatPaginatorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: _MatPaginatorBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
297 | _MatPaginatorBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.1", type: _MatPaginatorBase, inputs: { color: "color", pageIndex: "pageIndex", length: "length", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: "showFirstLastButtons", selectConfig: "selectConfig" }, outputs: { page: "page" }, usesInheritance: true, ngImport: i0 });
|
298 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: _MatPaginatorBase, decorators: [{
|
299 | type: Directive
|
300 | }], ctorParameters: function () { return [{ type: MatPaginatorIntl }, { type: i0.ChangeDetectorRef }, { type: undefined }]; }, propDecorators: { color: [{
|
301 | type: Input
|
302 | }], pageIndex: [{
|
303 | type: Input
|
304 | }], length: [{
|
305 | type: Input
|
306 | }], pageSize: [{
|
307 | type: Input
|
308 | }], pageSizeOptions: [{
|
309 | type: Input
|
310 | }], hidePageSize: [{
|
311 | type: Input
|
312 | }], showFirstLastButtons: [{
|
313 | type: Input
|
314 | }], selectConfig: [{
|
315 | type: Input
|
316 | }], page: [{
|
317 | type: Output
|
318 | }] } });
|
319 |
|
320 |
|
321 |
|
322 |
|
323 |
|
324 | class MatPaginator extends _MatPaginatorBase {
|
325 | constructor(intl, changeDetectorRef, defaults) {
|
326 | super(intl, changeDetectorRef, defaults);
|
327 | if (defaults && defaults.formFieldAppearance != null) {
|
328 | this._formFieldAppearance = defaults.formFieldAppearance;
|
329 | }
|
330 | }
|
331 | }
|
332 | MatPaginator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginator, deps: [{ token: MatPaginatorIntl }, { token: i0.ChangeDetectorRef }, { token: MAT_PAGINATOR_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
333 | MatPaginator.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.1", type: MatPaginator, selector: "mat-paginator", inputs: { disabled: "disabled" }, host: { attributes: { "role": "group" }, classAttribute: "mat-paginator" }, exportAs: ["matPaginator"], usesInheritance: true, ngImport: i0, template: "<div class=\"mat-paginator-outer-container\">\n <div class=\"mat-paginator-container\">\n <div class=\"mat-paginator-page-size\" *ngIf=\"!hidePageSize\">\n <div class=\"mat-paginator-page-size-label\">\n {{_intl.itemsPerPageLabel}}\n </div>\n\n <mat-form-field\n *ngIf=\"_displayedPageSizeOptions.length > 1\"\n [appearance]=\"_formFieldAppearance!\"\n [color]=\"color\"\n class=\"mat-paginator-page-size-select\">\n <mat-select\n [value]=\"pageSize\"\n [disabled]=\"disabled\"\n [panelClass]=\"selectConfig.panelClass || ''\"\n [disableOptionCentering]=\"selectConfig.disableOptionCentering\"\n [aria-label]=\"_intl.itemsPerPageLabel\"\n (selectionChange)=\"_changePageSize($event.value)\">\n <mat-option *ngFor=\"let pageSizeOption of _displayedPageSizeOptions\" [value]=\"pageSizeOption\">\n {{pageSizeOption}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <div\n class=\"mat-paginator-page-size-value\"\n *ngIf=\"_displayedPageSizeOptions.length <= 1\">{{pageSize}}</div>\n </div>\n\n <div class=\"mat-paginator-range-actions\">\n <div class=\"mat-paginator-range-label\">\n {{_intl.getRangeLabel(pageIndex, pageSize, length)}}\n </div>\n\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-first\"\n (click)=\"firstPage()\"\n [attr.aria-label]=\"_intl.firstPageLabel\"\n [matTooltip]=\"_intl.firstPageLabel\"\n [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_previousButtonsDisabled()\"\n *ngIf=\"showFirstLastButtons\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-previous\"\n (click)=\"previousPage()\"\n [attr.aria-label]=\"_intl.previousPageLabel\"\n [matTooltip]=\"_intl.previousPageLabel\"\n [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_previousButtonsDisabled()\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-next\"\n (click)=\"nextPage()\"\n [attr.aria-label]=\"_intl.nextPageLabel\"\n [matTooltip]=\"_intl.nextPageLabel\"\n [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_nextButtonsDisabled()\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-last\"\n (click)=\"lastPage()\"\n [attr.aria-label]=\"_intl.lastPageLabel\"\n [matTooltip]=\"_intl.lastPageLabel\"\n [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_nextButtonsDisabled()\"\n *ngIf=\"showFirstLastButtons\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\"/>\n </svg>\n </button>\n </div>\n </div>\n</div>\n", styles: [".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
334 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginator, decorators: [{
|
335 | type: Component,
|
336 | args: [{ selector: 'mat-paginator', exportAs: 'matPaginator', inputs: ['disabled'], host: {
|
337 | 'class': 'mat-paginator',
|
338 | 'role': 'group',
|
339 | }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"mat-paginator-outer-container\">\n <div class=\"mat-paginator-container\">\n <div class=\"mat-paginator-page-size\" *ngIf=\"!hidePageSize\">\n <div class=\"mat-paginator-page-size-label\">\n {{_intl.itemsPerPageLabel}}\n </div>\n\n <mat-form-field\n *ngIf=\"_displayedPageSizeOptions.length > 1\"\n [appearance]=\"_formFieldAppearance!\"\n [color]=\"color\"\n class=\"mat-paginator-page-size-select\">\n <mat-select\n [value]=\"pageSize\"\n [disabled]=\"disabled\"\n [panelClass]=\"selectConfig.panelClass || ''\"\n [disableOptionCentering]=\"selectConfig.disableOptionCentering\"\n [aria-label]=\"_intl.itemsPerPageLabel\"\n (selectionChange)=\"_changePageSize($event.value)\">\n <mat-option *ngFor=\"let pageSizeOption of _displayedPageSizeOptions\" [value]=\"pageSizeOption\">\n {{pageSizeOption}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <div\n class=\"mat-paginator-page-size-value\"\n *ngIf=\"_displayedPageSizeOptions.length <= 1\">{{pageSize}}</div>\n </div>\n\n <div class=\"mat-paginator-range-actions\">\n <div class=\"mat-paginator-range-label\">\n {{_intl.getRangeLabel(pageIndex, pageSize, length)}}\n </div>\n\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-first\"\n (click)=\"firstPage()\"\n [attr.aria-label]=\"_intl.firstPageLabel\"\n [matTooltip]=\"_intl.firstPageLabel\"\n [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_previousButtonsDisabled()\"\n *ngIf=\"showFirstLastButtons\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-previous\"\n (click)=\"previousPage()\"\n [attr.aria-label]=\"_intl.previousPageLabel\"\n [matTooltip]=\"_intl.previousPageLabel\"\n [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_previousButtonsDisabled()\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-next\"\n (click)=\"nextPage()\"\n [attr.aria-label]=\"_intl.nextPageLabel\"\n [matTooltip]=\"_intl.nextPageLabel\"\n [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_nextButtonsDisabled()\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-last\"\n (click)=\"lastPage()\"\n [attr.aria-label]=\"_intl.lastPageLabel\"\n [matTooltip]=\"_intl.lastPageLabel\"\n [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_nextButtonsDisabled()\"\n *ngIf=\"showFirstLastButtons\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\"/>\n </svg>\n </button>\n </div>\n </div>\n</div>\n", styles: [".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"] }]
|
340 | }], ctorParameters: function () { return [{ type: MatPaginatorIntl }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
341 | type: Optional
|
342 | }, {
|
343 | type: Inject,
|
344 | args: [MAT_PAGINATOR_DEFAULT_OPTIONS]
|
345 | }] }]; } });
|
346 |
|
347 |
|
348 |
|
349 |
|
350 |
|
351 |
|
352 |
|
353 |
|
354 | class MatPaginatorModule {
|
355 | }
|
356 | MatPaginatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
357 | MatPaginatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.1", ngImport: i0, type: MatPaginatorModule, declarations: [MatPaginator], imports: [CommonModule, MatButtonModule, MatSelectModule, MatTooltipModule, MatCommonModule], exports: [MatPaginator] });
|
358 | MatPaginatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginatorModule, providers: [MAT_PAGINATOR_INTL_PROVIDER], imports: [CommonModule, MatButtonModule, MatSelectModule, MatTooltipModule, MatCommonModule] });
|
359 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatPaginatorModule, decorators: [{
|
360 | type: NgModule,
|
361 | args: [{
|
362 | imports: [CommonModule, MatButtonModule, MatSelectModule, MatTooltipModule, MatCommonModule],
|
363 | exports: [MatPaginator],
|
364 | declarations: [MatPaginator],
|
365 | providers: [MAT_PAGINATOR_INTL_PROVIDER],
|
366 | }]
|
367 | }] });
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 |
|
374 |
|
375 |
|
376 |
|
377 |
|
378 |
|
379 |
|
380 |
|
381 |
|
382 |
|
383 |
|
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 | export { MAT_PAGINATOR_DEFAULT_OPTIONS, MAT_PAGINATOR_INTL_PROVIDER, MAT_PAGINATOR_INTL_PROVIDER_FACTORY, MatPaginator, MatPaginatorIntl, MatPaginatorModule, PageEvent, _MatPaginatorBase };
|
390 |
|