import * as _angular_cdk_overlay from '@angular/cdk/overlay'; import * as _angular_core from '@angular/core'; import { OnChanges } from '@angular/core'; import { SelectOption } from '@siemens/element-ng/select'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; /** * One step in a list of thresholds */ interface ThresholdStep { /** Threshold value, the first step has no value */ value?: number; /** One of the `SelectOption.id` */ optionValue: string; /** When set to `false`, input fields are highlighted as invalid */ valid?: boolean; /** Optional alias label for the threshold step, used when `useAliasForStepValues` is `true` */ aliasLabel?: TranslatableString; } declare class SiThresholdComponent implements OnChanges { /** * Options to be shown in select dropdown * * @defaultValue [] */ readonly options: _angular_core.InputSignal[]>; /** * The thresholds * * @defaultValue [] */ readonly thresholdSteps: _angular_core.ModelSignal; /** * The unit to show * * @defaultValue '' */ readonly unit: _angular_core.InputSignal; /** * The min. value for the threshold value * * @defaultValue 0 */ readonly minValue: _angular_core.InputSignal; /** * The max. value for the threshold value * * @defaultValue 100 */ readonly maxValue: _angular_core.InputSignal; /** * The step size for the threshold value * * @defaultValue 1 */ readonly stepSize: _angular_core.InputSignal; /** * Max. number of steps, 0 for no hard limit * * @defaultValue 0 */ readonly maxSteps: _angular_core.InputSignal; /** * Do validation? * * @defaultValue true */ readonly validation: _angular_core.InputSignalWithTransform; /** * When disabled, steps cannot be added/removed * * @defaultValue true */ readonly canAddRemoveSteps: _angular_core.InputSignalWithTransform; /** * Use horizontal layout? * * @defaultValue false */ readonly horizontalLayout: _angular_core.InputSignalWithTransform; /** * Show dec/inc buttons? * * @defaultValue true */ readonly showDecIncButtons: _angular_core.InputSignalWithTransform; /** * The obvious * * @defaultValue false */ readonly readonly: _angular_core.InputSignalWithTransform; /** * Indicate that the threshold options are readonly and cannot be changed. This will also disable adding / removing steps. * * @defaultValue false */ readonly readonlyConditions: _angular_core.InputSignalWithTransform; /** * CDK scroll strategy used for threshold option select overlays. * * @defaultValue defaultConnectedOverlayScrollStrategy() */ readonly scrollStrategy: _angular_core.InputSignal<_angular_cdk_overlay.ScrollStrategy>; /** * The aria-label for delete button * * @defaultValue * ``` * t(() => $localize`:@@SI_THRESHOLD.DELETE:Remove step`) * ``` */ readonly deleteAriaLabel: _angular_core.InputSignal; /** * The aria-label for add button * * @defaultValue * ``` * t(() => $localize`:@@SI_THRESHOLD.ADD:Add step`) * ``` */ readonly addAriaLabel: _angular_core.InputSignal; /** * The aria-label for input field * * @defaultValue * ``` * t(() => $localize`:@@SI_THRESHOLD.INPUT_LABEL:Threshold value`) * ``` */ readonly inputAriaLabel: _angular_core.InputSignal; /** * The aria-label for status selection * * @defaultValue * ``` * t(() => $localize`:@@SI_THRESHOLD.STATUS:Status`) * ``` */ readonly statusAriaLabel: _angular_core.InputSignal; /** * When enabled, numeric step inputs are replaced with readonly text fields displaying the `aliasLabel` of each step. * Add/remove step buttons are also hidden. * * @defaultValue false */ readonly useAliasForStepValues: _angular_core.InputSignalWithTransform; /** Fired when validation status changes */ readonly validChange: _angular_core.OutputEmitterRef; protected readonly colors: _angular_core.Signal; protected readonly icons: Record<"elementPlus" | "elementDelete", string>; private _valid; /** * Whether the current input value is valid or not. */ get valid(): boolean; private readonly numberInputs; protected readonly showAddRemoveButtons: _angular_core.Signal; ngOnChanges(): void; protected deleteStep(index: number): void; protected addStep(index: number): void; protected stepChange(): void; private validate; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiThresholdModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SiThresholdComponent, SiThresholdModule }; export type { ThresholdStep };