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.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import 'leaflet/dist/leaflet.css';
3
+ import { EpwMapProps } from './EpwMap.types';
4
+ import './EpwMap.scss';
5
+ export declare const EpwMap: React.FC<EpwMapProps>;
6
+ export default EpwMap;
@@ -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;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const LeafletCustomPopup: ({ children, coordinates, map, onClose }: {
3
+ children: any;
4
+ coordinates: any;
5
+ map: any;
6
+ onClose: any;
7
+ }) => JSX.Element;
8
+ export default LeafletCustomPopup;
@@ -0,0 +1,2 @@
1
+ export declare const sources: string[][];
2
+ export declare const parseCSV: (fnc: any) => void;
@@ -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;