pollination-react-io 1.103.0 → 1.104.0
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/build/EpwMap/EpwMap.d.ts +6 -0
- package/build/EpwMap/EpwMap.types.d.ts +29 -0
- package/build/EpwMap/LeafletControls.d.ts +22 -0
- package/build/EpwMap/LeafletCustomPopup.d.ts +8 -0
- package/build/EpwMap/utils.d.ts +2 -0
- package/build/index.esm.js +1 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -3
- package/build/index.js.map +1 -1
- package/package.json +6 -1
@@ -0,0 +1,29 @@
|
|
1
|
+
import { CSSProperties } from 'react';
|
2
|
+
export interface WeatherInfo {
|
3
|
+
id: string;
|
4
|
+
station: string;
|
5
|
+
source: string;
|
6
|
+
lat: number;
|
7
|
+
lon: number;
|
8
|
+
link: string;
|
9
|
+
host: string;
|
10
|
+
color: string;
|
11
|
+
}
|
12
|
+
export interface StaticImageStyle {
|
13
|
+
url: string;
|
14
|
+
attribution: string;
|
15
|
+
maxZoom?: number;
|
16
|
+
minZoom?: number;
|
17
|
+
accessToken?: string;
|
18
|
+
subdomains?: string;
|
19
|
+
ext?: string;
|
20
|
+
}
|
21
|
+
export declare type EpwMapProps = {
|
22
|
+
staticImageStyle?: StaticImageStyle;
|
23
|
+
style?: CSSProperties;
|
24
|
+
widgetStyle?: CSSProperties;
|
25
|
+
showLegend?: boolean;
|
26
|
+
latitude?: number;
|
27
|
+
longitude?: number;
|
28
|
+
onCopy?: (feature: any) => any;
|
29
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import 'leaflet-control-geocoder/dist/Control.Geocoder.css';
|
3
|
+
import 'leaflet-control-geocoder/dist/Control.Geocoder.js';
|
4
|
+
/**
|
5
|
+
* Search widget
|
6
|
+
*/
|
7
|
+
export declare const LeafletControlGeocoder: ({}: {}) => any;
|
8
|
+
/**
|
9
|
+
* Points layer with popup widget
|
10
|
+
* it uses a performance issue workaround
|
11
|
+
*/
|
12
|
+
export declare const LeafletMultiplePoints: ({ data, onCopy }: {
|
13
|
+
data: any;
|
14
|
+
onCopy: any;
|
15
|
+
}) => JSX.Element;
|
16
|
+
/**
|
17
|
+
* Location center widget
|
18
|
+
*/
|
19
|
+
export declare const LocationTracker: ({ center, widgetStyle }: {
|
20
|
+
center: any;
|
21
|
+
widgetStyle: any;
|
22
|
+
}) => JSX.Element;
|
package/build/index.esm.js
CHANGED
@@ -57050,9 +57050,7 @@ var RunCard = function (_a) {
|
|
57050
57050
|
seeAction && width && React__default.createElement(React__default.Fragment, null,
|
57051
57051
|
React__default.createElement("div", { className: 'item7', style: { display: 'flex' } },
|
57052
57052
|
!localRun && (React__default.createElement(React__default.Fragment, null,
|
57053
|
-
React__default.createElement(Button, { style: { marginRight: '0.75rem' },
|
57054
|
-
// disabled={!run || [RunStatusEnum.Failed, RunStatusEnum.Succeeded, RunStatusEnum.Cancelled, RunStatusEnum.Unknown].includes(run.status.status)}
|
57055
|
-
onClick: function (e) {
|
57053
|
+
React__default.createElement(Button, { style: { marginRight: '0.75rem' }, disabled: !run || [dist$1.RunStatusEnum.Failed, dist$1.RunStatusEnum.Succeeded, dist$1.RunStatusEnum.Cancelled, dist$1.RunStatusEnum.Unknown].includes(run.status.status), onClick: function (e) {
|
57056
57054
|
e.stopPropagation();
|
57057
57055
|
if (!run)
|
57058
57056
|
return;
|