@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 2.55 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{_ as e}from"../../chunks/tslib.es6.js";import{clone as t}from"../../core/lang.js";import{property as o}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import i from"./SearchSource.js";import{getResults as r,getSuggestions as l}from"./support/locatorUtils.js";var a;let p=a=class extends i{constructor(e){super(e),this.apiKey=null,this.categories=null,this.countryCode=null,this.defaultZoomScale=null,this.localSearchDisabled=!1,this.locationType=null,this.name="",this.placeholder="",this.searchTemplate="",this.singleLineFieldName=null,this.suggestionsEnabled=null,this.url=null,this.zoomScale=null,this.getResults=(e,t)=>r({source:this,...e},t),this.getSuggestions=(e,t)=>l({source:this,...e},t)}clone(){return new a({apiKey:this.apiKey,autoNavigate:this.autoNavigate,filter:this.filter,maxResults:this.maxResults,maxSuggestions:this.maxSuggestions,minSuggestCharacters:this.minSuggestCharacters,outFields:this.outFields?t(this.outFields):null,placeholder:this.placeholder,popupEnabled:this.popupEnabled,prefix:this.prefix,resultGraphicEnabled:this.resultGraphicEnabled,resultSymbol:this.resultSymbol?this.resultSymbol.clone():null,suggestionsEnabled:this.suggestionsEnabled,suffix:this.suffix,withinViewEnabled:this.withinViewEnabled,categories:this.categories?t(this.categories):null,countryCode:this.countryCode,locationType:this.locationType,searchTemplate:this.searchTemplate,singleLineFieldName:this.singleLineFieldName,zoomScale:this.zoomScale})}};e([o()],p.prototype,"apiKey",void 0),e([o()],p.prototype,"categories",void 0),e([o()],p.prototype,"countryCode",void 0),e([o({json:{write:!0}})],p.prototype,"defaultZoomScale",void 0),e([o()],p.prototype,"localSearchDisabled",void 0),e([o()],p.prototype,"locationType",void 0),e([o({json:{write:!0}})],p.prototype,"name",void 0),e([o({json:{write:!0}})],p.prototype,"placeholder",void 0),e([o()],p.prototype,"searchTemplate",void 0),e([o({json:{write:!0}})],p.prototype,"singleLineFieldName",void 0),e([o({json:{read:{source:"suggest"},write:{target:"suggest"}}})],p.prototype,"suggestionsEnabled",void 0),e([o({json:{write:!0}})],p.prototype,"url",void 0),e([o({json:{write:!0}})],p.prototype,"zoomScale",void 0),p=a=e([s("esri.widgets.Search.LocatorSearchSource")],p);const n=p;export{n as default};