Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractFileDefaultFieldComponent Abstract

Hierarchy

  • AbstractFileFieldDefaultComponent<FileField>
    • AbstractFileDefaultFieldComponent

Implements

  • OnInit
  • AfterViewInit
  • OnDestroy

Index

Constructors

Properties

_eventService: EventService
_sanitizer: DomSanitizer
_snackbar: SnackBarService
_taskResourceService: TaskResourceService
_translate: TranslateService
cutProperty: string
dataField: FileField
fileForDownload: Blob

Store file to show/download

fileForPreview: Blob

Store file for preview

fileUploadEl: ElementRef<HTMLInputElement>

File picker element reference from component template that is initialized after view init.

formControlRef: FormControl
fullSource: BehaviorSubject<SafeUrl>

Full size file url

imageDivEl: ElementRef<any>
imageEl: ElementRef<any>

Image field view element reference from component template that is initialized after view init.

isDisplayable: boolean = false

If file type can be displayed

isFilePreview: boolean = false
isFilePreviewButton: boolean = false
maxHeight: string

Max height of preview

previewExtension: FilePreviewType

Extension of file to preview

previewSource: SafeUrl

Url of preview file

showLargeLayout: WrappedBoolean
state: FileState
taskId: string

Task mongo string id is binding property from parent component.

updatedFieldSubscription: Subscription

Form control subscription

DEFAULT_PREVIEW_BORDER_COLOR: "black" = 'black'

The CSS color string of the default file preview border.

DEFAULT_PREVIEW_BORDER_STYLE: "none" = 'none'

The CSS style attribute of the default file preview border.

DEFAULT_PREVIEW_BORDER_WIDTH: 0 = 0

The width of the default file preview border in pixels. The px string is appended in the code.

Accessors

Methods

  • borderPropertyEnabled(property: string): boolean
  • changeMaxWidth(event: ResizedEvent): void
  • checkAllowedTypes(): boolean
  • checkFileBeforeDownload(): boolean
  • checkPropertyInComponent(property: string): boolean
  • checkTypes(itemType: string): boolean
  • chooseFile(): void
  • constructDisplayName(): string
  • createRequestBody(): FileFieldRequest
  • deleteFile(): void
  • download(): void
  • downloadViaAnchor(blob: Blob): void
  • getCutProperty(label: any): string
  • getHeight(): number
  • getPreviewBorderColor(): string
  • getPreviewBorderStyle(): string
  • getPreviewBorderWidth(): string
  • hasHint(): boolean
  • hasTitle(): boolean
  • initFileFieldImage(): void
  • initializePreviewIfDisplayable(): void
  • isBorderDefault(): boolean
  • isBorderLGBTQ(): boolean
  • isEmpty(): boolean
  • ngAfterViewInit(): void
  • ngOnDestroy(): void
  • ngOnInit(): void
  • resolveMaxSizeMessage(): void
  • resolveParentTaskId(): string
  • showPreviewDialog(): void
  • upload(): void

Generated using TypeDoc