@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.
- package/bundles/kendo-angular-map.umd.js +1 -1
- package/common/collection-item.component.d.ts +1 -0
- package/common/collection.service.d.ts +1 -0
- package/common/has-parent.d.ts +8 -0
- package/esm2015/common/collection-item.component.js +1 -0
- package/esm2015/common/collection.component.js +5 -1
- package/esm2015/common/has-parent.js +14 -0
- package/esm2015/main.js +2 -0
- package/esm2015/map.component.js +74 -4
- package/esm2015/map.directives.js +12 -4
- package/esm2015/map.module.js +18 -10
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/tooltip/base-tooltip.js +90 -0
- package/esm2015/tooltip/body-factory.js +14 -0
- package/esm2015/tooltip/bubble-tooltip-template.directive.js +32 -0
- package/esm2015/tooltip/bubble-tooltip.component.js +38 -0
- package/esm2015/tooltip/marker-tooltip-template.directive.js +31 -0
- package/esm2015/tooltip/marker-tooltip.component.js +38 -0
- package/esm2015/tooltip/popup-settings.interface.js +5 -0
- package/esm2015/tooltip/shape-tooltip-template.directive.js +31 -0
- package/esm2015/tooltip/shape-tooltip.component.js +38 -0
- package/esm2015/tooltip/tooltip-popup.component.js +114 -0
- package/esm2015/tooltip/tooltip-template.service.js +29 -0
- package/esm2015/tooltip.js +11 -0
- package/fesm2015/kendo-angular-map.js +487 -14
- package/main.d.ts +2 -0
- package/map.component.d.ts +22 -3
- package/map.directives.d.ts +2 -1
- package/map.module.d.ts +18 -10
- package/package.json +6 -6
- package/tooltip/base-tooltip.d.ts +31 -0
- package/tooltip/body-factory.d.ts +9 -0
- package/tooltip/bubble-tooltip-template.directive.d.ts +23 -0
- package/tooltip/bubble-tooltip.component.d.ts +24 -0
- package/tooltip/marker-tooltip-template.directive.d.ts +22 -0
- package/tooltip/marker-tooltip.component.d.ts +24 -0
- package/tooltip/popup-settings.interface.d.ts +18 -0
- package/tooltip/shape-tooltip-template.directive.d.ts +22 -0
- package/tooltip/shape-tooltip.component.d.ts +24 -0
- package/tooltip/tooltip-popup.component.d.ts +37 -0
- package/tooltip/tooltip-template.service.d.ts +16 -0
- package/tooltip.d.ts +11 -0
|
@@ -0,0 +1,38 @@
|
|
|
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 { Component, ContentChild } from '@angular/core';
|
|
6
|
+
import { SettingsComponent } from '../common/settings.component';
|
|
7
|
+
import { BubbleTooltipTemplateDirective } from './bubble-tooltip-template.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../common/configuration.service";
|
|
10
|
+
import * as i2 from "./tooltip-template.service";
|
|
11
|
+
import * as i3 from "../map/layer.component";
|
|
12
|
+
/**
|
|
13
|
+
* The configuration options of the [Bubble Layer Tooltip]({% slug bubble_layers_map %}#toc-tooltip).
|
|
14
|
+
*/
|
|
15
|
+
export class BubbleTooltipComponent extends SettingsComponent {
|
|
16
|
+
constructor(configurationService, templateService, layer) {
|
|
17
|
+
super('tooltip', configurationService);
|
|
18
|
+
this.configurationService = configurationService;
|
|
19
|
+
this.templateService = templateService;
|
|
20
|
+
this.layer = layer;
|
|
21
|
+
}
|
|
22
|
+
ngAfterContentChecked() {
|
|
23
|
+
var _a;
|
|
24
|
+
this.templateService.registerTemplate(this.layer.index, (_a = this.bubbleTooltipTemplate) === null || _a === void 0 ? void 0 : _a.templateRef);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
BubbleTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BubbleTooltipComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.TooltipTemplateService }, { token: i3.LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
BubbleTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BubbleTooltipComponent, selector: "kendo-map-bubble-layer-tooltip", queries: [{ propertyName: "bubbleTooltipTemplate", first: true, predicate: BubbleTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BubbleTooltipComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: 'kendo-map-bubble-layer-tooltip',
|
|
33
|
+
template: ''
|
|
34
|
+
}]
|
|
35
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.TooltipTemplateService }, { type: i3.LayerComponent }]; }, propDecorators: { bubbleTooltipTemplate: [{
|
|
36
|
+
type: ContentChild,
|
|
37
|
+
args: [BubbleTooltipTemplateDirective, { static: false }]
|
|
38
|
+
}] } });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Optional } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A directive that sets a [template]({{ site.data.urls.angular['templatesyntax'] }})
|
|
9
|
+
* within the `<kendo-map-tooltip>` component for the Map
|
|
10
|
+
* [Marker layer tooltip]({% slug marker_layers_map %}#toc-tooltip).
|
|
11
|
+
*
|
|
12
|
+
* The available inputs for the marker tooltip template are:
|
|
13
|
+
* * `title: string`—The marker title.
|
|
14
|
+
* * `layerIndex: number`—The index of the layer for the tooltip.
|
|
15
|
+
* * `location: Location`—The marker location.
|
|
16
|
+
*/
|
|
17
|
+
export class MarkerTooltipTemplateDirective {
|
|
18
|
+
constructor(templateRef) {
|
|
19
|
+
this.templateRef = templateRef;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
MarkerTooltipTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerTooltipTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
MarkerTooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MarkerTooltipTemplateDirective, selector: "[kendoMapMarkerTooltipTemplate]", ngImport: i0 });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerTooltipTemplateDirective, decorators: [{
|
|
25
|
+
type: Directive,
|
|
26
|
+
args: [{
|
|
27
|
+
selector: '[kendoMapMarkerTooltipTemplate]'
|
|
28
|
+
}]
|
|
29
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
30
|
+
type: Optional
|
|
31
|
+
}] }]; } });
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { Component, ContentChild } from '@angular/core';
|
|
6
|
+
import { SettingsComponent } from '../common/settings.component';
|
|
7
|
+
import { MarkerTooltipTemplateDirective } from './marker-tooltip-template.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../common/configuration.service";
|
|
10
|
+
import * as i2 from "./tooltip-template.service";
|
|
11
|
+
import * as i3 from "../map/layer.component";
|
|
12
|
+
/**
|
|
13
|
+
* The configuration options of the [Marker Layer Tooltip]({% slug marker_layers_map %}#toc-tooltip).
|
|
14
|
+
*/
|
|
15
|
+
export class MarkerTooltipComponent extends SettingsComponent {
|
|
16
|
+
constructor(configurationService, templateService, layer) {
|
|
17
|
+
super('tooltip', configurationService);
|
|
18
|
+
this.configurationService = configurationService;
|
|
19
|
+
this.templateService = templateService;
|
|
20
|
+
this.layer = layer;
|
|
21
|
+
}
|
|
22
|
+
ngAfterContentChecked() {
|
|
23
|
+
var _a;
|
|
24
|
+
this.templateService.registerTemplate(this.layer.index, (_a = this.markerTooltipTemplate) === null || _a === void 0 ? void 0 : _a.templateRef);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
MarkerTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerTooltipComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.TooltipTemplateService }, { token: i3.LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
MarkerTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MarkerTooltipComponent, selector: "kendo-map-marker-layer-tooltip", queries: [{ propertyName: "markerTooltipTemplate", first: true, predicate: MarkerTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerTooltipComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: 'kendo-map-marker-layer-tooltip',
|
|
33
|
+
template: ''
|
|
34
|
+
}]
|
|
35
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.TooltipTemplateService }, { type: i3.LayerComponent }]; }, propDecorators: { markerTooltipTemplate: [{
|
|
36
|
+
type: ContentChild,
|
|
37
|
+
args: [MarkerTooltipTemplateDirective, { static: false }]
|
|
38
|
+
}] } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Optional } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A directive that sets a [template]({{ site.data.urls.angular['templatesyntax'] }})
|
|
9
|
+
* within the `<kendo-map-tooltip>` component for the Map
|
|
10
|
+
* [Shape layer tooltip]({% slug shape_layers_map %}#toc-tooltip).
|
|
11
|
+
*
|
|
12
|
+
* The available inputs for the shape tooltip template are:
|
|
13
|
+
* * `dataItem: any`—The original data item used to create the shape.
|
|
14
|
+
* * `layerIndex: number`—The index of the layer for the tooltip.
|
|
15
|
+
* * `location: Location`—The location of the center of the shape.
|
|
16
|
+
*/
|
|
17
|
+
export class ShapeTooltipTemplateDirective {
|
|
18
|
+
constructor(templateRef) {
|
|
19
|
+
this.templateRef = templateRef;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
ShapeTooltipTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShapeTooltipTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
ShapeTooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ShapeTooltipTemplateDirective, selector: "[kendoMapShapeTooltipTemplate]", ngImport: i0 });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShapeTooltipTemplateDirective, decorators: [{
|
|
25
|
+
type: Directive,
|
|
26
|
+
args: [{
|
|
27
|
+
selector: '[kendoMapShapeTooltipTemplate]'
|
|
28
|
+
}]
|
|
29
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
30
|
+
type: Optional
|
|
31
|
+
}] }]; } });
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { Component, ContentChild } from '@angular/core';
|
|
6
|
+
import { SettingsComponent } from '../common/settings.component';
|
|
7
|
+
import { ShapeTooltipTemplateDirective } from './shape-tooltip-template.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../common/configuration.service";
|
|
10
|
+
import * as i2 from "./tooltip-template.service";
|
|
11
|
+
import * as i3 from "../map/layer.component";
|
|
12
|
+
/**
|
|
13
|
+
* The configuration options of the [Shape Layer Tooltip]({% slug shape_layers_map %}#toc-tooltip).
|
|
14
|
+
*/
|
|
15
|
+
export class ShapeTooltipComponent extends SettingsComponent {
|
|
16
|
+
constructor(configurationService, templateService, layer) {
|
|
17
|
+
super('tooltip', configurationService);
|
|
18
|
+
this.configurationService = configurationService;
|
|
19
|
+
this.templateService = templateService;
|
|
20
|
+
this.layer = layer;
|
|
21
|
+
}
|
|
22
|
+
ngAfterContentChecked() {
|
|
23
|
+
var _a;
|
|
24
|
+
this.templateService.registerTemplate(this.layer.index, (_a = this.shapeTooltipTemplate) === null || _a === void 0 ? void 0 : _a.templateRef);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
ShapeTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShapeTooltipComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.TooltipTemplateService }, { token: i3.LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
ShapeTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ShapeTooltipComponent, selector: "kendo-map-shape-layer-tooltip", queries: [{ propertyName: "shapeTooltipTemplate", first: true, predicate: ShapeTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShapeTooltipComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: 'kendo-map-shape-layer-tooltip',
|
|
33
|
+
template: ''
|
|
34
|
+
}]
|
|
35
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.TooltipTemplateService }, { type: i3.LayerComponent }]; }, propDecorators: { shapeTooltipTemplate: [{
|
|
36
|
+
type: ContentChild,
|
|
37
|
+
args: [ShapeTooltipTemplateDirective, { static: false }]
|
|
38
|
+
}] } });
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
|
6
|
+
import { BaseTooltip } from './base-tooltip';
|
|
7
|
+
import { hasParent } from '../common/has-parent';
|
|
8
|
+
import { PopupService, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
|
|
9
|
+
import { bodyFactory } from './body-factory';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@progress/kendo-angular-popup";
|
|
12
|
+
import * as i2 from "./tooltip-template.service";
|
|
13
|
+
import * as i3 from "@progress/kendo-angular-l10n";
|
|
14
|
+
import * as i4 from "@angular/common";
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export class TooltipPopupComponent extends BaseTooltip {
|
|
19
|
+
constructor(popupService, templateService, localizationService, ngZone) {
|
|
20
|
+
super(popupService, localizationService);
|
|
21
|
+
this.popupService = popupService;
|
|
22
|
+
this.templateService = templateService;
|
|
23
|
+
this.localizationService = localizationService;
|
|
24
|
+
this.ngZone = ngZone;
|
|
25
|
+
this.tooltipContext = {};
|
|
26
|
+
this.animate = true;
|
|
27
|
+
this.wrapperClass = 'k-tooltip-wrapper';
|
|
28
|
+
this.leave = new EventEmitter();
|
|
29
|
+
this.popupClasses = {};
|
|
30
|
+
}
|
|
31
|
+
show(e) {
|
|
32
|
+
this.tooltipTemplateRef = this.templateService.getTemplate(e.layerIndex);
|
|
33
|
+
if (!this.tooltipTemplateRef) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.popupClasses = Object.assign({
|
|
37
|
+
'k-tooltip': true,
|
|
38
|
+
'k-map-tooltip': true,
|
|
39
|
+
[e.className]: Boolean(e.className)
|
|
40
|
+
}, this.classNames);
|
|
41
|
+
this.tooltipContext = e;
|
|
42
|
+
super.show(e);
|
|
43
|
+
}
|
|
44
|
+
containsElement(element) {
|
|
45
|
+
if (this.popupRef) {
|
|
46
|
+
return hasParent(element, this.popupRef.popupElement);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
onInit() {
|
|
50
|
+
this.ngZone.runOutsideAngular(() => {
|
|
51
|
+
this.mouseleaveSubscription = this.popupRef.popupElement.addEventListener('mouseleave', (args) => {
|
|
52
|
+
this.leave.emit(args);
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
this.popupRef.popupElement.classList.add(this.wrapperClass);
|
|
56
|
+
}
|
|
57
|
+
hide() {
|
|
58
|
+
if (this.mouseleaveSubscription) {
|
|
59
|
+
this.mouseleaveSubscription();
|
|
60
|
+
this.mouseleaveSubscription = null;
|
|
61
|
+
}
|
|
62
|
+
this.tooltipTemplateRef = null;
|
|
63
|
+
super.hide();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
TooltipPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipPopupComponent, deps: [{ token: i1.PopupService }, { token: i2.TooltipTemplateService }, { token: i3.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
+
TooltipPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: { animate: "animate", classNames: "classNames", popupSettings: "popupSettings", wrapperClass: "wrapperClass" }, outputs: { leave: "leave" }, providers: [PopupService, {
|
|
68
|
+
provide: POPUP_CONTAINER,
|
|
69
|
+
useFactory: bodyFactory
|
|
70
|
+
}], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
71
|
+
<ng-template #content>
|
|
72
|
+
<div [ngClass]="popupClasses" [ngStyle]="style">
|
|
73
|
+
<div class="k-tooltip-content">
|
|
74
|
+
<ng-template [ngTemplateOutlet]="tooltipTemplateRef"
|
|
75
|
+
[ngTemplateOutletContext]="tooltipContext">
|
|
76
|
+
</ng-template>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</ng-template>
|
|
80
|
+
`, isInline: true, directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipPopupComponent, decorators: [{
|
|
82
|
+
type: Component,
|
|
83
|
+
args: [{
|
|
84
|
+
providers: [PopupService, {
|
|
85
|
+
provide: POPUP_CONTAINER,
|
|
86
|
+
useFactory: bodyFactory
|
|
87
|
+
}],
|
|
88
|
+
selector: 'kendo-map-tooltip-popup',
|
|
89
|
+
template: `
|
|
90
|
+
<ng-template #content>
|
|
91
|
+
<div [ngClass]="popupClasses" [ngStyle]="style">
|
|
92
|
+
<div class="k-tooltip-content">
|
|
93
|
+
<ng-template [ngTemplateOutlet]="tooltipTemplateRef"
|
|
94
|
+
[ngTemplateOutletContext]="tooltipContext">
|
|
95
|
+
</ng-template>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</ng-template>
|
|
99
|
+
`
|
|
100
|
+
}]
|
|
101
|
+
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.TooltipTemplateService }, { type: i3.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { templateRef: [{
|
|
102
|
+
type: ViewChild,
|
|
103
|
+
args: ['content', { static: true }]
|
|
104
|
+
}], animate: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], classNames: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], popupSettings: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], wrapperClass: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], leave: [{
|
|
113
|
+
type: Output
|
|
114
|
+
}] } });
|
|
@@ -0,0 +1,29 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export class TooltipTemplateService {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.templates = [];
|
|
13
|
+
}
|
|
14
|
+
registerTemplate(layerIndex, template) {
|
|
15
|
+
if (layerIndex > -1) {
|
|
16
|
+
this.templates[layerIndex] = template;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
getTemplate(layerIndex) {
|
|
20
|
+
if (layerIndex > -1) {
|
|
21
|
+
return this.templates[layerIndex];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
TooltipTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipTemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
+
TooltipTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipTemplateService });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipTemplateService, decorators: [{
|
|
28
|
+
type: Injectable
|
|
29
|
+
}] });
|
|
@@ -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';
|