@progress/kendo-react-map 7.2.4-develop.3 → 7.2.4-develop.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Map.js +8 -0
- package/Map.mjs +346 -0
- package/MapContext.js +8 -0
- package/MapContext.mjs +14 -0
- package/components/BubbleLayer.js +8 -0
- package/components/BubbleLayer.mjs +22 -0
- package/components/BubbleLayerTooltip.js +8 -0
- package/components/BubbleLayerTooltip.mjs +14 -0
- package/components/Layers.js +8 -0
- package/components/Layers.mjs +18 -0
- package/components/MarkerLayer.js +8 -0
- package/components/MarkerLayer.mjs +22 -0
- package/components/MarkerLayerTooltip.js +8 -0
- package/components/MarkerLayerTooltip.mjs +14 -0
- package/components/ShapeLayer.js +8 -0
- package/components/ShapeLayer.mjs +22 -0
- package/components/ShapeLayerTooltip.js +8 -0
- package/components/ShapeLayerTooltip.mjs +14 -0
- package/components/TileLayer.js +8 -0
- package/components/TileLayer.mjs +15 -0
- package/components/base/CollectionConfigurationComponent.js +8 -0
- package/components/base/CollectionConfigurationComponent.mjs +35 -0
- package/components/base/ConfigurationComponent.js +8 -0
- package/components/base/ConfigurationComponent.mjs +47 -0
- package/dist/cdn/js/kendo-react-map.js +8 -5
- package/events/base-event.js +8 -0
- package/events/base-event.mjs +19 -0
- package/events/before-reset-event.js +8 -0
- package/events/before-reset-event.mjs +20 -0
- package/events/dom-event.js +8 -0
- package/events/dom-event.mjs +23 -0
- package/events/map-click-event.js +8 -0
- package/events/map-click-event.mjs +20 -0
- package/events/map-event-builder.js +8 -0
- package/events/map-event-builder.mjs +47 -0
- package/events/marker-activate-event.js +8 -0
- package/events/marker-activate-event.mjs +20 -0
- package/events/marker-click-event.js +8 -0
- package/events/marker-click-event.mjs +20 -0
- package/events/marker-created-event.js +8 -0
- package/events/marker-created-event.mjs +20 -0
- package/events/pan-end-event.js +8 -0
- package/events/pan-end-event.mjs +20 -0
- package/events/pan-event.js +8 -0
- package/events/pan-event.mjs +20 -0
- package/events/preventable-event.js +8 -0
- package/events/preventable-event.mjs +33 -0
- package/events/reset-event.js +8 -0
- package/events/reset-event.mjs +20 -0
- package/events/shape-click-event.js +8 -0
- package/events/shape-click-event.mjs +20 -0
- package/events/shape-created-event.js +8 -0
- package/events/shape-created-event.mjs +20 -0
- package/events/shape-feature-created-event.js +8 -0
- package/events/shape-feature-created-event.mjs +20 -0
- package/events/shape-mouse-enter-event.js +8 -0
- package/events/shape-mouse-enter-event.mjs +20 -0
- package/events/shape-mouse-leave-event.js +8 -0
- package/events/shape-mouse-leave-event.mjs +20 -0
- package/events/zoom-end-event.js +8 -0
- package/events/zoom-end-event.mjs +20 -0
- package/events/zoom-start-event.js +8 -0
- package/events/zoom-start-event.mjs +20 -0
- package/index.d.mts +951 -5
- package/index.d.ts +951 -13
- package/index.js +8 -5
- package/index.mjs +64 -801
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +3 -3
- package/store/reducer.js +8 -0
- package/store/reducer.mjs +46 -0
- package/store/store.js +8 -0
- package/store/store.mjs +19 -0
- package/tooltip/MapTooltip.js +8 -0
- package/tooltip/MapTooltip.mjs +82 -0
- package/tooltip/Popup.js +8 -0
- package/tooltip/Popup.mjs +60 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +29 -0
- package/Map.d.ts +0 -192
- package/MapContext.d.ts +0 -19
- package/MapProps.d.ts +0 -104
- package/common/events.d.ts +0 -19
- package/common/map-types.d.ts +0 -5
- package/components/BubbleLayer.d.ts +0 -14
- package/components/BubbleLayerTooltip.d.ts +0 -19
- package/components/Layers.d.ts +0 -13
- package/components/MarkerLayer.d.ts +0 -14
- package/components/MarkerLayerTooltip.d.ts +0 -19
- package/components/ShapeLayer.d.ts +0 -14
- package/components/ShapeLayerTooltip.d.ts +0 -19
- package/components/TileLayer.d.ts +0 -13
- package/components/base/CollectionConfigurationComponent.d.ts +0 -23
- package/components/base/ConfigurationComponent.d.ts +0 -28
- package/components/index.d.ts +0 -13
- package/events/base-event.d.ts +0 -18
- package/events/before-reset-event.d.ts +0 -16
- package/events/dom-event.d.ts +0 -26
- package/events/map-click-event.d.ts +0 -24
- package/events/map-event-builder.d.ts +0 -10
- package/events/marker-activate-event.d.ts +0 -24
- package/events/marker-click-event.d.ts +0 -24
- package/events/marker-created-event.d.ts +0 -26
- package/events/pan-end-event.d.ts +0 -28
- package/events/pan-event.d.ts +0 -28
- package/events/preventable-event.d.ts +0 -22
- package/events/reset-event.d.ts +0 -18
- package/events/shape-click-event.d.ts +0 -29
- package/events/shape-created-event.d.ts +0 -33
- package/events/shape-feature-created-event.d.ts +0 -33
- package/events/shape-mouse-enter-event.d.ts +0 -32
- package/events/shape-mouse-leave-event.d.ts +0 -32
- package/events/zoom-end-event.d.ts +0 -20
- package/events/zoom-start-event.d.ts +0 -22
- package/package-metadata.d.ts +0 -9
- package/store/reducer.d.ts +0 -14
- package/store/store.d.ts +0 -26
- package/tooltip/BubbleTooltipContext.d.ts +0 -26
- package/tooltip/MapTooltip.d.ts +0 -41
- package/tooltip/MarkerTooltipContext.d.ts +0 -26
- package/tooltip/Popup.d.ts +0 -33
- package/tooltip/ShapeTooltipContext.d.ts +0 -22
- package/tooltip/index.d.ts +0 -9
- package/utils/index.d.ts +0 -13
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as s from "react";
|
|
10
|
+
import { MapContext as c } from "../../MapContext.mjs";
|
|
11
|
+
const n = class n extends s.Component {
|
|
12
|
+
constructor(e, t) {
|
|
13
|
+
super(e, t), this.optionsStore = t.optionsStore;
|
|
14
|
+
}
|
|
15
|
+
renderChildren(e, t) {
|
|
16
|
+
const { children: o } = e.props, { _mapKey: a, _parentStore: r } = this.props, p = {
|
|
17
|
+
...e.props,
|
|
18
|
+
_mapCollectionIdxKey: `${a}_${t}`,
|
|
19
|
+
_parentStore: r
|
|
20
|
+
};
|
|
21
|
+
return s.cloneElement(e, p, o);
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const { _mapKey: e, _parentStore: t, children: o } = this.props;
|
|
25
|
+
return (t || this.optionsStore).dispatch({
|
|
26
|
+
mapKey: e,
|
|
27
|
+
payload: []
|
|
28
|
+
}), s.Children.map(o, (r, p) => s.isValidElement(r) ? this.renderChildren(r, p) : r);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
n.contextType = c;
|
|
32
|
+
let i = n;
|
|
33
|
+
export {
|
|
34
|
+
i as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";const p=require("react"),a=require("../../store/store.js"),d=require("../../store/reducer.js"),l=require("../../MapContext.js");function u(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const n=u(p),i=class i extends n.Component{constructor(t,e){super(t,e),this.optionsStore=e.optionsStore,this.childStore=a(d.optionsReducer)}render(){const{children:t}=this.props;return t!==void 0?n.Children.map(t,e=>n.isValidElement(e)?this.renderChildren(e):e):null}componentDidMount(){this.dispatch()}componentDidUpdate(){this.dispatch()}dispatch(){const{_mapKey:t,_mapCollectionIdxKey:e,_parentStore:r,children:h,...c}=this.props;(r||this.optionsStore).dispatch({mapKey:t,mapCollectionIdxKey:e,payload:Object.assign({},c,this.childStore.getState())})}renderChildren(t){const{children:e}=t.props,r={...t.props,_parentStore:this.childStore};return n.cloneElement(t,r,e)}};i.contextType=l.MapContext;let s=i;module.exports=s;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as o from "react";
|
|
10
|
+
import p from "../../store/store.mjs";
|
|
11
|
+
import { optionsReducer as c } from "../../store/reducer.mjs";
|
|
12
|
+
import { MapContext as a } from "../../MapContext.mjs";
|
|
13
|
+
const s = class s extends o.Component {
|
|
14
|
+
constructor(t, e) {
|
|
15
|
+
super(t, e), this.optionsStore = e.optionsStore, this.childStore = p(c);
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const { children: t } = this.props;
|
|
19
|
+
return t !== void 0 ? o.Children.map(t, (e) => o.isValidElement(e) ? this.renderChildren(e) : e) : null;
|
|
20
|
+
}
|
|
21
|
+
componentDidMount() {
|
|
22
|
+
this.dispatch();
|
|
23
|
+
}
|
|
24
|
+
componentDidUpdate() {
|
|
25
|
+
this.dispatch();
|
|
26
|
+
}
|
|
27
|
+
dispatch() {
|
|
28
|
+
const { _mapKey: t, _mapCollectionIdxKey: e, _parentStore: r, children: d, ...n } = this.props;
|
|
29
|
+
(r || this.optionsStore).dispatch({
|
|
30
|
+
mapKey: t,
|
|
31
|
+
mapCollectionIdxKey: e,
|
|
32
|
+
payload: Object.assign({}, n, this.childStore.getState())
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
renderChildren(t) {
|
|
36
|
+
const { children: e } = t.props, r = {
|
|
37
|
+
...t.props,
|
|
38
|
+
_parentStore: this.childStore
|
|
39
|
+
};
|
|
40
|
+
return o.cloneElement(t, r, e);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
s.contextType = a;
|
|
44
|
+
let i = s;
|
|
45
|
+
export {
|
|
46
|
+
i as default
|
|
47
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
(function(o,y){typeof exports=="object"&&typeof module!="undefined"?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!="undefined"?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
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(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")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-react-common","prop-types","@progress/kendo-charts","@progress/kendo-react-popup","@progress/kendo-svg-icons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactMap={},e.React,e.KendoReactCommon,e.PropTypes,e.KendoCharts,e.KendoReactPopup,e.KendoSvgIcons)}(this,(function(e,t,n,r,o,s,a){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var p=i(t);const c=p.createContext(null);c.displayName="MapContext";const l=class extends p.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore}renderChildren(e,t){const{children:n}=e.props,{_mapKey:r,_parentStore:o}=this.props,s={...e.props,_mapCollectionIdxKey:`${r}_${t}`,_parentStore:o};return p.cloneElement(e,s,n)}render(){const{_mapKey:e,_parentStore:t,children:n}=this.props;return(t||this.optionsStore).dispatch({mapKey:e,payload:[]}),p.Children.map(n,((e,t)=>p.isValidElement(e)?this.renderChildren(e,t):e))}};l.contextType=c;let h=l;const u=e=>{let t,r=[];const o=o=>{t=e(t,o),n.canUseDOM&&r.forEach((e=>e()))};return o({}),{getState:()=>t,dispatch:o,subscribe:e=>(r.push(e),()=>r=r.filter((t=>t!==e)))}},d=(e,t)=>t.mapCollectionIdxKey?v.collectionConfigurationItem(e,t):t.mapKey?v.configurationItem(e,t):{},m=(e,t)=>{if(!t.type)return[];switch(t.type){case"add":return[...e,t.payload];case"remove":return e.filter((e=>e!==t.payload));default:return e}},v={configurationItem:(e,t)=>Object.assign(e,{[t.mapKey]:t.payload}),collectionConfigurationItem(e,t){let n=!1;const[r,o]=t.mapCollectionIdxKey.split("_"),s=e[r].map(((e,r)=>parseInt(o,10)===r?(n=!0,t.payload):e));return!1===n&&s.splice(parseInt(o,10),0,t.payload),Object.assign(e,{[r]:s})},themeItem(e,t){let n={},r=Object.assign(n,e);const{field:o,value:s}=t.payload,a=o.split(".");let i=a.shift();for(;a.length>0;)n=n[i]=n[i]||{},i=a.shift();return n[i]=s,r}},y=class extends p.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore,this.childStore=u(d)}render(){const{children:e}=this.props;return void 0!==e?p.Children.map(e,(e=>p.isValidElement(e)?this.renderChildren(e):e)):null}componentDidMount(){this.dispatch()}componentDidUpdate(){this.dispatch()}dispatch(){const{_mapKey:e,_mapCollectionIdxKey:t,_parentStore:n,children:r,...o}=this.props;(n||this.optionsStore).dispatch({mapKey:e,mapCollectionIdxKey:t,payload:Object.assign({},o,this.childStore.getState())})}renderChildren(e){const{children:t}=e.props,n={...e.props,_parentStore:this.childStore};return p.cloneElement(e,n,t)}};y.contextType=c;let g=y,f=class{constructor(e){this.target=e}},I=class extends f{constructor(e,t){super(t)}},b=class extends f{constructor(e,t){super(t),this.location=e.location,this.originalEvent=e.originalEvent}},E=class extends f{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}};class S extends f{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}let M=class extends f{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},k=class extends M{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}},x=class extends f{constructor(e,t){super(t),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}},C=class extends f{constructor(e,t){super(t),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}},T=class extends f{constructor(e,t){super(t)}},O=class extends f{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}},w=class extends f{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)}},L=class extends f{constructor(e,t){super(t),this.dataItem=e.dataItem,this.layer=e.layer,this.group=e.group,this.properties=e.properties}},A=class extends f{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}},K=class extends f{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}},_=class extends f{constructor(e,t){super(t),this.originalEvent=e.originalEvent}},D=class extends M{constructor(e,t){super(t),this.originalEvent=e.originalEvent}};const N={beforeReset:I,mapClick:b,markerActivate:E,markerClick:S,markerCreated:k,panEnd:x,pan:C,reset:T,shapeClick:O,shapeCreated:w,shapeFeatureCreated:L,shapeMouseEnter:A,shapeMouseLeave:K,zoomEnd:_,zoomStart:D};function P(e,t,n,r){const o=e[t];if(o&&Array.isArray(o))for(let e of o)if(!e.type||e.type!==r)return new Error(`${n} children should be Array of type ${r.displayName}.`);return null}const R={horizontal:"fit",vertical:"fit"},U=["k-tooltip","k-map-tooltip"],j=class extends p.Component{constructor(e,t){super(e,t),this.context=null,this.element=null,this.onMapMouseLeave=e=>{const{syntheticEvent:t}=e;return!!function(e,t){let n=e;for(;n&&n!==t;)n=n.parentNode;return!!n}(t.relatedTarget,this.element)},this.mapObserver=new o.InstanceObserver(this,{onMouseLeave:"onMapMouseLeave"}),t.observersStore.dispatch({type:"add",payload:this.mapObserver})}render(){const{popupShown:e,popupAlign:t,popupOffset:n,popupStyles:r,popupContent:o,className:a}=this.props,i=[...U,a].join(" ").trim();return p.createElement(s.Popup,{animate:!0,popupAlign:t,offset:n,show:e,collision:R,className:"k-tooltip-wrapper"},p.createElement("div",{className:i,style:r,ref:e=>this.element=e},o()))}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})}};j.contextType=c;let z=j;const V=class extends p.Component{constructor(){super(...arguments),this.context=null,this.state={popupShown:!1}}componentDidMount(){this.mapObserver=new o.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.mapObserver})}render(){const{popupContext:e,shared:t,className:n,...r}=this.state;if(!e||!this.state.popupShown)return null;const o=e.layerIndex,s=this.findRenderFunctionByLayer(o);if(!s)return null;const a=`k-map-${e.type}-tooltip`;return p.createElement(z,{...r,popupContent:()=>p.createElement("div",{className:"k-tooltip-content"},s(e)),className:a})}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})}onShowTooltip(e){const{anchor:t,className:n}=e;let r=this.createTooltipContext(e);this.setState({popupShown:!0,popupAlign:{vertical:"bottom",horizontal:"center"},popupOffset:t,popupContext:r,popupStyles:{position:"relative"},className:n})}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}createTooltipContext(e){return e}findRenderFunctionByLayer(e){const t=this.context.optionsStore.getState().layers;return void 0!==t&&Array.isArray(t)&&void 0!==t[e]&&t[e].hasOwnProperty("tooltip")&&t[e].tooltip.hasOwnProperty("render")?t[e].tooltip.render:null}};V.contextType=c;let q=V;const B={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 Z{constructor(e,t){this.sender=e,this.syntheticEvent=t}}function F(e,t){return new Z(e,t)}const $={mapMarkerTargetIcon:a.mapMarkerTargetIcon,mapMarkerIcon:a.mapMarkerIcon,plusIcon:a.plusIcon,minusIcon:a.minusIcon,caretAltUpIcon:a.caretAltUpIcon,caretAltDownIcon:a.caretAltDownIcon,caretAltLeftIcon:a.caretAltLeftIcon,caretAltRightIcon:a.caretAltRightIcon},H=class extends p.Component{constructor(e){super(e),this.mapInstance=null,this._element=null,this.optionsStore={},this.optionsUnsubscriber=Function.prototype,this.observersStore={},this.iconsType="svg",this.svgIcons=$,this.onInit=e=>{this.mapInstance=e.sender},this.onRender=e=>{null!==this.mapInstance&&this.trigger("render",e)},this.onMapMouseLeave=e=>{const t=F(this,e);this.triggerDomEvent("onMouseLeave",t)?e.preventDefault():null!==this.mapInstance&&this.mapInstance.hideTooltip()},n.validatePackage(B),this.optionsStore=u(d),this.observersStore=u(m),this.childrenObserver=new o.InstanceObserver(this,{onMouseLeave:"onChildMouseLeave"}),this.contextValue={optionsStore:this.optionsStore,observersStore:this.observersStore,childrenObserver:this.childrenObserver},this.mapObserver=new o.InstanceObserver(this,{init:"onInit"})}get element(){return this._element}componentDidMount(){this.instantiateCoreMap(),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this))}componentWillUnmount(){this.optionsUnsubscriber(),null!==this.mapInstance&&(this.mapInstance.destroy(),this.mapInstance=null)}componentDidUpdate(e){const{dir:t,children:n,...r}=this.props;null!==this.mapInstance&&(Object.entries(e).filter((e=>"dir"!==e[0]&&"children"!==e[0])).some((e=>{const[t,n]=e;return!(r.hasOwnProperty(t)&&r[t]===n)}))&&this.refresh(),e.dir)}render(){const{style:e={},className:t,children:r}=this.props,o=Object.assign({},e,{position:"relative"}),s=p.createElement("div",{className:t,style:o,key:"mapElement"},p.createElement("div",{ref:e=>this._element=e,className:"k-map",onMouseLeave:this.onMapMouseLeave},r));return p.createElement(n.IconsContext.Consumer,null,(e=>p.createElement(c.Provider,{value:this.contextValue},p.createElement(q,{key:"tooltip"}),s,this.setIcons(e))))}getMapOptions(){const{center:e,controls:t,minZoom:n,maxZoom:r,minSize:o,pannable:s,wraparound:a,zoom:i,zoomable:p}=this.props;let c={center:e,controls:t,minZoom:n,maxZoom:r,minSize:o,pannable:s,wraparound:a,zoom:i,zoomable:p,icons:{type:this.iconsType,svgIcons:this.svgIcons}};return c=Object.assign(c,this.optionsStore.getState()),c}get layers(){var e;return null==(e=this.mapInstance)?void 0:e.layers}get extent(){var e;return null==(e=this.mapInstance)?void 0:e.extent()}set extent(e){var t;null==(t=this.mapInstance)||t.extent(e)}resize(){}viewSize(){var e;return null==(e=this.mapInstance)?void 0:e.viewSize()}eventOffset(e){var t;return null==(t=this.mapInstance)?void 0:t.eventOffset(e)}eventToLayer(e){var t;return null==(t=this.mapInstance)?void 0:t.eventToLayer(e)}eventToLocation(e){var t;return null==(t=this.mapInstance)?void 0:t.eventToLocation(e)}eventToView(e){var t;return null==(t=this.mapInstance)?void 0:t.eventToView(e)}layerToLocation(e,t){var n;return null==(n=this.mapInstance)?void 0:n.layerToLocation(e,t)}locationToLayer(e,t){var n;return null==(n=this.mapInstance)?void 0:n.locationToLayer(e,t)}locationToView(e){var t;return null==(t=this.mapInstance)?void 0:t.locationToView(e)}viewToLocation(e,t){var n;return null==(n=this.mapInstance)?void 0:n.viewToLocation(e,t)}loadMarkers(e){const t=this.mapInstance.markers;t&&t._load(e)}refresh(){if(null!==this.mapInstance){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 o.Map(this.element,e,{},{observer:this.mapObserver,sender:this})}trigger(e,t){const n="click"===e?"mapClick":e,r=function(e,t,n){if(N[e])return new N[e](t,n)}(n,t,this),o="on"+n.charAt(0).toUpperCase()+n.slice(1),s=this.observersStore.getState();let a=!1;for(let e=0;e<s.length;e++)s[e].trigger(n,t)&&(a=!0);return!1===a&&r&&this.props.hasOwnProperty(o)?(this.props[o].call(void 0,r),r.isDefaultPrevented&&r.isDefaultPrevented()):a}requiresHandlers(e){for(let t=0;t<e.length;t++){const n=e[t],r="on"+n.charAt(0).toUpperCase()+n.slice(1);if(this.props.hasOwnProperty(r))return!0}return!1}triggerDomEvent(e,t){const n=this.observersStore.getState();let r=!1;for(let o=0;o<n.length;o++)n[o].trigger(e,t)&&(r=!0);return r}setIcons(e){const{type:t,icons:n={}}=e,r={...$},o={mapMarkerTargetIcon:n.mapMarkerTargetIcon,mapMarkerIcon:n.mapMarkerIcon,plusIcon:n.plusIcon,minusIcon:n.minusIcon,caretAltUpIcon:n.caretAltUpIcon,caretAltDownIcon:n.caretAltDownIcon,caretAltLeftIcon:n.caretAltLeftIcon,caretAltRightIcon:n.caretAltRightIcon};let s;for(s in o)if(o[s]){const e=o[s];e&&"string"!=typeof e&&(r[s]=e)}return this.svgIcons=r,this.iconsType=t||"svg",null}};H.propTypes={dir:r.string},H.defaultProps={};let W=H;const G=e=>p.createElement(h,{...e,_mapKey:"layers"});G.propTypes={children:r.node};const J=e=>p.createElement(g,{...e,_mapKey:"tooltip"}),Q=e=>p.createElement(g,{type:"shape",...e});Q.displayName="MapShapeLayer",Q.propTypes={children:function(e,t,n){return P(e,t,n,J)}};const X=e=>p.createElement(g,{type:"tile",...e});X.displayName="MapTileLayer";const Y=e=>p.createElement(g,{...e,_mapKey:"tooltip"}),ee=e=>p.createElement(g,{type:"bubble",...e});ee.displayName="MapBubbleLayer",ee.propTypes={children:function(e,t,n){return P(e,t,n,Y)}};const te=e=>p.createElement(g,{...e,_mapKey:"tooltip"}),ne=e=>p.createElement(g,{type:"marker",...e});ne.displayName="MapMarkerLayer",ne.propTypes={children:function(e,t,n){return P(e,t,n,te)}},Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return o.Extent}}),Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return o.Location}}),e.BeforeResetEvent=I,e.CollectionConfigurationComponent=h,e.ConfigurationComponent=g,e.Map=W,e.MapBubbleLayer=ee,e.MapBubbleLayerTooltip=Y,e.MapClickEvent=b,e.MapLayers=G,e.MapMarkerLayer=ne,e.MapMarkerLayerTooltip=te,e.MapShapeLayer=Q,e.MapShapeLayerTooltip=J,e.MapTileLayer=X,e.MapTooltip=q,e.MarkerActivateEvent=E,e.MarkerClickEvent=S,e.MarkerCreatedEvent=k,e.PanEndEvent=x,e.PanEvent=C,e.ResetEvent=T,e.ShapeClickEvent=O,e.ShapeCreatedEvent=w,e.ShapeFeatureCreatedEvent=L,e.ShapeMouseEnterEvent=A,e.ShapeMouseLeaveEvent=K,e.ZoomEndEvent=_,e.ZoomStartEvent=D}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class t{constructor(e){this.target=e}}exports.BaseEvent=t;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
class s {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(t) {
|
|
14
|
+
this.target = t;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
s as BaseEvent
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./base-event.js");class s extends t.BaseEvent{constructor(n,e){super(e)}}exports.BeforeResetEvent=s;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as t } from "./base-event.mjs";
|
|
10
|
+
class n extends t {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(r, e) {
|
|
15
|
+
super(e);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
n as BeforeResetEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class n{constructor(t,o){this.sender=t,this.syntheticEvent=o}}function s(e,t){return new n(e,t)}exports.DomEvent=n;exports.toDomEvent=s;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
class s {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(t, n) {
|
|
14
|
+
this.sender = t, this.syntheticEvent = n;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function o(e, t) {
|
|
18
|
+
return new s(e, t);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
s as DomEvent,
|
|
22
|
+
o as toDomEvent
|
|
23
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./base-event.js");class i extends n.BaseEvent{constructor(e,t){super(t),this.location=e.location,this.originalEvent=e.originalEvent}}exports.MapClickEvent=i;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as n } from "./base-event.mjs";
|
|
10
|
+
class s extends n {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(t, i) {
|
|
15
|
+
super(i), this.location = t.location, this.originalEvent = t.originalEvent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
s as MapClickEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./before-reset-event.js"),o=require("./map-click-event.js"),s=require("./marker-activate-event.js"),E=require("./marker-click-event.js"),v=require("./marker-created-event.js"),c=require("./pan-end-event.js"),i=require("./pan-event.js"),u=require("./reset-event.js"),p=require("./shape-click-event.js"),k=require("./shape-created-event.js"),C=require("./shape-feature-created-event.js"),d=require("./shape-mouse-enter-event.js"),h=require("./shape-mouse-leave-event.js"),q=require("./zoom-end-event.js"),m=require("./zoom-start-event.js"),t={beforeReset:a.BeforeResetEvent,mapClick:o.MapClickEvent,markerActivate:s.MarkerActivateEvent,markerClick:E.MarkerClickEvent,markerCreated:v.MarkerCreatedEvent,panEnd:c.PanEndEvent,pan:i.PanEvent,reset:u.ResetEvent,shapeClick:p.ShapeClickEvent,shapeCreated:k.ShapeCreatedEvent,shapeFeatureCreated:C.ShapeFeatureCreatedEvent,shapeMouseEnter:d.ShapeMouseEnterEvent,shapeMouseLeave:h.ShapeMouseLeaveEvent,zoomEnd:q.ZoomEndEvent,zoomStart:m.ZoomStartEvent};function l(e,r,n){if(t[e])return new t[e](r,n)}exports.create=l;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BeforeResetEvent as m } from "./before-reset-event.mjs";
|
|
10
|
+
import { MapClickEvent as a } from "./map-click-event.mjs";
|
|
11
|
+
import { MarkerActivateEvent as n } from "./marker-activate-event.mjs";
|
|
12
|
+
import { MarkerClickEvent as p } from "./marker-click-event.mjs";
|
|
13
|
+
import { MarkerCreatedEvent as i } from "./marker-created-event.mjs";
|
|
14
|
+
import { PanEndEvent as E } from "./pan-end-event.mjs";
|
|
15
|
+
import { PanEvent as f } from "./pan-event.mjs";
|
|
16
|
+
import { ResetEvent as v } from "./reset-event.mjs";
|
|
17
|
+
import { ShapeClickEvent as s } from "./shape-click-event.mjs";
|
|
18
|
+
import { ShapeCreatedEvent as c } from "./shape-created-event.mjs";
|
|
19
|
+
import { ShapeFeatureCreatedEvent as k } from "./shape-feature-created-event.mjs";
|
|
20
|
+
import { ShapeMouseEnterEvent as C } from "./shape-mouse-enter-event.mjs";
|
|
21
|
+
import { ShapeMouseLeaveEvent as d } from "./shape-mouse-leave-event.mjs";
|
|
22
|
+
import { ZoomEndEvent as h } from "./zoom-end-event.mjs";
|
|
23
|
+
import { ZoomStartEvent as u } from "./zoom-start-event.mjs";
|
|
24
|
+
const r = {
|
|
25
|
+
beforeReset: m,
|
|
26
|
+
mapClick: a,
|
|
27
|
+
markerActivate: n,
|
|
28
|
+
markerClick: p,
|
|
29
|
+
markerCreated: i,
|
|
30
|
+
panEnd: E,
|
|
31
|
+
pan: f,
|
|
32
|
+
reset: v,
|
|
33
|
+
shapeClick: s,
|
|
34
|
+
shapeCreated: c,
|
|
35
|
+
shapeFeatureCreated: k,
|
|
36
|
+
shapeMouseEnter: C,
|
|
37
|
+
shapeMouseLeave: d,
|
|
38
|
+
zoomEnd: h,
|
|
39
|
+
zoomStart: u
|
|
40
|
+
};
|
|
41
|
+
function T(e, t, o) {
|
|
42
|
+
if (r[e])
|
|
43
|
+
return new r[e](t, o);
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
T as create
|
|
47
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./base-event.js");class a extends r.BaseEvent{constructor(e,t){super(t),this.marker=e.marker,this.layer=e.layer}}exports.MarkerActivateEvent=a;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as t } from "./base-event.mjs";
|
|
10
|
+
class c extends t {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(e, r) {
|
|
15
|
+
super(r), this.marker = e.marker, this.layer = e.layer;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
c as MarkerActivateEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./base-event.js");class s extends t.BaseEvent{constructor(e,r){super(r),this.marker=e.marker,this.layer=e.layer}}exports.MarkerClickEvent=s;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as t } from "./base-event.mjs";
|
|
10
|
+
class c extends t {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(r, e) {
|
|
15
|
+
super(e), this.marker = r.marker, this.layer = r.layer;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
c as MarkerClickEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./preventable-event.js");class a extends t.PreventableEvent{constructor(e,r){super(r),this.marker=e.marker,this.layer=e.layer}}exports.MarkerCreatedEvent=a;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { PreventableEvent as t } from "./preventable-event.mjs";
|
|
10
|
+
class n extends t {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(e, r) {
|
|
15
|
+
super(r), this.marker = e.marker, this.layer = e.layer;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
n as MarkerCreatedEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./base-event.js");class i extends t.BaseEvent{constructor(e,n){super(n),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}}exports.PanEndEvent=i;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as e } from "./base-event.mjs";
|
|
10
|
+
class s extends e {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(n, t) {
|
|
15
|
+
super(t), this.origin = n.origin, this.center = n.center, this.originalEvent = n.originalEvent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
s as PanEndEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./base-event.js");class i extends n.BaseEvent{constructor(e,t){super(t),this.origin=e.origin,this.center=e.center,this.originalEvent=e.originalEvent}}exports.PanEvent=i;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as e } from "./base-event.mjs";
|
|
10
|
+
class s extends e {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(t, n) {
|
|
15
|
+
super(n), this.origin = t.origin, this.center = t.center, this.originalEvent = t.originalEvent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
s as PanEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./base-event.js");class t extends e.BaseEvent{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}exports.PreventableEvent=t;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as e } from "./base-event.mjs";
|
|
10
|
+
class n extends e {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.prevented = !1;
|
|
13
|
+
}
|
|
14
|
+
/* eslint-disable max-len */
|
|
15
|
+
/**
|
|
16
|
+
* Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
|
|
17
|
+
*/
|
|
18
|
+
preventDefault() {
|
|
19
|
+
this.prevented = !0;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns `true` if the event was prevented by any of its subscribers.
|
|
23
|
+
*
|
|
24
|
+
* @returns `true` if the default action was prevented.
|
|
25
|
+
* Otherwise, returns `false`.
|
|
26
|
+
*/
|
|
27
|
+
isDefaultPrevented() {
|
|
28
|
+
return this.prevented;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
n as PreventableEvent
|
|
33
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./base-event.js");class s extends t.BaseEvent{constructor(r,e){super(e)}}exports.ResetEvent=s;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as t } from "./base-event.mjs";
|
|
10
|
+
class o extends t {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(r, e) {
|
|
15
|
+
super(e);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
o as ResetEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./base-event.js");class i extends s.BaseEvent{constructor(e,t){super(t),this.layer=e.layer,this.shape=e.shape,this.originalEvent=e.originalEvent}}exports.ShapeClickEvent=i;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { BaseEvent as s } from "./base-event.mjs";
|
|
10
|
+
class a extends s {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(e, t) {
|
|
15
|
+
super(t), this.layer = e.layer, this.shape = e.shape, this.originalEvent = e.originalEvent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
a as ShapeClickEvent
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./base-event.js");class s extends a.BaseEvent{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)}}exports.ShapeCreatedEvent=s;
|