@progress/kendo-angular-map 0.1.1 → 0.2.0-dev.202206021322
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.
- package/bundles/kendo-angular-map.umd.js +1 -1
- package/common/has-parent.d.ts +8 -0
- package/esm2015/common/has-parent.js +14 -0
- package/esm2015/main.js +2 -0
- package/esm2015/map.component.js +74 -4
- package/esm2015/map.directives.js +14 -4
- package/esm2015/map.module.js +16 -10
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/tooltip/base-tooltip.js +92 -0
- package/esm2015/tooltip/body-factory.js +14 -0
- package/esm2015/tooltip/bubble-tooltip-template.directive.js +31 -0
- package/esm2015/tooltip/marker-tooltip-template.directive.js +30 -0
- package/esm2015/tooltip/popup-settings.interface.js +5 -0
- package/esm2015/tooltip/shape-tooltip-template.directive.js +30 -0
- package/esm2015/tooltip/tooltip-popup.component.js +114 -0
- package/esm2015/tooltip/tooltip-template.service.js +16 -0
- package/esm2015/tooltip/tooltip.component.js +49 -0
- package/esm2015/tooltip.js +9 -0
- package/fesm2015/kendo-angular-map.js +419 -13
- package/main.d.ts +2 -0
- package/map.component.d.ts +22 -3
- package/map.directives.d.ts +6 -1
- package/map.module.d.ts +16 -10
- package/package.json +2 -2
- package/tooltip/base-tooltip.d.ts +31 -0
- package/tooltip/body-factory.d.ts +9 -0
- package/tooltip/bubble-tooltip-template.directive.d.ts +22 -0
- package/tooltip/marker-tooltip-template.directive.d.ts +21 -0
- package/tooltip/popup-settings.interface.d.ts +18 -0
- package/tooltip/shape-tooltip-template.directive.d.ts +21 -0
- package/tooltip/tooltip-popup.component.d.ts +37 -0
- package/tooltip/tooltip-template.service.d.ts +16 -0
- package/tooltip/tooltip.component.d.ts +31 -0
- package/tooltip.d.ts +9 -0
|
@@ -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.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})});
|
|
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("@progress/kendo-angular-popup"),require("@angular/common"),require("@progress/kendo-angular-tooltip")):"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","@progress/kendo-angular-popup","@angular/common","@progress/kendo-angular-tooltip"],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.i1,e.ng.common,e.kendoAngularTooltip)}(this,function(e,s,L,t,n,r,o,j,N,i,a,A){"use strict";function p(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 c=p(s),l=p(t),t=p(n),u=p(r),m=p(i),g=p(a),Z=function(e,t){return(Z=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}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function _(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 q=function(e,t){this.key=e,this.value=t},y=(d.prototype.initSource=function(){this.changes=this.source.asObservable()},d.prototype.push=function(e){this.store=e,this.next()},d.prototype.notify=function(e){this.set(e.key,e.value),this.next()},d.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},d.prototype.next=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})},d);function d(e){this.ngZone=e,this.store={},this.source=new L.BehaviorSubject({}),this.initSource()}y.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:y,deps:[{token:c.NgZone}],target:c.ɵɵFactoryTarget.Injectable}),y.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:y}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:y,decorators:[{type:s.Injectable}],ctorParameters:function(){return[{type:c.NgZone}]}});var K=function(e,t){this.sender=e,this.options=t},v=(B.prototype.notify=function(e){this.source.next(e)},B);function B(){this.source=new L.Subject,this.itemChanges=this.source.asObservable()}function U(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 H(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=new s.SimpleChange(null,e[t],!1));return n}v.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:v,deps:[],target:c.ɵɵFactoryTarget.Injectable}),v.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:v}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:v,decorators:[{type:s.Injectable}],ctorParameters:function(){return[]}});C.prototype.ngOnChanges=function(e){var t=this.configurationService.store;U(e,t),this.configurationService.push(t)},C.prototype.notifyChanges=function(e){this.ngOnChanges(H(e))},C.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},C.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new K(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=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,deps:[{token:y},{token:v}],target:c.ɵɵFactoryTarget.Directive}),f.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,usesOnChanges:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:y},{type:v}]}});I.prototype.ngOnDestroy=function(){this.store=void 0,this.notify()},I.prototype.ngOnChanges=function(e){U(e,this.store),this.notify()},I.prototype.notifyChanges=function(e){this.ngOnChanges(H(e))},I.prototype.markAsVisible=function(){this.store.visible=!0,this.notify()},I.prototype.notify=function(){this.configurationService.notify(new q(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=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,deps:"invalid",target:c.ɵɵFactoryTarget.Directive}),D.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,usesOnChanges:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y}]}});h(X,Q=D),Object.defineProperty(X.prototype,"layerTooltipTemplateRef",{get:function(){return this.layerTooltipTemplate},enumerable:!1,configurable:!0});var Q,k=X;function X(e){var t=Q.call(this,"tooltip",e)||this;return t.configurationService=e,t}k.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,deps:[{token:y}],target:c.ɵɵFactoryTarget.Component}),k.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:k,selector:"kendo-map-layer-tooltip",queries:[{propertyName:"layerTooltipTemplate",first:!0,predicate:s.TemplateRef,descendants:!0}],usesInheritance:!0,ngImport:c,template:"",isInline:!0,changeDetection:c.ChangeDetectionStrategy.OnPush}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,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(G,$=f),G.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)),$.prototype.ngOnChanges.call(this,e)},Object.defineProperty(G.prototype,"layerTooltipTemplateRef",{get:function(){if(this.layerTooltip)return this.layerTooltip.layerTooltipTemplateRef},enumerable:!1,configurable:!0});var $,f=G;function G(e,t,n,r){var o=$.call(this,t,n)||this;return o.type=e,o.configurationService=t,o.collectionService=n,o.sanitizer=r,o}f.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,deps:"invalid",target:c.ɵɵFactoryTarget.Directive}),f.ɵdir=c.ɵɵ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:k,descendants:!0}],usesInheritance:!0,usesOnChanges:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y},{type:v},{type:l.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:[k,{static:!1}]}]}});h(W,J=f);var J,b=W;function W(e,t,n){var r=J.call(this,"bubble",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}function Y(e,t){for(var n=e;n&&n!==t;)n=n.parentNode;return!!n}b.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b,deps:[{token:y},{token:v},{token:l.DomSanitizer}],target:c.ɵɵFactoryTarget.Component}),b.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,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 b})}],usesInheritance:!0,ngImport:c,template:"",isInline:!0,changeDetection:c.ChangeDetectionStrategy.OnPush}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return b})}],selector:"kendo-map-bubble-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:v},{type:l.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(ne,ee=o.InstanceObserver);var ee,te=ne;function ne(e){e=ee.call(this,e)||this;return e.handlerMap={hideTooltip:"onHideTooltip",init:"onInit",render:"onRender",showTooltip:"onShowTooltip"},e}var re,S=function(e){this.sender=e},oe=(S.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:S,deps:"invalid",target:c.ɵɵFactoryTarget.Directive}),S.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:S,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:S,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0}]}}),h(ie,re=S),ie);function ie(e,t){return re.call(this,t)||this}h(pe,ae=S);var ae,se=pe;function pe(e,t){t=ae.call(this,t)||this;return t.location=e.location,t.originalEvent=e.originalEvent,t}h(ue,ce=S);var ce,le=ue;function ue(e,t){t=ce.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(he,me=S);var me,ge=he;function he(e,t){t=me.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(de,ye=S),de.prototype.preventDefault=function(){this.prevented=!0},de.prototype.isDefaultPrevented=function(){return this.prevented};var ye,T=de;function de(){var e=ye.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))}([],_(arguments)))||this;return e.prevented=!1,e}T.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,deps:null,target:c.ɵɵFactoryTarget.Directive}),T.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:T,usesInheritance:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,decorators:[{type:s.Directive}]});h(Ce,ve=T);var ve,fe=Ce;function Ce(e,t){t=ve.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}h(ke,De=S);var De,Ie=ke;function ke(e,t){t=De.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}h(Te,be=S);var be,Se=Te;function Te(e,t){t=be.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}h(ze,Ee=S);var Ee,Oe=ze;function ze(e,t){return Ee.call(this,t)||this}h(Me,Re=S);var Re,Ve=Me;function Me(e,t){t=Re.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Fe,we=S);var we,Pe=Fe;function Fe(e,t){t=we.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(je,xe=S);var xe,Le=je;function je(e,t){t=xe.call(this,t)||this;return t.dataItem=e.dataItem,t.layer=e.layer,t.group=e.group,t.properties=e.properties,t}h(Ze,Ne=S);var Ne,Ae=Ze;function Ze(e,t){t=Ne.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Ke,_e=S);var _e,qe=Ke;function Ke(e,t){t=_e.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}h(Ue,Be=S);var Be,S=Ue;function Ue(e,t){t=Be.call(this,t)||this;return t.originalEvent=e.originalEvent,t}h(Qe,He=T);var He,T=Qe;function Qe(e,t){t=He.call(this,t)||this;return t.originalEvent=e.originalEvent,t}var Xe={beforeReset:oe,click:se,markerActivate:le,markerClick:ge,markerCreated:fe,panEnd:Ie,pan:Se,reset:Oe,shapeClick:Ve,shapeCreated:Pe,shapeFeatureCreated:Le,shapeMouseEnter:Ae,shapeMouseLeave:qe,zoomEnd:S,zoomStart:T},$e=(Ge.prototype.create=function(e,t,n){if(Xe[e])return new Xe[e](t,n)},Ge);function Ge(){}var Je={name:"@progress/kendo-angular-map",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1654176122,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"},We={horizontal:"fit",vertical:"fit"},E=(Object.defineProperty(O.prototype,"active",{get:function(){return null!==this.popupRef},enumerable:!1,configurable:!0}),O.prototype.show=function(e){e=this.position(e.anchor);e.top-=5,this.popupRef?this.popupRef.popup.instance.offset=e:(this.popupRef=this.popupService.open(Object.assign({offset:e,popupAlign:{vertical:"bottom",horizontal:"center"},animate:this.animate,content:this.templateRef,collision:We,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit())},O.prototype.hide=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},O.prototype.onInit=function(){},O.prototype.ngOnDestroy=function(){this.hide()},O.prototype.position=function(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;var t=this.popupSettings.appendTo.element.nativeElement,n=t.getBoundingClientRect(),t=this.scrollOffset(t),r=t.scrollLeft,t=t.scrollTop;return{left:e.left-n.left-r,top:e.top-n.top-t}},O.prototype.scrollOffset=function(e){if(!e)return null;for(var t=e.scrollLeft,n=e.scrollTop,r=e.parentElement;r;)t+=r.scrollLeft,n+=r.scrollTop,r=r.parentElement;return{scrollLeft:t,scrollTop:n}},O);function O(e,t){this.popupService=e,this.localizationService=t,this.animate=!0,this.style={position:"relative"},this.popupRef=null}function Ye(){if(n.isDocumentAvailable())return new s.ElementRef(document.body)}E.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,deps:[{token:m.PopupService},{token:u.LocalizationService}],target:c.ɵɵFactoryTarget.Directive}),E.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:m.PopupService},{type:u.LocalizationService}]}});var et,z=function(){},E=(z.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:z,deps:[],target:c.ɵɵFactoryTarget.Injectable}),z.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:z}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:z,decorators:[{type:s.Injectable}]}),h(R,et=E),R.prototype.show=function(e){var t;this.tooltipTemplateRef=this.templateService[e.type+"Template"],this.tooltipTemplateRef&&(this.popupClasses=Object.assign(((t={"k-tooltip":!0,"k-map-tooltip":!0})[e.className]=Boolean(e.className),t),this.classNames),this.tooltipContext=e,et.prototype.show.call(this,e))},R.prototype.containsElement=function(e){if(this.popupRef)return Y(e,this.popupRef.popupElement)},R.prototype.onInit=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.mouseleaveSubscription=t.popupRef.popupElement.addEventListener("mouseleave",function(e){t.leave.emit(e)})}),this.popupRef.popupElement.classList.add(this.wrapperClass)},R.prototype.hide=function(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),this.tooltipTemplateRef=null,et.prototype.hide.call(this)},R);function R(e,t,n,r){var o=et.call(this,e,n)||this;return o.popupService=e,o.templateService=t,o.localizationService=n,o.ngZone=r,o.tooltipContext={},o.animate=!0,o.wrapperClass="k-tooltip-wrapper",o.leave=new s.EventEmitter,o.popupClasses={},o}E.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,deps:[{token:m.PopupService},{token:z},{token:u.LocalizationService},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Component}),E.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"kendo-map-tooltip-popup",inputs:{animate:"animate",classNames:"classNames",popupSettings:"popupSettings",wrapperClass:"wrapperClass"},outputs:{leave:"leave"},providers:[i.PopupService,{provide:i.POPUP_CONTAINER,useFactory:Ye}],viewQueries:[{propertyName:"templateRef",first:!0,predicate:["content"],descendants:!0,static:!0}],usesInheritance:!0,ngImport:c,template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <div class="k-tooltip-content">\n <ng-template [ngTemplateOutlet]="tooltipTemplateRef"\n [ngTemplateOutletContext]="tooltipContext">\n </ng-template>\n </div>\n </div>\n </ng-template>\n ',isInline:!0,directives:[{type:g.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:g.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:g.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,decorators:[{type:s.Component,args:[{providers:[i.PopupService,{provide:i.POPUP_CONTAINER,useFactory:Ye}],selector:"kendo-map-tooltip-popup",template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <div class="k-tooltip-content">\n <ng-template [ngTemplateOutlet]="tooltipTemplateRef"\n [ngTemplateOutletContext]="tooltipContext">\n </ng-template>\n </div>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:m.PopupService},{type:z},{type:u.LocalizationService},{type:c.NgZone}]},propDecorators:{templateRef:[{type:s.ViewChild,args:["content",{static:!0}]}],animate:[{type:s.Input}],classNames:[{type:s.Input}],popupSettings:[{type:s.Input}],wrapperClass:[{type:s.Input}],leave:[{type:s.Output}]}});V.prototype.ngAfterViewInit=function(){var t=this;this.canRender&&this.ngZone.runOutsideAngular(function(){var e=t.renderer.listen(t.surfaceElement.nativeElement,"mouseleave",t.mapMouseleave.bind(t));t.domSubscriptions=function(){e()}}),this.setDirection(),this.initConfig(),this.subscriptions=this.localizationService.changes.subscribe(function(){return t.setDirection()})},V.prototype.ngAfterViewChecked=function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})},V.prototype.ngOnChanges=function(e){var t=this.configurationService.store;U(e,t),t.popupSettings=null,this.configurationService.push(t)},V.prototype.ngOnDestroy=function(){this.destroyed=!0,this.optionsChange&&this.optionsChange.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe()},V.prototype.resize=function(){this.instance},V.prototype.onResize=function(){this.autoResize&&this.resize()},Object.defineProperty(V.prototype,"canRender",{get:function(){return n.isDocumentAvailable()&&Boolean(this.surfaceElement)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"autoResize",{get:function(){return 0<this.resizeRateLimit},enumerable:!1,configurable:!0}),V.prototype.init=function(){var e,t;this.canRender&&(e=this.surfaceElement.nativeElement,t=new te(this),this.createInstance(e,t))},V.prototype.initConfig=function(){var t=this;n.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){t.optionsChange=t.configurationService.changes.pipe(N.tap(function(e){t.options=e})).subscribe(function(){t.instance?t.instance.setOptions(t.options):t.init()})})},V.prototype.createInstance=function(e,t){this.instance=new o.Map(e,this.options,this.theme,{observer:t,rtl:this.rtl,sender:this})},V.prototype.activeEmitter=function(e){e=this["click"===e?"mapClick":e];if(e&&e.emit&&n.hasObservers(e))return e},V.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()},V.prototype.run=function(e,t,n){(t=void 0===t?!0:t)?(n&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),n&&this.detectChanges())},V.prototype.detectChanges=function(){this.destroyed||this.changeDetector.detectChanges()},V.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(V.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!1,configurable:!0}),V.prototype.onShowTooltip=function(e){var t=this;this.run(function(){t.tooltipInstance.show(e)},!0,!0)},V.prototype.onHideTooltip=function(){var e=this;this.run(function(){e.tooltipInstance.hide()},!0,!0)},V.prototype.tooltipMouseleave=function(e){var e=e.relatedTarget,t=this.element.nativeElement;!this.instance||e&&Y(e,t)||this.tooltipInstance.hide()},V.prototype.mapMouseleave=function(e){var e=e.relatedTarget,t=this.element.nativeElement;!this.instance||e&&(this.tooltipInstance.containsElement(e)||Y(e,t))||this.tooltipInstance.hide()};g=V;function V(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,j.validatePackage(Je)}g.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:g,deps:[{token:y},{token:$e},{token:c.ElementRef},{token:u.LocalizationService},{token:c.ChangeDetectorRef},{token:c.NgZone},{token:c.Renderer2}],target:c.ɵɵFactoryTarget.Component}),g.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:g,selector:"kendo-map",inputs:{resizeRateLimit:"resizeRateLimit",center:"center",controls:"controls",minZoom:"minZoom",maxZoom:"maxZoom",minSize:"minSize",pannable:"pannable",popupSettings:"popupSettings",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,$e,r.LocalizationService,z,{provide:r.L10N_PREFIX,useValue:"kendo.map"}],viewQueries:[{propertyName:"surfaceElement",first:!0,predicate:["surface"],descendants:!0,static:!0},{propertyName:"tooltipInstance",first:!0,predicate:E,descendants:!0,static:!0}],exportAs:["kendoChart"],usesOnChanges:!0,ngImport:c,template:'\n <div #surface></div>\n <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-map-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:E,selector:"kendo-map-tooltip-popup",inputs:["animate","classNames","popupSettings","wrapperClass"],outputs:["leave"]},{type:t.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:c.ChangeDetectionStrategy.OnPush}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:g,decorators:[{type:s.Component,args:[{selector:"kendo-map",changeDetection:s.ChangeDetectionStrategy.OnPush,exportAs:"kendoChart",providers:[y,$e,r.LocalizationService,z,{provide:r.L10N_PREFIX,useValue:"kendo.map"}],template:'\n <div #surface></div>\n <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-map-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:y},{type:$e},{type:c.ElementRef},{type:u.LocalizationService},{type:c.ChangeDetectorRef},{type:c.NgZone},{type:c.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}],popupSettings:[{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}]}],tooltipInstance:[{type:s.ViewChild,args:[E,{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 q(this.configKey,0===this.items.length?void 0:this.items))};i=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)})}i.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,deps:"invalid",target:c.ɵɵFactoryTarget.Directive}),i.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:y},{type:v}]}});h(nt,tt=i);var tt,t=nt;function nt(e,t){var n=tt.call(this,"layers",e,t)||this;return n.configurationService=e,n.collectionService=t,n}t.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,deps:[{token:y},{token:v}],target:c.ɵɵFactoryTarget.Component}),t.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"kendo-map-layers",providers:[v],queries:[{propertyName:"children",predicate:f}],usesInheritance:!0,ngImport:c,template:"",isInline:!0,changeDetection:c.ChangeDetectionStrategy.OnPush}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[v],selector:"kendo-map-layers",template:""}]}],ctorParameters:function(){return[{type:y},{type:v}]},propDecorators:{children:[{type:s.ContentChildren,args:[f]}]}});h(ot,rt=f);var rt,w=ot;function ot(e,t,n){var r=rt.call(this,"marker",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}w.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w,deps:[{token:y},{token:v},{token:l.DomSanitizer}],target:c.ɵɵFactoryTarget.Component}),w.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-map-marker-layer",inputs:{data:"data",locationField:"locationField",titleField:"titleField",shape:"shape"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return w})}],usesInheritance:!0,ngImport:c,template:"",isInline:!0,changeDetection:c.ChangeDetectionStrategy.OnPush}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return w})}],selector:"kendo-map-marker-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:v},{type:l.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],titleField:[{type:s.Input}],shape:[{type:s.Input}]}});h(at,it=f);var it,P=at;function at(e,t,n){var r=it.call(this,"shape",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}P.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:P,deps:[{token:y},{token:v},{token:l.DomSanitizer}],target:c.ɵɵFactoryTarget.Component}),P.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:P,selector:"kendo-map-shape-layer",inputs:{data:"data",style:"style"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return P})}],usesInheritance:!0,ngImport:c,template:"",isInline:!0,changeDetection:c.ChangeDetectionStrategy.OnPush}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:P,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return P})}],selector:"kendo-map-shape-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:v},{type:l.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],style:[{type:s.Input}]}});h(pt,st=f);var st,F=pt;function pt(e,t,n){var r=st.call(this,"tile",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}F.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:F,deps:[{token:y},{token:v},{token:l.DomSanitizer}],target:c.ɵɵFactoryTarget.Component}),F.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-map-tile-layer",inputs:{tileSize:"tileSize",subdomains:"subdomains",urlTemplate:"urlTemplate"},providers:[y,{provide:f,useExisting:s.forwardRef(function(){return F})}],usesInheritance:!0,ngImport:c,template:"",isInline:!0,changeDetection:c.ChangeDetectionStrategy.OnPush}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:F,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y,{provide:f,useExisting:s.forwardRef(function(){return F})}],selector:"kendo-map-tile-layer",template:""}]}],ctorParameters:function(){return[{type:y},{type:v},{type:l.DomSanitizer}]},propDecorators:{tileSize:[{type:s.Input}],subdomains:[{type:s.Input}],urlTemplate:[{type:s.Input}]}});var ct,r=function(e){this.templateRef=e},i=(r.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:r,deps:[{token:c.TemplateRef,optional:!0}],target:c.ɵɵFactoryTarget.Directive}),r.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:r,selector:"[kendoMapBubbleTooltipTemplate]",ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:r,decorators:[{type:s.Directive,args:[{selector:"[kendoMapBubbleTooltipTemplate]"}]}],ctorParameters:function(){return[{type:c.TemplateRef,decorators:[{type:s.Optional}]}]}}),function(e){this.templateRef=e}),f=(i.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,deps:[{token:c.TemplateRef,optional:!0}],target:c.ɵɵFactoryTarget.Directive}),i.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,selector:"[kendoMapMarkerTooltipTemplate]",ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,decorators:[{type:s.Directive,args:[{selector:"[kendoMapMarkerTooltipTemplate]"}]}],ctorParameters:function(){return[{type:c.TemplateRef,decorators:[{type:s.Optional}]}]}}),function(e){this.templateRef=e}),D=(f.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,deps:[{token:c.TemplateRef,optional:!0}],target:c.ɵɵFactoryTarget.Directive}),f.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"[kendoMapShapeTooltipTemplate]",ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,decorators:[{type:s.Directive,args:[{selector:"[kendoMapShapeTooltipTemplate]"}]}],ctorParameters:function(){return[{type:c.TemplateRef,decorators:[{type:s.Optional}]}]}}),h(lt,ct=D),lt.prototype.ngAfterContentChecked=function(){var e;this.templateService.markerTemplate=null==(e=this.markerTooltipTemplate)?void 0:e.templateRef,this.templateService.shapeTemplate=null==(e=this.shapeTooltipTemplate)?void 0:e.templateRef,this.templateService.bubbleTemplate=null==(e=this.bubbleTooltipTemplate)?void 0:e.templateRef},lt);function lt(e,t){var n=ct.call(this,"tooltip",e)||this;return n.configurationService=e,n.templateService=t,n.markAsVisible(),n}D.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,deps:[{token:y},{token:z}],target:c.ɵɵFactoryTarget.Component}),D.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-map-tooltip",inputs:{visible:"visible"},queries:[{propertyName:"markerTooltipTemplate",first:!0,predicate:i,descendants:!0},{propertyName:"shapeTooltipTemplate",first:!0,predicate:f,descendants:!0},{propertyName:"bubbleTooltipTemplate",first:!0,predicate:r,descendants:!0}],usesInheritance:!0,ngImport:c,template:"",isInline:!0}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,decorators:[{type:s.Component,args:[{selector:"kendo-map-tooltip",template:""}]}],ctorParameters:function(){return[{type:y},{type:z}]},propDecorators:{visible:[{type:s.Input}],markerTooltipTemplate:[{type:s.ContentChild,args:[i,{static:!1}]}],shapeTooltipTemplate:[{type:s.ContentChild,args:[f,{static:!1}]}],bubbleTooltipTemplate:[{type:s.ContentChild,args:[r,{static:!1}]}]}});var ut=[b,r,t,k,g,w,i,P,f,F,D,E],x=function(){};x.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,deps:[],target:c.ɵɵFactoryTarget.NgModule}),x.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,declarations:[b,r,t,k,g,w,i,P,f,F,D,E],imports:[a.CommonModule,A.TooltipsModule,n.ResizeSensorModule],exports:[b,r,t,k,g,w,i,P,f,F,D,E]}),x.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,imports:[[a.CommonModule,A.TooltipsModule,n.ResizeSensorModule]]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,decorators:[{type:s.NgModule,args:[{declarations:[ut],imports:[a.CommonModule,A.TooltipsModule,n.ResizeSensorModule],exports:[ut]}]}]}),Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return o.Extent}}),Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return o.Location}}),e.BeforeResetEvent=oe,e.BubbleLayerComponent=b,e.BubbleTooltipTemplateDirective=r,e.LayerTooltipComponent=k,e.LayersComponent=t,e.MapClickEvent=se,e.MapComponent=g,e.MapModule=x,e.MarkerActivateEvent=le,e.MarkerClickEvent=ge,e.MarkerCreatedEvent=fe,e.MarkerLayerComponent=w,e.MarkerTooltipTemplateDirective=i,e.PanEndEvent=Ie,e.PanEvent=Se,e.ResetEvent=Oe,e.ShapeClickEvent=Ve,e.ShapeCreatedEvent=Pe,e.ShapeFeatureCreatedEvent=Le,e.ShapeLayerComponent=P,e.ShapeMouseEnterEvent=Ae,e.ShapeMouseLeaveEvent=qe,e.ShapeTooltipTemplateDirective=f,e.TileLayerComponent=F,e.TooltipComponent=D,e.TooltipPopupComponent=E,e.ZoomEndEvent=S,e.ZoomStartEvent=T,e.bodyFactory=Ye,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare function hasParent(element: any, parent: any): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export function hasParent(element, parent) {
|
|
9
|
+
let current = element;
|
|
10
|
+
while (current && current !== parent) {
|
|
11
|
+
current = current.parentNode;
|
|
12
|
+
}
|
|
13
|
+
return current ? true : false;
|
|
14
|
+
}
|
package/esm2015/main.js
CHANGED
|
@@ -11,4 +11,6 @@ export { TileLayerComponent } from './map/tile-layer.component';
|
|
|
11
11
|
export { LayersComponent } from './map/layers.component';
|
|
12
12
|
export { LayerTooltipComponent } from './map/layer/tooltip.component';
|
|
13
13
|
export * from './events';
|
|
14
|
+
export * from './tooltip';
|
|
15
|
+
export { bodyFactory } from './tooltip/body-factory';
|
|
14
16
|
export { Location, Extent } from '@progress/kendo-charts';
|
package/esm2015/map.component.js
CHANGED
|
@@ -10,14 +10,18 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
|
10
10
|
import { tap } from 'rxjs/operators';
|
|
11
11
|
import { ConfigurationService } from './common/configuration.service';
|
|
12
12
|
import { copyChanges } from './common/copy-changes';
|
|
13
|
+
import { hasParent } from './common/has-parent';
|
|
13
14
|
import { MapInstanceObserver } from './common/map-instance-observer';
|
|
14
15
|
import { InstanceEventService } from './events/instance-event.service';
|
|
15
16
|
import { packageMetadata } from './package-metadata';
|
|
17
|
+
import { TooltipPopupComponent } from './tooltip/tooltip-popup.component';
|
|
18
|
+
import { TooltipTemplateService } from './tooltip/tooltip-template.service';
|
|
16
19
|
import * as i0 from "@angular/core";
|
|
17
20
|
import * as i1 from "./common/configuration.service";
|
|
18
21
|
import * as i2 from "./events/instance-event.service";
|
|
19
22
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
20
|
-
import * as i4 from "
|
|
23
|
+
import * as i4 from "./tooltip/tooltip-popup.component";
|
|
24
|
+
import * as i5 from "@progress/kendo-angular-common";
|
|
21
25
|
/**
|
|
22
26
|
* A sample component
|
|
23
27
|
*/
|
|
@@ -142,6 +146,14 @@ export class MapComponent {
|
|
|
142
146
|
validatePackage(packageMetadata);
|
|
143
147
|
}
|
|
144
148
|
ngAfterViewInit() {
|
|
149
|
+
if (this.canRender) {
|
|
150
|
+
this.ngZone.runOutsideAngular(() => {
|
|
151
|
+
const mapMouseleave = this.renderer.listen(this.surfaceElement.nativeElement, 'mouseleave', this.mapMouseleave.bind(this));
|
|
152
|
+
this.domSubscriptions = () => {
|
|
153
|
+
mapMouseleave();
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}
|
|
145
157
|
this.setDirection();
|
|
146
158
|
this.initConfig();
|
|
147
159
|
this.subscriptions = this.localizationService.changes.subscribe(() => this.setDirection());
|
|
@@ -162,6 +174,23 @@ export class MapComponent {
|
|
|
162
174
|
store.popupSettings = null;
|
|
163
175
|
this.configurationService.push(store);
|
|
164
176
|
}
|
|
177
|
+
ngOnDestroy() {
|
|
178
|
+
this.destroyed = true;
|
|
179
|
+
if (this.optionsChange) {
|
|
180
|
+
this.optionsChange.unsubscribe();
|
|
181
|
+
}
|
|
182
|
+
if (this.domSubscriptions) {
|
|
183
|
+
this.domSubscriptions();
|
|
184
|
+
this.domSubscriptions = null;
|
|
185
|
+
}
|
|
186
|
+
if (this.instance) {
|
|
187
|
+
this.instance.destroy();
|
|
188
|
+
this.instance = null;
|
|
189
|
+
}
|
|
190
|
+
if (this.subscriptions) {
|
|
191
|
+
this.subscriptions.unsubscribe();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
165
194
|
/**
|
|
166
195
|
* Detects the size of the container and redraws the Map.
|
|
167
196
|
* Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
|
|
@@ -263,20 +292,53 @@ export class MapComponent {
|
|
|
263
292
|
get isRTL() {
|
|
264
293
|
return Boolean(this.localizationService.rtl);
|
|
265
294
|
}
|
|
295
|
+
onShowTooltip(e) {
|
|
296
|
+
this.run(() => {
|
|
297
|
+
this.tooltipInstance.show(e);
|
|
298
|
+
}, true, true);
|
|
299
|
+
}
|
|
300
|
+
onHideTooltip() {
|
|
301
|
+
this.run(() => {
|
|
302
|
+
this.tooltipInstance.hide();
|
|
303
|
+
}, true, true);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* @hidden
|
|
307
|
+
*/
|
|
308
|
+
tooltipMouseleave(e) {
|
|
309
|
+
const relatedTarget = e.relatedTarget;
|
|
310
|
+
const chartElement = this.element.nativeElement;
|
|
311
|
+
if (this.instance && (!relatedTarget || !hasParent(relatedTarget, chartElement))) {
|
|
312
|
+
this.tooltipInstance.hide();
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @hidden
|
|
317
|
+
*/
|
|
318
|
+
mapMouseleave(e) {
|
|
319
|
+
const relatedTarget = e.relatedTarget;
|
|
320
|
+
const chartElement = this.element.nativeElement;
|
|
321
|
+
if (this.instance && (!relatedTarget || !(this.tooltipInstance.containsElement(relatedTarget) || hasParent(relatedTarget, chartElement)))) {
|
|
322
|
+
this.tooltipInstance.hide();
|
|
323
|
+
}
|
|
324
|
+
}
|
|
266
325
|
}
|
|
267
326
|
MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.InstanceEventService }, { token: i0.ElementRef }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
268
|
-
MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, 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: [
|
|
327
|
+
MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", 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: [
|
|
269
328
|
ConfigurationService,
|
|
270
329
|
InstanceEventService,
|
|
271
330
|
LocalizationService,
|
|
331
|
+
TooltipTemplateService,
|
|
272
332
|
{
|
|
273
333
|
provide: L10N_PREFIX,
|
|
274
334
|
useValue: 'kendo.map'
|
|
275
335
|
}
|
|
276
|
-
], viewQueries: [{ propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }], exportAs: ["kendoChart"], usesOnChanges: true, ngImport: i0, template: `
|
|
336
|
+
], viewQueries: [{ propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }, { propertyName: "tooltipInstance", first: true, predicate: TooltipPopupComponent, descendants: true, static: true }], exportAs: ["kendoChart"], usesOnChanges: true, ngImport: i0, template: `
|
|
277
337
|
<div #surface></div>
|
|
338
|
+
<kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">
|
|
339
|
+
</kendo-map-tooltip-popup>
|
|
278
340
|
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
279
|
-
`, isInline: true, components: [{ type: i4.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
341
|
+
`, isInline: true, components: [{ type: i4.TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: ["animate", "classNames", "popupSettings", "wrapperClass"], outputs: ["leave"] }, { type: i5.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
280
342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, decorators: [{
|
|
281
343
|
type: Component,
|
|
282
344
|
args: [{
|
|
@@ -287,6 +349,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
287
349
|
ConfigurationService,
|
|
288
350
|
InstanceEventService,
|
|
289
351
|
LocalizationService,
|
|
352
|
+
TooltipTemplateService,
|
|
290
353
|
{
|
|
291
354
|
provide: L10N_PREFIX,
|
|
292
355
|
useValue: 'kendo.map'
|
|
@@ -294,6 +357,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
294
357
|
],
|
|
295
358
|
template: `
|
|
296
359
|
<div #surface></div>
|
|
360
|
+
<kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">
|
|
361
|
+
</kendo-map-tooltip-popup>
|
|
297
362
|
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
298
363
|
`
|
|
299
364
|
}]
|
|
@@ -311,6 +376,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
311
376
|
type: Input
|
|
312
377
|
}], pannable: [{
|
|
313
378
|
type: Input
|
|
379
|
+
}], popupSettings: [{
|
|
380
|
+
type: Input
|
|
314
381
|
}], wraparound: [{
|
|
315
382
|
type: Input
|
|
316
383
|
}], zoom: [{
|
|
@@ -350,4 +417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
350
417
|
}], surfaceElement: [{
|
|
351
418
|
type: ViewChild,
|
|
352
419
|
args: ['surface', { static: true }]
|
|
420
|
+
}], tooltipInstance: [{
|
|
421
|
+
type: ViewChild,
|
|
422
|
+
args: [TooltipPopupComponent, { static: true }]
|
|
353
423
|
}] } });
|
|
@@ -9,17 +9,27 @@ import { LayersComponent } from './map/layers.component';
|
|
|
9
9
|
import { MarkerLayerComponent } from './map/marker-layer.component';
|
|
10
10
|
import { ShapeLayerComponent } from './map/shape-layer.component';
|
|
11
11
|
import { TileLayerComponent } from './map/tile-layer.component';
|
|
12
|
+
import { BubbleTooltipTemplateDirective } from './tooltip/bubble-tooltip-template.directive';
|
|
13
|
+
import { MarkerTooltipTemplateDirective } from './tooltip/marker-tooltip-template.directive';
|
|
14
|
+
import { ShapeTooltipTemplateDirective } from './tooltip/shape-tooltip-template.directive';
|
|
15
|
+
import { TooltipPopupComponent } from './tooltip/tooltip-popup.component';
|
|
16
|
+
import { TooltipComponent } from './tooltip/tooltip.component';
|
|
12
17
|
// Re-exports
|
|
13
|
-
export {
|
|
18
|
+
export { BubbleLayerComponent, BubbleTooltipTemplateDirective, LayersComponent, LayerTooltipComponent, MapComponent, MarkerLayerComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipComponent, TooltipPopupComponent };
|
|
14
19
|
/**
|
|
15
20
|
* @hidden
|
|
16
21
|
*/
|
|
17
22
|
export const MAP_DIRECTIVES = [
|
|
18
|
-
MapComponent,
|
|
19
|
-
LayersComponent,
|
|
20
23
|
BubbleLayerComponent,
|
|
24
|
+
BubbleTooltipTemplateDirective,
|
|
25
|
+
LayersComponent,
|
|
26
|
+
LayerTooltipComponent,
|
|
27
|
+
MapComponent,
|
|
21
28
|
MarkerLayerComponent,
|
|
29
|
+
MarkerTooltipTemplateDirective,
|
|
22
30
|
ShapeLayerComponent,
|
|
31
|
+
ShapeTooltipTemplateDirective,
|
|
23
32
|
TileLayerComponent,
|
|
24
|
-
|
|
33
|
+
TooltipComponent,
|
|
34
|
+
TooltipPopupComponent
|
|
25
35
|
];
|
package/esm2015/map.module.js
CHANGED
|
@@ -5,28 +5,34 @@
|
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
6
|
import { NgModule } from '@angular/core';
|
|
7
7
|
import { ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
8
|
+
import { TooltipsModule } from '@progress/kendo-angular-tooltip';
|
|
8
9
|
import { MAP_DIRECTIVES } from './map.directives';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./map.component";
|
|
11
|
-
import * as i2 from "./
|
|
12
|
-
import * as i3 from "./map/
|
|
13
|
-
import * as i4 from "./map/
|
|
14
|
-
import * as i5 from "./map
|
|
15
|
-
import * as i6 from "./map/
|
|
16
|
-
import * as i7 from "./
|
|
11
|
+
import * as i1 from "./map/bubble-layer.component";
|
|
12
|
+
import * as i2 from "./tooltip/bubble-tooltip-template.directive";
|
|
13
|
+
import * as i3 from "./map/layers.component";
|
|
14
|
+
import * as i4 from "./map/layer/tooltip.component";
|
|
15
|
+
import * as i5 from "./map.component";
|
|
16
|
+
import * as i6 from "./map/marker-layer.component";
|
|
17
|
+
import * as i7 from "./tooltip/marker-tooltip-template.directive";
|
|
18
|
+
import * as i8 from "./map/shape-layer.component";
|
|
19
|
+
import * as i9 from "./tooltip/shape-tooltip-template.directive";
|
|
20
|
+
import * as i10 from "./map/tile-layer.component";
|
|
21
|
+
import * as i11 from "./tooltip/tooltip.component";
|
|
22
|
+
import * as i12 from "./tooltip/tooltip-popup.component";
|
|
17
23
|
/**
|
|
18
24
|
* Sample module
|
|
19
25
|
*/
|
|
20
26
|
export class MapModule {
|
|
21
27
|
}
|
|
22
28
|
MapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
-
MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, declarations: [i1.
|
|
24
|
-
MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule]] });
|
|
29
|
+
MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, declarations: [i1.BubbleLayerComponent, i2.BubbleTooltipTemplateDirective, i3.LayersComponent, i4.LayerTooltipComponent, i5.MapComponent, i6.MarkerLayerComponent, i7.MarkerTooltipTemplateDirective, i8.ShapeLayerComponent, i9.ShapeTooltipTemplateDirective, i10.TileLayerComponent, i11.TooltipComponent, i12.TooltipPopupComponent], imports: [CommonModule, TooltipsModule, ResizeSensorModule], exports: [i1.BubbleLayerComponent, i2.BubbleTooltipTemplateDirective, i3.LayersComponent, i4.LayerTooltipComponent, i5.MapComponent, i6.MarkerLayerComponent, i7.MarkerTooltipTemplateDirective, i8.ShapeLayerComponent, i9.ShapeTooltipTemplateDirective, i10.TileLayerComponent, i11.TooltipComponent, i12.TooltipPopupComponent] });
|
|
30
|
+
MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, imports: [[CommonModule, TooltipsModule, ResizeSensorModule]] });
|
|
25
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, decorators: [{
|
|
26
32
|
type: NgModule,
|
|
27
33
|
args: [{
|
|
28
34
|
declarations: [MAP_DIRECTIVES],
|
|
29
|
-
imports: [CommonModule, ResizeSensorModule],
|
|
35
|
+
imports: [CommonModule, TooltipsModule, ResizeSensorModule],
|
|
30
36
|
exports: [MAP_DIRECTIVES]
|
|
31
37
|
}]
|
|
32
38
|
}] });
|
|
@@ -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: 1654176122,
|
|
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
|
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@progress/kendo-angular-popup";
|
|
8
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
|
9
|
+
const CALLOUT_SIZE = 5;
|
|
10
|
+
const POSITION_MODE = 'absolute';
|
|
11
|
+
const COLLISION = { horizontal: "fit", vertical: "fit" };
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export class BaseTooltip {
|
|
16
|
+
constructor(popupService, localizationService) {
|
|
17
|
+
this.popupService = popupService;
|
|
18
|
+
this.localizationService = localizationService;
|
|
19
|
+
this.animate = true;
|
|
20
|
+
this.style = {
|
|
21
|
+
position: 'relative'
|
|
22
|
+
};
|
|
23
|
+
this.popupRef = null;
|
|
24
|
+
}
|
|
25
|
+
get active() {
|
|
26
|
+
return this.popupRef !== null;
|
|
27
|
+
}
|
|
28
|
+
show(e) {
|
|
29
|
+
const offset = this.position(e.anchor);
|
|
30
|
+
offset.top -= CALLOUT_SIZE;
|
|
31
|
+
if (!this.popupRef) {
|
|
32
|
+
this.popupRef = this.popupService.open(Object.assign({
|
|
33
|
+
offset: offset,
|
|
34
|
+
popupAlign: { vertical: 'bottom', horizontal: 'center' },
|
|
35
|
+
animate: this.animate,
|
|
36
|
+
content: this.templateRef,
|
|
37
|
+
collision: COLLISION,
|
|
38
|
+
positionMode: POSITION_MODE
|
|
39
|
+
}, this.popupSettings));
|
|
40
|
+
if (this.localizationService.rtl) {
|
|
41
|
+
this.popupRef.popupElement.setAttribute('dir', 'rtl');
|
|
42
|
+
}
|
|
43
|
+
this.onInit();
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const popup = this.popupRef.popup.instance;
|
|
47
|
+
popup.offset = offset;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
hide() {
|
|
51
|
+
if (this.popupRef) {
|
|
52
|
+
this.popupRef.close();
|
|
53
|
+
this.popupRef = null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
onInit() {
|
|
57
|
+
}
|
|
58
|
+
ngOnDestroy() {
|
|
59
|
+
this.hide();
|
|
60
|
+
}
|
|
61
|
+
position(offset) {
|
|
62
|
+
if (!this.popupSettings || !this.popupSettings.appendTo) {
|
|
63
|
+
return offset;
|
|
64
|
+
}
|
|
65
|
+
const appendTo = this.popupSettings.appendTo.element.nativeElement;
|
|
66
|
+
const bbox = appendTo.getBoundingClientRect();
|
|
67
|
+
const { scrollLeft, scrollTop } = this.scrollOffset(appendTo);
|
|
68
|
+
return {
|
|
69
|
+
left: offset.left - bbox.left - scrollLeft,
|
|
70
|
+
top: offset.top - bbox.top - scrollTop
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
scrollOffset(element) {
|
|
74
|
+
if (!element) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
let scrollLeft = element.scrollLeft;
|
|
78
|
+
let scrollTop = element.scrollTop;
|
|
79
|
+
let parent = element.parentElement;
|
|
80
|
+
while (parent) {
|
|
81
|
+
scrollLeft += parent.scrollLeft;
|
|
82
|
+
scrollTop += parent.scrollTop;
|
|
83
|
+
parent = parent.parentElement;
|
|
84
|
+
}
|
|
85
|
+
return { scrollLeft, scrollTop };
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
BaseTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseTooltip, deps: [{ token: i1.PopupService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
89
|
+
BaseTooltip.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BaseTooltip, ngImport: i0 });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseTooltip, decorators: [{
|
|
91
|
+
type: Directive
|
|
92
|
+
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.LocalizationService }]; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ElementRef } from '@angular/core';
|
|
6
|
+
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export function bodyFactory() {
|
|
11
|
+
if (isDocumentAvailable()) {
|
|
12
|
+
return new ElementRef(document.body);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Optional } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A directive that sets a [template]({{ site.data.urls.angular['templatesyntax'] }})
|
|
9
|
+
* within the `<kendo-map-tooltip>` component for the Map
|
|
10
|
+
* [Bubble layer tooltip]({% slug bubble_layers_map %}#toc-tooltip).
|
|
11
|
+
*
|
|
12
|
+
* The available inputs for the bubble tooltip template are:
|
|
13
|
+
* * `dataItem: any`—The original data item used to create the bubble.
|
|
14
|
+
* * `location: Location`—The location of the bubble.
|
|
15
|
+
* * `value: number`—The value of the bubble.
|
|
16
|
+
*/
|
|
17
|
+
export class BubbleTooltipTemplateDirective {
|
|
18
|
+
constructor(templateRef) {
|
|
19
|
+
this.templateRef = templateRef;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
BubbleTooltipTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BubbleTooltipTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
BubbleTooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BubbleTooltipTemplateDirective, selector: "[kendoMapBubbleTooltipTemplate]", ngImport: i0 });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BubbleTooltipTemplateDirective, decorators: [{
|
|
25
|
+
type: Directive,
|
|
26
|
+
args: [{
|
|
27
|
+
selector: '[kendoMapBubbleTooltipTemplate]'
|
|
28
|
+
}]
|
|
29
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
30
|
+
type: Optional
|
|
31
|
+
}] }]; } });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Optional } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A directive that sets a [template]({{ site.data.urls.angular['templatesyntax'] }})
|
|
9
|
+
* within the `<kendo-map-tooltip>` component for the Map
|
|
10
|
+
* [Marker layer tooltip]({% slug marker_layers_map %}#toc-tooltip).
|
|
11
|
+
*
|
|
12
|
+
* The available inputs for the marker tooltip template are:
|
|
13
|
+
* * `title: string`—The marker title.
|
|
14
|
+
* * `location: Location`—The marker location.
|
|
15
|
+
*/
|
|
16
|
+
export class MarkerTooltipTemplateDirective {
|
|
17
|
+
constructor(templateRef) {
|
|
18
|
+
this.templateRef = templateRef;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
MarkerTooltipTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerTooltipTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
+
MarkerTooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MarkerTooltipTemplateDirective, selector: "[kendoMapMarkerTooltipTemplate]", ngImport: i0 });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerTooltipTemplateDirective, decorators: [{
|
|
24
|
+
type: Directive,
|
|
25
|
+
args: [{
|
|
26
|
+
selector: '[kendoMapMarkerTooltipTemplate]'
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
29
|
+
type: Optional
|
|
30
|
+
}] }]; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|