UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 754 B
import{_ as e}from"../../chunks/tslib.es6.js";import r from"../../core/Accessor.js";import{IdentifiableMixin as t}from"../../core/Identifiable.js";import{property as o}from"../../core/accessorSupport/decorators/property.js";import"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let p=class extends(t(r)){constructor(e){super(e),this.items=null,this.label=null}get id(){return this.label}findByTemplate(e){return this.items.find((r=>r.template===e))}};e([o()],p.prototype,"items",void 0),e([o()],p.prototype,"label",void 0),e([o()],p.prototype,"id",null),p=e([s("esri.widgets.FeatureTemplates.TemplateItemGroup")],p);const i=p;export{i as default};