@progress/kendo-angular-map 0.1.0

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.
Files changed (90) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +654 -0
  3. package/README.md +31 -0
  4. package/bundles/kendo-angular-map.umd.js +5 -0
  5. package/common/collection-item.component.d.ts +39 -0
  6. package/common/collection.component.d.ts +27 -0
  7. package/common/collection.service.d.ts +31 -0
  8. package/common/configuration.service.d.ts +32 -0
  9. package/common/copy-changes.d.ts +11 -0
  10. package/common/map-instance-observer.d.ts +12 -0
  11. package/common/settings.component.d.ts +37 -0
  12. package/common/to-simple-changes.d.ts +11 -0
  13. package/esm2015/common/collection-item.component.js +59 -0
  14. package/esm2015/common/collection.component.js +51 -0
  15. package/esm2015/common/collection.service.js +33 -0
  16. package/esm2015/common/configuration.service.js +58 -0
  17. package/esm2015/common/copy-changes.js +21 -0
  18. package/esm2015/common/map-instance-observer.js +19 -0
  19. package/esm2015/common/settings.component.js +58 -0
  20. package/esm2015/common/to-simple-changes.js +18 -0
  21. package/esm2015/events/base-event.js +22 -0
  22. package/esm2015/events/before-reset-event.js +16 -0
  23. package/esm2015/events/instance-event.service.js +32 -0
  24. package/esm2015/events/map-click-event.js +18 -0
  25. package/esm2015/events/marker-activate-event.js +18 -0
  26. package/esm2015/events/marker-click-event.js +18 -0
  27. package/esm2015/events/marker-created-event.js +20 -0
  28. package/esm2015/events/pan-end-event.js +19 -0
  29. package/esm2015/events/pan-event.js +19 -0
  30. package/esm2015/events/preventable-event.js +39 -0
  31. package/esm2015/events/reset-event.js +18 -0
  32. package/esm2015/events/shape-click-event.js +19 -0
  33. package/esm2015/events/shape-created-event.js +18 -0
  34. package/esm2015/events/shape-feature-created-event.js +20 -0
  35. package/esm2015/events/shape-mouse-enter-event.js +22 -0
  36. package/esm2015/events/shape-mouse-leave-event.js +22 -0
  37. package/esm2015/events/zoom-end-event.js +17 -0
  38. package/esm2015/events/zoom-start-event.js +19 -0
  39. package/esm2015/events.js +19 -0
  40. package/esm2015/kendo-angular-map.js +8 -0
  41. package/esm2015/main.js +14 -0
  42. package/esm2015/map/bubble-layer.component.js +59 -0
  43. package/esm2015/map/layer/tooltip.component.js +35 -0
  44. package/esm2015/map/layer.component.js +57 -0
  45. package/esm2015/map/layers.component.js +36 -0
  46. package/esm2015/map/marker-layer.component.js +53 -0
  47. package/esm2015/map/shape-layer.component.js +49 -0
  48. package/esm2015/map/tile-layer.component.js +51 -0
  49. package/esm2015/map.component.js +353 -0
  50. package/esm2015/map.directives.js +25 -0
  51. package/esm2015/map.module.js +32 -0
  52. package/esm2015/package-metadata.js +15 -0
  53. package/events/base-event.d.ts +21 -0
  54. package/events/before-reset-event.d.ts +16 -0
  55. package/events/instance-event.service.d.ts +11 -0
  56. package/events/map-click-event.d.ts +24 -0
  57. package/events/marker-activate-event.d.ts +24 -0
  58. package/events/marker-click-event.d.ts +24 -0
  59. package/events/marker-created-event.d.ts +26 -0
  60. package/events/pan-end-event.d.ts +28 -0
  61. package/events/pan-event.d.ts +28 -0
  62. package/events/preventable-event.d.ts +28 -0
  63. package/events/reset-event.d.ts +18 -0
  64. package/events/shape-click-event.d.ts +29 -0
  65. package/events/shape-created-event.d.ts +25 -0
  66. package/events/shape-feature-created-event.d.ts +33 -0
  67. package/events/shape-mouse-enter-event.d.ts +32 -0
  68. package/events/shape-mouse-leave-event.d.ts +32 -0
  69. package/events/zoom-end-event.d.ts +20 -0
  70. package/events/zoom-start-event.d.ts +22 -0
  71. package/events.d.ts +19 -0
  72. package/fesm2015/kendo-angular-map.js +1240 -0
  73. package/kendo-angular-map.d.ts +9 -0
  74. package/main.d.ts +14 -0
  75. package/map/bubble-layer.component.d.ts +29 -0
  76. package/map/layer/tooltip.component.d.ts +21 -0
  77. package/map/layer.component.d.ts +35 -0
  78. package/map/layers.component.d.ts +20 -0
  79. package/map/marker-layer.component.d.ts +25 -0
  80. package/map/shape-layer.component.d.ts +24 -0
  81. package/map/tile-layer.component.d.ts +24 -0
  82. package/map.component.d.ts +214 -0
  83. package/map.directives.d.ts +16 -0
  84. package/map.module.d.ts +22 -0
  85. package/package-metadata.d.ts +9 -0
  86. package/package.json +86 -0
  87. package/schematics/collection.json +12 -0
  88. package/schematics/ngAdd/index.js +21 -0
  89. package/schematics/ngAdd/index.js.map +1 -0
  90. package/schematics/ngAdd/schema.json +28 -0
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ <a href="https://www.telerik.com/kendo-angular-ui/" target="_blank">
2
+ <img width="631" src="https://www.telerik.com/kendo-angular-ui/npm-banner.svg">
3
+ </a>
4
+
5
+ ## Native UI and Data Visualization Components for Angular
6
+
7
+ Kendo UI for Angular is a commercial UI library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
8
+
9
+ > **Important**
10
+ > * This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/)&mdash;a commercial UI library.
11
+ > * You will need to install a license key when adding the package to your project. For more information, please refer to the [My License page](https://www.telerik.com/kendo-angular-ui/my-license/).
12
+ > * To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui/) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui). Doing so indicates that you [Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui).
13
+ > * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI dev team!
14
+
15
+ ## Resources
16
+
17
+ * [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started)
18
+ * [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
19
+ * [Blogs](http://www.telerik.com/blogs/kendo-ui)
20
+ * [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
21
+
22
+ ## Questions and Feedback
23
+
24
+ * [Official Forums](https://www.telerik.com/forums/kendo-angular-ui)
25
+ * [GitHub Issues](https://github.com/telerik/kendo-angular/issues)
26
+ * [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
27
+ * [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
28
+
29
+ *Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
30
+
31
+ *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
@@ -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
+ !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:1651675099,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})});
@@ -0,0 +1,39 @@
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 { OnChanges, OnDestroy, SimpleChange } from '@angular/core';
6
+ import { Subscription } from 'rxjs';
7
+ import { CollectionService, Item } from './collection.service';
8
+ import { ConfigurationService } from './configuration.service';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare abstract class CollectionItemComponent implements Item, OnChanges, OnDestroy {
14
+ protected configurationService: ConfigurationService;
15
+ protected collectionService: CollectionService;
16
+ protected subscription: Subscription;
17
+ options: any;
18
+ constructor(configurationService: ConfigurationService, collectionService: CollectionService);
19
+ ngOnChanges(changes: {
20
+ [propertyName: string]: SimpleChange;
21
+ }): void;
22
+ /**
23
+ * Updates the component fields with the specified values and refreshes the Chart.
24
+ *
25
+ * Use this method when the configuration values cannot be set through the template.
26
+ *
27
+ * @example
28
+ * ```ts-no-run
29
+ * item.notifyChanges({ visible: true });
30
+ * ```
31
+ *
32
+ * @param changes An object containing the updated input fields.
33
+ */
34
+ notifyChanges(changes: any): void;
35
+ ngOnDestroy(): void;
36
+ protected notify(): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollectionItemComponent, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CollectionItemComponent, never, never, {}, {}, never>;
39
+ }
@@ -0,0 +1,27 @@
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 { AfterContentInit, OnDestroy, QueryList } from '@angular/core';
6
+ import { ConfigurationService } from './configuration.service';
7
+ import { CollectionService, Item } from './collection.service';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare abstract class CollectionComponent implements AfterContentInit, OnDestroy {
13
+ protected configKey: string;
14
+ protected configurationService: ConfigurationService;
15
+ protected collectionService: CollectionService;
16
+ children: QueryList<Item>;
17
+ private subscription;
18
+ private items;
19
+ constructor(configKey: string, configurationService: ConfigurationService, collectionService: CollectionService);
20
+ ngOnDestroy(): void;
21
+ ngAfterContentInit(): void;
22
+ private processChanges;
23
+ private readItems;
24
+ private change;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollectionComponent, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CollectionComponent, never, never, {}, {}, never>;
27
+ }
@@ -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 { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface Item {
11
+ options: any;
12
+ }
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare class ItemChange {
17
+ sender: Item;
18
+ options: any;
19
+ constructor(sender: Item, options: any);
20
+ }
21
+ /**
22
+ * @hidden
23
+ */
24
+ export declare class CollectionService {
25
+ itemChanges: Observable<ItemChange>;
26
+ private source;
27
+ constructor();
28
+ notify(change: ItemChange): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollectionService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<CollectionService>;
31
+ }
@@ -0,0 +1,32 @@
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 { NgZone } from '@angular/core';
6
+ import { BehaviorSubject, Observable } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class Change {
12
+ key: string;
13
+ value: any;
14
+ constructor(key: string, value: any);
15
+ }
16
+ /**
17
+ * @hidden
18
+ */
19
+ export declare class ConfigurationService {
20
+ protected ngZone: NgZone;
21
+ changes: Observable<any>;
22
+ store: any;
23
+ protected source: BehaviorSubject<any>;
24
+ constructor(ngZone: NgZone);
25
+ protected initSource(): void;
26
+ push(store: any): void;
27
+ notify(change: Change): void;
28
+ protected set(field: string, value: any): void;
29
+ protected next(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
32
+ }
@@ -0,0 +1,11 @@
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 { SimpleChange } from '@angular/core';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare function copyChanges(changes: {
10
+ [propertyName: string]: SimpleChange;
11
+ }, options: any): void;
@@ -0,0 +1,12 @@
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 { InstanceObserver } from '@progress/kendo-charts';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare class MapInstanceObserver extends InstanceObserver {
10
+ protected handlerMap: any;
11
+ constructor(instance: any);
12
+ }
@@ -0,0 +1,37 @@
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 { OnChanges, OnDestroy, SimpleChange } from '@angular/core';
6
+ import { ConfigurationService } from './configuration.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare abstract class SettingsComponent implements OnChanges, OnDestroy {
12
+ protected configKey: string;
13
+ configurationService: ConfigurationService;
14
+ protected store: any;
15
+ constructor(configKey: string, configurationService: ConfigurationService);
16
+ ngOnDestroy(): void;
17
+ ngOnChanges(changes: {
18
+ [propertyName: string]: SimpleChange;
19
+ }): void;
20
+ /**
21
+ * Updates the component fields with the specified values and refreshes the component.
22
+ *
23
+ * Use this method when the configuration values cannot be set through the template.
24
+ *
25
+ * @example
26
+ * ```ts-no-run
27
+ * item.notifyChanges({ visible: true });
28
+ * ```
29
+ *
30
+ * @param changes An object containing the updated input fields.
31
+ */
32
+ notifyChanges(changes: any): void;
33
+ protected markAsVisible(): void;
34
+ private notify;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SettingsComponent, never, never, {}, {}, never>;
37
+ }
@@ -0,0 +1,11 @@
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 { SimpleChange } from '@angular/core';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare function toSimpleChanges(changes: any): {
10
+ [propertyName: string]: SimpleChange;
11
+ };
@@ -0,0 +1,59 @@
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 { ItemChange } from './collection.service';
7
+ import { copyChanges } from './copy-changes';
8
+ import { toSimpleChanges } from './to-simple-changes';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "./configuration.service";
11
+ import * as i2 from "./collection.service";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export class CollectionItemComponent {
16
+ constructor(configurationService, collectionService) {
17
+ this.configurationService = configurationService;
18
+ this.collectionService = collectionService;
19
+ this.options = {};
20
+ this.subscription = configurationService.changes.subscribe(store => {
21
+ this.options = store;
22
+ this.notify();
23
+ });
24
+ }
25
+ ngOnChanges(changes) {
26
+ const store = this.configurationService.store;
27
+ copyChanges(changes, store);
28
+ this.configurationService.push(store);
29
+ }
30
+ /**
31
+ * Updates the component fields with the specified values and refreshes the Chart.
32
+ *
33
+ * Use this method when the configuration values cannot be set through the template.
34
+ *
35
+ * @example
36
+ * ```ts-no-run
37
+ * item.notifyChanges({ visible: true });
38
+ * ```
39
+ *
40
+ * @param changes An object containing the updated input fields.
41
+ */
42
+ notifyChanges(changes) {
43
+ this.ngOnChanges(toSimpleChanges(changes));
44
+ }
45
+ ngOnDestroy() {
46
+ this.subscription.unsubscribe();
47
+ }
48
+ notify() {
49
+ if (!this.collectionService) {
50
+ return;
51
+ }
52
+ this.collectionService.notify(new ItemChange(this, this.options));
53
+ }
54
+ }
55
+ CollectionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollectionItemComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }], target: i0.ɵɵFactoryTarget.Directive });
56
+ CollectionItemComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CollectionItemComponent, usesOnChanges: true, ngImport: i0 });
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollectionItemComponent, decorators: [{
58
+ type: Directive
59
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; } });
@@ -0,0 +1,51 @@
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 { Change } from './configuration.service';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "./configuration.service";
9
+ import * as i2 from "./collection.service";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export class CollectionComponent {
14
+ constructor(configKey, configurationService, collectionService) {
15
+ this.configKey = configKey;
16
+ this.configurationService = configurationService;
17
+ this.collectionService = collectionService;
18
+ this.items = [];
19
+ this.subscription = collectionService.itemChanges.subscribe(changes => this.processChanges(changes));
20
+ }
21
+ ngOnDestroy() {
22
+ this.subscription.unsubscribe();
23
+ }
24
+ ngAfterContentInit() {
25
+ this.readItems();
26
+ this.children.changes.subscribe(() => this.readItems());
27
+ }
28
+ processChanges(changes) {
29
+ if (!this.children) {
30
+ return;
31
+ }
32
+ const index = this.children.toArray().indexOf(changes.sender);
33
+ if (index < 0) {
34
+ return;
35
+ }
36
+ this.items[index] = changes.options;
37
+ this.change();
38
+ }
39
+ readItems() {
40
+ this.items = this.children.map(s => s.options);
41
+ this.change();
42
+ }
43
+ change() {
44
+ this.configurationService.notify(new Change(this.configKey, this.items.length === 0 ? undefined : this.items));
45
+ }
46
+ }
47
+ CollectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollectionComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
48
+ CollectionComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CollectionComponent, ngImport: i0 });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollectionComponent, decorators: [{
50
+ type: Directive
51
+ }], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }, { type: i2.CollectionService }]; } });
@@ -0,0 +1,33 @@
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 { Injectable } from '@angular/core';
6
+ import { Subject } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export class ItemChange {
12
+ constructor(sender, options) {
13
+ this.sender = sender;
14
+ this.options = options;
15
+ }
16
+ }
17
+ /**
18
+ * @hidden
19
+ */
20
+ export class CollectionService {
21
+ constructor() {
22
+ this.source = new Subject();
23
+ this.itemChanges = this.source.asObservable();
24
+ }
25
+ notify(change) {
26
+ this.source.next(change);
27
+ }
28
+ }
29
+ CollectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
30
+ CollectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollectionService });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollectionService, decorators: [{
32
+ type: Injectable
33
+ }], ctorParameters: function () { return []; } });
@@ -0,0 +1,58 @@
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 { Injectable } from '@angular/core';
6
+ import { BehaviorSubject } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export class Change {
12
+ constructor(key, value) {
13
+ this.key = key;
14
+ this.value = value;
15
+ }
16
+ }
17
+ /**
18
+ * @hidden
19
+ */
20
+ export class ConfigurationService {
21
+ constructor(ngZone) {
22
+ this.ngZone = ngZone;
23
+ this.store = {};
24
+ this.source = new BehaviorSubject({});
25
+ this.initSource();
26
+ }
27
+ initSource() {
28
+ this.changes = this.source.asObservable();
29
+ }
30
+ push(store) {
31
+ this.store = store;
32
+ this.next();
33
+ }
34
+ notify(change) {
35
+ this.set(change.key, change.value);
36
+ this.next();
37
+ }
38
+ set(field, value) {
39
+ let store = this.store;
40
+ const parts = field.split('.');
41
+ let key = parts.shift();
42
+ while (parts.length > 0) {
43
+ store = store[key] = store[key] || {};
44
+ key = parts.shift();
45
+ }
46
+ store[key] = value;
47
+ }
48
+ next() {
49
+ this.ngZone.runOutsideAngular(() => {
50
+ this.source.next(this.store);
51
+ });
52
+ }
53
+ }
54
+ ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ConfigurationService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
55
+ ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ConfigurationService });
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ConfigurationService, decorators: [{
57
+ type: Injectable
58
+ }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
@@ -0,0 +1,21 @@
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 copyChanges(changes, options) {
9
+ for (const propertyName in changes) {
10
+ if (!changes.hasOwnProperty(propertyName)) {
11
+ continue;
12
+ }
13
+ const value = changes[propertyName].currentValue;
14
+ if (value === undefined) {
15
+ delete options[propertyName];
16
+ }
17
+ else {
18
+ options[propertyName] = value;
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,19 @@
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 { InstanceObserver } from '@progress/kendo-charts';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export class MapInstanceObserver extends InstanceObserver {
10
+ constructor(instance) {
11
+ super(instance);
12
+ this.handlerMap = {
13
+ hideTooltip: 'onHideTooltip',
14
+ init: 'onInit',
15
+ render: 'onRender',
16
+ showTooltip: 'onShowTooltip'
17
+ };
18
+ }
19
+ }
@@ -0,0 +1,58 @@
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 { Change } from './configuration.service';
7
+ import { copyChanges } from './copy-changes';
8
+ import { toSimpleChanges } from './to-simple-changes';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "./configuration.service";
11
+ /**
12
+ * @hidden
13
+ */
14
+ export class SettingsComponent {
15
+ constructor(configKey, configurationService) {
16
+ this.configKey = configKey;
17
+ this.configurationService = configurationService;
18
+ this.store = {};
19
+ if (configKey === undefined) {
20
+ throw new Error('Configuration key not set');
21
+ }
22
+ }
23
+ ngOnDestroy() {
24
+ this.store = undefined;
25
+ this.notify();
26
+ }
27
+ ngOnChanges(changes) {
28
+ copyChanges(changes, this.store);
29
+ this.notify();
30
+ }
31
+ /**
32
+ * Updates the component fields with the specified values and refreshes the component.
33
+ *
34
+ * Use this method when the configuration values cannot be set through the template.
35
+ *
36
+ * @example
37
+ * ```ts-no-run
38
+ * item.notifyChanges({ visible: true });
39
+ * ```
40
+ *
41
+ * @param changes An object containing the updated input fields.
42
+ */
43
+ notifyChanges(changes) {
44
+ this.ngOnChanges(toSimpleChanges(changes));
45
+ }
46
+ markAsVisible() {
47
+ this.store.visible = true;
48
+ this.notify();
49
+ }
50
+ notify() {
51
+ this.configurationService.notify(new Change(this.configKey, this.store));
52
+ }
53
+ }
54
+ SettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SettingsComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
55
+ SettingsComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SettingsComponent, usesOnChanges: true, ngImport: i0 });
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SettingsComponent, decorators: [{
57
+ type: Directive
58
+ }], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }]; } });
@@ -0,0 +1,18 @@
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 { SimpleChange } from '@angular/core';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export function toSimpleChanges(changes) {
10
+ const result = {};
11
+ for (const propertyName in changes) {
12
+ if (!changes.hasOwnProperty(propertyName)) {
13
+ continue;
14
+ }
15
+ result[propertyName] = new SimpleChange(null, changes[propertyName], false);
16
+ }
17
+ return result;
18
+ }