@opengeoweb/warnings 9.28.1 → 9.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/index.esm.js +1066 -719
  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/ExpandableFilterChip.d.ts +10 -0
  36. package/src/lib/components/FilterList/FilterChipWithOptions.d.ts +7 -7
  37. package/src/lib/components/FilterList/FilterChipWithOptions.spec.d.ts +1 -1
  38. package/src/lib/components/FilterList/FilterChipWithOptions.stories.d.ts +19 -19
  39. package/src/lib/components/FilterList/FilterChipWithOptionsConnect.d.ts +7 -7
  40. package/src/lib/components/FilterList/FilterList.d.ts +12 -13
  41. package/src/lib/components/FilterList/FilterOption.d.ts +12 -0
  42. package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +11 -11
  43. package/src/lib/components/ObjectManager/ConfirmDeleteDialog.spec.d.ts +1 -1
  44. package/src/lib/components/ObjectManager/ObjectManager.d.ts +25 -25
  45. package/src/lib/components/ObjectManager/ObjectManager.spec.d.ts +1 -1
  46. package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +46 -46
  47. package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +6 -6
  48. package/src/lib/components/ObjectManager/ObjectManagerConnect.integration.spec.d.ts +1 -1
  49. package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +25 -25
  50. package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +9 -9
  51. package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +6 -6
  52. package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.spec.d.ts +1 -1
  53. package/src/lib/components/ObjectManager/Objects.d.ts +22 -22
  54. package/src/lib/components/ObjectManager/Objects.spec.d.ts +1 -1
  55. package/src/lib/components/ObjectManager/index.d.ts +2 -2
  56. package/src/lib/components/Providers/Providers.d.ts +19 -19
  57. package/src/lib/components/Providers/Providers.spec.d.ts +1 -1
  58. package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +13 -13
  59. package/src/lib/components/PublicWarningList/ConfirmWarningDialog.spec.d.ts +1 -1
  60. package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +24 -27
  61. package/src/lib/components/PublicWarningList/PublicWarningList.spec.d.ts +1 -1
  62. package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +35 -35
  63. package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +3 -3
  64. package/src/lib/components/PublicWarningList/PublicWarningListConnect.editorToggle.integration.spec.d.ts +1 -1
  65. package/src/lib/components/PublicWarningList/PublicWarningListConnect.filter.integration.spec.d.ts +1 -1
  66. package/src/lib/components/PublicWarningList/PublicWarningListConnect.integration.spec.d.ts +1 -1
  67. package/src/lib/components/PublicWarningList/PublicWarningListConnect.published.integration.spec.d.ts +1 -1
  68. package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +9 -9
  69. package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +10 -0
  70. package/src/lib/components/PublicWarningList/WarningListItem.d.ts +17 -26
  71. package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +14 -0
  72. package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +8 -8
  73. package/src/lib/components/PublicWarningList/hooks.d.ts +19 -0
  74. package/src/lib/components/PublicWarningList/index.d.ts +2 -2
  75. package/src/lib/components/PublicWarningsForm/AreaField/AreaField.d.ts +9 -9
  76. package/src/lib/components/PublicWarningsForm/AreaField/AreaField.spec.d.ts +1 -1
  77. package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +13 -13
  78. package/src/lib/components/PublicWarningsForm/AreaField/index.d.ts +1 -1
  79. package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.d.ts +5 -5
  80. package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.spec.d.ts +1 -1
  81. package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +21 -21
  82. package/src/lib/components/PublicWarningsForm/DescriptionField/index.d.ts +1 -1
  83. package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +22 -21
  84. package/src/lib/components/PublicWarningsForm/LevelField/LevelField.spec.d.ts +1 -1
  85. package/src/lib/components/PublicWarningsForm/LevelField/index.d.ts +1 -1
  86. package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +11 -11
  87. package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.spec.d.ts +1 -1
  88. package/src/lib/components/PublicWarningsForm/PhenomenonField/index.d.ts +1 -1
  89. package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +7 -7
  90. package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.spec.d.ts +1 -1
  91. package/src/lib/components/PublicWarningsForm/ProbabilityField/index.d.ts +1 -1
  92. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +32 -32
  93. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.spec.d.ts +1 -1
  94. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +29 -29
  95. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +10 -10
  96. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.spec.d.ts +1 -1
  97. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +7 -7
  98. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +7 -7
  99. package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +9 -9
  100. package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.spec.d.ts +1 -1
  101. package/src/lib/components/PublicWarningsForm/ValidFromField/index.d.ts +1 -1
  102. package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +11 -11
  103. package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.spec.d.ts +1 -1
  104. package/src/lib/components/PublicWarningsForm/ValidUntilField/index.d.ts +1 -1
  105. package/src/lib/components/PublicWarningsForm/index.d.ts +2 -2
  106. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +21 -21
  107. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.spec.d.ts +1 -1
  108. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +57 -57
  109. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +16 -16
  110. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.spec.d.ts +1 -1
  111. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +8 -8
  112. package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +8 -8
  113. package/src/lib/components/PublicWarningsFormDialog/index.d.ts +2 -2
  114. package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +14 -14
  115. package/src/lib/components/WarningsMapView/WarningsMapView.spec.d.ts +1 -1
  116. package/src/lib/components/WarningsModuleProvider/WarningsModuleProvider.d.ts +7 -7
  117. package/src/lib/components/WarningsModuleProvider/index.d.ts +1 -1
  118. package/src/lib/store/config.d.ts +10 -10
  119. package/src/lib/store/drawings/listener.d.ts +2 -2
  120. package/src/lib/store/drawings/reducer.d.ts +13 -13
  121. package/src/lib/store/drawings/reducer.spec.d.ts +1 -1
  122. package/src/lib/store/drawings/selectors.d.ts +9 -9
  123. package/src/lib/store/drawings/selectors.spec.d.ts +1 -1
  124. package/src/lib/store/drawings/types.d.ts +33 -33
  125. package/src/lib/store/drawings/utils.d.ts +4 -4
  126. package/src/lib/store/publicWarningForm/listener.d.ts +2 -2
  127. package/src/lib/store/publicWarningForm/reducer.d.ts +67 -66
  128. package/src/lib/store/publicWarningForm/reducer.spec.d.ts +1 -1
  129. package/src/lib/store/publicWarningForm/selectors.d.ts +53 -53
  130. package/src/lib/store/publicWarningForm/selectors.spec.d.ts +1 -1
  131. package/src/lib/store/publicWarningForm/types.d.ts +41 -40
  132. package/src/lib/store/publicWarningForm/utils.d.ts +2 -2
  133. package/src/lib/store/publicWarnings/listener.d.ts +3 -3
  134. package/src/lib/store/publicWarnings/listener.spec.d.ts +1 -1
  135. package/src/lib/store/publicWarnings/reducer.d.ts +27 -27
  136. package/src/lib/store/publicWarnings/reducer.spec.d.ts +1 -1
  137. package/src/lib/store/publicWarnings/selectors.d.ts +36 -36
  138. package/src/lib/store/publicWarnings/selectors.spec.d.ts +1 -1
  139. package/src/lib/store/publicWarnings/types.d.ts +39 -39
  140. package/src/lib/store/publicWarnings/utils.d.ts +23 -23
  141. package/src/lib/store/publicWarnings/utils.spec.d.ts +1 -1
  142. package/src/lib/store/types.d.ts +9 -9
  143. package/src/lib/storybookUtils/defaultStorySettings.d.ts +18 -18
  144. package/src/lib/storybookUtils/storyComponents.d.ts +7 -7
  145. package/src/lib/storybookUtils/testUtils.d.ts +3 -3
  146. package/src/lib/utils/api.d.ts +30 -30
  147. package/src/lib/utils/api.spec.d.ts +1 -1
  148. package/src/lib/utils/constants.d.ts +1 -1
  149. package/src/lib/utils/fakeApi/index.d.ts +7 -7
  150. package/src/lib/utils/fakeApi.d.ts +6 -6
  151. package/src/lib/utils/fakeApi.spec.d.ts +1 -1
  152. package/src/lib/utils/i18n.d.ts +7 -7
  153. package/src/lib/utils/sig-airmet-util.d.ts +5 -5
  154. package/src/lib/utils/useFormDirty.d.ts +7 -7
  155. package/src/lib/utils/useFormDirty.spec.d.ts +1 -1
  156. package/src/lib/utils/warningUtils.d.ts +12 -7
  157. package/src/lib/utils/warningUtils.spec.d.ts +1 -1
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const DrawingToolFormConnect: React.FC;
1
+ import * as React from 'react';
2
+ export declare const DrawingToolFormConnect: React.FC;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,27 +1,27 @@
1
- import React from 'react';
2
- import { SelectChangeEvent } from '@mui/material';
3
- import { DrawMode } from '@opengeoweb/webmap-react';
4
- import { FieldErrors, FieldValues } from 'react-hook-form';
5
- export declare const opacityOptions: number[];
6
- export interface DrawingToolFormValues {
7
- objectName: string;
8
- geoJSON: GeoJSON.FeatureCollection;
9
- id: string;
10
- }
11
- export interface DrawingToolFormContentsProps {
12
- isLoading?: boolean;
13
- dialogError?: string;
14
- id?: string;
15
- drawModes: DrawMode[];
16
- activeDrawModeId: string;
17
- opacity: number;
18
- isInEditMode: boolean;
19
- isDirty: boolean;
20
- errors: FieldErrors<FieldValues>;
21
- onChangeDrawMode: (newMode: DrawMode) => void;
22
- onChangeOpacity: (event: SelectChangeEvent) => void;
23
- onBlurName: (event: React.FocusEvent<HTMLInputElement>) => void;
24
- onSubmit: () => void;
25
- }
26
- export declare const DrawingToolFormContentsNoMemo: React.FC<DrawingToolFormContentsProps>;
27
- export declare const DrawingToolFormContents: React.NamedExoticComponent<DrawingToolFormContentsProps>;
1
+ import React from 'react';
2
+ import { SelectChangeEvent } from '@mui/material';
3
+ import { DrawMode } from '@opengeoweb/webmap-react';
4
+ import { FieldErrors, FieldValues } from 'react-hook-form';
5
+ export declare const opacityOptions: number[];
6
+ export interface DrawingToolFormValues {
7
+ objectName: string;
8
+ geoJSON: GeoJSON.FeatureCollection;
9
+ id: string;
10
+ }
11
+ export interface DrawingToolFormContentsProps {
12
+ isLoading?: boolean;
13
+ dialogError?: string;
14
+ id?: string;
15
+ drawModes: DrawMode[];
16
+ activeDrawModeId: string;
17
+ opacity: number;
18
+ isInEditMode: boolean;
19
+ isDirty: boolean;
20
+ errors: FieldErrors<FieldValues>;
21
+ onChangeDrawMode: (newMode: DrawMode) => void;
22
+ onChangeOpacity: (event: SelectChangeEvent) => void;
23
+ onBlurName: (event: React.FocusEvent<HTMLInputElement>) => void;
24
+ onSubmit: () => void;
25
+ }
26
+ export declare const DrawingToolFormContentsNoMemo: React.FC<DrawingToolFormContentsProps>;
27
+ export declare const DrawingToolFormContents: React.NamedExoticComponent<DrawingToolFormContentsProps>;
@@ -1,2 +1,2 @@
1
- export { default as DrawingToolForm } from './DrawingToolForm';
2
- export { DrawingToolFormConnect } from './DrawingToolFormConnect';
1
+ export { default as DrawingToolForm } from './DrawingToolForm';
2
+ export { DrawingToolFormConnect } from './DrawingToolFormConnect';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FilterState, UpdateFilter } from '../PublicWarningList/hooks';
3
+ type IdType = keyof FilterState;
4
+ interface Props {
5
+ id: IdType;
6
+ options: FilterState[IdType];
7
+ updateFilter: UpdateFilter;
8
+ }
9
+ declare const ExpandableFilterChip: React.FC<Props>;
10
+ export default ExpandableFilterChip;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { FilterListItemProps, FilterChipProps } from '@opengeoweb/shared';
3
- export interface FilterChipWithOptionsProps extends Omit<FilterChipProps, 'isSelected' | 'isDisabled' | 'size' | ' onAction' | 'actionIcon' | 'label'> {
4
- translationKey: string;
5
- filterList?: FilterListItemProps[];
6
- }
7
- export declare const FilterChipWithOptions: React.FC<FilterChipWithOptionsProps>;
1
+ import * as React from 'react';
2
+ import { FilterListItemProps, FilterChipProps } from '@opengeoweb/shared';
3
+ export interface FilterChipWithOptionsProps extends Omit<FilterChipProps, 'isSelected' | 'isDisabled' | 'size' | ' onAction' | 'actionIcon' | 'label'> {
4
+ translationKey: string;
5
+ filterList?: FilterListItemProps[];
6
+ }
7
+ export declare const FilterChipWithOptions: React.FC<FilterChipWithOptionsProps>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,19 +1,19 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const FilterChipWithOptionsLight: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- tags: string[];
15
- };
16
- export declare const FilterChipWithOptionsDark: {
17
- (): React.ReactElement;
18
- tags: string[];
19
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const FilterChipWithOptionsLight: {
7
+ (): React.ReactElement;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ tags: string[];
15
+ };
16
+ export declare const FilterChipWithOptionsDark: {
17
+ (): React.ReactElement;
18
+ tags: string[];
19
+ };
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { WarningListFilter } from '../../store/publicWarnings/types';
3
- interface FilterChipWithOptionsConnectProps {
4
- filter: WarningListFilter;
5
- }
6
- export declare const FilterChipWithOptionsConnect: React.FC<FilterChipWithOptionsConnectProps>;
7
- export {};
1
+ import * as React from 'react';
2
+ import { WarningListFilter } from '../../store/publicWarnings/types';
3
+ interface FilterChipWithOptionsConnectProps {
4
+ filter: WarningListFilter;
5
+ }
6
+ export declare const FilterChipWithOptionsConnect: React.FC<FilterChipWithOptionsConnectProps>;
7
+ export {};
@@ -1,13 +1,12 @@
1
- import { FC } from 'react';
2
- import { WarningListFilter } from '../../store/publicWarnings/types';
3
- interface FilterListProps {
4
- filters?: WarningListFilter[];
5
- onClickAll?: (isChecked: boolean) => void;
6
- isAllSelected?: boolean;
7
- showSigmet?: boolean;
8
- showAirmet?: boolean;
9
- setShowSigmet?: React.Dispatch<React.SetStateAction<boolean>>;
10
- setShowAirmet?: React.Dispatch<React.SetStateAction<boolean>>;
11
- }
12
- declare const FilterList: FC<FilterListProps>;
13
- export default FilterList;
1
+ import { FC } from 'react';
2
+ import { WarningListFilter } from '../../store/publicWarnings/types';
3
+ import { FilterState, UpdateFilter } from '../PublicWarningList/hooks';
4
+ interface FilterListProps {
5
+ filters?: WarningListFilter[];
6
+ onClickAll?: (isChecked: boolean) => void;
7
+ isAllSelected?: boolean;
8
+ filterState?: FilterState;
9
+ updateFilter: UpdateFilter;
10
+ }
11
+ declare const FilterList: FC<FilterListProps>;
12
+ export default FilterList;
@@ -0,0 +1,12 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { FilterState, OptionKey } from '../PublicWarningList/hooks';
3
+ type FilterType = keyof FilterState;
4
+ interface Props {
5
+ filterId: FilterType;
6
+ optionId: OptionKey<FilterType>;
7
+ checked: boolean;
8
+ onClick: (checked: boolean, only?: boolean) => void;
9
+ label?: ReactNode;
10
+ }
11
+ declare const FilterOption: React.FC<Props>;
12
+ export default FilterOption;
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- import { TFunction } from 'i18next';
3
- export declare const getDeleteDescription: (objectName: string, t: TFunction) => string;
4
- export declare const getDeleteSucces: (objectName: string, t: TFunction) => string;
5
- export declare const ConfirmDeleteDialog: React.FC<{
6
- objectId: string;
7
- objectName: string;
8
- onDeleteSucces: (objectId: string, objectName: string) => void;
9
- onClose: () => void;
10
- }>;
11
- export default ConfirmDeleteDialog;
1
+ import React from 'react';
2
+ import { TFunction } from 'i18next';
3
+ export declare const getDeleteDescription: (objectName: string, t: TFunction) => string;
4
+ export declare const getDeleteSucces: (objectName: string, t: TFunction) => string;
5
+ export declare const ConfirmDeleteDialog: React.FC<{
6
+ objectId: string;
7
+ objectName: string;
8
+ onDeleteSucces: (objectId: string, objectName: string) => void;
9
+ onClose: () => void;
10
+ }>;
11
+ export default ConfirmDeleteDialog;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,25 +1,25 @@
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
- export declare const ObjectManager: React.FC<{
6
- bounds?: string;
7
- title?: string;
8
- onClose: () => void;
9
- onMouseDown?: () => void;
10
- isOpen: boolean;
11
- order?: number;
12
- source?: uiTypes.Source;
13
- size?: DraggableSize;
14
- startPosition?: Position;
15
- headerSize?: HeaderSize;
16
- drawingListItems: DrawingListItem[];
17
- onClickDrawing?: (drawing: DrawingListItem) => void;
18
- onEditDrawing?: (drawingId: string) => void;
19
- onDeleteDrawing?: (drawingId: string) => void;
20
- onShareObject?: (object: DrawingListItem) => void;
21
- onCreateNewObject?: () => void;
22
- activeDrawingId?: string;
23
- error?: string;
24
- isLoading?: boolean;
25
- }>;
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
+ export declare const ObjectManager: React.FC<{
6
+ bounds?: string;
7
+ title?: string;
8
+ onClose: () => void;
9
+ onMouseDown?: () => void;
10
+ isOpen: boolean;
11
+ order?: number;
12
+ source?: uiTypes.Source;
13
+ size?: DraggableSize;
14
+ startPosition?: Position;
15
+ headerSize?: HeaderSize;
16
+ drawingListItems: DrawingListItem[];
17
+ onClickDrawing?: (drawing: DrawingListItem) => void;
18
+ onEditDrawing?: (drawingId: string) => void;
19
+ onDeleteDrawing?: (drawingId: string) => void;
20
+ onShareObject?: (object: DrawingListItem) => void;
21
+ onCreateNewObject?: () => void;
22
+ activeDrawingId?: string;
23
+ error?: string;
24
+ isLoading?: boolean;
25
+ }>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,46 +1,46 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ObjectManagerSmall: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const ObjectManagerLight: {
11
- (): React.ReactElement;
12
- parameters: {
13
- zeplinLink: {
14
- name: string;
15
- link: string;
16
- }[];
17
- };
18
- tags: string[];
19
- };
20
- export declare const ObjectManagerDark: {
21
- (): React.ReactElement;
22
- parameters: {
23
- zeplinLink: {
24
- name: string;
25
- link: string;
26
- }[];
27
- };
28
- tags: string[];
29
- };
30
- export declare const ObjectManagerLightNoResults: {
31
- (): React.ReactElement;
32
- tags: string[];
33
- };
34
- export declare const ObjectManagerDarkNoResults: {
35
- (): React.ReactElement;
36
- tags: string[];
37
- };
38
- export declare const ObjectManagerLoading: () => React.ReactElement;
39
- export declare const ObjectManagerErrorLight: {
40
- (): React.ReactElement;
41
- tags: string[];
42
- };
43
- export declare const ObjectManagerErrorDark: {
44
- (): React.ReactElement;
45
- tags: string[];
46
- };
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const ObjectManagerSmall: {
7
+ (): React.ReactElement;
8
+ tags: string[];
9
+ };
10
+ export declare const ObjectManagerLight: {
11
+ (): React.ReactElement;
12
+ parameters: {
13
+ zeplinLink: {
14
+ name: string;
15
+ link: string;
16
+ }[];
17
+ };
18
+ tags: string[];
19
+ };
20
+ export declare const ObjectManagerDark: {
21
+ (): React.ReactElement;
22
+ parameters: {
23
+ zeplinLink: {
24
+ name: string;
25
+ link: string;
26
+ }[];
27
+ };
28
+ tags: string[];
29
+ };
30
+ export declare const ObjectManagerLightNoResults: {
31
+ (): React.ReactElement;
32
+ tags: string[];
33
+ };
34
+ export declare const ObjectManagerDarkNoResults: {
35
+ (): React.ReactElement;
36
+ tags: string[];
37
+ };
38
+ export declare const ObjectManagerLoading: () => React.ReactElement;
39
+ export declare const ObjectManagerErrorLight: {
40
+ (): React.ReactElement;
41
+ tags: string[];
42
+ };
43
+ export declare const ObjectManagerErrorDark: {
44
+ (): React.ReactElement;
45
+ tags: string[];
46
+ };
@@ -1,6 +1,6 @@
1
- import { uiTypes } from '@opengeoweb/store';
2
- import React from 'react';
3
- export declare const ObjectManagerConnect: 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 ObjectManagerConnect: React.FC<{
4
+ bounds?: string;
5
+ source?: uiTypes.Source;
6
+ }>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,25 +1,25 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ObjectManagerConnectLight: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- storyName: string;
15
- };
16
- export declare const ObjectManagerConnectDark: {
17
- (): React.ReactElement;
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- storyName: string;
25
- };
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const ObjectManagerConnectLight: {
7
+ (): React.ReactElement;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ storyName: string;
15
+ };
16
+ export declare const ObjectManagerConnectDark: {
17
+ (): React.ReactElement;
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
23
+ };
24
+ storyName: string;
25
+ };
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ErrorSaveDrawing: () => React.ReactElement;
7
- export declare const ErrorGetList: () => React.ReactElement;
8
- export declare const ErrorEditDrawing: () => React.ReactElement;
9
- export declare const ErrorDeleteDrawing: () => React.ReactElement;
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const ErrorSaveDrawing: () => React.ReactElement;
7
+ export declare const ErrorGetList: () => React.ReactElement;
8
+ export declare const ErrorEditDrawing: () => React.ReactElement;
9
+ export declare const ErrorDeleteDrawing: () => React.ReactElement;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { uiTypes } from '@opengeoweb/store';
3
- export declare const ObjectManagerMapButtonConnect: React.FC<{
4
- mapId: string;
5
- source?: uiTypes.Source;
6
- }>;
1
+ import React from 'react';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ export declare const ObjectManagerMapButtonConnect: React.FC<{
4
+ mapId: string;
5
+ source?: uiTypes.Source;
6
+ }>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,22 +1,22 @@
1
- import { FC } from 'react';
2
- import { DrawingListItem } from '../../store/drawings/types';
3
- export declare const BUTTON_AIRMET = "AIRMET";
4
- export declare const BUTTON_SIGMET = "SIGMET";
5
- type ListInclHeadersType = {
6
- isObject: boolean;
7
- index: number;
8
- }[];
9
- export declare const getListInclHeaders: (objects: DrawingListItem[]) => {
10
- listInclHeaders: ListInclHeadersType;
11
- headerList: string[];
12
- };
13
- export declare const Objects: FC<{
14
- objects: DrawingListItem[];
15
- onClickObject: (object: DrawingListItem) => void;
16
- onClickEdit: (objectId: string) => void;
17
- onClickDelete: (drawingId: string) => void;
18
- onClickShare: (object: DrawingListItem) => void;
19
- activeObject: string;
20
- isLoading?: boolean;
21
- }>;
22
- export {};
1
+ import { FC } from 'react';
2
+ import { DrawingListItem } from '../../store/drawings/types';
3
+ export declare const BUTTON_AIRMET = "AIRMET";
4
+ export declare const BUTTON_SIGMET = "SIGMET";
5
+ type ListInclHeadersType = {
6
+ isObject: boolean;
7
+ index: number;
8
+ }[];
9
+ export declare const getListInclHeaders: (objects: DrawingListItem[]) => {
10
+ listInclHeaders: ListInclHeadersType;
11
+ headerList: string[];
12
+ };
13
+ export declare const Objects: FC<{
14
+ objects: DrawingListItem[];
15
+ onClickObject: (object: DrawingListItem) => void;
16
+ onClickEdit: (objectId: string) => void;
17
+ onClickDelete: (drawingId: string) => void;
18
+ onClickShare: (object: DrawingListItem) => void;
19
+ activeObject: string;
20
+ isLoading?: boolean;
21
+ }>;
22
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,2 @@
1
- export { ObjectManagerMapButtonConnect } from './ObjectManagerMapButtonConnect';
2
- export { ObjectManagerConnect } from './ObjectManagerConnect';
1
+ export { ObjectManagerMapButtonConnect } from './ObjectManagerMapButtonConnect';
2
+ export { ObjectManagerConnect } from './ObjectManagerConnect';
@@ -1,19 +1,19 @@
1
- import * as React from 'react';
2
- import { Theme } from '@mui/material';
3
- import { Store } from '@reduxjs/toolkit';
4
- import { WarningsApi } from '../../utils/api';
5
- export interface WarningsThemeProviderProps {
6
- children: React.ReactNode;
7
- theme?: Theme;
8
- }
9
- export declare const WarningsThemeProvider: React.FC<WarningsThemeProviderProps>;
10
- export interface WarningsThemeStoreProviderProps extends WarningsThemeProviderProps {
11
- store?: Store;
12
- createApi?: () => WarningsApi;
13
- }
14
- export declare const WarningsThemeStoreProvider: React.FC<WarningsThemeStoreProviderProps>;
15
- interface WarningsTranslationsWrapperProps {
16
- children?: React.ReactNode;
17
- }
18
- export declare const WarningsI18nProvider: React.FC<WarningsTranslationsWrapperProps>;
19
- export {};
1
+ import * as React from 'react';
2
+ import { Theme } from '@mui/material';
3
+ import { Store } from '@reduxjs/toolkit';
4
+ import { WarningsApi } from '../../utils/api';
5
+ export interface WarningsThemeProviderProps {
6
+ children: React.ReactNode;
7
+ theme?: Theme;
8
+ }
9
+ export declare const WarningsThemeProvider: React.FC<WarningsThemeProviderProps>;
10
+ export interface WarningsThemeStoreProviderProps extends WarningsThemeProviderProps {
11
+ store?: Store;
12
+ createApi?: () => WarningsApi;
13
+ }
14
+ export declare const WarningsThemeStoreProvider: React.FC<WarningsThemeStoreProviderProps>;
15
+ interface WarningsTranslationsWrapperProps {
16
+ children?: React.ReactNode;
17
+ }
18
+ export declare const WarningsI18nProvider: React.FC<WarningsTranslationsWrapperProps>;
19
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- export interface ConfirmDialogProps {
3
- title: string;
4
- description: string;
5
- request: () => Promise<void>;
6
- confirmLabel: string;
7
- callback: (data?: unknown) => void;
8
- isLocked?: boolean;
9
- }
10
- export declare const ConfirmDeleteWarningDialog: React.FC<{
11
- onClose: () => void;
12
- } & ConfirmDialogProps>;
13
- export default ConfirmDeleteWarningDialog;
1
+ import React from 'react';
2
+ export interface ConfirmDialogProps {
3
+ title: string;
4
+ description: string;
5
+ request: () => Promise<void>;
6
+ confirmLabel: string;
7
+ callback: (data?: unknown) => void;
8
+ isLocked?: boolean;
9
+ }
10
+ export declare const ConfirmDeleteWarningDialog: React.FC<{
11
+ onClose: () => void;
12
+ } & ConfirmDialogProps>;
13
+ export default ConfirmDeleteWarningDialog;
@@ -1 +1 @@
1
- export {};
1
+ export {};