Icard/angular-clarity-master(work.../node_modules/primeng/fesm2022/primeng-paginator.mjs.map

1 line
37 KiB
Plaintext
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
{"version":3,"file":"primeng-paginator.mjs","sources":["../../src/app/components/paginator/paginator.ts","../../src/app/components/paginator/primeng-paginator.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Input,\n NgModule,\n OnChanges,\n OnInit,\n Output,\n QueryList,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Aria, PrimeNGConfig, PrimeTemplate, SelectItem, SharedModule } from 'primeng/api';\nimport { DropdownChangeEvent, DropdownModule } from 'primeng/dropdown';\nimport { AngleDoubleLeftIcon } from 'primeng/icons/angledoubleleft';\nimport { AngleDoubleRightIcon } from 'primeng/icons/angledoubleright';\nimport { AngleLeftIcon } from 'primeng/icons/angleleft';\nimport { AngleRightIcon } from 'primeng/icons/angleright';\nimport { InputNumberModule } from 'primeng/inputnumber';\nimport { RippleModule } from 'primeng/ripple';\nimport { Nullable } from 'primeng/ts-helpers';\nimport { PaginatorState } from './paginator.interface';\n/**\n * Paginator is a generic component to display content in paged format.\n * @group Components\n */\n@Component({\n selector: 'p-paginator',\n template: `\n <div [class]=\"styleClass\" [ngStyle]=\"style\" [ngClass]=\"'p-paginator p-component'\" *ngIf=\"alwaysShow ? true : pageLinks && pageLinks.length > 1\" [attr.data-pc-section]=\"'paginator'\" [attr.data-pc-section]=\"'root'\">\n <div class=\"p-paginator-left-content\" *ngIf=\"templateLeft\" [attr.data-pc-section]=\"'start'\">\n <ng-container *ngTemplateOutlet=\"templateLeft; context: { $implicit: paginatorState }\"></ng-container>\n </div>\n <span class=\"p-paginator-current\" *ngIf=\"showCurrentPageReport\">{{ currentPageReport }}</span>\n <button\n *ngIf=\"showFirstLastIcon\"\n type=\"button\"\n [disabled]=\"isFirstPage() || empty()\"\n (click)=\"changePageToFirst($event)\"\n pRipple\n class=\"p-paginator-first p-paginator-element p-link\"\n [ngClass]=\"{ 'p-disabled': isFirstPage() || empty() }\"\n [attr.aria-label]=\"getAriaLabel('firstPageLabel')\"\n >\n <AngleDoubleLeftIcon *ngIf=\"!firstPageLinkIconTemplate\" [styleClass]=\"'p-paginator-icon'\" />\n <span class=\"p-paginator-icon\" *ngIf=\"firstPageLinkIconTemplate\">\n <ng-template *ngTemplateOutlet=\"firstPageLinkIconTemplate\"></ng-template>\n </span>\n </button>\n <button\n type=\"button\"\n [disabled]=\"isFirstPage() || empty()\"\n (click)=\"changePageToPrev($event)\"\n pRipple\n class=\"p-paginator-prev p-paginator-element p-link\"\n [ngClass]=\"{ 'p-disabled': isFirstPage() || empty() }\"\n [attr.aria-label]=\"getAriaLabel('prevPageLabel')\"\n >\n <AngleLeftIcon *ngIf=\"!previousPageLinkIconTemplate\" [styleClass]=\"'p-paginator-icon'\" />\n <span class=\"p-paginator-icon\" *ngIf=\"previousPageLinkIconTemplate\">\n <ng-template *ngTemplateOutlet=\"previousPageLinkIconTemplate\"></ng-template>\n </span>\n </button>\n <span class=\"p-paginator-pages\" *ngIf=\"showPageLinks\">\n <button\n type=\"button\"\n *ngFor=\"let pageLink of pageLinks\"\n class=\"p-paginator-page p-paginator-element p-link\"\n [ngClass]=\"{ 'p-highlight': pageLink - 1 == getPage() }\"\n [attr.aria-label]=\"getPageAriaLabel(pageLink)\"\n [attr.aria-curren