@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.74 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as e,subclass as i}from"../../../core/accessorSupport/decorators.js";import o from"./Input.js";import{reader as r}from"../../../core/accessorSupport/decorators/reader.js";import{writer as n}from"../../../core/accessorSupport/decorators/writer.js";var s;function p(t){return null!=t?t:null}function m(t){return null!=t?t:null}let l=s=class extends o{constructor(t){super(t),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(t,e){return p(e.max)}writeMax(t,e){e.max=m(t)}readMin(t,e){return p(e.min)}writeMin(t,e){e.min=m(t)}readTimeResolution(t,e){return p(e.timeResolution)}writeTimeResolution(t,e){e.timeResolution=m(t)}clone(){return new s({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};t([e({type:Boolean,json:{write:!0}})],l.prototype,"includeTimeOffset",void 0),t([e({type:String,json:{type:String,write:!0}})],l.prototype,"max",void 0),t([r("max")],l.prototype,"readMax",null),t([n("max")],l.prototype,"writeMax",null),t([e({type:String,json:{type:String,write:!0}})],l.prototype,"min",void 0),t([r("min")],l.prototype,"readMin",null),t([n("min")],l.prototype,"writeMin",null),t([e({type:String,json:{type:String,write:!0}})],l.prototype,"timeResolution",void 0),t([r("timeResolution")],l.prototype,"readTimeResolution",null),t([n("timeResolution")],l.prototype,"writeTimeResolution",null),t([e({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=s=t([i("esri.form.elements.inputs.DateTimeOffsetPickerInput")],l);const u=l;export{u as default};