@opengeoweb/warnings 14.3.0 → 14.5.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.
Files changed (92) hide show
  1. package/index.esm.js +7719 -6955
  2. package/package.json +12 -12
  3. package/src/index.d.ts +1 -1
  4. package/src/lib/Warnings.stories.d.ts +1 -10
  5. package/src/lib/api/api-utils.d.ts +1 -1
  6. package/src/lib/api/aviation-api/api.d.ts +3 -3
  7. package/src/lib/api/aviation-api/hooks.d.ts +1 -1
  8. package/src/lib/api/aviation-api/queryOptions.d.ts +2 -2
  9. package/src/lib/api/warning-api/api.d.ts +5 -5
  10. package/src/lib/api/warning-api/hooks.d.ts +6 -5
  11. package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +1 -1
  12. package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +6 -6
  13. package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +5 -4
  14. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +4 -4
  15. package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +3 -3
  16. package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +3 -3
  17. package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +2 -2
  18. package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +3 -3
  19. package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +4 -4
  20. package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +1 -1
  21. package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +3 -3
  22. package/src/lib/components/FilterList/ExpandableFilterChip.stories.d.ts +4 -3
  23. package/src/lib/components/FilterList/filter-styles.d.ts +1 -1
  24. package/src/lib/components/MaritimeWarningsForm/AreaList/AreaList.d.ts +1 -1
  25. package/src/lib/components/MaritimeWarningsForm/AssignedAreas/AssignedAreas.d.ts +1 -1
  26. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsAvatar.d.ts +2 -2
  27. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.d.ts +3 -3
  28. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.stories.d.ts +1 -1
  29. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.d.ts +1 -1
  30. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.stories.d.ts +2 -2
  31. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningList.d.ts +1 -1
  32. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListItem.spec.d.ts +1 -0
  33. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.d.ts +4 -4
  34. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.spec.d.ts +1 -0
  35. package/src/lib/components/MaritimeWarningsForm/WarningList/WindForceSelect.spec.d.ts +1 -0
  36. package/src/lib/components/MaritimeWarningsForm/testUtils.d.ts +1 -1
  37. package/src/lib/components/MaritimeWarningsForm/useConfirmDeleteDialog.d.ts +2 -2
  38. package/src/lib/components/MaritimeWarningsForm/useFilterChipSelect.d.ts +1 -1
  39. package/src/lib/components/MaritimeWarningsForm/useMaritimeWarningsFormState.d.ts +1 -1
  40. package/src/lib/components/MaritimeWarningsForm/utils.d.ts +4 -4
  41. package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +1 -1
  42. package/src/lib/components/ObjectManager/ObjectManager.d.ts +4 -4
  43. package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +1 -1
  44. package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +1 -1
  45. package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +1 -1
  46. package/src/lib/components/ObjectManager/Objects.d.ts +2 -2
  47. package/src/lib/components/Providers/Providers.d.ts +3 -3
  48. package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +1 -1
  49. package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +1 -1
  50. package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.stories.d.ts +1 -1
  51. package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +2 -0
  52. package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +4 -0
  53. package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +0 -1
  54. package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +1 -1
  55. package/src/lib/components/PublicWarningList/WarningListHeaderContent.d.ts +1 -1
  56. package/src/lib/components/PublicWarningList/WarningListItem.d.ts +3 -3
  57. package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +4 -3
  58. package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +2 -2
  59. package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +3 -3
  60. package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +2 -2
  61. package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +1 -1
  62. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +10 -9
  63. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +4 -4
  64. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +1 -1
  65. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +9 -1
  66. package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +2 -2
  67. package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +2 -2
  68. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +5 -5
  69. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +4 -3
  70. package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +2 -2
  71. package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +3 -3
  72. package/src/lib/store/publicWarningForm/listener.d.ts +1 -1
  73. package/src/lib/store/publicWarningForm/reducer.d.ts +6 -4
  74. package/src/lib/store/publicWarningForm/selectors.d.ts +2 -2
  75. package/src/lib/store/publicWarningForm/types.d.ts +1 -1
  76. package/src/lib/store/publicWarnings/listener.d.ts +1 -1
  77. package/src/lib/store/publicWarnings/reducer.d.ts +4 -4
  78. package/src/lib/store/publicWarnings/selectors.d.ts +3 -3
  79. package/src/lib/store/publicWarnings/types.d.ts +3 -3
  80. package/src/lib/store/store.d.ts +4 -4
  81. package/src/lib/store/types.d.ts +4 -4
  82. package/src/lib/store/warningsDrawings/reducer.d.ts +2 -2
  83. package/src/lib/store/warningsDrawings/selectors.d.ts +2 -2
  84. package/src/lib/store/warningsDrawings/types.d.ts +1 -1
  85. package/src/lib/storybookUtils/defaultStorySettings.d.ts +1 -1
  86. package/src/lib/storybookUtils/storyComponents.d.ts +0 -2
  87. package/src/lib/storybookUtils/testUtils.d.ts +2 -2
  88. package/src/lib/utils/fakeApi/index.d.ts +3 -3
  89. package/src/lib/utils/fakeSigmetAirmet.d.ts +1 -1
  90. package/src/lib/utils/i18n.d.ts +1 -1
  91. package/src/lib/utils/sig-airmet-util.d.ts +5 -3
  92. package/src/lib/utils/warningUtils.d.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/warnings",
3
- "version": "14.3.0",
3
+ "version": "14.5.0",
4
4
  "description": "GeoWeb warinings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,25 +8,25 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "14.3.0",
12
- "@opengeoweb/shared": "14.3.0",
13
- "@opengeoweb/store": "14.3.0",
14
- "@opengeoweb/webmap-react": "14.3.0",
11
+ "@opengeoweb/api": "14.5.0",
12
+ "@opengeoweb/shared": "14.5.0",
13
+ "@opengeoweb/store": "14.5.0",
14
+ "@opengeoweb/webmap-react": "14.5.0",
15
15
  "@tanstack/react-query": "^5.85.5",
16
16
  "react-redux": "^9.2.0",
17
- "@opengeoweb/theme": "14.3.0",
18
- "@opengeoweb/form-fields": "14.3.0",
17
+ "@opengeoweb/theme": "14.5.0",
18
+ "@opengeoweb/form-fields": "14.5.0",
19
19
  "react-hook-form": "^7.50.1",
20
20
  "lodash": "^4.17.21",
21
21
  "@reduxjs/toolkit": "^2.6.1",
22
- "@opengeoweb/snackbar": "14.3.0",
22
+ "@opengeoweb/snackbar": "14.5.0",
23
23
  "react-window": "^1.8.10",
24
24
  "react-virtualized-auto-sizer": "^1.0.20",
25
25
  "axios": "^1.7.7",
26
- "@opengeoweb/core": "14.3.0",
27
- "@opengeoweb/webmap": "14.3.0",
28
- "@opengeoweb/authentication": "14.3.0",
29
- "@opengeoweb/sigmet-airmet": "14.3.0",
26
+ "@opengeoweb/core": "14.5.0",
27
+ "@opengeoweb/webmap": "14.5.0",
28
+ "@opengeoweb/authentication": "14.5.0",
29
+ "@opengeoweb/sigmet-airmet": "14.5.0",
30
30
  "react-i18next": "^15.1.1",
31
31
  "i18next": "^25.0.1",
32
32
  "@mui/material": "^7.0.1",
package/src/index.d.ts CHANGED
@@ -8,4 +8,4 @@ export * from './lib/store';
8
8
  export { WARN_NAMESPACE } from './lib/utils/i18n';
9
9
  export { warningsTranslations };
10
10
  export * as publicWarningsSelectors from './lib/store/publicWarnings/selectors';
11
- export * from './lib/store/types';
11
+ export type * from './lib/store/types';
@@ -4,13 +4,4 @@ declare const _default: {
4
4
  tags: string[];
5
5
  };
6
6
  export default _default;
7
- export declare const WarningsDemo: {
8
- (): React.ReactElement;
9
- parameters: {
10
- msw: {
11
- handlers: {
12
- warnings: import("msw").HttpHandler[];
13
- };
14
- };
15
- };
16
- };
7
+ export declare const WarningsDemo: () => React.ReactElement;
@@ -1,5 +1,5 @@
1
- import { Warning } from '../store/publicWarningForm/types';
2
1
  import type { TimeFilter } from '../components/FilterList/filter-utils';
2
+ import type { Warning } from '../store/publicWarningForm/types';
3
3
  interface WarningsResponse {
4
4
  combinedWarnings: Warning[];
5
5
  refetchWarnings: () => void;
@@ -1,6 +1,6 @@
1
- import { AirmetConfig, AirmetFromBackend, SigmetConfig, SigmetFromBackend } from '@opengeoweb/api';
2
- import { Credentials } from '@opengeoweb/authentication';
3
- import { AirmetFromFrontend, AviationProduct, SigmetFromFrontend } from '@opengeoweb/sigmet-airmet';
1
+ import type { AirmetConfig, AirmetFromBackend, SigmetConfig, SigmetFromBackend } from '@opengeoweb/api';
2
+ import type { Credentials } from '@opengeoweb/authentication';
3
+ import type { AirmetFromFrontend, AviationProduct, SigmetFromFrontend } from '@opengeoweb/sigmet-airmet';
4
4
  export declare const airmetBaseUrl: string;
5
5
  export declare const sigmetBaseUrl: string;
6
6
  export declare const getAirmetList: (auth: Credentials, params?: Record<string, string>) => Promise<AirmetFromBackend[]>;
@@ -1,7 +1,7 @@
1
1
  import type { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
2
2
  import type { AirmetConfig, AirmetFromBackend, SigmetConfig, SigmetFromBackend } from '@opengeoweb/api';
3
3
  import type { AirmetFromFrontend, AviationProduct, SigmetFromFrontend } from '@opengeoweb/sigmet-airmet';
4
- import { TimeFilter } from '../../components/FilterList/filter-utils';
4
+ import type { TimeFilter } from '../../components/FilterList/filter-utils';
5
5
  import type { WarningType } from '../../store/publicWarningForm/types';
6
6
  interface TACData {
7
7
  data: string;
@@ -1,5 +1,5 @@
1
- import { Credentials } from '@opengeoweb/authentication';
2
- import { AviationProduct } from '@opengeoweb/sigmet-airmet';
1
+ import type { Credentials } from '@opengeoweb/authentication';
2
+ import type { AviationProduct } from '@opengeoweb/sigmet-airmet';
3
3
  export declare const aviationQueryOptions: {
4
4
  readonly getSigmetTAC: (product: AviationProduct, credentials?: Credentials) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
5
5
  data: string;
@@ -1,8 +1,8 @@
1
- import { Credentials } from '@opengeoweb/authentication';
2
- import { MaritimeWarning, MaritimeWarningsType, PublicWarning } from '../../store/publicWarningForm/types';
3
- import { DrawingFromBE, DrawingFromFE, DrawingListItem, FetchDrawingParams } from '../../store/warningsDrawings/types';
4
- import { MaritimeWarningsConfig } from '../../components/MaritimeWarningsForm/types';
5
- export declare const getPublicWarningList: (auth: Credentials) => Promise<PublicWarning[]>;
1
+ import type { Credentials } from '@opengeoweb/authentication';
2
+ import type { MaritimeWarningsConfig } from '../../components/MaritimeWarningsForm/types';
3
+ import type { MaritimeWarning, MaritimeWarningsType, PublicWarning } from '../../store/publicWarningForm/types';
4
+ import type { DrawingFromBE, DrawingFromFE, DrawingListItem, FetchDrawingParams } from '../../store/warningsDrawings/types';
5
+ export declare const getPublicWarningList: (auth: Credentials, apiParams?: Record<string, string>) => Promise<PublicWarning[]>;
6
6
  export declare const updatePublicWarningEditor: (warningId: string, isEditor: boolean, auth: Credentials, force?: boolean) => Promise<Headers | null>;
7
7
  export declare const updatePublicWarning: (warningId: string, auth: Credentials, data: PublicWarning) => Promise<Headers | null>;
8
8
  export declare const postPublicWarning: (auth: Credentials, data: PublicWarning) => Promise<Headers | null>;
@@ -1,12 +1,13 @@
1
- import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
2
- import { MaritimeWarning, MaritimeWarningsType, PublicWarning } from '../../store/publicWarningForm/types';
3
- import { DrawingFromBE, DrawingFromFE, DrawingListItem, FetchDrawingParams } from '../../store/warningsDrawings/types';
4
- import { MaritimeWarningsConfig } from '../../components/MaritimeWarningsForm/types';
1
+ import type { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
2
+ import type { TimeFilter } from '../../components/FilterList/filter-utils';
3
+ import type { MaritimeWarningsConfig } from '../../components/MaritimeWarningsForm/types';
4
+ import type { MaritimeWarning, MaritimeWarningsType, PublicWarning } from '../../store/publicWarningForm/types';
5
+ import type { DrawingFromBE, DrawingFromFE, DrawingListItem, FetchDrawingParams } from '../../store/warningsDrawings/types';
5
6
  /**
6
7
  * @param disabled - Disables fetching, but still returns cached values.
7
8
  * https://tanstack.com/query/v4/docs/framework/react/guides/disabling-queries
8
9
  */
9
- export declare const usePublicWarnings: (disabled?: boolean) => UseQueryResult<(PublicWarning | MaritimeWarning)[]>;
10
+ export declare const usePublicWarnings: (disabled?: boolean, timeFilter?: TimeFilter) => UseQueryResult<(PublicWarning | MaritimeWarning)[]>;
10
11
  type MutationReturnType<T> = UseMutationResult<Headers | null, Error, T, {
11
12
  oldData: PublicWarning[] | undefined;
12
13
  }>;
@@ -1,5 +1,5 @@
1
- import { ListFilter } from '@opengeoweb/shared';
2
1
  import React from 'react';
2
+ import type { ListFilter } from '@opengeoweb/shared';
3
3
  export interface AreaObjectFilterProps {
4
4
  filters: ListFilter[];
5
5
  onClickFilterChip?: (id: string, selected: boolean) => void;
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
3
- import { uiTypes } from '@opengeoweb/store';
4
- import { DrawingListItem } from '../../store/warningsDrawings/types';
5
- import { AreaObjectFilterProps } from './AreaObjectFilter';
6
- import { Area } from '../../store/publicWarningForm/types';
1
+ import React from 'react';
2
+ import type { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
3
+ import type { uiTypes } from '@opengeoweb/store';
4
+ import type { AreaObjectFilterProps } from './AreaObjectFilter';
5
+ import type { Area } from '../../store/publicWarningForm/types';
6
+ import type { DrawingListItem } from '../../store/warningsDrawings/types';
7
7
  export declare const areaErrorType = "area";
8
8
  export declare const AreaObjectLoader: React.FC<{
9
9
  bounds?: string;
@@ -1,7 +1,8 @@
1
- import React, { FC } from 'react';
2
- import { TFunction } from 'i18next';
3
- import { DrawingListItem } from '../../store/warningsDrawings/types';
4
- import { Area } from '../../store/publicWarningForm/types';
1
+ import type { TFunction } from 'i18next';
2
+ import type { FC } from 'react';
3
+ import React from 'react';
4
+ import type { Area } from '../../store/publicWarningForm/types';
5
+ import type { DrawingListItem } from '../../store/warningsDrawings/types';
5
6
  interface ObjectAreaList {
6
7
  title: string;
7
8
  items: DrawingListItem[];
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { ApiModule, ApiUrls } from '@opengeoweb/api';
3
- import { PickedFilterState } from '../FilterList/filter-hooks';
4
- import { MaritimeWarningsDomain } from '../MaritimeWarningsForm/types';
1
+ import React from 'react';
2
+ import type { ApiModule, ApiUrls } from '@opengeoweb/api';
3
+ import type { PickedFilterState } from '../FilterList/filter-hooks';
4
+ import type { MaritimeWarningsDomain } from '../MaritimeWarningsForm/types';
5
5
  export type WarningListComponentType = 'WarningList' | 'MaritimeWarnings';
6
6
  interface WarningsInitialProps {
7
7
  filterState?: PickedFilterState;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ import type { TFunction } from 'i18next';
2
+ import React from 'react';
2
3
  import { uiTypes } from '@opengeoweb/store';
3
- import { DrawMode } from '@opengeoweb/webmap-react';
4
- import { TFunction } from 'i18next';
4
+ import type { DrawMode } from '@opengeoweb/webmap-react';
5
5
  export declare const getDialogType: (mapId: string, isMultiMap: boolean) => string;
6
6
  export declare const translateDrawModes: (drawModes: DrawMode[], translateFn: TFunction) => DrawMode[];
7
7
  interface DrawingToolConnectProps {
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
3
- import { uiTypes } from '@opengeoweb/store';
1
+ import React from 'react';
2
+ import type { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
3
+ import type { uiTypes } from '@opengeoweb/store';
4
4
  interface DrawingToolDialogProps {
5
5
  bounds?: string;
6
6
  title?: string;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { uiTypes } from '@opengeoweb/store';
1
+ import React from 'react';
2
+ import type { uiTypes } from '@opengeoweb/store';
3
3
  interface DrawingToolMapButtonConnectProps {
4
4
  mapId: string;
5
5
  source?: uiTypes.Source;
@@ -1,6 +1,6 @@
1
- import { uiTypes } from '@opengeoweb/store';
2
- import { ConfirmationOptions } from '@opengeoweb/shared';
3
- import { TFunction } from 'i18next';
1
+ import type { TFunction } from 'i18next';
2
+ import type { ConfirmationOptions } from '@opengeoweb/shared';
3
+ import type { uiTypes } from '@opengeoweb/store';
4
4
  export declare const confirmationDialogOptions: (t: TFunction) => ConfirmationOptions;
5
5
  export declare const useCloseDrawDialog: ({ mapId, source, }: {
6
6
  mapId: string;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { DrawMode } from '@opengeoweb/webmap-react';
3
- import { FeatureCollection, GeoJsonProperties, Geometry } from 'geojson';
4
- import { DrawingToolFormValues } from './DrawingToolFormContents';
1
+ import type { FeatureCollection, GeoJsonProperties, Geometry } from 'geojson';
2
+ import React from 'react';
3
+ import type { DrawMode } from '@opengeoweb/webmap-react';
4
+ import type { DrawingToolFormValues } from './DrawingToolFormContents';
5
5
  export declare const opacityOptions: number[];
6
6
  export declare const getObjectName: (objectName: string) => string;
7
7
  export interface DrawingToolFormComponentProps {
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const DrawingToolFormConnect: React.FC;
@@ -1,7 +1,7 @@
1
+ import type { SelectChangeEvent } from '@mui/material';
1
2
  import React from 'react';
2
- import { SelectChangeEvent } from '@mui/material';
3
- import { DrawMode } from '@opengeoweb/webmap-react';
4
- import { FieldErrors, FieldValues } from 'react-hook-form';
3
+ import type { FieldErrors, FieldValues } from 'react-hook-form';
4
+ import type { DrawMode } from '@opengeoweb/webmap-react';
5
5
  export declare const opacityOptions: number[];
6
6
  export interface DrawingToolFormValues {
7
7
  objectName: string;
@@ -1,6 +1,7 @@
1
- import * as React from 'react';
2
- import { StoryObj } from '@storybook/react/*';
3
- import ExpandableFilterChip, { ExpandableFilterChipProps } from './ExpandableFilterChip';
1
+ import type { StoryObj } from '@storybook/react/*';
2
+ import React from 'react';
3
+ import type { ExpandableFilterChipProps } from './ExpandableFilterChip';
4
+ import ExpandableFilterChip from './ExpandableFilterChip';
4
5
  declare const _default: {
5
6
  title: string;
6
7
  component: React.FC<ExpandableFilterChipProps>;
@@ -1,2 +1,2 @@
1
- import { ColorDefinition } from '../PublicWarningsForm/LevelField';
1
+ import type { ColorDefinition } from '../PublicWarningsForm/LevelField';
2
2
  export declare const warningColors: Record<string, ColorDefinition | undefined>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DistrictsType } from '../types';
2
+ import type { DistrictsType } from '../types';
3
3
  export interface AreaListProps {
4
4
  areas: DistrictsType[];
5
5
  selected: string[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DistrictsType } from '../types';
2
+ import type { DistrictsType } from '../types';
3
3
  export interface AssignedAreasProps {
4
4
  assignedAreas: DistrictsType[];
5
5
  selectedAreaIds: string[];
@@ -1,5 +1,5 @@
1
- import { TooltipProps } from '@mui/material';
2
- import * as React from 'react';
1
+ import type { TooltipProps } from '@mui/material';
2
+ import React from 'react';
3
3
  export interface MaritimeWarningAvatarProps {
4
4
  editor: string;
5
5
  tooltipPlacement?: TooltipProps['placement'];
@@ -1,6 +1,6 @@
1
- import { AlertColor } from '@mui/material';
1
+ import type { AlertColor } from '@mui/material';
2
+ import type { TFunction } from 'i18next';
2
3
  import React from 'react';
3
- import { TFunction } from 'i18next';
4
4
  import type { MaritimeWarningItem, MaritimeWarningItemAttributes, MaritimeWarningsConfig, DistrictsType } from './types';
5
5
  export declare const getWarningsValidity: (t: TFunction, warnings: MaritimeWarningItem[]) => string;
6
6
  export interface MaritimeWarningsFormProps {
@@ -16,7 +16,7 @@ export interface MaritimeWarningsFormProps {
16
16
  onAddWarning: () => void;
17
17
  onChangeWarning: (id: string, newValues: Partial<MaritimeWarningItemAttributes>) => void;
18
18
  onMoveWarning: (oldIndex: number, newIndex: number) => void;
19
- onSubmit: () => Promise<void>;
19
+ onSubmit: (shouldExtend?: boolean) => Promise<void>;
20
20
  onClear: () => void;
21
21
  onToggleReadOnly: (isReadOnly: boolean) => void;
22
22
  isReadOnly: boolean;
@@ -1,4 +1,4 @@
1
- import { StoryObj, Meta } from '@storybook/react-webpack5';
1
+ import type { StoryObj, Meta } from '@storybook/react-webpack5';
2
2
  import { MaritimeWarningsForm } from './MaritimeWarningsForm';
3
3
  type Story = StoryObj<typeof MaritimeWarningsForm>;
4
4
  declare const meta: Meta<typeof MaritimeWarningsForm>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MaritimeWarningsDomain } from './types';
2
+ import type { MaritimeWarningsDomain } from './types';
3
3
  export interface MaritimeWarningsFormConnectProps {
4
4
  domain: MaritimeWarningsDomain;
5
5
  onPreventCloseView?: (on: boolean) => void;
@@ -1,6 +1,6 @@
1
- import { StoryObj, Meta } from '@storybook/react-webpack5';
1
+ import type { StoryObj, Meta } from '@storybook/react-webpack5';
2
2
  import React from 'react';
3
- import { MaritimeWarningsFormConnectProps } from './MaritimeWarningsFormConnect';
3
+ import type { MaritimeWarningsFormConnectProps } from './MaritimeWarningsFormConnect';
4
4
  declare const MaritimeWarningsFormConnectDemo: React.FC<MaritimeWarningsFormConnectProps>;
5
5
  type Story = StoryObj<typeof MaritimeWarningsFormConnectDemo>;
6
6
  declare const meta: Meta<typeof MaritimeWarningsFormConnectDemo>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DistrictsType, MaritimeWarningItem, MaritimeWarningItemAttributes, MaritimeWarningsConfig } from '../types';
2
+ import type { DistrictsType, MaritimeWarningItem, MaritimeWarningItemAttributes, MaritimeWarningsConfig } from '../types';
3
3
  export interface WarningListProps {
4
4
  warnings: MaritimeWarningItem[];
5
5
  onAddSelectedAreas: (id: string) => void;
@@ -1,5 +1,5 @@
1
- import { SxProps } from '@mui/material';
2
- import { TFunction } from 'i18next';
1
+ import type { SxProps } from '@mui/material';
2
+ import type { TFunction } from 'i18next';
3
3
  import React from 'react';
4
4
  export interface WarningListSelectOption {
5
5
  value: string;
@@ -15,7 +15,7 @@ export interface WarningListSelectProps {
15
15
  gridArea: string;
16
16
  additionalStyling?: SxProps;
17
17
  isReadOnly?: boolean;
18
- displayEmpty?: boolean;
18
+ emptyMessage?: string;
19
19
  validationResult?: true | 'error' | 'warning';
20
20
  }
21
- export declare const WarningListSelect: React.MemoExoticComponent<({ options, value, label, onChange, renderOption, renderValue, gridArea, additionalStyling, isReadOnly, displayEmpty, validationResult, }: WarningListSelectProps) => import("react/jsx-runtime").JSX.Element>;
21
+ export declare const WarningListSelect: React.MemoExoticComponent<({ options, value, label, onChange, renderOption, renderValue, gridArea, additionalStyling, isReadOnly, emptyMessage, validationResult, }: WarningListSelectProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1,3 +1,3 @@
1
- import { WarningListSelectOption } from './WarningList/WarningListSelect';
1
+ import type { WarningListSelectOption } from './WarningList/WarningListSelect';
2
2
  export declare function getLabelFromOptionLabel(label: WarningListSelectOption['label']): string;
3
3
  export declare function selectOption(container: HTMLElement, comboboxLabel: string, optionLabel: WarningListSelectOption['label']): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { DistrictsType, MaritimeWarningItem, MaritimeWarningsConfig } from './types';
1
+ import type { DistrictsType, MaritimeWarningItem, MaritimeWarningsConfig } from './types';
2
2
  interface UseConfirmDeleteDialogProps {
3
3
  areas: DistrictsType[];
4
4
  warnings: MaritimeWarningItem[];
@@ -6,7 +6,7 @@ interface UseConfirmDeleteDialogProps {
6
6
  onRemoveWarning: (id: string) => void;
7
7
  }
8
8
  interface UseConfirmDeleteDialog {
9
- onRemoveWarningWithConfirmation(id: string): Promise<void>;
9
+ onRemoveWarningWithConfirmation: (id: string) => Promise<void>;
10
10
  }
11
11
  export declare function useConfirmDeleteDialog({ areas, warnings, maritimeConfig, onRemoveWarning, }: UseConfirmDeleteDialogProps): UseConfirmDeleteDialog;
12
12
  export {};
@@ -6,7 +6,7 @@ export interface UseFilterChipSelectProps {
6
6
  onSelectMultiple?: (ids: string[]) => void;
7
7
  }
8
8
  interface UseFilterChipSelect {
9
- handleChipClick(id: string, event: React.MouseEvent): void;
9
+ handleChipClick: (id: string, event: React.MouseEvent) => void;
10
10
  }
11
11
  export declare function useFilterChipSelect({ selectedIds, assignedIds, onToggleSelect, onSelectMultiple, }: UseFilterChipSelectProps): UseFilterChipSelect;
12
12
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MaritimeWarningItem, MaritimeWarningItemAttributes } from './types';
2
+ import type { MaritimeWarningItem, MaritimeWarningItemAttributes } from './types';
3
3
  export declare function createWarning(): MaritimeWarningItem;
4
4
  export declare function isPublishedWarning(warning: MaritimeWarningItem): boolean;
5
5
  interface State {
@@ -1,7 +1,7 @@
1
- import { MaritimeWarning, MaritimeWarningsType } from '../../store/publicWarningForm/types';
2
- import { MaritimeWarningItem, MaritimeWarningsConfig, MaritimeWarningsDomain } from './types';
3
- export declare const isWarningsValid: (warnings: MaritimeWarningItem[], config: MaritimeWarningsConfig) => boolean;
1
+ import type { MaritimeWarningItem, MaritimeWarningsConfig, MaritimeWarningsDomain } from './types';
2
+ import type { MaritimeWarning, MaritimeWarningsType } from '../../store/publicWarningForm/types';
3
+ export declare const isWarningsValid: (warnings: MaritimeWarningItem[], config: MaritimeWarningsConfig, allowEmpty?: boolean) => boolean;
4
4
  export declare const getType: (domain: MaritimeWarningsDomain) => MaritimeWarningsType;
5
- export declare const mapItemsToMaritimeWarnings: (warnings: MaritimeWarningItem[], domain: MaritimeWarningsDomain, maritimeConfig: MaritimeWarningsConfig, editor?: string) => MaritimeWarning[];
5
+ export declare const mapItemsToMaritimeWarnings: (warnings: MaritimeWarningItem[], domain: MaritimeWarningsDomain, maritimeConfig: MaritimeWarningsConfig, editor?: string, shouldExtend?: boolean) => MaritimeWarning[];
6
6
  export declare const mapMaritimeWarningsToItems: (warnings: MaritimeWarning[]) => MaritimeWarningItem[];
7
7
  export declare const validateWindDirectionChange: (directionFrom: string | undefined, directionTo: string | undefined, changeType: string | undefined, config?: MaritimeWarningsConfig) => true | "warning" | "error";
@@ -1,5 +1,5 @@
1
+ import type { TFunction } from 'i18next';
1
2
  import React from 'react';
2
- import { TFunction } from 'i18next';
3
3
  export declare const getDeleteDescription: (objectName: string, t: TFunction) => string;
4
4
  export declare const getDeleteSucces: (objectName: string, t: TFunction) => string;
5
5
  export declare const ConfirmDeleteDialog: React.FC<{
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
3
- import { uiTypes } from '@opengeoweb/store';
4
- import { DrawingListItem } from '../../store/warningsDrawings/types';
1
+ import React from 'react';
2
+ import type { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
3
+ import type { uiTypes } from '@opengeoweb/store';
4
+ import type { DrawingListItem } from '../../store/warningsDrawings/types';
5
5
  export declare const ObjectManager: React.FC<{
6
6
  bounds?: string;
7
7
  title?: string;
@@ -1,6 +1,6 @@
1
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
2
  import { ObjectManager } from './ObjectManager';
3
- import { DrawingListItem } from '../../store/warningsDrawings/types';
3
+ import type { DrawingListItem } from '../../store/warningsDrawings/types';
4
4
  declare const _default: {
5
5
  title: string;
6
6
  component: import("react").FC<{
@@ -1,5 +1,5 @@
1
- import { uiTypes } from '@opengeoweb/store';
2
1
  import React from 'react';
2
+ import type { uiTypes } from '@opengeoweb/store';
3
3
  export declare const ObjectManagerConnect: React.FC<{
4
4
  bounds?: string;
5
5
  source?: uiTypes.Source;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { uiTypes } from '@opengeoweb/store';
2
+ import type { uiTypes } from '@opengeoweb/store';
3
3
  export declare const ObjectManagerMapButtonConnect: React.FC<{
4
4
  mapId: string;
5
5
  source?: uiTypes.Source;
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
- import { DrawingListItem } from '../../store/warningsDrawings/types';
1
+ import type { FC } from 'react';
2
+ import type { DrawingListItem } from '../../store/warningsDrawings/types';
3
3
  export declare const BUTTON_AIRMET = "AIRMET";
4
4
  export declare const BUTTON_SIGMET = "SIGMET";
5
5
  type ListInclHeadersType = {
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { Theme } from '@mui/material';
3
- import { Store } from '@reduxjs/toolkit';
1
+ import type { Theme } from '@mui/material';
2
+ import type { Store } from '@reduxjs/toolkit';
4
3
  import { QueryClient } from '@tanstack/react-query';
4
+ import React from 'react';
5
5
  interface WarningsClientProviderProps {
6
6
  children: React.ReactNode;
7
7
  optionalQueryClient?: QueryClient;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
2
+ import type { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
3
3
  export interface ConfirmDialogProps {
4
4
  title: string;
5
5
  description: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WarningType } from '../../../store/publicWarningForm/types';
2
+ import type { WarningType } from '../../../store/publicWarningForm/types';
3
3
  export declare const BUTTON_AIRMET = "AIRMET";
4
4
  export declare const BUTTON_SIGMET = "SIGMET";
5
5
  export interface NewWarningButtonProps {
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
+ import React from 'react';
3
3
  import { NewWarningButton } from './NewWarningButton';
4
4
  declare const _default: {
5
5
  title: string;
@@ -16,6 +16,8 @@ export interface PublicWarningListProps extends WarningListItemActions {
16
16
  expandedSections: Record<string, boolean>;
17
17
  setExpandedSections: (expandedSections: Record<string, boolean>) => void;
18
18
  onActionAviationWarning?: () => void;
19
+ limitAlertCount?: number;
20
+ showLimitAlert?: boolean;
19
21
  }
20
22
  export declare const PublicWarningList: React.FC<PublicWarningListProps>;
21
23
  export default PublicWarningList;
@@ -58,3 +58,7 @@ export declare const PublicWarningListMaritime: {
58
58
  (): React.ReactElement;
59
59
  tags: string[];
60
60
  };
61
+ export declare const PublicWarningListTooManyWarnings: {
62
+ (): React.ReactElement;
63
+ tags: string[];
64
+ };
@@ -5,4 +5,3 @@ export interface PublicWarningListConnectProps {
5
5
  presetFilterState?: PickedFilterState;
6
6
  }
7
7
  export declare const PublicWarningListConnect: React.FC<PublicWarningListConnectProps>;
8
- export default PublicWarningListConnect;
@@ -1,5 +1,5 @@
1
+ import type { GridProps } from '@mui/material';
1
2
  import React from 'react';
2
- import { GridProps } from '@mui/material';
3
3
  import { PublicWarningStatus } from '../../store/publicWarningForm/types';
4
4
  export declare const WarningListColumnContent: React.FC<GridProps & {
5
5
  title?: string;
@@ -1,5 +1,5 @@
1
+ import type { GridProps } from '@mui/material';
1
2
  import React from 'react';
2
- import { GridProps } from '@mui/material';
3
3
  declare const WarningListHeaderContent: React.FC<GridProps & {
4
4
  title: string;
5
5
  width?: number;
@@ -1,7 +1,7 @@
1
+ import type { ListItemProps } from '@mui/material';
1
2
  import React from 'react';
2
- import { ListItemProps } from '@mui/material';
3
- import { Warning } from '../../store/publicWarningForm/types';
4
- import { WarningListItemActions } from './WarningListItemMenu';
3
+ import type { WarningListItemActions } from './WarningListItemMenu';
4
+ import type { Warning } from '../../store/publicWarningForm/types';
5
5
  export interface WarningListItemProps extends ListItemProps, WarningListItemActions {
6
6
  warning: Warning;
7
7
  highlightedItem?: boolean;