import { UiElement } from '../shared/element.js'; export type PaginationSize = 'sm' | 'md' | 'lg'; /** * Carbon `Pagination`: a bar with "Items per page" (a borderless select), the item range, the page * select ("page N"), "of N pages" and previous / next buttons. Heights sm 32 / md 40 (default) / * lg 48, layer surface with a 1px top border, controls separated by hairlines, as in Carbon. * * Texts are templates: `{min}`, `{max}`, `{total}`, `{page}` are replaced. With `pages-unknown` * the page select becomes plain text and the next button never disables. * * @fires ui-change - detail: { page, pageSize } after the user changed either * @csspart base - The bar * @csspart page-size-select - The items-per-page select * @csspart range - The item range text * @csspart page-select - The page select * @csspart pages - The "of N pages" text * @csspart previous-button - Previous page * @csspart next-button - Next page * @cssprop --ui-pagination-border / --ui-pagination-background / --ui-pagination-divider - The bar's top rule, fill and the rules between its parts (default hairline, the layer, hairline; Kanok: open, undivided) * @cssprop --ui-pagination-gap / --ui-pagination-range-ink - Space within each side and the range text colour (default none, ink) * @cssprop --ui-pagination-select-border / --ui-pagination-select-radius / --ui-pagination-button-radius - The selects' outline and corners, the arrows' corners (default none, 0, 0; Kanok: outlined 6px selects, round arrows) * @cssprop --ui-focus-offset - `outline-offset` of its focus ring (default -2px: inside; Kanok: 2px outside) */ export declare class UiPagination extends UiElement { static readonly styles: import("lit").CSSResult; /** 1-based current page. */ page: number; private readonly localize; pageSize: number; /** Choices for the page-size select, e.g. "10,25,50". Empty hides the select. */ pageSizes: string; totalItems: number; /** Total unknown: no page select, next never disabled (Carbon `pagesUnknown`). */ pagesUnknown: boolean; /** With `pages-unknown`: this is the last page, so Next is disabled (Carbon `isLastPage`; cursor-based APIs). */ isLastPage: boolean; size: PaginationSize; disabled: boolean; itemsPerPageText?: string; itemRangeText?: string; /** Range text while the total is unknown. */ itemText?: string; pageRangeText?: string; /** Label of each page option and the page text while unknown. */ pageText?: string; pageSelectLabel?: string; previousLabel?: string; nextLabel?: string; private readonly ids; private get state(); get totalPages(): number; private get sizes(); private fill; private emit; private onPageSize; private onPageSelect; private goTo; /** * Previous / next. Reaching the first or last page disables the button that has focus, which would * drop focus to `
`; move it to the opposite button instead (as Carbon does). */ private step; private renderPageSizeSelect; private renderPageSelect; /** Focus the first control that shows (the page-size select; narrow, an arrow). */ focus(options?: FocusOptions): void; render(): import("lit-html").TemplateResult<1>; } export interface PaginationChangeDetail { page: number; pageSize: number; } export interface UiPaginationEventMap extends HTMLElementEventMap { 'ui-change': CustomEvent