devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 16 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/map"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/map",["exports","@angular/platform-browser","@angular/core","devextreme/ui/map","devextreme-angular/core","devextreme-angular/ui/nested"],t):t(((e=e||self)["devextreme-angular"]=e["devextreme-angular"]||{},e["devextreme-angular"].ui=e["devextreme-angular"].ui||{},e["devextreme-angular"].ui.map={}),e.ng.platformBrowser,e.ng.core,e.DxMap,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,o,r,i){"use strict";o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t,n,o){var r,i=arguments.length,p=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
/*!
* devextreme-angular
* Version: 20.2.5
* Build date: Fri Jan 15 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-angular
*/
var s=function(e){function s(t,n,o,r,i,p,a,u){var s=e.call(this,t,n,o,r,a,u)||this;return s._watcherHelper=r,s._idh=i,s._createEventEmitters([{subscribe:"click",emit:"onClick"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"markerAdded",emit:"onMarkerAdded"},{subscribe:"markerRemoved",emit:"onMarkerRemoved"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"ready",emit:"onReady"},{subscribe:"routeAdded",emit:"onRouteAdded"},{subscribe:"routeRemoved",emit:"onRouteRemoved"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"apiKeyChange"},{emit:"autoAdjustChange"},{emit:"centerChange"},{emit:"controlsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"keyChange"},{emit:"markerIconSrcChange"},{emit:"markersChange"},{emit:"providerChange"},{emit:"routesChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"typeChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"zoomChange"}]),s._idh.setHost(s),p.setHost(s),s}var d,l;return function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(s,e),Object.defineProperty(s.prototype,"accessKey",{get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"activeStateEnabled",{get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"apiKey",{get:function(){return this._getOption("apiKey")},set:function(e){this._setOption("apiKey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"autoAdjust",{get:function(){return this._getOption("autoAdjust")},set:function(e){this._setOption("autoAdjust",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"center",{get:function(){return this._getOption("center")},set:function(e){this._setOption("center",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"controls",{get:function(){return this._getOption("controls")},set:function(e){this._setOption("controls",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"disabled",{get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"elementAttr",{get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"focusStateEnabled",{get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"height",{get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hint",{get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hoverStateEnabled",{get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"key",{get:function(){return this._getOption("key")},set:function(e){this._setOption("key",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"markerIconSrc",{get:function(){return this._getOption("markerIconSrc")},set:function(e){this._setOption("markerIconSrc",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"markers",{get:function(){return this._getOption("markers")},set:function(e){this._setOption("markers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"provider",{get:function(){return this._getOption("provider")},set:function(e){this._setOption("provider",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"routes",{get:function(){return this._getOption("routes")},set:function(e){this._setOption("routes",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rtlEnabled",{get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tabIndex",{get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"type",{get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"visible",{get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"width",{get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"zoom",{get:function(){return this._getOption("zoom")},set:function(e){this._setOption("zoom",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"centerChildren",{get:function(){return this._getOption("center")},set:function(e){this.setChildren("center",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"markersChildren",{get:function(){return this._getOption("markers")},set:function(e){this.setChildren("markers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"routesChildren",{get:function(){return this._getOption("routes")},set:function(e){this.setChildren("routes",e)},enumerable:!0,configurable:!0}),s.prototype._createInstance=function(e,t){return new o(e,t)},s.prototype.ngOnDestroy=function(){this._destroyWidget()},s.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.setupChanges("center",t),this.setupChanges("markers",t),this.setupChanges("routes",t)},s.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},s.prototype.ngDoCheck=function(){this._idh.doCheck("center"),this._idh.doCheck("markers"),this._idh.doCheck("routes"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},s.prototype._setOption=function(t,n){var o=this._idh.setupSingle(t,n),r=null!==this._idh.getChanges(t,n);(o||r)&&e.prototype._setOption.call(this,t,n)},s.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:r.DxTemplateHost},{type:r.WatcherHelper},{type:r.IterableDifferHelper},{type:r.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],s.prototype,"accessKey",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"activeStateEnabled",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"apiKey",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"autoAdjust",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"center",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"controls",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"disabled",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"elementAttr",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"focusStateEnabled",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"height",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],s.prototype,"hint",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"hoverStateEnabled",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"key",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],s.prototype,"markerIconSrc",null),a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],s.prototype,"markers",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],s.prototype,"provider",null),a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],s.prototype,"routes",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"rtlEnabled",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],s.prototype,"tabIndex",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],s.prototype,"type",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"visible",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"width",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],s.prototype,"zoom",null),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onClick",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onDisposing",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onInitialized",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onMarkerAdded",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onMarkerRemoved",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onOptionChanged",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onReady",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onRouteAdded",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onRouteRemoved",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"accessKeyChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"activeStateEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"apiKeyChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"autoAdjustChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"centerChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"controlsChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"disabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"elementAttrChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"focusStateEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"heightChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"hintChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"hoverStateEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"keyChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"markerIconSrcChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"markersChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"providerChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"routesChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"rtlEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"tabIndexChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"typeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"visibleChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"widthChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"zoomChange",void 0),a([n.ContentChildren(i.DxiCenterComponent),u("design:type",n.QueryList),u("design:paramtypes",[Object])],s.prototype,"centerChildren",null),a([n.ContentChildren(i.DxiMarkerComponent),u("design:type",n.QueryList),u("design:paramtypes",[Object])],s.prototype,"markersChildren",null),a([n.ContentChildren(i.DxiRouteComponent),u("design:type",n.QueryList),u("design:paramtypes",[Object])],s.prototype,"routesChildren",null),s=a([n.Component({selector:"dx-map",template:"",providers:[r.DxTemplateHost,r.WatcherHelper,r.NestedOptionHost,r.IterableDifferHelper]}),(d=7,l=n.Inject(n.PLATFORM_ID),function(e,t){l(e,t,d)}),u("design:paramtypes",[n.ElementRef,n.NgZone,r.DxTemplateHost,r.WatcherHelper,r.IterableDifferHelper,r.NestedOptionHost,t.TransferState,Object])],s)}(r.DxComponent),d=function(){function e(){}return e=a([n.NgModule({imports:[i.DxoApiKeyModule,i.DxiCenterModule,i.DxoKeyModule,i.DxiMarkerModule,i.DxiLocationModule,i.DxoTooltipModule,i.DxiRouteModule,r.DxIntegrationModule,r.DxTemplateModule,t.BrowserTransferStateModule],declarations:[s],exports:[s,i.DxoApiKeyModule,i.DxiCenterModule,i.DxoKeyModule,i.DxiMarkerModule,i.DxiLocationModule,i.DxoTooltipModule,i.DxiRouteModule,r.DxTemplateModule]})],e)}();e.DxMapComponent=s,e.DxMapModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-map.umd.min.js.map