@progress/kendo-angular-map 0.1.1-dev.202205050626 → 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.
Files changed (34) hide show
  1. package/bundles/kendo-angular-map.umd.js +1 -1
  2. package/common/has-parent.d.ts +8 -0
  3. package/esm2015/common/has-parent.js +14 -0
  4. package/esm2015/main.js +2 -0
  5. package/esm2015/map.component.js +74 -4
  6. package/esm2015/map.directives.js +14 -4
  7. package/esm2015/map.module.js +16 -10
  8. package/esm2015/package-metadata.js +1 -1
  9. package/esm2015/tooltip/base-tooltip.js +92 -0
  10. package/esm2015/tooltip/body-factory.js +14 -0
  11. package/esm2015/tooltip/bubble-tooltip-template.directive.js +31 -0
  12. package/esm2015/tooltip/marker-tooltip-template.directive.js +30 -0
  13. package/esm2015/tooltip/popup-settings.interface.js +5 -0
  14. package/esm2015/tooltip/shape-tooltip-template.directive.js +30 -0
  15. package/esm2015/tooltip/tooltip-popup.component.js +114 -0
  16. package/esm2015/tooltip/tooltip-template.service.js +16 -0
  17. package/esm2015/tooltip/tooltip.component.js +49 -0
  18. package/esm2015/tooltip.js +9 -0
  19. package/fesm2015/kendo-angular-map.js +419 -13
  20. package/main.d.ts +2 -0
  21. package/map.component.d.ts +22 -3
  22. package/map.directives.d.ts +6 -1
  23. package/map.module.d.ts +16 -10
  24. package/package.json +1 -1
  25. package/tooltip/base-tooltip.d.ts +31 -0
  26. package/tooltip/body-factory.d.ts +9 -0
  27. package/tooltip/bubble-tooltip-template.directive.d.ts +22 -0
  28. package/tooltip/marker-tooltip-template.directive.d.ts +21 -0
  29. package/tooltip/popup-settings.interface.d.ts +18 -0
  30. package/tooltip/shape-tooltip-template.directive.d.ts +21 -0
  31. package/tooltip/tooltip-popup.component.d.ts +37 -0
  32. package/tooltip/tooltip-template.service.d.ts +16 -0
  33. package/tooltip/tooltip.component.d.ts +31 -0
  34. package/tooltip.d.ts +9 -0
package/map.module.d.ts CHANGED
@@ -3,20 +3,26 @@
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-template.directive";
8
+ import * as i3 from "./map/layers.component";
9
+ import * as i4 from "./map/layer/tooltip.component";
10
+ import * as i5 from "./map.component";
11
+ import * as i6 from "./map/marker-layer.component";
12
+ import * as i7 from "./tooltip/marker-tooltip-template.directive";
13
+ import * as i8 from "./map/shape-layer.component";
14
+ import * as i9 from "./tooltip/shape-tooltip-template.directive";
15
+ import * as i10 from "./map/tile-layer.component";
16
+ import * as i11 from "./tooltip/tooltip.component";
17
+ import * as i12 from "./tooltip/tooltip-popup.component";
18
+ import * as i13 from "@angular/common";
19
+ import * as i14 from "@progress/kendo-angular-tooltip";
20
+ import * as i15 from "@progress/kendo-angular-common";
15
21
  /**
16
22
  * Sample module
17
23
  */
18
24
  export declare class MapModule {
19
25
  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]>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipTemplateDirective, typeof i3.LayersComponent, typeof i4.LayerTooltipComponent, typeof i5.MapComponent, typeof i6.MarkerLayerComponent, typeof i7.MarkerTooltipTemplateDirective, typeof i8.ShapeLayerComponent, typeof i9.ShapeTooltipTemplateDirective, typeof i10.TileLayerComponent, typeof i11.TooltipComponent, typeof i12.TooltipPopupComponent], [typeof i13.CommonModule, typeof i14.TooltipsModule, typeof i15.ResizeSensorModule], [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipTemplateDirective, typeof i3.LayersComponent, typeof i4.LayerTooltipComponent, typeof i5.MapComponent, typeof i6.MarkerLayerComponent, typeof i7.MarkerTooltipTemplateDirective, typeof i8.ShapeLayerComponent, typeof i9.ShapeTooltipTemplateDirective, typeof i10.TileLayerComponent, typeof i11.TooltipComponent, typeof i12.TooltipPopupComponent]>;
21
27
  static ɵinj: i0.ɵɵInjectorDeclaration<MapModule>;
22
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-map",
3
- "version": "0.1.1-dev.202205050626",
3
+ "version": "0.2.0-dev.202206021322",
4
4
  "description": "Kendo UI Map for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -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,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
+ * [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
+ * * `location: Location`&mdash;The location of the bubble.
15
+ * * `value: number`&mdash;The value of the bubble.
16
+ */
17
+ export declare class BubbleTooltipTemplateDirective {
18
+ templateRef: TemplateRef<any>;
19
+ constructor(templateRef: TemplateRef<any>);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<BubbleTooltipTemplateDirective, [{ optional: true; }]>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BubbleTooltipTemplateDirective, "[kendoMapBubbleTooltipTemplate]", never, {}, {}, never>;
22
+ }
@@ -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
+ 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
+ * * `location: Location`&mdash;The marker location.
15
+ */
16
+ export declare class MarkerTooltipTemplateDirective {
17
+ templateRef: TemplateRef<any>;
18
+ constructor(templateRef: TemplateRef<any>);
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkerTooltipTemplateDirective, [{ optional: true; }]>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MarkerTooltipTemplateDirective, "[kendoMapMarkerTooltipTemplate]", never, {}, {}, never>;
21
+ }
@@ -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,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
+ 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
+ * * `location: Location`&mdash;The location of the center of the shape.
15
+ */
16
+ export declare class ShapeTooltipTemplateDirective {
17
+ templateRef: TemplateRef<any>;
18
+ constructor(templateRef: TemplateRef<any>);
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShapeTooltipTemplateDirective, [{ optional: true; }]>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ShapeTooltipTemplateDirective, "[kendoMapShapeTooltipTemplate]", never, {}, {}, never>;
21
+ }
@@ -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
+ markerTemplate: TemplateRef<any>;
12
+ shapeTemplate: TemplateRef<any>;
13
+ bubbleTemplate: TemplateRef<any>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipTemplateService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<TooltipTemplateService>;
16
+ }
@@ -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 { AfterContentChecked } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { SettingsComponent } from '../common/settings.component';
8
+ import { BubbleTooltipTemplateDirective } from './bubble-tooltip-template.directive';
9
+ import { MarkerTooltipTemplateDirective } from './marker-tooltip-template.directive';
10
+ import { ShapeTooltipTemplateDirective } from './shape-tooltip-template.directive';
11
+ import { TooltipTemplateService } from './tooltip-template.service';
12
+ import * as i0 from "@angular/core";
13
+ /**
14
+ * The configuration options of the Marker Layer tooltip.
15
+ */
16
+ export declare class TooltipComponent extends SettingsComponent implements AfterContentChecked {
17
+ configurationService: ConfigurationService;
18
+ private templateService;
19
+ /**
20
+ * If set to `true`, the Map displays the built-in tooltips for markers, shapes and bubbles.
21
+ * By default, the built-in tooltips are not displayed.
22
+ */
23
+ visible: boolean;
24
+ markerTooltipTemplate: MarkerTooltipTemplateDirective;
25
+ shapeTooltipTemplate: ShapeTooltipTemplateDirective;
26
+ bubbleTooltipTemplate: BubbleTooltipTemplateDirective;
27
+ constructor(configurationService: ConfigurationService, templateService: TooltipTemplateService);
28
+ ngAfterContentChecked(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "kendo-map-tooltip", never, { "visible": "visible"; }, {}, ["markerTooltipTemplate", "shapeTooltipTemplate", "bubbleTooltipTemplate"], never>;
31
+ }
package/tooltip.d.ts ADDED
@@ -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
+ 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 { TooltipComponent } from './tooltip/tooltip.component';
9
+ export { TooltipPopupComponent } from './tooltip/tooltip-popup.component';