@opengeoweb/warnings 9.28.0 → 9.29.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 +775 -648
- package/package.json +1 -1
- package/src/index.d.ts +10 -10
- package/src/lib/Warnings.stories.d.ts +6 -6
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +9 -9
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.spec.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +27 -27
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.spec.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +40 -40
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.d.ts +6 -6
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.stories.d.ts +7 -7
- package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +25 -25
- package/src/lib/components/AreaObjectLoader/AreasObjects.spec.d.ts +1 -1
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +15 -15
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +1 -1
- package/src/lib/components/ComponentsLookUp/index.d.ts +1 -1
- package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +34 -34
- package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +16 -16
- package/src/lib/components/DrawingTool/DrawingToolConnect.spec.d.ts +1 -1
- package/src/lib/components/DrawingTool/DrawingToolConnect.stories.d.ts +6 -6
- package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +19 -19
- package/src/lib/components/DrawingTool/DrawingToolDialog.spec.d.ts +1 -1
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +8 -8
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/DrawingTool/index.d.ts +3 -3
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +25 -25
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.spec.d.ts +1 -1
- package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +26 -26
- package/src/lib/components/DrawingToolForm/DrawingToolForm.spec.d.ts +1 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +2 -2
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +27 -27
- package/src/lib/components/DrawingToolForm/index.d.ts +2 -2
- package/src/lib/components/FilterList/FilterChipWithOptions.d.ts +7 -7
- package/src/lib/components/FilterList/FilterChipWithOptions.spec.d.ts +1 -1
- package/src/lib/components/FilterList/FilterChipWithOptions.stories.d.ts +19 -19
- package/src/lib/components/FilterList/FilterChipWithOptionsConnect.d.ts +7 -7
- package/src/lib/components/FilterList/FilterList.d.ts +13 -13
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +11 -11
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManager.d.ts +25 -25
- package/src/lib/components/ObjectManager/ObjectManager.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +46 -46
- package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +6 -6
- package/src/lib/components/ObjectManager/ObjectManagerConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +25 -25
- package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +9 -9
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +6 -6
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/Objects.d.ts +22 -22
- package/src/lib/components/ObjectManager/Objects.spec.d.ts +1 -1
- package/src/lib/components/ObjectManager/index.d.ts +2 -2
- package/src/lib/components/Providers/Providers.d.ts +19 -19
- package/src/lib/components/Providers/Providers.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +13 -13
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +28 -27
- package/src/lib/components/PublicWarningList/PublicWarningList.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +35 -35
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +3 -3
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.editorToggle.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.filter.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.published.integration.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +9 -9
- package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +10 -0
- package/src/lib/components/PublicWarningList/WarningListItem.d.ts +17 -26
- package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +14 -0
- package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +8 -8
- package/src/lib/components/PublicWarningList/index.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.d.ts +9 -9
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +13 -13
- package/src/lib/components/PublicWarningsForm/AreaField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.d.ts +5 -5
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +21 -21
- package/src/lib/components/PublicWarningsForm/DescriptionField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +22 -21
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/LevelField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +11 -11
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +7 -7
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +32 -32
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +29 -29
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +10 -10
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +7 -7
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +7 -7
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +9 -9
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ValidFromField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +11 -11
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/index.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/index.d.ts +2 -2
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +21 -21
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +57 -57
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +16 -16
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.spec.d.ts +1 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +8 -8
- package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +8 -8
- package/src/lib/components/PublicWarningsFormDialog/index.d.ts +2 -2
- package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +14 -14
- package/src/lib/components/WarningsMapView/WarningsMapView.spec.d.ts +1 -1
- package/src/lib/components/WarningsModuleProvider/WarningsModuleProvider.d.ts +7 -7
- package/src/lib/components/WarningsModuleProvider/index.d.ts +1 -1
- package/src/lib/store/config.d.ts +10 -10
- package/src/lib/store/drawings/listener.d.ts +2 -2
- package/src/lib/store/drawings/reducer.d.ts +13 -13
- package/src/lib/store/drawings/reducer.spec.d.ts +1 -1
- package/src/lib/store/drawings/selectors.d.ts +9 -9
- package/src/lib/store/drawings/selectors.spec.d.ts +1 -1
- package/src/lib/store/drawings/types.d.ts +33 -33
- package/src/lib/store/drawings/utils.d.ts +4 -4
- package/src/lib/store/publicWarningForm/listener.d.ts +2 -2
- package/src/lib/store/publicWarningForm/reducer.d.ts +67 -66
- package/src/lib/store/publicWarningForm/reducer.spec.d.ts +1 -1
- package/src/lib/store/publicWarningForm/selectors.d.ts +53 -53
- package/src/lib/store/publicWarningForm/selectors.spec.d.ts +1 -1
- package/src/lib/store/publicWarningForm/types.d.ts +41 -40
- package/src/lib/store/publicWarningForm/utils.d.ts +2 -2
- package/src/lib/store/publicWarnings/listener.d.ts +3 -3
- package/src/lib/store/publicWarnings/listener.spec.d.ts +1 -1
- package/src/lib/store/publicWarnings/reducer.d.ts +27 -27
- package/src/lib/store/publicWarnings/reducer.spec.d.ts +1 -1
- package/src/lib/store/publicWarnings/selectors.d.ts +36 -36
- package/src/lib/store/publicWarnings/selectors.spec.d.ts +1 -1
- package/src/lib/store/publicWarnings/types.d.ts +39 -39
- package/src/lib/store/publicWarnings/utils.d.ts +23 -23
- package/src/lib/store/publicWarnings/utils.spec.d.ts +1 -1
- package/src/lib/store/types.d.ts +9 -9
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +18 -18
- package/src/lib/storybookUtils/storyComponents.d.ts +7 -7
- package/src/lib/storybookUtils/testUtils.d.ts +3 -3
- package/src/lib/utils/api.d.ts +30 -30
- package/src/lib/utils/api.spec.d.ts +1 -1
- package/src/lib/utils/constants.d.ts +1 -1
- package/src/lib/utils/fakeApi/index.d.ts +7 -7
- package/src/lib/utils/fakeApi.d.ts +6 -6
- package/src/lib/utils/fakeApi.spec.d.ts +1 -1
- package/src/lib/utils/i18n.d.ts +7 -7
- package/src/lib/utils/sig-airmet-util.d.ts +5 -5
- package/src/lib/utils/useFormDirty.d.ts +7 -7
- package/src/lib/utils/useFormDirty.spec.d.ts +1 -1
- package/src/lib/utils/warningUtils.d.ts +12 -7
- package/src/lib/utils/warningUtils.spec.d.ts +1 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import warningsTranslations from '../locales/warnings.json';
|
|
2
|
-
export * from './lib/components/ObjectManager';
|
|
3
|
-
export * from './lib/components/WarningsModuleProvider';
|
|
4
|
-
export * from './lib/components/DrawingTool';
|
|
5
|
-
export * from './lib/components/DrawingToolForm';
|
|
6
|
-
export * from './lib/components/PublicWarningsFormDialog';
|
|
7
|
-
export * from './lib/components/ComponentsLookUp';
|
|
8
|
-
export * from './lib/store/config';
|
|
9
|
-
export { WARN_NAMESPACE } from './lib/utils/i18n';
|
|
10
|
-
export { warningsTranslations };
|
|
1
|
+
import warningsTranslations from '../locales/warnings.json';
|
|
2
|
+
export * from './lib/components/ObjectManager';
|
|
3
|
+
export * from './lib/components/WarningsModuleProvider';
|
|
4
|
+
export * from './lib/components/DrawingTool';
|
|
5
|
+
export * from './lib/components/DrawingToolForm';
|
|
6
|
+
export * from './lib/components/PublicWarningsFormDialog';
|
|
7
|
+
export * from './lib/components/ComponentsLookUp';
|
|
8
|
+
export * from './lib/store/config';
|
|
9
|
+
export { WARN_NAMESPACE } from './lib/utils/i18n';
|
|
10
|
+
export { warningsTranslations };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const WarningsDemo: () => React.ReactElement;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WarningsDemo: () => React.ReactElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ListFilter } from '@opengeoweb/shared';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface AreaObjectFilterProps {
|
|
4
|
-
filters: ListFilter[];
|
|
5
|
-
onClickFilterChip?: (id: string, selected: boolean) => void;
|
|
6
|
-
searchQuery: string;
|
|
7
|
-
onSearch?: (searchQuery: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const AreaObjectFilter: React.ForwardRefExoticComponent<AreaObjectFilterProps & React.RefAttributes<HTMLElement>>;
|
|
1
|
+
import { ListFilter } from '@opengeoweb/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface AreaObjectFilterProps {
|
|
4
|
+
filters: ListFilter[];
|
|
5
|
+
onClickFilterChip?: (id: string, selected: boolean) => void;
|
|
6
|
+
searchQuery: string;
|
|
7
|
+
onSearch?: (searchQuery: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const AreaObjectFilter: React.ForwardRefExoticComponent<AreaObjectFilterProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
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/drawings/types';
|
|
5
|
-
import { AreaObjectFilterProps } from './AreaObjectFilter';
|
|
6
|
-
import { Area } from '../../store/publicWarningForm/types';
|
|
7
|
-
export declare const areaErrorType = "area";
|
|
8
|
-
export declare const AreaObjectLoader: React.FC<{
|
|
9
|
-
bounds?: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
onMouseDown?: () => void;
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
order?: number;
|
|
15
|
-
source?: uiTypes.Source;
|
|
16
|
-
size?: DraggableSize;
|
|
17
|
-
startPosition?: Position;
|
|
18
|
-
headerSize?: HeaderSize;
|
|
19
|
-
drawingListItems: DrawingListItem[];
|
|
20
|
-
error?: uiTypes.UISetErrorPayload;
|
|
21
|
-
isLoading?: boolean;
|
|
22
|
-
onAddArea?: (drawingListItem: DrawingListItem) => void;
|
|
23
|
-
onRemoveArea?: (drawingListItem: DrawingListItem) => void;
|
|
24
|
-
selectedAreas?: Area[];
|
|
25
|
-
isChangeAreaDisabled?: boolean;
|
|
26
|
-
onRetryRequest?: (errorType: string) => void;
|
|
27
|
-
} & AreaObjectFilterProps>;
|
|
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/drawings/types';
|
|
5
|
+
import { AreaObjectFilterProps } from './AreaObjectFilter';
|
|
6
|
+
import { Area } from '../../store/publicWarningForm/types';
|
|
7
|
+
export declare const areaErrorType = "area";
|
|
8
|
+
export declare const AreaObjectLoader: React.FC<{
|
|
9
|
+
bounds?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onMouseDown?: () => void;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
order?: number;
|
|
15
|
+
source?: uiTypes.Source;
|
|
16
|
+
size?: DraggableSize;
|
|
17
|
+
startPosition?: Position;
|
|
18
|
+
headerSize?: HeaderSize;
|
|
19
|
+
drawingListItems: DrawingListItem[];
|
|
20
|
+
error?: uiTypes.UISetErrorPayload;
|
|
21
|
+
isLoading?: boolean;
|
|
22
|
+
onAddArea?: (drawingListItem: DrawingListItem) => void;
|
|
23
|
+
onRemoveArea?: (drawingListItem: DrawingListItem) => void;
|
|
24
|
+
selectedAreas?: Area[];
|
|
25
|
+
isChangeAreaDisabled?: boolean;
|
|
26
|
+
onRetryRequest?: (errorType: string) => void;
|
|
27
|
+
} & AreaObjectFilterProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AreaObjectLoaderSmall: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
tags: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare const AreaObjectLoaderLight: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
parameters: {
|
|
13
|
-
zeplinLink: {
|
|
14
|
-
name: string;
|
|
15
|
-
link: string;
|
|
16
|
-
}[];
|
|
17
|
-
};
|
|
18
|
-
tags: string[];
|
|
19
|
-
};
|
|
20
|
-
export declare const AreaObjectLoaderDark: {
|
|
21
|
-
(): React.ReactElement;
|
|
22
|
-
tags: string[];
|
|
23
|
-
};
|
|
24
|
-
export declare const AreaObjectLoaderLightNoResults: {
|
|
25
|
-
(): React.ReactElement;
|
|
26
|
-
tags: string[];
|
|
27
|
-
};
|
|
28
|
-
export declare const AreaObjectLoaderDarkNoResults: {
|
|
29
|
-
(): React.ReactElement;
|
|
30
|
-
tags: string[];
|
|
31
|
-
};
|
|
32
|
-
export declare const AreaObjectLoaderLoading: () => React.ReactElement;
|
|
33
|
-
export declare const AreaObjectLoaderErrorLight: {
|
|
34
|
-
(): React.ReactElement;
|
|
35
|
-
tags: string[];
|
|
36
|
-
};
|
|
37
|
-
export declare const AreaObjectLoaderErrorDark: {
|
|
38
|
-
(): React.ReactElement;
|
|
39
|
-
tags: string[];
|
|
40
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AreaObjectLoaderSmall: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const AreaObjectLoaderLight: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
parameters: {
|
|
13
|
+
zeplinLink: {
|
|
14
|
+
name: string;
|
|
15
|
+
link: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
tags: string[];
|
|
19
|
+
};
|
|
20
|
+
export declare const AreaObjectLoaderDark: {
|
|
21
|
+
(): React.ReactElement;
|
|
22
|
+
tags: string[];
|
|
23
|
+
};
|
|
24
|
+
export declare const AreaObjectLoaderLightNoResults: {
|
|
25
|
+
(): React.ReactElement;
|
|
26
|
+
tags: string[];
|
|
27
|
+
};
|
|
28
|
+
export declare const AreaObjectLoaderDarkNoResults: {
|
|
29
|
+
(): React.ReactElement;
|
|
30
|
+
tags: string[];
|
|
31
|
+
};
|
|
32
|
+
export declare const AreaObjectLoaderLoading: () => React.ReactElement;
|
|
33
|
+
export declare const AreaObjectLoaderErrorLight: {
|
|
34
|
+
(): React.ReactElement;
|
|
35
|
+
tags: string[];
|
|
36
|
+
};
|
|
37
|
+
export declare const AreaObjectLoaderErrorDark: {
|
|
38
|
+
(): React.ReactElement;
|
|
39
|
+
tags: string[];
|
|
40
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const AreaObjectLoaderConnect: React.FC<{
|
|
4
|
-
bounds?: string;
|
|
5
|
-
source?: uiTypes.Source;
|
|
6
|
-
}>;
|
|
1
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const AreaObjectLoaderConnect: React.FC<{
|
|
4
|
+
bounds?: string;
|
|
5
|
+
source?: uiTypes.Source;
|
|
6
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AreaObjectLoaderDemo: () => React.ReactElement;
|
|
7
|
-
export declare const AreaObjectLoaderDemoWithError: () => React.ReactElement;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AreaObjectLoaderDemo: () => React.ReactElement;
|
|
7
|
+
export declare const AreaObjectLoaderDemoWithError: () => React.ReactElement;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { TFunction } from 'i18next';
|
|
3
|
-
import { DrawingListItem } from '../../store/drawings/types';
|
|
4
|
-
import { Area } from '../../store/publicWarningForm/types';
|
|
5
|
-
interface ObjectAreaList {
|
|
6
|
-
title: string;
|
|
7
|
-
items: DrawingListItem[];
|
|
8
|
-
}
|
|
9
|
-
export declare const useGetFilterHeight: (filterRef?: React.MutableRefObject<HTMLElement>) => number;
|
|
10
|
-
export declare const getListInclHeaders: (items: DrawingListItem[], translateFn: TFunction) => {
|
|
11
|
-
objects: ObjectAreaList;
|
|
12
|
-
areas: ObjectAreaList;
|
|
13
|
-
};
|
|
14
|
-
export declare const getDisplayDate: (date: string) => string;
|
|
15
|
-
export declare const AreasObjects: FC<{
|
|
16
|
-
drawingListItems: DrawingListItem[];
|
|
17
|
-
isLoading?: boolean;
|
|
18
|
-
hasError?: boolean;
|
|
19
|
-
filterRef?: React.MutableRefObject<HTMLElement>;
|
|
20
|
-
onAddArea?: (drawingListItem: DrawingListItem) => void;
|
|
21
|
-
onRemoveArea?: (drawingListItem: DrawingListItem) => void;
|
|
22
|
-
selectedAreas?: Area[];
|
|
23
|
-
isChangeAreaDisabled?: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
export {};
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
import { DrawingListItem } from '../../store/drawings/types';
|
|
4
|
+
import { Area } from '../../store/publicWarningForm/types';
|
|
5
|
+
interface ObjectAreaList {
|
|
6
|
+
title: string;
|
|
7
|
+
items: DrawingListItem[];
|
|
8
|
+
}
|
|
9
|
+
export declare const useGetFilterHeight: (filterRef?: React.MutableRefObject<HTMLElement>) => number;
|
|
10
|
+
export declare const getListInclHeaders: (items: DrawingListItem[], translateFn: TFunction) => {
|
|
11
|
+
objects: ObjectAreaList;
|
|
12
|
+
areas: ObjectAreaList;
|
|
13
|
+
};
|
|
14
|
+
export declare const getDisplayDate: (date: string) => string;
|
|
15
|
+
export declare const AreasObjects: FC<{
|
|
16
|
+
drawingListItems: DrawingListItem[];
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
hasError?: boolean;
|
|
19
|
+
filterRef?: React.MutableRefObject<HTMLElement>;
|
|
20
|
+
onAddArea?: (drawingListItem: DrawingListItem) => void;
|
|
21
|
+
onRemoveArea?: (drawingListItem: DrawingListItem) => void;
|
|
22
|
+
selectedAreas?: Area[];
|
|
23
|
+
isChangeAreaDisabled?: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ApiModule, ApiUrls } from '@opengeoweb/api';
|
|
3
|
-
type WarningListComponentType = 'WarningList';
|
|
4
|
-
export interface ComponentsLookUpPayload {
|
|
5
|
-
componentType: WarningListComponentType;
|
|
6
|
-
id: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
initialProps: Record<string, never>;
|
|
9
|
-
}
|
|
10
|
-
export interface ApiModuleProps extends ApiModule {
|
|
11
|
-
config: ApiUrls;
|
|
12
|
-
}
|
|
13
|
-
export declare const PublicWarningApiWrapper: React.FC<ApiModuleProps>;
|
|
14
|
-
export declare const componentsLookUp: (payload: ComponentsLookUpPayload, apiProps?: ApiModuleProps) => React.ReactElement;
|
|
15
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ApiModule, ApiUrls } from '@opengeoweb/api';
|
|
3
|
+
type WarningListComponentType = 'WarningList';
|
|
4
|
+
export interface ComponentsLookUpPayload {
|
|
5
|
+
componentType: WarningListComponentType;
|
|
6
|
+
id: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
initialProps: Record<string, never>;
|
|
9
|
+
}
|
|
10
|
+
export interface ApiModuleProps extends ApiModule {
|
|
11
|
+
config: ApiUrls;
|
|
12
|
+
}
|
|
13
|
+
export declare const PublicWarningApiWrapper: React.FC<ApiModuleProps>;
|
|
14
|
+
export declare const componentsLookUp: (payload: ComponentsLookUpPayload, apiProps?: ApiModuleProps) => React.ReactElement;
|
|
15
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ComponentsLookUp';
|
|
1
|
+
export * from './ComponentsLookUp';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const DrawingToolLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
parameters: {
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
tags: string[];
|
|
15
|
-
};
|
|
16
|
-
export declare const DrawingToolDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
parameters: {
|
|
19
|
-
zeplinLink: {
|
|
20
|
-
name: string;
|
|
21
|
-
link: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
tags: string[];
|
|
25
|
-
};
|
|
26
|
-
export declare const DrawingToolErrorLight: {
|
|
27
|
-
(): React.ReactElement;
|
|
28
|
-
parameters: {
|
|
29
|
-
zeplinLink: {
|
|
30
|
-
name: string;
|
|
31
|
-
link: string;
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DrawingToolLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
tags: string[];
|
|
15
|
+
};
|
|
16
|
+
export declare const DrawingToolDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
tags: string[];
|
|
25
|
+
};
|
|
26
|
+
export declare const DrawingToolErrorLight: {
|
|
27
|
+
(): React.ReactElement;
|
|
28
|
+
parameters: {
|
|
29
|
+
zeplinLink: {
|
|
30
|
+
name: string;
|
|
31
|
+
link: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
-
import { DrawMode } from '@opengeoweb/webmap-react';
|
|
4
|
-
import { TFunction } from 'i18next';
|
|
5
|
-
export declare const getDialogType: (mapId: string, isMultiMap: boolean) => string;
|
|
6
|
-
export declare const translateDrawModes: (drawModes: DrawMode[], translateFn: TFunction) => DrawMode[];
|
|
7
|
-
interface DrawingToolConnectProps {
|
|
8
|
-
mapId?: string;
|
|
9
|
-
bounds?: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
showMapIdInTitle?: boolean;
|
|
12
|
-
isMultiMap?: boolean;
|
|
13
|
-
source?: uiTypes.Source;
|
|
14
|
-
}
|
|
15
|
-
declare const DrawingToolConnect: React.FC<DrawingToolConnectProps>;
|
|
16
|
-
export default DrawingToolConnect;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
+
import { DrawMode } from '@opengeoweb/webmap-react';
|
|
4
|
+
import { TFunction } from 'i18next';
|
|
5
|
+
export declare const getDialogType: (mapId: string, isMultiMap: boolean) => string;
|
|
6
|
+
export declare const translateDrawModes: (drawModes: DrawMode[], translateFn: TFunction) => DrawMode[];
|
|
7
|
+
interface DrawingToolConnectProps {
|
|
8
|
+
mapId?: string;
|
|
9
|
+
bounds?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
showMapIdInTitle?: boolean;
|
|
12
|
+
isMultiMap?: boolean;
|
|
13
|
+
source?: uiTypes.Source;
|
|
14
|
+
}
|
|
15
|
+
declare const DrawingToolConnect: React.FC<DrawingToolConnectProps>;
|
|
16
|
+
export default DrawingToolConnect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const DrawingToolConnectLight: () => React.ReactElement;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DrawingToolConnectLight: () => React.ReactElement;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
3
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
-
interface DrawingToolDialogProps {
|
|
5
|
-
bounds?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
onMouseDown?: () => void;
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
order?: number;
|
|
11
|
-
source?: uiTypes.Source;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
size?: DraggableSize;
|
|
14
|
-
startPosition?: Position;
|
|
15
|
-
headerSize?: HeaderSize;
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
declare const DrawingTool: React.FC<DrawingToolDialogProps>;
|
|
19
|
-
export default DrawingTool;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
3
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
+
interface DrawingToolDialogProps {
|
|
5
|
+
bounds?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onMouseDown?: () => void;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
order?: number;
|
|
11
|
+
source?: uiTypes.Source;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
size?: DraggableSize;
|
|
14
|
+
startPosition?: Position;
|
|
15
|
+
headerSize?: HeaderSize;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
declare const DrawingTool: React.FC<DrawingToolDialogProps>;
|
|
19
|
+
export default DrawingTool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
-
interface DrawingToolMapButtonConnectProps {
|
|
4
|
-
mapId: string;
|
|
5
|
-
source?: uiTypes.Source;
|
|
6
|
-
}
|
|
7
|
-
declare const DrawingToolMapButtonConnect: React.FC<DrawingToolMapButtonConnectProps>;
|
|
8
|
-
export default DrawingToolMapButtonConnect;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
+
interface DrawingToolMapButtonConnectProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
source?: uiTypes.Source;
|
|
6
|
+
}
|
|
7
|
+
declare const DrawingToolMapButtonConnect: React.FC<DrawingToolMapButtonConnectProps>;
|
|
8
|
+
export default DrawingToolMapButtonConnect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as DrawingToolMapButtonConnect } from './DrawingToolMapButtonConnect';
|
|
2
|
-
export { default as DrawingToolConnect } from './DrawingToolConnect';
|
|
3
|
-
export { useObjectDrawDialogAction } from './useObjectDrawDialogAction';
|
|
1
|
+
export { default as DrawingToolMapButtonConnect } from './DrawingToolMapButtonConnect';
|
|
2
|
+
export { default as DrawingToolConnect } from './DrawingToolConnect';
|
|
3
|
+
export { useObjectDrawDialogAction } from './useObjectDrawDialogAction';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
-
import { ConfirmationOptions } from '@opengeoweb/shared';
|
|
3
|
-
import { TFunction } from 'i18next';
|
|
4
|
-
export declare const confirmationDialogOptions: (t: TFunction) => ConfirmationOptions;
|
|
5
|
-
export declare const useCloseDrawDialog: ({ mapId, source, }: {
|
|
6
|
-
mapId: string;
|
|
7
|
-
source?: uiTypes.Source | undefined;
|
|
8
|
-
}) => {
|
|
9
|
-
closeDrawDialog: (skipConfirmationDialog?: boolean) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const useCloseObjectDialog: ({ mapId, source, }: {
|
|
12
|
-
mapId: string;
|
|
13
|
-
source?: uiTypes.Source | undefined;
|
|
14
|
-
}) => {
|
|
15
|
-
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
16
|
-
};
|
|
17
|
-
export declare const useObjectDrawDialogAction: ({ mapId, source, }: {
|
|
18
|
-
mapId: string;
|
|
19
|
-
source?: uiTypes.Source | undefined;
|
|
20
|
-
}) => {
|
|
21
|
-
openDrawDialog: (geoJSON?: GeoJSON.FeatureCollection) => void;
|
|
22
|
-
closeDrawDialog: () => void;
|
|
23
|
-
openObjectDialog: () => void;
|
|
24
|
-
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
25
|
-
};
|
|
1
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
2
|
+
import { ConfirmationOptions } from '@opengeoweb/shared';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
|
+
export declare const confirmationDialogOptions: (t: TFunction) => ConfirmationOptions;
|
|
5
|
+
export declare const useCloseDrawDialog: ({ mapId, source, }: {
|
|
6
|
+
mapId: string;
|
|
7
|
+
source?: uiTypes.Source | undefined;
|
|
8
|
+
}) => {
|
|
9
|
+
closeDrawDialog: (skipConfirmationDialog?: boolean) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const useCloseObjectDialog: ({ mapId, source, }: {
|
|
12
|
+
mapId: string;
|
|
13
|
+
source?: uiTypes.Source | undefined;
|
|
14
|
+
}) => {
|
|
15
|
+
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const useObjectDrawDialogAction: ({ mapId, source, }: {
|
|
18
|
+
mapId: string;
|
|
19
|
+
source?: uiTypes.Source | undefined;
|
|
20
|
+
}) => {
|
|
21
|
+
openDrawDialog: (geoJSON?: GeoJSON.FeatureCollection) => void;
|
|
22
|
+
closeDrawDialog: () => void;
|
|
23
|
+
openObjectDialog: () => void;
|
|
24
|
+
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
25
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,26 +1,26 @@
|
|
|
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';
|
|
5
|
-
export declare const opacityOptions: number[];
|
|
6
|
-
export declare const getObjectName: (objectName: string) => string;
|
|
7
|
-
export interface DrawingToolFormComponentProps {
|
|
8
|
-
onSubmitForm: (formValues: DrawingToolFormValues) => void;
|
|
9
|
-
objectName?: string;
|
|
10
|
-
isLoading?: boolean;
|
|
11
|
-
dialogError?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
drawModes: DrawMode[];
|
|
14
|
-
onChangeDrawMode: (newMode: DrawMode) => void;
|
|
15
|
-
activeDrawModeId: string;
|
|
16
|
-
onDeactivateTool: () => void;
|
|
17
|
-
isInEditMode: boolean;
|
|
18
|
-
geoJSONProperties: GeoJSON.GeoJsonProperties;
|
|
19
|
-
onChangeProperties: (properties: GeoJSON.GeoJsonProperties) => void;
|
|
20
|
-
onChangeName: (name: string) => void;
|
|
21
|
-
onFormDirty?: (isFormDirty: boolean) => void;
|
|
22
|
-
geoJSON: FeatureCollection<Geometry, GeoJsonProperties> | undefined;
|
|
23
|
-
}
|
|
24
|
-
declare const Wrapper: React.FC<DrawingToolFormComponentProps>;
|
|
25
|
-
export { Wrapper as DrawingToolForm };
|
|
26
|
-
export default Wrapper;
|
|
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';
|
|
5
|
+
export declare const opacityOptions: number[];
|
|
6
|
+
export declare const getObjectName: (objectName: string) => string;
|
|
7
|
+
export interface DrawingToolFormComponentProps {
|
|
8
|
+
onSubmitForm: (formValues: DrawingToolFormValues) => void;
|
|
9
|
+
objectName?: string;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
dialogError?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
drawModes: DrawMode[];
|
|
14
|
+
onChangeDrawMode: (newMode: DrawMode) => void;
|
|
15
|
+
activeDrawModeId: string;
|
|
16
|
+
onDeactivateTool: () => void;
|
|
17
|
+
isInEditMode: boolean;
|
|
18
|
+
geoJSONProperties: GeoJSON.GeoJsonProperties;
|
|
19
|
+
onChangeProperties: (properties: GeoJSON.GeoJsonProperties) => void;
|
|
20
|
+
onChangeName: (name: string) => void;
|
|
21
|
+
onFormDirty?: (isFormDirty: boolean) => void;
|
|
22
|
+
geoJSON: FeatureCollection<Geometry, GeoJsonProperties> | undefined;
|
|
23
|
+
}
|
|
24
|
+
declare const Wrapper: React.FC<DrawingToolFormComponentProps>;
|
|
25
|
+
export { Wrapper as DrawingToolForm };
|
|
26
|
+
export default Wrapper;
|