import { NavigationExtras } from '@angular/router'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; import * as rxjs from 'rxjs'; import * as _angular_core from '@angular/core'; import { InjectionToken, DoCheck, OnChanges, OnDestroy } from '@angular/core'; /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ interface Link { /** * The title of the menu item. Can be either the title to be displayed or the translation key. */ title?: TranslatableString; /** * The optional tooltip of the link. Can be either the text to be displayed or the * translation key. */ tooltip?: TranslatableString; /** * Defines a href URI that the menu item will be linked to. Will be used to set the href attribute * of the a element. Will only be used if link and function is not set. */ href?: string; /** * The target attribute specifies where to open the linked document. If no target is specified, * the link will open in the current tab. */ target?: string; /** * Defines the link of the menu item within the application using the angular router link concept. * Accepts an array of `any` as per [routerLink API definition]{@link https://angular.dev/api/router/RouterLink}. */ link?: any[] | string; /** * The navigation extras provide additional routing options when using the router link. */ navigationExtras?: NavigationExtras; /** * A function that will be invoked when clicking on the menu item. * When passed as a string, use together with SiLinkActionService to receive events. This is * meant for repetitive things in lists/tables/etc. */ action?: ((param?: any) => void | any) | string; /** * A boolean that lets the link know whether it is active or not. It is useful when action() is executed instead of link route. */ isActive?: boolean; /** * A boolean that lets the link know whether it is disabled or not. */ disabled?: boolean; } /** * Used in events emitted from SiLinkActionService */ interface LinkAction { link: Link; param: any; } declare class SiLinkActionService { private actionSubject; /** * Observable which emits the link and param to run the action on. * * @defaultValue this.actionSubject.asObservable() */ readonly action$: rxjs.Observable; /** * Emit a new link and param pair to run the action on. */ emit(link: Link, param: any): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ /** */ type AriaCurrentType = 'page' | 'step' | 'location' | 'date' | 'time' | 'true'; declare const SI_LINK_DEFAULT_NAVIGATION_EXTRA: InjectionToken; declare class SiLinkDirective implements DoCheck, OnChanges, OnDestroy { /** Link configuration, including the destination, action, and tooltip. */ readonly siLink: _angular_core.InputSignal; /** Default target for links configured with an `href` but no explicit target. */ readonly siLinkDefaultTarget: _angular_core.InputSignal; /** Parameter passed to the configured link action. */ readonly actionParam: _angular_core.InputSignal; /** CSS class applied while the link is active. */ readonly activeClass: _angular_core.InputSignal; /** * Whether router links must match the complete URL to be considered active. * * @defaultValue false */ readonly exactMatch: _angular_core.InputSignalWithTransform; /** * Type for `aria-current` to set if routerLink is active. */ readonly ariaCurrent: _angular_core.InputSignal; /** Emits when the active state of the link changes. */ readonly activeChange: _angular_core.OutputEmitterRef; protected readonly href: _angular_core.WritableSignal; protected readonly target: _angular_core.WritableSignal; protected readonly title: _angular_core.WritableSignal; protected readonly isAriaCurrent: _angular_core.Signal; /** @defaultValue false */ readonly active: _angular_core.WritableSignal; private readonly destroyer; private router; private activatedRoute; private locationStrategy; private translateService; private actionService; private defaultNavigationExtra; private get urlTree(); private get navigationExtras(); ngOnDestroy(): void; ngOnChanges(): void; ngDoCheck(): void; private subscribeRouter; private updateActiveByRouter; onClick(event: any): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class SiLinkModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SI_LINK_DEFAULT_NAVIGATION_EXTRA, SiLinkActionService, SiLinkDirective, SiLinkModule }; export type { Link, LinkAction };