Just run npm run knoova-input-fields
type InputType = "string" | "password" | "mail" | "boolean" | "radio" | "upload" | "uploadImage" | "uploadPdf" | "number" | "combo"
interface InputArgs<T> {
type: InputType
title: string
description?: string
nullable?: boolean
}
interface StringInput extends InputArgs<string> {
multiline?: number
password?: boolean
minLength?: number
maxLength?: number
}
interface NumberInput extends InputArgs<string> {
max?: number
min?: number
}
interface BooleanInput extends InputArgs<boolean> {
mustBeTrue?: boolean
}
interface DateInput extends InputArgs<string> {
max?: string
min?: string
}
interface ComboInput<T> extends InputArgs<T> {
visualName: keyof T,
valueName: keyof T,
values: T[]
}
#Field interface interface Input { model: models.Model<models.DataState>, el: JQuery set: (value: T) => void }