UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 2.35 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 t}from"../../chunks/tslib.es6.js";import{property as e}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 o from"./Element.js";import s from"./inputs/attachments/AttachmentInput.js";import{buildTypeMaps as n}from"./inputs/attachments/support/inputs.js";var r;const a=n(s);let p=r=class extends o{constructor(t){super(t),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new r({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};t([e({type:Boolean,json:{write:!0}})],p.prototype,"allowUserRename",void 0),t([e({type:String,json:{write:{isRequired:!0}}})],p.prototype,"attachmentKeyword",void 0),t([e({type:Boolean,json:{write:!0}})],p.prototype,"displayFilename",void 0),t([e({type:String,json:{write:!0}})],p.prototype,"editableExpression",void 0),t([e({type:String,json:{write:!0}})],p.prototype,"filenameExpression",void 0),t([e({types:a.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],p.prototype,"input",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"maxAttachmentCount",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"minAttachmentCount",void 0),t([e({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),t([e({type:Boolean,json:{write:!0}})],p.prototype,"useOriginalFilename",void 0),p=r=t([i("esri.form.elements.AttachmentElement")],p);const m=p;export{m as default};