@opengeoweb/warnings 16.0.0 → 17.0.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 +2173 -935
- package/package.json +13 -13
- package/src/index.d.ts +0 -12
- package/src/lib/Warnings.stories.d.ts +0 -7
- package/src/lib/api/api-utils.d.ts +0 -12
- package/src/lib/api/api-utils.spec.d.ts +0 -1
- package/src/lib/api/aviation-api/api.d.ts +0 -23
- package/src/lib/api/aviation-api/errorHandling.d.ts +0 -1
- package/src/lib/api/aviation-api/fakeApi.d.ts +0 -8
- package/src/lib/api/aviation-api/hooks.d.ts +0 -43
- package/src/lib/api/aviation-api/queryOptions.d.ts +0 -68
- package/src/lib/api/hooks.spec.d.ts +0 -1
- package/src/lib/api/warning-api/api.d.ts +0 -18
- package/src/lib/api/warning-api/hooks.d.ts +0 -57
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +0 -9
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.spec.d.ts +0 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +0 -28
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.spec.d.ts +0 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +0 -16
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.d.ts +0 -6
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.stories.d.ts +0 -15
- package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +0 -28
- package/src/lib/components/AreaObjectLoader/AreasObjects.spec.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -20
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/index.d.ts +0 -1
- package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +0 -11
- package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +0 -16
- package/src/lib/components/DrawingTool/DrawingToolConnect.spec.d.ts +0 -1
- package/src/lib/components/DrawingTool/DrawingToolConnect.stories.d.ts +0 -6
- package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +0 -19
- package/src/lib/components/DrawingTool/DrawingToolDialog.spec.d.ts +0 -1
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +0 -8
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/DrawingTool/index.d.ts +0 -3
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +0 -25
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.spec.d.ts +0 -1
- package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +0 -26
- package/src/lib/components/DrawingToolForm/DrawingToolForm.spec.d.ts +0 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +0 -2
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +0 -28
- package/src/lib/components/DrawingToolForm/index.d.ts +0 -2
- package/src/lib/components/FilterList/ExpandableFilterChip.d.ts +0 -9
- package/src/lib/components/FilterList/ExpandableFilterChip.spec.d.ts +0 -1
- package/src/lib/components/FilterList/ExpandableFilterChip.stories.d.ts +0 -20
- package/src/lib/components/FilterList/FilterList.d.ts +0 -13
- package/src/lib/components/FilterList/TimeFilterChip.d.ts +0 -7
- package/src/lib/components/FilterList/filter-hooks.d.ts +0 -30
- package/src/lib/components/FilterList/filter-hooks.spec.d.ts +0 -1
- package/src/lib/components/FilterList/filter-styles.d.ts +0 -2
- package/src/lib/components/FilterList/filter-utils.d.ts +0 -111
- package/src/lib/components/FilterList/filter-utils.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/AreaList/AreaList.d.ts +0 -11
- package/src/lib/components/MaritimeWarningsForm/AreaList/AreaList.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/AreaList/index.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/AssignedAreas/AssignedAreas.d.ts +0 -13
- package/src/lib/components/MaritimeWarningsForm/AssignedAreas/AssignedAreas.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsAvatar.d.ts +0 -8
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.d.ts +0 -33
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.stories.d.ts +0 -15
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.d.ts +0 -8
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.stories.d.ts +0 -14
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningList.d.ts +0 -18
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListDragHandle.d.ts +0 -2
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListItem.d.ts +0 -17
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListItem.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.d.ts +0 -21
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/WarningList/WindForceSelect.d.ts +0 -24
- package/src/lib/components/MaritimeWarningsForm/WarningList/WindForceSelect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/index.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/testUtils.d.ts +0 -3
- package/src/lib/components/MaritimeWarningsForm/types.d.ts +0 -51
- package/src/lib/components/MaritimeWarningsForm/useConfirmDeleteDialog.d.ts +0 -12
- package/src/lib/components/MaritimeWarningsForm/useFilterChipSelect.d.ts +0 -12
- package/src/lib/components/MaritimeWarningsForm/useFilterChipSelect.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/useMaritimeWarningsFormState.d.ts +0 -63
- package/src/lib/components/MaritimeWarningsForm/useMaritimeWarningsFormState.spec.d.ts +0 -1
- package/src/lib/components/MaritimeWarningsForm/utils.d.ts +0 -7
- package/src/lib/components/MaritimeWarningsForm/utils.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +0 -10
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ObjectManager.d.ts +0 -25
- package/src/lib/components/ObjectManager/ObjectManager.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +0 -38
- package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +0 -6
- package/src/lib/components/ObjectManager/ObjectManagerConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +0 -10
- package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +0 -38
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +0 -6
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/Objects.d.ts +0 -22
- package/src/lib/components/ObjectManager/Objects.spec.d.ts +0 -1
- package/src/lib/components/ObjectManager/index.d.ts +0 -2
- package/src/lib/components/Providers/Providers.d.ts +0 -29
- package/src/lib/components/Providers/Providers.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +0 -14
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +0 -9
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.stories.d.ts +0 -12
- package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +0 -23
- package/src/lib/components/PublicWarningList/PublicWarningList.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +0 -64
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.aviation.drawTools.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.aviation.saveAndPublish.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.confirmation.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +0 -7
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.draft.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.editorToggle.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.filter.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.maritime.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.published.integration.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +0 -60
- package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +0 -10
- package/src/lib/components/PublicWarningList/WarningListHeaderContent.d.ts +0 -11
- package/src/lib/components/PublicWarningList/WarningListHeaderContent.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/WarningListItem.d.ts +0 -12
- package/src/lib/components/PublicWarningList/WarningListItem.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +0 -20
- package/src/lib/components/PublicWarningList/WarningListItemMenu.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +0 -11
- package/src/lib/components/PublicWarningList/index.d.ts +0 -2
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.d.ts +0 -9
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +0 -24
- package/src/lib/components/PublicWarningsForm/AreaField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.d.ts +0 -5
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +0 -10
- package/src/lib/components/PublicWarningsForm/DescriptionField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +0 -22
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/LevelField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +0 -11
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +0 -7
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ProbabilityField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +0 -45
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +0 -34
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +0 -14
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +0 -8
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +0 -24
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +0 -19
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ValidFromField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +0 -11
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/ValidUntilField/index.d.ts +0 -1
- package/src/lib/components/PublicWarningsForm/index.d.ts +0 -2
- package/src/lib/components/PublicWarningsFormDialog/AviationWarningCancelDialogContent.d.ts +0 -8
- package/src/lib/components/PublicWarningsFormDialog/AviationWarningCancelDialogContent.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsFormDialog/CancelAviationConfirmDialog.d.ts +0 -18
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +0 -25
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +0 -18
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +0 -13
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.spec.d.ts +0 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +0 -9
- package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +0 -9
- package/src/lib/components/PublicWarningsFormDialog/index.d.ts +0 -2
- package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +0 -11
- package/src/lib/components/WarningsMapView/WarningsMapView.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/WarningBlock.d.ts +0 -10
- package/src/lib/components/WarningsTimeline/WarningsTimeline.d.ts +0 -6
- package/src/lib/components/WarningsTimeline/WarningsTimeline.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/WarningsTimeline.stories.d.ts +0 -12
- package/src/lib/components/WarningsTimeline/WarningsTimelineConnect.d.ts +0 -5
- package/src/lib/components/WarningsTimeline/WarningsTimelineConnect.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/index.d.ts +0 -4
- package/src/lib/components/WarningsTimeline/warningBlockColors.d.ts +0 -16
- package/src/lib/components/WarningsTimeline/warningBlockColors.spec.d.ts +0 -1
- package/src/lib/components/WarningsTimeline/warningsTimelineUtils.d.ts +0 -15
- package/src/lib/components/WarningsTimeline/warningsTimelineUtils.spec.d.ts +0 -1
- package/src/lib/store/index.d.ts +0 -4
- package/src/lib/store/store.d.ts +0 -17
- package/src/lib/store/types.d.ts +0 -9
- package/src/lib/store/warningsDrawings/index.d.ts +0 -1
- package/src/lib/store/warningsDrawings/reducer.d.ts +0 -12
- package/src/lib/store/warningsDrawings/reducer.spec.d.ts +0 -1
- package/src/lib/store/warningsDrawings/selectors.d.ts +0 -45
- package/src/lib/store/warningsDrawings/selectors.spec.d.ts +0 -1
- package/src/lib/store/warningsDrawings/types.d.ts +0 -33
- package/src/lib/store/warningsDrawings/utils.d.ts +0 -4
- package/src/lib/store/warningsFilters/index.d.ts +0 -1
- package/src/lib/store/warningsFilters/reducer.d.ts +0 -11
- package/src/lib/store/warningsFilters/selectors.d.ts +0 -62
- package/src/lib/store/warningsFilters/selectors.spec.d.ts +0 -1
- package/src/lib/store/warningsFilters/types.d.ts +0 -7
- package/src/lib/store/warningsForm/index.d.ts +0 -2
- package/src/lib/store/warningsForm/listener.d.ts +0 -2
- package/src/lib/store/warningsForm/reducer.d.ts +0 -53
- package/src/lib/store/warningsForm/reducer.spec.d.ts +0 -1
- package/src/lib/store/warningsForm/selectors.d.ts +0 -192
- package/src/lib/store/warningsForm/selectors.spec.d.ts +0 -1
- package/src/lib/store/warningsForm/types.d.ts +0 -72
- package/src/lib/store/warningsForm/utils.d.ts +0 -2
- package/src/lib/storybookUtils/SimpleLinkMenu.d.ts +0 -6
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +0 -18
- package/src/lib/storybookUtils/storyComponents.d.ts +0 -5
- package/src/lib/storybookUtils/testUtils.d.ts +0 -11
- package/src/lib/utils/constants.d.ts +0 -1
- package/src/lib/utils/fakeApi/index.d.ts +0 -20
- package/src/lib/utils/fakeSigmetAirmet.d.ts +0 -3
- package/src/lib/utils/i18n.d.ts +0 -7
- package/src/lib/utils/sig-airmet-util.d.ts +0 -20
- package/src/lib/utils/sig-airmet-util.spec.d.ts +0 -1
- package/src/lib/utils/useFormDirty.d.ts +0 -7
- package/src/lib/utils/useFormDirty.spec.d.ts +0 -1
- package/src/lib/utils/warningUtils.d.ts +0 -18
- package/src/lib/utils/warningUtils.spec.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,24 +8,24 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/api": "
|
|
12
|
-
"@opengeoweb/shared": "
|
|
13
|
-
"@opengeoweb/store": "
|
|
14
|
-
"@opengeoweb/webmap-react": "
|
|
11
|
+
"@opengeoweb/api": "17.0.0",
|
|
12
|
+
"@opengeoweb/shared": "17.0.0",
|
|
13
|
+
"@opengeoweb/store": "17.0.0",
|
|
14
|
+
"@opengeoweb/webmap-react": "17.0.0",
|
|
15
15
|
"@tanstack/react-query": "^5.85.5",
|
|
16
16
|
"react-redux": "^9.2.0",
|
|
17
|
-
"@opengeoweb/theme": "
|
|
18
|
-
"@opengeoweb/form-fields": "
|
|
17
|
+
"@opengeoweb/theme": "17.0.0",
|
|
18
|
+
"@opengeoweb/form-fields": "17.0.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": "
|
|
22
|
+
"@opengeoweb/snackbar": "17.0.0",
|
|
23
23
|
"react-window": "^2.2.6",
|
|
24
24
|
"axios": "^1.7.7",
|
|
25
|
-
"@opengeoweb/core": "
|
|
26
|
-
"@opengeoweb/webmap": "
|
|
27
|
-
"@opengeoweb/authentication": "
|
|
28
|
-
"@opengeoweb/sigmet-airmet": "
|
|
25
|
+
"@opengeoweb/core": "17.0.0",
|
|
26
|
+
"@opengeoweb/webmap": "17.0.0",
|
|
27
|
+
"@opengeoweb/authentication": "17.0.0",
|
|
28
|
+
"@opengeoweb/sigmet-airmet": "17.0.0",
|
|
29
29
|
"react-i18next": "^15.1.1",
|
|
30
30
|
"i18next": "^25.0.1",
|
|
31
31
|
"@mui/material": "^7.0.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@emotion/styled": "*"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"eslint-plugin-storybook": "
|
|
44
|
+
"eslint-plugin-storybook": "10.3.3"
|
|
45
45
|
},
|
|
46
46
|
"module": "./index.esm.js",
|
|
47
47
|
"type": "module",
|
package/src/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import warningsTranslations from '../locales/warnings.json';
|
|
2
|
-
export * from './lib/components/ObjectManager';
|
|
3
|
-
export * from './lib/components/DrawingTool';
|
|
4
|
-
export * from './lib/components/DrawingToolForm';
|
|
5
|
-
export * from './lib/components/PublicWarningsFormDialog';
|
|
6
|
-
export * from './lib/components/ComponentsLookUp';
|
|
7
|
-
export * from './lib/components/WarningsTimeline';
|
|
8
|
-
export * from './lib/store';
|
|
9
|
-
export { WARN_NAMESPACE } from './lib/utils/i18n';
|
|
10
|
-
export { warningsTranslations };
|
|
11
|
-
export * as publicWarningsSelectors from './lib/store/warningsFilters/selectors';
|
|
12
|
-
export type * from './lib/store/types';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { TimeFilter } from '../components/FilterList/filter-utils';
|
|
2
|
-
import type { Warning } from '../store/warningsForm/types';
|
|
3
|
-
interface WarningsResponse {
|
|
4
|
-
combinedWarnings: Warning[];
|
|
5
|
-
refetchWarnings: () => void;
|
|
6
|
-
isFetching: boolean;
|
|
7
|
-
error?: Error;
|
|
8
|
-
dataUpdatedAt: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const useWarnings: (disabled?: boolean, timeFilter?: TimeFilter) => WarningsResponse;
|
|
11
|
-
export declare function useAutoRefetchOnExpiry(combinedWarnings: Warning[], refetchWarnings: () => void): void;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
export declare const airmetBaseUrl: string;
|
|
5
|
-
export declare const sigmetBaseUrl: string;
|
|
6
|
-
export declare const getAirmetList: (auth: Credentials, params?: Record<string, string>) => Promise<AirmetFromBackend[]>;
|
|
7
|
-
export declare const getSigmetList: (auth: Credentials, params?: Record<string, string>) => Promise<SigmetFromBackend[]>;
|
|
8
|
-
export declare const getAirmetConfig: (auth: Credentials) => Promise<AirmetConfig>;
|
|
9
|
-
export declare const getSigmetConfig: (auth: Credentials) => Promise<SigmetConfig>;
|
|
10
|
-
export declare const getAirmetTAC: (product: AviationProduct, auth?: Credentials) => Promise<{
|
|
11
|
-
data: string;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const getSigmetTAC: (product: AviationProduct, auth?: Credentials) => Promise<{
|
|
14
|
-
data: string;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const getAirmetCancelTAC: (product: AviationProduct, auth?: Credentials) => Promise<{
|
|
17
|
-
data: string;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const getSigmetCancelTAC: (product: AviationProduct, auth?: Credentials) => Promise<{
|
|
20
|
-
data: string;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const postSigmet: (auth: Credentials, data: SigmetFromFrontend) => Promise<SigmetFromBackend>;
|
|
23
|
-
export declare const postAirmet: (auth: Credentials, data: AirmetFromFrontend) => Promise<AirmetFromBackend>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function humanizeApiErrorMessage(err: unknown): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
|
|
2
|
-
export declare const airmetList: AirmetFromBackend[];
|
|
3
|
-
export declare const sigmetList: SigmetFromBackend[];
|
|
4
|
-
export declare const fakeSigmetTAC = "EHAA SIGMET T01 VALID 121249/121449 EHDB- EHAA AMSTERDAM FIR FRQ TS OBS ENTIRE FIR FL010 STNR WKN";
|
|
5
|
-
export declare const fakeAirmetTAC = "EHAA AIRMET -1 VALID 310700/311100 EHDB- EHAA AMSTERDAM FIR ISOL CB OBS ENTIRE FIR FL020 STNR NC";
|
|
6
|
-
export declare const fakeDraftCancelSigmetTAC = "EHAA SIGMET T02 121249/121449 EHDB- EHAA AMSTERDAM FIR";
|
|
7
|
-
export declare const fakeDraftCancelAirmetTAC = "EHAA AIRMET 2 310700/311100 EHDB- EHAA AMSTERDAM FIR ";
|
|
8
|
-
export declare const aviationEndpoints: import("msw").HttpHandler[];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import type { AirmetConfig, AirmetFromBackend, SigmetConfig, SigmetFromBackend } from '@opengeoweb/api';
|
|
3
|
-
import type { AirmetFromFrontend, AviationProduct, SigmetFromFrontend } from '@opengeoweb/sigmet-airmet';
|
|
4
|
-
import type { TimeFilter } from '../../components/FilterList/filter-utils';
|
|
5
|
-
import type { WarningType } from '../../store/warningsForm/types';
|
|
6
|
-
interface TACData {
|
|
7
|
-
data: string;
|
|
8
|
-
}
|
|
9
|
-
type TACResult = UseQueryResult<{
|
|
10
|
-
data: string;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const useAirmetList: (disabled?: boolean, timeFilter?: TimeFilter) => UseQueryResult<AirmetFromBackend[]>;
|
|
13
|
-
export declare const useSigmetList: (disabled?: boolean, timeFilter?: TimeFilter) => UseQueryResult<SigmetFromBackend[]>;
|
|
14
|
-
export declare const useAviationWarnings: () => (SigmetFromBackend | AirmetFromBackend)[];
|
|
15
|
-
export declare const useProductConfig: (warningType?: WarningType, disabled?: boolean) => UseQueryResult<SigmetConfig | AirmetConfig>;
|
|
16
|
-
export declare const useFetchSigmetTAC: (product: AviationProduct, enabled?: boolean) => TACResult;
|
|
17
|
-
export declare const useFetchAirmetTAC: (product: AviationProduct, enabled?: boolean) => TACResult;
|
|
18
|
-
export declare const useFetchSigmetCancelTAC: (product: AviationProduct, enabled?: boolean) => TACResult;
|
|
19
|
-
export declare const useFetchAirmetCancelTAC: (product: AviationProduct, enabled?: boolean) => TACResult;
|
|
20
|
-
interface UseTACApi {
|
|
21
|
-
fetchSigmetTAC: (product: AviationProduct) => Promise<TACData>;
|
|
22
|
-
fetchAirmetTAC: (product: AviationProduct) => Promise<TACData>;
|
|
23
|
-
fetchSigmetCancelTAC: (product: AviationProduct) => Promise<TACData>;
|
|
24
|
-
fetchAirmetCancelTAC: (product: AviationProduct) => Promise<TACData>;
|
|
25
|
-
}
|
|
26
|
-
export declare const useTACApi: () => UseTACApi;
|
|
27
|
-
/**
|
|
28
|
-
* Hook for posting a SIGMET, with feedback.
|
|
29
|
-
*
|
|
30
|
-
* @param snackBarMessage - Message to show on success.
|
|
31
|
-
* @param onDialogClose - Optional callback to close a dialog.
|
|
32
|
-
* @returns A mutation result for posting a SIGMET.
|
|
33
|
-
*/
|
|
34
|
-
export declare const usePostSigmet: () => UseMutationResult<SigmetFromBackend, Error, SigmetFromFrontend>;
|
|
35
|
-
/**
|
|
36
|
-
* Hook for posting an AIRMET, with feedback.
|
|
37
|
-
*
|
|
38
|
-
* @param snackBarMessage - Message to show on success.
|
|
39
|
-
* @param onDialogClose - Optional callback to close a dialog.
|
|
40
|
-
* @returns A mutation result for posting an AIRMET.
|
|
41
|
-
*/
|
|
42
|
-
export declare const usePostAirmet: () => UseMutationResult<AirmetFromBackend, Error, AirmetFromFrontend>;
|
|
43
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { Credentials } from '@opengeoweb/authentication';
|
|
2
|
-
import type { AviationProduct } from '@opengeoweb/sigmet-airmet';
|
|
3
|
-
export declare const aviationQueryOptions: {
|
|
4
|
-
readonly getSigmetTAC: (product: AviationProduct, credentials?: Credentials) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
5
|
-
data: string;
|
|
6
|
-
}, Error, {
|
|
7
|
-
data: string;
|
|
8
|
-
}, string[]>, "queryFn"> & {
|
|
9
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
10
|
-
data: string;
|
|
11
|
-
}, string[], never> | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
queryKey: string[] & {
|
|
14
|
-
[dataTagSymbol]: {
|
|
15
|
-
data: string;
|
|
16
|
-
};
|
|
17
|
-
[dataTagErrorSymbol]: Error;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
readonly getAirmetTAC: (product: AviationProduct, credentials?: Credentials) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
21
|
-
data: string;
|
|
22
|
-
}, Error, {
|
|
23
|
-
data: string;
|
|
24
|
-
}, string[]>, "queryFn"> & {
|
|
25
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
26
|
-
data: string;
|
|
27
|
-
}, string[], never> | undefined;
|
|
28
|
-
} & {
|
|
29
|
-
queryKey: string[] & {
|
|
30
|
-
[dataTagSymbol]: {
|
|
31
|
-
data: string;
|
|
32
|
-
};
|
|
33
|
-
[dataTagErrorSymbol]: Error;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
readonly getSigmetCancelTAC: (product: AviationProduct, credentials?: Credentials) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
37
|
-
data: string;
|
|
38
|
-
}, Error, {
|
|
39
|
-
data: string;
|
|
40
|
-
}, string[]>, "queryFn"> & {
|
|
41
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
42
|
-
data: string;
|
|
43
|
-
}, string[], never> | undefined;
|
|
44
|
-
} & {
|
|
45
|
-
queryKey: string[] & {
|
|
46
|
-
[dataTagSymbol]: {
|
|
47
|
-
data: string;
|
|
48
|
-
};
|
|
49
|
-
[dataTagErrorSymbol]: Error;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
readonly getAirmetCancelTAC: (product: AviationProduct, credentials?: Credentials) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
53
|
-
data: string;
|
|
54
|
-
}, Error, {
|
|
55
|
-
data: string;
|
|
56
|
-
}, string[]>, "queryFn"> & {
|
|
57
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
58
|
-
data: string;
|
|
59
|
-
}, string[], never> | undefined;
|
|
60
|
-
} & {
|
|
61
|
-
queryKey: string[] & {
|
|
62
|
-
[dataTagSymbol]: {
|
|
63
|
-
data: string;
|
|
64
|
-
};
|
|
65
|
-
[dataTagErrorSymbol]: Error;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Credentials } from '@opengeoweb/authentication';
|
|
2
|
-
import type { MaritimeWarningsConfig } from '../../components/MaritimeWarningsForm/types';
|
|
3
|
-
import type { DrawingFromBE, DrawingFromFE, DrawingListItem, FetchDrawingParams } from '../../store/warningsDrawings/types';
|
|
4
|
-
import type { MaritimeWarning, MaritimeWarningsType, PublicWarning } from '../../store/warningsForm/types';
|
|
5
|
-
export declare const getPublicWarningList: (auth: Credentials, apiParams?: Record<string, string>) => Promise<PublicWarning[]>;
|
|
6
|
-
export declare const updatePublicWarningEditor: (warningId: string, isEditor: boolean, auth: Credentials, force?: boolean) => Promise<Headers | null>;
|
|
7
|
-
export declare const updatePublicWarning: (warningId: string, auth: Credentials, data: PublicWarning) => Promise<Headers | null>;
|
|
8
|
-
export declare const postPublicWarning: (auth: Credentials, data: PublicWarning) => Promise<Headers | null>;
|
|
9
|
-
export declare const postMaritimeWarnings: (auth: Credentials, data: MaritimeWarning[]) => Promise<Headers | null>;
|
|
10
|
-
export declare const updateMaritimeWarningsEditor: (domain: MaritimeWarningsType, isEditor: boolean, auth: Credentials, force?: boolean) => Promise<Headers | null>;
|
|
11
|
-
export declare const deleteWarning: (warningId: string, auth: Credentials) => Promise<null>;
|
|
12
|
-
export declare const getDrawings: (auth: Credentials, params?: FetchDrawingParams) => Promise<DrawingListItem[]>;
|
|
13
|
-
export declare const getDrawingDetails: (auth: Credentials, drawingId: string) => Promise<DrawingFromBE>;
|
|
14
|
-
export declare const getAreaKeywords: (auth: Credentials) => Promise<string[]>;
|
|
15
|
-
export declare const saveDrawingAs: (auth: Credentials, data: DrawingFromFE) => Promise<Headers>;
|
|
16
|
-
export declare const updateDrawing: (auth: Credentials, drawingId: string, data: DrawingFromFE) => Promise<void>;
|
|
17
|
-
export declare const deleteDrawing: (auth: Credentials, drawingId: string) => Promise<void>;
|
|
18
|
-
export declare const getMaritimeWarningsConfig: (auth: Credentials) => Promise<MaritimeWarningsConfig>;
|
|
@@ -1,57 +0,0 @@
|
|
|
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 { DrawingFromBE, DrawingFromFE, DrawingListItem, FetchDrawingParams } from '../../store/warningsDrawings/types';
|
|
5
|
-
import type { MaritimeWarning, MaritimeWarningsType, PublicWarning } from '../../store/warningsForm/types';
|
|
6
|
-
/**
|
|
7
|
-
* @param disabled - Disables fetching, but still returns cached values.
|
|
8
|
-
* https://tanstack.com/query/v4/docs/framework/react/guides/disabling-queries
|
|
9
|
-
*/
|
|
10
|
-
export declare const usePublicWarnings: (disabled?: boolean, timeFilter?: TimeFilter) => UseQueryResult<(PublicWarning | MaritimeWarning)[]>;
|
|
11
|
-
type MutationReturnType<T> = UseMutationResult<Headers | null, Error, T, {
|
|
12
|
-
oldData: PublicWarning[] | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
type DrawingMutationReturnType<T> = UseMutationResult<{
|
|
15
|
-
id: string;
|
|
16
|
-
}, Error, T, void>;
|
|
17
|
-
interface MutateEditorProps {
|
|
18
|
-
id: string;
|
|
19
|
-
isEditor: boolean;
|
|
20
|
-
force?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare const useMutatePublicWarningEditor: () => MutationReturnType<MutateEditorProps>;
|
|
23
|
-
interface UpdateWarningProps {
|
|
24
|
-
id?: string;
|
|
25
|
-
data: PublicWarning;
|
|
26
|
-
panelId?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const useMutateWarning: (snackBarMessage: string) => MutationReturnType<UpdateWarningProps>;
|
|
29
|
-
export declare const useMutateDeleteWarning: () => MutationReturnType<{
|
|
30
|
-
id: string;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const usePublishWarning: () => MutationReturnType<UpdateWarningProps>;
|
|
33
|
-
export declare const useSaveWarning: () => MutationReturnType<UpdateWarningProps>;
|
|
34
|
-
export declare const useDrawings: (params?: FetchDrawingParams, enabled?: boolean) => UseQueryResult<DrawingListItem[]>;
|
|
35
|
-
export declare const useDrawingDetails: (drawingId: string) => UseQueryResult<DrawingFromBE>;
|
|
36
|
-
export declare const useAreaKeywords: (enabled?: boolean) => UseQueryResult<string[]>;
|
|
37
|
-
export declare const useMutateSaveOrUpdateDrawing: () => DrawingMutationReturnType<{
|
|
38
|
-
data: DrawingFromFE;
|
|
39
|
-
id?: string;
|
|
40
|
-
}>;
|
|
41
|
-
interface DeleteDrawingParams {
|
|
42
|
-
drawingId: string;
|
|
43
|
-
objectName: string;
|
|
44
|
-
}
|
|
45
|
-
export declare const useMutateDeleteDrawing: () => UseMutationResult<{
|
|
46
|
-
id: string;
|
|
47
|
-
}, Error, DeleteDrawingParams>;
|
|
48
|
-
export declare const BE_EDITOR_WARNING = "Warning is being edited by another user and cannot be updated";
|
|
49
|
-
export declare const usePostMaritimeWarnings: () => MutationReturnType<MaritimeWarning[]>;
|
|
50
|
-
interface MutateMaritimeEditorParams {
|
|
51
|
-
domain: MaritimeWarningsType;
|
|
52
|
-
isEditor: boolean;
|
|
53
|
-
force?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export declare const useMutateMaritimeWarningsEditor: () => MutationReturnType<MutateMaritimeEditorParams>;
|
|
56
|
-
export declare const useMaritimeWarningsConfig: (disabled?: boolean) => UseQueryResult<MaritimeWarningsConfig>;
|
|
57
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ListFilter } from '@opengeoweb/shared';
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
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 { DrawingListItem } from '../../store/warningsDrawings/types';
|
|
6
|
-
import type { Area } from '../../store/warningsForm/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
|
-
shouldDisableRemoveWarning?: boolean;
|
|
28
|
-
} & AreaObjectFilterProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { AreaObjectLoader } from './AreaObjectLoader';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
tags: string[];
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
type Story = StoryObj<typeof AreaObjectLoader>;
|
|
9
|
-
export declare const AreaObjectLoaderSmall: Story;
|
|
10
|
-
export declare const AreaObjectLoaderLight: Story;
|
|
11
|
-
export declare const AreaObjectLoaderDark: Story;
|
|
12
|
-
export declare const AreaObjectLoaderLightNoResults: Story;
|
|
13
|
-
export declare const AreaObjectLoaderDarkNoResults: Story;
|
|
14
|
-
export declare const AreaObjectLoaderLoading: Story;
|
|
15
|
-
export declare const AreaObjectLoaderErrorLight: Story;
|
|
16
|
-
export declare const AreaObjectLoaderErrorDark: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
tags: string[];
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const AreaObjectLoaderDemo: () => React.ReactElement;
|
|
8
|
-
export declare const AreaObjectLoaderDemoWithError: {
|
|
9
|
-
(): React.ReactElement;
|
|
10
|
-
parameters: {
|
|
11
|
-
msw: {
|
|
12
|
-
handlers: import("msw").HttpHandler[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import type { FC } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import type { DrawingListItem } from '../../store/warningsDrawings/types';
|
|
5
|
-
import type { Area } from '../../store/warningsForm/types';
|
|
6
|
-
interface ObjectAreaList {
|
|
7
|
-
title: string;
|
|
8
|
-
items: DrawingListItem[];
|
|
9
|
-
}
|
|
10
|
-
export declare const useGetFilterHeight: (filterRef?: React.MutableRefObject<HTMLElement>) => number;
|
|
11
|
-
export declare const getListInclHeaders: (items: DrawingListItem[], translateFn: TFunction) => {
|
|
12
|
-
objects: ObjectAreaList;
|
|
13
|
-
areas: ObjectAreaList;
|
|
14
|
-
};
|
|
15
|
-
export declare const getLabel: (selectedAreas: Area[], isAreaSelected: boolean) => string;
|
|
16
|
-
export declare const getDisplayDate: (date: string) => string;
|
|
17
|
-
export declare const AreasObjects: FC<{
|
|
18
|
-
drawingListItems: DrawingListItem[];
|
|
19
|
-
isLoading?: boolean;
|
|
20
|
-
hasError?: boolean;
|
|
21
|
-
filterRef?: React.MutableRefObject<HTMLElement>;
|
|
22
|
-
onAddArea?: (drawingListItem: DrawingListItem) => void;
|
|
23
|
-
onRemoveArea?: (drawingListItem: DrawingListItem) => void;
|
|
24
|
-
selectedAreas?: Area[];
|
|
25
|
-
isChangeAreaDisabled?: boolean;
|
|
26
|
-
shouldDisableRemoveWarning?: boolean;
|
|
27
|
-
}>;
|
|
28
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
export type WarningListComponentType = 'WarningList' | 'MaritimeWarnings';
|
|
6
|
-
interface WarningsInitialProps {
|
|
7
|
-
filterState?: PickedFilterState;
|
|
8
|
-
domain?: MaritimeWarningsDomain;
|
|
9
|
-
}
|
|
10
|
-
export interface ComponentsLookUpPayload {
|
|
11
|
-
componentType: WarningListComponentType;
|
|
12
|
-
id: string;
|
|
13
|
-
title?: string;
|
|
14
|
-
initialProps: WarningsInitialProps;
|
|
15
|
-
}
|
|
16
|
-
export interface ApiModuleProps extends ApiModule {
|
|
17
|
-
config: ApiUrls;
|
|
18
|
-
}
|
|
19
|
-
export declare const componentsLookUp: (payload: ComponentsLookUpPayload, ComponentsLookUpWrapper?: any) => React.ReactElement;
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ComponentsLookUp';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { DrawingToolForm } from '../DrawingToolForm';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
tags: string[];
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
type Story = StoryObj<typeof DrawingToolForm>;
|
|
9
|
-
export declare const DrawingToolLight: Story;
|
|
10
|
-
export declare const DrawingToolDark: Story;
|
|
11
|
-
export declare const DrawingToolErrorLight: Story;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
4
|
-
import type { DrawMode } from '@opengeoweb/webmap-react';
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { HeaderSize, Position, DraggableSize } from '@opengeoweb/shared';
|
|
3
|
-
import type { 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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { 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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import type { ConfirmationOptions } from '@opengeoweb/shared';
|
|
3
|
-
import type { uiTypes } from '@opengeoweb/store';
|
|
4
|
-
export declare const confirmationDialogOptions: (t: TFunction) => ConfirmationOptions;
|
|
5
|
-
export declare const useCloseDrawDialog: ({ mapId, source, }: {
|
|
6
|
-
mapId: string;
|
|
7
|
-
source?: uiTypes.Source;
|
|
8
|
-
}) => {
|
|
9
|
-
closeDrawDialog: (skipConfirmationDialog?: boolean) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const useCloseObjectDialog: ({ mapId, source, }: {
|
|
12
|
-
mapId: string;
|
|
13
|
-
source?: uiTypes.Source;
|
|
14
|
-
}) => {
|
|
15
|
-
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
16
|
-
};
|
|
17
|
-
export declare const useObjectDrawDialogAction: ({ mapId, source, }: {
|
|
18
|
-
mapId: string;
|
|
19
|
-
source?: uiTypes.Source;
|
|
20
|
-
}) => {
|
|
21
|
-
openDrawDialog: (geoJSON?: GeoJSON.FeatureCollection) => void;
|
|
22
|
-
closeDrawDialog: () => void;
|
|
23
|
-
openObjectDialog: () => void;
|
|
24
|
-
closeObjectDialog: (shouldReset?: boolean) => void;
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|