@opengeoweb/cap 14.4.0 → 14.5.1
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 +820 -482
- package/package.json +9 -9
- package/src/lib/CapDemo.stories.d.ts +1 -2
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +2 -2
- package/src/lib/components/GanttChart/Gantt.d.ts +1 -1
- package/src/lib/components/GanttChart/GanttModule.d.ts +1 -1
- package/src/lib/components/GanttChart/GanttWrapper.d.ts +1 -1
- package/src/lib/components/GanttChart/mockTasks.d.ts +1 -1
- package/src/lib/components/GanttChart/utils.d.ts +2 -2
- package/src/lib/components/MapViewCap/MapViewCapConnect.d.ts +2 -2
- package/src/lib/components/MapViewCap/MapViewCapConnectWrapper.d.ts +1 -1
- package/src/lib/components/Providers/Providers.d.ts +5 -5
- package/src/lib/components/WarningListCap/WarningListCap.d.ts +2 -2
- package/src/lib/components/WarningListCap/WarningListCapConnect.d.ts +1 -1
- package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCapConnect.d.ts +2 -2
- package/src/lib/store/store.d.ts +3 -2
- package/src/lib/store/types.d.ts +1 -1
- package/src/lib/utils/addColors.d.ts +1 -1
- package/src/lib/utils/addFeedAddressToCustomGeoJsonFeature.d.ts +1 -1
- package/src/lib/utils/cap-api/api.d.ts +1 -1
- package/src/lib/utils/cap-api/hooks.d.ts +3 -3
- package/src/lib/utils/findEventIndexInLanguage.d.ts +1 -1
- package/src/lib/utils/highlightGeoJson.d.ts +2 -2
- package/src/lib/utils/i18n.d.ts +1 -1
- package/src/lib/utils/mockAlert.d.ts +1 -1
- package/src/lib/utils/mockCapData.d.ts +1 -1
- package/src/lib/utils/mockGeoJson.d.ts +1 -1
- package/src/lib/utils/mockGeoJsonMultipleFeatures.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/cap",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.1",
|
|
4
4
|
"description": "GeoWeb Common Alerting Protocol (CAP) library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,20 +8,20 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/api": "14.
|
|
12
|
-
"@opengeoweb/core": "14.
|
|
11
|
+
"@opengeoweb/api": "14.5.1",
|
|
12
|
+
"@opengeoweb/core": "14.5.1",
|
|
13
13
|
"frappe-gantt": "^0.6.1",
|
|
14
|
-
"@opengeoweb/shared": "14.
|
|
15
|
-
"@opengeoweb/store": "14.
|
|
14
|
+
"@opengeoweb/shared": "14.5.1",
|
|
15
|
+
"@opengeoweb/store": "14.5.1",
|
|
16
16
|
"react-redux": "^9.2.0",
|
|
17
|
-
"@opengeoweb/webmap": "14.
|
|
18
|
-
"@opengeoweb/webmap-react": "14.
|
|
17
|
+
"@opengeoweb/webmap": "14.5.1",
|
|
18
|
+
"@opengeoweb/webmap-react": "14.5.1",
|
|
19
19
|
"@mui/system": "^7.3.2",
|
|
20
20
|
"react-i18next": "^15.1.1",
|
|
21
21
|
"@reduxjs/toolkit": "^2.6.1",
|
|
22
|
-
"@opengeoweb/theme": "14.
|
|
22
|
+
"@opengeoweb/theme": "14.5.1",
|
|
23
23
|
"i18next": "^25.0.1",
|
|
24
|
-
"@opengeoweb/time-slider": "14.
|
|
24
|
+
"@opengeoweb/time-slider": "14.5.1",
|
|
25
25
|
"@mui/material": "^7.0.1",
|
|
26
26
|
"ol": "^10.4.0",
|
|
27
27
|
"@tanstack/react-query": "^5.85.5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InitialMapProps } from '@opengeoweb/core';
|
|
3
|
-
import { CapFeatures } from '../types';
|
|
2
|
+
import type { InitialMapProps } from '@opengeoweb/core';
|
|
3
|
+
import type { CapFeatures } from '../types';
|
|
4
4
|
export type SupportedComponentTypes = 'CapWarningList' | 'CapWarningMap';
|
|
5
5
|
interface InitialProps {
|
|
6
6
|
mapPreset: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Task } from './Task';
|
|
1
|
+
import type { Task } from './Task';
|
|
2
2
|
export declare const tasks: Task[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomFeature } from '../types';
|
|
2
|
-
import { Task } from './Task';
|
|
1
|
+
import type { CustomFeature } from '../types';
|
|
2
|
+
import type { Task } from './Task';
|
|
3
3
|
export declare const convertSeverityToColorClass: (severity: Task["severity"]) => string;
|
|
4
4
|
export declare const getEndDateFromHeadline: (headline: string) => Date;
|
|
5
5
|
export declare const convertFeaturesToTasks: (features: CustomFeature[]) => Task[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InitialMapProps } from '@opengeoweb/core';
|
|
3
|
-
import { CapPresets } from '../types';
|
|
2
|
+
import type { InitialMapProps } from '@opengeoweb/core';
|
|
3
|
+
import type { CapPresets } from '../types';
|
|
4
4
|
export interface MapViewCapConnectProps {
|
|
5
5
|
id?: string;
|
|
6
6
|
title?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Store } from '@reduxjs/toolkit';
|
|
3
|
-
import { ThemeProviderProps } from '@opengeoweb/theme';
|
|
4
|
-
import { Theme } from '@mui/material';
|
|
5
|
-
import i18n from 'i18next';
|
|
1
|
+
import type { Theme } from '@mui/material';
|
|
2
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
6
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
|
+
import type i18n from 'i18next';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { ThemeProviderProps } from '@opengeoweb/theme';
|
|
7
7
|
export declare const CapThemeWrapper: React.FC<ThemeProviderProps>;
|
|
8
8
|
interface CapQueryClientProviderProps {
|
|
9
9
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CapPresets } from '../types';
|
|
3
|
-
import { CapAlert } from '../../store/types';
|
|
2
|
+
import type { CapPresets } from '../types';
|
|
3
|
+
import type { CapAlert } from '../../store/types';
|
|
4
4
|
interface WarningListCapProps {
|
|
5
5
|
capWarningPresets: CapPresets;
|
|
6
6
|
alerts: CapAlert[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CapAlert } from '../../../store/types';
|
|
3
|
-
import { CapPresets } from '../../types';
|
|
2
|
+
import type { CapAlert } from '../../../store/types';
|
|
3
|
+
import type { CapPresets } from '../../types';
|
|
4
4
|
interface WarningListRowCapConnectProps {
|
|
5
5
|
alert: CapAlert;
|
|
6
6
|
capWarningPresets: CapPresets;
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { Store } from '@reduxjs/toolkit';
|
|
2
|
-
|
|
1
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import type { CoreAppStore } from '@opengeoweb/store';
|
|
3
|
+
export declare const createMockStore: (mockState?: CoreAppStore) => Store;
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CustomFeature } from '../components/types';
|
|
1
|
+
import type { CustomFeature } from '../components/types';
|
|
2
2
|
export declare const addColors: (features: CustomFeature[]) => CustomFeature[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CustomFeature } from '../components/types';
|
|
1
|
+
import type { CustomFeature } from '../components/types';
|
|
2
2
|
export declare const addFeedAddressToCustomGeoJSonFeature: (feedAddress: string, features: CustomFeature[]) => CustomFeature[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { CapAlertAndFeatures } from './api';
|
|
3
|
+
import type { CapPresets } from '../../components/types';
|
|
4
4
|
interface CombinePendingResult<T> {
|
|
5
5
|
results: T;
|
|
6
6
|
pending: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FeatureEvent } from '@opengeoweb/webmap-react';
|
|
2
|
-
import { CustomFeature } from '../components/types';
|
|
1
|
+
import type { FeatureEvent } from '@opengeoweb/webmap-react';
|
|
2
|
+
import type { CustomFeature } from '../components/types';
|
|
3
3
|
export declare const highlightGeoJson: (currentFeatures: Record<string, CustomFeature[]>, featureResults?: FeatureEvent) => Record<string, CustomFeature[]>;
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
|
-
import { UseTranslationResponse } from 'react-i18next';
|
|
2
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const CAP_NAMESPACE = "cap";
|
|
4
4
|
export declare const initCapI18n: () => typeof i18n;
|
|
5
5
|
export declare const useCapTranslation: () => UseTranslationResponse<typeof CAP_NAMESPACE, typeof i18n>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CapAlert } from '../components/types';
|
|
1
|
+
import type { CapAlert } from '../components/types';
|
|
2
2
|
export declare const mockAlert: CapAlert;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CapFeatures } from '../components/types';
|
|
1
|
+
import type { CapFeatures } from '../components/types';
|
|
2
2
|
export declare const mockGeoJson: CapFeatures;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CapFeatures, CustomFeature } from '../components/types';
|
|
1
|
+
import type { CapFeatures, CustomFeature } from '../components/types';
|
|
2
2
|
export declare const mockGeoJsonMultipleFeatures: CapFeatures;
|
|
3
3
|
export declare const mockGeoJsonMultipleFeaturesById: Record<string, CustomFeature[]>;
|