@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.97 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as e}from"tslib";import r from"../../core/Collection.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{clone as t}from"../../core/lang.js";import{property as s,subclass as a}from"../../core/accessorSupport/decorators.js";import{writeNonEmptyCollectionPolicy as i}from"../../core/accessorSupport/extensions/serializableProperty/writePolicyUtils.js";import d from"./SearchLayer.js";import l from"./SearchTable.js";import{reader as n}from"../../core/accessorSupport/decorators/reader.js";import{writer as c}from"../../core/accessorSupport/decorators/writer.js";var p;const b=r.ofType(d),h=r.ofType(l);let y=p=class extends o{constructor(e){super(e),this.addressSearchEnabled=!0,this.enabled=!0,this.hintText=null,this.layers=new b,this.tables=new h}readAddressSearchEnabled(e){return!e}writeAddressSearchEnabled(e,r,o){r[o]=!e}clone(){return new p(t({addressSearchEnabled:this.addressSearchEnabled,enabled:this.enabled,hintText:this.hintText,layers:this.layers,tables:this.tables}))}};e([s({type:Boolean,nonNullable:!0,json:{read:{source:"disablePlaceFinder"},write:{target:"disablePlaceFinder",isRequired:!0},origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"addressSearchEnabled",void 0),e([n("addressSearchEnabled")],y.prototype,"readAddressSearchEnabled",null),e([c("addressSearchEnabled")],y.prototype,"writeAddressSearchEnabled",null),e([s({type:Boolean,nonNullable:!0,json:{write:!0,origins:{"web-map":{write:{isRequired:!0}},"web-scene":{default:!0,write:!0}}}})],y.prototype,"enabled",void 0),e([s({type:String,json:{write:!0}})],y.prototype,"hintText",void 0),e([s({type:b,json:{write:{overridePolicy:i},origins:{"web-scene":{write:{isRequired:!0}}}}})],y.prototype,"layers",void 0),e([s({type:h,json:{read:!0,write:{overridePolicy:i}}})],y.prototype,"tables",void 0),y=p=e([a("esri.webdoc.applicationProperties.Search")],y);const m=y;export{m as default};