@progress/kendo-angular-map 21.4.1-develop.1 → 22.0.0-develop.1
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/common/collection-item.component.d.ts +1 -1
- package/common/collection.component.d.ts +1 -1
- package/common/settings.component.d.ts +1 -1
- package/events/base-event.d.ts +1 -1
- package/events/preventable-event.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-map.mjs +80 -80
- package/map/layer.component.d.ts +1 -1
- package/package.json +11 -19
- package/schematics/ngAdd/index.js +1 -1
- package/tooltip/base-tooltip.d.ts +1 -1
- package/esm2022/common/collection-item.component.mjs +0 -64
- package/esm2022/common/collection.component.mjs +0 -66
- package/esm2022/common/collection.service.mjs +0 -37
- package/esm2022/common/configuration.service.mjs +0 -62
- package/esm2022/common/copy-changes.mjs +0 -21
- package/esm2022/common/has-parent.mjs +0 -14
- package/esm2022/common/map-instance-observer.mjs +0 -21
- package/esm2022/common/settings.component.mjs +0 -61
- package/esm2022/common/to-simple-changes.mjs +0 -18
- package/esm2022/directives.mjs +0 -28
- package/esm2022/events/base-event.mjs +0 -26
- package/esm2022/events/before-reset-event.mjs +0 -17
- package/esm2022/events/instance-event.service.mjs +0 -32
- package/esm2022/events/map-click-event.mjs +0 -27
- package/esm2022/events/marker-activate-event.mjs +0 -27
- package/esm2022/events/marker-click-event.mjs +0 -27
- package/esm2022/events/marker-created-event.mjs +0 -29
- package/esm2022/events/pan-end-event.mjs +0 -32
- package/esm2022/events/pan-event.mjs +0 -32
- package/esm2022/events/preventable-event.mjs +0 -36
- package/esm2022/events/reset-event.mjs +0 -19
- package/esm2022/events/shape-click-event.mjs +0 -32
- package/esm2022/events/shape-created-event.mjs +0 -37
- package/esm2022/events/shape-feature-created-event.mjs +0 -37
- package/esm2022/events/shape-mouse-enter-event.mjs +0 -35
- package/esm2022/events/shape-mouse-leave-event.mjs +0 -35
- package/esm2022/events/zoom-end-event.mjs +0 -22
- package/esm2022/events/zoom-start-event.mjs +0 -23
- package/esm2022/events.mjs +0 -19
- package/esm2022/index.mjs +0 -17
- package/esm2022/map/bubble-layer.component.mjs +0 -126
- package/esm2022/map/layer/tooltip.component.mjs +0 -39
- package/esm2022/map/layer.component.mjs +0 -89
- package/esm2022/map/layers.component.mjs +0 -57
- package/esm2022/map/marker-layer.component.mjs +0 -102
- package/esm2022/map/shape-layer.component.mjs +0 -85
- package/esm2022/map/tile-layer.component.mjs +0 -91
- package/esm2022/map.component.mjs +0 -694
- package/esm2022/map.module.mjs +0 -55
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-map.mjs +0 -8
- package/esm2022/tooltip/base-tooltip.mjs +0 -102
- package/esm2022/tooltip/body-factory.mjs +0 -14
- package/esm2022/tooltip/bubble-tooltip-template.directive.mjs +0 -55
- package/esm2022/tooltip/bubble-tooltip.component.mjs +0 -68
- package/esm2022/tooltip/marker-tooltip-template.directive.mjs +0 -54
- package/esm2022/tooltip/marker-tooltip.component.mjs +0 -68
- package/esm2022/tooltip/popup-settings.interface.mjs +0 -5
- package/esm2022/tooltip/shape-tooltip-template.directive.mjs +0 -54
- package/esm2022/tooltip/shape-tooltip.component.mjs +0 -68
- package/esm2022/tooltip/tooltip-popup.component.mjs +0 -120
- package/esm2022/tooltip/tooltip-template.service.mjs +0 -27
- package/esm2022/tooltip.mjs +0 -11
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive } from '@angular/core';
|
|
6
|
-
import { CollectionService, ItemChange } from './collection.service';
|
|
7
|
-
import { ConfigurationService } from './configuration.service';
|
|
8
|
-
import { copyChanges } from './copy-changes';
|
|
9
|
-
import { toSimpleChanges } from './to-simple-changes';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "./configuration.service";
|
|
12
|
-
import * as i2 from "./collection.service";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class CollectionItemComponent {
|
|
17
|
-
configurationService;
|
|
18
|
-
collectionService;
|
|
19
|
-
subscription;
|
|
20
|
-
index = -1;
|
|
21
|
-
options = {};
|
|
22
|
-
constructor(configurationService, collectionService) {
|
|
23
|
-
this.configurationService = configurationService;
|
|
24
|
-
this.collectionService = collectionService;
|
|
25
|
-
this.subscription = configurationService.changes.subscribe(store => {
|
|
26
|
-
this.options = store;
|
|
27
|
-
this.notify();
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
ngOnChanges(changes) {
|
|
31
|
-
const store = this.configurationService.store;
|
|
32
|
-
copyChanges(changes, store);
|
|
33
|
-
this.configurationService.push(store);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Updates the component fields with the specified values and refreshes the Chart.
|
|
37
|
-
*
|
|
38
|
-
* Use this method when the configuration values cannot be set through the template.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts-no-run
|
|
42
|
-
* item.notifyChanges({ visible: true });
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @param changes An object containing the updated input fields.
|
|
46
|
-
*/
|
|
47
|
-
notifyChanges(changes) {
|
|
48
|
-
this.ngOnChanges(toSimpleChanges(changes));
|
|
49
|
-
}
|
|
50
|
-
ngOnDestroy() {
|
|
51
|
-
this.subscription.unsubscribe();
|
|
52
|
-
}
|
|
53
|
-
notify() {
|
|
54
|
-
if (!this.collectionService) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
this.collectionService.notify(new ItemChange(this, this.options));
|
|
58
|
-
}
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionItemComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
60
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: CollectionItemComponent, usesOnChanges: true, ngImport: i0 });
|
|
61
|
-
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionItemComponent, decorators: [{
|
|
63
|
-
type: Directive
|
|
64
|
-
}], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i2.CollectionService }] });
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ContentChildren, Directive, QueryList } from '@angular/core';
|
|
6
|
-
import { ConfigurationService } from './configuration.service';
|
|
7
|
-
import { Change } from './configuration.service';
|
|
8
|
-
import { CollectionService } from './collection.service';
|
|
9
|
-
import { LayerComponent } from '../map/layer.component';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "./configuration.service";
|
|
12
|
-
import * as i2 from "./collection.service";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class CollectionComponent {
|
|
17
|
-
configKey;
|
|
18
|
-
configurationService;
|
|
19
|
-
collectionService;
|
|
20
|
-
children;
|
|
21
|
-
subscription;
|
|
22
|
-
items = [];
|
|
23
|
-
constructor(configKey, configurationService, collectionService) {
|
|
24
|
-
this.configKey = configKey;
|
|
25
|
-
this.configurationService = configurationService;
|
|
26
|
-
this.collectionService = collectionService;
|
|
27
|
-
this.subscription = collectionService.itemChanges.subscribe(changes => this.processChanges(changes));
|
|
28
|
-
}
|
|
29
|
-
ngOnDestroy() {
|
|
30
|
-
this.subscription.unsubscribe();
|
|
31
|
-
}
|
|
32
|
-
ngAfterContentInit() {
|
|
33
|
-
this.readItems();
|
|
34
|
-
this.children.changes.subscribe(() => this.readItems());
|
|
35
|
-
}
|
|
36
|
-
processChanges(changes) {
|
|
37
|
-
if (!this.children) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const index = this.children.toArray().indexOf(changes.sender);
|
|
41
|
-
if (index < 0) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
this.items[index] = changes.options;
|
|
45
|
-
changes.sender.index = index;
|
|
46
|
-
this.change();
|
|
47
|
-
}
|
|
48
|
-
readItems() {
|
|
49
|
-
this.items = this.children.map((item, index) => {
|
|
50
|
-
item.index = index;
|
|
51
|
-
return item.options;
|
|
52
|
-
});
|
|
53
|
-
this.change();
|
|
54
|
-
}
|
|
55
|
-
change() {
|
|
56
|
-
this.configurationService.notify(new Change(this.configKey, this.items.length === 0 ? undefined : this.items));
|
|
57
|
-
}
|
|
58
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
59
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: CollectionComponent, queries: [{ propertyName: "children", predicate: LayerComponent }], ngImport: i0 });
|
|
60
|
-
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionComponent, decorators: [{
|
|
62
|
-
type: Directive
|
|
63
|
-
}], ctorParameters: () => [{ type: undefined }, { type: i1.ConfigurationService }, { type: i2.CollectionService }], propDecorators: { children: [{
|
|
64
|
-
type: ContentChildren,
|
|
65
|
-
args: [LayerComponent]
|
|
66
|
-
}] } });
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Injectable } from '@angular/core';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export class ItemChange {
|
|
12
|
-
sender;
|
|
13
|
-
options;
|
|
14
|
-
constructor(sender, options) {
|
|
15
|
-
this.sender = sender;
|
|
16
|
-
this.options = options;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export class CollectionService {
|
|
23
|
-
itemChanges;
|
|
24
|
-
source;
|
|
25
|
-
constructor() {
|
|
26
|
-
this.source = new Subject();
|
|
27
|
-
this.itemChanges = this.source.asObservable();
|
|
28
|
-
}
|
|
29
|
-
notify(change) {
|
|
30
|
-
this.source.next(change);
|
|
31
|
-
}
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionService });
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CollectionService, decorators: [{
|
|
36
|
-
type: Injectable
|
|
37
|
-
}], ctorParameters: () => [] });
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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, NgZone } from '@angular/core';
|
|
6
|
-
import { BehaviorSubject } from 'rxjs';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export class Change {
|
|
12
|
-
key;
|
|
13
|
-
value;
|
|
14
|
-
constructor(key, value) {
|
|
15
|
-
this.key = key;
|
|
16
|
-
this.value = value;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export class ConfigurationService {
|
|
23
|
-
ngZone;
|
|
24
|
-
changes;
|
|
25
|
-
store = {};
|
|
26
|
-
source = new BehaviorSubject({});
|
|
27
|
-
constructor(ngZone) {
|
|
28
|
-
this.ngZone = ngZone;
|
|
29
|
-
this.initSource();
|
|
30
|
-
}
|
|
31
|
-
initSource() {
|
|
32
|
-
this.changes = this.source.asObservable();
|
|
33
|
-
}
|
|
34
|
-
push(store) {
|
|
35
|
-
this.store = store;
|
|
36
|
-
this.next();
|
|
37
|
-
}
|
|
38
|
-
notify(change) {
|
|
39
|
-
this.set(change.key, change.value);
|
|
40
|
-
this.next();
|
|
41
|
-
}
|
|
42
|
-
set(field, value) {
|
|
43
|
-
let store = this.store;
|
|
44
|
-
const parts = field.split('.');
|
|
45
|
-
let key = parts.shift();
|
|
46
|
-
while (parts.length > 0) {
|
|
47
|
-
store = store[key] = store[key] || {};
|
|
48
|
-
key = parts.shift();
|
|
49
|
-
}
|
|
50
|
-
store[key] = value;
|
|
51
|
-
}
|
|
52
|
-
next() {
|
|
53
|
-
this.ngZone.runOutsideAngular(() => {
|
|
54
|
-
this.source.next(this.store);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
58
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService });
|
|
59
|
-
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
61
|
-
type: Injectable
|
|
62
|
-
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export function copyChanges(changes, options) {
|
|
9
|
-
for (const propertyName in changes) {
|
|
10
|
-
if (!changes.hasOwnProperty(propertyName)) {
|
|
11
|
-
continue;
|
|
12
|
-
}
|
|
13
|
-
const value = changes[propertyName].currentValue;
|
|
14
|
-
if (value === undefined) {
|
|
15
|
-
delete options[propertyName];
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
options[propertyName] = value;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export function hasParent(element, parent) {
|
|
9
|
-
let current = element;
|
|
10
|
-
while (current && current !== parent) {
|
|
11
|
-
current = current.parentNode;
|
|
12
|
-
}
|
|
13
|
-
return current ? true : false;
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { InstanceObserver } from '@progress/kendo-charts';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export class MapInstanceObserver extends InstanceObserver {
|
|
10
|
-
handlerMap = {
|
|
11
|
-
hideTooltip: 'onHideTooltip',
|
|
12
|
-
init: 'onInit',
|
|
13
|
-
render: 'onRender',
|
|
14
|
-
showTooltip: 'onShowTooltip',
|
|
15
|
-
centerChange: 'onCenterChange',
|
|
16
|
-
zoomChange: 'onZoomChange'
|
|
17
|
-
};
|
|
18
|
-
constructor(instance) {
|
|
19
|
-
super(instance);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive } from '@angular/core';
|
|
6
|
-
import { ConfigurationService } from './configuration.service';
|
|
7
|
-
import { Change } from './configuration.service';
|
|
8
|
-
import { copyChanges } from './copy-changes';
|
|
9
|
-
import { toSimpleChanges } from './to-simple-changes';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "./configuration.service";
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export class SettingsComponent {
|
|
16
|
-
configKey;
|
|
17
|
-
configurationService;
|
|
18
|
-
store = {};
|
|
19
|
-
constructor(configKey, configurationService) {
|
|
20
|
-
this.configKey = configKey;
|
|
21
|
-
this.configurationService = configurationService;
|
|
22
|
-
if (configKey === undefined) {
|
|
23
|
-
throw new Error('Configuration key not set');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
ngOnDestroy() {
|
|
27
|
-
this.store = undefined;
|
|
28
|
-
this.notify();
|
|
29
|
-
}
|
|
30
|
-
ngOnChanges(changes) {
|
|
31
|
-
copyChanges(changes, this.store);
|
|
32
|
-
this.notify();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Updates the component fields with the specified values and refreshes the component.
|
|
36
|
-
*
|
|
37
|
-
* Use this method when the configuration values cannot be set through the template.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts-no-run
|
|
41
|
-
* item.notifyChanges({ visible: true });
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @param changes An object containing the updated input fields.
|
|
45
|
-
*/
|
|
46
|
-
notifyChanges(changes) {
|
|
47
|
-
this.ngOnChanges(toSimpleChanges(changes));
|
|
48
|
-
}
|
|
49
|
-
markAsVisible() {
|
|
50
|
-
this.store.visible = true;
|
|
51
|
-
this.notify();
|
|
52
|
-
}
|
|
53
|
-
notify() {
|
|
54
|
-
this.configurationService.notify(new Change(this.configKey, this.store));
|
|
55
|
-
}
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SettingsComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SettingsComponent, usesOnChanges: true, ngImport: i0 });
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SettingsComponent, decorators: [{
|
|
60
|
-
type: Directive
|
|
61
|
-
}], ctorParameters: () => [{ type: undefined }, { type: i1.ConfigurationService }] });
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SimpleChange } from '@angular/core';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export function toSimpleChanges(changes) {
|
|
10
|
-
const result = {};
|
|
11
|
-
for (const propertyName in changes) {
|
|
12
|
-
if (!changes.hasOwnProperty(propertyName)) {
|
|
13
|
-
continue;
|
|
14
|
-
}
|
|
15
|
-
result[propertyName] = new SimpleChange(null, changes[propertyName], false);
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
}
|
package/esm2022/directives.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { MapComponent } from './map.component';
|
|
6
|
-
import { BubbleLayerComponent } from './map/bubble-layer.component';
|
|
7
|
-
import { LayersComponent } from './map/layers.component';
|
|
8
|
-
import { MarkerLayerComponent } from './map/marker-layer.component';
|
|
9
|
-
import { ShapeLayerComponent } from './map/shape-layer.component';
|
|
10
|
-
import { TileLayerComponent } from './map/tile-layer.component';
|
|
11
|
-
import { BubbleTooltipComponent, BubbleTooltipTemplateDirective, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeTooltipComponent, ShapeTooltipTemplateDirective, } from './tooltip';
|
|
12
|
-
/**
|
|
13
|
-
* Utility array that contains all `Map` related components and directives.
|
|
14
|
-
*/
|
|
15
|
-
export const KENDO_MAP = [
|
|
16
|
-
BubbleLayerComponent,
|
|
17
|
-
BubbleTooltipComponent,
|
|
18
|
-
BubbleTooltipTemplateDirective,
|
|
19
|
-
LayersComponent,
|
|
20
|
-
MapComponent,
|
|
21
|
-
MarkerLayerComponent,
|
|
22
|
-
MarkerTooltipComponent,
|
|
23
|
-
MarkerTooltipTemplateDirective,
|
|
24
|
-
ShapeLayerComponent,
|
|
25
|
-
ShapeTooltipComponent,
|
|
26
|
-
ShapeTooltipTemplateDirective,
|
|
27
|
-
TileLayerComponent
|
|
28
|
-
];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class BaseEvent {
|
|
11
|
-
/**
|
|
12
|
-
* The `MapComponent` that triggered the event.
|
|
13
|
-
*/
|
|
14
|
-
sender;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
constructor(sender) {
|
|
19
|
-
this.sender = sender;
|
|
20
|
-
}
|
|
21
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseEvent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: BaseEvent, ngImport: i0 });
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseEvent, decorators: [{
|
|
25
|
-
type: Directive
|
|
26
|
-
}], ctorParameters: () => [{ type: undefined }] });
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BaseEvent } from './base-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `beforeReset` event.
|
|
8
|
-
* Fires immediately before the map resets. Layer implementers typically use this event for cleanup.
|
|
9
|
-
*/
|
|
10
|
-
export class BeforeResetEvent extends BaseEvent {
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
constructor(_, sender) {
|
|
15
|
-
super(sender);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BeforeResetEvent, MapClickEvent, MarkerActivateEvent, MarkerClickEvent, MarkerCreatedEvent, PanEndEvent, PanEvent, ResetEvent, ShapeClickEvent, ShapeCreatedEvent, ShapeFeatureCreatedEvent, ShapeMouseEnterEvent, ShapeMouseLeaveEvent, ZoomEndEvent, ZoomStartEvent } from '../events';
|
|
6
|
-
const EVENT_MAP = {
|
|
7
|
-
beforeReset: BeforeResetEvent,
|
|
8
|
-
click: MapClickEvent,
|
|
9
|
-
markerActivate: MarkerActivateEvent,
|
|
10
|
-
markerClick: MarkerClickEvent,
|
|
11
|
-
markerCreated: MarkerCreatedEvent,
|
|
12
|
-
panEnd: PanEndEvent,
|
|
13
|
-
pan: PanEvent,
|
|
14
|
-
reset: ResetEvent,
|
|
15
|
-
shapeClick: ShapeClickEvent,
|
|
16
|
-
shapeCreated: ShapeCreatedEvent,
|
|
17
|
-
shapeFeatureCreated: ShapeFeatureCreatedEvent,
|
|
18
|
-
shapeMouseEnter: ShapeMouseEnterEvent,
|
|
19
|
-
shapeMouseLeave: ShapeMouseLeaveEvent,
|
|
20
|
-
zoomEnd: ZoomEndEvent,
|
|
21
|
-
zoomStart: ZoomStartEvent
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export class InstanceEventService {
|
|
27
|
-
create(name, args, sender) {
|
|
28
|
-
if (EVENT_MAP[name]) {
|
|
29
|
-
return new EVENT_MAP[name](args, sender);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BaseEvent } from './base-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `mapClick` event.
|
|
8
|
-
* Fires when you click on the map.
|
|
9
|
-
*/
|
|
10
|
-
export class MapClickEvent extends BaseEvent {
|
|
11
|
-
/**
|
|
12
|
-
* The location of the clicked point.
|
|
13
|
-
*/
|
|
14
|
-
location;
|
|
15
|
-
/**
|
|
16
|
-
* The source DOM event instance.
|
|
17
|
-
*/
|
|
18
|
-
originalEvent;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
constructor(e, sender) {
|
|
23
|
-
super(sender);
|
|
24
|
-
this.location = e.location;
|
|
25
|
-
this.originalEvent = e.originalEvent;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BaseEvent } from './base-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `markerActivate` event.
|
|
8
|
-
* Fires when a marker displays and has a DOM element assigned.
|
|
9
|
-
*/
|
|
10
|
-
export class MarkerActivateEvent extends BaseEvent {
|
|
11
|
-
/**
|
|
12
|
-
* The marker instance.
|
|
13
|
-
*/
|
|
14
|
-
marker;
|
|
15
|
-
/**
|
|
16
|
-
* The marker layer instance.
|
|
17
|
-
*/
|
|
18
|
-
layer;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
constructor(e, sender) {
|
|
23
|
-
super(sender);
|
|
24
|
-
this.marker = e.marker;
|
|
25
|
-
this.layer = e.layer;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BaseEvent } from './base-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `markerClick` event.
|
|
8
|
-
* Fires when the user clicks or taps a marker.
|
|
9
|
-
*/
|
|
10
|
-
export class MarkerClickEvent extends BaseEvent {
|
|
11
|
-
/**
|
|
12
|
-
* The marker instance.
|
|
13
|
-
*/
|
|
14
|
-
marker;
|
|
15
|
-
/**
|
|
16
|
-
* The marker layer instance.
|
|
17
|
-
*/
|
|
18
|
-
layer;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
constructor(e, sender) {
|
|
23
|
-
super(sender);
|
|
24
|
-
this.marker = e.marker;
|
|
25
|
-
this.layer = e.layer;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PreventableEvent } from './preventable-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `markerCreated` event.
|
|
8
|
-
* Fires once the map has created a marker, and just before the map displays it.
|
|
9
|
-
*
|
|
10
|
-
* Cancelling the event prevents displaying the marker.
|
|
11
|
-
*/
|
|
12
|
-
export class MarkerCreatedEvent extends PreventableEvent {
|
|
13
|
-
/**
|
|
14
|
-
* The marker instance.
|
|
15
|
-
*/
|
|
16
|
-
marker;
|
|
17
|
-
/**
|
|
18
|
-
* The marker layer instance.
|
|
19
|
-
*/
|
|
20
|
-
layer;
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
constructor(e, sender) {
|
|
25
|
-
super(sender);
|
|
26
|
-
this.marker = e.marker;
|
|
27
|
-
this.layer = e.layer;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BaseEvent } from './base-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `panEnd` event.
|
|
8
|
-
* Fires after the map viewport completes panning.
|
|
9
|
-
*/
|
|
10
|
-
export class PanEndEvent extends BaseEvent {
|
|
11
|
-
/**
|
|
12
|
-
* The map origin (top left or NW corner).
|
|
13
|
-
*/
|
|
14
|
-
origin;
|
|
15
|
-
/**
|
|
16
|
-
* The current map center.
|
|
17
|
-
*/
|
|
18
|
-
center;
|
|
19
|
-
/**
|
|
20
|
-
* The source DOM event instance.
|
|
21
|
-
*/
|
|
22
|
-
originalEvent;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
constructor(e, sender) {
|
|
27
|
-
super(sender);
|
|
28
|
-
this.origin = e.origin;
|
|
29
|
-
this.center = e.center;
|
|
30
|
-
this.originalEvent = e.originalEvent;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BaseEvent } from './base-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `pan` event.
|
|
8
|
-
* Fires while the map viewport is being moved.
|
|
9
|
-
*/
|
|
10
|
-
export class PanEvent extends BaseEvent {
|
|
11
|
-
/**
|
|
12
|
-
* The map origin (top left or NW corner).
|
|
13
|
-
*/
|
|
14
|
-
origin;
|
|
15
|
-
/**
|
|
16
|
-
* The current map center.
|
|
17
|
-
*/
|
|
18
|
-
center;
|
|
19
|
-
/**
|
|
20
|
-
* The source DOM event instance.
|
|
21
|
-
*/
|
|
22
|
-
originalEvent;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
constructor(e, sender) {
|
|
27
|
-
super(sender);
|
|
28
|
-
this.origin = e.origin;
|
|
29
|
-
this.center = e.center;
|
|
30
|
-
this.originalEvent = e.originalEvent;
|
|
31
|
-
}
|
|
32
|
-
}
|