Options
All
  • Public
  • Public/Protected
  • All
Menu

Holds information represent file field implements in Petri Net

Hierarchy

Index

Constructors

  • new FileField(stringId: string, title: string, behavior: Behavior, value?: FileFieldValue, placeholder?: string, description?: string, layout?: Layout, _maxUploadSizeInBytes?: number, _allowTypes?: string | FileUploadMIMEType[], validations?: Validation[], component?: Component, parentTaskId?: string): FileField

Properties

_blockSubscription: Subscription
_changedFields$: Subject<ChangedFieldsMap>

Used to forward the result of the upload file backend call to the task content

_formControlValueSubscription: Subscription
_initializedSubscription: Subscription

Stores the last subscription to the [_initialized$]{@link AbstractDataField#_initialized$} Stream, to prevent multiple block events from executing at the same time

_localLayout: Layout

Stores a copy of the fields layout, that can be modified by the layouting algorithm as needed without affecting the base configuration.

_myValueSubscription: Subscription
_touchSubscription: Subscription
_updateSubscription: Subscription
_validators: ValidatorFn[]

Validators resolved from field validations

downloaded: boolean
filesSize: number = 0

Specifies the size of all uploaded files in bytes.

It is an indicator for checking the oversized size in the Petri Net.

layoutSubject: BehaviorSubject<Layout>

Listens for layout changes

validations?: Validation[]

Accessors

  • get allowTypes(): string
  • get behavior(): Behavior
  • set behavior(behavior: Behavior): void
  • set block(set: boolean): void
  • get changed(): boolean
  • set changed(set: boolean): void
  • get description(): string
  • set description(desc: string): void
  • get disabled(): boolean
  • get formControlRef(): FormControl
  • set formControlRef(formControl: FormControl): void
  • get initialized(): boolean
  • get initialized$(): Observable<boolean>
  • get input(): ElementRef<any>
  • set input(value: ElementRef<any>): void
  • get maxUploadSizeInBytes(): number
  • get parentCaseId(): string
  • get parentTaskId(): string
  • get placeholder(): string
  • set placeholder(placeholder: string): void
  • get previousValue(): T
  • set previousValue(value: T): void
  • get reverting(): boolean
  • set reverting(set: boolean): void
  • get sendInvalidValues(): boolean
  • set sendInvalidValues(value: boolean): void
  • get stringId(): string
  • get title(): string
  • set title(title: string): void
  • set touch(set: boolean): void
  • get touch$(): Observable<boolean>
  • get updated(): Observable<void>
  • get valid(): boolean
  • set valid(set: boolean): void
  • get validRequired(): boolean
  • set validRequired(set: boolean): void
  • get value(): FileFieldValue
  • set value(value: FileFieldValue): void
  • get waitingForResponse(): boolean
  • set waitingForResponse(value: boolean): void

Methods

  • _determineFormControlValidity(formControl: FormControl): boolean
  • applyChange(change: Change): void
  • calculateValidity(forValidRequired: boolean, formControl: FormControl): boolean
  • clearValidators(): void
  • destroy(): void
  • disconnectFormControl(): void
  • focus(): void
  • getComponentType(): string
  • getTypedComponentType(): string
  • getUpdateOnStrategy(): UpdateOnStrategy
  • isInvalid(formControl: FormControl): boolean
  • registerFormControl(formControl: FormControl): void
  • replaceValidations(validations: Validation[]): void
  • resetLocalLayout(): void
  • resolveFormControlValidators(): ValidatorFn[]
  • resolvePrevValue(value: FileFieldValue): void
  • resolveValidations(): ValidatorFn[]
  • revertToPreviousValue(): void
  • subscribeToInnerSubjects(formControl: FormControl): void
  • update(): void
  • updateFormControlState(formControl: FormControl): void
  • valueChanges(): Observable<FileFieldValue>
  • valueEquality(a: FileFieldValue, b: FileFieldValue): boolean
  • valueWithoutChange(value: FileFieldValue): void

Generated using TypeDoc