@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.
Files changed (125) hide show
  1. package/Map.js +8 -0
  2. package/Map.mjs +346 -0
  3. package/MapContext.js +8 -0
  4. package/MapContext.mjs +14 -0
  5. package/components/BubbleLayer.js +8 -0
  6. package/components/BubbleLayer.mjs +22 -0
  7. package/components/BubbleLayerTooltip.js +8 -0
  8. package/components/BubbleLayerTooltip.mjs +14 -0
  9. package/components/Layers.js +8 -0
  10. package/components/Layers.mjs +18 -0
  11. package/components/MarkerLayer.js +8 -0
  12. package/components/MarkerLayer.mjs +22 -0
  13. package/components/MarkerLayerTooltip.js +8 -0
  14. package/components/MarkerLayerTooltip.mjs +14 -0
  15. package/components/ShapeLayer.js +8 -0
  16. package/components/ShapeLayer.mjs +22 -0
  17. package/components/ShapeLayerTooltip.js +8 -0
  18. package/components/ShapeLayerTooltip.mjs +14 -0
  19. package/components/TileLayer.js +8 -0
  20. package/components/TileLayer.mjs +15 -0
  21. package/components/base/CollectionConfigurationComponent.js +8 -0
  22. package/components/base/CollectionConfigurationComponent.mjs +35 -0
  23. package/components/base/ConfigurationComponent.js +8 -0
  24. package/components/base/ConfigurationComponent.mjs +47 -0
  25. package/dist/cdn/js/kendo-react-map.js +8 -5
  26. package/events/base-event.js +8 -0
  27. package/events/base-event.mjs +19 -0
  28. package/events/before-reset-event.js +8 -0
  29. package/events/before-reset-event.mjs +20 -0
  30. package/events/dom-event.js +8 -0
  31. package/events/dom-event.mjs +23 -0
  32. package/events/map-click-event.js +8 -0
  33. package/events/map-click-event.mjs +20 -0
  34. package/events/map-event-builder.js +8 -0
  35. package/events/map-event-builder.mjs +47 -0
  36. package/events/marker-activate-event.js +8 -0
  37. package/events/marker-activate-event.mjs +20 -0
  38. package/events/marker-click-event.js +8 -0
  39. package/events/marker-click-event.mjs +20 -0
  40. package/events/marker-created-event.js +8 -0
  41. package/events/marker-created-event.mjs +20 -0
  42. package/events/pan-end-event.js +8 -0
  43. package/events/pan-end-event.mjs +20 -0
  44. package/events/pan-event.js +8 -0
  45. package/events/pan-event.mjs +20 -0
  46. package/events/preventable-event.js +8 -0
  47. package/events/preventable-event.mjs +33 -0
  48. package/events/reset-event.js +8 -0
  49. package/events/reset-event.mjs +20 -0
  50. package/events/shape-click-event.js +8 -0
  51. package/events/shape-click-event.mjs +20 -0
  52. package/events/shape-created-event.js +8 -0
  53. package/events/shape-created-event.mjs +20 -0
  54. package/events/shape-feature-created-event.js +8 -0
  55. package/events/shape-feature-created-event.mjs +20 -0
  56. package/events/shape-mouse-enter-event.js +8 -0
  57. package/events/shape-mouse-enter-event.mjs +20 -0
  58. package/events/shape-mouse-leave-event.js +8 -0
  59. package/events/shape-mouse-leave-event.mjs +20 -0
  60. package/events/zoom-end-event.js +8 -0
  61. package/events/zoom-end-event.mjs +20 -0
  62. package/events/zoom-start-event.js +8 -0
  63. package/events/zoom-start-event.mjs +20 -0
  64. package/index.d.mts +951 -5
  65. package/index.d.ts +951 -13
  66. package/index.js +8 -5
  67. package/index.mjs +64 -801
  68. package/package-metadata.js +8 -0
  69. package/package-metadata.mjs +19 -0
  70. package/package.json +3 -3
  71. package/store/reducer.js +8 -0
  72. package/store/reducer.mjs +46 -0
  73. package/store/store.js +8 -0
  74. package/store/store.mjs +19 -0
  75. package/tooltip/MapTooltip.js +8 -0
  76. package/tooltip/MapTooltip.mjs +82 -0
  77. package/tooltip/Popup.js +8 -0
  78. package/tooltip/Popup.mjs +60 -0
  79. package/utils/index.js +8 -0
  80. package/utils/index.mjs +29 -0
  81. package/Map.d.ts +0 -192
  82. package/MapContext.d.ts +0 -19
  83. package/MapProps.d.ts +0 -104
  84. package/common/events.d.ts +0 -19
  85. package/common/map-types.d.ts +0 -5
  86. package/components/BubbleLayer.d.ts +0 -14
  87. package/components/BubbleLayerTooltip.d.ts +0 -19
  88. package/components/Layers.d.ts +0 -13
  89. package/components/MarkerLayer.d.ts +0 -14
  90. package/components/MarkerLayerTooltip.d.ts +0 -19
  91. package/components/ShapeLayer.d.ts +0 -14
  92. package/components/ShapeLayerTooltip.d.ts +0 -19
  93. package/components/TileLayer.d.ts +0 -13
  94. package/components/base/CollectionConfigurationComponent.d.ts +0 -23
  95. package/components/base/ConfigurationComponent.d.ts +0 -28
  96. package/components/index.d.ts +0 -13
  97. package/events/base-event.d.ts +0 -18
  98. package/events/before-reset-event.d.ts +0 -16
  99. package/events/dom-event.d.ts +0 -26
  100. package/events/map-click-event.d.ts +0 -24
  101. package/events/map-event-builder.d.ts +0 -10
  102. package/events/marker-activate-event.d.ts +0 -24
  103. package/events/marker-click-event.d.ts +0 -24
  104. package/events/marker-created-event.d.ts +0 -26
  105. package/events/pan-end-event.d.ts +0 -28
  106. package/events/pan-event.d.ts +0 -28
  107. package/events/preventable-event.d.ts +0 -22
  108. package/events/reset-event.d.ts +0 -18
  109. package/events/shape-click-event.d.ts +0 -29
  110. package/events/shape-created-event.d.ts +0 -33
  111. package/events/shape-feature-created-event.d.ts +0 -33
  112. package/events/shape-mouse-enter-event.d.ts +0 -32
  113. package/events/shape-mouse-leave-event.d.ts +0 -32
  114. package/events/zoom-end-event.d.ts +0 -20
  115. package/events/zoom-start-event.d.ts +0 -22
  116. package/package-metadata.d.ts +0 -9
  117. package/store/reducer.d.ts +0 -14
  118. package/store/store.d.ts +0 -26
  119. package/tooltip/BubbleTooltipContext.d.ts +0 -26
  120. package/tooltip/MapTooltip.d.ts +0 -41
  121. package/tooltip/MarkerTooltipContext.d.ts +0 -26
  122. package/tooltip/Popup.d.ts +0 -33
  123. package/tooltip/ShapeTooltipContext.d.ts +0 -22
  124. package/tooltip/index.d.ts +0 -9
  125. package/utils/index.d.ts +0 -13
@@ -1,32 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { MapLayer, MapShapeMouseLeaveEvent } from '@progress/kendo-charts';
6
- import { Element } from '@progress/kendo-drawing';
7
- import { Map } from '../Map';
8
- import { BaseEvent } from './base-event';
9
- /**
10
- * Fired when the mouse leaves a shape.
11
- *
12
- * > This event will fire reliably only for shapes that have set fill color.
13
- * > The opacity can still be set to 0 so the shapes appear to have no fill.
14
- */
15
- export declare class ShapeMouseLeaveEvent extends BaseEvent implements MapShapeMouseLeaveEvent {
16
- /**
17
- * The shape layer instance.
18
- */
19
- layer: MapLayer;
20
- /**
21
- * The shape instance.
22
- */
23
- shape: Element;
24
- /**
25
- * The source DOM event instance
26
- */
27
- originalEvent: any;
28
- /**
29
- * @hidden
30
- */
31
- constructor(e: MapShapeMouseLeaveEvent, target: Map);
32
- }
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { MapZoomEndEvent } from '@progress/kendo-charts';
6
- import { Map } from '../Map';
7
- import { BaseEvent } from './base-event';
8
- /**
9
- * Fired when the map zoom level has changed.
10
- */
11
- export declare class ZoomEndEvent extends BaseEvent implements MapZoomEndEvent {
12
- /**
13
- * The source DOM event instance
14
- */
15
- originalEvent: any;
16
- /**
17
- * @hidden
18
- */
19
- constructor(e: MapZoomEndEvent, target: Map);
20
- }
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { MapZoomStartEvent } from '@progress/kendo-charts';
6
- import { Map } from '../Map';
7
- import { PreventableEvent } from './preventable-event';
8
- /**
9
- * Fired when the map zoom level is about to change.
10
- *
11
- * Cancelling the event will prevent the user action.
12
- */
13
- export declare class ZoomStartEvent extends PreventableEvent implements MapZoomStartEvent {
14
- /**
15
- * The source DOM event instance
16
- */
17
- originalEvent: any;
18
- /**
19
- * @hidden
20
- */
21
- constructor(e: MapZoomStartEvent, target: Map);
22
- }
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { StoreAction } from './store';
6
- /**
7
- * @hidden
8
- */
9
- declare const optionsReducer: (currentState: any, action: StoreAction) => object;
10
- /**
11
- * @hidden
12
- */
13
- declare const observersReducer: (currentState: any, action: StoreAction) => any;
14
- export { optionsReducer, observersReducer };
package/store/store.d.ts DELETED
@@ -1,26 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export interface StoreAction {
9
- mapKey?: string;
10
- mapCollectionIdxKey?: string;
11
- type?: string;
12
- payload: any;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export interface Store {
18
- getState(): any;
19
- dispatch(action: StoreAction | object): void;
20
- subscribe(f: Function): Function;
21
- }
22
- /**
23
- * @hidden
24
- */
25
- declare const createStore: (reducer: any) => Store;
26
- export default createStore;
@@ -1,26 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Location } from '..';
6
- /**
7
- * Context object for bubble layer tooltips.
8
- */
9
- export interface BubbleTooltipContext {
10
- /**
11
- * The original data item used to create the bubble.
12
- */
13
- dataItem: any;
14
- /**
15
- * The index of the bubble layer in the map.
16
- */
17
- layerIndex: number;
18
- /**
19
- * The location of the bubble.
20
- */
21
- location: Location;
22
- /**
23
- * The numerical value of the bubble
24
- */
25
- value: number;
26
- }
@@ -1,41 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { Align, Offset } from '@progress/kendo-react-popup';
7
- import { InstanceObserver } from '@progress/kendo-charts';
8
- import { MarkerTooltipContext } from './MarkerTooltipContext';
9
- import { ShapeTooltipContext } from './ShapeTooltipContext';
10
- import { BubbleTooltipContext } from './BubbleTooltipContext';
11
- import { MapContext } from '../MapContext';
12
- type TooltipContext = MarkerTooltipContext | ShapeTooltipContext | BubbleTooltipContext;
13
- /**
14
- * @hidden
15
- */
16
- export interface MapTooltipState {
17
- className?: string | undefined;
18
- popupShown: boolean;
19
- popupAlign?: Align;
20
- popupOffset?: Offset;
21
- popupStyles?: any;
22
- popupContext?: TooltipContext;
23
- shared?: boolean;
24
- }
25
- /**
26
- * @hidden
27
- */
28
- export declare class MapTooltip extends React.Component<{}, MapTooltipState> {
29
- static contextType: React.Context<import("../MapContext").MapContextType | null>;
30
- context: React.ContextType<typeof MapContext>;
31
- readonly state: MapTooltipState;
32
- mapObserver?: InstanceObserver;
33
- componentDidMount(): void;
34
- render(): import("react/jsx-runtime").JSX.Element | null;
35
- componentWillUnmount(): void;
36
- onShowTooltip(e: any): void;
37
- onHideTooltip(): void;
38
- createTooltipContext(e: any): TooltipContext;
39
- findRenderFunctionByLayer(layerIndex: number): any;
40
- }
41
- export {};
@@ -1,26 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Location } from '..';
6
- /**
7
- * Context object for marker tooltips.
8
- */
9
- export interface MarkerTooltipContext {
10
- /**
11
- * The original data item used to create the marker.
12
- */
13
- dataItem: any;
14
- /**
15
- * The index of the marker layer in the map.
16
- */
17
- layerIndex: number;
18
- /**
19
- * The location of the marker.
20
- */
21
- location: Location;
22
- /**
23
- * The title of the marker.
24
- */
25
- title: string;
26
- }
@@ -1,33 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { InstanceObserver } from '@progress/kendo-charts';
7
- import { DomEvent } from './../events/dom-event';
8
- import { Align, Offset } from '@progress/kendo-react-popup';
9
- import { MapContext } from '../MapContext';
10
- /**
11
- * @hidden
12
- */
13
- export interface TooltipPopupProps {
14
- className?: string | undefined;
15
- popupShown: boolean;
16
- popupAlign?: Align;
17
- popupOffset?: Offset;
18
- popupStyles?: any;
19
- popupContent: Function;
20
- }
21
- /**
22
- * @hidden
23
- */
24
- export declare class TooltipPopup extends React.Component<TooltipPopupProps, {}> {
25
- static contextType: React.Context<import("../MapContext").MapContextType | null>;
26
- context: React.ContextType<typeof MapContext>;
27
- mapObserver: InstanceObserver;
28
- element: HTMLDivElement | null;
29
- constructor(props: TooltipPopupProps, context: any);
30
- render(): import("react/jsx-runtime").JSX.Element;
31
- componentWillUnmount(): void;
32
- onMapMouseLeave: (e: DomEvent<React.MouseEvent<HTMLDivElement>>) => boolean;
33
- }
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Location } from '..';
6
- /**
7
- * Context object for shape layer tooltips.
8
- */
9
- export interface ShapeTooltipContext {
10
- /**
11
- * The original GeoJSON data item used to create the shape.
12
- */
13
- dataItem: any;
14
- /**
15
- * The index of the shape layer in the map.
16
- */
17
- layerIndex: number;
18
- /**
19
- * The location (center point) of the shape.
20
- */
21
- location: Location;
22
- }
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { MapTooltip } from './MapTooltip';
6
- import { type MarkerTooltipContext } from './MarkerTooltipContext';
7
- import { type BubbleTooltipContext } from './BubbleTooltipContext';
8
- import { type ShapeTooltipContext } from './ShapeTooltipContext';
9
- export { BubbleTooltipContext, MarkerTooltipContext, MapTooltip, ShapeTooltipContext };
package/utils/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- declare function hasParent(element: any, parent: any): boolean;
9
- /**
10
- * @hidden
11
- */
12
- declare function validateChildren<P>(props: P, propName: string, componentName: string, childType: React.FunctionComponent): Error | null;
13
- export { hasParent, validateChildren };