@progress/kendo-angular-pager
Version:
Kendo UI Angular Pager
101 lines (100 loc) • 3.97 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Directive, Input } from '@angular/core';
import { ComponentMessages } from '@progress/kendo-angular-l10n';
import * as i0 from "@angular/core";
/**
* @hidden
*/
export class Messages extends ComponentMessages {
/**
* The label of the pager. Follows the pattern **Page navigation, page {currentPage} of {totalPages}** by default.
* Тhe default label text when the current page is 1, and the total number of pages is 10 will be
* **Page navigation, page 1 of 10**.
*
* The message consists of several parts - the current page number, the total number of pages, and a localizable string.
* To allow for reordering its parts, the `ariaLabel` input accepts a string with placeholders for the current page
* and total number of pages. The `{currentPage}` and `{totalPages}` placeholders will be replaced
* internally with the respective actual values.
*/
ariaLabel;
/**
* The label for the **First page** button.
*/
firstPage;
/**
* The label for the **Last page** button.
*/
lastPage;
/**
* The label for the **Previous page** button.
*/
previousPage;
/**
* The label for the **Next page** button.
*/
nextPage;
/**
* The label displayed before the pager input.
*/
page;
/**
* The title attribute of the page number input element.
*/
pageNumberInputTitle;
/**
* The label displayed after the page-size selector.
*/
itemsPerPage;
/**
* The label before the total-page number.
*/
of;
/**
* The label after the total-page number.
*/
items;
/**
* The text of the title and aria-label attributes applied to the page chooser.
*/
selectPage;
/**
* The text of the aria-label attribute applied to the input element for entering the page number."
*/
inputLabel;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, selector: "kendoPagerMessages", inputs: { ariaLabel: "ariaLabel", firstPage: "firstPage", lastPage: "lastPage", previousPage: "previousPage", nextPage: "nextPage", page: "page", pageNumberInputTitle: "pageNumberInputTitle", itemsPerPage: "itemsPerPage", of: "of", items: "items", selectPage: "selectPage", inputLabel: "inputLabel" }, usesInheritance: true, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{
type: Directive,
args: [{
// eslint-disable-next-line @angular-eslint/directive-selector
selector: 'kendoPagerMessages'
}]
}], propDecorators: { ariaLabel: [{
type: Input
}], firstPage: [{
type: Input
}], lastPage: [{
type: Input
}], previousPage: [{
type: Input
}], nextPage: [{
type: Input
}], page: [{
type: Input
}], pageNumberInputTitle: [{
type: Input
}], itemsPerPage: [{
type: Input
}], of: [{
type: Input
}], items: [{
type: Input
}], selectPage: [{
type: Input
}], inputLabel: [{
type: Input
}] } });