import * as i0 from '@angular/core'; import { OnInit, EventEmitter, Renderer2, ElementRef, OnChanges, SimpleChanges, ApplicationRef, ChangeDetectorRef, NgZone, InputSignal, AfterViewInit, WritableSignal, Signal, PipeTransform, AfterContentChecked, OnDestroy } from '@angular/core'; import * as i34 from '@angular/forms'; import { ControlValueAccessor, UntypedFormGroup, UntypedFormControl, FormArray, FormControl, Validator, ValidationErrors } from '@angular/forms'; import * as i30 from '@angular/material/checkbox'; import { MatCheckboxChange } from '@angular/material/checkbox'; import { Subscription, Observable } from 'rxjs'; import * as i33 from '@angular/material/dialog'; import { MatDialogRef } from '@angular/material/dialog'; import { DomSanitizer, SafeHtml, SafeUrl, SafeResourceUrl } from '@angular/platform-browser'; import * as icons from '@ui-presentational/assets/icons.json'; import * as i29 from '@angular/cdk/drag-drop'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; import * as i44 from '@angular/material/slide-toggle'; import { MatSlideToggleChange } from '@angular/material/slide-toggle'; import { Placement } from '@floating-ui/dom'; import * as i47 from '@angular-slider/ngx-slider'; import { Options, ChangeContext } from '@angular-slider/ngx-slider'; export { ChangeContext as KmsSliderChange, Options as KmsSliderOptions } from '@angular-slider/ngx-slider'; import * as i8 from '@angular/common'; import { CurrencyPipe } from '@angular/common'; import * as i31 from '@angular/material/button'; import * as i32 from '@angular/material/radio'; import * as i35 from '@angular/material/form-field'; import * as i36 from '@angular/material/input'; import * as i37 from '@angular/material/menu'; import * as i39 from '@angular/google-maps'; import * as i40 from '@angular/material/expansion'; import * as i41 from '@angular/material/select'; import * as i42 from '@angular/material/progress-spinner'; import * as i45 from '@ngx-translate/core'; import * as i46 from '@angular/material/tooltip'; import * as i48 from '@angular/material/autocomplete'; import * as i49 from '@angular/material/list'; import * as i50 from '@angular/material/card'; declare class KmsUiPresentationalComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare enum Color { PRIMARY = "--kms-primary", SECONDARY = "--kms-secondary", TERTIARY = "--kms-tertiary", SUCCESS = "--kms-success", ALERT = "--kms-alert", ERROR = "--kms-error", DISABLED = "--kms-disabled", WHITE = "--kms-white", BLACK = "--kms-black" } declare enum StylingTheme { PRIMARY = "primary", SECONDARY = "accent", WARN = "warn" } /** * @copyright KMS GmbH */ declare enum IconSizePx { XXS = 16, XS = 20, SM = 32, MD = 64, LG = 128, XL = 256, XXL = 512 } declare const IconSizesArr: IconSizePx[]; declare class BackToTopComponent { platformId: Object; windowScrolled?: boolean; IconSizePx: typeof IconSizePx; Color: typeof Color; constructor(platformId: Object); onWindowScroll(): void; scrollToTop(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ declare class CheckboxComponent implements ControlValueAccessor { infoText: string; checked: boolean; disabled: boolean; /** * Internal description name. All checkboxes with the same name belong to the same group. * User can select none, one or all checkboxes with the same name. */ name: string; change: EventEmitter; valueChanged(value: boolean): void; onChange: any; onTouched: any; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ declare class FormParentComponent implements OnInit { form: UntypedFormGroup; formInitialized: boolean; private allowedCharsOnlyNumbers; formDataChanged: EventEmitter; disabled: boolean; /** * Returns if a number was pressed * @param e * @returns */ checkIfKeyWasNumber(e: KeyboardEvent, allowDelete?: boolean, allowArrows?: boolean, allowCutCopyPaste?: boolean): boolean; /** * Prevents to input other chars than numbers in input * @param event */ removeNumbersOnType(event: KeyboardEvent): void; /** * Prevents input when pasting which is not number * @param event */ removeNumbersOnPaste(event: ClipboardEvent): void; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FormControlParentComponent extends FormParentComponent { renderer: Renderer2; defaultDataOverride: string; onSelectItemEmitter: EventEmitter; child?: ElementRef; internalValue: string; constructor(renderer: Renderer2); ngOnInit(): void; change(value: string): void; onChange: any; onTouch: any; onTouched: any; get value(): string; set value(value: string); writeValue(value: string): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; validate(_: UntypedFormControl): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ColorInputComponent extends FormControlParentComponent implements OnInit, ControlValueAccessor { renderer: Renderer2; label: string; tooltipText: string; placeholder: string; valid: boolean | null | undefined; constructor(renderer: Renderer2); ngOnInit(): void; validate(_: UntypedFormControl): boolean; matchesHex(match?: string): false | RegExpMatchArray; updateSelectedColor(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Dropdown from data component {@link https://leaseplan-dev.rentoffice.de/styleguide#ui-elements} */ declare class DropdownFromDataComponent extends FormControlParentComponent implements OnInit, ControlValueAccessor, OnChanges { renderer: Renderer2; optionsEnum: any; optionsPlainArray: any[]; optionsObjArray: any[]; mapKey?: any; mapValue?: any; hasNullOption: boolean; preselectedKeys: any; translation?: ITranslation; placeholder: string; label: string; required: boolean; useEnumIndexAsValue: boolean; multiple: boolean; selectAllText?: string; disableOptions: boolean; keys: any[]; values: any[]; Object: ObjectConstructor; constructor(renderer: Renderer2); /** * Hook used to sync changes on set Label and Type * @param changes */ ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; /** * transofrms the data values to the correct format for be used by the template * @param value */ private setKeyValues; /** * set the value of the dropdown based if translation is set * @param key */ setDisplayKey(key: any): any; valueChanged(value: any): void; setDisabledState(isDisabled: boolean): void; get selectedElements(): FormArray; allElementsChecked(): boolean; isCheckboxIndeterminate(): boolean; toggleAllSelection(change: MatCheckboxChange): void; checkAllFilters(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Interface that defines the translation object in template */ interface ITranslation { path: string; isPrefix?: boolean; useKeyAsValue?: boolean; service: any; } /** * General Image Model */ declare class ImageSnippet$1 { src: string; fileName: string; srcType: ImageSourceType$1; status: string; constructor(src: string, fileName: string, srcType?: ImageSourceType$1); } declare enum ImageSourceType$1 { Ident = "Idnet", ByteArray = "ByteArray", URL = "URL" } /** * @copyright KMS GmbH */ type NullAble = T | null | undefined; declare class TextValuePairArray { Items: NullAble; } declare class TextValuePair { Text: NullAble; Value: NullAble; constructor(text: string, value: any); } declare class LabelValuePair { Label: NullAble; Value: NullAble; constructor(label: string, value: string); } declare class KeyValuePair { Key: NullAble; Value: NullAble; constructor(key: string, value: string); } /** * Attached File DTO */ declare class AttachedFileDTO { ImageIdent?: string; ImageLink?: string; Filename?: string; ImageAsDataURL?: string; CreateSmallImage?: boolean; Text?: string; } declare class EnumRadiogroupComponent extends FormControlParentComponent implements OnInit, ControlValueAccessor { renderer: Renderer2; header: NullAble; optionsEnum: any; translationPrefix: string; optionValues: any; constructor(renderer: Renderer2); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FileInputComponent implements ControlValueAccessor, OnInit { appRef: ApplicationRef; cd: ChangeDetectorRef; renderer: Renderer2; fileInput: any; label: string; previewImage: boolean; allowRemove: boolean; previewImageText: string; maxSizeBytes: number; resizePixels: number; acceptedFileMimetypes: string; form: UntypedFormGroup; subscriptions: Subscription[]; newImageLoading: boolean; IconSizePx: typeof IconSizePx; formDataChanged: EventEmitter; /** * Constructor * @param appRef * @param cd * @param translateService * @param renderer */ constructor(appRef: ApplicationRef, cd: ChangeDetectorRef, renderer: Renderer2); /** * Click on button triggers file-input to open OS file dialog */ selectImageOverlay(): void; /** * Function to manage the input image * Returns an error if the file exceeds maximum wanted filesize (Mb). * @param ev * @returns */ selectImage(ev: any): void; /** * Resize an image * @param imgEl * @param wantedWidth as number * @returns string */ private resizeImage; /** * Generate default object * @param name as string * @param content as string * @returns AttachedFileDTO */ generateModel(name?: string, content?: string, ident?: string, imageLink?: string, text?: string): AttachedFileDTO; /** * Remove image */ removeFromList(): void; /** * get value */ get value(): AttachedFileDTO; /** * set value */ set value(value: AttachedFileDTO); onChange: any; onTouch: any; ngOnInit(): void; ngOnDestroy(): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; writeValue(value: AttachedFileDTO | null): void; validate(_: UntypedFormControl): { styles: { valid: boolean; }; }; /** * OnClick event listener of input#fileInput to clear his input value */ clearInputValue(ev: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FlyoutComponent { icon: string; isDropdownOpened: boolean; targetHeight: string; animationTime: number; headerCssClass: string; bodyCssClass: string; headerTitle: string; headerText: string; hasButtonForMore: boolean; moreText: string; lessText: string; content: ElementRef | undefined; flyoutHeader: ElementRef | undefined; /** * Open/close dropdown if click on header. * Except, if mode is set to hasButtonForMore. When there is a extra button to open/close */ toggleDropdownHeader(): void; /** * Open or close the dropdown */ toggleDropdown(): void; /** * Set the height of the dropdown list items dynamic - needed for the animation */ setDropdownListHeight(contentHeight: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare enum ButtonDialogType { primary = "primary", secondary = "secondary" } interface DialogConfig { data: DialogData; panelClass?: string; autoFocus?: boolean; } interface DialogData { title?: string; message?: string; panelClass?: string; buttons?: { primary: string; secondary: string; }; } /** * @copyright KMS GmbH */ /** * A confirmation dialog component */ declare class ConfirmationDialogComponent { dialogRef: MatDialogRef; zone: NgZone; data: DialogData; ButtonDialogType: typeof ButtonDialogType; constructor(dialogRef: MatDialogRef, zone: NgZone, data: DialogData); /** * Action called when clicked * @param clickedButton Whether the primary or secondary button was clicked */ onClickAction(clickedButton: ButtonDialogType): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ declare class IconComponent { sanitizer: DomSanitizer; /** * Required: Name of the SVG icon inside your sprite sheet file with name 'icons.svg'. * Pass 'none' if no icon should be rendered. */ icon: InputSignal<(typeof icons)[number]>; /** * Optional: Different appearance via CSS class defined in this component´s style sheet. */ iconClass: InputSignal; size: InputSignal; dontUseSprite: InputSignal; color: InputSignal; Version: string; constructor(sanitizer: DomSanitizer); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * General Image Model */ declare class ImageSnippet { src: string; fileName: string; srcType: ImageSourceType; status: string; constructor(src: string, fileName: string, srcType?: ImageSourceType); } declare enum ImageSourceType { Ident = "Idnet", ByteArray = "ByteArray", URL = "URL" } /** * @copyright KMS GmbH */ declare class ImageSliderComponent implements OnChanges, AfterViewInit { private el; slides: string[]; editMode: boolean; imagesToSave?: ImageSnippet[]; deleteImageEvent: EventEmitter; orderChanged: EventEmitter; constructor(el: ElementRef); ngAfterViewInit(): void; ngOnChanges(): void; initializeSwipers(): void; updateSwipers(delayMs?: number): void; deleteImage(index: number): void; onOrderChanged(event: CdkDragDrop): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ /** * A generic dialog component */ declare class KMSAccordionItemComponent implements OnInit { private readonly sanitizer; itemTitleTrustHtml: SafeHtml | undefined; showAsCard: boolean; isSmall: boolean; expanded: boolean; set itemTitle(val: string); Color: typeof Color; panelOpenState: boolean; constructor(sanitizer: DomSanitizer); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LoaderComponent { loading: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ /** * Typical basic address data */ declare class Address { City: NullAble; Name1: NullAble; Name2: NullAble; Street: NullAble; Zip: NullAble; } /** * @copyright KMS GmbH */ /** * MarkerOptions class for Marker */ declare class MarkerOptions { animation: number; } /** * MarkerLabel class for Marker */ declare class MarkerLabel { color: string; text: string; } /** * Marker class */ declare class Marker { position: google.maps.LatLngLiteral; label: MarkerLabel; title: string; options: MarkerOptions; } /** * Component to show marker on google map for specific address */ declare class MapComponent implements OnInit { data: Address; markers: Marker[]; geoDataFoundForAddress: boolean; widthSet: boolean; width: string; zoom: number; center: google.maps.LatLngLiteral; options: google.maps.MapOptions; google: any; geocoder: any; viewportSubscription?: Subscription; constructor(); ngOnInit(): void; /** * Asks google for geocoordinates of a given address string * @input address as string */ findLocation(address: string): void; /** * Adds a marker to the map */ addMarker(): void; /** * Zooms in into map */ zoomIn(): void; /** * Zooms out from map */ zoomOut(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare enum RadioButtonSize { SM = "small", MD = "medium", LG = "large" } /** * @copyright KMS GmbH */ declare class RadioButtonComponent implements ControlValueAccessor { label: string; checked: boolean; disabled: boolean; value: any; size: RadioButtonSize; color: StylingTheme; onChange: EventEmitter; onRadioChange(event: any): void; onTouched: () => void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface RadiobuttonInterface extends TextValuePair { Disabled?: boolean; InfoText?: string; } declare class RadioGroupComponent implements ControlValueAccessor { options: RadiobuttonInterface[]; disabled: boolean; value: any; infoText?: string; color: StylingTheme; size: RadioButtonSize; direction: 'row' | 'column'; onChange: (value: any) => void; onTouched: () => void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; handleChange(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare enum SalutationEnum { NOT_SPECIFIED = "Keine Anrede", MALE = "Herr", FEMALE = "Frau" } declare class SalutationDropdownComponent extends FormControlParentComponent implements OnInit, ControlValueAccessor { renderer: Renderer2; placeholder: NullAble; SalutationEnum: typeof SalutationEnum; Object: ObjectConstructor; constructor(renderer: Renderer2); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SalutationRadiogroupComponent extends FormControlParentComponent implements OnInit, ControlValueAccessor { renderer: Renderer2; SalutationEnum: typeof SalutationEnum; Object: ObjectConstructor; constructor(renderer: Renderer2); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ declare class SlideToggleComponent implements ControlValueAccessor { leftLabel?: string; rightLabel?: string; checked: boolean; disabled: boolean; name: string; change: EventEmitter; onChange: any; onTouch: any; get value(): boolean; set value(value: boolean); writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; emitOnChange($event: MatSlideToggleChange): void; setDisabledState(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TimeInputComponent implements OnInit, OnChanges, ControlValueAccessor { label: string; value: string; interval: number; allowEmpty: boolean; IconSizePx: typeof IconSizePx; _value: WritableSignal; private options; filteredOptions: Signal>; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; writeValue(value: string): void; onChange: any; onTouch: any; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; getTimeRange(): string[]; inputValueChanged(event: Event): void; valueChanged(value: string): void; autocompleteClosed(): void; validate({ value }: FormControl): { invalid: boolean; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TooltipIconComponent { button: ElementRef; tooltip: ElementRef; tooltipText: i0.InputSignal; placement: Signal; delay: i0.InputSignal; iconSize: Signal; tooltipAlwaysVisible: i0.InputSignal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class YesNoRadiogroupComponent implements OnInit, ControlValueAccessor { renderer: Renderer2; header: NullAble; disabled: boolean; textYes: string; textNo: string; form: UntypedFormGroup; child?: ElementRef; internalValue: NullAble; onChange: any; onTouch: any; get value(): NullAble; set value(value: NullAble); writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; constructor(renderer: Renderer2); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PasswordComponent implements ControlValueAccessor, Validator { change: EventEmitter; submit: EventEmitter; disabled: i0.InputSignal; label: i0.InputSignal; withStrength: i0.InputSignal; lowerCaseCriteriaMsg: i0.InputSignal; upperCaseCriteriaMsg: i0.InputSignal; numberCriteriaMsg: i0.InputSignal; specialCharCriteriaMsg: i0.InputSignal; minCharsCriteriaMsg: i0.InputSignal; IconSizePx: typeof IconSizePx; value: WritableSignal; showPassword: WritableSignal; eyeIconIsBeingPressed: WritableSignal; validateUppercase: i0.Signal; validateLowercase: i0.Signal; validateSpecialChar: i0.Signal; validateNumber: i0.Signal; validateMinimumChar: i0.Signal; validations: i0.Signal<{ text: i0.InputSignal; isValid: i0.Signal; error: string; }[]>; keypress($event: KeyboardEvent): void; valueChanged(event: Event): void; onChange: any; onTouch: any; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; validate({ value }: FormControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ declare class SliderComponent implements ControlValueAccessor { kmsSliderClass: boolean; get disabledClass(): boolean; disabled: boolean; options: Options; max: number; change: EventEmitter; private _value; onChange: any; onTouch: any; get value(): number; set value(value: number); writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; emitOnChange($event: any): void; setDisabledState(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardComponent { imageUrl: i0.InputSignal; hoverEffect: i0.InputSignal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare enum ButtonAppearance { BASIC = "mat-button", FLAT = "mat-flat-button", RAISED = "mat-raised-button" } declare class ButtonComponent { color: i0.InputSignal; type: i0.InputSignal<"button" | "submit" | "reset">; appearance: i0.InputSignal; loading: i0.InputSignal; label: i0.InputSignal; icon: i0.InputSignal; disabled: i0.InputSignal; buttonClick: i0.OutputEmitterRef; rounded: i0.InputSignal; readonly StylingTheme: typeof StylingTheme; readonly IconSize: typeof IconSizePx; readonly ButtonAppearance: typeof ButtonAppearance; iconColor: Signal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NumericInputComponent implements ControlValueAccessor { disabled: i0.ModelSignal; min: i0.InputSignal; numericValue: WritableSignal; touched: WritableSignal; Color: typeof Color; IconSizePx: typeof IconSizePx; constructor(); get value(): number; set value(value: number); onChange: (value?: number) => void; onTouched: () => void; writeValue(value: number): void; add(): void; minus(): void; markAsTouched(): void; setDisabledState(isDisabled: boolean): void; registerOnChange(onChange: (value?: number) => void): void; registerOnTouched(onTouched: () => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @copyright KMS GmbH */ declare class IntegerCurrency implements PipeTransform { private cp; constructor(cp: CurrencyPipe); transform(value: any, currencyCode?: string, display?: boolean, digitsInfo?: string): string | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } /** * @copyright KMS GmbH */ declare class SafeHtmlPipe implements PipeTransform { private sanitizer; constructor(sanitizer: DomSanitizer); transform(html: string): SafeHtml; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class SanitizeNullPipe implements PipeTransform { transform(value: any): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } /** * @copyright KMS GmbH */ declare class SafeUrlPipe implements PipeTransform { private sanitizer; constructor(sanitizer: DomSanitizer); transform(url: string): SafeUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } /** * @copyright KMS GmbH */ declare class TrimPipe implements PipeTransform { transform(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } /** * @copyright KMS GmbH */ declare class SafeResourceUrlPipe implements PipeTransform { private sanitizer; constructor(sanitizer: DomSanitizer); transform(url: string): SafeResourceUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class TypeofPipe implements PipeTransform { transform(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class CustomPipesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @copyright KMS GmbH */ /** * Input behaviour options */ interface SwipeOptions { /** * Value for the swipeThresholdType. * Example: 500px or 10% (depends on swipeThresholdType) */ swipeThreshold: number; /** * Allowed values: '%' or 'px' * Defines together with the value of swipeThreshold the way how the threshold is calculated: * If a certain amount of pixels or a percentage of the parent container was passed. * Purpose: * Threshold can be used to define if sth. should happen when the user over swipes the given values, * for instance skip to next slide. */ swipeThresholdType: string; /** * note: Defines if the local position of the element should be used for calculation or the global. * For a slider the global is needed. */ swipeLocalPosition: boolean; } /** * Swipe move event information */ interface SwipeMoveEvent { position: number; offsetPerFrame: number; swipeDistanceTotal: number; swipeDistancePercentage: number; direction: number; speed: number; thresholdWasReached: boolean; } /** * Swipe release event information */ interface SwipeReleaseEvent { thresholdWasReached: boolean; direction: number; speed: number; easingType: string; target: any; } /** * @copyright KMS GmbH */ declare class SwipeDirective { /** * Output Event that is emitted during swipe process (mouse move or touch move event). * Can be used for calculation purposes. */ moveEvent: EventEmitter; /** * Output Event that is emitted when swipe process end (mouse up or touch end event). * Can be used for calculation purposes. */ releaseEvent: EventEmitter; private _swipeOptions; private _moveEventData; private _startPosition; private _lastPosX; private _thresholdWasReached; private _isMobile; private _timeStart; /** * Needed config that defines swipe behaviour. * @param options SwipeOptions */ set config(options: SwipeOptions); onMouseDown(event: any): void; onMove(event: any): void; onRelease(event: any): void; /** * Function checks if the current moving delta is inside the defined threshold. * Sets the flag to true if the threshold was reached once. */ private checkThreshold; private calculateStartPosition; private move; private release; private getEasingCurve; private reset; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * @copyright KMS GmbH */ /** * Directive to calc the height of all inner elements */ declare class GetMaxHeightDirective implements AfterContentChecked { private el; /** * CSS class name of the child items (markup elements) that should be checked for their height. * This is mandatory. */ cssClassName: string; /** * Event that will pass the height of the tallest child inside the container. * Useful to calculate the target height of containers with different content (like accordion) for animations. */ maxHeightChanged: EventEmitter; /** * Event that will pass the complete sum of all height values from each child. * Useful to calculate the full target height of a container (like dropdown) for animations. */ sumOfHeight: EventEmitter; constructor(el: ElementRef); ngAfterContentChecked(): void; private checkHeightOfChildren; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TooltipDirective implements AfterViewInit, OnChanges { private elementRef; private renderer; kmsTooltip: HTMLElement; placement: Placement; delay: number; alwaysVisible: boolean; arrow: HTMLElement; showTimeout: NodeJS.Timeout; onMouseOver(): void; onMouseOut(): void; constructor(elementRef: ElementRef, renderer: Renderer2); ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; initTooltip(): void; positionTooltip(x: number, y: number): void; positionTooltipArrow(x: number, y: number, placement: Placement, arrowLength: number): void; addArrow(): void; addArrowClass(side: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TimeDirective { private el; constructor(el: ElementRef); onInputChange(event: InputEvent): void; onBeforeInput(event: InputEvent): void; handleInput(event: InputEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class DirectivesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class KmsUiPresentationalModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class KmsUiPresentationalService { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class WindowDimensions { constructor(data?: Partial); Height: number; Width: number; Orientation: "landscape" | "portrait"; } declare class SimpleBreakpoint { constructor(data?: Partial); Number: number; Name: string; MaximumPixels: number; } declare class Breakpoint { constructor(data?: Partial); Number: number; Name: string; Low: number; High: number; } /** * Service to get viewport */ declare class ViewportService implements OnDestroy { private platformId; document: Document; readonly simpleBreakpoints: SimpleBreakpoint[]; readonly breakpoints: Breakpoint[]; private viewportChangedSubscriber; private viewportResizedSubscriber; private currentViewport; private currentViewportObject; private isBrowser; constructor(platformId: Object, document: Document); /** * Get document height */ getDocumentHeight(): number; /** * Get document width */ getDocumentWidth(): number; /** * Get window height */ getWindowHeight(): number; /** * Get window width */ getWindowWidth(): number; /** * Returns the current viewport MQ as string * @returns string */ getCurrentViewPort(): string; /** * Returns the current viewport MQ as object with all informations * @returns string */ getCurrentViewPortObject(): Breakpoint; /** * Returns the current viewport as number * @deprecated use getCurrentViewPortDimensions instead * @returns string */ getCurrentViewPortNumber(): number; /** * Returns the current viewport width as number * @returns string */ getCurrentViewPortWidth(): number; /** * Returns the current viewport as number * @returns string */ getCurrentViewPortHeight(): number; /** * Returns the current viewport dimensions * @returns string */ getCurrentViewPortDimensions(): WindowDimensions; /** * Provides mq´s as string */ getViewportChangedObserver(): Observable; /** * Provides the current window width as number */ getViewportResizedObserver(): Observable; /** * Scroll to element */ scrollToElementId(el: string, alignCenter?: boolean): void; /** * Helper function that scrolls to the given markup element. * @param el - nativeElement from markup * @param alignCenter - defines if the element needs to be centered on window */ scrollToElement(el: HTMLElement, alignCenter?: boolean): void; /** * Scroll to the top position * @param top - top position value */ scrollTop(top: number): void; /** * If orientation is portrait */ isPortrait(): boolean | undefined; /** * If orientation is landscape */ isLandscape(): boolean | undefined; /** * Get screen orientation (portrait/landscape) */ getOrientationAsString(): "portrait" | "landscape"; /** * If mobile breakpoint (below tablet) */ isMobile(): boolean; /** * Get height of an element * @deprecated */ calculateFullscreenElementsheight(id: string, defaultheight: string, extra: number): string; /** * Get height of an element */ calculateFullscreenElementsHeight(id: string, defaultheight: string, extra: number): string; /** * If viewport changed * @event */ private documentSizeChanged; /** * Get the Media Query for the given width * @param width Width to get the according MQ for */ private convertWidthToMediaQuery; /** * Get the breakpoint/device name like mobile,tablet,desktop, high */ getSimpleBreakpoint(screenSize: number): SimpleBreakpoint; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * @copyright KMS GmbH */ declare enum ButtonResponseType { primary = "primary", secondary = "secondary" } export { BackToTopComponent, Breakpoint, ButtonAppearance, ButtonComponent, ButtonResponseType, CardComponent, CheckboxComponent, Color, ColorInputComponent, ConfirmationDialogComponent, CustomPipesModule, DirectivesModule, DropdownFromDataComponent, EnumRadiogroupComponent, FileInputComponent, FlyoutComponent, FormParentComponent, GetMaxHeightDirective, IconComponent, IconSizePx, IconSizesArr, ImageSliderComponent, ImageSnippet$1 as ImageSnippet, ImageSourceType$1 as ImageSourceType, IntegerCurrency, KMSAccordionItemComponent, KeyValuePair, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LabelValuePair, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, NumericInputComponent, PasswordComponent, RadioButtonComponent, RadioButtonSize, RadioGroupComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SanitizeNullPipe, SimpleBreakpoint, SlideToggleComponent, SliderComponent, StylingTheme, SwipeDirective, TextValuePair, TextValuePairArray, TimeDirective, TimeInputComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, WindowDimensions, YesNoRadiogroupComponent }; export type { DialogConfig, DialogData, NullAble, RadiobuttonInterface };