@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
40 lines (39 loc) • 2.07 kB
TypeScript
import { ElementRef, OnDestroy, QueryList } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import { HierarchyBarNodeComponent } from '../hierarchy-bar-node/hierarchy-bar-node.component';
import { HierarchyBarService } from '../hierarchy-bar.service';
import { HierarchyBarNode } from '../interfaces/hierarchy-bar-node.interface';
import * as i0 from "@angular/core";
export declare class HierarchyBarStandardComponent implements OnDestroy {
readonly hierarchyBar: HierarchyBarService;
/** Determine the mode of the hierarchy bar */
mode: string;
/** Determine read only state */
readonly: boolean;
/** Get the elementRef of the node list */
nodelist: ElementRef<HTMLDivElement>;
/** Get elementRefs for all the nodes */
nodes: QueryList<ElementRef>;
/** Get instances for all the nodes */
nodeInstances: QueryList<HierarchyBarNodeComponent>;
barNodes: QueryList<ElementRef>;
/** Value in pixels to translate the visible nodes by to fill the empty space occupied by hidden nodes */
overflowTranslateOffset: number;
/** Identify which nodes are overflowing */
overflow$: BehaviorSubject<HierarchyBarNode[]>;
/** Determine if there is any overflow */
isOverflowing$: BehaviorSubject<boolean>;
/** Unsubscribe from all subscriptions when component is destroyed */
private readonly _onDestroy;
constructor();
ngOnDestroy(): void;
/**
* When there is overflow ensure that the rightmost
* node remains in view at all times. The nodes no longer
* visible should be displayed in a popover available on the
* overflow indicator
*/
scrollIntoView(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<HierarchyBarStandardComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<HierarchyBarStandardComponent, "ux-hierarchy-bar-standard", never, { "mode": { "alias": "mode"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, ["left-addons", "trailing-addons", "right-addons"], false, never>;
}