1 | import { ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
2 | import { NgDropdownPanelService } from './ng-dropdown-panel.service';
|
3 | import { DropdownPosition } from './ng-select.types';
|
4 | import { NgOption } from './ng-select.types';
|
5 | import * as i0 from "@angular/core";
|
6 | export declare class NgDropdownPanelComponent implements OnInit, OnChanges, OnDestroy {
|
7 | private _renderer;
|
8 | private _zone;
|
9 | private _panelService;
|
10 | private _document;
|
11 | items: NgOption[];
|
12 | markedItem: NgOption;
|
13 | position: DropdownPosition;
|
14 | appendTo: string;
|
15 | bufferAmount: number;
|
16 | virtualScroll: boolean;
|
17 | headerTemplate: TemplateRef<any>;
|
18 | footerTemplate: TemplateRef<any>;
|
19 | filterValue: string;
|
20 | update: EventEmitter<any[]>;
|
21 | scroll: EventEmitter<{
|
22 | start: number;
|
23 | end: number;
|
24 | }>;
|
25 | scrollToEnd: EventEmitter<void>;
|
26 | outsideClick: EventEmitter<void>;
|
27 | contentElementRef: ElementRef;
|
28 | scrollElementRef: ElementRef;
|
29 | paddingElementRef: ElementRef;
|
30 | private readonly _destroy$;
|
31 | private readonly _dropdown;
|
32 | private _virtualPadding;
|
33 | private _scrollablePanel;
|
34 | private _contentPanel;
|
35 | private _select;
|
36 | private _parent;
|
37 | private _scrollToEndFired;
|
38 | private _updateScrollHeight;
|
39 | private _lastScrollPosition;
|
40 | constructor(_renderer: Renderer2, _zone: NgZone, _panelService: NgDropdownPanelService, _elementRef: ElementRef, _document: any);
|
41 | private _currentPosition;
|
42 | get currentPosition(): DropdownPosition;
|
43 | private _itemsLength;
|
44 | private get itemsLength();
|
45 | private set itemsLength(value);
|
46 | private get _startOffset();
|
47 | ngOnInit(): void;
|
48 | ngOnChanges(changes: SimpleChanges): void;
|
49 | ngOnDestroy(): void;
|
50 | scrollTo(option: NgOption, startFromOption?: boolean): void;
|
51 | scrollToTag(): void;
|
52 | adjustPosition(): void;
|
53 | private _handleDropdownPosition;
|
54 | private _updateDropdownClass;
|
55 | private _handleScroll;
|
56 | private _handleOutsideClick;
|
57 | private _checkToClose;
|
58 | private _onItemsChange;
|
59 | private _updateItems;
|
60 | private _updateItemsRange;
|
61 | private _onContentScrolled;
|
62 | private _updateVirtualHeight;
|
63 | private _setVirtualHeight;
|
64 | private _onItemsLengthChanged;
|
65 | private _renderItemsRange;
|
66 | private _measureDimensions;
|
67 | private _fireScrollToEnd;
|
68 | private _calculateCurrentPosition;
|
69 | private _appendDropdown;
|
70 | private _updateXPosition;
|
71 | private _updateYPosition;
|
72 | private _setupMousedownListener;
|
73 | static ɵfac: i0.ɵɵFactoryDeclaration<NgDropdownPanelComponent, [null, null, null, null, { optional: true; }]>;
|
74 | static ɵcmp: i0.ɵɵComponentDeclaration<NgDropdownPanelComponent, "ng-dropdown-panel", never, { "items": { "alias": "items"; "required": false; }; "markedItem": { "alias": "markedItem"; "required": false; }; "position": { "alias": "position"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "bufferAmount": { "alias": "bufferAmount"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "filterValue": { "alias": "filterValue"; "required": false; }; }, { "update": "update"; "scroll": "scroll"; "scrollToEnd": "scrollToEnd"; "outsideClick": "outsideClick"; }, never, ["*"], true, never>;
|
75 | static ngAcceptInputType_virtualScroll: unknown;
|
76 | }
|