UNPKG

@taiga-ui/kit

Version:
22 lines (18 loc) 657 B
import { TuiValidationError } from '@taiga-ui/cdk'; function tuiCreateUnfinishedValidator(nativeInputGetter, message) { return function (_a) { var value = _a.value; var nativeInput = nativeInputGetter(); return value === null && nativeInput && nativeInput.nativeFocusableElement instanceof HTMLInputElement && nativeInput.nativeFocusableElement.value !== '' ? { unfinished: new TuiValidationError(message) } : null; }; } /** * Generated bundle index. Do not edit. */ export { tuiCreateUnfinishedValidator }; //# sourceMappingURL=taiga-ui-kit-validators.js.map