@progress/kendo-react-map 6.1.1 → 7.0.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/{dist/es/Map.d.ts → Map.d.ts} +4 -1
- package/{dist/npm/MapContext.d.ts → MapContext.d.ts} +4 -0
- package/{dist/es/MapProps.d.ts → MapProps.d.ts} +4 -0
- package/{dist/es/common → common}/events.d.ts +4 -0
- package/common/map-types.d.ts +5 -0
- package/{dist/es/components → components}/BubbleLayer.d.ts +4 -0
- package/{dist/es/components → components}/BubbleLayerTooltip.d.ts +4 -0
- package/components/Layers.d.ts +13 -0
- package/{dist/es/components → components}/MarkerLayer.d.ts +4 -0
- package/{dist/es/components → components}/MarkerLayerTooltip.d.ts +4 -0
- package/{dist/npm/components → components}/ShapeLayer.d.ts +4 -0
- package/{dist/npm/components → components}/ShapeLayerTooltip.d.ts +4 -0
- package/components/TileLayer.d.ts +13 -0
- package/{dist/npm/components → components}/base/CollectionConfigurationComponent.d.ts +4 -0
- package/{dist/es/components → components}/base/ConfigurationComponent.d.ts +4 -0
- package/components/index.d.ts +13 -0
- package/dist/cdn/js/kendo-react-map.js +5 -1
- package/events/base-event.d.ts +18 -0
- package/{dist/npm/events → events}/before-reset-event.d.ts +4 -0
- package/{dist/npm/events → events}/dom-event.d.ts +4 -1
- package/{dist/npm/events → events}/map-click-event.d.ts +4 -0
- package/events/map-event-builder.d.ts +10 -0
- package/{dist/npm/events → events}/marker-activate-event.d.ts +4 -0
- package/{dist/npm/events → events}/marker-click-event.d.ts +4 -0
- package/{dist/npm/events → events}/marker-created-event.d.ts +4 -0
- package/{dist/es/events → events}/pan-end-event.d.ts +4 -0
- package/{dist/es/events → events}/pan-event.d.ts +4 -0
- package/{dist/es/events → events}/preventable-event.d.ts +4 -0
- package/{dist/es/events → events}/reset-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-click-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-created-event.d.ts +4 -0
- package/{dist/es/events → events}/shape-feature-created-event.d.ts +4 -0
- package/{dist/es/events → events}/shape-mouse-enter-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-mouse-leave-event.d.ts +4 -0
- package/{dist/es/events → events}/zoom-end-event.d.ts +4 -0
- package/{dist/npm/events → events}/zoom-start-event.d.ts +4 -0
- package/index.d.ts +13 -0
- package/index.js +5 -0
- package/index.mjs +803 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +29 -40
- package/store/reducer.d.ts +14 -0
- package/{dist/npm/store → store}/store.d.ts +4 -0
- package/{dist/npm/tooltip → tooltip}/BubbleTooltipContext.d.ts +5 -1
- package/{dist/npm/tooltip → tooltip}/MapTooltip.d.ts +6 -2
- package/{dist/npm/tooltip → tooltip}/MarkerTooltipContext.d.ts +5 -1
- package/{dist/es/tooltip → tooltip}/Popup.d.ts +5 -1
- package/tooltip/ShapeTooltipContext.d.ts +22 -0
- package/tooltip/index.d.ts +9 -0
- package/utils/index.d.ts +13 -0
- package/about.md +0 -3
- package/dist/es/Map.js +0 -469
- package/dist/es/MapContext.d.ts +0 -15
- package/dist/es/MapContext.js +0 -6
- package/dist/es/MapProps.js +0 -1
- package/dist/es/common/events.js +0 -16
- package/dist/es/common/map-types.d.ts +0 -1
- package/dist/es/common/map-types.js +0 -2
- package/dist/es/components/BubbleLayer.js +0 -25
- package/dist/es/components/BubbleLayerTooltip.js +0 -17
- package/dist/es/components/Layers.d.ts +0 -9
- package/dist/es/components/Layers.js +0 -21
- package/dist/es/components/MarkerLayer.js +0 -25
- package/dist/es/components/MarkerLayerTooltip.js +0 -17
- package/dist/es/components/ShapeLayer.d.ts +0 -10
- package/dist/es/components/ShapeLayer.js +0 -25
- package/dist/es/components/ShapeLayerTooltip.d.ts +0 -15
- package/dist/es/components/ShapeLayerTooltip.js +0 -17
- package/dist/es/components/TileLayer.d.ts +0 -9
- package/dist/es/components/TileLayer.js +0 -18
- package/dist/es/components/base/CollectionConfigurationComponent.d.ts +0 -19
- package/dist/es/components/base/CollectionConfigurationComponent.js +0 -63
- package/dist/es/components/base/ConfigurationComponent.js +0 -86
- package/dist/es/components/main.d.ts +0 -9
- package/dist/es/components/main.js +0 -9
- package/dist/es/defaults.d.ts +0 -1
- package/dist/es/defaults.js +0 -15
- package/dist/es/events/base-event.d.ts +0 -14
- package/dist/es/events/base-event.js +0 -13
- package/dist/es/events/before-reset-event.d.ts +0 -12
- package/dist/es/events/before-reset-event.js +0 -30
- package/dist/es/events/dom-event.d.ts +0 -23
- package/dist/es/events/dom-event.js +0 -21
- package/dist/es/events/map-click-event.d.ts +0 -20
- package/dist/es/events/map-click-event.js +0 -33
- package/dist/es/events/map-event-builder.d.ts +0 -6
- package/dist/es/events/map-event-builder.js +0 -27
- package/dist/es/events/marker-activate-event.d.ts +0 -20
- package/dist/es/events/marker-activate-event.js +0 -33
- package/dist/es/events/marker-click-event.d.ts +0 -20
- package/dist/es/events/marker-click-event.js +0 -33
- package/dist/es/events/marker-created-event.d.ts +0 -22
- package/dist/es/events/marker-created-event.js +0 -35
- package/dist/es/events/pan-end-event.js +0 -34
- package/dist/es/events/pan-event.js +0 -34
- package/dist/es/events/preventable-event.js +0 -46
- package/dist/es/events/reset-event.js +0 -32
- package/dist/es/events/shape-click-event.d.ts +0 -25
- package/dist/es/events/shape-click-event.js +0 -34
- package/dist/es/events/shape-created-event.d.ts +0 -29
- package/dist/es/events/shape-created-event.js +0 -38
- package/dist/es/events/shape-feature-created-event.js +0 -35
- package/dist/es/events/shape-mouse-enter-event.js +0 -37
- package/dist/es/events/shape-mouse-leave-event.d.ts +0 -28
- package/dist/es/events/shape-mouse-leave-event.js +0 -37
- package/dist/es/events/zoom-end-event.js +0 -32
- package/dist/es/events/zoom-start-event.d.ts +0 -18
- package/dist/es/events/zoom-start-event.js +0 -34
- package/dist/es/main.d.ts +0 -9
- package/dist/es/main.js +0 -8
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/store/reducer.d.ts +0 -10
- package/dist/es/store/reducer.js +0 -84
- package/dist/es/store/store.d.ts +0 -22
- package/dist/es/store/store.js +0 -22
- package/dist/es/tooltip/BubbleTooltipContext.d.ts +0 -22
- package/dist/es/tooltip/BubbleTooltipContext.js +0 -1
- package/dist/es/tooltip/MapTooltip.d.ts +0 -37
- package/dist/es/tooltip/MapTooltip.js +0 -123
- package/dist/es/tooltip/MarkerTooltipContext.d.ts +0 -22
- package/dist/es/tooltip/MarkerTooltipContext.js +0 -1
- package/dist/es/tooltip/Popup.js +0 -76
- package/dist/es/tooltip/ShapeTooltipContext.d.ts +0 -18
- package/dist/es/tooltip/ShapeTooltipContext.js +0 -1
- package/dist/es/tooltip/main.d.ts +0 -5
- package/dist/es/tooltip/main.js +0 -2
- package/dist/es/utils/main.d.ts +0 -10
- package/dist/es/utils/main.js +0 -28
- package/dist/npm/Map.d.ts +0 -189
- package/dist/npm/Map.js +0 -472
- package/dist/npm/MapContext.js +0 -9
- package/dist/npm/MapProps.d.ts +0 -100
- package/dist/npm/MapProps.js +0 -2
- package/dist/npm/common/events.d.ts +0 -15
- package/dist/npm/common/events.js +0 -34
- package/dist/npm/common/map-types.d.ts +0 -1
- package/dist/npm/common/map-types.js +0 -7
- package/dist/npm/components/BubbleLayer.d.ts +0 -10
- package/dist/npm/components/BubbleLayer.js +0 -28
- package/dist/npm/components/BubbleLayerTooltip.d.ts +0 -15
- package/dist/npm/components/BubbleLayerTooltip.js +0 -20
- package/dist/npm/components/Layers.d.ts +0 -9
- package/dist/npm/components/Layers.js +0 -24
- package/dist/npm/components/MarkerLayer.d.ts +0 -10
- package/dist/npm/components/MarkerLayer.js +0 -28
- package/dist/npm/components/MarkerLayerTooltip.d.ts +0 -15
- package/dist/npm/components/MarkerLayerTooltip.js +0 -20
- package/dist/npm/components/ShapeLayer.js +0 -28
- package/dist/npm/components/ShapeLayerTooltip.js +0 -20
- package/dist/npm/components/TileLayer.d.ts +0 -9
- package/dist/npm/components/TileLayer.js +0 -21
- package/dist/npm/components/base/CollectionConfigurationComponent.js +0 -65
- package/dist/npm/components/base/ConfigurationComponent.d.ts +0 -24
- package/dist/npm/components/base/ConfigurationComponent.js +0 -88
- package/dist/npm/components/main.d.ts +0 -9
- package/dist/npm/components/main.js +0 -19
- package/dist/npm/defaults.d.ts +0 -1
- package/dist/npm/defaults.js +0 -17
- package/dist/npm/events/base-event.d.ts +0 -14
- package/dist/npm/events/base-event.js +0 -16
- package/dist/npm/events/before-reset-event.js +0 -33
- package/dist/npm/events/dom-event.js +0 -24
- package/dist/npm/events/map-click-event.js +0 -36
- package/dist/npm/events/map-event-builder.d.ts +0 -6
- package/dist/npm/events/map-event-builder.js +0 -30
- package/dist/npm/events/marker-activate-event.js +0 -36
- package/dist/npm/events/marker-click-event.js +0 -36
- package/dist/npm/events/marker-created-event.js +0 -38
- package/dist/npm/events/pan-end-event.d.ts +0 -24
- package/dist/npm/events/pan-end-event.js +0 -37
- package/dist/npm/events/pan-event.d.ts +0 -24
- package/dist/npm/events/pan-event.js +0 -37
- package/dist/npm/events/preventable-event.d.ts +0 -18
- package/dist/npm/events/preventable-event.js +0 -49
- package/dist/npm/events/reset-event.d.ts +0 -14
- package/dist/npm/events/reset-event.js +0 -35
- package/dist/npm/events/shape-click-event.js +0 -37
- package/dist/npm/events/shape-created-event.js +0 -41
- package/dist/npm/events/shape-feature-created-event.d.ts +0 -29
- package/dist/npm/events/shape-feature-created-event.js +0 -38
- package/dist/npm/events/shape-mouse-enter-event.d.ts +0 -28
- package/dist/npm/events/shape-mouse-enter-event.js +0 -40
- package/dist/npm/events/shape-mouse-leave-event.js +0 -40
- package/dist/npm/events/zoom-end-event.d.ts +0 -16
- package/dist/npm/events/zoom-end-event.js +0 -35
- package/dist/npm/events/zoom-start-event.js +0 -37
- package/dist/npm/main.d.ts +0 -9
- package/dist/npm/main.js +0 -27
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/store/reducer.d.ts +0 -10
- package/dist/npm/store/reducer.js +0 -88
- package/dist/npm/store/store.js +0 -24
- package/dist/npm/tooltip/BubbleTooltipContext.js +0 -2
- package/dist/npm/tooltip/MapTooltip.js +0 -126
- package/dist/npm/tooltip/MarkerTooltipContext.js +0 -2
- package/dist/npm/tooltip/Popup.d.ts +0 -29
- package/dist/npm/tooltip/Popup.js +0 -79
- package/dist/npm/tooltip/ShapeTooltipContext.d.ts +0 -18
- package/dist/npm/tooltip/ShapeTooltipContext.js +0 -2
- package/dist/npm/tooltip/main.d.ts +0 -5
- package/dist/npm/tooltip/main.js +0 -5
- package/dist/npm/utils/main.d.ts +0 -10
- package/dist/npm/utils/main.js +0 -32
- package/dist/systemjs/kendo-react-map.js +0 -1
- package/e2e-next/basic.tests.ts +0 -24
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fires after the map viewport has been moved.
|
|
19
|
-
*/
|
|
20
|
-
var PanEndEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(PanEndEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function PanEndEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.origin = e.origin;
|
|
28
|
-
_this.center = e.center;
|
|
29
|
-
_this.originalEvent = e.originalEvent;
|
|
30
|
-
return _this;
|
|
31
|
-
}
|
|
32
|
-
return PanEndEvent;
|
|
33
|
-
}(BaseEvent));
|
|
34
|
-
export { PanEndEvent };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired while the map viewport is being moved.
|
|
19
|
-
*/
|
|
20
|
-
var PanEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(PanEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function PanEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.origin = e.origin;
|
|
28
|
-
_this.center = e.center;
|
|
29
|
-
_this.originalEvent = e.originalEvent;
|
|
30
|
-
return _this;
|
|
31
|
-
}
|
|
32
|
-
return PanEvent;
|
|
33
|
-
}(BaseEvent));
|
|
34
|
-
export { PanEvent };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
var PreventableEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(PreventableEvent, _super);
|
|
22
|
-
function PreventableEvent() {
|
|
23
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
_this.prevented = false;
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
/* eslint-disable max-len */
|
|
28
|
-
/**
|
|
29
|
-
* Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
|
|
30
|
-
*/
|
|
31
|
-
PreventableEvent.prototype.preventDefault = function () {
|
|
32
|
-
this.prevented = true;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Returns `true` if the event was prevented by any of its subscribers.
|
|
36
|
-
*
|
|
37
|
-
* @returns `true` if the default action was prevented.
|
|
38
|
-
* Otherwise, returns `false`.
|
|
39
|
-
*/
|
|
40
|
-
PreventableEvent.prototype.isDefaultPrevented = function () {
|
|
41
|
-
return this.prevented;
|
|
42
|
-
};
|
|
43
|
-
return PreventableEvent;
|
|
44
|
-
}(BaseEvent));
|
|
45
|
-
export { PreventableEvent };
|
|
46
|
-
// tslint:enable:max-line-length
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when the map is reset.
|
|
19
|
-
*
|
|
20
|
-
* This typically occurs on initial load and after a zoom/center change.
|
|
21
|
-
*/
|
|
22
|
-
var ResetEvent = /** @class */ (function (_super) {
|
|
23
|
-
__extends(ResetEvent, _super);
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
function ResetEvent(_, target) {
|
|
28
|
-
return _super.call(this, target) || this;
|
|
29
|
-
}
|
|
30
|
-
return ResetEvent;
|
|
31
|
-
}(BaseEvent));
|
|
32
|
-
export { ResetEvent };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MapLayer, MapShapeClickEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Element } from '@progress/kendo-drawing';
|
|
3
|
-
import { Map } from '../Map';
|
|
4
|
-
import { BaseEvent } from './base-event';
|
|
5
|
-
/**
|
|
6
|
-
* Fired when a shape is clicked or tapped.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ShapeClickEvent extends BaseEvent implements MapShapeClickEvent {
|
|
9
|
-
/**
|
|
10
|
-
* The shape layer instance.
|
|
11
|
-
*/
|
|
12
|
-
layer: MapLayer;
|
|
13
|
-
/**
|
|
14
|
-
* The shape instance.
|
|
15
|
-
*/
|
|
16
|
-
shape: Element;
|
|
17
|
-
/**
|
|
18
|
-
* The source DOM event instance
|
|
19
|
-
*/
|
|
20
|
-
originalEvent: any;
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
constructor(e: MapShapeClickEvent, target: Map);
|
|
25
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when a shape is clicked or tapped.
|
|
19
|
-
*/
|
|
20
|
-
var ShapeClickEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ShapeClickEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function ShapeClickEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.layer = e.layer;
|
|
28
|
-
_this.shape = e.shape;
|
|
29
|
-
_this.originalEvent = e.originalEvent;
|
|
30
|
-
return _this;
|
|
31
|
-
}
|
|
32
|
-
return ShapeClickEvent;
|
|
33
|
-
}(BaseEvent));
|
|
34
|
-
export { ShapeClickEvent };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { MapLayer, MapShapeCreatedEvent, Location } from '@progress/kendo-charts';
|
|
2
|
-
import { Element } from '@progress/kendo-drawing';
|
|
3
|
-
import { Map } from '../Map';
|
|
4
|
-
import { BaseEvent } from './base-event';
|
|
5
|
-
/**
|
|
6
|
-
* Fired when a shape is created, but is not rendered yet.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ShapeCreatedEvent extends BaseEvent implements MapShapeCreatedEvent {
|
|
9
|
-
/**
|
|
10
|
-
* The shape layer instance.
|
|
11
|
-
*/
|
|
12
|
-
layer: MapLayer;
|
|
13
|
-
/**
|
|
14
|
-
* The shape instance.
|
|
15
|
-
*/
|
|
16
|
-
shape: Element;
|
|
17
|
-
/**
|
|
18
|
-
* The original data item for this Shape.
|
|
19
|
-
*/
|
|
20
|
-
dataItem: any;
|
|
21
|
-
/**
|
|
22
|
-
* The shape location
|
|
23
|
-
*/
|
|
24
|
-
location: Location;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
constructor(e: any, target: Map);
|
|
29
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when a shape is created, but is not rendered yet.
|
|
19
|
-
*/
|
|
20
|
-
var ShapeCreatedEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ShapeCreatedEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function ShapeCreatedEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.layer = e.layer;
|
|
28
|
-
_this.shape = e.shape;
|
|
29
|
-
_this.location = null;
|
|
30
|
-
if (e.shape) {
|
|
31
|
-
_this.dataItem = e.shape.dataItem;
|
|
32
|
-
_this.location = e.shape.location;
|
|
33
|
-
}
|
|
34
|
-
return _this;
|
|
35
|
-
}
|
|
36
|
-
return ShapeCreatedEvent;
|
|
37
|
-
}(BaseEvent));
|
|
38
|
-
export { ShapeCreatedEvent };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
19
|
-
*/
|
|
20
|
-
var ShapeFeatureCreatedEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ShapeFeatureCreatedEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function ShapeFeatureCreatedEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.dataItem = e.dataItem;
|
|
28
|
-
_this.layer = e.layer;
|
|
29
|
-
_this.group = e.group;
|
|
30
|
-
_this.properties = e.properties;
|
|
31
|
-
return _this;
|
|
32
|
-
}
|
|
33
|
-
return ShapeFeatureCreatedEvent;
|
|
34
|
-
}(BaseEvent));
|
|
35
|
-
export { ShapeFeatureCreatedEvent };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when the mouse enters a shape.
|
|
19
|
-
*
|
|
20
|
-
* > This event will fire reliably only for shapes that have set fill color.
|
|
21
|
-
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
22
|
-
*/
|
|
23
|
-
var ShapeMouseEnterEvent = /** @class */ (function (_super) {
|
|
24
|
-
__extends(ShapeMouseEnterEvent, _super);
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
function ShapeMouseEnterEvent(e, target) {
|
|
29
|
-
var _this = _super.call(this, target) || this;
|
|
30
|
-
_this.layer = e.layer;
|
|
31
|
-
_this.shape = e.shape;
|
|
32
|
-
_this.originalEvent = e.originalEvent;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
return ShapeMouseEnterEvent;
|
|
36
|
-
}(BaseEvent));
|
|
37
|
-
export { ShapeMouseEnterEvent };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { MapLayer, MapShapeMouseLeaveEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Element } from '@progress/kendo-drawing';
|
|
3
|
-
import { Map } from '../Map';
|
|
4
|
-
import { BaseEvent } from './base-event';
|
|
5
|
-
/**
|
|
6
|
-
* Fired when the mouse leaves a shape.
|
|
7
|
-
*
|
|
8
|
-
* > This event will fire reliably only for shapes that have set fill color.
|
|
9
|
-
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ShapeMouseLeaveEvent extends BaseEvent implements MapShapeMouseLeaveEvent {
|
|
12
|
-
/**
|
|
13
|
-
* The shape layer instance.
|
|
14
|
-
*/
|
|
15
|
-
layer: MapLayer;
|
|
16
|
-
/**
|
|
17
|
-
* The shape instance.
|
|
18
|
-
*/
|
|
19
|
-
shape: Element;
|
|
20
|
-
/**
|
|
21
|
-
* The source DOM event instance
|
|
22
|
-
*/
|
|
23
|
-
originalEvent: any;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
constructor(e: MapShapeMouseLeaveEvent, target: Map);
|
|
28
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when the mouse leaves a shape.
|
|
19
|
-
*
|
|
20
|
-
* > This event will fire reliably only for shapes that have set fill color.
|
|
21
|
-
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
22
|
-
*/
|
|
23
|
-
var ShapeMouseLeaveEvent = /** @class */ (function (_super) {
|
|
24
|
-
__extends(ShapeMouseLeaveEvent, _super);
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
function ShapeMouseLeaveEvent(e, target) {
|
|
29
|
-
var _this = _super.call(this, target) || this;
|
|
30
|
-
_this.layer = e.layer;
|
|
31
|
-
_this.shape = e.shape;
|
|
32
|
-
_this.originalEvent = e.originalEvent;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
return ShapeMouseLeaveEvent;
|
|
36
|
-
}(BaseEvent));
|
|
37
|
-
export { ShapeMouseLeaveEvent };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { BaseEvent } from './base-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when the map zoom level has changed.
|
|
19
|
-
*/
|
|
20
|
-
var ZoomEndEvent = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ZoomEndEvent, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
function ZoomEndEvent(e, target) {
|
|
26
|
-
var _this = _super.call(this, target) || this;
|
|
27
|
-
_this.originalEvent = e.originalEvent;
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
return ZoomEndEvent;
|
|
31
|
-
}(BaseEvent));
|
|
32
|
-
export { ZoomEndEvent };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MapZoomStartEvent } from '@progress/kendo-charts';
|
|
2
|
-
import { Map } from '../Map';
|
|
3
|
-
import { PreventableEvent } from './preventable-event';
|
|
4
|
-
/**
|
|
5
|
-
* Fired when the map zoom level is about to change.
|
|
6
|
-
*
|
|
7
|
-
* Cancelling the event will prevent the user action.
|
|
8
|
-
*/
|
|
9
|
-
export declare class ZoomStartEvent extends PreventableEvent implements MapZoomStartEvent {
|
|
10
|
-
/**
|
|
11
|
-
* The source DOM event instance
|
|
12
|
-
*/
|
|
13
|
-
originalEvent: any;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
constructor(e: MapZoomStartEvent, target: Map);
|
|
18
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { PreventableEvent } from './preventable-event';
|
|
17
|
-
/**
|
|
18
|
-
* Fired when the map zoom level is about to change.
|
|
19
|
-
*
|
|
20
|
-
* Cancelling the event will prevent the user action.
|
|
21
|
-
*/
|
|
22
|
-
var ZoomStartEvent = /** @class */ (function (_super) {
|
|
23
|
-
__extends(ZoomStartEvent, _super);
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
function ZoomStartEvent(e, target) {
|
|
28
|
-
var _this = _super.call(this, target) || this;
|
|
29
|
-
_this.originalEvent = e.originalEvent;
|
|
30
|
-
return _this;
|
|
31
|
-
}
|
|
32
|
-
return ZoomStartEvent;
|
|
33
|
-
}(PreventableEvent));
|
|
34
|
-
export { ZoomStartEvent };
|
package/dist/es/main.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import CollectionConfigurationComponent from './components/base/CollectionConfigurationComponent';
|
|
2
|
-
import ConfigurationComponent from './components/base/ConfigurationComponent';
|
|
3
|
-
export { CollectionConfigurationComponent, ConfigurationComponent };
|
|
4
|
-
export { Map } from './Map';
|
|
5
|
-
export { MapProps } from './MapProps';
|
|
6
|
-
export * from './components/main';
|
|
7
|
-
export * from './common/map-types';
|
|
8
|
-
export * from './common/events';
|
|
9
|
-
export * from './tooltip/main';
|
package/dist/es/main.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import CollectionConfigurationComponent from './components/base/CollectionConfigurationComponent';
|
|
2
|
-
import ConfigurationComponent from './components/base/ConfigurationComponent';
|
|
3
|
-
export { CollectionConfigurationComponent, ConfigurationComponent };
|
|
4
|
-
export { Map } from './Map';
|
|
5
|
-
export * from './components/main';
|
|
6
|
-
export * from './common/map-types';
|
|
7
|
-
export * from './common/events';
|
|
8
|
-
export * from './tooltip/main';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export var packageMetadata = {
|
|
5
|
-
name: '@progress/kendo-react-map',
|
|
6
|
-
productName: 'KendoReact',
|
|
7
|
-
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate: 1700064852,
|
|
9
|
-
version: '',
|
|
10
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StoreAction } from './store';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
declare const optionsReducer: (currentState: any, action: StoreAction) => object;
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
declare const observersReducer: (currentState: any, action: StoreAction) => any;
|
|
10
|
-
export { optionsReducer, observersReducer };
|
package/dist/es/store/reducer.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var optionsReducer = function (currentState, action) {
|
|
14
|
-
if (action.mapCollectionIdxKey) {
|
|
15
|
-
return reducers.collectionConfigurationItem(currentState, action);
|
|
16
|
-
}
|
|
17
|
-
else if (action.mapKey) {
|
|
18
|
-
return reducers.configurationItem(currentState, action);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
var observersReducer = function (currentState, action) {
|
|
28
|
-
if (action.type) {
|
|
29
|
-
switch (action.type) {
|
|
30
|
-
case 'add':
|
|
31
|
-
return __spreadArray(__spreadArray([], currentState, true), [action.payload], false);
|
|
32
|
-
case 'remove':
|
|
33
|
-
return currentState.filter(function (element) { return element !== action.payload; });
|
|
34
|
-
default:
|
|
35
|
-
return currentState;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
var reducers = {
|
|
46
|
-
configurationItem: function (currentState, action) {
|
|
47
|
-
var _a;
|
|
48
|
-
return Object.assign(currentState, (_a = {},
|
|
49
|
-
_a[action.mapKey] = action.payload,
|
|
50
|
-
_a));
|
|
51
|
-
},
|
|
52
|
-
collectionConfigurationItem: function (currentState, action) {
|
|
53
|
-
var _a;
|
|
54
|
-
var inCollection = false;
|
|
55
|
-
var _b = action.mapCollectionIdxKey.split('_'), collectionName = _b[0], collectionIdx = _b[1];
|
|
56
|
-
var collection = currentState[collectionName].map(function (item, index) {
|
|
57
|
-
if (parseInt(collectionIdx, 10) === index) {
|
|
58
|
-
inCollection = true;
|
|
59
|
-
return action.payload;
|
|
60
|
-
}
|
|
61
|
-
return item;
|
|
62
|
-
});
|
|
63
|
-
if (inCollection === false) {
|
|
64
|
-
collection.splice(parseInt(collectionIdx, 10), 0, action.payload);
|
|
65
|
-
}
|
|
66
|
-
return Object.assign(currentState, (_a = {},
|
|
67
|
-
_a[collectionName] = collection,
|
|
68
|
-
_a));
|
|
69
|
-
},
|
|
70
|
-
themeItem: function (currentState, action) {
|
|
71
|
-
var store = {};
|
|
72
|
-
var nextStore = Object.assign(store, currentState);
|
|
73
|
-
var _a = action.payload, field = _a.field, value = _a.value;
|
|
74
|
-
var parts = field.split('.');
|
|
75
|
-
var key = parts.shift();
|
|
76
|
-
while (parts.length > 0) {
|
|
77
|
-
store = store[key] = store[key] || {};
|
|
78
|
-
key = parts.shift();
|
|
79
|
-
}
|
|
80
|
-
store[key] = value;
|
|
81
|
-
return nextStore;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
export { optionsReducer, observersReducer };
|
package/dist/es/store/store.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export interface StoreAction {
|
|
5
|
-
mapKey?: string;
|
|
6
|
-
mapCollectionIdxKey?: string;
|
|
7
|
-
type?: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export interface Store {
|
|
14
|
-
getState(): any;
|
|
15
|
-
dispatch(action: StoreAction | object): void;
|
|
16
|
-
subscribe(f: Function): Function;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
declare const createStore: (reducer: any) => Store;
|
|
22
|
-
export default createStore;
|