@opengeoweb/cap 9.8.0 → 9.10.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/index.esm.js
CHANGED
|
@@ -11,7 +11,6 @@ import { ConfigurableMapConnect } from '@opengeoweb/core';
|
|
|
11
11
|
import { mapSelectors, coreModuleConfig } from '@opengeoweb/store';
|
|
12
12
|
import { webmapUtils } from '@opengeoweb/webmap';
|
|
13
13
|
import { MapViewLayer, MapWarningProperties } from '@opengeoweb/webmap-react';
|
|
14
|
-
import { fromUnixTime } from 'date-fns';
|
|
15
14
|
import { ThemeWrapper } from '@opengeoweb/theme';
|
|
16
15
|
|
|
17
16
|
/* *
|
|
@@ -762,7 +761,7 @@ const MapViewCapConnect = ({
|
|
|
762
761
|
setFeaturesByAlert(nextState);
|
|
763
762
|
};
|
|
764
763
|
const selectedTime = useSelector(store => mapSelectors.getSelectedTime(store, mapIdRef.current));
|
|
765
|
-
const alertIdsInEffect = useSelector(store => getAlertsInEffect(store,
|
|
764
|
+
const alertIdsInEffect = useSelector(store => getAlertsInEffect(store, dateUtils.fromUnix(selectedTime).toISOString())).map(({
|
|
766
765
|
identifier
|
|
767
766
|
}) => identifier);
|
|
768
767
|
const featuresInEffect = Object.keys(featuresByAlert).filter(id => alertIdsInEffect.includes(id)).flatMap(id => featuresByAlert[id]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/cap",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.10.0",
|
|
4
4
|
"description": "GeoWeb Common Alerting Protocol (CAP) library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,13 +13,12 @@
|
|
|
13
13
|
"@opengeoweb/api": "*",
|
|
14
14
|
"@opengeoweb/core": "*",
|
|
15
15
|
"frappe-gantt": "^0.6.1",
|
|
16
|
-
"@mui/material": "5.
|
|
16
|
+
"@mui/material": "~5.15.11",
|
|
17
17
|
"@opengeoweb/shared": "*",
|
|
18
18
|
"@opengeoweb/store": "*",
|
|
19
19
|
"react-redux": "^8.1.3",
|
|
20
20
|
"@opengeoweb/webmap": "*",
|
|
21
21
|
"@opengeoweb/webmap-react": "*",
|
|
22
|
-
"date-fns": "^3.3.0",
|
|
23
22
|
"@mui/system": "^5.15.1",
|
|
24
23
|
"react-i18next": "^13.5.0",
|
|
25
24
|
"@reduxjs/toolkit": "^1.9.7",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Gantt from 'frappe-gantt';
|
|
2
2
|
import { Task } from './Task';
|
|
3
3
|
import { ViewMode } from './ViewMode';
|
|
4
|
-
|
|
4
|
+
interface Options {
|
|
5
5
|
view_mode?: ViewMode;
|
|
6
6
|
header_height?: number;
|
|
7
7
|
column_width?: number;
|
|
@@ -19,7 +19,7 @@ type Options = {
|
|
|
19
19
|
on_progress_change?: (task: Task, progress: number) => void;
|
|
20
20
|
on_date_change?: (task: Task, start: Date, end: Date) => void;
|
|
21
21
|
view_modes?: string[];
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
export default class CustomGantt extends Gantt {
|
|
24
24
|
private options;
|
|
25
25
|
private gantt_start;
|
|
@@ -3,7 +3,7 @@ import { Task } from './Task';
|
|
|
3
3
|
import { ViewMode } from './ViewMode';
|
|
4
4
|
export declare const renderDate: (date: Date) => string;
|
|
5
5
|
export declare const renderTime: (date: Date) => string;
|
|
6
|
-
|
|
6
|
+
interface GanttReactWrapperProps {
|
|
7
7
|
tasks: Task[];
|
|
8
8
|
viewMode?: ViewMode;
|
|
9
9
|
onTasksChange?: (tasks: Task[]) => void;
|
|
@@ -11,11 +11,11 @@ type GanttReactWrapperProps = {
|
|
|
11
11
|
onDateChange?: (task: Task, start: Date, end: Date) => void;
|
|
12
12
|
onProgressChange?: (task: Task, progress: number) => void;
|
|
13
13
|
onViewChange?: (mode: ViewMode) => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
}
|
|
15
|
+
interface FrappeGanttState {
|
|
16
16
|
viewMode: ViewMode;
|
|
17
17
|
tasks: Task[];
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
19
|
export declare class GanttReactWrapper extends React.Component<GanttReactWrapperProps, FrappeGanttState> {
|
|
20
20
|
private _target;
|
|
21
21
|
private _svg;
|
package/src/lib/utils/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateApiProps } from '@opengeoweb/api';
|
|
2
2
|
import { CapFeatures, CapPresets, CapWarnings, FeedLastUpdated } from '../components/types';
|
|
3
|
-
export
|
|
3
|
+
export interface CapApi {
|
|
4
4
|
getCapConfiguration?: (productConfigKey: string) => Promise<{
|
|
5
5
|
data: CapPresets;
|
|
6
6
|
}>;
|
|
@@ -16,5 +16,5 @@ export type CapApi = {
|
|
|
16
16
|
getLastUpdated?: (thirdPartyApiUrl: string) => Promise<{
|
|
17
17
|
data: FeedLastUpdated;
|
|
18
18
|
}>;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
export declare const createApi: (props: CreateApiProps) => CapApi;
|