import { UntypedFormGroup } from '@angular/forms'; import { BaseObj } from './baseObj.model'; import { Contestualization } from './getter.model'; import { NotNumberAggregationFunctionEnum, NumberAggregationFunctionEnum } from './statistic.model'; /** * Contiene le informazioni di base del campo, indipendentemente dal tipo. * Questa classe è volutamente astratta perché il tipo di campo è dettato dal tipo */ export declare class BaseField extends BaseObj { /** * Nome del campo che per progettazione è una sostituzione della label * Il vero identificativo del campo è l'ID */ Name: string; Label: string; Description: string; Required: boolean; Formula: string; Tooltip: string; OrdinalPosition: number; Disabled: boolean; Readonly: boolean; ReadonlyIf: string; Aggregations: Array | Array; FieldstyleCSS: string; LabelstyleCSS: string; AnswerStyle: AnswerStyle; /** * Entità a cui appartiene il campo. Si tenga presente che sono ammessi anche campi * di sola visualizzazione e calcolati, da utilizzare nelle form, * e per questo motivo possono essere con Entity == null */ EntityID: string; FieldGroup: string; ColSpanSizes: Array; VisibleIf: string; InListView: boolean; Invisibility: FieldInvisibilityEnum; Maintain_Value: boolean; FieldType: FieldTypeEnum; FieldValue: any; DataGetter: DataGetter; DataGetterValueBase64String: string; FormFormGroup: UntypedFormGroup; } export declare class AnswerStyle { InListView: boolean; Invisibility: FieldInvisibilityEnum; VisibleIf: string; FieldstyleCSS: string; LabelstyleCSS: string; ColSpanSizes: Array; } export declare class DataGetter { DataGetterType: DataGetterTypeEnum; DataGetterValue: any; DataGetterColumnForce: any; DataGetterCardinality: DataGetterCardinalityEnum; DataGetterContestualization: Contestualization; DataGetterHasResetButton: boolean; DataGetterCodeVersion?: number; DataGetterSpeechText?: string; } export declare enum FieldTypeEnum { 'Campo di testo' = 1, 'Area di testo' = 2, 'Booleano' = 3, 'Data e/o ora' = 4, 'Campo numerico' = 5, 'Allegato' = 6, 'Immagine' = 7, 'Elenco generico' = 8, 'Lookup' = 9, 'Form di dettaglio' = 10, 'Elenco immagini' = 11, "Etichetta" = 12, "Immagine con markers" = 13, "Bottone" = 14 } export declare enum DataGetterTypeEnum { 'Manuale' = 1, 'Formula' = 2, 'Da database' = 3, 'Da modulo dinamico' = 4 } export declare enum ColSpanSizesEnum { 'col-sm-3' = 1, 'col-sm-4' = 2, 'col-sm-6' = 3, 'col-sm-12' = 4, 'col-md-3' = 5, 'col-md-4' = 6, 'col-md-6' = 7, 'col-md-12' = 8, 'col-lg-3' = 9, 'col-lg-4' = 10, 'col-lg-6' = 11, 'col-lg-12' = 12, 'align-self-start' = 13, 'align-self-center' = 14, 'align-self-end' = 15, 'col-sm-1' = 16, 'col-sm-2' = 17, 'col-sm-5' = 18, 'col-sm-7' = 19, 'col-sm-8' = 20, 'col-sm-9' = 21, 'col-sm-10' = 22, 'col-sm-11' = 23, 'col-md-1' = 24, 'col-md-2' = 25, 'col-md-5' = 26, 'col-md-7' = 27, 'col-md-8' = 28, 'col-md-9' = 29, 'col-md-10' = 30, 'col-md-11' = 31, 'col-lg-1' = 32, 'col-lg-2' = 33, 'col-lg-5' = 34, 'col-lg-7' = 35, 'col-lg-8' = 36, 'col-lg-9' = 37, 'col-lg-10' = 38, 'col-lg-11' = 39 } export declare enum FieldInvisibilityEnum { 'NASCOSTO' = 1, 'NASCOSTO CON AREA VISIBILE' = 2 } export declare enum DataGetterCardinalityEnum { 'PIU RECENTE' = 1, 'MENO RECENTE' = 4, 'CONTESTUALIZZATA ALLA RISPOSTA' = 5 }