@opengeoweb/layer-select 19.1.0 → 19.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.
Files changed (55) hide show
  1. package/dist/README.md +11 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.esm.js +3477 -0
  4. package/dist/src/index.d.ts +4 -0
  5. package/dist/src/lib/components/DataExplorerButtonConnect/DataExplorerButtonConnect.d.ts +8 -0
  6. package/dist/src/lib/components/DataExplorerButtonConnect/index.d.ts +1 -0
  7. package/dist/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +9 -0
  8. package/dist/src/lib/components/KeywordFilterButton/index.d.ts +1 -0
  9. package/dist/src/lib/components/KeywordFilterResults/KeywordFilterResults.d.ts +13 -0
  10. package/dist/src/lib/components/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +8 -0
  11. package/dist/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -0
  12. package/dist/src/lib/components/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +2 -0
  13. package/dist/src/lib/components/KeywordFilterResults/index.d.ts +4 -0
  14. package/dist/src/lib/components/LayerList/LayerAddRemoveButton.d.ts +26 -0
  15. package/dist/src/lib/components/LayerList/LayerList.d.ts +32 -0
  16. package/dist/src/lib/components/LayerList/LayerListConnect.d.ts +9 -0
  17. package/dist/src/lib/components/LayerList/LayerListDimensions.d.ts +7 -0
  18. package/dist/src/lib/components/LayerList/LayerListRow.d.ts +27 -0
  19. package/dist/src/lib/components/LayerList/index.d.ts +5 -0
  20. package/dist/src/lib/components/LayerSelect/LayerSelect.d.ts +21 -0
  21. package/dist/src/lib/components/LayerSelect/LayerSelectButtonConnect.d.ts +11 -0
  22. package/dist/src/lib/components/LayerSelect/LayerSelectConnect.d.ts +16 -0
  23. package/dist/src/lib/components/LayerSelect/LayerSelectUtils.d.ts +77 -0
  24. package/dist/src/lib/components/LayerSelect/index.d.ts +2 -0
  25. package/dist/src/lib/components/Providers/Providers.d.ts +22 -0
  26. package/dist/src/lib/components/Providers/index.d.ts +1 -0
  27. package/dist/src/lib/components/SearchField/SearchFieldConnect.d.ts +2 -0
  28. package/dist/src/lib/components/SearchField/index.d.ts +1 -0
  29. package/dist/src/lib/components/ServiceList/ServiceChip.d.ts +12 -0
  30. package/dist/src/lib/components/ServiceList/ServiceChipConnect.d.ts +10 -0
  31. package/dist/src/lib/components/ServiceList/ServiceList.d.ts +8 -0
  32. package/dist/src/lib/components/ServiceList/ServiceListConnect.d.ts +6 -0
  33. package/dist/src/lib/components/ServiceList/index.d.ts +4 -0
  34. package/dist/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.d.ts +6 -0
  35. package/dist/src/lib/components/ServiceOptionsButton/index.d.ts +1 -0
  36. package/dist/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +20 -0
  37. package/dist/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +8 -0
  38. package/dist/src/lib/components/ServiceOptionsDialog/index.d.ts +2 -0
  39. package/dist/src/lib/components/ServicePopup/ServicePopup.d.ts +21 -0
  40. package/dist/src/lib/components/ServicePopup/ServicePopupConnect.d.ts +2 -0
  41. package/dist/src/lib/components/ServicePopup/ServicePopupDialogConnect.d.ts +11 -0
  42. package/dist/src/lib/components/ServicePopup/index.d.ts +3 -0
  43. package/dist/src/lib/components/ServicePopup/utils.d.ts +14 -0
  44. package/dist/src/lib/components/index.d.ts +10 -0
  45. package/dist/src/lib/index.d.ts +2 -0
  46. package/dist/src/lib/store/index.d.ts +7 -0
  47. package/dist/src/lib/store/listeners.d.ts +2 -0
  48. package/dist/src/lib/store/reducer.d.ts +26 -0
  49. package/dist/src/lib/store/selectors.d.ts +200 -0
  50. package/dist/src/lib/store/store.d.ts +6 -0
  51. package/dist/src/lib/store/testData.d.ts +17 -0
  52. package/dist/src/lib/store/types.d.ts +72 -0
  53. package/dist/src/lib/store/utils.d.ts +9 -0
  54. package/dist/src/lib/utils/i18n.d.ts +7 -0
  55. package/package.json +2 -1
@@ -0,0 +1,4 @@
1
+ import layerSelectTranslations from '../locales/layer-select.json';
2
+ export * from './lib';
3
+ export { LAYER_SELECT_NAMESPACE } from './lib/utils/i18n';
4
+ export { layerSelectTranslations };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ interface DataExplorerButtonConnectProps {
4
+ mapId: string;
5
+ source?: uiTypes.Source;
6
+ }
7
+ export declare const DataExplorerButtonConnect: React.FC<DataExplorerButtonConnectProps>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { DataExplorerButtonConnect } from './DataExplorerButtonConnect';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ interface KeywordFilterButtonConnectProps {
4
+ mapId: string;
5
+ source?: uiTypes.Source;
6
+ isMultiMap?: boolean;
7
+ }
8
+ export declare const KeywordFilterButtonConnect: React.FC<KeywordFilterButtonConnectProps>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from './KeywordFilterButtonConnect';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { uiTypes } from '@opengeoweb/store';
3
+ import type { FiltersGrouped } from '../../store/selectors';
4
+ export interface KeywordFilterResultsProps {
5
+ bounds?: string;
6
+ onClose?: () => void;
7
+ onMouseDown?: () => void;
8
+ isOpen: boolean;
9
+ order?: number;
10
+ source?: uiTypes.Source;
11
+ filters: FiltersGrouped;
12
+ }
13
+ export declare const KeywordFilterResults: React.FC<KeywordFilterResultsProps>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface KeywordFilterResultsConnectProps {
3
+ mapId?: string;
4
+ bounds?: string;
5
+ isMultiMap?: boolean;
6
+ }
7
+ export declare const KeywordFilterResultsConnect: React.FC<KeywordFilterResultsConnectProps>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { layerSelectTypes } from '../../store';
3
+ export interface KeywordFilterResultsListItemConnectProps {
4
+ filter: layerSelectTypes.Filter;
5
+ }
6
+ export declare const KeywordFilterResultsListItemConnect: React.FC<KeywordFilterResultsListItemConnectProps>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const KeywordFilterSelectAllSwitchConnect: React.FC;
@@ -0,0 +1,4 @@
1
+ export * from './KeywordFilterResults';
2
+ export * from './KeywordFilterResultsConnect';
3
+ export * from './KeywordFilterResultsListItemConnect';
4
+ export * from './KeywordFilterSelectAllSwitchConnect';
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import type { ServiceInterface } from '@opengeoweb/shared';
3
+ import type { layerTypes } from '@opengeoweb/store';
4
+ interface AddLayerParams {
5
+ serviceUrl: string;
6
+ layerName: string;
7
+ serviceType?: ServiceInterface;
8
+ }
9
+ export interface DeleteLayerParams {
10
+ layerId: string;
11
+ layerIndex: number;
12
+ }
13
+ interface LayerAddRemoveButtonProps {
14
+ layer: layerTypes.ReduxLayer;
15
+ serviceUrl: string;
16
+ serviceType?: ServiceInterface;
17
+ allLayers: layerTypes.ReduxLayer[];
18
+ allMapIds: string[];
19
+ addLayer: ({ serviceUrl, layerName }: AddLayerParams) => void;
20
+ addLayerToAllMaps: ({ serviceUrl, layerName }: AddLayerParams) => void;
21
+ deleteLayer: ({ layerId, layerIndex }: DeleteLayerParams) => void;
22
+ removeLayerFromAllMaps: (layerId: string) => void;
23
+ mapLayers: layerTypes.ReduxLayer[];
24
+ }
25
+ export declare const LayerAddRemoveButton: React.FC<LayerAddRemoveButtonProps>;
26
+ export {};
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import type { ServiceInterface } from '@opengeoweb/shared';
3
+ import type { layerTypes, serviceTypes } from '@opengeoweb/store';
4
+ import type { DeleteLayerParams } from './LayerAddRemoveButton';
5
+ import type { LayerWithServiceName } from '../../store/types';
6
+ interface AddLayerParams {
7
+ serviceUrl: string;
8
+ layerName: string;
9
+ serviceType?: ServiceInterface;
10
+ }
11
+ export interface LayerListProps {
12
+ services: serviceTypes.Services;
13
+ filteredLayers: LayerWithServiceName[];
14
+ layerSelectHeight: number;
15
+ serviceListHeight: number;
16
+ layerSelectWidth: number;
17
+ allLayers: layerTypes.ReduxLayer[];
18
+ allMapIds: string[];
19
+ addLayer: ({ serviceUrl, layerName }: AddLayerParams) => void;
20
+ addLayerToAllMaps: ({ serviceUrl, layerName }: AddLayerParams) => void;
21
+ deleteLayer: ({ layerId }: DeleteLayerParams) => void;
22
+ removeLayerFromAllMaps: (layerId: string) => void;
23
+ mapLayers: layerTypes.ReduxLayer[];
24
+ searchFilter: string;
25
+ isLayerInfoVisibleInStore: boolean;
26
+ onToggleActiveLayer: (params: AddLayerParams & {
27
+ isActiveLayer: boolean;
28
+ }) => void;
29
+ currentLayerInfo?: AddLayerParams;
30
+ }
31
+ export declare const LayerList: React.FC<LayerListProps>;
32
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface LayerListConnectProps {
3
+ mapId: string;
4
+ layerSelectHeight: number;
5
+ serviceListHeight: number;
6
+ layerSelectWidth: number;
7
+ }
8
+ export declare const LayerListConnect: React.FC<LayerListConnectProps>;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { ListItem } from '@opengeoweb/webmap-react';
3
+ interface LayerListDimensionsProps {
4
+ dimensions: ListItem[];
5
+ }
6
+ export declare const LayerListDimensions: React.FC<LayerListDimensionsProps>;
7
+ export {};
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import type { ServiceInterface } from '@opengeoweb/shared';
3
+ import type { layerTypes, serviceTypes } from '@opengeoweb/store';
4
+ import type { LayerProps } from '@opengeoweb/webmap';
5
+ import type { DeleteLayerParams } from './LayerAddRemoveButton';
6
+ interface AddLayerParams {
7
+ serviceUrl: string;
8
+ layerName: string;
9
+ serviceType?: ServiceInterface;
10
+ }
11
+ interface LayerListRowProps {
12
+ layer: LayerProps;
13
+ service: serviceTypes.ReduxService;
14
+ allLayers: layerTypes.ReduxLayer[];
15
+ allMapIds: string[];
16
+ addLayer: ({ serviceUrl, layerName }: AddLayerParams) => void;
17
+ addLayerToAllMaps: ({ serviceUrl, layerName }: AddLayerParams) => void;
18
+ deleteLayer: ({ layerId, layerIndex }: DeleteLayerParams) => void;
19
+ removeLayerFromAllMaps: (layerId: string) => void;
20
+ mapLayers: layerTypes.ReduxLayer[];
21
+ layerSelectWidth: number;
22
+ searchFilter: string;
23
+ hasActiveLayer: boolean;
24
+ onToggleActiveLayer: () => void;
25
+ }
26
+ export declare const LayerListRow: React.FC<LayerListRowProps>;
27
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './LayerAddRemoveButton';
2
+ export * from './LayerList';
3
+ export * from './LayerListConnect';
4
+ export * from './LayerListDimensions';
5
+ export * from './LayerListRow';
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import type { uiTypes } from '@opengeoweb/store';
3
+ interface Size {
4
+ width: number;
5
+ height: number;
6
+ }
7
+ interface LayerSelectProps {
8
+ mapId: string;
9
+ bounds?: string;
10
+ showTitle?: boolean;
11
+ onClose?: () => void;
12
+ onMouseDown?: (event: MouseEvent) => void;
13
+ isOpen: boolean;
14
+ order?: number;
15
+ source?: uiTypes.Source;
16
+ startSize?: Size;
17
+ isMultiMap?: boolean;
18
+ hasDataExplorer?: boolean;
19
+ }
20
+ export declare const LayerSelect: React.FC<LayerSelectProps>;
21
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ interface LayerSelectButtonConnectProps {
4
+ mapId: string;
5
+ source?: uiTypes.Source;
6
+ tooltipTitle?: string;
7
+ icon?: React.ReactNode;
8
+ isMultiMap?: boolean;
9
+ }
10
+ export declare const LayerSelectButtonConnect: React.FC<LayerSelectButtonConnectProps>;
11
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ interface LayerSelectConnectProps {
3
+ mapId?: string;
4
+ bounds?: string;
5
+ showTitle?: boolean;
6
+ isMultiMap?: boolean;
7
+ }
8
+ /**
9
+ * LayerSelectConnect is a component that is opened from LayerManager
10
+ * It's used to add Services and Layers to the application
11
+ * It doesn't expect any props, its subcomponents only read and write to redux store
12
+ *
13
+ * ``` <LayerSelectConnect />```
14
+ */
15
+ export declare const LayerSelectConnect: React.FC<LayerSelectConnectProps>;
16
+ export {};
@@ -0,0 +1,77 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { layerSelectTypes } from '../../store';
3
+ export declare const layerSelectColumnsLarge: {
4
+ column1: {
5
+ width: number;
6
+ };
7
+ column2: {
8
+ marginTop: string;
9
+ width: string;
10
+ height: string;
11
+ paddingLeft: string;
12
+ };
13
+ column3: {
14
+ height: string;
15
+ };
16
+ column4: {
17
+ height: string;
18
+ };
19
+ column5: {
20
+ height: string;
21
+ width: number;
22
+ };
23
+ column6: {
24
+ height: string;
25
+ width: string;
26
+ };
27
+ column7: {
28
+ height: string;
29
+ width: number;
30
+ marginRight: number;
31
+ marginLeft: number;
32
+ };
33
+ column8: {
34
+ width: string;
35
+ };
36
+ column9: {
37
+ width: string;
38
+ };
39
+ };
40
+ export declare const layerSelectColumnsSmall: {
41
+ column1: {
42
+ width: string;
43
+ };
44
+ column2: {
45
+ marginTop: string;
46
+ width: string;
47
+ };
48
+ column3: {
49
+ height: string;
50
+ };
51
+ column4: {
52
+ height: string;
53
+ };
54
+ column5: {
55
+ height: string;
56
+ width: string;
57
+ };
58
+ column6: {
59
+ height: string;
60
+ width: string;
61
+ };
62
+ column7: {
63
+ height: string;
64
+ width: number;
65
+ marginRight: number;
66
+ marginLeft: number;
67
+ };
68
+ column8: {
69
+ width: string;
70
+ };
71
+ column9: {
72
+ width: string;
73
+ };
74
+ };
75
+ export declare const widthToColumns: (width: number) => Record<string, CSSProperties>;
76
+ export declare const widthToRowHeight: (width: number) => number;
77
+ export declare const sortByService: (serviceObj: layerSelectTypes.ActiveServiceObjectEntities) => layerSelectTypes.ActiveServiceObjectEntities;
@@ -0,0 +1,2 @@
1
+ export * from './LayerSelectButtonConnect';
2
+ export * from './LayerSelectConnect';
@@ -0,0 +1,22 @@
1
+ import type { Theme } from '@mui/material';
2
+ import type { Store } from '@reduxjs/toolkit';
3
+ import type i18n from 'i18next';
4
+ import React from 'react';
5
+ import type { ThemeProviderProps } from '@opengeoweb/theme';
6
+ interface BaseProviderProps {
7
+ children?: React.ReactNode;
8
+ theme?: Theme;
9
+ }
10
+ interface LayerSelectTranslationWrapperProps {
11
+ children?: React.ReactNode;
12
+ i18nInstance?: typeof i18n;
13
+ }
14
+ export declare const LayerSelecti18nProvider: React.FC<LayerSelectTranslationWrapperProps>;
15
+ export declare const DemoWrapper: React.FC<BaseProviderProps>;
16
+ export declare const LayerSelectStoreProvider: React.FC<ThemeProviderProps & {
17
+ store: Store;
18
+ }>;
19
+ export declare const TestThemeStoreProvider: React.FC<ThemeProviderProps & {
20
+ store: Store;
21
+ }>;
22
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Providers';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SearchFieldConnect: React.FC;
@@ -0,0 +1 @@
1
+ export * from './SearchFieldConnect';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { layerSelectTypes } from '../../store';
3
+ interface ServiceChipProps {
4
+ all?: boolean;
5
+ service?: layerSelectTypes.ActiveServiceObject;
6
+ isSelected?: boolean;
7
+ isDisabled?: boolean;
8
+ toggleChip?: (service: string) => void;
9
+ isInSearch?: boolean;
10
+ }
11
+ export declare const ServiceChip: React.FC<ServiceChipProps>;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { layerSelectTypes } from '../../store';
3
+ export interface ServiceChipConnectProps {
4
+ service: layerSelectTypes.ActiveServiceObject;
5
+ isAllSelected: boolean;
6
+ }
7
+ export declare const ServiceChipConnect: React.FC<ServiceChipConnectProps>;
8
+ export declare const AllChipConnect: React.FC<{
9
+ isAllSelected: boolean;
10
+ }>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { layerSelectTypes } from '../../store';
3
+ interface ServiceListProps {
4
+ activeServicesById: layerSelectTypes.ActiveServiceObjectEntities;
5
+ setHeight: (height: number) => void;
6
+ }
7
+ export declare const ServiceList: React.FC<ServiceListProps>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ServiceListConnectProps {
3
+ setHeight: (height: number) => void;
4
+ }
5
+ export declare const ServiceListConnect: React.FC<ServiceListConnectProps>;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './ServiceChip';
2
+ export * from './ServiceChipConnect';
3
+ export * from './ServiceList';
4
+ export * from './ServiceListConnect';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ServiceOptionsButtonProps {
3
+ mapId: string;
4
+ }
5
+ export declare const ServiceOptionsButton: React.FC<ServiceOptionsButtonProps>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ServiceOptionsButton';
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { layerTypes } from '@opengeoweb/store';
3
+ import type { layerSelectTypes } from '../../store';
4
+ interface ServiceOptionsDialogProps {
5
+ services: layerSelectTypes.ActiveServiceObjectEntities;
6
+ layerSelectRemoveService?: (serviceId: string, serviceUrl: string, serviceName: string) => void;
7
+ layerSelectReloadService?: (serviceUrl: string) => void;
8
+ selectedLayers: layerTypes.ReduxLayer[];
9
+ setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
10
+ isLoading?: boolean;
11
+ error?: string;
12
+ }
13
+ export interface ServicePopupInfo {
14
+ isOpen: boolean;
15
+ serviceId?: string;
16
+ serviceUrl?: string;
17
+ variant: layerSelectTypes.PopupVariant;
18
+ }
19
+ export declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
20
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { snackbarTypes } from '@opengeoweb/snackbar';
3
+ interface ServiceOptionsDialogConnectProps {
4
+ mapId?: string;
5
+ }
6
+ export declare const getServiceSuccesUpdateMessage: (serviceName: string) => snackbarTypes.TranslatableMessage;
7
+ export declare const ServiceOptionsDialogConnect: React.FC<ServiceOptionsDialogConnectProps>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './ServiceOptionsDialog';
2
+ export * from './ServiceOptionsDialogConnect';
@@ -0,0 +1,21 @@
1
+ import type { TFunction } from 'i18next';
2
+ import React from 'react';
3
+ import type { serviceTypes } from '@opengeoweb/store';
4
+ import type { layerSelectTypes } from '../../store';
5
+ export interface ServicePopupProps {
6
+ servicePopupVariant: layerSelectTypes.PopupVariant;
7
+ hideBackdrop?: boolean;
8
+ isOpen?: boolean;
9
+ closePopup?: () => void;
10
+ shouldDisableAutoFocus?: boolean;
11
+ serviceId?: string;
12
+ serviceUrl?: string;
13
+ serviceName?: string;
14
+ serviceAbstracts?: string;
15
+ services?: layerSelectTypes.ActiveServiceObjectEntities;
16
+ serviceSetLayers: (payload: serviceTypes.SetLayersForServicePayload) => void;
17
+ showSnackbar?: (message: string) => void;
18
+ disableAutoFocus?: boolean;
19
+ }
20
+ export declare const getSuccesMessage: (serviceName: string, t: TFunction) => string;
21
+ export declare const ServicePopup: React.FC<ServicePopupProps>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ServicePopupConnect: React.FC;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { layerSelectTypes } from '../../store';
3
+ interface ServicePopupDialogConnectType {
4
+ isOpen: boolean;
5
+ serviceId?: string;
6
+ variant: layerSelectTypes.PopupVariant;
7
+ url?: string;
8
+ setServicePopupClosed: () => void;
9
+ }
10
+ export declare const ServicePopupDialogConnect: React.FC<ServicePopupDialogConnectType>;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './ServicePopup';
2
+ export * from './ServicePopupConnect';
3
+ export * from './ServicePopupDialogConnect';
@@ -0,0 +1,14 @@
1
+ import type { TFunction } from 'i18next';
2
+ import type { serviceTypes } from '@opengeoweb/store';
3
+ import type { layerSelectTypes } from '../../store';
4
+ export declare enum DetectableServiceType {
5
+ STAC = "STAC",
6
+ WMS = "WMS"
7
+ }
8
+ export type ValidationResult = string | boolean;
9
+ export declare const normalizeStacServiceUrl: (serviceUrl: string | null | undefined) => string;
10
+ export declare const validateServiceName: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
11
+ export declare const validateServiceUrl: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities) => ValidationResult;
12
+ export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<serviceTypes.SetLayersForServicePayload>;
13
+ export declare const detectServiceType: (url: string) => Promise<DetectableServiceType>;
14
+ export declare const loadSTACService: (serviceUrl: string) => Promise<serviceTypes.SetLayersForServicePayload>;
@@ -0,0 +1,10 @@
1
+ export * from './KeywordFilterButton';
2
+ export * from './KeywordFilterResults';
3
+ export * from './LayerList';
4
+ export * from './LayerSelect';
5
+ export * from './SearchField';
6
+ export * from './ServiceList';
7
+ export * from './ServiceOptionsButton';
8
+ export * from './ServiceOptionsDialog';
9
+ export * from './ServicePopup';
10
+ export * from './DataExplorerButtonConnect';
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './store';
@@ -0,0 +1,7 @@
1
+ export { layerSelectActions, initialState as layerSelectInitialState, layerSelectReducer, } from './reducer';
2
+ export * as layerSelectSelectors from './selectors';
3
+ export { useAppSelector } from './selectors';
4
+ export type * as layerSelectTypes from './types';
5
+ export * from './store';
6
+ export { isUserAddedService } from './utils';
7
+ export { layerSelectListener } from './listeners';
@@ -0,0 +1,2 @@
1
+ import type { RootState } from './types';
2
+ export declare const layerSelectListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<RootState, import("redux-thunk").ThunkDispatch<RootState, unknown, import("redux").UnknownAction>, unknown>;
@@ -0,0 +1,26 @@
1
+ import type { PayloadAction, Draft } from '@reduxjs/toolkit';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ import type { LayerSelectRemoveServicePayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
4
+ export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter, string>;
5
+ export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject, string>;
6
+ export declare const initialServicePopupState: ServicePopupObject;
7
+ export declare const initialState: LayerSelectStoreType;
8
+ export declare const layerSelectReducer: import("redux").Reducer<LayerSelectStoreType>, layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
9
+ setSearchFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
10
+ closeServicePopupOpen: (draft: Draft<LayerSelectStoreType>) => void;
11
+ toggleServicePopup: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
12
+ layerSelectRemoveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
13
+ enableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
14
+ serviceId: string;
15
+ }>) => void;
16
+ enableAllActiveServices: (draft: Draft<LayerSelectStoreType>) => void;
17
+ onlyThisServiceEnabled: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
18
+ serviceId: string;
19
+ }>) => void;
20
+ disableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
21
+ serviceId: string;
22
+ }>) => void;
23
+ toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
24
+ toggleAllFilters: (draft: Draft<LayerSelectStoreType>) => void;
25
+ }, uiTypes.DialogTypes.LayerSelect>;
26
+ export type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.toggleAllFilters>;