UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 2.18 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 r from"../../core/Collection.js";import o from"../../core/JSONSupport.js";import{clone as s}from"../../core/lang.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{reader as a}from"../../core/accessorSupport/decorators/reader.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";import{writer as d}from"../../core/accessorSupport/decorators/writer.js";import{writeNonEmptyCollectionPolicy as l}from"../../core/accessorSupport/extensions/serializableProperty/writePolicyUtils.js";import c from"./SearchLayer.js";import n from"./SearchTable.js";var p;const b=r.ofType(c),h=r.ofType(n);let m=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(s({addressSearchEnabled:this.addressSearchEnabled,enabled:this.enabled,hintText:this.hintText,layers:this.layers,tables:this.tables}))}};e([t({type:Boolean,nonNullable:!0,json:{read:{source:"disablePlaceFinder"},write:{target:"disablePlaceFinder",isRequired:!0},origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"addressSearchEnabled",void 0),e([a("addressSearchEnabled")],m.prototype,"readAddressSearchEnabled",null),e([d("addressSearchEnabled")],m.prototype,"writeAddressSearchEnabled",null),e([t({type:Boolean,nonNullable:!0,json:{write:!0,origins:{"web-map":{write:{isRequired:!0}},"web-scene":{default:!0,write:!0}}}})],m.prototype,"enabled",void 0),e([t({type:String,json:{write:!0}})],m.prototype,"hintText",void 0),e([t({type:b,json:{write:{overridePolicy:l},origins:{"web-scene":{write:{isRequired:!0}}}}})],m.prototype,"layers",void 0),e([t({type:h,json:{read:!0,write:{overridePolicy:l}}})],m.prototype,"tables",void 0),m=p=e([i("esri.webdoc.applicationProperties.Search")],m);const y=m;export{y as default};