UNPKG

@taiga-ui/addon-doc

Version:

Taiga UI based library for developing documentation portals for Angular libraries.

42 lines (41 loc) 2.12 kB
import { type Signal } from '@angular/core'; import { FormControl } from '@angular/forms'; import { type TuiDocRoutePage, type TuiDocRoutePages } from '@taiga-ui/addon-doc/types'; import { TuiDrawer } from '@taiga-ui/kit/components/drawer'; import * as i0 from "@angular/core"; export declare class TuiDocNavigation { private readonly searchInput; private readonly router; private readonly doc; protected readonly open: import("@angular/core").WritableSignal<boolean>; protected menuOpen: boolean; protected readonly drawer: TuiDrawer | null; protected readonly labels: readonly string[]; protected readonly items: readonly TuiDocRoutePages[]; protected readonly searchText: Signal<string>; protected readonly searchEnabled: import("@angular/core").WritableSignal<boolean>; protected readonly docIcons: import("@taiga-ui/addon-doc/tokens").TuiDocIcons; protected readonly pagesIcons: Record<string, string>; protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons; protected readonly flat: readonly (readonly TuiDocRoutePage[])[]; protected openPagesArr: boolean[]; protected openPagesGroupsArr: boolean[]; protected active: string; protected readonly search: FormControl<string | null>; protected readonly filtered: Signal<readonly [] | readonly (readonly TuiDocRoutePage[])[]>; constructor(); protected get canOpen(): boolean; protected get itemsWithoutSections(): TuiDocRoutePages; protected $pages<T extends TuiDocRoutePage[]>(pages: T): readonly TuiDocRoutePage[]; protected isActive(route: string): boolean; protected onGroupClick(index: number): void; protected closeMenu(): void; protected onClick(): void; protected onFocusSearch(event: KeyboardEvent): void; private filterItems; private isActiveRoute; private openActivePageGroup; private navigateToAnchorLink; static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocNavigation, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TuiDocNavigation, "tui-doc-navigation", never, {}, {}, never, ["*"], true, never>; }