UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.5 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 e}from"../../../chunks/tslib.es6.js";import r from"../../../core/Clonable.js";import o from"../../../core/ReactiveMap.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{hashElementTemplate as p}from"./support/hashElementTemplate.js";let a=class extends r{constructor(e){super(e),this.description=null,this.label=null,this._expressionExecutorsByLayer=new o}get elementId(){return p(this)}get layers(){return Array.from(this._expressionExecutorsByLayer.keys())}addLayer(e,r=null){this._expressionExecutorsByLayer.set(e,r)}foldIn(e){for(const r of e.layers)this.addLayer(r,e.getExpressionExecutorsForLayer(r))}getExpressionExecutorsForLayer(e){return this._expressionExecutorsByLayer.get(e)??null}};e([t()],a.prototype,"description",void 0),e([t({readOnly:!0})],a.prototype,"elementId",null),e([t()],a.prototype,"label",void 0),e([t({readOnly:!0})],a.prototype,"layers",null),e([t({readOnly:!0})],a.prototype,"type",void 0),e([t({clonable:e=>new o(Array.from(e))})],a.prototype,"_expressionExecutorsByLayer",void 0),a=e([s("esri.widgets.BatchAttributeForm.templates.ElementTemplateBase")],a);export{a as ElementTemplateBase};