All Downloads are FREE. Search and download functionalities are using the official Maven repository.

types.field.ts Maven / Gradle / Ivy

import { Indices } from 'contexts/FieldInfoContext';

import { ChoicesKind, Field } from './graphql';
import { Option } from './option';

export interface FieldInfo {
  field :        Field

  // path info
  indices :      Indices
  fieldPath:     string
  auxPath :      string           // aux path
  rpath :        string           // render/value path

  // type info
  type :         FieldRenderType
  inMultiple :   boolean
  required :     boolean
  isDepending :  boolean

  hasOptions:    boolean
  options?:      Option[]
  numOptions:    number
  optionsKind? : ChoicesKind


}

export type FieldRenderType = "TEXT" | "DECIMAL" | "INTEGER" | "MULTIPLE SELECT" | "CHECKBOX SELECT" | "SINGLE SELECT" | "SEGMENTED BOOLEAN BUTTON" | "RADIO SELECT" | "RADIO BOOLEAN SELECT" | 'MULTIPLE' | 'DATETIME' | 'TIME' | 'DATE' | "FILE" | "PERIOD" | "SINGLE SELECT SUBMIT" | "MULTIPLE FILE" | "DURATION";




© 2015 - 2024 Weber Informatics LLC | Privacy Policy