12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{_ as t}from"../chunks/tslib.es6.js";import{JSONMap as o}from"../core/jsonMap.js";import{JSONSupport as e}from"../core/JSONSupport.js";import{clone as i}from"../core/lang.js";import{property as r}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{enumeration as s}from"../core/accessorSupport/decorators/enumeration.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";import l from"./support/FieldInfoFormat.js";var a;let n=a=class extends e{constructor(t){super(t),this.fieldName=null,this.format=null,this.isEditable=!1,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new a({fieldName:this.fieldName,format:this.format?i(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};t([r({type:String,json:{write:!0}})],n.prototype,"fieldName",void 0),t([r({type:l,json:{write:!0}})],n.prototype,"format",void 0),t([r({type:Boolean,json:{write:!0,default:!1}})],n.prototype,"isEditable",void 0),t([r({type:String,json:{write:!0}})],n.prototype,"label",void 0),t([s(new o({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],n.prototype,"stringFieldOption",void 0),t([r({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],n.prototype,"statisticType",void 0),t([r({type:String,json:{write:!0}})],n.prototype,"tooltip",void 0),t([r({type:Boolean,json:{write:!0}})],n.prototype,"visible",void 0),n=a=t([p("esri.popup.FieldInfo")],n);const c=n;export{c as default};
|