in src/main/scala/lang/Typeahead.scala [194:207]
private def suggestFieldValue(
key: String,
str: String
): Future[Option[Suggestions]] =
typeaheadFields
.find(_.id == key)
.map {
case typeaheadField if typeaheadField.suggestionType == "DATE" =>
Future.successful(Some(DateSuggestion(None, None)))
case textField =>
textField
.resolveSuggestions(str)
.map(options => Some(TextSuggestion(options)))
}