@progress/kendo-react-map 6.1.1 → 7.0.0-develop.2

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 (208) hide show
  1. package/LICENSE.md +1 -1
  2. package/{dist/es/Map.d.ts → Map.d.ts} +4 -1
  3. package/{dist/npm/MapContext.d.ts → MapContext.d.ts} +4 -0
  4. package/{dist/es/MapProps.d.ts → MapProps.d.ts} +4 -0
  5. package/{dist/es/common → common}/events.d.ts +4 -0
  6. package/common/map-types.d.ts +5 -0
  7. package/{dist/es/components → components}/BubbleLayer.d.ts +4 -0
  8. package/{dist/es/components → components}/BubbleLayerTooltip.d.ts +4 -0
  9. package/components/Layers.d.ts +13 -0
  10. package/{dist/es/components → components}/MarkerLayer.d.ts +4 -0
  11. package/{dist/es/components → components}/MarkerLayerTooltip.d.ts +4 -0
  12. package/{dist/npm/components → components}/ShapeLayer.d.ts +4 -0
  13. package/{dist/npm/components → components}/ShapeLayerTooltip.d.ts +4 -0
  14. package/components/TileLayer.d.ts +13 -0
  15. package/{dist/npm/components → components}/base/CollectionConfigurationComponent.d.ts +4 -0
  16. package/{dist/es/components → components}/base/ConfigurationComponent.d.ts +4 -0
  17. package/components/index.d.ts +13 -0
  18. package/dist/cdn/js/kendo-react-map.js +5 -1
  19. package/events/base-event.d.ts +18 -0
  20. package/{dist/npm/events → events}/before-reset-event.d.ts +4 -0
  21. package/{dist/npm/events → events}/dom-event.d.ts +4 -1
  22. package/{dist/npm/events → events}/map-click-event.d.ts +4 -0
  23. package/events/map-event-builder.d.ts +10 -0
  24. package/{dist/npm/events → events}/marker-activate-event.d.ts +4 -0
  25. package/{dist/npm/events → events}/marker-click-event.d.ts +4 -0
  26. package/{dist/npm/events → events}/marker-created-event.d.ts +4 -0
  27. package/{dist/es/events → events}/pan-end-event.d.ts +4 -0
  28. package/{dist/es/events → events}/pan-event.d.ts +4 -0
  29. package/{dist/es/events → events}/preventable-event.d.ts +4 -0
  30. package/{dist/es/events → events}/reset-event.d.ts +4 -0
  31. package/{dist/npm/events → events}/shape-click-event.d.ts +4 -0
  32. package/{dist/npm/events → events}/shape-created-event.d.ts +4 -0
  33. package/{dist/es/events → events}/shape-feature-created-event.d.ts +4 -0
  34. package/{dist/es/events → events}/shape-mouse-enter-event.d.ts +4 -0
  35. package/{dist/npm/events → events}/shape-mouse-leave-event.d.ts +4 -0
  36. package/{dist/es/events → events}/zoom-end-event.d.ts +4 -0
  37. package/{dist/npm/events → events}/zoom-start-event.d.ts +4 -0
  38. package/index.d.ts +13 -0
  39. package/index.js +5 -0
  40. package/index.mjs +803 -0
  41. package/package-metadata.d.ts +9 -0
  42. package/package.json +29 -40
  43. package/store/reducer.d.ts +14 -0
  44. package/{dist/npm/store → store}/store.d.ts +4 -0
  45. package/{dist/npm/tooltip → tooltip}/BubbleTooltipContext.d.ts +5 -1
  46. package/{dist/npm/tooltip → tooltip}/MapTooltip.d.ts +6 -2
  47. package/{dist/npm/tooltip → tooltip}/MarkerTooltipContext.d.ts +5 -1
  48. package/{dist/es/tooltip → tooltip}/Popup.d.ts +5 -1
  49. package/tooltip/ShapeTooltipContext.d.ts +22 -0
  50. package/tooltip/index.d.ts +9 -0
  51. package/utils/index.d.ts +13 -0
  52. package/about.md +0 -3
  53. package/dist/es/Map.js +0 -469
  54. package/dist/es/MapContext.d.ts +0 -15
  55. package/dist/es/MapContext.js +0 -6
  56. package/dist/es/MapProps.js +0 -1
  57. package/dist/es/common/events.js +0 -16
  58. package/dist/es/common/map-types.d.ts +0 -1
  59. package/dist/es/common/map-types.js +0 -2
  60. package/dist/es/components/BubbleLayer.js +0 -25
  61. package/dist/es/components/BubbleLayerTooltip.js +0 -17
  62. package/dist/es/components/Layers.d.ts +0 -9
  63. package/dist/es/components/Layers.js +0 -21
  64. package/dist/es/components/MarkerLayer.js +0 -25
  65. package/dist/es/components/MarkerLayerTooltip.js +0 -17
  66. package/dist/es/components/ShapeLayer.d.ts +0 -10
  67. package/dist/es/components/ShapeLayer.js +0 -25
  68. package/dist/es/components/ShapeLayerTooltip.d.ts +0 -15
  69. package/dist/es/components/ShapeLayerTooltip.js +0 -17
  70. package/dist/es/components/TileLayer.d.ts +0 -9
  71. package/dist/es/components/TileLayer.js +0 -18
  72. package/dist/es/components/base/CollectionConfigurationComponent.d.ts +0 -19
  73. package/dist/es/components/base/CollectionConfigurationComponent.js +0 -63
  74. package/dist/es/components/base/ConfigurationComponent.js +0 -86
  75. package/dist/es/components/main.d.ts +0 -9
  76. package/dist/es/components/main.js +0 -9
  77. package/dist/es/defaults.d.ts +0 -1
  78. package/dist/es/defaults.js +0 -15
  79. package/dist/es/events/base-event.d.ts +0 -14
  80. package/dist/es/events/base-event.js +0 -13
  81. package/dist/es/events/before-reset-event.d.ts +0 -12
  82. package/dist/es/events/before-reset-event.js +0 -30
  83. package/dist/es/events/dom-event.d.ts +0 -23
  84. package/dist/es/events/dom-event.js +0 -21
  85. package/dist/es/events/map-click-event.d.ts +0 -20
  86. package/dist/es/events/map-click-event.js +0 -33
  87. package/dist/es/events/map-event-builder.d.ts +0 -6
  88. package/dist/es/events/map-event-builder.js +0 -27
  89. package/dist/es/events/marker-activate-event.d.ts +0 -20
  90. package/dist/es/events/marker-activate-event.js +0 -33
  91. package/dist/es/events/marker-click-event.d.ts +0 -20
  92. package/dist/es/events/marker-click-event.js +0 -33
  93. package/dist/es/events/marker-created-event.d.ts +0 -22
  94. package/dist/es/events/marker-created-event.js +0 -35
  95. package/dist/es/events/pan-end-event.js +0 -34
  96. package/dist/es/events/pan-event.js +0 -34
  97. package/dist/es/events/preventable-event.js +0 -46
  98. package/dist/es/events/reset-event.js +0 -32
  99. package/dist/es/events/shape-click-event.d.ts +0 -25
  100. package/dist/es/events/shape-click-event.js +0 -34
  101. package/dist/es/events/shape-created-event.d.ts +0 -29
  102. package/dist/es/events/shape-created-event.js +0 -38
  103. package/dist/es/events/shape-feature-created-event.js +0 -35
  104. package/dist/es/events/shape-mouse-enter-event.js +0 -37
  105. package/dist/es/events/shape-mouse-leave-event.d.ts +0 -28
  106. package/dist/es/events/shape-mouse-leave-event.js +0 -37
  107. package/dist/es/events/zoom-end-event.js +0 -32
  108. package/dist/es/events/zoom-start-event.d.ts +0 -18
  109. package/dist/es/events/zoom-start-event.js +0 -34
  110. package/dist/es/main.d.ts +0 -9
  111. package/dist/es/main.js +0 -8
  112. package/dist/es/package-metadata.d.ts +0 -5
  113. package/dist/es/package-metadata.js +0 -11
  114. package/dist/es/store/reducer.d.ts +0 -10
  115. package/dist/es/store/reducer.js +0 -84
  116. package/dist/es/store/store.d.ts +0 -22
  117. package/dist/es/store/store.js +0 -22
  118. package/dist/es/tooltip/BubbleTooltipContext.d.ts +0 -22
  119. package/dist/es/tooltip/BubbleTooltipContext.js +0 -1
  120. package/dist/es/tooltip/MapTooltip.d.ts +0 -37
  121. package/dist/es/tooltip/MapTooltip.js +0 -123
  122. package/dist/es/tooltip/MarkerTooltipContext.d.ts +0 -22
  123. package/dist/es/tooltip/MarkerTooltipContext.js +0 -1
  124. package/dist/es/tooltip/Popup.js +0 -76
  125. package/dist/es/tooltip/ShapeTooltipContext.d.ts +0 -18
  126. package/dist/es/tooltip/ShapeTooltipContext.js +0 -1
  127. package/dist/es/tooltip/main.d.ts +0 -5
  128. package/dist/es/tooltip/main.js +0 -2
  129. package/dist/es/utils/main.d.ts +0 -10
  130. package/dist/es/utils/main.js +0 -28
  131. package/dist/npm/Map.d.ts +0 -189
  132. package/dist/npm/Map.js +0 -472
  133. package/dist/npm/MapContext.js +0 -9
  134. package/dist/npm/MapProps.d.ts +0 -100
  135. package/dist/npm/MapProps.js +0 -2
  136. package/dist/npm/common/events.d.ts +0 -15
  137. package/dist/npm/common/events.js +0 -34
  138. package/dist/npm/common/map-types.d.ts +0 -1
  139. package/dist/npm/common/map-types.js +0 -7
  140. package/dist/npm/components/BubbleLayer.d.ts +0 -10
  141. package/dist/npm/components/BubbleLayer.js +0 -28
  142. package/dist/npm/components/BubbleLayerTooltip.d.ts +0 -15
  143. package/dist/npm/components/BubbleLayerTooltip.js +0 -20
  144. package/dist/npm/components/Layers.d.ts +0 -9
  145. package/dist/npm/components/Layers.js +0 -24
  146. package/dist/npm/components/MarkerLayer.d.ts +0 -10
  147. package/dist/npm/components/MarkerLayer.js +0 -28
  148. package/dist/npm/components/MarkerLayerTooltip.d.ts +0 -15
  149. package/dist/npm/components/MarkerLayerTooltip.js +0 -20
  150. package/dist/npm/components/ShapeLayer.js +0 -28
  151. package/dist/npm/components/ShapeLayerTooltip.js +0 -20
  152. package/dist/npm/components/TileLayer.d.ts +0 -9
  153. package/dist/npm/components/TileLayer.js +0 -21
  154. package/dist/npm/components/base/CollectionConfigurationComponent.js +0 -65
  155. package/dist/npm/components/base/ConfigurationComponent.d.ts +0 -24
  156. package/dist/npm/components/base/ConfigurationComponent.js +0 -88
  157. package/dist/npm/components/main.d.ts +0 -9
  158. package/dist/npm/components/main.js +0 -19
  159. package/dist/npm/defaults.d.ts +0 -1
  160. package/dist/npm/defaults.js +0 -17
  161. package/dist/npm/events/base-event.d.ts +0 -14
  162. package/dist/npm/events/base-event.js +0 -16
  163. package/dist/npm/events/before-reset-event.js +0 -33
  164. package/dist/npm/events/dom-event.js +0 -24
  165. package/dist/npm/events/map-click-event.js +0 -36
  166. package/dist/npm/events/map-event-builder.d.ts +0 -6
  167. package/dist/npm/events/map-event-builder.js +0 -30
  168. package/dist/npm/events/marker-activate-event.js +0 -36
  169. package/dist/npm/events/marker-click-event.js +0 -36
  170. package/dist/npm/events/marker-created-event.js +0 -38
  171. package/dist/npm/events/pan-end-event.d.ts +0 -24
  172. package/dist/npm/events/pan-end-event.js +0 -37
  173. package/dist/npm/events/pan-event.d.ts +0 -24
  174. package/dist/npm/events/pan-event.js +0 -37
  175. package/dist/npm/events/preventable-event.d.ts +0 -18
  176. package/dist/npm/events/preventable-event.js +0 -49
  177. package/dist/npm/events/reset-event.d.ts +0 -14
  178. package/dist/npm/events/reset-event.js +0 -35
  179. package/dist/npm/events/shape-click-event.js +0 -37
  180. package/dist/npm/events/shape-created-event.js +0 -41
  181. package/dist/npm/events/shape-feature-created-event.d.ts +0 -29
  182. package/dist/npm/events/shape-feature-created-event.js +0 -38
  183. package/dist/npm/events/shape-mouse-enter-event.d.ts +0 -28
  184. package/dist/npm/events/shape-mouse-enter-event.js +0 -40
  185. package/dist/npm/events/shape-mouse-leave-event.js +0 -40
  186. package/dist/npm/events/zoom-end-event.d.ts +0 -16
  187. package/dist/npm/events/zoom-end-event.js +0 -35
  188. package/dist/npm/events/zoom-start-event.js +0 -37
  189. package/dist/npm/main.d.ts +0 -9
  190. package/dist/npm/main.js +0 -27
  191. package/dist/npm/package-metadata.d.ts +0 -5
  192. package/dist/npm/package-metadata.js +0 -14
  193. package/dist/npm/store/reducer.d.ts +0 -10
  194. package/dist/npm/store/reducer.js +0 -88
  195. package/dist/npm/store/store.js +0 -24
  196. package/dist/npm/tooltip/BubbleTooltipContext.js +0 -2
  197. package/dist/npm/tooltip/MapTooltip.js +0 -126
  198. package/dist/npm/tooltip/MarkerTooltipContext.js +0 -2
  199. package/dist/npm/tooltip/Popup.d.ts +0 -29
  200. package/dist/npm/tooltip/Popup.js +0 -79
  201. package/dist/npm/tooltip/ShapeTooltipContext.d.ts +0 -18
  202. package/dist/npm/tooltip/ShapeTooltipContext.js +0 -2
  203. package/dist/npm/tooltip/main.d.ts +0 -5
  204. package/dist/npm/tooltip/main.js +0 -5
  205. package/dist/npm/utils/main.d.ts +0 -10
  206. package/dist/npm/utils/main.js +0 -32
  207. package/dist/systemjs/kendo-react-map.js +0 -1
  208. package/e2e-next/basic.tests.ts +0 -24
@@ -1,34 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fires after the map viewport has been moved.
19
- */
20
- var PanEndEvent = /** @class */ (function (_super) {
21
- __extends(PanEndEvent, _super);
22
- /**
23
- * @hidden
24
- */
25
- function PanEndEvent(e, target) {
26
- var _this = _super.call(this, target) || this;
27
- _this.origin = e.origin;
28
- _this.center = e.center;
29
- _this.originalEvent = e.originalEvent;
30
- return _this;
31
- }
32
- return PanEndEvent;
33
- }(BaseEvent));
34
- export { PanEndEvent };
@@ -1,34 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired while the map viewport is being moved.
19
- */
20
- var PanEvent = /** @class */ (function (_super) {
21
- __extends(PanEvent, _super);
22
- /**
23
- * @hidden
24
- */
25
- function PanEvent(e, target) {
26
- var _this = _super.call(this, target) || this;
27
- _this.origin = e.origin;
28
- _this.center = e.center;
29
- _this.originalEvent = e.originalEvent;
30
- return _this;
31
- }
32
- return PanEvent;
33
- }(BaseEvent));
34
- export { PanEvent };
@@ -1,46 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * @hidden
19
- */
20
- var PreventableEvent = /** @class */ (function (_super) {
21
- __extends(PreventableEvent, _super);
22
- function PreventableEvent() {
23
- var _this = _super !== null && _super.apply(this, arguments) || this;
24
- _this.prevented = false;
25
- return _this;
26
- }
27
- /* eslint-disable max-len */
28
- /**
29
- * Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
30
- */
31
- PreventableEvent.prototype.preventDefault = function () {
32
- this.prevented = true;
33
- };
34
- /**
35
- * Returns `true` if the event was prevented by any of its subscribers.
36
- *
37
- * @returns `true` if the default action was prevented.
38
- * Otherwise, returns `false`.
39
- */
40
- PreventableEvent.prototype.isDefaultPrevented = function () {
41
- return this.prevented;
42
- };
43
- return PreventableEvent;
44
- }(BaseEvent));
45
- export { PreventableEvent };
46
- // tslint:enable:max-line-length
@@ -1,32 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired when the map is reset.
19
- *
20
- * This typically occurs on initial load and after a zoom/center change.
21
- */
22
- var ResetEvent = /** @class */ (function (_super) {
23
- __extends(ResetEvent, _super);
24
- /**
25
- * @hidden
26
- */
27
- function ResetEvent(_, target) {
28
- return _super.call(this, target) || this;
29
- }
30
- return ResetEvent;
31
- }(BaseEvent));
32
- export { ResetEvent };
@@ -1,25 +0,0 @@
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
- }
@@ -1,34 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired when a shape is clicked or tapped.
19
- */
20
- var ShapeClickEvent = /** @class */ (function (_super) {
21
- __extends(ShapeClickEvent, _super);
22
- /**
23
- * @hidden
24
- */
25
- function ShapeClickEvent(e, target) {
26
- var _this = _super.call(this, target) || this;
27
- _this.layer = e.layer;
28
- _this.shape = e.shape;
29
- _this.originalEvent = e.originalEvent;
30
- return _this;
31
- }
32
- return ShapeClickEvent;
33
- }(BaseEvent));
34
- export { ShapeClickEvent };
@@ -1,29 +0,0 @@
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
- }
@@ -1,38 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired when a shape is created, but is not rendered yet.
19
- */
20
- var ShapeCreatedEvent = /** @class */ (function (_super) {
21
- __extends(ShapeCreatedEvent, _super);
22
- /**
23
- * @hidden
24
- */
25
- function ShapeCreatedEvent(e, target) {
26
- var _this = _super.call(this, target) || this;
27
- _this.layer = e.layer;
28
- _this.shape = e.shape;
29
- _this.location = null;
30
- if (e.shape) {
31
- _this.dataItem = e.shape.dataItem;
32
- _this.location = e.shape.location;
33
- }
34
- return _this;
35
- }
36
- return ShapeCreatedEvent;
37
- }(BaseEvent));
38
- export { ShapeCreatedEvent };
@@ -1,35 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
19
- */
20
- var ShapeFeatureCreatedEvent = /** @class */ (function (_super) {
21
- __extends(ShapeFeatureCreatedEvent, _super);
22
- /**
23
- * @hidden
24
- */
25
- function ShapeFeatureCreatedEvent(e, target) {
26
- var _this = _super.call(this, target) || this;
27
- _this.dataItem = e.dataItem;
28
- _this.layer = e.layer;
29
- _this.group = e.group;
30
- _this.properties = e.properties;
31
- return _this;
32
- }
33
- return ShapeFeatureCreatedEvent;
34
- }(BaseEvent));
35
- export { ShapeFeatureCreatedEvent };
@@ -1,37 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired when the mouse enters a shape.
19
- *
20
- * > This event will fire reliably only for shapes that have set fill color.
21
- * > The opacity can still be set to 0 so the shapes appear to have no fill.
22
- */
23
- var ShapeMouseEnterEvent = /** @class */ (function (_super) {
24
- __extends(ShapeMouseEnterEvent, _super);
25
- /**
26
- * @hidden
27
- */
28
- function ShapeMouseEnterEvent(e, target) {
29
- var _this = _super.call(this, target) || this;
30
- _this.layer = e.layer;
31
- _this.shape = e.shape;
32
- _this.originalEvent = e.originalEvent;
33
- return _this;
34
- }
35
- return ShapeMouseEnterEvent;
36
- }(BaseEvent));
37
- export { ShapeMouseEnterEvent };
@@ -1,28 +0,0 @@
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
- }
@@ -1,37 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired when the mouse leaves a shape.
19
- *
20
- * > This event will fire reliably only for shapes that have set fill color.
21
- * > The opacity can still be set to 0 so the shapes appear to have no fill.
22
- */
23
- var ShapeMouseLeaveEvent = /** @class */ (function (_super) {
24
- __extends(ShapeMouseLeaveEvent, _super);
25
- /**
26
- * @hidden
27
- */
28
- function ShapeMouseLeaveEvent(e, target) {
29
- var _this = _super.call(this, target) || this;
30
- _this.layer = e.layer;
31
- _this.shape = e.shape;
32
- _this.originalEvent = e.originalEvent;
33
- return _this;
34
- }
35
- return ShapeMouseLeaveEvent;
36
- }(BaseEvent));
37
- export { ShapeMouseLeaveEvent };
@@ -1,32 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BaseEvent } from './base-event';
17
- /**
18
- * Fired when the map zoom level has changed.
19
- */
20
- var ZoomEndEvent = /** @class */ (function (_super) {
21
- __extends(ZoomEndEvent, _super);
22
- /**
23
- * @hidden
24
- */
25
- function ZoomEndEvent(e, target) {
26
- var _this = _super.call(this, target) || this;
27
- _this.originalEvent = e.originalEvent;
28
- return _this;
29
- }
30
- return ZoomEndEvent;
31
- }(BaseEvent));
32
- export { ZoomEndEvent };
@@ -1,18 +0,0 @@
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
- }
@@ -1,34 +0,0 @@
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { PreventableEvent } from './preventable-event';
17
- /**
18
- * Fired when the map zoom level is about to change.
19
- *
20
- * Cancelling the event will prevent the user action.
21
- */
22
- var ZoomStartEvent = /** @class */ (function (_super) {
23
- __extends(ZoomStartEvent, _super);
24
- /**
25
- * @hidden
26
- */
27
- function ZoomStartEvent(e, target) {
28
- var _this = _super.call(this, target) || this;
29
- _this.originalEvent = e.originalEvent;
30
- return _this;
31
- }
32
- return ZoomStartEvent;
33
- }(PreventableEvent));
34
- export { ZoomStartEvent };
package/dist/es/main.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import CollectionConfigurationComponent from './components/base/CollectionConfigurationComponent';
2
- import ConfigurationComponent from './components/base/ConfigurationComponent';
3
- export { CollectionConfigurationComponent, ConfigurationComponent };
4
- export { Map } from './Map';
5
- export { MapProps } from './MapProps';
6
- export * from './components/main';
7
- export * from './common/map-types';
8
- export * from './common/events';
9
- export * from './tooltip/main';
package/dist/es/main.js DELETED
@@ -1,8 +0,0 @@
1
- import CollectionConfigurationComponent from './components/base/CollectionConfigurationComponent';
2
- import ConfigurationComponent from './components/base/ConfigurationComponent';
3
- export { CollectionConfigurationComponent, ConfigurationComponent };
4
- export { Map } from './Map';
5
- export * from './components/main';
6
- export * from './common/map-types';
7
- export * from './common/events';
8
- export * from './tooltip/main';
@@ -1,5 +0,0 @@
1
- import { PackageMetadata } from '@progress/kendo-licensing';
2
- /**
3
- * @hidden
4
- */
5
- export declare const packageMetadata: PackageMetadata;
@@ -1,11 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export var packageMetadata = {
5
- name: '@progress/kendo-react-map',
6
- productName: 'KendoReact',
7
- productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1700064852,
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
- };
@@ -1,10 +0,0 @@
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 };
@@ -1,84 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- /**
11
- * @hidden
12
- */
13
- var optionsReducer = function (currentState, action) {
14
- if (action.mapCollectionIdxKey) {
15
- return reducers.collectionConfigurationItem(currentState, action);
16
- }
17
- else if (action.mapKey) {
18
- return reducers.configurationItem(currentState, action);
19
- }
20
- else {
21
- return {};
22
- }
23
- };
24
- /**
25
- * @hidden
26
- */
27
- var observersReducer = function (currentState, action) {
28
- if (action.type) {
29
- switch (action.type) {
30
- case 'add':
31
- return __spreadArray(__spreadArray([], currentState, true), [action.payload], false);
32
- case 'remove':
33
- return currentState.filter(function (element) { return element !== action.payload; });
34
- default:
35
- return currentState;
36
- }
37
- }
38
- else {
39
- return [];
40
- }
41
- };
42
- /**
43
- * @hidden
44
- */
45
- var reducers = {
46
- configurationItem: function (currentState, action) {
47
- var _a;
48
- return Object.assign(currentState, (_a = {},
49
- _a[action.mapKey] = action.payload,
50
- _a));
51
- },
52
- collectionConfigurationItem: function (currentState, action) {
53
- var _a;
54
- var inCollection = false;
55
- var _b = action.mapCollectionIdxKey.split('_'), collectionName = _b[0], collectionIdx = _b[1];
56
- var collection = currentState[collectionName].map(function (item, index) {
57
- if (parseInt(collectionIdx, 10) === index) {
58
- inCollection = true;
59
- return action.payload;
60
- }
61
- return item;
62
- });
63
- if (inCollection === false) {
64
- collection.splice(parseInt(collectionIdx, 10), 0, action.payload);
65
- }
66
- return Object.assign(currentState, (_a = {},
67
- _a[collectionName] = collection,
68
- _a));
69
- },
70
- themeItem: function (currentState, action) {
71
- var store = {};
72
- var nextStore = Object.assign(store, currentState);
73
- var _a = action.payload, field = _a.field, value = _a.value;
74
- var parts = field.split('.');
75
- var key = parts.shift();
76
- while (parts.length > 0) {
77
- store = store[key] = store[key] || {};
78
- key = parts.shift();
79
- }
80
- store[key] = value;
81
- return nextStore;
82
- }
83
- };
84
- export { optionsReducer, observersReducer };
@@ -1,22 +0,0 @@
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;