@progress/kendo-react-map 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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 (84) hide show
  1. package/dist/cdn/js/kendo-react-map.js +1 -1
  2. package/dist/es/Map.d.ts +1 -1
  3. package/dist/es/Map.js +8 -4
  4. package/dist/es/MapContext.d.ts +1 -1
  5. package/dist/es/MapProps.js +1 -0
  6. package/dist/es/components/BubbleLayer.d.ts +2 -2
  7. package/dist/es/components/BubbleLayer.js +1 -1
  8. package/dist/es/components/Layers.d.ts +2 -2
  9. package/dist/es/components/Layers.js +1 -1
  10. package/dist/es/components/MarkerLayer.d.ts +2 -2
  11. package/dist/es/components/MarkerLayer.js +1 -1
  12. package/dist/es/components/ShapeLayer.d.ts +2 -2
  13. package/dist/es/components/ShapeLayer.js +1 -1
  14. package/dist/es/components/TileLayer.d.ts +2 -2
  15. package/dist/es/components/TileLayer.js +1 -1
  16. package/dist/es/components/base/CollectionConfigurationComponent.d.ts +1 -1
  17. package/dist/es/components/base/CollectionConfigurationComponent.js +4 -2
  18. package/dist/es/components/base/ConfigurationComponent.d.ts +1 -1
  19. package/dist/es/components/base/ConfigurationComponent.js +8 -4
  20. package/dist/es/components/main.d.ts +5 -5
  21. package/dist/es/components/main.js +5 -5
  22. package/dist/es/events/before-reset-event.js +3 -1
  23. package/dist/es/events/map-click-event.js +3 -1
  24. package/dist/es/events/marker-activate-event.js +3 -1
  25. package/dist/es/events/marker-click-event.js +3 -1
  26. package/dist/es/events/marker-created-event.js +3 -1
  27. package/dist/es/events/pan-end-event.js +3 -1
  28. package/dist/es/events/pan-event.js +3 -1
  29. package/dist/es/events/preventable-event.js +3 -1
  30. package/dist/es/events/reset-event.js +3 -1
  31. package/dist/es/events/shape-click-event.js +3 -1
  32. package/dist/es/events/shape-created-event.js +4 -1
  33. package/dist/es/events/shape-feature-created-event.js +3 -1
  34. package/dist/es/events/shape-mouse-enter-event.js +3 -1
  35. package/dist/es/events/shape-mouse-leave-event.js +3 -1
  36. package/dist/es/events/zoom-end-event.js +3 -1
  37. package/dist/es/events/zoom-start-event.js +3 -1
  38. package/dist/es/package-metadata.js +1 -1
  39. package/dist/es/store/reducer.js +10 -1
  40. package/dist/npm/Map.d.ts +1 -1
  41. package/dist/npm/Map.js +13 -8
  42. package/dist/npm/MapContext.d.ts +1 -1
  43. package/dist/npm/MapContext.js +1 -0
  44. package/dist/npm/common/events.js +16 -15
  45. package/dist/npm/common/map-types.js +3 -2
  46. package/dist/npm/components/BubbleLayer.d.ts +2 -2
  47. package/dist/npm/components/BubbleLayer.js +2 -1
  48. package/dist/npm/components/Layers.d.ts +2 -2
  49. package/dist/npm/components/Layers.js +2 -1
  50. package/dist/npm/components/MarkerLayer.d.ts +2 -2
  51. package/dist/npm/components/MarkerLayer.js +2 -1
  52. package/dist/npm/components/ShapeLayer.d.ts +2 -2
  53. package/dist/npm/components/ShapeLayer.js +2 -1
  54. package/dist/npm/components/TileLayer.d.ts +2 -2
  55. package/dist/npm/components/TileLayer.js +2 -1
  56. package/dist/npm/components/base/CollectionConfigurationComponent.d.ts +1 -1
  57. package/dist/npm/components/base/CollectionConfigurationComponent.js +4 -2
  58. package/dist/npm/components/base/ConfigurationComponent.d.ts +1 -1
  59. package/dist/npm/components/base/ConfigurationComponent.js +9 -5
  60. package/dist/npm/components/main.d.ts +5 -5
  61. package/dist/npm/components/main.js +6 -5
  62. package/dist/npm/events/base-event.js +1 -0
  63. package/dist/npm/events/before-reset-event.js +4 -1
  64. package/dist/npm/events/map-click-event.js +4 -1
  65. package/dist/npm/events/map-event-builder.js +1 -0
  66. package/dist/npm/events/marker-activate-event.js +4 -1
  67. package/dist/npm/events/marker-click-event.js +4 -1
  68. package/dist/npm/events/marker-created-event.js +4 -1
  69. package/dist/npm/events/pan-end-event.js +4 -1
  70. package/dist/npm/events/pan-event.js +4 -1
  71. package/dist/npm/events/preventable-event.js +4 -1
  72. package/dist/npm/events/reset-event.js +4 -1
  73. package/dist/npm/events/shape-click-event.js +4 -1
  74. package/dist/npm/events/shape-created-event.js +5 -1
  75. package/dist/npm/events/shape-feature-created-event.js +4 -1
  76. package/dist/npm/events/shape-mouse-enter-event.js +4 -1
  77. package/dist/npm/events/shape-mouse-leave-event.js +4 -1
  78. package/dist/npm/events/zoom-end-event.js +4 -1
  79. package/dist/npm/events/zoom-start-event.js +4 -1
  80. package/dist/npm/main.js +19 -7
  81. package/dist/npm/package-metadata.js +2 -1
  82. package/dist/npm/store/reducer.js +11 -1
  83. package/dist/systemjs/kendo-react-map.js +1 -1
  84. package/package.json +1 -1
package/dist/es/Map.d.ts CHANGED
@@ -25,7 +25,7 @@ export declare class Map extends React.Component<MapProps, {}> {
25
25
  /**
26
26
  * @hidden
27
27
  */
28
- readonly element: HTMLDivElement;
28
+ get element(): HTMLDivElement;
29
29
  protected _element: HTMLDivElement | null;
30
30
  protected optionsStore: any;
31
31
  protected optionsUnsubscriber: Function;
package/dist/es/Map.js CHANGED
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -16,8 +18,10 @@ var __rest = (this && this.__rest) || function (s, e) {
16
18
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
17
19
  t[p] = s[p];
18
20
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
19
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
20
- t[p[i]] = s[p[i]];
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
21
25
  return t;
22
26
  };
23
27
  import * as React from 'react';
@@ -84,7 +88,7 @@ var Map = /** @class */ (function (_super) {
84
88
  get: function () {
85
89
  return this._element;
86
90
  },
87
- enumerable: true,
91
+ enumerable: false,
88
92
  configurable: true
89
93
  });
90
94
  /**
@@ -12,4 +12,4 @@ export interface MapContextType {
12
12
  /**
13
13
  * @hidden
14
14
  */
15
- export declare const MapContext: React.Context<MapContextType>;
15
+ export declare const MapContext: React.Context<MapContextType | null>;
@@ -0,0 +1 @@
1
+ export {};
@@ -5,5 +5,5 @@ import { BubbleLayerOptions } from '@progress/kendo-charts';
5
5
  */
6
6
  export interface MapBubbleLayerProps extends BubbleLayerOptions {
7
7
  }
8
- declare const MapBubbleLayer: React.SFC<MapBubbleLayerProps>;
9
- export default MapBubbleLayer;
8
+ declare const MapBubbleLayer: React.FunctionComponent<MapBubbleLayerProps>;
9
+ export { MapBubbleLayer };
@@ -15,4 +15,4 @@ var MapBubbleLayer = function (props) {
15
15
  return (React.createElement(ConfigurationComponent, __assign({ type: "bubble" }, props)));
16
16
  };
17
17
  MapBubbleLayer.displayName = 'MapBubbleLayer';
18
- export default MapBubbleLayer;
18
+ export { MapBubbleLayer };
@@ -5,5 +5,5 @@ import * as React from 'react';
5
5
  export interface MapLayersProps {
6
6
  children?: React.ReactNode;
7
7
  }
8
- declare const MapLayers: React.SFC<MapLayersProps>;
9
- export default MapLayers;
8
+ declare const MapLayers: React.FunctionComponent<MapLayersProps>;
9
+ export { MapLayers };
@@ -18,4 +18,4 @@ var MapLayers = function (props) {
18
18
  MapLayers.propTypes = {
19
19
  children: PropTypes.array
20
20
  };
21
- export default MapLayers;
21
+ export { MapLayers };
@@ -5,5 +5,5 @@ import { MarkerLayerOptions } from '@progress/kendo-charts';
5
5
  */
6
6
  export interface MapMarkerLayerProps extends MarkerLayerOptions {
7
7
  }
8
- declare const MapMarkerLayer: React.SFC<MapMarkerLayerProps>;
9
- export default MapMarkerLayer;
8
+ declare const MapMarkerLayer: React.FunctionComponent<MapMarkerLayerProps>;
9
+ export { MapMarkerLayer };
@@ -15,4 +15,4 @@ var MapMarkerLayer = function (props) {
15
15
  return (React.createElement(ConfigurationComponent, __assign({ type: "marker" }, props)));
16
16
  };
17
17
  MapMarkerLayer.displayName = 'MapMarkerLayer';
18
- export default MapMarkerLayer;
18
+ export { MapMarkerLayer };
@@ -5,5 +5,5 @@ import { ShapeLayerOptions } from '@progress/kendo-charts';
5
5
  */
6
6
  export interface MapShapeLayerProps extends ShapeLayerOptions {
7
7
  }
8
- declare const MapShapeLayer: React.SFC<MapShapeLayerProps>;
9
- export default MapShapeLayer;
8
+ declare const MapShapeLayer: React.FunctionComponent<MapShapeLayerProps>;
9
+ export { MapShapeLayer };
@@ -15,4 +15,4 @@ var MapShapeLayer = function (props) {
15
15
  return (React.createElement(ConfigurationComponent, __assign({ type: "shape" }, props)));
16
16
  };
17
17
  MapShapeLayer.displayName = 'MapShapeLayer';
18
- export default MapShapeLayer;
18
+ export { MapShapeLayer };
@@ -5,5 +5,5 @@ import { TileLayerOptions } from '@progress/kendo-charts';
5
5
  */
6
6
  export interface MapTileLayerProps extends TileLayerOptions {
7
7
  }
8
- declare const MapTileLayer: React.SFC<MapTileLayerProps>;
9
- export default MapTileLayer;
8
+ declare const MapTileLayer: React.FunctionComponent<MapTileLayerProps>;
9
+ export { MapTileLayer };
@@ -15,4 +15,4 @@ var MapTileLayer = function (props) {
15
15
  return (React.createElement(ConfigurationComponent, __assign({ type: "tile" }, props)));
16
16
  };
17
17
  MapTileLayer.displayName = 'MapTileLayer';
18
- export default MapTileLayer;
18
+ export { MapTileLayer };
@@ -11,7 +11,7 @@ export interface CollectionConfigurationProps {
11
11
  * @hidden
12
12
  */
13
13
  export default class CollectionConfigurationComponent extends React.Component<CollectionConfigurationProps> {
14
- static contextType: React.Context<import("../../MapContext").MapContextType>;
14
+ static contextType: React.Context<import("../../MapContext").MapContextType | null>;
15
15
  optionsStore: any;
16
16
  constructor(props: any, context: any);
17
17
  renderChildren(child: any, index: number): React.DetailedReactHTMLElement<any, HTMLElement>;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -37,7 +39,7 @@ var CollectionConfigurationComponent = /** @class */ (function (_super) {
37
39
  CollectionConfigurationComponent.prototype.renderChildren = function (child, index) {
38
40
  var children = child.props.children;
39
41
  var _a = this.props, _mapKey = _a._mapKey, _parentStore = _a._parentStore;
40
- var collectionItemProps = __assign({}, child.props, { _mapCollectionIdxKey: _mapKey + "_" + index, _parentStore: _parentStore });
42
+ var collectionItemProps = __assign(__assign({}, child.props), { _mapCollectionIdxKey: "".concat(_mapKey, "_").concat(index), _parentStore: _parentStore });
41
43
  return React.cloneElement(child, collectionItemProps, children);
42
44
  };
43
45
  CollectionConfigurationComponent.prototype.render = function () {
@@ -12,7 +12,7 @@ export interface ConfigurationComponentProps {
12
12
  * @hidden
13
13
  */
14
14
  export default class ConfigurationComponent extends React.Component<ConfigurationComponentProps> {
15
- static contextType: React.Context<import("../../MapContext").MapContextType>;
15
+ static contextType: React.Context<import("../../MapContext").MapContextType | null>;
16
16
  optionsStore: any;
17
17
  childStore: any;
18
18
  constructor(props: any, context: any);
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -73,7 +77,7 @@ var ConfigurationComponent = /** @class */ (function (_super) {
73
77
  };
74
78
  ConfigurationComponent.prototype.renderChildren = function (child) {
75
79
  var children = child.props.children;
76
- var configurationItemProps = __assign({}, child.props, { _parentStore: this.childStore });
80
+ var configurationItemProps = __assign(__assign({}, child.props), { _parentStore: this.childStore });
77
81
  return React.cloneElement(child, configurationItemProps, children);
78
82
  };
79
83
  ConfigurationComponent.contextType = MapContext;
@@ -1,6 +1,6 @@
1
- import MapLayers, { MapLayersProps } from './Layers';
2
- import MapShapeLayer, { MapShapeLayerProps } from './ShapeLayer';
3
- import MapTileLayer, { MapTileLayerProps } from './TileLayer';
4
- import MapBubbleLayer, { MapBubbleLayerProps } from './BubbleLayer';
5
- import MapMarkerLayer, { MapMarkerLayerProps } from './MarkerLayer';
1
+ import { MapLayers, MapLayersProps } from './Layers';
2
+ import { MapShapeLayer, MapShapeLayerProps } from './ShapeLayer';
3
+ import { MapTileLayer, MapTileLayerProps } from './TileLayer';
4
+ import { MapBubbleLayer, MapBubbleLayerProps } from './BubbleLayer';
5
+ import { MapMarkerLayer, MapMarkerLayerProps } from './MarkerLayer';
6
6
  export { MapLayers, MapLayersProps, MapShapeLayer, MapShapeLayerProps, MapTileLayer, MapTileLayerProps, MapBubbleLayer, MapBubbleLayerProps, MapMarkerLayer, MapMarkerLayerProps };
@@ -1,6 +1,6 @@
1
- import MapLayers from './Layers';
2
- import MapShapeLayer from './ShapeLayer';
3
- import MapTileLayer from './TileLayer';
4
- import MapBubbleLayer from './BubbleLayer';
5
- import MapMarkerLayer from './MarkerLayer';
1
+ import { MapLayers } from './Layers';
2
+ import { MapShapeLayer } from './ShapeLayer';
3
+ import { MapTileLayer } from './TileLayer';
4
+ import { MapBubbleLayer } from './BubbleLayer';
5
+ import { MapMarkerLayer } from './MarkerLayer';
6
6
  export { MapLayers, MapShapeLayer, MapTileLayer, MapBubbleLayer, MapMarkerLayer };
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var ShapeCreatedEvent = /** @class */ (function (_super) {
24
26
  var _this = _super.call(this, target) || this;
25
27
  _this.layer = e.layer;
26
28
  _this.shape = e.shape;
29
+ _this.location = null;
27
30
  if (e.shape) {
28
31
  _this.dataItem = e.shape.dataItem;
29
32
  _this.location = e.shape.location;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
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]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
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");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-map',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1653030999,
8
+ publishDate: 1654510019,
9
9
  version: '',
10
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
11
  };
@@ -1,3 +1,12 @@
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
+ };
1
10
  /**
2
11
  * @hidden
3
12
  */
@@ -19,7 +28,7 @@ var observersReducer = function (currentState, action) {
19
28
  if (action.type) {
20
29
  switch (action.type) {
21
30
  case 'add':
22
- return currentState.concat([action.payload]);
31
+ return __spreadArray(__spreadArray([], currentState, true), [action.payload], false);
23
32
  case 'remove':
24
33
  return currentState.filter(function (element) { return element !== action.payload; });
25
34
  default:
package/dist/npm/Map.d.ts CHANGED
@@ -25,7 +25,7 @@ export declare class Map extends React.Component<MapProps, {}> {
25
25
  /**
26
26
  * @hidden
27
27
  */
28
- readonly element: HTMLDivElement;
28
+ get element(): HTMLDivElement;
29
29
  protected _element: HTMLDivElement | null;
30
30
  protected optionsStore: any;
31
31
  protected optionsUnsubscriber: Function;
package/dist/npm/Map.js CHANGED
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -17,11 +19,14 @@ var __rest = (this && this.__rest) || function (s, e) {
17
19
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
18
20
  t[p] = s[p];
19
21
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
20
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
21
- t[p[i]] = s[p[i]];
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
22
26
  return t;
23
27
  };
24
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Map = void 0;
25
30
  var React = require("react");
26
31
  var PropTypes = require("prop-types");
27
32
  var kendo_charts_1 = require("@progress/kendo-charts");
@@ -65,9 +70,9 @@ var Map = /** @class */ (function (_super) {
65
70
  // this.mapInstance.resize();
66
71
  }
67
72
  };
68
- kendo_react_common_1.validatePackage(package_metadata_1.packageMetadata);
69
- _this.optionsStore = store_1.default(reducer_1.optionsReducer);
70
- _this.observersStore = store_1.default(reducer_1.observersReducer);
73
+ (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
74
+ _this.optionsStore = (0, store_1.default)(reducer_1.optionsReducer);
75
+ _this.observersStore = (0, store_1.default)(reducer_1.observersReducer);
71
76
  _this.childrenObserver = new kendo_charts_1.InstanceObserver(_this, { onMouseLeave: 'onChildMouseLeave' });
72
77
  _this.contextValue = {
73
78
  optionsStore: _this.optionsStore,
@@ -86,7 +91,7 @@ var Map = /** @class */ (function (_super) {
86
91
  get: function () {
87
92
  return this._element;
88
93
  },
89
- enumerable: true,
94
+ enumerable: false,
90
95
  configurable: true
91
96
  });
92
97
  /**
@@ -190,7 +195,7 @@ var Map = /** @class */ (function (_super) {
190
195
  Map.prototype.trigger = function (name, e) {
191
196
  var alias = name === 'click' ? 'mapClick' : name;
192
197
  var target = this;
193
- var eventObject = map_event_builder_1.create(alias, e, target);
198
+ var eventObject = (0, map_event_builder_1.create)(alias, e, target);
194
199
  var handler = 'on' + alias.charAt(0).toUpperCase() + alias.slice(1);
195
200
  var observers = this.observersStore.getState();
196
201
  var isDefaultPrevented = false;
@@ -12,4 +12,4 @@ export interface MapContextType {
12
12
  /**
13
13
  * @hidden
14
14
  */
15
- export declare const MapContext: React.Context<MapContextType>;
15
+ export declare const MapContext: React.Context<MapContextType | null>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MapContext = void 0;
3
4
  var React = require("react");
4
5
  /**
5
6
  * @hidden