import * as _angular_core from '@angular/core'; import { TemplateRef, OnInit, OnDestroy } from '@angular/core'; import { CopyrightDetails } from '@siemens/element-ng/copyright-notice'; import { IsoLanguageValue } from '@siemens/element-ng/language-switcher'; import { Link } from '@siemens/element-ng/link'; import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; import { StatusType } from '@siemens/element-ng/common'; import { FormGroup, FormControl } from '@angular/forms'; import { PasswordPolicy } from '@siemens/element-ng/password-strength'; /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ interface AlertConfig { severity: StatusType; heading?: string; message: string; action?: Link; translationParams?: { [key: string]: any; }; } /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ interface LandingPageWarning { title: TranslatableString; content: TranslatableString; } interface UsernamePassword { username: string | null | undefined; password: string | null | undefined; } interface ChangePassword { newPassword: string | null | undefined; confirmPassword: string | null | undefined; } type UsernameValidationPayload = Pick & { validate: (isValid: boolean) => void; }; /** * A comprehensive landing page component that provides a standardized layout for authentication flows. * * This component serves as a container for various authentication-related components and provides * a consistent layout with support for branding, internationalization, legal acknowledgments, * and various notification types. It includes slots for custom content and handles responsive * layout adjustments. * * The component supports: * - Custom branding and background images * - Multi-language support with language switcher * - Legal acknowledgments and terms display * - Alert and notification systems * - Copyright information display * - Responsive layout with full-height section option * * @example * ```html * * * * * * ``` */ declare class SiLandingPageComponent { /** * Heading of the application. */ readonly heading: _angular_core.InputSignal; /** * Secondary heading of the application. */ readonly subheading: _angular_core.InputSignal; /** * Short description of the application. */ readonly subtitle: _angular_core.InputSignal; /** * List of links (e.g. Corporate information) * * @defaultValue [] */ readonly links: _angular_core.InputSignal; /** * URL to custom background image * * @defaultValue './assets/images/landing-page-steel.webp' */ readonly backgroundImageUrl: _angular_core.InputSignal; /** * URL to custom brand image. * * @deprecated By default the logo provided in the theme will be used. * For a different logo use the respective CSS variables: * ```html * * ``` */ readonly logoUrl: _angular_core.InputSignal; /** * Input of si-language-switcher: Key for translation. * If your languages are already translated, you may display them without any * manipulation by passing in an empty string. * * @defaultValue 'LANGUAGE' */ readonly translationKey: _angular_core.InputSignal; /** * Input of si-language-switcher: List of all available languages in this * application. * * @defaultValue [] */ readonly availableLanguages: _angular_core.InputSignal; /** * * Config to enable/disable general alerts on landing page */ readonly announcement: _angular_core.InputSignal; /** * * Config to enable/disable login related error/alerts */ readonly loginAlert: _angular_core.InputSignal; /** * Warning text for Live Data. Can be shown, if there is no legal artifact which needs immediate user attention. */ readonly liveDataWarning: _angular_core.InputSignal; /** * Text for some legal artifacts (e.g. Terms of Use) that needs more attention before the login. */ readonly implicitLegalAcknowledge: _angular_core.InputSignal | undefined>; /** * Version of the application. */ readonly version: _angular_core.InputSignal; /** * Copyright information to be displayed. Alternatively, you can use the {@link SI_COPYRIGHT_DETAILS} global inject. */ readonly copyrightDetails: _angular_core.InputSignal; /** * Option to display the landing page content in full height. * * @defaultValue false */ readonly isFullHeightSection: _angular_core.WritableSignal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiLandingPageModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } /** * A basic login component that supports both single-step and two-step authentication flows. * * This component provides a standard login form with username and password fields. * It can be configured to work in two-step mode where username validation happens first, * followed by password entry. * * @example * ```html * * * ``` */ declare class SiLoginBasicComponent implements OnInit { private static idCounter; /** * Label for username input field. * * @defaultValue * ``` * t(() => $localize`:@@SI_LOGIN_BASIC.USERNAME:Username`) * ``` */ readonly usernameLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Label for password input field. * * @defaultValue * ``` * t(() => $localize`:@@SI_LOGIN_BASIC.PASSWORD:Password`) * ``` */ readonly passwordLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Config for Forgot Password link. * If `title` is omitted, a default translated label is used. */ readonly forgotPasswordLink: _angular_core.InputSignal; /** * Config for Register Now link. * If `title` is omitted, a default translated label is used. */ readonly registerNowLink: _angular_core.InputSignal; /** * Label for login button. * * @defaultValue * ``` * t(() => $localize`:@@SI_LOGIN_BASIC.LOGIN:Log in`) * ``` */ readonly loginButtonLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Disables the login button. * * @defaultValue false */ readonly disableLogin: _angular_core.InputSignal; /** * Enables the two-step login flow. * * @defaultValue false */ readonly twoStep: _angular_core.InputSignalWithTransform; /** * Indicates whether the login button should show a loading state. * * @defaultValue false */ readonly loading: _angular_core.InputSignal; /** * Description of back button. * * @defaultValue * ``` * t(() => $localize`:@@SI_LOGIN_BASIC.BACK:Back`) * ``` */ readonly backButtonLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Description of next button. * * @defaultValue * ``` * t(() => $localize`:@@SI_LOGIN_BASIC.NEXT:Next`) * ``` */ readonly nextButtonLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Emits username when user clicks on next button. */ readonly usernameValidation: _angular_core.OutputEmitterRef; /** * Emits username and password on value change. */ readonly valueChanged: _angular_core.OutputEmitterRef; /** * Emits username and password on login event. */ readonly login: _angular_core.OutputEmitterRef; private destroyRef; protected readonly secondStepVisible: _angular_core.WritableSignal; protected readonly loadingNext: _angular_core.WritableSignal; private readonly defaultForgotPasswordTitle; private readonly defaultRegisterNowTitle; protected readonly effectiveForgotPasswordLink: _angular_core.Signal; protected readonly effectiveRegisterNowLink: _angular_core.Signal; private readonly index; protected usernameId: string; protected passwordId: string; protected loginCredentials: FormGroup<{ username: FormControl; password: FormControl; }>; ngOnInit(): void; protected submit(): void; protected handleValueChanges(): void; protected validateUsername(): void; private getLoginFormValues; protected goBack(): void; private nextStep; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * A single sign-on (SSO) login component that provides a button for SSO authentication. * * This component renders a simple button that users can click to initiate * single sign-on authentication flow. * * @example * ```html * * * ``` */ declare class SiLoginSingleSignOnComponent { /** * Label for login button. * * @defaultValue * ``` * t(() => $localize`:@@SI_LOGIN_SINGLE-SIGN-ON.LOGIN_SIGN_UP:Login / Sign un`) * ``` */ readonly ssoButtonLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Disables the sso button. * * @defaultValue false */ readonly disableSso: _angular_core.InputSignal; /** * Emits username and password on login event. */ readonly ssoEvent: _angular_core.OutputEmitterRef; protected ssoClick(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * A component for displaying legal agreements that require explicit user acknowledgment. * * This component provides a standardized interface for presenting legal documents, * terms of service, privacy policies, or other agreements that users must * explicitly accept before proceeding. * * @example * ```html * *
*

Terms of Service

*

Please read and accept our terms before continuing.

*
    *
  • Term 1: You agree to ...
  • *
  • Term 2: You acknowledge ...
  • *
*
*
* ``` */ declare class SiExplicitLegalAcknowledgeComponent implements OnInit, OnDestroy { /** * Heading of the agreement. */ readonly heading: _angular_core.InputSignal; /** * Short description of the agreement. */ readonly subheading: _angular_core.InputSignal; /** * Label for accept button. * * @defaultValue * ``` * t(() => $localize`:@@SI_EXPLICIT_LEGAL_ACKNOWLEDGE.ACCEPT:Accept`) * ``` */ readonly acceptButtonLabel: _angular_core.InputSignal; /** * Description of back button. * * @defaultValue * ``` * t(() => $localize`:@@SI_EXPLICIT_LEGAL_ACKNOWLEDGE.BACK:Back`) * ``` */ readonly backButtonLabel: _angular_core.InputSignal; /** * Disables the acceptance button. * * @defaultValue false */ readonly disableAcceptance: _angular_core.InputSignal; /** * Emits end user license agreement on acceptance event. */ readonly accept: _angular_core.OutputEmitterRef; /** * Emits on back click. */ readonly back: _angular_core.OutputEmitterRef; /** * Reference to the landing page parent component. */ protected landingPage: SiLandingPageComponent | null; protected handleBack(): void; protected handleAccept(): void; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * A component for changing user passwords with strength validation and policy enforcement. * * This component provides a form for users to change their password, including * password strength indicators, policy validation, and confirmation fields. * It supports custom password policies and displays inline notifications for alerts. * * @example * ```html * * * ``` */ declare class SiChangePasswordComponent implements OnInit, OnDestroy { private static idCounter; /** * Change password heading. * * @defaultValue * ``` * t(() => $localize`:@@SI_CHANGE_PASSWORD.CHANGE_PASSWORD:Change password`) * ``` */ readonly heading: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Short description of the action to perform. * * @defaultValue * ``` * t(() => $localize`:@@SI_CHANGE_PASSWORD.CHANGE_FACTORY_PASSWORD:Default password must be changed`) * ``` */ readonly subheading: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Label for new password input field. * * @defaultValue * ``` * t(() => $localize`:@@SI_CHANGE_PASSWORD.NEW_PASSWORD:New password`) * ``` */ readonly newPasswordLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Label for confirm password input field. * * @defaultValue * ``` * t(() => $localize`:@@SI_CHANGE_PASSWORD.CONFIRM_PASSWORD:Confirm password`) * ``` */ readonly confirmPasswordLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Label for change password button. * * @defaultValue * ``` * t(() => $localize`:@@SI_CHANGE_PASSWORD.CHANGE:Change`) * ``` */ readonly changeButtonLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Description of back button. * * @defaultValue * ``` * t(() => $localize`:@@SI_CHANGE_PASSWORD.BACK:Back`) * ``` */ readonly backButtonLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Disables the change password button. * * @defaultValue false */ readonly disableChange: _angular_core.InputSignal; /** * Title of the password policy. * * @defaultValue * ``` * t(() => $localize`:@@SI_CHANGE_PASSWORD.PASSWORD_POLICY:Password policy`) * ``` */ readonly passwordPolicyTitle: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Description of the password policy requirements. */ readonly passwordPolicyContent: _angular_core.InputSignal>; /** * Description of the password policy requirements. */ readonly passwordStrength: _angular_core.InputSignal; /** * Config to enable/disable password related error/alerts. */ readonly changePasswordAlert: _angular_core.InputSignal; /** * Emits password on value change. */ readonly valueChanged: _angular_core.OutputEmitterRef; /** * Emits password on change event. */ readonly changePasswordRequested: _angular_core.OutputEmitterRef; /** * The number indicating the number of rules which still can be met. (`-2` --\> 2 rules are * still unmet, `0` --\> all met) */ readonly passwordStrengthChanged: _angular_core.OutputEmitterRef; /** * Emits on back click. */ readonly back: _angular_core.OutputEmitterRef; /** * Reference to the landing page parent component. */ protected landingPage: SiLandingPageComponent | null; private readonly index; protected newPasswordId: string; protected confirmPasswordId: string; protected changePasswordForm: FormGroup<{ newPassword: FormControl; confirmPassword: FormControl; }>; protected passwordPolicyContentTemplate: TemplateRef | null; private destroyRef; ngOnInit(): void; ngOnDestroy(): void; protected submit(): void; protected handleValueChanges(): void; protected handlePasswordStrengthChanged(data: number | void): void; private getPasswordFormValues; protected handleBackClick(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { SiChangePasswordComponent, SiExplicitLegalAcknowledgeComponent, SiLandingPageComponent, SiLandingPageModule, SiLoginBasicComponent, SiLoginSingleSignOnComponent }; export type { AlertConfig, ChangePassword, LandingPageWarning, UsernamePassword, UsernameValidationPayload };