@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.56 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as t}from"../../../../chunks/tslib.es6.js";import{property as r}from"../../../../core/accessorSupport/decorators/property.js";import{cast as o}from"../../../../core/accessorSupport/decorators/cast.js";import"../../../../core/has.js";import"../../../../core/RandomLCG.js";import{reader as e}from"../../../../core/accessorSupport/decorators/reader.js";import{subclass as s}from"../../../../core/accessorSupport/decorators/subclass.js";import{writer as p}from"../../../../core/accessorSupport/decorators/writer.js";import n from"./Input.js";import{ensureType as c,fromJSON as a,toJSON as i,buildTypeMaps as u}from"./support/inputs.js";let m=class extends n{constructor(t){super(t),this.type="attachment",this.attachmentAssociationType="exact",this.inputTypes=null}castInputs(t){return c(t,y,!0)}readInputs(t,r){return a(r.inputTypes,y,!0)}writeInputs(t,r){r.inputTypes=i(t,y,!0)}};t([r({type:["attachment"],readOnly:!0,json:{write:!0}})],m.prototype,"type",void 0),t([r({type:["any","exact","exactOrNone"],json:{write:!0}})],m.prototype,"attachmentAssociationType",void 0),t([r({json:{write:{isRequired:!0}}})],m.prototype,"inputTypes",void 0),t([o("inputTypes")],m.prototype,"castInputs",null),t([e("inputTypes")],m.prototype,"readInputs",null),t([p("inputTypes")],m.prototype,"writeInputs",null),m=t([s("esri.form.elements.inputs.attachments.AttachmentInput")],m);const y=u(m),d=m;export{d as default};