UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.83 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../core/Accessor.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";import{parseFormTemplateString as o}from"./featureFormUtils.js";let s=class extends t{constructor(e){super(e),this.element=null,this.feature=null,this.layer=null,this.timeZone=null,this.type=null,this.visibilityExpressionExecutor=null}get description(){return this.getFormattedLabel(this.element?.description)}get evaluatedVisibilityExpression(){const{visibilityExpressionExecutor:e}=this;return null!=e?!!e.lastEvaluatedValue:null}get label(){return this.getFormattedLabel(this.element?.label)}get updating(){return!1}get visible(){return null!=this.evaluatedVisibilityExpression?this.evaluatedVisibilityExpression:null!=this.element}getFormattedLabel(e){const{feature:t,layer:r,timeZone:i}=this;return null==r||null==e?e:o({label:e,attributes:t.attributes,fieldsIndex:r.fieldsIndex,timeZone:i})}};e([r({readOnly:!0})],s.prototype,"description",null),e([r({constructOnly:!0})],s.prototype,"element",void 0),e([r()],s.prototype,"evaluatedVisibilityExpression",null),e([r()],s.prototype,"feature",void 0),e([r()],s.prototype,"label",null),e([r()],s.prototype,"layer",void 0),e([r()],s.prototype,"timeZone",void 0),e([r()],s.prototype,"type",void 0),e([r()],s.prototype,"updating",null),e([r()],s.prototype,"visible",null),e([r()],s.prototype,"visibilityExpressionExecutor",void 0),s=e([i("esri.widgets.FeatureForm.InputBase")],s);const l=s;export{l as default};