@opengeoweb/warnings 9.28.1 → 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.
Files changed (154) hide show
  1. package/index.esm.js +775 -648
  2. package/package.json +1 -1
  3. package/src/index.d.ts +10 -10
  4. package/src/lib/Warnings.stories.d.ts +6 -6
  5. package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +9 -9
  6. package/src/lib/components/AreaObjectLoader/AreaObjectFilter.spec.d.ts +1 -1
  7. package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +27 -27
  8. package/src/lib/components/AreaObjectLoader/AreaObjectLoader.spec.d.ts +1 -1
  9. package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +40 -40
  10. package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.d.ts +6 -6
  11. package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.integration.spec.d.ts +1 -1
  12. package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.stories.d.ts +7 -7
  13. package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +25 -25
  14. package/src/lib/components/AreaObjectLoader/AreasObjects.spec.d.ts +1 -1
  15. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +15 -15
  16. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +1 -1
  17. package/src/lib/components/ComponentsLookUp/index.d.ts +1 -1
  18. package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +34 -34
  19. package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +16 -16
  20. package/src/lib/components/DrawingTool/DrawingToolConnect.spec.d.ts +1 -1
  21. package/src/lib/components/DrawingTool/DrawingToolConnect.stories.d.ts +6 -6
  22. package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +19 -19
  23. package/src/lib/components/DrawingTool/DrawingToolDialog.spec.d.ts +1 -1
  24. package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +8 -8
  25. package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts +1 -1
  26. package/src/lib/components/DrawingTool/index.d.ts +3 -3
  27. package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +25 -25
  28. package/src/lib/components/DrawingTool/useObjectDrawDialogAction.spec.d.ts +1 -1
  29. package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +26 -26
  30. package/src/lib/components/DrawingToolForm/DrawingToolForm.spec.d.ts +1 -1
  31. package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +2 -2
  32. package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.integration.spec.d.ts +1 -1
  33. package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +27 -27
  34. package/src/lib/components/DrawingToolForm/index.d.ts +2 -2
  35. package/src/lib/components/FilterList/FilterChipWithOptions.d.ts +7 -7
  36. package/src/lib/components/FilterList/FilterChipWithOptions.spec.d.ts +1 -1
  37. package/src/lib/components/FilterList/FilterChipWithOptions.stories.d.ts +19 -19
  38. package/src/lib/components/FilterList/FilterChipWithOptionsConnect.d.ts +7 -7
  39. package/src/lib/components/FilterList/FilterList.d.ts +13 -13
  40. package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +11 -11
  41. package/src/lib/components/ObjectManager/ConfirmDeleteDialog.spec.d.ts +1 -1
  42. package/src/lib/components/ObjectManager/ObjectManager.d.ts +25 -25
  43. package/src/lib/components/ObjectManager/ObjectManager.spec.d.ts +1 -1
  44. package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +46 -46
  45. package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +6 -6
  46. package/src/lib/components/ObjectManager/ObjectManagerConnect.integration.spec.d.ts +1 -1
  47. package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +25 -25
  48. package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +9 -9
  49. package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +6 -6
  50. package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.spec.d.ts +1 -1
  51. package/src/lib/components/ObjectManager/Objects.d.ts +22 -22
  52. package/src/lib/components/ObjectManager/Objects.spec.d.ts +1 -1
  53. package/src/lib/components/ObjectManager/index.d.ts +2 -2
  54. package/src/lib/components/Providers/Providers.d.ts +19 -19
  55. package/src/lib/components/Providers/Providers.spec.d.ts +1 -1
  56. package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +13 -13
  57. package/src/lib/components/PublicWarningList/ConfirmWarningDialog.spec.d.ts +1 -1
  58. package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +28 -27
  59. package/src/lib/components/PublicWarningList/PublicWarningList.spec.d.ts +1 -1
  60. package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +35 -35
  61. package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +3 -3
  62. package/src/lib/components/PublicWarningList/PublicWarningListConnect.editorToggle.integration.spec.d.ts +1 -1
  63. package/src/lib/components/PublicWarningList/PublicWarningListConnect.filter.integration.spec.d.ts +1 -1
  64. package/src/lib/components/PublicWarningList/PublicWarningListConnect.integration.spec.d.ts +1 -1
  65. package/src/lib/components/PublicWarningList/PublicWarningListConnect.published.integration.spec.d.ts +1 -1
  66. package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +9 -9
  67. package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +10 -0
  68. package/src/lib/components/PublicWarningList/WarningListItem.d.ts +17 -26
  69. package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +14 -0
  70. package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +8 -8
  71. package/src/lib/components/PublicWarningList/index.d.ts +2 -2
  72. package/src/lib/components/PublicWarningsForm/AreaField/AreaField.d.ts +9 -9
  73. package/src/lib/components/PublicWarningsForm/AreaField/AreaField.spec.d.ts +1 -1
  74. package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +13 -13
  75. package/src/lib/components/PublicWarningsForm/AreaField/index.d.ts +1 -1
  76. package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.d.ts +5 -5
  77. package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.spec.d.ts +1 -1
  78. package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +21 -21
  79. package/src/lib/components/PublicWarningsForm/DescriptionField/index.d.ts +1 -1
  80. package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +22 -21
  81. package/src/lib/components/PublicWarningsForm/LevelField/LevelField.spec.d.ts +1 -1
  82. package/src/lib/components/PublicWarningsForm/LevelField/index.d.ts +1 -1
  83. package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +11 -11
  84. package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.spec.d.ts +1 -1
  85. package/src/lib/components/PublicWarningsForm/PhenomenonField/index.d.ts +1 -1
  86. package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +7 -7
  87. package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.spec.d.ts +1 -1
  88. package/src/lib/components/PublicWarningsForm/ProbabilityField/index.d.ts +1 -1
  89. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +32 -32
  90. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.spec.d.ts +1 -1
  91. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +29 -29
  92. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +10 -10
  93. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.spec.d.ts +1 -1
  94. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +7 -7
  95. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +7 -7
  96. package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +9 -9
  97. package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.spec.d.ts +1 -1
  98. package/src/lib/components/PublicWarningsForm/ValidFromField/index.d.ts +1 -1
  99. package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +11 -11
  100. package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.spec.d.ts +1 -1
  101. package/src/lib/components/PublicWarningsForm/ValidUntilField/index.d.ts +1 -1
  102. package/src/lib/components/PublicWarningsForm/index.d.ts +2 -2
  103. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +21 -21
  104. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.spec.d.ts +1 -1
  105. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +57 -57
  106. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +16 -16
  107. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.spec.d.ts +1 -1
  108. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +8 -8
  109. package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +8 -8
  110. package/src/lib/components/PublicWarningsFormDialog/index.d.ts +2 -2
  111. package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +14 -14
  112. package/src/lib/components/WarningsMapView/WarningsMapView.spec.d.ts +1 -1
  113. package/src/lib/components/WarningsModuleProvider/WarningsModuleProvider.d.ts +7 -7
  114. package/src/lib/components/WarningsModuleProvider/index.d.ts +1 -1
  115. package/src/lib/store/config.d.ts +10 -10
  116. package/src/lib/store/drawings/listener.d.ts +2 -2
  117. package/src/lib/store/drawings/reducer.d.ts +13 -13
  118. package/src/lib/store/drawings/reducer.spec.d.ts +1 -1
  119. package/src/lib/store/drawings/selectors.d.ts +9 -9
  120. package/src/lib/store/drawings/selectors.spec.d.ts +1 -1
  121. package/src/lib/store/drawings/types.d.ts +33 -33
  122. package/src/lib/store/drawings/utils.d.ts +4 -4
  123. package/src/lib/store/publicWarningForm/listener.d.ts +2 -2
  124. package/src/lib/store/publicWarningForm/reducer.d.ts +67 -66
  125. package/src/lib/store/publicWarningForm/reducer.spec.d.ts +1 -1
  126. package/src/lib/store/publicWarningForm/selectors.d.ts +53 -53
  127. package/src/lib/store/publicWarningForm/selectors.spec.d.ts +1 -1
  128. package/src/lib/store/publicWarningForm/types.d.ts +41 -40
  129. package/src/lib/store/publicWarningForm/utils.d.ts +2 -2
  130. package/src/lib/store/publicWarnings/listener.d.ts +3 -3
  131. package/src/lib/store/publicWarnings/listener.spec.d.ts +1 -1
  132. package/src/lib/store/publicWarnings/reducer.d.ts +27 -27
  133. package/src/lib/store/publicWarnings/reducer.spec.d.ts +1 -1
  134. package/src/lib/store/publicWarnings/selectors.d.ts +36 -36
  135. package/src/lib/store/publicWarnings/selectors.spec.d.ts +1 -1
  136. package/src/lib/store/publicWarnings/types.d.ts +39 -39
  137. package/src/lib/store/publicWarnings/utils.d.ts +23 -23
  138. package/src/lib/store/publicWarnings/utils.spec.d.ts +1 -1
  139. package/src/lib/store/types.d.ts +9 -9
  140. package/src/lib/storybookUtils/defaultStorySettings.d.ts +18 -18
  141. package/src/lib/storybookUtils/storyComponents.d.ts +7 -7
  142. package/src/lib/storybookUtils/testUtils.d.ts +3 -3
  143. package/src/lib/utils/api.d.ts +30 -30
  144. package/src/lib/utils/api.spec.d.ts +1 -1
  145. package/src/lib/utils/constants.d.ts +1 -1
  146. package/src/lib/utils/fakeApi/index.d.ts +7 -7
  147. package/src/lib/utils/fakeApi.d.ts +6 -6
  148. package/src/lib/utils/fakeApi.spec.d.ts +1 -1
  149. package/src/lib/utils/i18n.d.ts +7 -7
  150. package/src/lib/utils/sig-airmet-util.d.ts +5 -5
  151. package/src/lib/utils/useFormDirty.d.ts +7 -7
  152. package/src/lib/utils/useFormDirty.spec.d.ts +1 -1
  153. package/src/lib/utils/warningUtils.d.ts +12 -7
  154. package/src/lib/utils/warningUtils.spec.d.ts +1 -1
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- import { Bbox } from '@opengeoweb/webmap';
3
- interface PublicWarningsFormConnectProps {
4
- defaultBbox?: {
5
- srs: string;
6
- bbox: Bbox;
7
- };
8
- }
9
- export declare const PublicWarningsFormConnect: React.FC<PublicWarningsFormConnectProps>;
10
- export {};
1
+ import * as React from 'react';
2
+ import { Bbox } from '@opengeoweb/webmap';
3
+ interface PublicWarningsFormConnectProps {
4
+ defaultBbox?: {
5
+ srs: string;
6
+ bbox: Bbox;
7
+ };
8
+ }
9
+ export declare const PublicWarningsFormConnect: React.FC<PublicWarningsFormConnectProps>;
10
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const PublicWarningsFormConnectDemo: () => React.ReactElement;
7
- export declare const PublicWarningsFormConnectDemoWithValues: () => React.ReactElement;
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const PublicWarningsFormConnectDemo: () => React.ReactElement;
7
+ export declare const PublicWarningsFormConnectDemoWithValues: () => React.ReactElement;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const SaveError: () => React.ReactElement;
7
- export declare const PublishError: () => React.ReactElement;
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const SaveError: () => React.ReactElement;
7
+ export declare const PublishError: () => React.ReactElement;
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- import { TFunction } from 'i18next';
3
- export declare const VALID_FROM_MAX_HOURS_AFTER_CURRENT = 168;
4
- export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
5
- export declare const isMaxHoursAfterCurrentTime: (value: string, t: TFunction) => boolean | string;
6
- export declare const ValidFrom: React.FC<{
7
- isDisabled?: boolean;
8
- isReadOnly?: boolean;
9
- }>;
1
+ import * as React from 'react';
2
+ import { TFunction } from 'i18next';
3
+ export declare const VALID_FROM_MAX_HOURS_AFTER_CURRENT = 168;
4
+ export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
5
+ export declare const isMaxHoursAfterCurrentTime: (value: string, t: TFunction) => boolean | string;
6
+ export declare const ValidFrom: React.FC<{
7
+ isDisabled?: boolean;
8
+ isReadOnly?: boolean;
9
+ }>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export * from './ValidFromField';
1
+ export * from './ValidFromField';
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
2
- import { TFunction } from 'i18next';
3
- export declare const VALID_UNTIL_MAX_HOURS_AFTER_CURRENT = 180;
4
- export declare const VALID_UNTIL_MIN_HOURS_AFTER_VALID_FROM = 1;
5
- export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
6
- export declare const isMaxHoursAfterCurrentTime: (value: string, t: TFunction) => boolean | string;
7
- export declare const isMinHoursAfterValidFrom: (value: string, validFromValue: string, t: TFunction) => boolean | string;
8
- export declare const ValidUntil: React.FC<{
9
- isDisabled?: boolean;
10
- isReadOnly?: boolean;
11
- }>;
1
+ import * as React from 'react';
2
+ import { TFunction } from 'i18next';
3
+ export declare const VALID_UNTIL_MAX_HOURS_AFTER_CURRENT = 180;
4
+ export declare const VALID_UNTIL_MIN_HOURS_AFTER_VALID_FROM = 1;
5
+ export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
6
+ export declare const isMaxHoursAfterCurrentTime: (value: string, t: TFunction) => boolean | string;
7
+ export declare const isMinHoursAfterValidFrom: (value: string, validFromValue: string, t: TFunction) => boolean | string;
8
+ export declare const ValidUntil: React.FC<{
9
+ isDisabled?: boolean;
10
+ isReadOnly?: boolean;
11
+ }>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export * from './ValidUntilField';
1
+ export * from './ValidUntilField';
@@ -1,2 +1,2 @@
1
- export * from './PublicWarningsForm';
2
- export * from './PublicWarningsFormConnect';
1
+ export * from './PublicWarningsForm';
2
+ export * from './PublicWarningsFormConnect';
@@ -1,21 +1,21 @@
1
- import * as React from 'react';
2
- import { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
3
- import { uiTypes } from '@opengeoweb/store';
4
- export declare const PublicWarningsFormDialog: React.FC<{
5
- bounds?: string;
6
- title?: string;
7
- onClose: () => void;
8
- onMouseDown?: () => void;
9
- isOpen: boolean;
10
- order?: number;
11
- source?: uiTypes.Source;
12
- size?: DraggableSize;
13
- startPosition?: Position;
14
- headerSize?: HeaderSize;
15
- children: React.ReactNode;
16
- isLoading?: boolean;
17
- isReadOnly?: boolean;
18
- onChangeFormMode?: (isReadOnly: boolean) => void;
19
- shouldHideFormMode?: boolean;
20
- publicWarningEditor?: string;
21
- }>;
1
+ import * as React from 'react';
2
+ import { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
3
+ import { uiTypes } from '@opengeoweb/store';
4
+ export declare const PublicWarningsFormDialog: React.FC<{
5
+ bounds?: string;
6
+ title?: string;
7
+ onClose: () => void;
8
+ onMouseDown?: () => void;
9
+ isOpen: boolean;
10
+ order?: number;
11
+ source?: uiTypes.Source;
12
+ size?: DraggableSize;
13
+ startPosition?: Position;
14
+ headerSize?: HeaderSize;
15
+ children: React.ReactNode;
16
+ isLoading?: boolean;
17
+ isReadOnly?: boolean;
18
+ onChangeFormMode?: (isReadOnly: boolean) => void;
19
+ shouldHideFormMode?: boolean;
20
+ publicWarningEditor?: string;
21
+ }>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,57 +1,57 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const PublicWarningsFormDialogLight: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- tags: string[];
15
- };
16
- export declare const PublicWarningsFormDialogDark: {
17
- (): React.ReactElement;
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- tags: string[];
25
- };
26
- export declare const PublicWarningsFormDialogBigLight: {
27
- (): React.ReactElement;
28
- tags: string[];
29
- };
30
- export declare const PublicWarningsFormDialogBigDark: {
31
- (): React.ReactElement;
32
- tags: string[];
33
- };
34
- export declare const PublicWarningsFormDialogBigErrorLight: {
35
- (): React.ReactElement;
36
- tags: string[];
37
- };
38
- export declare const PublicWarningsFormDialogBigErrorDark: {
39
- (): React.ReactElement;
40
- tags: string[];
41
- };
42
- export declare const PublicWarningsFormDialogReadOnlyLight: {
43
- (): React.ReactElement;
44
- tags: string[];
45
- };
46
- export declare const PublicWarningsFormDialogReadOnlyDark: {
47
- (): React.ReactElement;
48
- tags: string[];
49
- };
50
- export declare const PublicWarningsFormDialogTakeoverWarningLight: {
51
- (): React.ReactElement;
52
- tags: string[];
53
- };
54
- export declare const PublicWarningsFormDialogTakeoverWarningDark: {
55
- (): React.ReactElement;
56
- tags: string[];
57
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const PublicWarningsFormDialogLight: {
7
+ (): React.ReactElement;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ tags: string[];
15
+ };
16
+ export declare const PublicWarningsFormDialogDark: {
17
+ (): React.ReactElement;
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
23
+ };
24
+ tags: string[];
25
+ };
26
+ export declare const PublicWarningsFormDialogBigLight: {
27
+ (): React.ReactElement;
28
+ tags: string[];
29
+ };
30
+ export declare const PublicWarningsFormDialogBigDark: {
31
+ (): React.ReactElement;
32
+ tags: string[];
33
+ };
34
+ export declare const PublicWarningsFormDialogBigErrorLight: {
35
+ (): React.ReactElement;
36
+ tags: string[];
37
+ };
38
+ export declare const PublicWarningsFormDialogBigErrorDark: {
39
+ (): React.ReactElement;
40
+ tags: string[];
41
+ };
42
+ export declare const PublicWarningsFormDialogReadOnlyLight: {
43
+ (): React.ReactElement;
44
+ tags: string[];
45
+ };
46
+ export declare const PublicWarningsFormDialogReadOnlyDark: {
47
+ (): React.ReactElement;
48
+ tags: string[];
49
+ };
50
+ export declare const PublicWarningsFormDialogTakeoverWarningLight: {
51
+ (): React.ReactElement;
52
+ tags: string[];
53
+ };
54
+ export declare const PublicWarningsFormDialogTakeoverWarningDark: {
55
+ (): React.ReactElement;
56
+ tags: string[];
57
+ };
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import { uiTypes } from '@opengeoweb/store';
3
- import { ConfirmationOptions, Position } from '@opengeoweb/shared';
4
- import { TFunction } from 'i18next';
5
- import { Bbox } from '@opengeoweb/webmap';
6
- export declare const warningFormConfirmationOptions: (t: TFunction) => ConfirmationOptions;
7
- export declare const isAlreadyEdited: (publicWarningEditor: string | undefined, username: string | undefined) => boolean;
8
- export declare const PublicWarningsFormDialogConnect: React.FC<{
9
- bounds?: string;
10
- source?: uiTypes.Source;
11
- startPosition?: Position;
12
- defaultBbox?: {
13
- srs: string;
14
- bbox: Bbox;
15
- };
16
- }>;
1
+ import React from 'react';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ import { ConfirmationOptions, Position } from '@opengeoweb/shared';
4
+ import { TFunction } from 'i18next';
5
+ import { Bbox } from '@opengeoweb/webmap';
6
+ export declare const warningFormConfirmationOptions: (t: TFunction) => ConfirmationOptions;
7
+ export declare const isAlreadyEdited: (publicWarningEditor: string | undefined, username: string | undefined) => boolean;
8
+ export declare const PublicWarningsFormDialogConnect: React.FC<{
9
+ bounds?: string;
10
+ source?: uiTypes.Source;
11
+ startPosition?: Position;
12
+ defaultBbox?: {
13
+ srs: string;
14
+ bbox: Bbox;
15
+ };
16
+ }>;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const PublicWarningsFormDialogConnectMap: () => React.ReactElement;
7
- export declare const PublicWarningsFormDialogConnectWithoutMap: () => React.ReactElement;
8
- export declare const PublicWarningsFormDialogConnectWithoutMapWithValues: () => React.ReactElement;
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const PublicWarningsFormDialogConnectMap: () => React.ReactElement;
7
+ export declare const PublicWarningsFormDialogConnectWithoutMap: () => React.ReactElement;
8
+ export declare const PublicWarningsFormDialogConnectWithoutMapWithValues: () => React.ReactElement;
@@ -1,8 +1,8 @@
1
- import { TooltipProps } from '@mui/material';
2
- import * as React from 'react';
3
- interface WarningAvatarProps {
4
- editor: string;
5
- tooltipPlacement?: TooltipProps['placement'];
6
- }
7
- declare const WarningAvatar: React.FC<WarningAvatarProps>;
8
- export default WarningAvatar;
1
+ import { TooltipProps } from '@mui/material';
2
+ import * as React from 'react';
3
+ interface WarningAvatarProps {
4
+ editor: string;
5
+ tooltipPlacement?: TooltipProps['placement'];
6
+ }
7
+ declare const WarningAvatar: React.FC<WarningAvatarProps>;
8
+ export default WarningAvatar;
@@ -1,2 +1,2 @@
1
- export * from './PublicWarningsFormDialog';
2
- export * from './PublicWarningsFormDialogConnect';
1
+ export * from './PublicWarningsFormDialog';
2
+ export * from './PublicWarningsFormDialogConnect';
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
2
- import { Bbox } from '@opengeoweb/webmap';
3
- import { FeatureCollection } from 'geojson';
4
- export declare const zoomToFeature: (mapId: string, geojsonFeature: FeatureCollection | undefined) => void;
5
- interface WarningsMapViewProps {
6
- geojsonFeature: FeatureCollection | undefined;
7
- defaultBbox?: {
8
- srs: string;
9
- bbox: Bbox;
10
- };
11
- isSnapshot?: boolean;
12
- }
13
- export declare const WarningsMapView: React.FC<WarningsMapViewProps>;
14
- export {};
1
+ import * as React from 'react';
2
+ import { Bbox } from '@opengeoweb/webmap';
3
+ import { FeatureCollection } from 'geojson';
4
+ export declare const zoomToFeature: (mapId: string, geojsonFeature: FeatureCollection | undefined) => void;
5
+ interface WarningsMapViewProps {
6
+ geojsonFeature: FeatureCollection | undefined;
7
+ defaultBbox?: {
8
+ srs: string;
9
+ bbox: Bbox;
10
+ };
11
+ isSnapshot?: boolean;
12
+ }
13
+ export declare const WarningsMapView: React.FC<WarningsMapViewProps>;
14
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { ApiModule } from '@opengeoweb/api';
3
- interface WarningsModuleProviderProps extends ApiModule {
4
- children: React.ReactNode;
5
- }
6
- export declare const WarningsModuleProvider: React.FC<WarningsModuleProviderProps>;
7
- export default WarningsModuleProvider;
1
+ import * as React from 'react';
2
+ import { ApiModule } from '@opengeoweb/api';
3
+ interface WarningsModuleProviderProps extends ApiModule {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const WarningsModuleProvider: React.FC<WarningsModuleProviderProps>;
7
+ export default WarningsModuleProvider;
@@ -1 +1 @@
1
- export { WarningsModuleProvider } from './WarningsModuleProvider';
1
+ export { WarningsModuleProvider } from './WarningsModuleProvider';
@@ -1,10 +1,10 @@
1
- export declare const drawingModuleConfig: {
2
- id: string;
3
- reducersMap: {
4
- drawings: import("redux").Reducer<import("./drawings/types").DrawState, import("redux").AnyAction>;
5
- publicWarningForm: import("redux").Reducer<import("./publicWarningForm/reducer").PublicWarningFormState, import("redux").AnyAction>;
6
- publicWarnings: import("redux").Reducer<import("./publicWarnings/types").PublicWarningsState, import("redux").AnyAction>;
7
- };
8
- middlewares: import("@reduxjs/toolkit").ListenerMiddleware<import("./types").WarningModuleStore, import("redux-thunk").ThunkDispatch<import("./types").WarningModuleStore, unknown, import("redux").AnyAction>, unknown>[];
9
- };
10
- export default drawingModuleConfig;
1
+ export declare const drawingModuleConfig: {
2
+ id: string;
3
+ reducersMap: {
4
+ drawings: import("redux").Reducer<import("./drawings/types").DrawState>;
5
+ publicWarningForm: import("redux").Reducer<import("./publicWarningForm/reducer").PublicWarningFormState>;
6
+ publicWarnings: import("redux").Reducer<import("./publicWarnings/types").PublicWarningsState>;
7
+ };
8
+ middlewares: import("@reduxjs/toolkit").ListenerMiddleware<import("./types").WarningModuleStore, import("redux-thunk").ThunkDispatch<import("./types").WarningModuleStore, unknown, import("redux").AnyAction>, unknown>[];
9
+ };
10
+ export default drawingModuleConfig;
@@ -1,2 +1,2 @@
1
- import { WarningModuleStore } from '../types';
2
- export declare const drawingsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
1
+ import { WarningModuleStore } from '../types';
2
+ export declare const drawingsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
@@ -1,13 +1,13 @@
1
- import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
3
- export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem>;
4
- export declare const initialState: DrawState;
5
- export declare const reducer: import("redux").Reducer<DrawState, import("redux").AnyAction>;
6
- export declare const drawActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
- setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
8
- submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SubmitDrawValuesPayload>) => void;
9
- setFormDirty: (draft: Draft<DrawState>, action: PayloadAction<{
10
- drawingInstanceId: string;
11
- isFormDirty: boolean;
12
- }>) => void;
13
- }, "drawingForm">;
1
+ import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
+ import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
3
+ export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem>;
4
+ export declare const initialState: DrawState;
5
+ export declare const reducer: import("redux").Reducer<DrawState>;
6
+ export declare const drawActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
+ setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
8
+ submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SubmitDrawValuesPayload>) => void;
9
+ setFormDirty: (draft: Draft<DrawState>, action: PayloadAction<{
10
+ drawingInstanceId: string;
11
+ isFormDirty: boolean;
12
+ }>) => void;
13
+ }, "drawingForm">;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,9 +1,9 @@
1
- import { DrawState } from './types';
2
- import { WarningModuleStore } from '../types';
3
- export declare const getDrawStore: (store: WarningModuleStore) => DrawState;
4
- export declare const selectDrawByInstanceId: (state: WarningModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./types").DrawItem | undefined;
5
- export declare const getWarningFormDirty: ((state: WarningModuleStore, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").DrawItem | undefined) => boolean, {
6
- clearCache: () => void;
7
- }> & {
8
- clearCache: () => void;
9
- };
1
+ import { DrawState } from './types';
2
+ import { WarningModuleStore } from '../types';
3
+ export declare const getDrawStore: (store: WarningModuleStore) => DrawState;
4
+ export declare const selectDrawByInstanceId: (state: WarningModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./types").DrawItem | undefined;
5
+ export declare const getWarningFormDirty: ((state: WarningModuleStore, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").DrawItem | undefined) => boolean, {
6
+ clearCache: () => void;
7
+ }> & {
8
+ clearCache: () => void;
9
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,33 +1,33 @@
1
- import { EntityState } from '@reduxjs/toolkit';
2
- export interface DrawItem {
3
- id: string;
4
- objectName: string;
5
- drawingInstanceId: string;
6
- isFormDirty?: boolean;
7
- }
8
- export type DrawState = EntityState<DrawItem>;
9
- export type DrawingScope = 'user' | 'global';
10
- export interface BaseDrawingListItem {
11
- id: string;
12
- objectName: string;
13
- lastUpdatedTime: string;
14
- }
15
- export interface DrawingListItem extends BaseDrawingListItem {
16
- scope: DrawingScope;
17
- geoJSON: GeoJSON.FeatureCollection;
18
- keywords?: string;
19
- }
20
- export interface DrawingFromBE extends DrawingListItem {
21
- username: string;
22
- }
23
- export interface DrawingDetails extends Omit<DrawingFromBE, 'id' | 'lastUpdatedTime'> {
24
- id?: string;
25
- lastUpdatedTime?: string;
26
- }
27
- export type DrawingFromFE = Omit<DrawingDetails, 'username'>;
28
- export interface FetchDrawingParams {
29
- keywords?: string;
30
- search?: string;
31
- }
32
- export type SetDrawValuesPayload = DrawItem;
33
- export type SubmitDrawValuesPayload = DrawingFromFE;
1
+ import { EntityState } from '@reduxjs/toolkit';
2
+ export interface DrawItem {
3
+ id: string;
4
+ objectName: string;
5
+ drawingInstanceId: string;
6
+ isFormDirty?: boolean;
7
+ }
8
+ export type DrawState = EntityState<DrawItem>;
9
+ export type DrawingScope = 'user' | 'global';
10
+ export interface BaseDrawingListItem {
11
+ id: string;
12
+ objectName: string;
13
+ lastUpdatedTime: string;
14
+ }
15
+ export interface DrawingListItem extends BaseDrawingListItem {
16
+ scope: DrawingScope;
17
+ geoJSON: GeoJSON.FeatureCollection;
18
+ keywords?: string;
19
+ }
20
+ export interface DrawingFromBE extends DrawingListItem {
21
+ username: string;
22
+ }
23
+ export interface DrawingDetails extends Omit<DrawingFromBE, 'id' | 'lastUpdatedTime'> {
24
+ id?: string;
25
+ lastUpdatedTime?: string;
26
+ }
27
+ export type DrawingFromFE = Omit<DrawingDetails, 'username'>;
28
+ export interface FetchDrawingParams {
29
+ keywords?: string;
30
+ search?: string;
31
+ }
32
+ export type SetDrawValuesPayload = DrawItem;
33
+ export type SubmitDrawValuesPayload = DrawingFromFE;
@@ -1,4 +1,4 @@
1
- import { uiTypes } from '@opengeoweb/store';
2
- export declare const objectDialogType = uiTypes.DialogTypes.ObjectManager;
3
- export declare const drawingDialogType = uiTypes.DialogTypes.DrawingTool;
4
- export declare const areaObjectLoaderType = uiTypes.DialogTypes.AreaObjectLoader;
1
+ import { uiTypes } from '@opengeoweb/store';
2
+ export declare const objectDialogType = uiTypes.DialogTypes.ObjectManager;
3
+ export declare const drawingDialogType = uiTypes.DialogTypes.DrawingTool;
4
+ export declare const areaObjectLoaderType = uiTypes.DialogTypes.AreaObjectLoader;
@@ -1,2 +1,2 @@
1
- import { WarningModuleStore } from '../types';
2
- export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
1
+ import { WarningModuleStore } from '../types';
2
+ export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;