@opengeoweb/core 4.1.0 → 4.2.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 +2024 -1482
- package/index.umd.js +2053 -1506
- package/lib/components/LayerManager/LayerManager.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +4 -4
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +18 -2
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +5 -5
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +3 -2
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +11 -0
- package/lib/components/LayerManager/LayerSelect/{LayerSelectUtils.spec.d.ts → LayerInfo/LayerInfoButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +14 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialogConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +11 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +4 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerInfo/index.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +5 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +1 -1
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -1
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +0 -2
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -1
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +3 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +4 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +13 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +18 -2
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +6 -1
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -5
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +49 -9
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.spec.d.ts +1 -0
- package/lib/components/LayerManager/useFetchServices.d.ts +4 -0
- package/lib/components/LayerManager/useFetchServices.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +1 -1
- package/lib/components/ReactMapView/types.d.ts +2 -1
- package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +7 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -5
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +18 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +28 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +24 -3
- package/lib/components/WMSLoader/services.d.ts +1 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useSetupDialog/index.d.ts +1 -0
- package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +9 -0
- package/lib/hooks/useSetupDialog/useSetupDialog.spec.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/store/layerSelect/reducer.d.ts +8 -5
- package/lib/store/layerSelect/sagas.d.ts +3 -2
- package/lib/store/layerSelect/selectors.d.ts +53 -6
- package/lib/store/layerSelect/types.d.ts +32 -13
- package/lib/store/mapStore/service/types.d.ts +4 -1
- package/lib/store/ui/types.d.ts +4 -1
- package/lib/utils/defaultTestSettings.d.ts +1 -0
- package/lib/utils/getCapabilities.d.ts +4 -1
- package/package.json +6 -6
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +0 -4
|
@@ -20,5 +20,18 @@ interface LayerManagerProps {
|
|
|
20
20
|
isLoading?: boolean;
|
|
21
21
|
error?: string;
|
|
22
22
|
}
|
|
23
|
+
export declare const calculateStartSize: (minSize: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}, prefSize: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
}, startPosition: {
|
|
30
|
+
top: number;
|
|
31
|
+
left: number;
|
|
32
|
+
}) => {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
};
|
|
23
36
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
24
37
|
export default LayerManager;
|
package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Source } from '../../../../store/ui/types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { Filter } from '../../../../store/layerSelect/types';
|
|
4
|
+
export declare const DIALOG_TITLE = "Groups & Keywords";
|
|
5
|
+
export interface KeywordFilterResultsProps {
|
|
6
6
|
bounds?: string;
|
|
7
|
-
showTitle?: boolean;
|
|
8
7
|
onClose?: () => void;
|
|
9
8
|
onMouseDown?: () => void;
|
|
10
9
|
isOpen: boolean;
|
|
11
10
|
order?: number;
|
|
12
11
|
source?: Source;
|
|
12
|
+
filters: Filter[];
|
|
13
13
|
}
|
|
14
14
|
declare const KeywordFilterResults: React.FC<KeywordFilterResultsProps>;
|
|
15
15
|
export default KeywordFilterResults;
|
|
@@ -5,9 +5,25 @@ declare const _default: {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const KeywordFilterResultsLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
|
-
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
parameters: {
|
|
11
|
+
zeplinLink: {
|
|
12
|
+
name: string;
|
|
13
|
+
link: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
9
17
|
};
|
|
10
18
|
export declare const KeywordFilterResultsDark: {
|
|
11
19
|
(): React.ReactElement;
|
|
12
|
-
|
|
20
|
+
story: {
|
|
21
|
+
name: string;
|
|
22
|
+
parameters: {
|
|
23
|
+
zeplinLink: {
|
|
24
|
+
name: string;
|
|
25
|
+
link: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
13
29
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface FilterListItemProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Filter } from '../../../../store/layerSelect/types';
|
|
3
|
+
export interface FilterListItemProps {
|
|
4
|
+
filter: Filter;
|
|
5
|
+
toggleFilter: (filterIds: string[]) => void;
|
|
6
|
+
enableOnlyOneFilter: (filterId: string) => void;
|
|
7
7
|
}
|
|
8
8
|
declare const FilterListItem: React.FC<FilterListItemProps>;
|
|
9
9
|
export default FilterListItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Filter } from '../../../../store/layerSelect/types';
|
|
3
|
+
export interface KeywordFilterResultsListItemConnectProps {
|
|
4
|
+
filter: Filter;
|
|
4
5
|
}
|
|
5
6
|
declare const KeywordFilterResultsListItemConnect: React.FC<KeywordFilterResultsListItemConnectProps>;
|
|
6
7
|
export default KeywordFilterResultsListItemConnect;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ServiceLayer } from '../../../../store/mapStore/types';
|
|
3
|
+
import { Source } from '../../../../store/ui/types';
|
|
4
|
+
interface LayerInfoButtonProps {
|
|
5
|
+
layer: ServiceLayer;
|
|
6
|
+
mapId: string;
|
|
7
|
+
serviceName: string;
|
|
8
|
+
source?: Source;
|
|
9
|
+
}
|
|
10
|
+
declare const LayerInfoButtonConnect: React.FC<LayerInfoButtonProps>;
|
|
11
|
+
export default LayerInfoButtonConnect;
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActiveLayerObject } from '../../../../store/layerSelect/types';
|
|
3
|
+
import { Source } from '../../../../store/ui/types';
|
|
4
|
+
export interface LayerInfoDialogProps {
|
|
5
|
+
layer: ActiveLayerObject;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onMouseDown?: () => void;
|
|
9
|
+
order?: number;
|
|
10
|
+
source?: Source;
|
|
11
|
+
dialogHeight?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const LayerInfoDialog: React.FC<LayerInfoDialogProps>;
|
|
14
|
+
export default LayerInfoDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const LayerInfoDialogLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const LayerInfoDialogDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
storyName: string;
|
|
19
|
+
parameters: {
|
|
20
|
+
zeplinLink: {
|
|
21
|
+
name: string;
|
|
22
|
+
link: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LayerInfoListProps {
|
|
3
|
+
label: string;
|
|
4
|
+
list: {
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
icon: React.ReactElement;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
declare const LayerInfoList: React.FC<LayerInfoListProps>;
|
|
11
|
+
export default LayerInfoList;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ActiveLayerObject } from '../../../../store/layerSelect/types';
|
|
2
|
+
export declare const getLayerStyles: (layer: ActiveLayerObject) => string;
|
|
3
|
+
export declare const getDimensionValue: (name: string, layer: ActiveLayerObject, breakAt: string, includeUnit?: boolean) => string;
|
|
4
|
+
export declare const getLayerBbox: (layer: ActiveLayerObject) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReduxLayer } from '../../../../store/mapStore/layers/types';
|
|
3
3
|
import { Services } from '../../../../store/mapStore/service/types';
|
|
4
|
-
interface LayerListProps {
|
|
4
|
+
export interface LayerListProps {
|
|
5
5
|
services: Services;
|
|
6
6
|
serviceIds: string[];
|
|
7
7
|
layerSelectHeight: number;
|
|
8
|
+
serviceListHeight: number;
|
|
8
9
|
addLayer: ({ serviceUrl, layerName }: {
|
|
9
10
|
serviceUrl: any;
|
|
10
11
|
layerName: any;
|
|
@@ -15,8 +16,9 @@ interface LayerListProps {
|
|
|
15
16
|
}) => void;
|
|
16
17
|
searchString: string;
|
|
17
18
|
mapLayers: ReduxLayer[];
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
filterIds: string[];
|
|
20
|
+
allFiltersActive: boolean;
|
|
21
|
+
mapId: string;
|
|
20
22
|
}
|
|
21
23
|
declare const LayerList: React.FC<LayerListProps>;
|
|
22
24
|
export default LayerList;
|
|
@@ -4,7 +4,6 @@ interface LayerListRowProps {
|
|
|
4
4
|
layer: ServiceLayer;
|
|
5
5
|
layerIndex: number;
|
|
6
6
|
service: ReduxService;
|
|
7
|
-
serviceUrl: string;
|
|
8
7
|
addLayer: ({ serviceUrl, layerName }: {
|
|
9
8
|
serviceUrl: any;
|
|
10
9
|
layerName: any;
|
|
@@ -14,6 +13,7 @@ interface LayerListRowProps {
|
|
|
14
13
|
layerIndex: any;
|
|
15
14
|
}) => void;
|
|
16
15
|
mapLayers: ReduxLayer[];
|
|
16
|
+
mapId: string;
|
|
17
17
|
}
|
|
18
18
|
declare const LayerListRow: React.FC<LayerListRowProps>;
|
|
19
19
|
export default LayerListRow;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
|
|
2
|
-
export declare const filterLayersFromService: (serviceId: string, services: Services,
|
|
2
|
+
export declare const filterLayersFromService: (serviceId: string, services: Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => ServiceLayer[];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Service } from '../../WMSLoader/services';
|
|
3
2
|
interface LayerSelectConnectProps {
|
|
4
3
|
bounds?: string;
|
|
5
4
|
showTitle?: boolean;
|
|
6
|
-
preloadedServices?: Service[];
|
|
7
5
|
}
|
|
8
6
|
/**
|
|
9
7
|
* LayerSelectConnect is a component that is opened from LayerManager
|
|
@@ -3,6 +3,7 @@ export declare const isURL: (string: string) => boolean;
|
|
|
3
3
|
interface FieldButtonProps {
|
|
4
4
|
localSearchString: string;
|
|
5
5
|
onClickClear: () => void;
|
|
6
|
+
setPopupIsOpen: (value: boolean) => void;
|
|
6
7
|
}
|
|
7
8
|
declare const SearchFieldButtonContainer: React.FC<FieldButtonProps>;
|
|
8
9
|
export default SearchFieldButtonContainer;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
|
-
interface ServiceChipConnectProps {
|
|
3
|
+
export interface ServiceChipConnectProps {
|
|
4
4
|
all?: boolean;
|
|
5
5
|
serviceId?: string;
|
|
6
6
|
service?: ActiveServiceObject;
|
|
7
7
|
isSelected?: boolean;
|
|
8
|
+
isAllSelected?: boolean;
|
|
8
9
|
isDisabled?: boolean;
|
|
9
10
|
}
|
|
10
11
|
declare const ServiceChipConnect: React.FC<ServiceChipConnectProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
3
|
interface ServiceListProps {
|
|
4
|
-
layerSelectWidth?: number;
|
|
5
4
|
activeServices: Record<string, ActiveServiceObject>;
|
|
5
|
+
setHeight: (height: number) => void;
|
|
6
6
|
}
|
|
7
7
|
declare const ServiceList: React.FC<ServiceListProps>;
|
|
8
8
|
export default ServiceList;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ActiveServices } from '../../../../store/layerSelect/types';
|
|
2
3
|
interface ServiceListConnectProps {
|
|
3
|
-
|
|
4
|
+
setHeight: (height: number) => void;
|
|
4
5
|
}
|
|
6
|
+
export declare const sortByService: (serviceObj: ActiveServices) => ActiveServices;
|
|
5
7
|
declare const ServiceListConnect: React.FC<ServiceListConnectProps>;
|
|
6
8
|
export default ServiceListConnect;
|
package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActiveServices } from '../../../../store/layerSelect/types';
|
|
3
|
+
import { PopupVariant } from '../ServicePopup/ServicePopup';
|
|
4
|
+
import { ReduxLayer } from '../../../../store/mapStore/types';
|
|
3
5
|
interface ServiceOptionsDialogProps {
|
|
4
|
-
services:
|
|
5
|
-
|
|
6
|
+
services: ActiveServices;
|
|
7
|
+
layerSelectRemoveService?: (serviceId: string, serviceUrl: string) => void;
|
|
8
|
+
selectedLayers: ReduxLayer[];
|
|
9
|
+
setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ServicePopupInfo {
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
serviceId?: string;
|
|
14
|
+
serviceUrl?: string;
|
|
15
|
+
popupVariant?: PopupVariant;
|
|
6
16
|
}
|
|
7
17
|
declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
|
|
8
18
|
export default ServiceOptionsDialog;
|
|
@@ -5,9 +5,25 @@ declare const _default: {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const ServiceOptionsDialogLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
|
-
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
parameters: {
|
|
11
|
+
zeplinLink: {
|
|
12
|
+
name: string;
|
|
13
|
+
link: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
9
17
|
};
|
|
10
18
|
export declare const ServiceOptionsDialogDark: {
|
|
11
19
|
(): React.ReactElement;
|
|
12
|
-
|
|
20
|
+
story: {
|
|
21
|
+
name: string;
|
|
22
|
+
parameters: {
|
|
23
|
+
zeplinLink: {
|
|
24
|
+
name: string;
|
|
25
|
+
link: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
13
29
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { ServicePopupInfo } from './ServiceOptionsDialog';
|
|
3
|
+
interface ServiceOptionsDialogConnectProps {
|
|
4
|
+
mapId?: string;
|
|
5
|
+
setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ServiceOptionsDialogConnect: React.FC<ServiceOptionsDialogConnectProps>;
|
|
3
8
|
export default ServiceOptionsDialogConnect;
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
|
|
3
3
|
import { ActiveServices } from '../../../../store/layerSelect/types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export declare type PopupVariant = 'edit' | 'add' | 'save' | 'show';
|
|
5
|
+
export interface ServicePopupProps {
|
|
6
|
+
servicePopupVariant: PopupVariant;
|
|
6
7
|
hideBackdrop?: boolean;
|
|
7
8
|
isOpen?: boolean;
|
|
8
9
|
closePopup?: () => void;
|
|
9
10
|
serviceId?: string;
|
|
10
|
-
|
|
11
|
+
serviceUrl?: string;
|
|
12
|
+
serviceName?: string;
|
|
13
|
+
serviceAbstracts?: string;
|
|
11
14
|
services?: ActiveServices;
|
|
12
15
|
serviceSetLayers: (payload: SetLayersForServicePayload) => void;
|
|
16
|
+
showSnackbar?: (message: string) => void;
|
|
13
17
|
}
|
|
14
18
|
export declare const ADD_HEADING = "Add a new service";
|
|
15
19
|
export declare const EDIT_HEADING = "Edit service";
|
|
16
20
|
export declare const SAVE_HEADING = "Save service";
|
|
17
|
-
declare const
|
|
18
|
-
export
|
|
21
|
+
export declare const COPY_URL_MESSAGE = "Service URL copied to clipboard";
|
|
22
|
+
export declare const getSuccesMessage: (serviceName: string) => string;
|
|
23
|
+
declare const ServicePopupWrapper: React.FC<ServicePopupProps>;
|
|
24
|
+
export default ServicePopupWrapper;
|
|
@@ -1,13 +1,53 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("./ServicePopup").ServicePopupProps>>;
|
|
5
4
|
export default _default;
|
|
6
|
-
export declare const
|
|
7
|
-
():
|
|
8
|
-
|
|
5
|
+
export declare const ServicePopupAddLight: {
|
|
6
|
+
(): JSX.Element;
|
|
7
|
+
story: {
|
|
8
|
+
name: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const ServicePopupAddDark: {
|
|
18
|
+
(): JSX.Element;
|
|
19
|
+
story: {
|
|
20
|
+
name: string;
|
|
21
|
+
parameters: {
|
|
22
|
+
zeplinLink: {
|
|
23
|
+
name: string;
|
|
24
|
+
link: string;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const ServicePopupShowLight: {
|
|
30
|
+
(): JSX.Element;
|
|
31
|
+
story: {
|
|
32
|
+
name: string;
|
|
33
|
+
parameters: {
|
|
34
|
+
zeplinLink: {
|
|
35
|
+
name: string;
|
|
36
|
+
link: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
9
40
|
};
|
|
10
|
-
export declare const
|
|
11
|
-
():
|
|
12
|
-
|
|
41
|
+
export declare const ServicePopupShowDark: {
|
|
42
|
+
(): JSX.Element;
|
|
43
|
+
story: {
|
|
44
|
+
name: string;
|
|
45
|
+
parameters: {
|
|
46
|
+
zeplinLink: {
|
|
47
|
+
name: string;
|
|
48
|
+
link: string;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
13
52
|
};
|
|
53
|
+
export declare const ServicePopupWithInvalidUrl: () => JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { PopupVariant } from './ServicePopup';
|
|
2
3
|
interface ServicePopupConnectProps {
|
|
3
|
-
servicePopupVariant:
|
|
4
|
+
servicePopupVariant: PopupVariant;
|
|
4
5
|
hideBackdrop?: boolean;
|
|
5
6
|
isOpen?: boolean;
|
|
6
7
|
closePopup?: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ServicePopupConnectAdd: React.FC;
|
|
7
|
+
export declare const ServicePopupConnectShow: React.FC;
|
|
8
|
+
export declare const ServicePopupAddWithExistingServiceError: React.FC;
|
|
9
|
+
export declare const ServicePopupEdit: React.FC;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActiveServices } from '../../../../store/layerSelect/types';
|
|
2
|
+
export declare type ValidationResult = string | boolean;
|
|
3
|
+
export declare const VALIDATIONS_NAME_EXISTING = "This name already exists. Choose another name.";
|
|
4
|
+
export declare const VALIDATIONS_SERVICE_EXISTING = "URL already exists.";
|
|
5
|
+
export declare const VALIDATIONS_SERVICE_VALID_URL = "Not a valid URL.";
|
|
6
|
+
export declare const VALIDATIONS_REQUEST_FAILED = "Download failed. Check the URL.";
|
|
7
|
+
export declare const validateServiceName: (value: string, services: ActiveServices, ownServiceName?: string) => ValidationResult;
|
|
8
|
+
export declare const validateServiceUrl: (value: string, services: ActiveServices) => ValidationResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NoIdService, UserAddedServices } from '../../utils/types';
|
|
2
|
+
import { Service } from '../WMSLoader/services';
|
|
3
|
+
export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[]) => void;
|
|
4
|
+
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
3
|
-
import { SetMapDimensionPayload, Dimension, SetBboxPayload, Bbox, MapPinLocationPayload, MapLocation, UpdateLayerInfoPayload } from '../../store/mapStore/types';
|
|
3
|
+
import { SetMapDimensionPayload, Dimension, SetBboxPayload, Bbox, MapPinLocationPayload, MapLocation, UpdateLayerInfoPayload, Services } from '../../store/mapStore/types';
|
|
4
4
|
export interface ReactMapViewProps {
|
|
5
5
|
listeners?: {
|
|
6
6
|
name?: string;
|
|
@@ -25,6 +25,7 @@ export interface ReactMapViewProps {
|
|
|
25
25
|
shouldAutoFetch?: boolean;
|
|
26
26
|
showLayerInfo?: boolean;
|
|
27
27
|
disableMapPin?: boolean;
|
|
28
|
+
services?: Services;
|
|
28
29
|
onMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
29
30
|
onUnMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
30
31
|
onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { mapActions } from '../../../../store';
|
|
3
1
|
interface SpeedButtonConnectProps {
|
|
4
|
-
animationDelay?: number;
|
|
5
2
|
mapId: string;
|
|
6
|
-
setMapAnimationDelay?: typeof mapActions.setAnimationDelay;
|
|
7
3
|
}
|
|
8
|
-
declare const SpeedButtonConnect:
|
|
4
|
+
declare const SpeedButtonConnect: ({ mapId, }: SpeedButtonConnectProps) => JSX.Element;
|
|
9
5
|
export default SpeedButtonConnect;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Mark {
|
|
3
|
+
label?: string;
|
|
4
|
+
value: number;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TimeSliderMenuProps {
|
|
8
|
+
marks: Mark[];
|
|
9
|
+
value: number;
|
|
10
|
+
handleMenuItemClick: (mark: Mark) => void;
|
|
11
|
+
title: string;
|
|
12
|
+
icon: JSX.Element;
|
|
13
|
+
isOpenByDefault?: boolean;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
handleAutoClick?: () => void;
|
|
16
|
+
isAutoSelected?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const TimeSliderMenu: ({ marks, value, isOpenByDefault, handleMenuItemClick, isDisabled, handleAutoClick, isAutoSelected, title, icon, }: TimeSliderMenuProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const TimeSliderMenuDemoLight: {
|
|
6
|
+
(): JSX.Element;
|
|
7
|
+
story: {
|
|
8
|
+
name: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const TimeSliderMenuDemoDark: {
|
|
18
|
+
(): JSX.Element;
|
|
19
|
+
story: {
|
|
20
|
+
name: string;
|
|
21
|
+
parameters: {
|
|
22
|
+
zeplinLink: {
|
|
23
|
+
name: string;
|
|
24
|
+
link: string;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|