@taiga-ui/kit
Version:
Taiga UI Angular main components kit
10 lines (9 loc) • 584 B
TypeScript
import { type MaskitoPreprocessor } from '@maskito/core';
/**
* `InputPhone` component sets country code as non-removable prefix.
* This prefix appears on focus and cannot be erased.
* But users sometimes can copy complete phone number (from any different source)
* and try to insert the whole string inside our `InputPhone` textfield.
* This preprocessor helps to avoid country prefix duplication on paste/drop/autofill events.
*/
export declare function tuiCreateCompletePhoneInsertionPreprocessor(countryCode: string, phoneMaskAfterCountryCode: string): MaskitoPreprocessor;