/*! * @license * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { OnChanges, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i0 from "@angular/core"; export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any; /** * Directive selectors without adf- prefix will be deprecated on 3.0.0 */ export declare class InputMaskDirective implements OnChanges, ControlValueAccessor { private readonly el; private readonly render; /** Object defining mask and "reversed" status. */ inputMask: { mask: string; isReversed: boolean; }; private readonly translationMask; private readonly byPassKeys; private value; private readonly invalidCharacters; _onChange: (_: any) => void; _onTouched: () => void; onTextInput(event: KeyboardEvent): void; onBlur(): void; ngOnChanges(changes: SimpleChanges): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: () => any): void; private maskValue; private setCaretPosition; calculateCaretPosition(caretPosition: number, newValue: string, keyCode: number): number; getMasked(skipMaskChars: boolean, val: string, mask: string, isReversed?: boolean): string; private isToCheck; private setValue; private getValue; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }