UNPKG

devextreme-angular

Version:

Angular UI and visualization components based on DevExtreme widgets

30 lines (28 loc) • 19.3 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/viz/vector_map"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/vector-map",["exports","@angular/platform-browser","@angular/core","devextreme/viz/vector_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["vector-map"]={}),e.ng.platformBrowser,e.ng.core,e.DxVectorMap,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,o,i,r){"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 i,r=arguments.length,p=r<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--)(i=e[a])&&(p=(r<3?i(p):r>3?i(t,n,p):i(t,n))||p);return r>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,i,r,p,a,u){var s=e.call(this,t,n,o,i,a,u)||this;return s._watcherHelper=i,s._idh=r,s._createEventEmitters([{subscribe:"centerChanged",emit:"onCenterChanged"},{subscribe:"click",emit:"onClick"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"drawn",emit:"onDrawn"},{subscribe:"exported",emit:"onExported"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"fileSaving",emit:"onFileSaving"},{subscribe:"incidentOccurred",emit:"onIncidentOccurred"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"tooltipHidden",emit:"onTooltipHidden"},{subscribe:"tooltipShown",emit:"onTooltipShown"},{subscribe:"zoomFactorChanged",emit:"onZoomFactorChanged"},{emit:"annotationsChange"},{emit:"backgroundChange"},{emit:"boundsChange"},{emit:"centerChange"},{emit:"commonAnnotationSettingsChange"},{emit:"controlBarChange"},{emit:"customizeAnnotationChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"exportChange"},{emit:"layersChange"},{emit:"legendsChange"},{emit:"loadingIndicatorChange"},{emit:"maxZoomFactorChange"},{emit:"panningEnabledChange"},{emit:"pathModifiedChange"},{emit:"projectionChange"},{emit:"redrawOnResizeChange"},{emit:"rtlEnabledChange"},{emit:"sizeChange"},{emit:"themeChange"},{emit:"titleChange"},{emit:"tooltipChange"},{emit:"touchEnabledChange"},{emit:"wheelEnabledChange"},{emit:"zoomFactorChange"},{emit:"zoomingEnabledChange"}]),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,"annotations",{get:function(){return this._getOption("annotations")},set:function(e){this._setOption("annotations",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"background",{get:function(){return this._getOption("background")},set:function(e){this._setOption("background",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"bounds",{get:function(){return this._getOption("bounds")},set:function(e){this._setOption("bounds",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,"commonAnnotationSettings",{get:function(){return this._getOption("commonAnnotationSettings")},set:function(e){this._setOption("commonAnnotationSettings",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"controlBar",{get:function(){return this._getOption("controlBar")},set:function(e){this._setOption("controlBar",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"customizeAnnotation",{get:function(){return this._getOption("customizeAnnotation")},set:function(e){this._setOption("customizeAnnotation",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,"export",{get:function(){return this._getOption("export")},set:function(e){this._setOption("export",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"layers",{get:function(){return this._getOption("layers")},set:function(e){this._setOption("layers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legends",{get:function(){return this._getOption("legends")},set:function(e){this._setOption("legends",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"loadingIndicator",{get:function(){return this._getOption("loadingIndicator")},set:function(e){this._setOption("loadingIndicator",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxZoomFactor",{get:function(){return this._getOption("maxZoomFactor")},set:function(e){this._setOption("maxZoomFactor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"panningEnabled",{get:function(){return this._getOption("panningEnabled")},set:function(e){this._setOption("panningEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"pathModified",{get:function(){return this._getOption("pathModified")},set:function(e){this._setOption("pathModified",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"projection",{get:function(){return this._getOption("projection")},set:function(e){this._setOption("projection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"redrawOnResize",{get:function(){return this._getOption("redrawOnResize")},set:function(e){this._setOption("redrawOnResize",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,"size",{get:function(){return this._getOption("size")},set:function(e){this._setOption("size",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"theme",{get:function(){return this._getOption("theme")},set:function(e){this._setOption("theme",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"title",{get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tooltip",{get:function(){return this._getOption("tooltip")},set:function(e){this._setOption("tooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"touchEnabled",{get:function(){return this._getOption("touchEnabled")},set:function(e){this._setOption("touchEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"wheelEnabled",{get:function(){return this._getOption("wheelEnabled")},set:function(e){this._setOption("wheelEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"zoomFactor",{get:function(){return this._getOption("zoomFactor")},set:function(e){this._setOption("zoomFactor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"zoomingEnabled",{get:function(){return this._getOption("zoomingEnabled")},set:function(e){this._setOption("zoomingEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"annotationsChildren",{get:function(){return this._getOption("annotations")},set:function(e){this.setChildren("annotations",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"layersChildren",{get:function(){return this._getOption("layers")},set:function(e){this.setChildren("layers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legendsChildren",{get:function(){return this._getOption("legends")},set:function(e){this.setChildren("legends",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("annotations",t),this.setupChanges("bounds",t),this.setupChanges("center",t),this.setupChanges("layers",t),this.setupChanges("legends",t)},s.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},s.prototype.ngDoCheck=function(){this._idh.doCheck("annotations"),this._idh.doCheck("bounds"),this._idh.doCheck("center"),this._idh.doCheck("layers"),this._idh.doCheck("legends"),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),i=null!==this._idh.getChanges(t,n);(o||i)&&e.prototype._setOption.call(this,t,n)},s.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:i.DxTemplateHost},{type:i.WatcherHelper},{type:i.IterableDifferHelper},{type:i.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],s.prototype,"annotations",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"background",null),a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],s.prototype,"bounds",null),a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],s.prototype,"center",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"commonAnnotationSettings",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"controlBar",null),a([n.Input(),u("design:type",Function),u("design:paramtypes",[Function])],s.prototype,"customizeAnnotation",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",Object),u("design:paramtypes",[Object])],s.prototype,"export",null),a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],s.prototype,"layers",null),a([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],s.prototype,"legends",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"loadingIndicator",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],s.prototype,"maxZoomFactor",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"panningEnabled",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"pathModified",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"projection",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"redrawOnResize",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"rtlEnabled",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"size",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],s.prototype,"theme",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"title",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],s.prototype,"tooltip",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"touchEnabled",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"wheelEnabled",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],s.prototype,"zoomFactor",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],s.prototype,"zoomingEnabled",null),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onCenterChanged",void 0),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,"onDrawn",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onExported",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onExporting",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onFileSaving",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onIncidentOccurred",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,"onOptionChanged",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onSelectionChanged",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onTooltipHidden",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onTooltipShown",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"onZoomFactorChanged",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"annotationsChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"backgroundChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"boundsChange",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,"commonAnnotationSettingsChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"controlBarChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"customizeAnnotationChange",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,"exportChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"layersChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"legendsChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"loadingIndicatorChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"maxZoomFactorChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"panningEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"pathModifiedChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"projectionChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"redrawOnResizeChange",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,"sizeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"themeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"titleChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"tooltipChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"touchEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"wheelEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"zoomFactorChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],s.prototype,"zoomingEnabledChange",void 0),a([n.ContentChildren(r.DxiAnnotationComponent),u("design:type",n.QueryList),u("design:paramtypes",[Object])],s.prototype,"annotationsChildren",null),a([n.ContentChildren(r.DxiLayerComponent),u("design:type",n.QueryList),u("design:paramtypes",[Object])],s.prototype,"layersChildren",null),a([n.ContentChildren(r.DxiLegendComponent),u("design:type",n.QueryList),u("design:paramtypes",[Object])],s.prototype,"legendsChildren",null),s=a([n.Component({selector:"dx-vector-map",template:"",providers:[i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost,i.IterableDifferHelper],styles:[" :host { display: block; }"]}),(d=7,l=n.Inject(n.PLATFORM_ID),function(e,t){l(e,t,d)}),u("design:paramtypes",[n.ElementRef,n.NgZone,i.DxTemplateHost,i.WatcherHelper,i.IterableDifferHelper,i.NestedOptionHost,t.TransferState,Object])],s)}(i.DxComponent),d=function(){function e(){}return e=a([n.NgModule({imports:[r.DxiAnnotationModule,r.DxoBorderModule,r.DxoFontModule,r.DxoImageModule,r.DxoShadowModule,r.DxoBackgroundModule,r.DxoCommonAnnotationSettingsModule,r.DxoControlBarModule,r.DxoExportModule,r.DxiLayerModule,r.DxoLabelModule,r.DxiLegendModule,r.DxoMarginModule,r.DxoSourceModule,r.DxoTitleModule,r.DxoSubtitleModule,r.DxoLoadingIndicatorModule,r.DxoProjectionModule,r.DxoSizeModule,r.DxoTooltipModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[s],exports:[s,r.DxiAnnotationModule,r.DxoBorderModule,r.DxoFontModule,r.DxoImageModule,r.DxoShadowModule,r.DxoBackgroundModule,r.DxoCommonAnnotationSettingsModule,r.DxoControlBarModule,r.DxoExportModule,r.DxiLayerModule,r.DxoLabelModule,r.DxiLegendModule,r.DxoMarginModule,r.DxoSourceModule,r.DxoTitleModule,r.DxoSubtitleModule,r.DxoLoadingIndicatorModule,r.DxoProjectionModule,r.DxoSizeModule,r.DxoTooltipModule,i.DxTemplateModule]})],e)}();e.DxVectorMapComponent=s,e.DxVectorMapModule=d,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=devextreme-angular-ui-vector-map.umd.min.js.map