@progress/kendo-react-map 5.3.0-dev.202205051853

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 (151) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +111 -0
  3. package/README.md +47 -0
  4. package/about.md +3 -0
  5. package/dist/cdn/js/kendo-react-map.js +1 -0
  6. package/dist/es/Map.d.ts +81 -0
  7. package/dist/es/Map.js +235 -0
  8. package/dist/es/MapContext.d.ts +15 -0
  9. package/dist/es/MapContext.js +6 -0
  10. package/dist/es/MapProps.d.ts +96 -0
  11. package/dist/es/MapProps.js +0 -0
  12. package/dist/es/common/events.d.ts +15 -0
  13. package/dist/es/common/events.js +16 -0
  14. package/dist/es/common/map-types.d.ts +1 -0
  15. package/dist/es/common/map-types.js +2 -0
  16. package/dist/es/components/BubbleLayer.d.ts +9 -0
  17. package/dist/es/components/BubbleLayer.js +18 -0
  18. package/dist/es/components/Layers.d.ts +9 -0
  19. package/dist/es/components/Layers.js +21 -0
  20. package/dist/es/components/MarkerLayer.d.ts +9 -0
  21. package/dist/es/components/MarkerLayer.js +18 -0
  22. package/dist/es/components/ShapeLayer.d.ts +9 -0
  23. package/dist/es/components/ShapeLayer.js +18 -0
  24. package/dist/es/components/TileLayer.d.ts +9 -0
  25. package/dist/es/components/TileLayer.js +18 -0
  26. package/dist/es/components/base/CollectionConfigurationComponent.d.ts +19 -0
  27. package/dist/es/components/base/CollectionConfigurationComponent.js +61 -0
  28. package/dist/es/components/base/ConfigurationComponent.d.ts +24 -0
  29. package/dist/es/components/base/ConfigurationComponent.js +82 -0
  30. package/dist/es/components/main.d.ts +6 -0
  31. package/dist/es/components/main.js +6 -0
  32. package/dist/es/defaults.d.ts +1 -0
  33. package/dist/es/defaults.js +15 -0
  34. package/dist/es/events/base-event.d.ts +14 -0
  35. package/dist/es/events/base-event.js +13 -0
  36. package/dist/es/events/before-reset-event.d.ts +12 -0
  37. package/dist/es/events/before-reset-event.js +28 -0
  38. package/dist/es/events/map-click-event.d.ts +20 -0
  39. package/dist/es/events/map-click-event.js +31 -0
  40. package/dist/es/events/map-event-builder.d.ts +6 -0
  41. package/dist/es/events/map-event-builder.js +27 -0
  42. package/dist/es/events/marker-activate-event.d.ts +20 -0
  43. package/dist/es/events/marker-activate-event.js +31 -0
  44. package/dist/es/events/marker-click-event.d.ts +20 -0
  45. package/dist/es/events/marker-click-event.js +31 -0
  46. package/dist/es/events/marker-created-event.d.ts +22 -0
  47. package/dist/es/events/marker-created-event.js +33 -0
  48. package/dist/es/events/pan-end-event.d.ts +24 -0
  49. package/dist/es/events/pan-end-event.js +32 -0
  50. package/dist/es/events/pan-event.d.ts +24 -0
  51. package/dist/es/events/pan-event.js +32 -0
  52. package/dist/es/events/preventable-event.d.ts +18 -0
  53. package/dist/es/events/preventable-event.js +44 -0
  54. package/dist/es/events/reset-event.d.ts +14 -0
  55. package/dist/es/events/reset-event.js +30 -0
  56. package/dist/es/events/shape-click-event.d.ts +25 -0
  57. package/dist/es/events/shape-click-event.js +32 -0
  58. package/dist/es/events/shape-created-event.d.ts +29 -0
  59. package/dist/es/events/shape-created-event.js +35 -0
  60. package/dist/es/events/shape-feature-created-event.d.ts +29 -0
  61. package/dist/es/events/shape-feature-created-event.js +33 -0
  62. package/dist/es/events/shape-mouse-enter-event.d.ts +28 -0
  63. package/dist/es/events/shape-mouse-enter-event.js +35 -0
  64. package/dist/es/events/shape-mouse-leave-event.d.ts +28 -0
  65. package/dist/es/events/shape-mouse-leave-event.js +35 -0
  66. package/dist/es/events/zoom-end-event.d.ts +16 -0
  67. package/dist/es/events/zoom-end-event.js +30 -0
  68. package/dist/es/events/zoom-start-event.d.ts +18 -0
  69. package/dist/es/events/zoom-start-event.js +32 -0
  70. package/dist/es/main.d.ts +6 -0
  71. package/dist/es/main.js +5 -0
  72. package/dist/es/package-metadata.d.ts +5 -0
  73. package/dist/es/package-metadata.js +11 -0
  74. package/dist/es/store/reducer.d.ts +10 -0
  75. package/dist/es/store/reducer.js +75 -0
  76. package/dist/es/store/store.d.ts +22 -0
  77. package/dist/es/store/store.js +22 -0
  78. package/dist/npm/Map.d.ts +81 -0
  79. package/dist/npm/Map.js +237 -0
  80. package/dist/npm/MapContext.d.ts +15 -0
  81. package/dist/npm/MapContext.js +8 -0
  82. package/dist/npm/MapProps.d.ts +96 -0
  83. package/dist/npm/MapProps.js +2 -0
  84. package/dist/npm/common/events.d.ts +15 -0
  85. package/dist/npm/common/events.js +33 -0
  86. package/dist/npm/common/map-types.d.ts +1 -0
  87. package/dist/npm/common/map-types.js +6 -0
  88. package/dist/npm/components/BubbleLayer.d.ts +9 -0
  89. package/dist/npm/components/BubbleLayer.js +20 -0
  90. package/dist/npm/components/Layers.d.ts +9 -0
  91. package/dist/npm/components/Layers.js +23 -0
  92. package/dist/npm/components/MarkerLayer.d.ts +9 -0
  93. package/dist/npm/components/MarkerLayer.js +20 -0
  94. package/dist/npm/components/ShapeLayer.d.ts +9 -0
  95. package/dist/npm/components/ShapeLayer.js +20 -0
  96. package/dist/npm/components/TileLayer.d.ts +9 -0
  97. package/dist/npm/components/TileLayer.js +20 -0
  98. package/dist/npm/components/base/CollectionConfigurationComponent.d.ts +19 -0
  99. package/dist/npm/components/base/CollectionConfigurationComponent.js +63 -0
  100. package/dist/npm/components/base/ConfigurationComponent.d.ts +24 -0
  101. package/dist/npm/components/base/ConfigurationComponent.js +84 -0
  102. package/dist/npm/components/main.d.ts +6 -0
  103. package/dist/npm/components/main.js +12 -0
  104. package/dist/npm/defaults.d.ts +1 -0
  105. package/dist/npm/defaults.js +17 -0
  106. package/dist/npm/events/base-event.d.ts +14 -0
  107. package/dist/npm/events/base-event.js +15 -0
  108. package/dist/npm/events/before-reset-event.d.ts +12 -0
  109. package/dist/npm/events/before-reset-event.js +30 -0
  110. package/dist/npm/events/map-click-event.d.ts +20 -0
  111. package/dist/npm/events/map-click-event.js +33 -0
  112. package/dist/npm/events/map-event-builder.d.ts +6 -0
  113. package/dist/npm/events/map-event-builder.js +29 -0
  114. package/dist/npm/events/marker-activate-event.d.ts +20 -0
  115. package/dist/npm/events/marker-activate-event.js +33 -0
  116. package/dist/npm/events/marker-click-event.d.ts +20 -0
  117. package/dist/npm/events/marker-click-event.js +33 -0
  118. package/dist/npm/events/marker-created-event.d.ts +22 -0
  119. package/dist/npm/events/marker-created-event.js +35 -0
  120. package/dist/npm/events/pan-end-event.d.ts +24 -0
  121. package/dist/npm/events/pan-end-event.js +34 -0
  122. package/dist/npm/events/pan-event.d.ts +24 -0
  123. package/dist/npm/events/pan-event.js +34 -0
  124. package/dist/npm/events/preventable-event.d.ts +18 -0
  125. package/dist/npm/events/preventable-event.js +46 -0
  126. package/dist/npm/events/reset-event.d.ts +14 -0
  127. package/dist/npm/events/reset-event.js +32 -0
  128. package/dist/npm/events/shape-click-event.d.ts +25 -0
  129. package/dist/npm/events/shape-click-event.js +34 -0
  130. package/dist/npm/events/shape-created-event.d.ts +29 -0
  131. package/dist/npm/events/shape-created-event.js +37 -0
  132. package/dist/npm/events/shape-feature-created-event.d.ts +29 -0
  133. package/dist/npm/events/shape-feature-created-event.js +35 -0
  134. package/dist/npm/events/shape-mouse-enter-event.d.ts +28 -0
  135. package/dist/npm/events/shape-mouse-enter-event.js +37 -0
  136. package/dist/npm/events/shape-mouse-leave-event.d.ts +28 -0
  137. package/dist/npm/events/shape-mouse-leave-event.js +37 -0
  138. package/dist/npm/events/zoom-end-event.d.ts +16 -0
  139. package/dist/npm/events/zoom-end-event.js +32 -0
  140. package/dist/npm/events/zoom-start-event.d.ts +18 -0
  141. package/dist/npm/events/zoom-start-event.js +34 -0
  142. package/dist/npm/main.d.ts +6 -0
  143. package/dist/npm/main.js +10 -0
  144. package/dist/npm/package-metadata.d.ts +5 -0
  145. package/dist/npm/package-metadata.js +13 -0
  146. package/dist/npm/store/reducer.d.ts +10 -0
  147. package/dist/npm/store/reducer.js +78 -0
  148. package/dist/npm/store/store.d.ts +22 -0
  149. package/dist/npm/store/store.js +24 -0
  150. package/dist/systemjs/kendo-react-map.js +1 -0
  151. package/package.json +61 -0
@@ -0,0 +1,44 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * @hidden
17
+ */
18
+ var PreventableEvent = /** @class */ (function (_super) {
19
+ __extends(PreventableEvent, _super);
20
+ function PreventableEvent() {
21
+ var _this = _super !== null && _super.apply(this, arguments) || this;
22
+ _this.prevented = false;
23
+ return _this;
24
+ }
25
+ /* eslint-disable max-len */
26
+ /**
27
+ * Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
28
+ */
29
+ PreventableEvent.prototype.preventDefault = function () {
30
+ this.prevented = true;
31
+ };
32
+ /**
33
+ * Returns `true` if the event was prevented by any of its subscribers.
34
+ *
35
+ * @returns `true` if the default action was prevented.
36
+ * Otherwise, returns `false`.
37
+ */
38
+ PreventableEvent.prototype.isDefaultPrevented = function () {
39
+ return this.prevented;
40
+ };
41
+ return PreventableEvent;
42
+ }(BaseEvent));
43
+ export { PreventableEvent };
44
+ // tslint:enable:max-line-length
@@ -0,0 +1,14 @@
1
+ import { MapResetEvent } from '@progress/kendo-charts';
2
+ import { Map } from '../Map';
3
+ import { BaseEvent } from './base-event';
4
+ /**
5
+ * Fired when the map is reset.
6
+ *
7
+ * This typically occurs on initial load and after a zoom/center change.
8
+ */
9
+ export declare class ResetEvent extends BaseEvent implements MapResetEvent {
10
+ /**
11
+ * @hidden
12
+ */
13
+ constructor(_: any, target: Map);
14
+ }
@@ -0,0 +1,30 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * Fired when the map is reset.
17
+ *
18
+ * This typically occurs on initial load and after a zoom/center change.
19
+ */
20
+ var ResetEvent = /** @class */ (function (_super) {
21
+ __extends(ResetEvent, _super);
22
+ /**
23
+ * @hidden
24
+ */
25
+ function ResetEvent(_, target) {
26
+ return _super.call(this, target) || this;
27
+ }
28
+ return ResetEvent;
29
+ }(BaseEvent));
30
+ export { ResetEvent };
@@ -0,0 +1,25 @@
1
+ import { MapLayer, MapShapeClickEvent } from '@progress/kendo-charts';
2
+ import { Element } from '@progress/kendo-drawing';
3
+ import { Map } from '../Map';
4
+ import { BaseEvent } from './base-event';
5
+ /**
6
+ * Fired when a shape is clicked or tapped.
7
+ */
8
+ export declare class ShapeClickEvent extends BaseEvent implements MapShapeClickEvent {
9
+ /**
10
+ * The shape layer instance.
11
+ */
12
+ layer: MapLayer;
13
+ /**
14
+ * The shape instance.
15
+ */
16
+ shape: Element;
17
+ /**
18
+ * The source DOM event instance
19
+ */
20
+ originalEvent: any;
21
+ /**
22
+ * @hidden
23
+ */
24
+ constructor(e: MapShapeClickEvent, target: Map);
25
+ }
@@ -0,0 +1,32 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * Fired when a shape is clicked or tapped.
17
+ */
18
+ var ShapeClickEvent = /** @class */ (function (_super) {
19
+ __extends(ShapeClickEvent, _super);
20
+ /**
21
+ * @hidden
22
+ */
23
+ function ShapeClickEvent(e, target) {
24
+ var _this = _super.call(this, target) || this;
25
+ _this.layer = e.layer;
26
+ _this.shape = e.shape;
27
+ _this.originalEvent = e.originalEvent;
28
+ return _this;
29
+ }
30
+ return ShapeClickEvent;
31
+ }(BaseEvent));
32
+ export { ShapeClickEvent };
@@ -0,0 +1,29 @@
1
+ import { MapLayer, MapShapeCreatedEvent, Location } from '@progress/kendo-charts';
2
+ import { Element } from '@progress/kendo-drawing';
3
+ import { Map } from '../Map';
4
+ import { BaseEvent } from './base-event';
5
+ /**
6
+ * Fired when a shape is created, but is not rendered yet.
7
+ */
8
+ export declare class ShapeCreatedEvent extends BaseEvent implements MapShapeCreatedEvent {
9
+ /**
10
+ * The shape layer instance.
11
+ */
12
+ layer: MapLayer;
13
+ /**
14
+ * The shape instance.
15
+ */
16
+ shape: Element;
17
+ /**
18
+ * The original data item for this Shape.
19
+ */
20
+ dataItem: any;
21
+ /**
22
+ * The shape location
23
+ */
24
+ location: Location;
25
+ /**
26
+ * @hidden
27
+ */
28
+ constructor(e: any, target: Map);
29
+ }
@@ -0,0 +1,35 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * Fired when a shape is created, but is not rendered yet.
17
+ */
18
+ var ShapeCreatedEvent = /** @class */ (function (_super) {
19
+ __extends(ShapeCreatedEvent, _super);
20
+ /**
21
+ * @hidden
22
+ */
23
+ function ShapeCreatedEvent(e, target) {
24
+ var _this = _super.call(this, target) || this;
25
+ _this.layer = e.layer;
26
+ _this.shape = e.shape;
27
+ if (e.shape) {
28
+ _this.dataItem = e.shape.dataItem;
29
+ _this.location = e.shape.location;
30
+ }
31
+ return _this;
32
+ }
33
+ return ShapeCreatedEvent;
34
+ }(BaseEvent));
35
+ export { ShapeCreatedEvent };
@@ -0,0 +1,29 @@
1
+ import { MapLayer, MapShapeFeatureCreatedEvent } from '@progress/kendo-charts';
2
+ import { Group } from '@progress/kendo-drawing';
3
+ import { Map } from '../Map';
4
+ import { BaseEvent } from './base-event';
5
+ /**
6
+ * Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
7
+ */
8
+ export declare class ShapeFeatureCreatedEvent extends BaseEvent implements MapShapeFeatureCreatedEvent {
9
+ /**
10
+ * The original data item for this Feature. Members include `geometries` and `properties`.
11
+ */
12
+ dataItem: any;
13
+ /**
14
+ * The shape layer instance.
15
+ */
16
+ layer: MapLayer;
17
+ /**
18
+ * The group containing feature shape instances.
19
+ */
20
+ group: Group;
21
+ /**
22
+ * A reference to the `dataItem.properties` object.
23
+ */
24
+ properties: any;
25
+ /**
26
+ * @hidden
27
+ */
28
+ constructor(e: MapShapeFeatureCreatedEvent, target: Map);
29
+ }
@@ -0,0 +1,33 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
17
+ */
18
+ var ShapeFeatureCreatedEvent = /** @class */ (function (_super) {
19
+ __extends(ShapeFeatureCreatedEvent, _super);
20
+ /**
21
+ * @hidden
22
+ */
23
+ function ShapeFeatureCreatedEvent(e, target) {
24
+ var _this = _super.call(this, target) || this;
25
+ _this.dataItem = e.dataItem;
26
+ _this.layer = e.layer;
27
+ _this.group = e.group;
28
+ _this.properties = e.properties;
29
+ return _this;
30
+ }
31
+ return ShapeFeatureCreatedEvent;
32
+ }(BaseEvent));
33
+ export { ShapeFeatureCreatedEvent };
@@ -0,0 +1,28 @@
1
+ import { MapLayer, MapShapeMouseEnterEvent } from '@progress/kendo-charts';
2
+ import { Element } from '@progress/kendo-drawing';
3
+ import { Map } from '../Map';
4
+ import { BaseEvent } from './base-event';
5
+ /**
6
+ * Fired when the mouse enters a shape.
7
+ *
8
+ * > This event will fire reliably only for shapes that have set fill color.
9
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
10
+ */
11
+ export declare class ShapeMouseEnterEvent extends BaseEvent implements MapShapeMouseEnterEvent {
12
+ /**
13
+ * The shape layer instance.
14
+ */
15
+ layer: MapLayer;
16
+ /**
17
+ * The shape instance.
18
+ */
19
+ shape: Element;
20
+ /**
21
+ * The source DOM event instance
22
+ */
23
+ originalEvent: any;
24
+ /**
25
+ * @hidden
26
+ */
27
+ constructor(e: MapShapeMouseEnterEvent, target: Map);
28
+ }
@@ -0,0 +1,35 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * Fired when the mouse enters a shape.
17
+ *
18
+ * > This event will fire reliably only for shapes that have set fill color.
19
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
20
+ */
21
+ var ShapeMouseEnterEvent = /** @class */ (function (_super) {
22
+ __extends(ShapeMouseEnterEvent, _super);
23
+ /**
24
+ * @hidden
25
+ */
26
+ function ShapeMouseEnterEvent(e, target) {
27
+ var _this = _super.call(this, target) || this;
28
+ _this.layer = e.layer;
29
+ _this.shape = e.shape;
30
+ _this.originalEvent = e.originalEvent;
31
+ return _this;
32
+ }
33
+ return ShapeMouseEnterEvent;
34
+ }(BaseEvent));
35
+ export { ShapeMouseEnterEvent };
@@ -0,0 +1,28 @@
1
+ import { MapLayer, MapShapeMouseLeaveEvent } from '@progress/kendo-charts';
2
+ import { Element } from '@progress/kendo-drawing';
3
+ import { Map } from '../Map';
4
+ import { BaseEvent } from './base-event';
5
+ /**
6
+ * Fired when the mouse leaves a shape.
7
+ *
8
+ * > This event will fire reliably only for shapes that have set fill color.
9
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
10
+ */
11
+ export declare class ShapeMouseLeaveEvent extends BaseEvent implements MapShapeMouseLeaveEvent {
12
+ /**
13
+ * The shape layer instance.
14
+ */
15
+ layer: MapLayer;
16
+ /**
17
+ * The shape instance.
18
+ */
19
+ shape: Element;
20
+ /**
21
+ * The source DOM event instance
22
+ */
23
+ originalEvent: any;
24
+ /**
25
+ * @hidden
26
+ */
27
+ constructor(e: MapShapeMouseLeaveEvent, target: Map);
28
+ }
@@ -0,0 +1,35 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * Fired when the mouse leaves a shape.
17
+ *
18
+ * > This event will fire reliably only for shapes that have set fill color.
19
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
20
+ */
21
+ var ShapeMouseLeaveEvent = /** @class */ (function (_super) {
22
+ __extends(ShapeMouseLeaveEvent, _super);
23
+ /**
24
+ * @hidden
25
+ */
26
+ function ShapeMouseLeaveEvent(e, target) {
27
+ var _this = _super.call(this, target) || this;
28
+ _this.layer = e.layer;
29
+ _this.shape = e.shape;
30
+ _this.originalEvent = e.originalEvent;
31
+ return _this;
32
+ }
33
+ return ShapeMouseLeaveEvent;
34
+ }(BaseEvent));
35
+ export { ShapeMouseLeaveEvent };
@@ -0,0 +1,16 @@
1
+ import { MapZoomEndEvent } from '@progress/kendo-charts';
2
+ import { Map } from '../Map';
3
+ import { BaseEvent } from './base-event';
4
+ /**
5
+ * Fired when the map zoom level has changed.
6
+ */
7
+ export declare class ZoomEndEvent extends BaseEvent implements MapZoomEndEvent {
8
+ /**
9
+ * The source DOM event instance
10
+ */
11
+ originalEvent: any;
12
+ /**
13
+ * @hidden
14
+ */
15
+ constructor(e: MapZoomEndEvent, target: Map);
16
+ }
@@ -0,0 +1,30 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BaseEvent } from './base-event';
15
+ /**
16
+ * Fired when the map zoom level has changed.
17
+ */
18
+ var ZoomEndEvent = /** @class */ (function (_super) {
19
+ __extends(ZoomEndEvent, _super);
20
+ /**
21
+ * @hidden
22
+ */
23
+ function ZoomEndEvent(e, target) {
24
+ var _this = _super.call(this, target) || this;
25
+ _this.originalEvent = e.originalEvent;
26
+ return _this;
27
+ }
28
+ return ZoomEndEvent;
29
+ }(BaseEvent));
30
+ export { ZoomEndEvent };
@@ -0,0 +1,18 @@
1
+ import { MapZoomStartEvent } from '@progress/kendo-charts';
2
+ import { Map } from '../Map';
3
+ import { PreventableEvent } from './preventable-event';
4
+ /**
5
+ * Fired when the map zoom level is about to change.
6
+ *
7
+ * Cancelling the event will prevent the user action.
8
+ */
9
+ export declare class ZoomStartEvent extends PreventableEvent implements MapZoomStartEvent {
10
+ /**
11
+ * The source DOM event instance
12
+ */
13
+ originalEvent: any;
14
+ /**
15
+ * @hidden
16
+ */
17
+ constructor(e: MapZoomStartEvent, target: Map);
18
+ }
@@ -0,0 +1,32 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { PreventableEvent } from './preventable-event';
15
+ /**
16
+ * Fired when the map zoom level is about to change.
17
+ *
18
+ * Cancelling the event will prevent the user action.
19
+ */
20
+ var ZoomStartEvent = /** @class */ (function (_super) {
21
+ __extends(ZoomStartEvent, _super);
22
+ /**
23
+ * @hidden
24
+ */
25
+ function ZoomStartEvent(e, target) {
26
+ var _this = _super.call(this, target) || this;
27
+ _this.originalEvent = e.originalEvent;
28
+ return _this;
29
+ }
30
+ return ZoomStartEvent;
31
+ }(PreventableEvent));
32
+ export { ZoomStartEvent };
@@ -0,0 +1,6 @@
1
+ import { Map } from './Map';
2
+ import { MapProps } from './MapProps';
3
+ export * from './components/main';
4
+ export * from './common/map-types';
5
+ export * from './common/events';
6
+ export { Map, MapProps };
@@ -0,0 +1,5 @@
1
+ import { Map } from './Map';
2
+ export * from './components/main';
3
+ export * from './common/map-types';
4
+ export * from './common/events';
5
+ export { Map };
@@ -0,0 +1,5 @@
1
+ import { PackageMetadata } from '@progress/kendo-licensing';
2
+ /**
3
+ * @hidden
4
+ */
5
+ export declare const packageMetadata: PackageMetadata;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var packageMetadata = {
5
+ name: '@progress/kendo-react-map',
6
+ productName: 'KendoReact',
7
+ productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
+ publishDate: 1651776660,
9
+ version: '',
10
+ licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
+ };
@@ -0,0 +1,10 @@
1
+ import { StoreAction } from './store';
2
+ /**
3
+ * @hidden
4
+ */
5
+ declare const optionsReducer: (currentState: any, action: StoreAction) => object;
6
+ /**
7
+ * @hidden
8
+ */
9
+ declare const observersReducer: (currentState: any, action: StoreAction) => any;
10
+ export { optionsReducer, observersReducer };
@@ -0,0 +1,75 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ var optionsReducer = function (currentState, action) {
5
+ if (action.mapCollectionIdxKey) {
6
+ return reducers.collectionConfigurationItem(currentState, action);
7
+ }
8
+ else if (action.mapKey) {
9
+ return reducers.configurationItem(currentState, action);
10
+ }
11
+ else {
12
+ return {};
13
+ }
14
+ };
15
+ /**
16
+ * @hidden
17
+ */
18
+ var observersReducer = function (currentState, action) {
19
+ if (action.type) {
20
+ switch (action.type) {
21
+ case 'add':
22
+ return currentState.concat([action.payload]);
23
+ case 'remove':
24
+ return currentState.filter(function (element) { return element !== action.payload; });
25
+ default:
26
+ return currentState;
27
+ }
28
+ }
29
+ else {
30
+ return [];
31
+ }
32
+ };
33
+ /**
34
+ * @hidden
35
+ */
36
+ var reducers = {
37
+ configurationItem: function (currentState, action) {
38
+ var _a;
39
+ return Object.assign(currentState, (_a = {},
40
+ _a[action.mapKey] = action.payload,
41
+ _a));
42
+ },
43
+ collectionConfigurationItem: function (currentState, action) {
44
+ var _a;
45
+ var inCollection = false;
46
+ var _b = action.mapCollectionIdxKey.split('_'), collectionName = _b[0], collectionIdx = _b[1];
47
+ var collection = currentState[collectionName].map(function (item, index) {
48
+ if (parseInt(collectionIdx, 10) === index) {
49
+ inCollection = true;
50
+ return action.payload;
51
+ }
52
+ return item;
53
+ });
54
+ if (inCollection === false) {
55
+ collection.splice(parseInt(collectionIdx, 10), 0, action.payload);
56
+ }
57
+ return Object.assign(currentState, (_a = {},
58
+ _a[collectionName] = collection,
59
+ _a));
60
+ },
61
+ themeItem: function (currentState, action) {
62
+ var store = {};
63
+ var nextStore = Object.assign(store, currentState);
64
+ var _a = action.payload, field = _a.field, value = _a.value;
65
+ var parts = field.split('.');
66
+ var key = parts.shift();
67
+ while (parts.length > 0) {
68
+ store = store[key] = store[key] || {};
69
+ key = parts.shift();
70
+ }
71
+ store[key] = value;
72
+ return nextStore;
73
+ }
74
+ };
75
+ export { optionsReducer, observersReducer };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export interface StoreAction {
5
+ mapKey?: string;
6
+ mapCollectionIdxKey?: string;
7
+ type?: string;
8
+ payload: any;
9
+ }
10
+ /**
11
+ * @hidden
12
+ */
13
+ export interface Store {
14
+ getState(): any;
15
+ dispatch(action: StoreAction | object): void;
16
+ subscribe(f: Function): Function;
17
+ }
18
+ /**
19
+ * @hidden
20
+ */
21
+ declare const createStore: (reducer: any) => Store;
22
+ export default createStore;