@progress/kendo-react-map 7.0.3-develop.4 → 7.0.3-develop.5

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 (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/Map.d.ts +1 -1
  3. package/MapContext.d.ts +1 -1
  4. package/MapProps.d.ts +1 -1
  5. package/NOTICE.txt +1 -1
  6. package/README.md +1 -1
  7. package/common/events.d.ts +1 -1
  8. package/common/map-types.d.ts +1 -1
  9. package/components/BubbleLayer.d.ts +1 -1
  10. package/components/BubbleLayerTooltip.d.ts +1 -1
  11. package/components/Layers.d.ts +1 -1
  12. package/components/MarkerLayer.d.ts +1 -1
  13. package/components/MarkerLayerTooltip.d.ts +1 -1
  14. package/components/ShapeLayer.d.ts +1 -1
  15. package/components/ShapeLayerTooltip.d.ts +1 -1
  16. package/components/TileLayer.d.ts +1 -1
  17. package/components/base/CollectionConfigurationComponent.d.ts +1 -1
  18. package/components/base/ConfigurationComponent.d.ts +1 -1
  19. package/components/index.d.ts +1 -1
  20. package/dist/cdn/js/kendo-react-map.js +1 -1
  21. package/events/base-event.d.ts +1 -1
  22. package/events/before-reset-event.d.ts +1 -1
  23. package/events/dom-event.d.ts +1 -1
  24. package/events/map-click-event.d.ts +1 -1
  25. package/events/map-event-builder.d.ts +1 -1
  26. package/events/marker-activate-event.d.ts +1 -1
  27. package/events/marker-click-event.d.ts +1 -1
  28. package/events/marker-created-event.d.ts +1 -1
  29. package/events/pan-end-event.d.ts +1 -1
  30. package/events/pan-event.d.ts +1 -1
  31. package/events/preventable-event.d.ts +1 -1
  32. package/events/reset-event.d.ts +1 -1
  33. package/events/shape-click-event.d.ts +1 -1
  34. package/events/shape-created-event.d.ts +1 -1
  35. package/events/shape-feature-created-event.d.ts +1 -1
  36. package/events/shape-mouse-enter-event.d.ts +1 -1
  37. package/events/shape-mouse-leave-event.d.ts +1 -1
  38. package/events/zoom-end-event.d.ts +1 -1
  39. package/events/zoom-start-event.d.ts +1 -1
  40. package/index.d.mts +1 -1
  41. package/index.d.ts +1 -1
  42. package/index.js +1 -1
  43. package/index.mjs +2 -2
  44. package/package-metadata.d.ts +1 -1
  45. package/package.json +3 -3
  46. package/store/reducer.d.ts +1 -1
  47. package/store/store.d.ts +1 -1
  48. package/tooltip/BubbleTooltipContext.d.ts +1 -1
  49. package/tooltip/MapTooltip.d.ts +1 -1
  50. package/tooltip/MarkerTooltipContext.d.ts +1 -1
  51. package/tooltip/Popup.d.ts +1 -1
  52. package/tooltip/ShapeTooltipContext.d.ts +1 -1
  53. package/tooltip/index.d.ts +1 -1
  54. package/utils/index.d.ts +1 -1
package/LICENSE.md CHANGED
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**End User Lic
8
8
 
9
9
  All available KendoReact commercial licenses may be obtained at the [KendoReact website](https://www.telerik.com/kendo-react-ui/pricing).
10
10
 
11
- *Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
11
+ *Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
package/Map.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
package/MapContext.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
package/MapProps.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
package/NOTICE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Progress KendoReact 2023
1
+ Progress KendoReact 2024
2
2
 
3
3
  Copyright © 2018-2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
4
4
 
package/README.md CHANGED
@@ -46,6 +46,6 @@ High-level component overview pages
46
46
 
47
47
  * [React Map Component](https://www.telerik.com/kendo-react-ui/map)
48
48
 
49
- *Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
49
+ *Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
50
50
 
51
51
  *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { BeforeResetEvent } from '../events/before-reset-event';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { type MapLayer, type MapLayerOptions, type MapMarker, type BubbleLayerSymbolArgs, type BubbleLayerSymbol, type MapControls, type MapControlsPosition, type TileUrlTemplateArgs, Location, Extent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { BubbleLayerOptions } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MarkerLayerOptions } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ShapeLayerOptions } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayers, type MapLayersProps } from './Layers';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  (function(o,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react"),require("@progress/kendo-react-common"),require("prop-types"),require("@progress/kendo-charts"),require("@progress/kendo-react-popup"),require("@progress/kendo-svg-icons")):typeof define=="function"&&define.amd?define(["exports","react","@progress/kendo-react-common","prop-types","@progress/kendo-charts","@progress/kendo-react-popup","@progress/kendo-svg-icons"],y):(o=typeof globalThis<"u"?globalThis:o||self,y(o.KendoReactMap={},o.React,o.KendoReactCommon,o.PropTypes,o.KendoCharts,o.KendoReactPopup,o.KendoSvgIcons))})(this,function(o,y,f,k,d,ne,m){"use strict";"use client";function re(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const p=re(y),v=p.createContext(null);v.displayName="MapContext";class g extends p.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore}renderChildren(e,t){const{children:r}=e.props,{_mapKey:s,_parentStore:i}=this.props,a={...e.props,_mapCollectionIdxKey:`${s}_${t}`,_parentStore:i};return p.cloneElement(e,a,r)}render(){const{_mapKey:e,_parentStore:t,children:r}=this.props;return(t||this.optionsStore).dispatch({mapKey:e,payload:[]}),p.Children.map(r,(i,a)=>p.isValidElement(i)?this.renderChildren(i,a):i)}}g.contextType=v;const E=n=>{let e,t=[];const r=()=>e,s=a=>{e=n(e,a),f.canUseDOM&&t.forEach(c=>c())},i=a=>(t.push(a),()=>t=t.filter(c=>c!==a));return s({}),{getState:r,dispatch:s,subscribe:i}},w=(n,e)=>e.mapCollectionIdxKey?P.collectionConfigurationItem(n,e):e.mapKey?P.configurationItem(n,e):{},se=(n,e)=>{if(e.type)switch(e.type){case"add":return[...n,e.payload];case"remove":return n.filter(t=>t!==e.payload);default:return n}else return[]},P={configurationItem(n,e){return Object.assign(n,{[e.mapKey]:e.payload})},collectionConfigurationItem(n,e){let t=!1;const[r,s]=e.mapCollectionIdxKey.split("_"),i=n[r].map((a,c)=>parseInt(s,10)===c?(t=!0,e.payload):a);return t===!1&&i.splice(parseInt(s,10),0,e.payload),Object.assign(n,{[r]:i})},themeItem(n,e){let t={},r=Object.assign(t,n);const{field:s,value:i}=e.payload,a=s.split(".");let c=a.shift();for(;a.length>0;)t=t[c]=t[c]||{},c=a.shift();return t[c]=i,r}};class h extends p.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore,this.childStore=E(w)}render(){const{children:e}=this.props;return e!==void 0?p.Children.map(e,t=>p.isValidElement(t)?this.renderChildren(t):t):null}componentDidMount(){this.dispatch()}componentDidUpdate(){this.dispatch()}dispatch(){const{_mapKey:e,_mapCollectionIdxKey:t,_parentStore:r,children:s,...i}=this.props;(r||this.optionsStore).dispatch({mapKey:e,mapCollectionIdxKey:t,payload:Object.assign({},i,this.childStore.getState())})}renderChildren(e){const{children:t}=e.props,r={...e.props,_parentStore:this.childStore};return p.cloneElement(e,r,t)}}h.contextType=v;class l{constructor(e){this.target=e}}class A extends l{constructor(e,t){super(t)}}class _ extends l{constructor(e,t){super(t),this.location=e.location,this.originalEvent=e.originalEvent}}class x extends l{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}class D extends l{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}class N extends l{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class K extends N{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}class R extends l{constructor(e,t){super(t),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}}class U extends l{constructor(e,t){super(t),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}}class j extends l{constructor(e,t){super(t)}}class z extends l{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}}class B extends l{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.location=null,e.shape&&(this.dataItem=e.shape.dataItem,this.location=e.shape.location)}}class V extends l{constructor(e,t){super(t),this.dataItem=e.dataItem,this.layer=e.layer,this.group=e.group,this.properties=e.properties}}class q extends l{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}}class F extends l{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}}class Z extends l{constructor(e,t){super(t),this.originalEvent=e.originalEvent}}class $ extends N{constructor(e,t){super(t),this.originalEvent=e.originalEvent}}const W={beforeReset:A,mapClick:_,markerActivate:x,markerClick:D,markerCreated:K,panEnd:R,pan:U,reset:j,shapeClick:z,shapeCreated:B,shapeFeatureCreated:V,shapeMouseEnter:q,shapeMouseLeave:F,zoomEnd:Z,zoomStart:$};function oe(n,e,t){if(W[n])return new W[n](e,t)}function ae(n,e){let t=n;for(;t&&t!==e;)t=t.parentNode;return!!t}function I(n,e,t,r){const s=n[e];if(s&&Array.isArray(s)){for(let i of s)if(!i.type||i.type!==r)return new Error(`${t} children should be Array of type ${r.displayName}.`)}return null}const ie={horizontal:"fit",vertical:"fit"},pe=["k-tooltip","k-map-tooltip"],ce="k-tooltip-wrapper";class H extends p.Component{constructor(e,t){super(e,t),this.context=null,this.element=null,this.onMapMouseLeave=r=>{const{syntheticEvent:s}=r;return!!ae(s.relatedTarget,this.element)},this.mapObserver=new d.InstanceObserver(this,{onMouseLeave:"onMapMouseLeave"}),t.observersStore.dispatch({type:"add",payload:this.mapObserver})}render(){const{popupShown:e,popupAlign:t,popupOffset:r,popupStyles:s,popupContent:i,className:a}=this.props,c=[...pe,a].join(" ").trim();return p.createElement(ne.Popup,{animate:!0,popupAlign:t,offset:r,show:e,collision:ie,className:ce},p.createElement("div",{className:c,style:s,ref:L=>this.element=L},i()))}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})}}H.contextType=v;class M extends p.Component{constructor(){super(...arguments),this.context=null,this.state={popupShown:!1}}componentDidMount(){this.mapObserver=new d.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.mapObserver})}render(){const{popupContext:e,shared:t,className:r,...s}=this.state;if(!e||!this.state.popupShown)return null;const i=e.layerIndex,a=this.findRenderFunctionByLayer(i);if(!a)return null;const c=()=>p.createElement("div",{className:"k-tooltip-content"},a(e)),u=`k-map-${e.type}-tooltip`;return p.createElement(H,{...s,popupContent:c,className:u})}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})}onShowTooltip(e){const{anchor:t,className:r}=e;let s=this.createTooltipContext(e);this.setState({popupShown:!0,popupAlign:{vertical:"bottom",horizontal:"center"},popupOffset:t,popupContext:s,popupStyles:{position:"relative"},className:r})}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}createTooltipContext(e){return e}findRenderFunctionByLayer(e){const t=this.context.optionsStore.getState().layers;return t!==void 0&&Array.isArray(t)&&t[e]!==void 0&&t[e].hasOwnProperty("tooltip")&&t[e].tooltip.hasOwnProperty("render")?t[e].tooltip.render:null}}M.contextType=v;const le={name:"@progress/kendo-react-map",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1651750998,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"};class ue{constructor(e,t){this.sender=e,this.syntheticEvent=t}}function he(n,e){return new ue(n,e)}const G={mapMarkerTargetIcon:m.mapMarkerTargetIcon,mapMarkerIcon:m.mapMarkerIcon,plusIcon:m.plusIcon,minusIcon:m.minusIcon,caretAltUpIcon:m.caretAltUpIcon,caretAltDownIcon:m.caretAltDownIcon,caretAltLeftIcon:m.caretAltLeftIcon,caretAltRightIcon:m.caretAltRightIcon},J="svg";class b extends p.Component{constructor(e){super(e),this.mapInstance=null,this._element=null,this.optionsStore={},this.optionsUnsubscriber=Function.prototype,this.observersStore={},this.iconsType=J,this.svgIcons=G,this.onInit=t=>{this.mapInstance=t.sender},this.onRender=t=>{this.mapInstance!==null&&this.trigger("render",t)},this.onMapMouseLeave=t=>{const r=he(this,t);this.triggerDomEvent("onMouseLeave",r)?t.preventDefault():this.mapInstance!==null&&this.mapInstance.hideTooltip()},f.validatePackage(le),this.optionsStore=E(w),this.observersStore=E(se),this.childrenObserver=new d.InstanceObserver(this,{onMouseLeave:"onChildMouseLeave"}),this.contextValue={optionsStore:this.optionsStore,observersStore:this.observersStore,childrenObserver:this.childrenObserver},this.mapObserver=new d.InstanceObserver(this,{init:"onInit"})}get element(){return this._element}componentDidMount(){this.instantiateCoreMap(),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this))}componentWillUnmount(){this.optionsUnsubscriber(),this.mapInstance!==null&&(this.mapInstance.destroy(),this.mapInstance=null)}componentDidUpdate(e){const{dir:t,children:r,...s}=this.props;this.mapInstance!==null&&(Object.entries(e).filter(a=>a[0]!=="dir"&&a[0]!=="children").some(a=>{const[c,u]=a;return!(s.hasOwnProperty(c)&&s[c]===u)})&&this.refresh(),e.dir)}render(){const{style:e={},className:t,children:r}=this.props,s=Object.assign({},e,{position:"relative"}),i=p.createElement("div",{className:t,style:s,key:"mapElement"},p.createElement("div",{ref:a=>this._element=a,className:"k-map",onMouseLeave:this.onMapMouseLeave},r));return p.createElement(f.IconsContext.Consumer,null,a=>p.createElement(v.Provider,{value:this.contextValue},p.createElement(M,{key:"tooltip"}),i,this.setIcons(a)))}getMapOptions(){const{center:e,controls:t,minZoom:r,maxZoom:s,minSize:i,pannable:a,wraparound:c,zoom:u,zoomable:L}=this.props;let O={center:e,controls:t,minZoom:r,maxZoom:s,minSize:i,pannable:a,wraparound:c,zoom:u,zoomable:L,icons:{type:this.iconsType,svgIcons:this.svgIcons}};return O=Object.assign(O,this.optionsStore.getState()),O}get layers(){var e;return(e=this.mapInstance)==null?void 0:e.layers}get extent(){var e;return(e=this.mapInstance)==null?void 0:e.extent()}set extent(e){var t;(t=this.mapInstance)==null||t.extent(e)}resize(){}viewSize(){var e;return(e=this.mapInstance)==null?void 0:e.viewSize()}eventOffset(e){var t;return(t=this.mapInstance)==null?void 0:t.eventOffset(e)}eventToLayer(e){var t;return(t=this.mapInstance)==null?void 0:t.eventToLayer(e)}eventToLocation(e){var t;return(t=this.mapInstance)==null?void 0:t.eventToLocation(e)}eventToView(e){var t;return(t=this.mapInstance)==null?void 0:t.eventToView(e)}layerToLocation(e,t){var r;return(r=this.mapInstance)==null?void 0:r.layerToLocation(e,t)}locationToLayer(e,t){var r;return(r=this.mapInstance)==null?void 0:r.locationToLayer(e,t)}locationToView(e){var t;return(t=this.mapInstance)==null?void 0:t.locationToView(e)}viewToLocation(e,t){var r;return(r=this.mapInstance)==null?void 0:r.viewToLocation(e,t)}loadMarkers(e){const t=this.mapInstance.markers;t&&t._load(e)}refresh(){if(this.mapInstance!==null){const e=this.getMapOptions();this.props.onRefresh?this.props.onRefresh.call(void 0,e,this.mapInstance):this.mapInstance.setOptions(e)}}instantiateCoreMap(){const e=this.getMapOptions();this.mapInstance=new d.Map(this.element,e,{},{observer:this.mapObserver,sender:this})}trigger(e,t){const r=e==="click"?"mapClick":e,s=oe(r,t,this),i="on"+r.charAt(0).toUpperCase()+r.slice(1),a=this.observersStore.getState();let c=!1;for(let u=0;u<a.length;u++)a[u].trigger(r,t)&&(c=!0);return c===!1&&s&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,s),s.isDefaultPrevented&&s.isDefaultPrevented()):c}requiresHandlers(e){for(let t=0;t<e.length;t++){const r=e[t],s="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(s))return!0}return!1}triggerDomEvent(e,t){const r=this.observersStore.getState();let s=!1;for(let i=0;i<r.length;i++)r[i].trigger(e,t)&&(s=!0);return s}setIcons(e){const{type:t,icons:r={}}=e,s={...G},i={mapMarkerTargetIcon:r.mapMarkerTargetIcon,mapMarkerIcon:r.mapMarkerIcon,plusIcon:r.plusIcon,minusIcon:r.minusIcon,caretAltUpIcon:r.caretAltUpIcon,caretAltDownIcon:r.caretAltDownIcon,caretAltLeftIcon:r.caretAltLeftIcon,caretAltRightIcon:r.caretAltRightIcon};let a;for(a in i)if(i[a]){const c=i[a];c&&typeof c!="string"&&(s[a]=c)}return this.svgIcons=s,this.iconsType=t||J,null}}b.propTypes={dir:k.string},b.defaultProps={};const Q=n=>p.createElement(g,{...n,_mapKey:"layers"});Q.propTypes={children:k.node};const X=n=>p.createElement(h,{...n,_mapKey:"tooltip"}),S=n=>p.createElement(h,{type:"shape",...n});S.displayName="MapShapeLayer",S.propTypes={children:function(n,e,t){return I(n,e,t,X)}};const Y=n=>p.createElement(h,{type:"tile",...n});Y.displayName="MapTileLayer";const ee=n=>p.createElement(h,{...n,_mapKey:"tooltip"}),C=n=>p.createElement(h,{type:"bubble",...n});C.displayName="MapBubbleLayer",C.propTypes={children:function(n,e,t){return I(n,e,t,ee)}};const te=n=>p.createElement(h,{...n,_mapKey:"tooltip"}),T=n=>p.createElement(h,{type:"marker",...n});T.displayName="MapMarkerLayer",T.propTypes={children:function(n,e,t){return I(n,e,t,te)}},Object.defineProperty(o,"Extent",{enumerable:!0,get:()=>d.Extent}),Object.defineProperty(o,"Location",{enumerable:!0,get:()=>d.Location}),o.BeforeResetEvent=A,o.CollectionConfigurationComponent=g,o.ConfigurationComponent=h,o.Map=b,o.MapBubbleLayer=C,o.MapBubbleLayerTooltip=ee,o.MapClickEvent=_,o.MapLayers=Q,o.MapMarkerLayer=T,o.MapMarkerLayerTooltip=te,o.MapShapeLayer=S,o.MapShapeLayerTooltip=X,o.MapTileLayer=Y,o.MapTooltip=M,o.MarkerActivateEvent=x,o.MarkerClickEvent=D,o.MarkerCreatedEvent=K,o.PanEndEvent=R,o.PanEvent=U,o.ResetEvent=j,o.ShapeClickEvent=z,o.ShapeCreatedEvent=B,o.ShapeFeatureCreatedEvent=V,o.ShapeMouseEnterEvent=q,o.ShapeMouseLeaveEvent=F,o.ZoomEndEvent=Z,o.ZoomStartEvent=$,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Map } from '../Map';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapBeforeResetEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Location, MapClickEvent as BaseMapClickEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Map } from '../Map';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapMarker, MapMarkerActivateEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapMarker, MapMarkerClickEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapMarker, MapMarkerCreatedEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Location, MapPanEndEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Location, MapPanEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { BaseEvent } from './base-event';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapResetEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapShapeClickEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapShapeCreatedEvent, Location } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapShapeFeatureCreatedEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapShapeMouseEnterEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapLayer, MapShapeMouseLeaveEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapZoomEndEvent } from '@progress/kendo-charts';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapZoomStartEvent } from '@progress/kendo-charts';
package/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export * from './index';
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import CollectionConfigurationComponent from './components/base/CollectionConfigurationComponent';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("react"),f=require("@progress/kendo-react-common"),w=require("prop-types"),m=require("@progress/kendo-charts"),te=require("@progress/kendo-react-popup"),h=require("@progress/kendo-svg-icons");function ne(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const i=ne(ee),d=i.createContext(null);d.displayName="MapContext";class E extends i.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore}renderChildren(e,t){const{children:r}=e.props,{_mapKey:o,_parentStore:a}=this.props,s={...e.props,_mapCollectionIdxKey:`${o}_${t}`,_parentStore:a};return i.cloneElement(e,s,r)}render(){const{_mapKey:e,_parentStore:t,children:r}=this.props;return(t||this.optionsStore).dispatch({mapKey:e,payload:[]}),i.Children.map(r,(a,s)=>i.isValidElement(a)?this.renderChildren(a,s):a)}}E.contextType=d;const re=n=>{let e,t=[];const r=()=>e,o=s=>{e=n(e,s),f.canUseDOM&&t.forEach(p=>p())},a=s=>(t.push(s),()=>t=t.filter(p=>p!==s));return o({}),{getState:r,dispatch:o,subscribe:a}},g=re,P=(n,e)=>e.mapCollectionIdxKey?T.collectionConfigurationItem(n,e):e.mapKey?T.configurationItem(n,e):{},oe=(n,e)=>{if(e.type)switch(e.type){case"add":return[...n,e.payload];case"remove":return n.filter(t=>t!==e.payload);default:return n}else return[]},T={configurationItem(n,e){return Object.assign(n,{[e.mapKey]:e.payload})},collectionConfigurationItem(n,e){let t=!1;const[r,o]=e.mapCollectionIdxKey.split("_"),a=n[r].map((s,p)=>parseInt(o,10)===p?(t=!0,e.payload):s);return t===!1&&a.splice(parseInt(o,10),0,e.payload),Object.assign(n,{[r]:a})},themeItem(n,e){let t={},r=Object.assign(t,n);const{field:o,value:a}=e.payload,s=o.split(".");let p=s.shift();for(;s.length>0;)t=t[p]=t[p]||{},p=s.shift();return t[p]=a,r}};class u extends i.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore,this.childStore=g(P)}render(){const{children:e}=this.props;return e!==void 0?i.Children.map(e,t=>i.isValidElement(t)?this.renderChildren(t):t):null}componentDidMount(){this.dispatch()}componentDidUpdate(){this.dispatch()}dispatch(){const{_mapKey:e,_mapCollectionIdxKey:t,_parentStore:r,children:o,...a}=this.props;(r||this.optionsStore).dispatch({mapKey:e,mapCollectionIdxKey:t,payload:Object.assign({},a,this.childStore.getState())})}renderChildren(e){const{children:t}=e.props,r={...e.props,_parentStore:this.childStore};return i.cloneElement(e,r,t)}}u.contextType=d;class c{constructor(e){this.target=e}}class A extends c{constructor(e,t){super(t)}}class _ extends c{constructor(e,t){super(t),this.location=e.location,this.originalEvent=e.originalEvent}}class D extends c{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}class N extends c{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}class R extends c{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class U extends R{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}class K extends c{constructor(e,t){super(t),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}}class j extends c{constructor(e,t){super(t),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}}class z extends c{constructor(e,t){super(t)}}class B extends c{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}}class V extends c{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.location=null,e.shape&&(this.dataItem=e.shape.dataItem,this.location=e.shape.location)}}class q extends c{constructor(e,t){super(t),this.dataItem=e.dataItem,this.layer=e.layer,this.group=e.group,this.properties=e.properties}}class F extends c{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}}class Z extends c{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}}class $ extends c{constructor(e,t){super(t),this.originalEvent=e.originalEvent}}class W extends R{constructor(e,t){super(t),this.originalEvent=e.originalEvent}}const L={beforeReset:A,mapClick:_,markerActivate:D,markerClick:N,markerCreated:U,panEnd:K,pan:j,reset:z,shapeClick:B,shapeCreated:V,shapeFeatureCreated:q,shapeMouseEnter:F,shapeMouseLeave:Z,zoomEnd:$,zoomStart:W};function se(n,e,t){if(L[n])return new L[n](e,t)}function ae(n,e){let t=n;for(;t&&t!==e;)t=t.parentNode;return!!t}function I(n,e,t,r){const o=n[e];if(o&&Array.isArray(o)){for(let a of o)if(!a.type||a.type!==r)return new Error(`${t} children should be Array of type ${r.displayName}.`)}return null}const ie={horizontal:"fit",vertical:"fit"},pe=["k-tooltip","k-map-tooltip"],ce="k-tooltip-wrapper";class H extends i.Component{constructor(e,t){super(e,t),this.context=null,this.element=null,this.onMapMouseLeave=r=>{const{syntheticEvent:o}=r;return!!ae(o.relatedTarget,this.element)},this.mapObserver=new m.InstanceObserver(this,{onMouseLeave:"onMapMouseLeave"}),t.observersStore.dispatch({type:"add",payload:this.mapObserver})}render(){const{popupShown:e,popupAlign:t,popupOffset:r,popupStyles:o,popupContent:a,className:s}=this.props,p=[...pe,s].join(" ").trim();return i.createElement(te.Popup,{animate:!0,popupAlign:t,offset:r,show:e,collision:ie,className:ce},i.createElement("div",{className:p,style:o,ref:v=>this.element=v},a()))}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})}}H.contextType=d;class M extends i.Component{constructor(){super(...arguments),this.context=null,this.state={popupShown:!1}}componentDidMount(){this.mapObserver=new m.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.mapObserver})}render(){const{popupContext:e,shared:t,className:r,...o}=this.state;if(!e||!this.state.popupShown)return null;const a=e.layerIndex,s=this.findRenderFunctionByLayer(a);if(!s)return null;const p=()=>i.createElement("div",{className:"k-tooltip-content"},s(e)),l=`k-map-${e.type}-tooltip`;return i.createElement(H,{...o,popupContent:p,className:l})}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})}onShowTooltip(e){const{anchor:t,className:r}=e;let o=this.createTooltipContext(e);this.setState({popupShown:!0,popupAlign:{vertical:"bottom",horizontal:"center"},popupOffset:t,popupContext:o,popupStyles:{position:"relative"},className:r})}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}createTooltipContext(e){return e}findRenderFunctionByLayer(e){const t=this.context.optionsStore.getState().layers;return t!==void 0&&Array.isArray(t)&&t[e]!==void 0&&t[e].hasOwnProperty("tooltip")&&t[e].tooltip.hasOwnProperty("render")?t[e].tooltip.render:null}}M.contextType=d;const le={name:"@progress/kendo-react-map",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1651750998,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"};class ue{constructor(e,t){this.sender=e,this.syntheticEvent=t}}function he(n,e){return new ue(n,e)}const O={mapMarkerTargetIcon:h.mapMarkerTargetIcon,mapMarkerIcon:h.mapMarkerIcon,plusIcon:h.plusIcon,minusIcon:h.minusIcon,caretAltUpIcon:h.caretAltUpIcon,caretAltDownIcon:h.caretAltDownIcon,caretAltLeftIcon:h.caretAltLeftIcon,caretAltRightIcon:h.caretAltRightIcon},x="svg";class b extends i.Component{constructor(e){super(e),this.mapInstance=null,this._element=null,this.optionsStore={},this.optionsUnsubscriber=Function.prototype,this.observersStore={},this.iconsType=x,this.svgIcons=O,this.onInit=t=>{this.mapInstance=t.sender},this.onRender=t=>{this.mapInstance!==null&&this.trigger("render",t)},this.onMapMouseLeave=t=>{const r=he(this,t);this.triggerDomEvent("onMouseLeave",r)?t.preventDefault():this.mapInstance!==null&&this.mapInstance.hideTooltip()},f.validatePackage(le),this.optionsStore=g(P),this.observersStore=g(oe),this.childrenObserver=new m.InstanceObserver(this,{onMouseLeave:"onChildMouseLeave"}),this.contextValue={optionsStore:this.optionsStore,observersStore:this.observersStore,childrenObserver:this.childrenObserver},this.mapObserver=new m.InstanceObserver(this,{init:"onInit"})}get element(){return this._element}componentDidMount(){this.instantiateCoreMap(),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this))}componentWillUnmount(){this.optionsUnsubscriber(),this.mapInstance!==null&&(this.mapInstance.destroy(),this.mapInstance=null)}componentDidUpdate(e){const{dir:t,children:r,...o}=this.props;this.mapInstance!==null&&(Object.entries(e).filter(s=>s[0]!=="dir"&&s[0]!=="children").some(s=>{const[p,l]=s;return!(o.hasOwnProperty(p)&&o[p]===l)})&&this.refresh(),e.dir)}render(){const{style:e={},className:t,children:r}=this.props,o=Object.assign({},e,{position:"relative"}),a=i.createElement("div",{className:t,style:o,key:"mapElement"},i.createElement("div",{ref:s=>this._element=s,className:"k-map",onMouseLeave:this.onMapMouseLeave},r));return i.createElement(f.IconsContext.Consumer,null,s=>i.createElement(d.Provider,{value:this.contextValue},i.createElement(M,{key:"tooltip"}),a,this.setIcons(s)))}getMapOptions(){const{center:e,controls:t,minZoom:r,maxZoom:o,minSize:a,pannable:s,wraparound:p,zoom:l,zoomable:v}=this.props;let y={center:e,controls:t,minZoom:r,maxZoom:o,minSize:a,pannable:s,wraparound:p,zoom:l,zoomable:v,icons:{type:this.iconsType,svgIcons:this.svgIcons}};return y=Object.assign(y,this.optionsStore.getState()),y}get layers(){var e;return(e=this.mapInstance)==null?void 0:e.layers}get extent(){var e;return(e=this.mapInstance)==null?void 0:e.extent()}set extent(e){var t;(t=this.mapInstance)==null||t.extent(e)}resize(){}viewSize(){var e;return(e=this.mapInstance)==null?void 0:e.viewSize()}eventOffset(e){var t;return(t=this.mapInstance)==null?void 0:t.eventOffset(e)}eventToLayer(e){var t;return(t=this.mapInstance)==null?void 0:t.eventToLayer(e)}eventToLocation(e){var t;return(t=this.mapInstance)==null?void 0:t.eventToLocation(e)}eventToView(e){var t;return(t=this.mapInstance)==null?void 0:t.eventToView(e)}layerToLocation(e,t){var r;return(r=this.mapInstance)==null?void 0:r.layerToLocation(e,t)}locationToLayer(e,t){var r;return(r=this.mapInstance)==null?void 0:r.locationToLayer(e,t)}locationToView(e){var t;return(t=this.mapInstance)==null?void 0:t.locationToView(e)}viewToLocation(e,t){var r;return(r=this.mapInstance)==null?void 0:r.viewToLocation(e,t)}loadMarkers(e){const t=this.mapInstance.markers;t&&t._load(e)}refresh(){if(this.mapInstance!==null){const e=this.getMapOptions();this.props.onRefresh?this.props.onRefresh.call(void 0,e,this.mapInstance):this.mapInstance.setOptions(e)}}instantiateCoreMap(){const e=this.getMapOptions();this.mapInstance=new m.Map(this.element,e,{},{observer:this.mapObserver,sender:this})}trigger(e,t){const r=e==="click"?"mapClick":e,o=se(r,t,this),a="on"+r.charAt(0).toUpperCase()+r.slice(1),s=this.observersStore.getState();let p=!1;for(let l=0;l<s.length;l++)s[l].trigger(r,t)&&(p=!0);return p===!1&&o&&this.props.hasOwnProperty(a)?(this.props[a].call(void 0,o),o.isDefaultPrevented&&o.isDefaultPrevented()):p}requiresHandlers(e){for(let t=0;t<e.length;t++){const r=e[t],o="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(o))return!0}return!1}triggerDomEvent(e,t){const r=this.observersStore.getState();let o=!1;for(let a=0;a<r.length;a++)r[a].trigger(e,t)&&(o=!0);return o}setIcons(e){const{type:t,icons:r={}}=e,o={...O},a={mapMarkerTargetIcon:r.mapMarkerTargetIcon,mapMarkerIcon:r.mapMarkerIcon,plusIcon:r.plusIcon,minusIcon:r.minusIcon,caretAltUpIcon:r.caretAltUpIcon,caretAltDownIcon:r.caretAltDownIcon,caretAltLeftIcon:r.caretAltLeftIcon,caretAltRightIcon:r.caretAltRightIcon};let s;for(s in a)if(a[s]){const p=a[s];p&&typeof p!="string"&&(o[s]=p)}return this.svgIcons=o,this.iconsType=t||x,null}}b.propTypes={dir:w.string};b.defaultProps={};const G=n=>i.createElement(E,{...n,_mapKey:"layers"});G.propTypes={children:w.node};const J=n=>i.createElement(u,{...n,_mapKey:"tooltip"}),S=n=>i.createElement(u,{type:"shape",...n});S.displayName="MapShapeLayer";S.propTypes={children:function(n,e,t){return I(n,e,t,J)}};const Q=n=>i.createElement(u,{type:"tile",...n});Q.displayName="MapTileLayer";const X=n=>i.createElement(u,{...n,_mapKey:"tooltip"}),C=n=>i.createElement(u,{type:"bubble",...n});C.displayName="MapBubbleLayer";C.propTypes={children:function(n,e,t){return I(n,e,t,X)}};const Y=n=>i.createElement(u,{...n,_mapKey:"tooltip"}),k=n=>i.createElement(u,{type:"marker",...n});k.displayName="MapMarkerLayer";k.propTypes={children:function(n,e,t){return I(n,e,t,Y)}};Object.defineProperty(exports,"Extent",{enumerable:!0,get:()=>m.Extent});Object.defineProperty(exports,"Location",{enumerable:!0,get:()=>m.Location});exports.BeforeResetEvent=A;exports.CollectionConfigurationComponent=E;exports.ConfigurationComponent=u;exports.Map=b;exports.MapBubbleLayer=C;exports.MapBubbleLayerTooltip=X;exports.MapClickEvent=_;exports.MapLayers=G;exports.MapMarkerLayer=k;exports.MapMarkerLayerTooltip=Y;exports.MapShapeLayer=S;exports.MapShapeLayerTooltip=J;exports.MapTileLayer=Q;exports.MapTooltip=M;exports.MarkerActivateEvent=D;exports.MarkerClickEvent=N;exports.MarkerCreatedEvent=U;exports.PanEndEvent=K;exports.PanEvent=j;exports.ResetEvent=z;exports.ShapeClickEvent=B;exports.ShapeCreatedEvent=V;exports.ShapeFeatureCreatedEvent=q;exports.ShapeMouseEnterEvent=F;exports.ShapeMouseLeaveEvent=Z;exports.ZoomEndEvent=$;exports.ZoomStartEvent=W;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";
@@ -405,7 +405,7 @@ const me = {
405
405
  name: "@progress/kendo-react-map",
406
406
  productName: "KendoReact",
407
407
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
408
- publishDate: 1703228041,
408
+ publishDate: 1704296243,
409
409
  version: "",
410
410
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
411
411
  };
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PackageMetadata } from '@progress/kendo-licensing';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-map",
3
- "version": "7.0.3-develop.4",
3
+ "version": "7.0.3-develop.5",
4
4
  "description": "KendoReact Map package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,8 +24,8 @@
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-drawing": "^1.19.0",
26
26
  "@progress/kendo-licensing": "^1.3.4",
27
- "@progress/kendo-react-common": "7.0.3-develop.4",
28
- "@progress/kendo-react-popup": "7.0.3-develop.4",
27
+ "@progress/kendo-react-common": "7.0.3-develop.5",
28
+ "@progress/kendo-react-popup": "7.0.3-develop.5",
29
29
  "@progress/kendo-svg-icons": "^2.1.0",
30
30
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
31
31
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { StoreAction } from './store';
package/store/store.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Location } from '..';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Location } from '..';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Location } from '..';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { MapTooltip } from './MapTooltip';
package/utils/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**