UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.24 kB
import{_ as o}from"../../../chunks/tslib.es6.js";import e from"../../../core/Accessor.js";import{property as s}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import{subclass as t}from"../../../core/accessorSupport/decorators/subclass.js";import r from"../../../popup/ExpressionInfo.js";import i from"../../../popup/FieldInfo.js";import{getFieldInfoLabel as p}from"../support/featureUtils.js";let l=class extends e{constructor(o){super(o),this.attributes=null,this.expressionInfos=null,this.description=null,this.fieldInfos=null,this.title=null}get formattedFieldInfos(){const{expressionInfos:o,fieldInfos:e}=this,s=[];return e?.forEach((e=>{if(!(!e.hasOwnProperty("visible")||e.visible))return;const t=e.clone();t.label=p(t,o),s.push(t)})),s}};o([s()],l.prototype,"attributes",void 0),o([s({type:[r]})],l.prototype,"expressionInfos",void 0),o([s()],l.prototype,"description",void 0),o([s({type:[i]})],l.prototype,"fieldInfos",void 0),o([s({readOnly:!0})],l.prototype,"formattedFieldInfos",null),o([s()],l.prototype,"title",void 0),l=o([t("esri.widgets.Feature.FeatureFields.FeatureFieldsViewModel")],l);const n=l;export{n as default};