import { ScrollerContentTemplateContext, ScrollerItemTemplateContext, ScrollerLazyLoadEvent, ScrollerLoaderIconTemplateContext, ScrollerLoaderTemplateContext, ScrollerScrollEvent, ScrollerScrollIndexChangeEvent, ScrollerToType, VirtualScrollerPassThrough } from "primeng/types/scroller"; import * as i0 from "@angular/core"; import { ElementRef, TemplateRef } from "@angular/core"; import { ScrollerOptions } from "primeng/api"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { VoidListener } from "primeng/ts-helpers"; import { CSSProperties } from "primeng/types/shared"; import { BaseStyle } from "primeng/base"; export * from "primeng/types/scroller"; export declare class ScrollerStyle extends BaseStyle { name: string; css: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-virtualscroller-inline': any; 'p-virtualscroller-both p-both-scroll': any; 'p-virtualscroller-horizontal p-horizontal-scroll': any; })[]; content: string; spacer: string; loader: ({ instance }: { instance: any; }) => (string | { 'p-virtualscroller-loader-mask': boolean; })[]; loadingIcon: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * VirtualScroller is a performant approach to handle huge data efficiently. * * [Live Demo](https://www.primeng.org/scroller/) * * @module scrollerstyle * */ export declare enum ScrollerClasses { /** * Class name of the root element */ root = "p-virtualscroller", /** * Class name of the content element */ content = "p-virtualscroller-content", /** * Class name of the spacer element */ spacer = "p-virtualscroller-spacer", /** * Class name of the loader element */ loader = "p-virtualscroller-loader", /** * Class name of the loading icon element */ loadingIcon = "p-virtualscroller-loading-icon" } /** * Scroller is a performance-approach to handle huge data efficiently. * @group Components */ export declare class Scroller extends BaseComponent { componentName: string; bindDirectiveInstance: Bind; $pcScroller: Scroller | undefined; hostName: import("@angular/core").InputSignal; /** * Unique identifier of the element. * @group Props */ id: import("@angular/core").InputSignal; /** * Inline style of the component. * @group Props */ style: import("@angular/core").InputSignal; /** * Style class of the element. * @group Props */ styleClass: import("@angular/core").InputSignal; /** * Index of the element in tabbing order. * @group Props */ tabindex: import("@angular/core").InputSignal; /** * An array of objects to display. * @group Props */ items: import("@angular/core").InputSignal; /** * The height/width of item according to orientation. * @group Props */ itemSize: import("@angular/core").InputSignal; /** * Height of the scroll viewport. * @group Props */ scrollHeight: import("@angular/core").InputSignal; /** * Width of the scroll viewport. * @group Props */ scrollWidth: import("@angular/core").InputSignal; /** * The orientation of scrollbar. * @group Props */ orientation: import("@angular/core").InputSignal<"vertical" | "horizontal" | "both">; /** * Used to specify how many items to load in each load method in lazy mode. * @group Props */ step: import("@angular/core").InputSignal; /** * Delay in scroll before new data is loaded. * @group Props */ delay: import("@angular/core").InputSignal; /** * Delay after window's resize finishes. * @group Props */ resizeDelay: import("@angular/core").InputSignal; /** * Used to append each loaded item to top without removing any items from the DOM. Using very large data may cause the browser to crash. * @group Props */ appendOnly: import("@angular/core").InputSignal; /** * Specifies whether the scroller should be displayed inline or not. * @group Props */ inline: import("@angular/core").InputSignal; /** * Defines if data is loaded and interacted with in lazy manner. * @group Props */ lazy: import("@angular/core").InputSignal; /** * If disabled, the scroller feature is eliminated and the content is displayed directly. * @group Props */ disabled: import("@angular/core").InputSignal; /** * Used to implement a custom loader instead of using the loader feature in the scroller. * @group Props */ loaderDisabled: import("@angular/core").InputSignal; /** * Columns to display. * @group Props */ columns: import("@angular/core").InputSignal; /** * Used to implement a custom spacer instead of using the spacer feature in the scroller. * @group Props */ showSpacer: import("@angular/core").InputSignal; /** * Defines whether to show loader. * @group Props */ showLoader: import("@angular/core").InputSignal; /** * Determines how many additional elements to add to the DOM outside of the view. According to the scrolls made up and down, extra items are added in a certain algorithm in the form of multiples of this number. Default value is half the number of items shown in the view. * @group Props */ numToleratedItems: import("@angular/core").InputSignal; /** * Defines whether the data is loaded. * @group Props */ loading: import("@angular/core").InputSignal; /** * Defines whether to dynamically change the height or width of scrollable container. * @group Props */ autoSize: import("@angular/core").InputSignal; /** * Function to optimize the dom operations by delegating to ngForTrackBy, default algoritm checks for object identity. * @group Props */ trackBy: import("@angular/core").InputSignal; /** * Defines whether to use the scroller feature. The properties of scroller component can be used like an object in it. * @group Props */ options: import("@angular/core").InputSignal; _id: import("@angular/core").Signal; _style: import("@angular/core").Signal; _styleClass: import("@angular/core").Signal; _tabindex: import("@angular/core").Signal; _items: import("@angular/core").Signal; _itemSize: import("@angular/core").Signal; _scrollHeight: import("@angular/core").Signal; _scrollWidth: import("@angular/core").Signal; _orientation: import("@angular/core").Signal<"vertical" | "horizontal" | "both">; _step: import("@angular/core").Signal; _delay: import("@angular/core").Signal; _resizeDelay: import("@angular/core").Signal; _appendOnly: import("@angular/core").Signal; _inline: import("@angular/core").Signal; _lazy: import("@angular/core").Signal; _disabled: import("@angular/core").Signal; _loaderDisabled: import("@angular/core").Signal; _columns: import("@angular/core").Signal; _showSpacer: import("@angular/core").Signal; _showLoader: import("@angular/core").Signal; _numToleratedItems: import("@angular/core").Signal; _loading: import("@angular/core").Signal; _autoSize: import("@angular/core").Signal; _trackBy: import("@angular/core").Signal; contentStyleClass: import("@angular/core").Signal; /** * Callback to invoke in lazy mode to load new data. * @param {ScrollerLazyLoadEvent} event - Custom lazy load event. * @group Emits */ onLazyLoad: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when scroll position changes. * @param {ScrollerScrollEvent} event - Custom scroll event. * @group Emits */ onScroll: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when scroll position and item's range in view changes. * @param {ScrollerScrollEvent} event - Custom scroll index change event. * @group Emits */ onScrollIndexChange: import("@angular/core").OutputEmitterRef; elementViewChild: import("@angular/core").Signal | undefined>; contentViewChild: import("@angular/core").Signal | undefined>; hostHeight: import("@angular/core").WritableSignal; /** * Content template of the component. * @param {ScrollerContentTemplateContext} context - content context. * @see {@link ScrollerContentTemplateContext} * @group Templates */ contentTemplate: import("@angular/core").Signal | undefined>; /** * Item template of the component. * @param {ScrollerItemTemplateContext} context - item context. * @see {@link ScrollerItemTemplateContext} * @group Templates */ itemTemplate: import("@angular/core").Signal | undefined>; /** * Loader template of the component. * @param {ScrollerLoaderTemplateContext} context - loader context. * @see {@link ScrollerLoaderTemplateContext} * @group Templates */ loaderTemplate: import("@angular/core").Signal | undefined>; /** * Loader icon template of the component. * @param {ScrollerLoaderIconTemplateContext} context - loader icon context. * @see {@link ScrollerLoaderIconTemplateContext} * @group Templates */ loaderIconTemplate: import("@angular/core").Signal | undefined>; d_loading: boolean; d_numToleratedItems: any; contentEl: any; vertical: import("@angular/core").Signal; horizontal: import("@angular/core").Signal; both: import("@angular/core").Signal; get loadedItems(): any[]; get loadedRows(): any[]; get loadedColumns(): any; first: any; last: any; page: number; isRangeChanged: boolean; numItemsInViewport: any; lastScrollPos: any; lazyLoadState: any; lastItemsLength: number | undefined; loaderArr: any[]; spacerStyle: CSSProperties; contentStyle: CSSProperties; scrollTimeout: any; resizeTimeout: any; private _destroyed; initialized: boolean; windowResizeListener: VoidListener; defaultWidth: number | undefined; defaultHeight: number | undefined; defaultContentWidth: number | undefined; defaultContentHeight: number | undefined; _componentStyle: ScrollerStyle; constructor(); private readonly _loaderIconContext; get loaderIconContext(): { options: { styleClass: string; }; }; onInit(): void; onAfterViewInit(): void; onAfterViewChecked(): void; onDestroy(): void; viewInit(): void; init(): void; setContentEl(el?: HTMLElement): void; setInitialState(): void; getElementRef(): ElementRef | undefined; getPageByFirst(first?: any): number; isPageChanged(first?: any): boolean; scrollTo(options: ScrollToOptions): void; scrollToIndex(index: number | number[], behavior?: ScrollBehavior): void; scrollInView(index: number, to: ScrollerToType, behavior?: ScrollBehavior): void; getRenderedRange(): { first: any; last: any; viewport: { first: any; last: any; }; }; calculateNumItems(): { numItemsInViewport: any; numToleratedItems: any; }; calculateOptions(): void; calculateAutoSize(): void; getLast(last?: number, isCols?: boolean): number; getContentPosition(): { left: number; right: number; top: number; bottom: number; x: number; y: number; }; setSize(): void; setSpacerSize(): void; setContentPosition(pos: any): void; onScrollPositionChange(event: Event): { first: number | { rows: number; cols: number; }; last: any; isRangeChanged: boolean; scrollPos: any; }; onScrollChange(event: Event): boolean; onContainerScroll(event: Event): boolean; onElementScroll(event: Event): void; bindResizeListener(): void; unbindResizeListener(): void; onWindowResize(): void; handleEvents(name: string, params: any): any; getContentTemplateContext(): ScrollerContentTemplateContext; getItemTemplateContext(item: any, index: number): ScrollerItemTemplateContext; getLoaderTemplateContext(index: number): { options: any; }; getDisabledContentTemplateContext(): ScrollerContentTemplateContext; getContentOptions(): { contentStyleClass: string; items: any[]; getItemOptions: (index: number) => { index: any; count: number; first: boolean; last: boolean; even: boolean; odd: boolean; }; loading: boolean; getLoaderOptions: (index: number, options?: any) => any; itemSize: any; rows: any[]; columns: any; spacerStyle: CSSProperties; contentStyle: CSSProperties; vertical: boolean; horizontal: boolean; both: boolean; scrollTo: any; scrollToIndex: any; orientation: "vertical" | "horizontal" | "both"; scrollableElement: any; }; getOptions(renderedIndex: number): { index: any; count: number; first: boolean; last: boolean; even: boolean; odd: boolean; }; getLoaderOptions(index: number, extOptions: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class ScrollerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }