/** * Aspect of the field. The way the field is really rendered depends on the client. */ export declare const enum Aspect { /** * An information field, usually green or blue. */ Info = 0, /** * A warning field, usually orange or yellow. */ Warning = 1, /** * An error field, usually red. */ Error = 2, /** * A field used for red values or banknotes. */ Red = 3, /** * A field used for yellow values or banknotes. */ Yellow = 4, /** * A field used for green values or banknotes. */ Green = 5, /** * A field used for blue values or banknotes. */ Blue = 6 } export interface FieldOptions { /** * If true, the field should not be displayed (no room left for it). */ hidden?: boolean; /** * If true (and not hidden), the field should not be visible (but space is reserved for it). */ invisible?: boolean; /** * If true, the field should not be editable. */ disabled?: boolean; /** * If set, field should have a special aspect. */ aspect?: Aspect; } /** * The core of a field. */ export default interface FieldCore { /** * Name used to identify the field. */ readonly name: string; /** * The (initial) content of the field. Type should be restricted by inherited interfaces. */ content: unknown; /** * The display options for the field. */ options: FieldOptions; /** * Indicate if the field has important data which needs to be sent to server. If false, field is only to * be displayed. */ hasData: boolean; }