UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.38 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as o}from"../../../chunks/tslib.es6.js";import e from"../../../core/Accessor.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as s}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,t=[];return e?.forEach((e=>{if(!(!e.hasOwnProperty("visible")||e.visible))return;const s=e.clone();s.label=p(s,o),t.push(s)})),t}};o([t()],l.prototype,"attributes",void 0),o([t({type:[r]})],l.prototype,"expressionInfos",void 0),o([t()],l.prototype,"description",void 0),o([t({type:[i]})],l.prototype,"fieldInfos",void 0),o([t({readOnly:!0})],l.prototype,"formattedFieldInfos",null),o([t()],l.prototype,"title",void 0),l=o([s("esri.widgets.Feature.FeatureFields.FeatureFieldsViewModel")],l);export{l as default};