import * as _ng_nest_ui_select from '@ng-nest/ui/select'; import { XSelectNode } from '@ng-nest/ui/select'; import * as _angular_core from '@angular/core'; import { OnInit, ElementRef, SimpleChanges } from '@angular/core'; import * as _ng_nest_ui_core from '@ng-nest/ui/core'; import { XNumber, XQuery, XBoolean, XDataArray, XTemplate } from '@ng-nest/ui/core'; import { XI18nPagination } from '@ng-nest/ui/i18n'; /** * Pagination * @selector x-pagination * @decorator component */ declare const XPaginationPrefix = "x-pagination"; /** * @zh_CN 分页选择条数 * @en_US Sub-selection */ declare const XPaginationSizeData: number[]; declare const XPaginationProperty_base: new () => { config: _ng_nest_ui_core.XPaginationConfig | undefined; }; /** * Pagination Property */ declare class XPaginationProperty extends XPaginationProperty_base { /** * @zh_CN 当前页码 * @en_US Current page number */ readonly index: _angular_core.ModelSignal; /** * @zh_CN 每页显示条数 * @en_US Number of items displayed per page */ readonly size: _angular_core.ModelSignal; /** * @zh_CN 总数 * @en_US Total */ readonly total: _angular_core.InputSignalWithTransform; /** * @zh_CN 查询条件 * @en_US Query conditions */ readonly query: _angular_core.ModelSignal; /** * @zh_CN 最多显示的分页数量 * @en_US The largest number of pages display */ readonly pageLinkSize: _angular_core.InputSignalWithTransform; /** * @zh_CN 显示首尾页跳转 * @en_US Display the first and last page */ readonly showEllipsis: _angular_core.InputSignalWithTransform; /** * @zh_CN 显示总条数 * @en_US Display the total */ readonly showTotal: _angular_core.InputSignalWithTransform; /** * @zh_CN 按钮间距 * @en_US Button spacing */ readonly space: _angular_core.InputSignalWithTransform; /** * @zh_CN 添加背景色 * @en_US Show background */ readonly showBackground: _angular_core.InputSignalWithTransform; /** * @zh_CN 显示分页条数 * @en_US Show size */ readonly showSize: _angular_core.InputSignalWithTransform; /** * @zh_CN 分页条数选择框的宽度 * @en_US size with select */ readonly sizeWidth: _angular_core.InputSignalWithTransform; /** * @zh_CN 显示输入分页框(不能跟下拉选项同时使用),默认使用回车确认改变 * @en_US Display the number of input page breaks (cannot exist with the drop-down options of page breaks). default to using Enter to confirm changes */ readonly showInputSize: _angular_core.InputSignalWithTransform; /** * @zh_CN 显示输入分页框的 tooltip 提示信息,默认显示 * @en_US show enter the tooltip prompt information for the pagination box, which will be displayed by default based on the confirmation of the input */ readonly showInputSizeTooltipText: _angular_core.InputSignalWithTransform; /** * @zh_CN 输入分页框的 tooltip 提示信息,默认根据输入确认改变的方式来显示 * @en_US Enter the tooltip prompt information for the pagination box, which will be displayed by default based on the confirmation of the input */ readonly inputSizeTooltipText: _angular_core.InputSignal; /** * @zh_CN 分页条数输入框的宽度 * @en_US size with input */ readonly inputSizeWidth: _angular_core.InputSignalWithTransform; /** * @zh_CN 分页选择的数据项 * @en_US Paging choose items of data */ readonly sizeData: _angular_core.InputSignal>; /** * @zh_CN 禁用整个分页 * @en_US disabled */ readonly disabled: _angular_core.InputSignalWithTransform; /** * @zh_CN 显示跳转输入框,默认使用回车确认改变 * @en_US Show size. default to using Enter to confirm changes */ readonly showJump: _angular_core.InputSignalWithTransform; /** * @zh_CN 显示跳转输入框的 tooltip 提示信息,默认显示 * @en_US Show the tooltip prompt information for jumping to the input box is displayed by default based on the confirmation of input changes */ readonly showJumpTooltipText: _angular_core.InputSignalWithTransform; /** * @zh_CN 跳转输入框的 tooltip 提示信息,默认根据输入确认改变的方式来显示 * @en_US The tooltip prompt information for jumping to the input box is displayed by default based on the confirmation of input changes */ readonly jumpTooltipText: _angular_core.InputSignal; /** * @zh_CN 跳转页的宽度 * @en_US size with */ readonly jumpWidth: _angular_core.InputSignalWithTransform; /** * @zh_CN 总数自定义模板 * @en_US Total template */ readonly totalTpl: _angular_core.InputSignal; /** * @zh_CN 简单分页 * @en_US Simple */ readonly simple: _angular_core.InputSignalWithTransform; /** * @zh_CN 简单分页输入框宽度 * @en_US Simple index with */ readonly simpleIndexWidth: _angular_core.InputSignalWithTransform; /** * @zh_CN 输入确认改变的方式,针对输入分页大小和输入跳转页 * @en_US The method for confirming changes in input is based on the input page size and input jump page */ readonly inputIndexSizeSureType: _angular_core.InputSignal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * @zh_CN 输入确认改变的方式,针对输入分页大小和输入跳转页 * - `'enter'` : 输入后使用回车键确认 * - `'blur'` : 输入后失去焦点后确认 * - `'both'` : 上面2种都可以触发确认操作 * @en_US The method for confirming changes in input is based on the input page size and input jump page * - `'enter'` : After entering, use the enter key to confirm * - `'blur'` : Confirm after losing focus after input * - `'both'` : Both of the above can trigger confirmation operations */ type XPaginationInputIndexSizeSureType = 'enter' | 'blur' | 'both'; declare class XPaginationComponent extends XPaginationProperty implements OnInit { elementRef: ElementRef; private i18n; locale: _angular_core.Signal; className: string; indexFirst: _angular_core.WritableSignal; indexLast: _angular_core.WritableSignal; jumpPage: _angular_core.WritableSignal; inputSize: _angular_core.WritableSignal; lastIndex: _angular_core.Signal; leftDisabled: _angular_core.Signal; rightDisabled: _angular_core.Signal; firstActivated: _angular_core.Signal; lastActivated: _angular_core.Signal; indexes: _angular_core.Signal; sizeDataSignal: _angular_core.Signal<_ng_nest_ui_select.XSelectNode[]>; inputSizeTooltip: _angular_core.Signal; jumpTooltip: _angular_core.Signal; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; sizeChanged(): void; jump(index: number, isDiff?: boolean): void; onJumpBlur(_event: MouseEvent, holdValue?: boolean): void; onJumpKeydown(event: KeyboardEvent, holdValue?: boolean): void; onJumpPageChange(page: number, holdValue?: boolean): void; onSimpleKeydown(event: KeyboardEvent): void; onInputSizeBlur(_event: MouseEvent): void; onInputSizeKeydown(event: KeyboardEvent): void; onSizeChange(size: number): void; validateIndex(value: number): number; getActivated(index: number): boolean; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class XPaginationModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { XPaginationComponent, XPaginationModule, XPaginationPrefix, XPaginationProperty, XPaginationSizeData }; export type { XPaginationInputIndexSizeSureType };