UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.14 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{clone as o}from"../../core/lang.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{enumeration as s}from"../../core/accessorSupport/decorators/enumeration.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";import{CodedValue as a}from"./CodedValue.js";import c from"./Domain.js";var d;let i=class extends c{static{d=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let o=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(o=e.name),!!o)))}return o}clone(){return new d({codedValues:o(this.codedValues),name:this.name})}};e([r({type:[a],json:{write:{isRequired:!0}}})],i.prototype,"codedValues",void 0),e([s({codedValue:"coded-value"})],i.prototype,"type",void 0),i=d=e([t("esri.layers.support.CodedValueDomain")],i);export{i as default};