import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; import * as _angular_core from '@angular/core'; import { OnDestroy, OnChanges, SimpleChanges } from '@angular/core'; import { Observable } from 'rxjs'; import * as _siemens_element_ng_common from '@siemens/element-ng/common'; import { ExtendedStatusType } from '@siemens/element-ng/common'; /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ interface StatusBarItem { /** * The value to show. 0 or '' means greyed out */ value: number | string; /** * A descriptive title */ title: string; /** * Status of the item. If not specified, specify `color` */ status?: ExtendedStatusType; /** * Custom color as CSS value if `status` is not specified * @deprecated use the semantic `status` input instead. */ color?: string; /** * When blinking is enabled, allows to explicitly disable blinking. * `undefined` and `true` mean blink. */ blink?: boolean; /** * Function to call when the item is clicked. */ action?: (item: StatusBarItem) => void; } interface ExtendedStatusBarItem extends StatusBarItem { isSpecial?: boolean; mutePadding?: boolean; } /** * The status bar is the main component within an application to inform users at all times * about important status information. */ declare class SiStatusBarComponent implements OnDestroy, OnChanges { private static readonly minNumberOfItems; private static readonly itemMinWidthEm; private static readonly itemMaxWidthEm; private static readonly itemSpacing; private static readonly itemPadding; private static readonly itemColorBarWidth; private static readonly itemColorBarMargin; private static readonly itemIconWidthEm; private static readonly itemIconMargin; private static readonly mainPadding; /** * Array of status bar items. */ readonly items: _angular_core.InputSignal; /** * When true, items with a value have a blinking background * * @defaultValue false */ readonly blink: _angular_core.InputSignalWithTransform; /** * State of the mute button. Set to `undefined` for no button. */ readonly muteButton: _angular_core.InputSignal; /** * Text/translation key on mute button for screen reader * * @defaultValue * ``` * t(() => $localize`:@@SI_STATUS_BAR.MUTE:Mute/unmute`) * ``` */ readonly muteButtonText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Text/translation key for "All OK" status in mobile * * @defaultValue * ``` * t(() => $localize`:@@SI_STATUS_BAR.ALL_OK:All OK`) * ``` */ readonly allOkText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * compact mode * * @defaultValue false */ readonly compact: _angular_core.InputSignalWithTransform; /** * blink pulse generator for synchronized blinking with other components */ readonly blinkPulse: _angular_core.InputSignal | undefined>; /** * Text for the toggle button that expands/collapses the status bar. Required for a11y. * The expanded/collapsed state is communicated separately via `aria-expanded`. * * @defaultValue * ``` * t(() => $localize`:@@SI_STATUS_BAR.TOGGLE:Toggle`) * ``` */ readonly toggleButtonText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Emitted when the mute toggle button is clicked */ readonly muteToggle: _angular_core.OutputEmitterRef; private readonly theBar; private readonly content; private readonly custom; protected readonly responsiveItems: _angular_core.WritableSignal; protected responsiveMode: number; protected readonly expanded: _angular_core.WritableSignal; protected readonly placeholderHeight: _angular_core.WritableSignal; protected readonly contentHeight: _angular_core.WritableSignal; protected readonly blinkOnOff: _angular_core.WritableSignal; protected readonly icons: Record<"elementDown2" | "elementSoundMute" | "elementSoundOn", string>; protected statusId: string; private timer?; private significanceUpdateTimer?; private blinkSubs?; private readonly element; private readonly blinkService; private readonly translateService; private readonly resizeObserver; private readonly measureService; constructor(); ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; protected significanceChanged(): void; protected onItemClicked(item: StatusBarItem): void; protected toggleExpand(): void; protected resizeHandler(): void; private getMuteButtonWidth; private setResponsiveMode; private calcResponsiveItems; private calculateRequiredWidth; private getItemWidth; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiStatusBarModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } declare class SiStatusBarItemComponent implements OnChanges { private readonly statusIcons; /** * Status that determines the displayed icon and color. */ readonly status: _angular_core.InputSignal; /** * Value displayed by the status bar item. */ readonly value: _angular_core.InputSignal; /** * Heading displayed for the status bar item. */ readonly heading: _angular_core.InputSignal; /** * Custom background color for the item. */ readonly color: _angular_core.InputSignal; /** * Whether the item blinks to highlight its status. * * @defaultValue false */ readonly blink: _angular_core.InputSignalWithTransform; /** * Whether only the value is displayed. * * @defaultValue false */ readonly valueOnly: _angular_core.InputSignalWithTransform; /** * Whether the item has an interactive appearance. * * @defaultValue false */ readonly clickable: _angular_core.InputSignalWithTransform; /** * Emits when the value changes between an empty and non-empty state. */ readonly significanceChange: _angular_core.OutputEmitterRef; private readonly bg; protected readonly contrastFix: _angular_core.Signal; protected readonly statusIcon: _angular_core.Signal<_siemens_element_ng_common.StatusIcon | undefined>; protected readonly background: _angular_core.Signal; ngOnChanges(changes: SimpleChanges): void; private calculateContrastFix; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { SiStatusBarComponent, SiStatusBarItemComponent, SiStatusBarModule }; export type { StatusBarItem };