@progress/kendo-angular-map 17.0.0-develop.9 → 17.0.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.
- package/README.md +25 -16
- package/common/collection.component.d.ts +1 -1
- package/{esm2020 → esm2022}/common/collection-item.component.mjs +8 -5
- package/{esm2020 → esm2022}/common/collection.component.mjs +15 -6
- package/{esm2020 → esm2022}/common/collection.service.mjs +7 -3
- package/{esm2020 → esm2022}/common/configuration.service.mjs +9 -5
- package/{esm2020 → esm2022}/common/map-instance-observer.mjs +8 -8
- package/{esm2020 → esm2022}/common/settings.component.mjs +6 -4
- package/{esm2020 → esm2022}/events/base-event.mjs +7 -3
- package/{esm2020 → esm2022}/events/map-click-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/marker-activate-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/marker-click-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/marker-created-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/pan-end-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/pan-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/preventable-event.mjs +4 -7
- package/{esm2020 → esm2022}/events/shape-click-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/shape-created-event.mjs +16 -0
- package/{esm2020 → esm2022}/events/shape-feature-created-event.mjs +16 -0
- package/{esm2020 → esm2022}/events/shape-mouse-enter-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/shape-mouse-leave-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/zoom-end-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/zoom-start-event.mjs +4 -0
- package/{esm2020 → esm2022}/map/bubble-layer.component.mjs +48 -9
- package/{esm2020 → esm2022}/map/layer/tooltip.component.mjs +5 -3
- package/{esm2020 → esm2022}/map/layer.component.mjs +32 -3
- package/{esm2020 → esm2022}/map/layers.component.mjs +6 -9
- package/{esm2020 → esm2022}/map/marker-layer.component.mjs +32 -9
- package/{esm2020 → esm2022}/map/shape-layer.component.mjs +20 -9
- package/{esm2020 → esm2022}/map/tile-layer.component.mjs +28 -9
- package/{esm2020 → esm2022}/map.component.mjs +198 -132
- package/{esm2020 → esm2022}/map.module.mjs +4 -4
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/tooltip/base-tooltip.mjs +19 -10
- package/{esm2020 → esm2022}/tooltip/bubble-tooltip-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tooltip/bubble-tooltip.component.mjs +7 -3
- package/{esm2020 → esm2022}/tooltip/marker-tooltip-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tooltip/marker-tooltip.component.mjs +7 -3
- package/{esm2020 → esm2022}/tooltip/shape-tooltip-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tooltip/shape-tooltip.component.mjs +7 -3
- package/{esm2020 → esm2022}/tooltip/tooltip-popup.component.mjs +21 -19
- package/{esm2020 → esm2022}/tooltip/tooltip-template.service.mjs +4 -6
- package/{fesm2020 → fesm2022}/progress-kendo-angular-map.mjs +645 -279
- package/map/bubble-layer.component.d.ts +1 -1
- package/map/layer.component.d.ts +1 -1
- package/map/layers.component.d.ts +2 -4
- package/map/marker-layer.component.d.ts +1 -1
- package/map/shape-layer.component.d.ts +1 -1
- package/map/tile-layer.component.d.ts +1 -1
- package/map.component.d.ts +1 -1
- package/package.json +16 -22
- package/schematics/ngAdd/index.js +1 -1
- package/tooltip/base-tooltip.d.ts +3 -3
- package/tooltip/tooltip-popup.component.d.ts +1 -4
- package/fesm2015/progress-kendo-angular-map.mjs +0 -1958
- /package/{esm2020 → esm2022}/common/copy-changes.mjs +0 -0
- /package/{esm2020 → esm2022}/common/has-parent.mjs +0 -0
- /package/{esm2020 → esm2022}/common/to-simple-changes.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/events/before-reset-event.mjs +0 -0
- /package/{esm2020 → esm2022}/events/instance-event.service.mjs +0 -0
- /package/{esm2020 → esm2022}/events/reset-event.mjs +0 -0
- /package/{esm2020 → esm2022}/events.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-map.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/body-factory.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/popup-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip.mjs +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 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 { Directive } from '@angular/core';
|
|
5
|
+
import { Directive, Input, TemplateRef, ViewChild } from '@angular/core';
|
|
6
6
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -14,14 +14,18 @@ const COLLISION = { horizontal: "fit", vertical: "fit" };
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export class BaseTooltip {
|
|
17
|
+
popupService;
|
|
18
|
+
localizationService;
|
|
19
|
+
animate = true;
|
|
20
|
+
style = {
|
|
21
|
+
position: 'relative'
|
|
22
|
+
};
|
|
23
|
+
templateRef;
|
|
24
|
+
popupRef = null;
|
|
25
|
+
popupSettings;
|
|
17
26
|
constructor(popupService, localizationService) {
|
|
18
27
|
this.popupService = popupService;
|
|
19
28
|
this.localizationService = localizationService;
|
|
20
|
-
this.animate = true;
|
|
21
|
-
this.style = {
|
|
22
|
-
position: 'relative'
|
|
23
|
-
};
|
|
24
|
-
this.popupRef = null;
|
|
25
29
|
}
|
|
26
30
|
get active() {
|
|
27
31
|
return this.popupRef !== null;
|
|
@@ -85,9 +89,14 @@ export class BaseTooltip {
|
|
|
85
89
|
}
|
|
86
90
|
return { scrollLeft, scrollTop };
|
|
87
91
|
}
|
|
92
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseTooltip, deps: [{ token: i1.PopupService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
93
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BaseTooltip, inputs: { popupSettings: "popupSettings" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, static: true }], ngImport: i0 });
|
|
88
94
|
}
|
|
89
|
-
|
|
90
|
-
BaseTooltip.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseTooltip, ngImport: i0 });
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseTooltip, decorators: [{
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseTooltip, decorators: [{
|
|
92
96
|
type: Directive
|
|
93
|
-
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.LocalizationService }]; }
|
|
97
|
+
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.LocalizationService }]; }, propDecorators: { templateRef: [{
|
|
98
|
+
type: ViewChild,
|
|
99
|
+
args: ['content', { static: true }]
|
|
100
|
+
}], popupSettings: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}] } });
|
|
@@ -16,13 +16,14 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* * `value: number`—The value of the bubble.
|
|
17
17
|
*/
|
|
18
18
|
export class BubbleTooltipTemplateDirective {
|
|
19
|
+
templateRef;
|
|
19
20
|
constructor(templateRef) {
|
|
20
21
|
this.templateRef = templateRef;
|
|
21
22
|
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubbleTooltipTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BubbleTooltipTemplateDirective, isStandalone: true, selector: "[kendoMapBubbleTooltipTemplate]", ngImport: i0 });
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
BubbleTooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BubbleTooltipTemplateDirective, isStandalone: true, selector: "[kendoMapBubbleTooltipTemplate]", ngImport: i0 });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BubbleTooltipTemplateDirective, decorators: [{
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubbleTooltipTemplateDirective, decorators: [{
|
|
26
27
|
type: Directive,
|
|
27
28
|
args: [{
|
|
28
29
|
selector: '[kendoMapBubbleTooltipTemplate]',
|
|
@@ -16,6 +16,10 @@ import * as i3 from "../map/layer.component";
|
|
|
16
16
|
* The configuration options of the [Bubble Layer Tooltip](slug:bubble_layers_map#toc-tooltips).
|
|
17
17
|
*/
|
|
18
18
|
export class BubbleTooltipComponent extends SettingsComponent {
|
|
19
|
+
configurationService;
|
|
20
|
+
templateService;
|
|
21
|
+
layer;
|
|
22
|
+
bubbleTooltipTemplate;
|
|
19
23
|
constructor(configurationService, templateService, layer) {
|
|
20
24
|
super('tooltip', configurationService);
|
|
21
25
|
this.configurationService = configurationService;
|
|
@@ -25,10 +29,10 @@ export class BubbleTooltipComponent extends SettingsComponent {
|
|
|
25
29
|
ngAfterContentChecked() {
|
|
26
30
|
this.templateService.registerTemplate(this.layer.index, this.bubbleTooltipTemplate?.templateRef);
|
|
27
31
|
}
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubbleTooltipComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.TooltipTemplateService }, { token: i3.LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BubbleTooltipComponent, isStandalone: true, selector: "kendo-map-bubble-layer-tooltip", queries: [{ propertyName: "bubbleTooltipTemplate", first: true, predicate: BubbleTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
28
34
|
}
|
|
29
|
-
|
|
30
|
-
BubbleTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: BubbleTooltipComponent, isStandalone: true, selector: "kendo-map-bubble-layer-tooltip", queries: [{ propertyName: "bubbleTooltipTemplate", first: true, predicate: BubbleTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BubbleTooltipComponent, decorators: [{
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubbleTooltipComponent, decorators: [{
|
|
32
36
|
type: Component,
|
|
33
37
|
args: [{
|
|
34
38
|
selector: 'kendo-map-bubble-layer-tooltip',
|
|
@@ -15,13 +15,14 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* * `location: Location`—The marker location.
|
|
16
16
|
*/
|
|
17
17
|
export class MarkerTooltipTemplateDirective {
|
|
18
|
+
templateRef;
|
|
18
19
|
constructor(templateRef) {
|
|
19
20
|
this.templateRef = templateRef;
|
|
20
21
|
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarkerTooltipTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MarkerTooltipTemplateDirective, isStandalone: true, selector: "[kendoMapMarkerTooltipTemplate]", ngImport: i0 });
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
MarkerTooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MarkerTooltipTemplateDirective, isStandalone: true, selector: "[kendoMapMarkerTooltipTemplate]", ngImport: i0 });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MarkerTooltipTemplateDirective, decorators: [{
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarkerTooltipTemplateDirective, decorators: [{
|
|
25
26
|
type: Directive,
|
|
26
27
|
args: [{
|
|
27
28
|
selector: '[kendoMapMarkerTooltipTemplate]',
|
|
@@ -16,6 +16,10 @@ import * as i3 from "../map/layer.component";
|
|
|
16
16
|
* The configuration options of the [Marker Layer Tooltip](slug:marker_layers_map#toc-tooltips).
|
|
17
17
|
*/
|
|
18
18
|
export class MarkerTooltipComponent extends SettingsComponent {
|
|
19
|
+
configurationService;
|
|
20
|
+
templateService;
|
|
21
|
+
layer;
|
|
22
|
+
markerTooltipTemplate;
|
|
19
23
|
constructor(configurationService, templateService, layer) {
|
|
20
24
|
super('tooltip', configurationService);
|
|
21
25
|
this.configurationService = configurationService;
|
|
@@ -25,10 +29,10 @@ export class MarkerTooltipComponent extends SettingsComponent {
|
|
|
25
29
|
ngAfterContentChecked() {
|
|
26
30
|
this.templateService.registerTemplate(this.layer.index, this.markerTooltipTemplate?.templateRef);
|
|
27
31
|
}
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarkerTooltipComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.TooltipTemplateService }, { token: i3.LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MarkerTooltipComponent, isStandalone: true, selector: "kendo-map-marker-layer-tooltip", queries: [{ propertyName: "markerTooltipTemplate", first: true, predicate: MarkerTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
28
34
|
}
|
|
29
|
-
|
|
30
|
-
MarkerTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MarkerTooltipComponent, isStandalone: true, selector: "kendo-map-marker-layer-tooltip", queries: [{ propertyName: "markerTooltipTemplate", first: true, predicate: MarkerTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MarkerTooltipComponent, decorators: [{
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarkerTooltipComponent, decorators: [{
|
|
32
36
|
type: Component,
|
|
33
37
|
args: [{
|
|
34
38
|
selector: 'kendo-map-marker-layer-tooltip',
|
|
@@ -15,13 +15,14 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* * `location: Location`—The location of the center of the shape.
|
|
16
16
|
*/
|
|
17
17
|
export class ShapeTooltipTemplateDirective {
|
|
18
|
+
templateRef;
|
|
18
19
|
constructor(templateRef) {
|
|
19
20
|
this.templateRef = templateRef;
|
|
20
21
|
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ShapeTooltipTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ShapeTooltipTemplateDirective, isStandalone: true, selector: "[kendoMapShapeTooltipTemplate]", ngImport: i0 });
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
ShapeTooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ShapeTooltipTemplateDirective, isStandalone: true, selector: "[kendoMapShapeTooltipTemplate]", ngImport: i0 });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShapeTooltipTemplateDirective, decorators: [{
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ShapeTooltipTemplateDirective, decorators: [{
|
|
25
26
|
type: Directive,
|
|
26
27
|
args: [{
|
|
27
28
|
selector: '[kendoMapShapeTooltipTemplate]',
|
|
@@ -16,6 +16,10 @@ import * as i3 from "../map/layer.component";
|
|
|
16
16
|
* The configuration options of the [Shape Layer Tooltip](slug:shape_layers_map#toc-tooltips).
|
|
17
17
|
*/
|
|
18
18
|
export class ShapeTooltipComponent extends SettingsComponent {
|
|
19
|
+
configurationService;
|
|
20
|
+
templateService;
|
|
21
|
+
layer;
|
|
22
|
+
shapeTooltipTemplate;
|
|
19
23
|
constructor(configurationService, templateService, layer) {
|
|
20
24
|
super('tooltip', configurationService);
|
|
21
25
|
this.configurationService = configurationService;
|
|
@@ -25,10 +29,10 @@ export class ShapeTooltipComponent extends SettingsComponent {
|
|
|
25
29
|
ngAfterContentChecked() {
|
|
26
30
|
this.templateService.registerTemplate(this.layer.index, this.shapeTooltipTemplate?.templateRef);
|
|
27
31
|
}
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ShapeTooltipComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.TooltipTemplateService }, { token: i3.LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ShapeTooltipComponent, isStandalone: true, selector: "kendo-map-shape-layer-tooltip", queries: [{ propertyName: "shapeTooltipTemplate", first: true, predicate: ShapeTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
28
34
|
}
|
|
29
|
-
|
|
30
|
-
ShapeTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ShapeTooltipComponent, isStandalone: true, selector: "kendo-map-shape-layer-tooltip", queries: [{ propertyName: "shapeTooltipTemplate", first: true, predicate: ShapeTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShapeTooltipComponent, decorators: [{
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ShapeTooltipComponent, decorators: [{
|
|
32
36
|
type: Component,
|
|
33
37
|
args: [{
|
|
34
38
|
selector: 'kendo-map-shape-layer-tooltip',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 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 { Component,
|
|
5
|
+
import { Component, Input, NgZone, Output, EventEmitter } from '@angular/core';
|
|
6
6
|
import { NgClass, NgStyle, NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
import { BaseTooltip } from './base-tooltip';
|
|
8
8
|
import { hasParent } from '../common/has-parent';
|
|
@@ -18,17 +18,24 @@ import * as i3 from "@progress/kendo-angular-l10n";
|
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
20
|
export class TooltipPopupComponent extends BaseTooltip {
|
|
21
|
+
popupService;
|
|
22
|
+
templateService;
|
|
23
|
+
localizationService;
|
|
24
|
+
ngZone;
|
|
25
|
+
tooltipTemplateRef;
|
|
26
|
+
tooltipContext = {};
|
|
27
|
+
animate = true;
|
|
28
|
+
classNames;
|
|
29
|
+
wrapperClass = 'k-tooltip-wrapper';
|
|
30
|
+
leave = new EventEmitter();
|
|
31
|
+
popupClasses = {};
|
|
32
|
+
mouseleaveSubscription;
|
|
21
33
|
constructor(popupService, templateService, localizationService, ngZone) {
|
|
22
34
|
super(popupService, localizationService);
|
|
23
35
|
this.popupService = popupService;
|
|
24
36
|
this.templateService = templateService;
|
|
25
37
|
this.localizationService = localizationService;
|
|
26
38
|
this.ngZone = ngZone;
|
|
27
|
-
this.tooltipContext = {};
|
|
28
|
-
this.animate = true;
|
|
29
|
-
this.wrapperClass = 'k-tooltip-wrapper';
|
|
30
|
-
this.leave = new EventEmitter();
|
|
31
|
-
this.popupClasses = {};
|
|
32
39
|
}
|
|
33
40
|
show(e) {
|
|
34
41
|
this.tooltipTemplateRef = this.templateService.getTemplate(e.layerIndex);
|
|
@@ -64,12 +71,11 @@ export class TooltipPopupComponent extends BaseTooltip {
|
|
|
64
71
|
this.tooltipTemplateRef = null;
|
|
65
72
|
super.hide();
|
|
66
73
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
74
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipPopupComponent, deps: [{ token: i1.PopupService }, { token: i2.TooltipTemplateService }, { token: i3.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TooltipPopupComponent, isStandalone: true, selector: "kendo-map-tooltip-popup", inputs: { animate: "animate", classNames: "classNames", wrapperClass: "wrapperClass" }, outputs: { leave: "leave" }, providers: [PopupService, {
|
|
76
|
+
provide: POPUP_CONTAINER,
|
|
77
|
+
useFactory: bodyFactory
|
|
78
|
+
}], usesInheritance: true, ngImport: i0, template: `
|
|
73
79
|
<ng-template #content>
|
|
74
80
|
<div [ngClass]="popupClasses" [ngStyle]="style">
|
|
75
81
|
<div class="k-tooltip-content">
|
|
@@ -80,7 +86,8 @@ TooltipPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
80
86
|
</div>
|
|
81
87
|
</ng-template>
|
|
82
88
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
83
|
-
|
|
89
|
+
}
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipPopupComponent, decorators: [{
|
|
84
91
|
type: Component,
|
|
85
92
|
args: [{
|
|
86
93
|
providers: [PopupService, {
|
|
@@ -102,15 +109,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
102
109
|
standalone: true,
|
|
103
110
|
imports: [NgClass, NgStyle, NgTemplateOutlet]
|
|
104
111
|
}]
|
|
105
|
-
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.TooltipTemplateService }, { type: i3.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: {
|
|
106
|
-
type: ViewChild,
|
|
107
|
-
args: ['content', { static: true }]
|
|
108
|
-
}], animate: [{
|
|
112
|
+
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.TooltipTemplateService }, { type: i3.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { animate: [{
|
|
109
113
|
type: Input
|
|
110
114
|
}], classNames: [{
|
|
111
115
|
type: Input
|
|
112
|
-
}], popupSettings: [{
|
|
113
|
-
type: Input
|
|
114
116
|
}], wrapperClass: [{
|
|
115
117
|
type: Input
|
|
116
118
|
}], leave: [{
|
|
@@ -8,9 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class TooltipTemplateService {
|
|
11
|
-
|
|
12
|
-
this.templates = [];
|
|
13
|
-
}
|
|
11
|
+
templates = [];
|
|
14
12
|
registerTemplate(layerIndex, template) {
|
|
15
13
|
if (layerIndex > -1) {
|
|
16
14
|
this.templates[layerIndex] = template;
|
|
@@ -21,9 +19,9 @@ export class TooltipTemplateService {
|
|
|
21
19
|
return this.templates[layerIndex];
|
|
22
20
|
}
|
|
23
21
|
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipTemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
23
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipTemplateService });
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
TooltipTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TooltipTemplateService });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TooltipTemplateService, decorators: [{
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipTemplateService, decorators: [{
|
|
28
26
|
type: Injectable
|
|
29
27
|
}] });
|