@progress/kendo-angular-map 0.1.1-dev.202205051036 → 0.2.0-dev.202206160949

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 (42) hide show
  1. package/bundles/kendo-angular-map.umd.js +1 -1
  2. package/common/collection-item.component.d.ts +1 -0
  3. package/common/collection.service.d.ts +1 -0
  4. package/common/has-parent.d.ts +8 -0
  5. package/esm2015/common/collection-item.component.js +1 -0
  6. package/esm2015/common/collection.component.js +5 -1
  7. package/esm2015/common/has-parent.js +14 -0
  8. package/esm2015/main.js +2 -0
  9. package/esm2015/map.component.js +74 -4
  10. package/esm2015/map.directives.js +12 -4
  11. package/esm2015/map.module.js +18 -10
  12. package/esm2015/package-metadata.js +1 -1
  13. package/esm2015/tooltip/base-tooltip.js +90 -0
  14. package/esm2015/tooltip/body-factory.js +14 -0
  15. package/esm2015/tooltip/bubble-tooltip-template.directive.js +32 -0
  16. package/esm2015/tooltip/bubble-tooltip.component.js +38 -0
  17. package/esm2015/tooltip/marker-tooltip-template.directive.js +31 -0
  18. package/esm2015/tooltip/marker-tooltip.component.js +38 -0
  19. package/esm2015/tooltip/popup-settings.interface.js +5 -0
  20. package/esm2015/tooltip/shape-tooltip-template.directive.js +31 -0
  21. package/esm2015/tooltip/shape-tooltip.component.js +38 -0
  22. package/esm2015/tooltip/tooltip-popup.component.js +114 -0
  23. package/esm2015/tooltip/tooltip-template.service.js +29 -0
  24. package/esm2015/tooltip.js +11 -0
  25. package/fesm2015/kendo-angular-map.js +487 -14
  26. package/main.d.ts +2 -0
  27. package/map.component.d.ts +22 -3
  28. package/map.directives.d.ts +2 -1
  29. package/map.module.d.ts +18 -10
  30. package/package.json +6 -6
  31. package/tooltip/base-tooltip.d.ts +31 -0
  32. package/tooltip/body-factory.d.ts +9 -0
  33. package/tooltip/bubble-tooltip-template.directive.d.ts +23 -0
  34. package/tooltip/bubble-tooltip.component.d.ts +24 -0
  35. package/tooltip/marker-tooltip-template.directive.d.ts +22 -0
  36. package/tooltip/marker-tooltip.component.d.ts +24 -0
  37. package/tooltip/popup-settings.interface.d.ts +18 -0
  38. package/tooltip/shape-tooltip-template.directive.d.ts +22 -0
  39. package/tooltip/shape-tooltip.component.d.ts +24 -0
  40. package/tooltip/tooltip-popup.component.d.ts +37 -0
  41. package/tooltip/tooltip-template.service.d.ts +16 -0
  42. package/tooltip.d.ts +11 -0
@@ -2,19 +2,21 @@
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
- import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, Renderer2, SimpleChange } from '@angular/core';
5
+ import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChange } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { PopupSettings } from '@progress/kendo-angular-popup';
7
8
  import { Location, Map, MapControls } from '@progress/kendo-charts';
8
9
  import { Subscription } from 'rxjs';
9
10
  import { ConfigurationService } from './common/configuration.service';
10
11
  import { MapInstanceObserver } from './common/map-instance-observer';
11
12
  import { BeforeResetEvent, MapClickEvent, MarkerActivateEvent, MarkerClickEvent, MarkerCreatedEvent, PanEndEvent, PanEvent, ResetEvent, ShapeClickEvent, ShapeCreatedEvent, ShapeFeatureCreatedEvent, ShapeMouseEnterEvent, ShapeMouseLeaveEvent, ZoomEndEvent, ZoomStartEvent } from './events';
12
13
  import { InstanceEventService } from './events/instance-event.service';
14
+ import { TooltipPopupComponent } from './tooltip/tooltip-popup.component';
13
15
  import * as i0 from "@angular/core";
14
16
  /**
15
17
  * A sample component
16
18
  */
17
- export declare class MapComponent implements AfterViewInit, AfterViewChecked, OnChanges {
19
+ export declare class MapComponent implements AfterViewInit, AfterViewChecked, OnChanges, OnDestroy {
18
20
  configurationService: ConfigurationService;
19
21
  protected instanceEventService: InstanceEventService;
20
22
  protected element: ElementRef;
@@ -77,6 +79,10 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
77
79
  * @default true
78
80
  */
79
81
  pannable: boolean;
82
+ /**
83
+ * The settings for the tooltip popup.
84
+ */
85
+ popupSettings: PopupSettings;
80
86
  /**
81
87
  * Specifies whether the map should wrap around the east-west edges.
82
88
  *
@@ -174,6 +180,7 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
174
180
  */
175
181
  zoomEnd: EventEmitter<ZoomEndEvent>;
176
182
  surfaceElement: ElementRef;
183
+ tooltipInstance: TooltipPopupComponent;
177
184
  instance: Map;
178
185
  protected options: any;
179
186
  protected theme: any;
@@ -183,12 +190,14 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
183
190
  protected rtl: boolean;
184
191
  protected subscriptions: Subscription;
185
192
  protected optionsChange: Subscription;
193
+ protected domSubscriptions: () => void;
186
194
  constructor(configurationService: ConfigurationService, instanceEventService: InstanceEventService, element: ElementRef, localizationService: LocalizationService, changeDetector: ChangeDetectorRef, ngZone: NgZone, renderer: Renderer2);
187
195
  ngAfterViewInit(): void;
188
196
  ngAfterViewChecked(): void;
189
197
  ngOnChanges(changes: {
190
198
  [propertyName: string]: SimpleChange;
191
199
  }): void;
200
+ ngOnDestroy(): void;
192
201
  /**
193
202
  * Detects the size of the container and redraws the Map.
194
203
  * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
@@ -209,6 +218,16 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
209
218
  protected detectChanges(): void;
210
219
  protected setDirection(): void;
211
220
  protected get isRTL(): boolean;
221
+ protected onShowTooltip(e: any): void;
222
+ protected onHideTooltip(): void;
223
+ /**
224
+ * @hidden
225
+ */
226
+ tooltipMouseleave(e: any): void;
227
+ /**
228
+ * @hidden
229
+ */
230
+ mapMouseleave(e: any): void;
212
231
  static ɵfac: i0.ɵɵFactoryDeclaration<MapComponent, never>;
213
- static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "kendo-map", ["kendoChart"], { "resizeRateLimit": "resizeRateLimit"; "center": "center"; "controls": "controls"; "minZoom": "minZoom"; "maxZoom": "maxZoom"; "minSize": "minSize"; "pannable": "pannable"; "wraparound": "wraparound"; "zoom": "zoom"; "zoomable": "zoomable"; }, { "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"; }, never, never>;
232
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "kendo-map", ["kendoChart"], { "resizeRateLimit": "resizeRateLimit"; "center": "center"; "controls": "controls"; "minZoom": "minZoom"; "maxZoom": "maxZoom"; "minSize": "minSize"; "pannable": "pannable"; "popupSettings": "popupSettings"; "wraparound": "wraparound"; "zoom": "zoom"; "zoomable": "zoomable"; }, { "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"; }, never, never>;
214
233
  }
@@ -9,7 +9,8 @@ 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
- export { MapComponent, LayersComponent, BubbleLayerComponent, MarkerLayerComponent, ShapeLayerComponent, TileLayerComponent, LayerTooltipComponent };
12
+ import { BubbleTooltipComponent, BubbleTooltipTemplateDirective, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TooltipPopupComponent } from './tooltip';
13
+ export { BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayersComponent, LayerTooltipComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent };
13
14
  /**
14
15
  * @hidden
15
16
  */
package/map.module.d.ts CHANGED
@@ -3,20 +3,28 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from "@angular/core";
6
- import * as i1 from "./map.component";
7
- import * as i2 from "./map/layers.component";
8
- import * as i3 from "./map/bubble-layer.component";
9
- import * as i4 from "./map/marker-layer.component";
10
- import * as i5 from "./map/shape-layer.component";
11
- import * as i6 from "./map/tile-layer.component";
12
- import * as i7 from "./map/layer/tooltip.component";
13
- import * as i8 from "@angular/common";
14
- import * as i9 from "@progress/kendo-angular-common";
6
+ import * as i1 from "./map/bubble-layer.component";
7
+ import * as i2 from "./tooltip/bubble-tooltip.component";
8
+ import * as i3 from "./tooltip/bubble-tooltip-template.directive";
9
+ import * as i4 from "./map/layer/tooltip.component";
10
+ import * as i5 from "./map/layers.component";
11
+ import * as i6 from "./map.component";
12
+ import * as i7 from "./map/marker-layer.component";
13
+ import * as i8 from "./tooltip/marker-tooltip.component";
14
+ import * as i9 from "./tooltip/marker-tooltip-template.directive";
15
+ import * as i10 from "./map/shape-layer.component";
16
+ import * as i11 from "./tooltip/shape-tooltip.component";
17
+ import * as i12 from "./tooltip/shape-tooltip-template.directive";
18
+ import * as i13 from "./map/tile-layer.component";
19
+ import * as i14 from "./tooltip/tooltip-popup.component";
20
+ import * as i15 from "@angular/common";
21
+ import * as i16 from "@progress/kendo-angular-tooltip";
22
+ import * as i17 from "@progress/kendo-angular-common";
15
23
  /**
16
24
  * Sample module
17
25
  */
18
26
  export declare class MapModule {
19
27
  static ɵfac: i0.ɵɵFactoryDeclaration<MapModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.MapComponent, typeof i2.LayersComponent, typeof i3.BubbleLayerComponent, typeof i4.MarkerLayerComponent, typeof i5.ShapeLayerComponent, typeof i6.TileLayerComponent, typeof i7.LayerTooltipComponent], [typeof i8.CommonModule, typeof i9.ResizeSensorModule], [typeof i1.MapComponent, typeof i2.LayersComponent, typeof i3.BubbleLayerComponent, typeof i4.MarkerLayerComponent, typeof i5.ShapeLayerComponent, typeof i6.TileLayerComponent, typeof i7.LayerTooltipComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent], [typeof i15.CommonModule, typeof i16.TooltipsModule, typeof i17.ResizeSensorModule], [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent]>;
21
29
  static ɵinj: i0.ɵɵInjectorDeclaration<MapModule>;
22
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-map",
3
- "version": "0.1.1-dev.202205051036",
3
+ "version": "0.2.0-dev.202206160949",
4
4
  "description": "Kendo UI Map for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -25,7 +25,7 @@
25
25
  "friendlyName": "Map"
26
26
  },
27
27
  "dependencies": {
28
- "@progress/kendo-charts": "^1.23.4",
28
+ "@progress/kendo-charts": "dev",
29
29
  "@progress/kendo-schematics": "^3.0.0",
30
30
  "tslib": "^2.3.1"
31
31
  },
@@ -70,11 +70,11 @@
70
70
  "fallbackTags": {
71
71
  "dev": "latest"
72
72
  },
73
- "analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
73
+ "analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
74
74
  "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
75
- "getLastRelease": "@telerik/semantic-prerelease/getLastRelease",
76
- "verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
77
- "verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
75
+ "getLastRelease": "@progress/semantic-prerelease/getLastRelease",
76
+ "verifyConditions": "@progress/semantic-prerelease/verifyConditions",
77
+ "verifyRelease": "@progress/semantic-prerelease/verifyRelease"
78
78
  },
79
79
  "main": "bundles/kendo-angular-map.umd.js",
80
80
  "module": "fesm2015/kendo-angular-map.js",
@@ -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 { OnDestroy } from '@angular/core';
6
+ import { PopupService } from '@progress/kendo-angular-popup';
7
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { PopupSettings } from './popup-settings.interface';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare abstract class BaseTooltip implements OnDestroy {
14
+ protected popupService: PopupService;
15
+ protected localizationService: LocalizationService;
16
+ animate: boolean;
17
+ style: any;
18
+ templateRef: any;
19
+ popupRef: any;
20
+ popupSettings: PopupSettings;
21
+ constructor(popupService: PopupService, localizationService: LocalizationService);
22
+ get active(): boolean;
23
+ show(e: any): void;
24
+ hide(): void;
25
+ protected onInit(): void;
26
+ ngOnDestroy(): void;
27
+ protected position(offset: any): any;
28
+ private scrollOffset;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseTooltip, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseTooltip, never, never, {}, {}, never>;
31
+ }
@@ -0,0 +1,9 @@
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
+ /**
7
+ * @hidden
8
+ */
9
+ export declare function bodyFactory(): ElementRef;
@@ -0,0 +1,23 @@
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 { TemplateRef } 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`&mdash;The original data item used to create the bubble.
14
+ * * `layerIndex: number`&mdash;The index of the layer for the tooltip.
15
+ * * `location: Location`&mdash;The location of the bubble.
16
+ * * `value: number`&mdash;The value of the bubble.
17
+ */
18
+ export declare class BubbleTooltipTemplateDirective {
19
+ templateRef: TemplateRef<any>;
20
+ constructor(templateRef: TemplateRef<any>);
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<BubbleTooltipTemplateDirective, [{ optional: true; }]>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BubbleTooltipTemplateDirective, "[kendoMapBubbleTooltipTemplate]", never, {}, {}, never>;
23
+ }
@@ -0,0 +1,24 @@
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 { AfterContentChecked } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { SettingsComponent } from '../common/settings.component';
8
+ import { LayerComponent } from '../map/layer.component';
9
+ import { BubbleTooltipTemplateDirective } from './bubble-tooltip-template.directive';
10
+ import { TooltipTemplateService } from './tooltip-template.service';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * The configuration options of the [Bubble Layer Tooltip]({% slug bubble_layers_map %}#toc-tooltip).
14
+ */
15
+ export declare class BubbleTooltipComponent extends SettingsComponent implements AfterContentChecked {
16
+ configurationService: ConfigurationService;
17
+ private templateService;
18
+ private layer;
19
+ bubbleTooltipTemplate: BubbleTooltipTemplateDirective;
20
+ constructor(configurationService: ConfigurationService, templateService: TooltipTemplateService, layer: LayerComponent);
21
+ ngAfterContentChecked(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<BubbleTooltipComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<BubbleTooltipComponent, "kendo-map-bubble-layer-tooltip", never, {}, {}, ["bubbleTooltipTemplate"], never>;
24
+ }
@@ -0,0 +1,22 @@
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 { TemplateRef } 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`&mdash;The marker title.
14
+ * * `layerIndex: number`&mdash;The index of the layer for the tooltip.
15
+ * * `location: Location`&mdash;The marker location.
16
+ */
17
+ export declare class MarkerTooltipTemplateDirective {
18
+ templateRef: TemplateRef<any>;
19
+ constructor(templateRef: TemplateRef<any>);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkerTooltipTemplateDirective, [{ optional: true; }]>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MarkerTooltipTemplateDirective, "[kendoMapMarkerTooltipTemplate]", never, {}, {}, never>;
22
+ }
@@ -0,0 +1,24 @@
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 { AfterContentChecked } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { SettingsComponent } from '../common/settings.component';
8
+ import { LayerComponent } from '../map/layer.component';
9
+ import { MarkerTooltipTemplateDirective } from './marker-tooltip-template.directive';
10
+ import { TooltipTemplateService } from './tooltip-template.service';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * The configuration options of the [Marker Layer Tooltip]({% slug marker_layers_map %}#toc-tooltip).
14
+ */
15
+ export declare class MarkerTooltipComponent extends SettingsComponent implements AfterContentChecked {
16
+ configurationService: ConfigurationService;
17
+ private templateService;
18
+ private layer;
19
+ markerTooltipTemplate: MarkerTooltipTemplateDirective;
20
+ constructor(configurationService: ConfigurationService, templateService: TooltipTemplateService, layer: LayerComponent);
21
+ ngAfterContentChecked(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkerTooltipComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<MarkerTooltipComponent, "kendo-map-marker-layer-tooltip", never, {}, {}, ["markerTooltipTemplate"], never>;
24
+ }
@@ -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 { ViewContainerRef } from '@angular/core';
6
+ /**
7
+ * The settings for the tooltip popup.
8
+ */
9
+ export interface PopupSettings {
10
+ /**
11
+ * Defines the container to which the popup will be appended.
12
+ */
13
+ appendTo?: ViewContainerRef;
14
+ /**
15
+ * Specifies the class or classes for the popup.
16
+ */
17
+ popupClass?: string | Array<string> | Object;
18
+ }
@@ -0,0 +1,22 @@
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 { TemplateRef } 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
+ * [Shape layer tooltip]({% slug shape_layers_map %}#toc-tooltip).
11
+ *
12
+ * The available inputs for the shape tooltip template are:
13
+ * * `dataItem: any`&mdash;The original data item used to create the shape.
14
+ * * `layerIndex: number`&mdash;The index of the layer for the tooltip.
15
+ * * `location: Location`&mdash;The location of the center of the shape.
16
+ */
17
+ export declare class ShapeTooltipTemplateDirective {
18
+ templateRef: TemplateRef<any>;
19
+ constructor(templateRef: TemplateRef<any>);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShapeTooltipTemplateDirective, [{ optional: true; }]>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ShapeTooltipTemplateDirective, "[kendoMapShapeTooltipTemplate]", never, {}, {}, never>;
22
+ }
@@ -0,0 +1,24 @@
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 { AfterContentChecked } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { SettingsComponent } from '../common/settings.component';
8
+ import { LayerComponent } from '../map/layer.component';
9
+ import { ShapeTooltipTemplateDirective } from './shape-tooltip-template.directive';
10
+ import { TooltipTemplateService } from './tooltip-template.service';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * The configuration options of the [Shape Layer Tooltip]({% slug shape_layers_map %}#toc-tooltip).
14
+ */
15
+ export declare class ShapeTooltipComponent extends SettingsComponent implements AfterContentChecked {
16
+ configurationService: ConfigurationService;
17
+ private templateService;
18
+ private layer;
19
+ shapeTooltipTemplate: ShapeTooltipTemplateDirective;
20
+ constructor(configurationService: ConfigurationService, templateService: TooltipTemplateService, layer: LayerComponent);
21
+ ngAfterContentChecked(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShapeTooltipComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShapeTooltipComponent, "kendo-map-shape-layer-tooltip", never, {}, {}, ["shapeTooltipTemplate"], never>;
24
+ }
@@ -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 { TemplateRef, NgZone, EventEmitter } from '@angular/core';
6
+ import { BaseTooltip } from './base-tooltip';
7
+ import { TooltipTemplateService } from './tooltip-template.service';
8
+ import { PopupService } from '@progress/kendo-angular-popup';
9
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
10
+ import { PopupSettings } from './popup-settings.interface';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare class TooltipPopupComponent extends BaseTooltip {
16
+ protected popupService: PopupService;
17
+ protected templateService: TooltipTemplateService;
18
+ protected localizationService: LocalizationService;
19
+ protected ngZone: NgZone;
20
+ tooltipTemplateRef: TemplateRef<any>;
21
+ tooltipContext: any;
22
+ templateRef: TemplateRef<any>;
23
+ animate: boolean;
24
+ classNames: any;
25
+ popupSettings: PopupSettings;
26
+ wrapperClass: string;
27
+ leave: EventEmitter<any>;
28
+ popupClasses: any;
29
+ private mouseleaveSubscription;
30
+ constructor(popupService: PopupService, templateService: TooltipTemplateService, localizationService: LocalizationService, ngZone: NgZone);
31
+ show(e: any): void;
32
+ containsElement(element: any): boolean;
33
+ protected onInit(): void;
34
+ hide(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipPopupComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipPopupComponent, "kendo-map-tooltip-popup", never, { "animate": "animate"; "classNames": "classNames"; "popupSettings": "popupSettings"; "wrapperClass": "wrapperClass"; }, { "leave": "leave"; }, never, never>;
37
+ }
@@ -0,0 +1,16 @@
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 { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare class TooltipTemplateService {
11
+ private templates;
12
+ registerTemplate(layerIndex: number, template: TemplateRef<any>): void;
13
+ getTemplate(layerIndex: number): TemplateRef<any>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipTemplateService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<TooltipTemplateService>;
16
+ }
package/tooltip.d.ts ADDED
@@ -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
+ export { BubbleTooltipTemplateDirective } from './tooltip/bubble-tooltip-template.directive';
6
+ export { MarkerTooltipTemplateDirective } from './tooltip/marker-tooltip-template.directive';
7
+ export { ShapeTooltipTemplateDirective } from './tooltip/shape-tooltip-template.directive';
8
+ export { TooltipPopupComponent } from './tooltip/tooltip-popup.component';
9
+ export { BubbleTooltipComponent } from './tooltip/bubble-tooltip.component';
10
+ export { MarkerTooltipComponent } from './tooltip/marker-tooltip.component';
11
+ export { ShapeTooltipComponent } from './tooltip/shape-tooltip.component';