import { FIELD_ORIGIN } from '../../../common/constants' ; import { IField , AbstractField } from './field' ; import { IVectorSource } from '../sources/vector_source' ; import { IEmsFileSource } from '../sources/ems_file_source' ; export class EMSFileField extends AbstractField implements IField { private readonly _source : IEmsFileSource ; constructor ( { fieldName , source , origin , } ) { super ( { fieldName , origin } ) ; this . _source = source ; } supportsFieldMetaFromEs ( ) { return false ; } supportsFieldMetaFromLocalData ( ) { return true ; } getSource ( ) { return this . _source ; } async getLabel ( ) { return this . _source . getEmsFieldLabel ( this . getName ( ) ) ; } }