@progress/kendo-angular-map 0.1.1-dev.202205050346 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/platform-browser"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-charts"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("KendoAngularMap",["exports","@angular/core","rxjs","@angular/platform-browser","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-charts","@progress/kendo-licensing","rxjs/operators","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularMap={},e.ng.core,e.rxjs,e.ng.platformBrowser,e.KendoAngularCommon,e.KendoAngularL10N,e.KendoCharts,e.KendoLicensing,e.rxjs.operators,e.ng.common)}(this,function(e,s,t,n,r,o,i,L,j,a){"use strict";function c(n){if(n&&n.__esModule)return n;var r=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),r.default=n,Object.freeze(r)}var p=c(s),u=c(n),n=c(r),l=c(o),m=function(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;var Z=function(e,t){this.key=e,this.value=t},y=(g.prototype.initSource=function(){this.changes=this.source.asObservable()},g.prototype.push=function(e){this.store=e,this.next()},g.prototype.notify=function(e){this.set(e.key,e.value),this.next()},g.prototype.set=function(e,t){for(var n=this.store,r=e.split("."),o=r.shift();0<r.length;)n=n[o]=n[o]||{},o=r.shift();n[o]=t},g.prototype.next=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})},g);function g(e){this.ngZone=e,this.store={},this.source=new t.BehaviorSubject({}),this.initSource()}y.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:y,deps:[{token:p.NgZone}],target:p.ɵɵFactoryTarget.Injectable}),y.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:y}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:y,decorators:[{type:s.Injectable}],ctorParameters:function(){return[{type:p.NgZone}]}});var N=function(e,t){this.sender=e,this.options=t},d=(_.prototype.notify=function(e){this.source.next(e)},_);function _(){this.source=new t.Subject,this.itemChanges=this.source.asObservable()}function v(e,t){for(var n in e){var r;e.hasOwnProperty(n)&&(void 0===(r=e[n].currentValue)?delete t[n]:t[n]=r)}}function K(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=new s.SimpleChange(null,e[t],!1));return n}d.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:d,deps:[],target:p.ɵɵFactoryTarget.Injectable}),d.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:d}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:d,decorators:[{type:s.Injectable}],ctorParameters:function(){return[]}});C.prototype.ngOnChanges=function(e){var t=this.configurationService.store;v(e,t),this.configurationService.push(t)},C.prototype.notifyChanges=function(e){this.ngOnChanges(K(e))},C.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},C.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new N(this,this.options))};var f=C;function C(e,t){var n=this;this.configurationService=e,this.collectionService=t,this.options={},this.subscription=e.changes.subscribe(function(e){n.options=e,n.notify()})}f.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,deps:[{token:y},{token:d}],target:p.ɵɵFactoryTarget.Directive}),f.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,usesOnChanges:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:y},{type:d}]}});I.prototype.ngOnDestroy=function(){this.store=void 0,this.notify()},I.prototype.ngOnChanges=function(e){v(e,this.store),this.notify()},I.prototype.notifyChanges=function(e){this.ngOnChanges(K(e))},I.prototype.markAsVisible=function(){this.store.visible=!0,this.notify()},I.prototype.notify=function(){this.configurationService.notify(new Z(this.configKey,this.store))};var D=I;function I(e,t){if(this.configKey=e,this.configurationService=t,this.store={},void 0===e)throw new Error("Configuration key not set")}D.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),D.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,usesOnChanges:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y}]}});h(k,q=D),Object.defineProperty(k.prototype,"layerTooltipTemplateRef",{get:function(){return this.layerTooltipTemplate},enumerable:!1,configurable:!0});var q,D=k;function k(e){var t=q.call(this,"tooltip",e)||this;return t.configurationService=e,t}D.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,deps:[{token:y}],target:p.ɵɵFactoryTarget.Component}),D.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-map-layer-tooltip",queries:[{propertyName:"layerTooltipTemplate",first:!0,predicate:s.TemplateRef,descendants:!0}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,selector:"kendo-map-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:y}]},propDecorators:{layerTooltipTemplate:[{type:s.ContentChild,args:[s.TemplateRef,{static:!1}]}]}});h(E,b=f),E.prototype.ngOnChanges=function(e){this.configurationService.store.type=this.type;var t=e.attribution;t&&this.sanitizer&&(t.currentValue=this.sanitizer.sanitize(s.SecurityContext.HTML,t.currentValue)),b.prototype.ngOnChanges.call(this,e)},Object.defineProperty(E.prototype,"layerTooltipTemplateRef",{get:function(){if(this.layerTooltip)return this.layerTooltip.layerTooltipTemplateRef},enumerable:!1,configurable:!0});var b,f=E;function E(e,t,n,r){var o=b.call(this,t,n)||this;return o.type=e,o.configurationService=t,o.collectionService=n,o.sanitizer=r,o}f.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),f.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,inputs:{attribution:"attribution",extent:"extent",maxZoom:"maxZoom",minZoom:"minZoom",opacity:"opacity",zIndex:"zIndex"},queries:[{propertyName:"layerTooltip",first:!0,predicate:D,descendants:!0}],usesInheritance:!0,usesOnChanges:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{attribution:[{type:s.Input}],extent:[{type:s.Input}],maxZoom:[{type:s.Input}],minZoom:[{type:s.Input}],opacity:[{type:s.Input}],zIndex:[{type:s.Input}],layerTooltip:[{type:s.ContentChild,args:[D,{static:!1}]}]}});h(U,B=f);var B,S=U;function U(e,t,n){var r=B.call(this,"bubble",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}S.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:S,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),S.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:S,selector:"kendo-map-bubble-layer",inputs:{data:"data",locationField:"locationField",valueField:"valueField",symbol:"symbol",style:"style",maxSize:"maxSize",minSize:"minSize"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return S})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:S,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return S})}],selector:"kendo-map-bubble-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],valueField:[{type:s.Input}],symbol:[{type:s.Input}],style:[{type:s.Input}],maxSize:[{type:s.Input}],minSize:[{type:s.Input}]}});h(G,H=i.InstanceObserver);var H,X=G;function G(e){e=H.call(this,e)||this;return e.handlerMap={hideTooltip:"onHideTooltip",init:"onInit",render:"onRender",showTooltip:"onShowTooltip"},e}var Q,z=function(e){this.sender=e},J=(z.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:z,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),z.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:z,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:z,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0}]}}),h(W,Q=z),W);function W(e,t){return Q.call(this,t)||this}h(ee,Y=z);var Y,$=ee;function ee(e,t){t=Y.call(this,t)||this;return t.location=e.location,t.originalEvent=e.originalEvent,t}h(re,te=z);var te,ne=re;function re(e,t){t=te.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(ae,oe=z);var oe,ie=ae;function ae(e,t){t=oe.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(w,se=z),w.prototype.preventDefault=function(){this.prevented=!0},w.prototype.isDefaultPrevented=function(){return this.prevented};var se,O=w;function w(){var e=se.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],A(arguments)))||this;return e.prevented=!1,e}O.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:O,deps:null,target:p.ɵɵFactoryTarget.Directive}),O.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:O,usesInheritance:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:O,decorators:[{type:s.Directive}]});h(ue,ce=O);var ce,pe=ue;function ue(e,t){t=ce.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(he,le=z);var le,me=he;function he(e,t){t=le.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}h(de,ye=z);var ye,ge=de;function de(e,t){t=ye.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}h(Ce,ve=z);var ve,fe=Ce;function Ce(e,t){return ve.call(this,t)||this}h(ke,De=z);var De,Ie=ke;function ke(e,t){t=De.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Se,be=z);var be,Ee=Se;function Se(e,t){t=be.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t}h(we,ze=z);var ze,Oe=we;function we(e,t){t=ze.call(this,t)||this;return t.dataItem=e.dataItem,t.layer=e.layer,t.group=e.group,t.properties=e.properties,t}h(Fe,Ve=z);var Ve,Te=Fe;function Fe(e,t){t=Ve.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Re,Me=z);var Me,Pe=Re;function Re(e,t){t=Me.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Le,xe=z);var xe,z=Le;function Le(e,t){t=xe.call(this,t)||this;return t.originalEvent=e.originalEvent,t}h(Ae,je=O);var je,O=Ae;function Ae(e,t){t=je.call(this,t)||this;return t.originalEvent=e.originalEvent,t}var Ze={beforeReset:J,click:$,markerActivate:ne,markerClick:ie,markerCreated:pe,panEnd:me,pan:ge,reset:fe,shapeClick:Ie,shapeCreated:Ee,shapeFeatureCreated:Oe,shapeMouseEnter:Te,shapeMouseLeave:Pe,zoomEnd:z,zoomStart:O},V=(Ne.prototype.create=function(e,t,n){if(Ze[e])return new Ze[e](t,n)},Ne);function Ne(){}var _e={name:"@progress/kendo-angular-map",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1651722342,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},T=(F.prototype.ngAfterViewInit=function(){var e=this;this.setDirection(),this.initConfig(),this.subscriptions=this.localizationService.changes.subscribe(function(){return e.setDirection()})},F.prototype.ngAfterViewChecked=function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})},F.prototype.ngOnChanges=function(e){var t=this.configurationService.store;v(e,t),t.popupSettings=null,this.configurationService.push(t)},F.prototype.resize=function(){this.instance},F.prototype.onResize=function(){this.autoResize&&this.resize()},Object.defineProperty(F.prototype,"canRender",{get:function(){return r.isDocumentAvailable()&&Boolean(this.surfaceElement)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"autoResize",{get:function(){return 0<this.resizeRateLimit},enumerable:!1,configurable:!0}),F.prototype.init=function(){var e,t;this.canRender&&(e=this.surfaceElement.nativeElement,t=new X(this),this.createInstance(e,t))},F.prototype.initConfig=function(){var t=this;r.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){t.optionsChange=t.configurationService.changes.pipe(j.tap(function(e){t.options=e})).subscribe(function(){t.instance?t.instance.setOptions(t.options):t.init()})})},F.prototype.createInstance=function(e,t){this.instance=new i.Map(e,this.options,this.theme,{observer:t,rtl:this.rtl,sender:this})},F.prototype.activeEmitter=function(e){e=this["click"===e?"mapClick":e];if(e&&e.emit&&r.hasObservers(e))return e},F.prototype.trigger=function(e,t){var n,r=this.activeEmitter(e);if(r)return n=this.instanceEventService.create(e,t,this),this.run(function(){r.emit(n)}),n.isDefaultPrevented&&n.isDefaultPrevented()},F.prototype.run=function(e,t,n){(t=void 0===t?!0:t)?(n&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),n&&this.detectChanges())},F.prototype.detectChanges=function(){this.destroyed||this.changeDetector.detectChanges()},F.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(F.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!1,configurable:!0}),F);function F(e,t,n,r,o,i,a){this.configurationService=e,this.instanceEventService=t,this.element=n,this.localizationService=r,this.changeDetector=o,this.ngZone=i,this.renderer=a,this.resizeRateLimit=10,this.zoom=3,this.beforeReset=new s.EventEmitter,this.mapClick=new s.EventEmitter,this.markerActivate=new s.EventEmitter,this.markerClick=new s.EventEmitter,this.markerCreated=new s.EventEmitter,this.panEnd=new s.EventEmitter,this.pan=new s.EventEmitter,this.reset=new s.EventEmitter,this.shapeClick=new s.EventEmitter,this.shapeCreated=new s.EventEmitter,this.shapeFeatureCreated=new s.EventEmitter,this.shapeMouseEnter=new s.EventEmitter,this.shapeMouseLeave=new s.EventEmitter,this.zoomStart=new s.EventEmitter,this.zoomEnd=new s.EventEmitter,this.theme=null,this.rtl=!1,L.validatePackage(_e)}T.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:T,deps:[{token:y},{token:V},{token:p.ElementRef},{token:l.LocalizationService},{token:p.ChangeDetectorRef},{token:p.NgZone},{token:p.Renderer2}],target:p.ɵɵFactoryTarget.Component}),T.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:T,selector:"kendo-map",inputs:{resizeRateLimit:"resizeRateLimit",center:"center",controls:"controls",minZoom:"minZoom",maxZoom:"maxZoom",minSize:"minSize",pannable:"pannable",wraparound:"wraparound",zoom:"zoom",zoomable:"zoomable"},outputs:{beforeReset:"beforeReset",mapClick:"mapClick",markerActivate:"markerActivate",markerClick:"markerClick",markerCreated:"markerCreated",panEnd:"panEnd",pan:"pan",reset:"reset",shapeClick:"shapeClick",shapeCreated:"shapeCreated",shapeFeatureCreated:"shapeFeatureCreated",shapeMouseEnter:"shapeMouseEnter",shapeMouseLeave:"shapeMouseLeave",zoomStart:"zoomStart",zoomEnd:"zoomEnd"},providers:[y,V,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.map"}],viewQueries:[{propertyName:"surfaceElement",first:!0,predicate:["surface"],descendants:!0,static:!0}],exportAs:["kendoChart"],usesOnChanges:!0,ngImport:p,template:'\n <div #surface></div>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:n.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:T,decorators:[{type:s.Component,args:[{selector:"kendo-map",changeDetection:s.ChangeDetectionStrategy.OnPush,exportAs:"kendoChart",providers:[y,V,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.map"}],template:'\n <div #surface></div>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:y},{type:V},{type:p.ElementRef},{type:l.LocalizationService},{type:p.ChangeDetectorRef},{type:p.NgZone},{type:p.Renderer2}]},propDecorators:{resizeRateLimit:[{type:s.Input}],center:[{type:s.Input}],controls:[{type:s.Input}],minZoom:[{type:s.Input}],maxZoom:[{type:s.Input}],minSize:[{type:s.Input}],pannable:[{type:s.Input}],wraparound:[{type:s.Input}],zoom:[{type:s.Input}],zoomable:[{type:s.Input}],beforeReset:[{type:s.Output}],mapClick:[{type:s.Output}],markerActivate:[{type:s.Output}],markerClick:[{type:s.Output}],markerCreated:[{type:s.Output}],panEnd:[{type:s.Output}],pan:[{type:s.Output}],reset:[{type:s.Output}],shapeClick:[{type:s.Output}],shapeCreated:[{type:s.Output}],shapeFeatureCreated:[{type:s.Output}],shapeMouseEnter:[{type:s.Output}],shapeMouseLeave:[{type:s.Output}],zoomStart:[{type:s.Output}],zoomEnd:[{type:s.Output}],surfaceElement:[{type:s.ViewChild,args:["surface",{static:!0}]}]}});M.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},M.prototype.ngAfterContentInit=function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})},M.prototype.processChanges=function(e){var t;!this.children||(t=this.children.toArray().indexOf(e.sender))<0||(this.items[t]=e.options,this.change())},M.prototype.readItems=function(){this.items=this.children.map(function(e){return e.options}),this.change()},M.prototype.change=function(){this.configurationService.notify(new Z(this.configKey,0===this.items.length?void 0:this.items))};n=M;function M(e,t,n){var r=this;this.configKey=e,this.configurationService=t,this.collectionService=n,this.items=[],this.subscription=n.itemChanges.subscribe(function(e){return r.processChanges(e)})}n.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:n,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),n.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:n,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:n,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y},{type:d}]}});h(qe,Ke=n);var Ke,o=qe;function qe(e,t){var n=Ke.call(this,"layers",e,t)||this;return n.configurationService=e,n.collectionService=t,n}o.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:o,deps:[{token:y},{token:d}],target:p.ɵɵFactoryTarget.Component}),o.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"kendo-map-layers",providers:[d],queries:[{propertyName:"children",predicate:f}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:o,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[d],selector:"kendo-map-layers",template:""}]}],ctorParameters:function(){return[{type:y},{type:d}]},propDecorators:{children:[{type:s.ContentChildren,args:[f]}]}});h(Ue,Be=f);var Be,P=Ue;function Ue(e,t,n){var r=Be.call(this,"marker",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}P.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:P,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),P.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:P,selector:"kendo-map-marker-layer",inputs:{data:"data",locationField:"locationField",titleField:"titleField",shape:"shape"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return P})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:P,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return P})}],selector:"kendo-map-marker-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],titleField:[{type:s.Input}],shape:[{type:s.Input}]}});h(Xe,He=f);var He,R=Xe;function Xe(e,t,n){var r=He.call(this,"shape",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}R.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:R,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),R.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:R,selector:"kendo-map-shape-layer",inputs:{data:"data",style:"style"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return R})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:R,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return R})}],selector:"kendo-map-shape-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],style:[{type:s.Input}]}});h(Qe,Ge=f);var Ge,x=Qe;function Qe(e,t,n){var r=Ge.call(this,"tile",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}x.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),x.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"kendo-map-tile-layer",inputs:{tileSize:"tileSize",subdomains:"subdomains",urlTemplate:"urlTemplate"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return x})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return x})}],selector:"kendo-map-tile-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{tileSize:[{type:s.Input}],subdomains:[{type:s.Input}],urlTemplate:[{type:s.Input}]}});n=[T,o,S,P,R,x,D],f=function(){};f.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,deps:[],target:p.ɵɵFactoryTarget.NgModule}),f.ɵmod=p.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,declarations:[T,o,S,P,R,x,D],imports:[a.CommonModule,r.ResizeSensorModule],exports:[T,o,S,P,R,x,D]}),f.ɵinj=p.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,imports:[[a.CommonModule,r.ResizeSensorModule]]}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,decorators:[{type:s.NgModule,args:[{declarations:[n],imports:[a.CommonModule,r.ResizeSensorModule],exports:[n]}]}]}),Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return i.Extent}}),Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return i.Location}}),e.BeforeResetEvent=J,e.BubbleLayerComponent=S,e.LayerTooltipComponent=D,e.LayersComponent=o,e.MapClickEvent=$,e.MapComponent=T,e.MapModule=f,e.MarkerActivateEvent=ne,e.MarkerClickEvent=ie,e.MarkerCreatedEvent=pe,e.MarkerLayerComponent=P,e.PanEndEvent=me,e.PanEvent=ge,e.ResetEvent=fe,e.ShapeClickEvent=Ie,e.ShapeCreatedEvent=Ee,e.ShapeFeatureCreatedEvent=Oe,e.ShapeLayerComponent=R,e.ShapeMouseEnterEvent=Te,e.ShapeMouseLeaveEvent=Pe,e.TileLayerComponent=x,e.ZoomEndEvent=z,e.ZoomStartEvent=O,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/platform-browser"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-charts"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("KendoAngularMap",["exports","@angular/core","rxjs","@angular/platform-browser","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-charts","@progress/kendo-licensing","rxjs/operators","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularMap={},e.ng.core,e.rxjs,e.ng.platformBrowser,e.KendoAngularCommon,e.KendoAngularL10N,e.KendoCharts,e.KendoLicensing,e.rxjs.operators,e.ng.common)}(this,function(e,s,t,n,r,o,i,L,j,a){"use strict";function c(n){if(n&&n.__esModule)return n;var r=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),r.default=n,Object.freeze(r)}var p=c(s),u=c(n),n=c(r),l=c(o),m=function(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;var Z=function(e,t){this.key=e,this.value=t},y=(g.prototype.initSource=function(){this.changes=this.source.asObservable()},g.prototype.push=function(e){this.store=e,this.next()},g.prototype.notify=function(e){this.set(e.key,e.value),this.next()},g.prototype.set=function(e,t){for(var n=this.store,r=e.split("."),o=r.shift();0<r.length;)n=n[o]=n[o]||{},o=r.shift();n[o]=t},g.prototype.next=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})},g);function g(e){this.ngZone=e,this.store={},this.source=new t.BehaviorSubject({}),this.initSource()}y.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:y,deps:[{token:p.NgZone}],target:p.ɵɵFactoryTarget.Injectable}),y.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:y}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:y,decorators:[{type:s.Injectable}],ctorParameters:function(){return[{type:p.NgZone}]}});var N=function(e,t){this.sender=e,this.options=t},d=(_.prototype.notify=function(e){this.source.next(e)},_);function _(){this.source=new t.Subject,this.itemChanges=this.source.asObservable()}function v(e,t){for(var n in e){var r;e.hasOwnProperty(n)&&(void 0===(r=e[n].currentValue)?delete t[n]:t[n]=r)}}function K(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=new s.SimpleChange(null,e[t],!1));return n}d.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:d,deps:[],target:p.ɵɵFactoryTarget.Injectable}),d.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:d}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:d,decorators:[{type:s.Injectable}],ctorParameters:function(){return[]}});C.prototype.ngOnChanges=function(e){var t=this.configurationService.store;v(e,t),this.configurationService.push(t)},C.prototype.notifyChanges=function(e){this.ngOnChanges(K(e))},C.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},C.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new N(this,this.options))};var f=C;function C(e,t){var n=this;this.configurationService=e,this.collectionService=t,this.options={},this.subscription=e.changes.subscribe(function(e){n.options=e,n.notify()})}f.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,deps:[{token:y},{token:d}],target:p.ɵɵFactoryTarget.Directive}),f.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,usesOnChanges:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:y},{type:d}]}});I.prototype.ngOnDestroy=function(){this.store=void 0,this.notify()},I.prototype.ngOnChanges=function(e){v(e,this.store),this.notify()},I.prototype.notifyChanges=function(e){this.ngOnChanges(K(e))},I.prototype.markAsVisible=function(){this.store.visible=!0,this.notify()},I.prototype.notify=function(){this.configurationService.notify(new Z(this.configKey,this.store))};var D=I;function I(e,t){if(this.configKey=e,this.configurationService=t,this.store={},void 0===e)throw new Error("Configuration key not set")}D.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),D.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,usesOnChanges:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y}]}});h(k,q=D),Object.defineProperty(k.prototype,"layerTooltipTemplateRef",{get:function(){return this.layerTooltipTemplate},enumerable:!1,configurable:!0});var q,D=k;function k(e){var t=q.call(this,"tooltip",e)||this;return t.configurationService=e,t}D.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,deps:[{token:y}],target:p.ɵɵFactoryTarget.Component}),D.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-map-layer-tooltip",queries:[{propertyName:"layerTooltipTemplate",first:!0,predicate:s.TemplateRef,descendants:!0}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:D,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,selector:"kendo-map-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:y}]},propDecorators:{layerTooltipTemplate:[{type:s.ContentChild,args:[s.TemplateRef,{static:!1}]}]}});h(E,b=f),E.prototype.ngOnChanges=function(e){this.configurationService.store.type=this.type;var t=e.attribution;t&&this.sanitizer&&(t.currentValue=this.sanitizer.sanitize(s.SecurityContext.HTML,t.currentValue)),b.prototype.ngOnChanges.call(this,e)},Object.defineProperty(E.prototype,"layerTooltipTemplateRef",{get:function(){if(this.layerTooltip)return this.layerTooltip.layerTooltipTemplateRef},enumerable:!1,configurable:!0});var b,f=E;function E(e,t,n,r){var o=b.call(this,t,n)||this;return o.type=e,o.configurationService=t,o.collectionService=n,o.sanitizer=r,o}f.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),f.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,inputs:{attribution:"attribution",extent:"extent",maxZoom:"maxZoom",minZoom:"minZoom",opacity:"opacity",zIndex:"zIndex"},queries:[{propertyName:"layerTooltip",first:!0,predicate:D,descendants:!0}],usesInheritance:!0,usesOnChanges:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{attribution:[{type:s.Input}],extent:[{type:s.Input}],maxZoom:[{type:s.Input}],minZoom:[{type:s.Input}],opacity:[{type:s.Input}],zIndex:[{type:s.Input}],layerTooltip:[{type:s.ContentChild,args:[D,{static:!1}]}]}});h(U,B=f);var B,S=U;function U(e,t,n){var r=B.call(this,"bubble",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}S.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:S,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),S.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:S,selector:"kendo-map-bubble-layer",inputs:{data:"data",locationField:"locationField",valueField:"valueField",symbol:"symbol",style:"style",maxSize:"maxSize",minSize:"minSize"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return S})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:S,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return S})}],selector:"kendo-map-bubble-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],valueField:[{type:s.Input}],symbol:[{type:s.Input}],style:[{type:s.Input}],maxSize:[{type:s.Input}],minSize:[{type:s.Input}]}});h(G,H=i.InstanceObserver);var H,X=G;function G(e){e=H.call(this,e)||this;return e.handlerMap={hideTooltip:"onHideTooltip",init:"onInit",render:"onRender",showTooltip:"onShowTooltip"},e}var Q,z=function(e){this.sender=e},J=(z.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:z,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),z.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:z,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:z,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0}]}}),h(W,Q=z),W);function W(e,t){return Q.call(this,t)||this}h(ee,Y=z);var Y,$=ee;function ee(e,t){t=Y.call(this,t)||this;return t.location=e.location,t.originalEvent=e.originalEvent,t}h(re,te=z);var te,ne=re;function re(e,t){t=te.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(ae,oe=z);var oe,ie=ae;function ae(e,t){t=oe.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(w,se=z),w.prototype.preventDefault=function(){this.prevented=!0},w.prototype.isDefaultPrevented=function(){return this.prevented};var se,O=w;function w(){var e=se.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],A(arguments)))||this;return e.prevented=!1,e}O.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:O,deps:null,target:p.ɵɵFactoryTarget.Directive}),O.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:O,usesInheritance:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:O,decorators:[{type:s.Directive}]});h(ue,ce=O);var ce,pe=ue;function ue(e,t){t=ce.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(he,le=z);var le,me=he;function he(e,t){t=le.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}h(de,ye=z);var ye,ge=de;function de(e,t){t=ye.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}h(Ce,ve=z);var ve,fe=Ce;function Ce(e,t){return ve.call(this,t)||this}h(ke,De=z);var De,Ie=ke;function ke(e,t){t=De.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Se,be=z);var be,Ee=Se;function Se(e,t){t=be.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.dataItem=e.shape.dataItem,t.location=e.shape.location,t}h(we,ze=z);var ze,Oe=we;function we(e,t){t=ze.call(this,t)||this;return t.dataItem=e.dataItem,t.layer=e.layer,t.group=e.group,t.properties=e.properties,t}h(Fe,Ve=z);var Ve,Te=Fe;function Fe(e,t){t=Ve.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Re,Me=z);var Me,Pe=Re;function Re(e,t){t=Me.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Le,xe=z);var xe,z=Le;function Le(e,t){t=xe.call(this,t)||this;return t.originalEvent=e.originalEvent,t}h(Ae,je=O);var je,O=Ae;function Ae(e,t){t=je.call(this,t)||this;return t.originalEvent=e.originalEvent,t}var Ze={beforeReset:J,click:$,markerActivate:ne,markerClick:ie,markerCreated:pe,panEnd:me,pan:ge,reset:fe,shapeClick:Ie,shapeCreated:Ee,shapeFeatureCreated:Oe,shapeMouseEnter:Te,shapeMouseLeave:Pe,zoomEnd:z,zoomStart:O},V=(Ne.prototype.create=function(e,t,n){if(Ze[e])return new Ze[e](t,n)},Ne);function Ne(){}var _e={name:"@progress/kendo-angular-map",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1651750442,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},T=(F.prototype.ngAfterViewInit=function(){var e=this;this.setDirection(),this.initConfig(),this.subscriptions=this.localizationService.changes.subscribe(function(){return e.setDirection()})},F.prototype.ngAfterViewChecked=function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})},F.prototype.ngOnChanges=function(e){var t=this.configurationService.store;v(e,t),t.popupSettings=null,this.configurationService.push(t)},F.prototype.resize=function(){this.instance},F.prototype.onResize=function(){this.autoResize&&this.resize()},Object.defineProperty(F.prototype,"canRender",{get:function(){return r.isDocumentAvailable()&&Boolean(this.surfaceElement)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"autoResize",{get:function(){return 0<this.resizeRateLimit},enumerable:!1,configurable:!0}),F.prototype.init=function(){var e,t;this.canRender&&(e=this.surfaceElement.nativeElement,t=new X(this),this.createInstance(e,t))},F.prototype.initConfig=function(){var t=this;r.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){t.optionsChange=t.configurationService.changes.pipe(j.tap(function(e){t.options=e})).subscribe(function(){t.instance?t.instance.setOptions(t.options):t.init()})})},F.prototype.createInstance=function(e,t){this.instance=new i.Map(e,this.options,this.theme,{observer:t,rtl:this.rtl,sender:this})},F.prototype.activeEmitter=function(e){e=this["click"===e?"mapClick":e];if(e&&e.emit&&r.hasObservers(e))return e},F.prototype.trigger=function(e,t){var n,r=this.activeEmitter(e);if(r)return n=this.instanceEventService.create(e,t,this),this.run(function(){r.emit(n)}),n.isDefaultPrevented&&n.isDefaultPrevented()},F.prototype.run=function(e,t,n){(t=void 0===t?!0:t)?(n&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),n&&this.detectChanges())},F.prototype.detectChanges=function(){this.destroyed||this.changeDetector.detectChanges()},F.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(F.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!1,configurable:!0}),F);function F(e,t,n,r,o,i,a){this.configurationService=e,this.instanceEventService=t,this.element=n,this.localizationService=r,this.changeDetector=o,this.ngZone=i,this.renderer=a,this.resizeRateLimit=10,this.zoom=3,this.beforeReset=new s.EventEmitter,this.mapClick=new s.EventEmitter,this.markerActivate=new s.EventEmitter,this.markerClick=new s.EventEmitter,this.markerCreated=new s.EventEmitter,this.panEnd=new s.EventEmitter,this.pan=new s.EventEmitter,this.reset=new s.EventEmitter,this.shapeClick=new s.EventEmitter,this.shapeCreated=new s.EventEmitter,this.shapeFeatureCreated=new s.EventEmitter,this.shapeMouseEnter=new s.EventEmitter,this.shapeMouseLeave=new s.EventEmitter,this.zoomStart=new s.EventEmitter,this.zoomEnd=new s.EventEmitter,this.theme=null,this.rtl=!1,L.validatePackage(_e)}T.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:T,deps:[{token:y},{token:V},{token:p.ElementRef},{token:l.LocalizationService},{token:p.ChangeDetectorRef},{token:p.NgZone},{token:p.Renderer2}],target:p.ɵɵFactoryTarget.Component}),T.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:T,selector:"kendo-map",inputs:{resizeRateLimit:"resizeRateLimit",center:"center",controls:"controls",minZoom:"minZoom",maxZoom:"maxZoom",minSize:"minSize",pannable:"pannable",wraparound:"wraparound",zoom:"zoom",zoomable:"zoomable"},outputs:{beforeReset:"beforeReset",mapClick:"mapClick",markerActivate:"markerActivate",markerClick:"markerClick",markerCreated:"markerCreated",panEnd:"panEnd",pan:"pan",reset:"reset",shapeClick:"shapeClick",shapeCreated:"shapeCreated",shapeFeatureCreated:"shapeFeatureCreated",shapeMouseEnter:"shapeMouseEnter",shapeMouseLeave:"shapeMouseLeave",zoomStart:"zoomStart",zoomEnd:"zoomEnd"},providers:[y,V,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.map"}],viewQueries:[{propertyName:"surfaceElement",first:!0,predicate:["surface"],descendants:!0,static:!0}],exportAs:["kendoChart"],usesOnChanges:!0,ngImport:p,template:'\n <div #surface></div>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:n.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:T,decorators:[{type:s.Component,args:[{selector:"kendo-map",changeDetection:s.ChangeDetectionStrategy.OnPush,exportAs:"kendoChart",providers:[y,V,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.map"}],template:'\n <div #surface></div>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:y},{type:V},{type:p.ElementRef},{type:l.LocalizationService},{type:p.ChangeDetectorRef},{type:p.NgZone},{type:p.Renderer2}]},propDecorators:{resizeRateLimit:[{type:s.Input}],center:[{type:s.Input}],controls:[{type:s.Input}],minZoom:[{type:s.Input}],maxZoom:[{type:s.Input}],minSize:[{type:s.Input}],pannable:[{type:s.Input}],wraparound:[{type:s.Input}],zoom:[{type:s.Input}],zoomable:[{type:s.Input}],beforeReset:[{type:s.Output}],mapClick:[{type:s.Output}],markerActivate:[{type:s.Output}],markerClick:[{type:s.Output}],markerCreated:[{type:s.Output}],panEnd:[{type:s.Output}],pan:[{type:s.Output}],reset:[{type:s.Output}],shapeClick:[{type:s.Output}],shapeCreated:[{type:s.Output}],shapeFeatureCreated:[{type:s.Output}],shapeMouseEnter:[{type:s.Output}],shapeMouseLeave:[{type:s.Output}],zoomStart:[{type:s.Output}],zoomEnd:[{type:s.Output}],surfaceElement:[{type:s.ViewChild,args:["surface",{static:!0}]}]}});M.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},M.prototype.ngAfterContentInit=function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})},M.prototype.processChanges=function(e){var t;!this.children||(t=this.children.toArray().indexOf(e.sender))<0||(this.items[t]=e.options,this.change())},M.prototype.readItems=function(){this.items=this.children.map(function(e){return e.options}),this.change()},M.prototype.change=function(){this.configurationService.notify(new Z(this.configKey,0===this.items.length?void 0:this.items))};n=M;function M(e,t,n){var r=this;this.configKey=e,this.configurationService=t,this.collectionService=n,this.items=[],this.subscription=n.itemChanges.subscribe(function(e){return r.processChanges(e)})}n.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:n,deps:"invalid",target:p.ɵɵFactoryTarget.Directive}),n.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:n,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:n,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y},{type:d}]}});h(qe,Ke=n);var Ke,o=qe;function qe(e,t){var n=Ke.call(this,"layers",e,t)||this;return n.configurationService=e,n.collectionService=t,n}o.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:o,deps:[{token:y},{token:d}],target:p.ɵɵFactoryTarget.Component}),o.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"kendo-map-layers",providers:[d],queries:[{propertyName:"children",predicate:f}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:o,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[d],selector:"kendo-map-layers",template:""}]}],ctorParameters:function(){return[{type:y},{type:d}]},propDecorators:{children:[{type:s.ContentChildren,args:[f]}]}});h(Ue,Be=f);var Be,P=Ue;function Ue(e,t,n){var r=Be.call(this,"marker",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}P.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:P,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),P.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:P,selector:"kendo-map-marker-layer",inputs:{data:"data",locationField:"locationField",titleField:"titleField",shape:"shape"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return P})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:P,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return P})}],selector:"kendo-map-marker-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],titleField:[{type:s.Input}],shape:[{type:s.Input}]}});h(Xe,He=f);var He,R=Xe;function Xe(e,t,n){var r=He.call(this,"shape",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}R.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:R,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),R.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:R,selector:"kendo-map-shape-layer",inputs:{data:"data",style:"style"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return R})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:R,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return R})}],selector:"kendo-map-shape-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],style:[{type:s.Input}]}});h(Qe,Ge=f);var Ge,x=Qe;function Qe(e,t,n){var r=Ge.call(this,"tile",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}x.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,deps:[{token:y},{token:d},{token:u.DomSanitizer}],target:p.ɵɵFactoryTarget.Component}),x.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"kendo-map-tile-layer",inputs:{tileSize:"tileSize",subdomains:"subdomains",urlTemplate:"urlTemplate"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return x})}],usesInheritance:!0,ngImport:p,template:"",isInline:!0,changeDetection:p.ChangeDetectionStrategy.OnPush}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return x})}],selector:"kendo-map-tile-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:d},{type:u.DomSanitizer}]},propDecorators:{tileSize:[{type:s.Input}],subdomains:[{type:s.Input}],urlTemplate:[{type:s.Input}]}});n=[T,o,S,P,R,x,D],f=function(){};f.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,deps:[],target:p.ɵɵFactoryTarget.NgModule}),f.ɵmod=p.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,declarations:[T,o,S,P,R,x,D],imports:[a.CommonModule,r.ResizeSensorModule],exports:[T,o,S,P,R,x,D]}),f.ɵinj=p.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,imports:[[a.CommonModule,r.ResizeSensorModule]]}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:f,decorators:[{type:s.NgModule,args:[{declarations:[n],imports:[a.CommonModule,r.ResizeSensorModule],exports:[n]}]}]}),Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return i.Extent}}),Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return i.Location}}),e.BeforeResetEvent=J,e.BubbleLayerComponent=S,e.LayerTooltipComponent=D,e.LayersComponent=o,e.MapClickEvent=$,e.MapComponent=T,e.MapModule=f,e.MarkerActivateEvent=ne,e.MarkerClickEvent=ie,e.MarkerCreatedEvent=pe,e.MarkerLayerComponent=P,e.PanEndEvent=me,e.PanEvent=ge,e.ResetEvent=fe,e.ShapeClickEvent=Ie,e.ShapeCreatedEvent=Ee,e.ShapeFeatureCreatedEvent=Oe,e.ShapeLayerComponent=R,e.ShapeMouseEnterEvent=Te,e.ShapeMouseLeaveEvent=Pe,e.TileLayerComponent=x,e.ZoomEndEvent=z,e.ZoomStartEvent=O,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-map',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1651750442,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -17,10 +17,15 @@ export declare class ShapeCreatedEvent extends BaseEvent implements MapShapeCrea
|
|
|
17
17
|
/**
|
|
18
18
|
* The shape instance.
|
|
19
19
|
*/
|
|
20
|
-
shape: Element
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
shape: Element;
|
|
21
|
+
/**
|
|
22
|
+
* The original data item for this Shape.
|
|
23
|
+
*/
|
|
24
|
+
dataItem: any;
|
|
25
|
+
/**
|
|
26
|
+
* The shape location
|
|
27
|
+
*/
|
|
28
|
+
location: Location;
|
|
24
29
|
/**
|
|
25
30
|
* @hidden
|
|
26
31
|
*/
|
|
@@ -554,6 +554,8 @@ class ShapeCreatedEvent extends BaseEvent {
|
|
|
554
554
|
super(sender);
|
|
555
555
|
this.layer = e.layer;
|
|
556
556
|
this.shape = e.shape;
|
|
557
|
+
this.dataItem = e.shape.dataItem;
|
|
558
|
+
this.location = e.shape.location;
|
|
557
559
|
}
|
|
558
560
|
}
|
|
559
561
|
|
|
@@ -672,7 +674,7 @@ const packageMetadata = {
|
|
|
672
674
|
name: '@progress/kendo-angular-map',
|
|
673
675
|
productName: 'Kendo UI for Angular',
|
|
674
676
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
675
|
-
publishDate:
|
|
677
|
+
publishDate: 1651750442,
|
|
676
678
|
version: '',
|
|
677
679
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
678
680
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-map",
|
|
3
|
-
"version": "0.1.1
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Kendo UI Map for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"friendlyName": "Map"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@progress/kendo-charts": "
|
|
28
|
+
"@progress/kendo-charts": "^1.23.4",
|
|
29
29
|
"@progress/kendo-schematics": "^3.0.0",
|
|
30
30
|
"tslib": "^2.3.1"
|
|
31
31
|
},
|