UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.6 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{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{reader as t}from"../../../core/accessorSupport/decorators/reader.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{writer as i}from"../../../core/accessorSupport/decorators/writer.js";import n from"./Input.js";var p;function s(e){return null!=e?new Date(e):null}function m(e){return e?e.getTime():null}let a=p=class extends n{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,r){return s(r.max)}writeMax(e,r){r.max=m(e)}readMin(e,r){return s(r.min)}writeMin(e,r){r.min=m(e)}clone(){return new p({includeTime:this.includeTime,max:this.max,min:this.min})}};e([r({type:Boolean,json:{write:!0}})],a.prototype,"includeTime",void 0),e([r({type:Date,json:{type:Number,write:!0}})],a.prototype,"max",void 0),e([t("max")],a.prototype,"readMax",null),e([i("max")],a.prototype,"writeMax",null),e([r({type:Date,json:{type:Number,write:!0}})],a.prototype,"min",void 0),e([t("min")],a.prototype,"readMin",null),e([i("min")],a.prototype,"writeMin",null),e([r({type:["datetime-picker"],json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=p=e([o("esri.form.elements.inputs.DateTimePickerInput")],a);const c=a;export{c as default};