@opengeoweb/layer-select 16.0.0 → 17.0.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.
- package/index.esm.js +606 -158
- package/package.json +9 -9
- package/jest.config.d.ts +0 -0
- package/src/index.d.ts +0 -4
- package/src/lib/components/DataExplorerButtonConnect/DataExplorerButtonConnect.d.ts +0 -8
- package/src/lib/components/DataExplorerButtonConnect/index.d.ts +0 -1
- package/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +0 -9
- package/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/KeywordFilterButton/index.d.ts +0 -1
- package/src/lib/components/KeywordFilterResults/KeywordFilterResults.d.ts +0 -13
- package/src/lib/components/KeywordFilterResults/KeywordFilterResults.integration.spec.d.ts +0 -1
- package/src/lib/components/KeywordFilterResults/KeywordFilterResults.stories.d.ts +0 -8
- package/src/lib/components/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -8
- package/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +0 -6
- package/src/lib/components/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +0 -2
- package/src/lib/components/KeywordFilterResults/index.d.ts +0 -4
- package/src/lib/components/LayerList/LayerAddRemoveButton.d.ts +0 -23
- package/src/lib/components/LayerList/LayerAddRemoveButton.spec.d.ts +0 -1
- package/src/lib/components/LayerList/LayerList.d.ts +0 -30
- package/src/lib/components/LayerList/LayerList.spec.d.ts +0 -3
- package/src/lib/components/LayerList/LayerListConnect.d.ts +0 -9
- package/src/lib/components/LayerList/LayerListConnect.spec.d.ts +0 -1
- package/src/lib/components/LayerList/LayerListDimensions.d.ts +0 -7
- package/src/lib/components/LayerList/LayerListRow.d.ts +0 -25
- package/src/lib/components/LayerList/index.d.ts +0 -5
- package/src/lib/components/LayerSelect/LayerSelect.d.ts +0 -21
- package/src/lib/components/LayerSelect/LayerSelect.spec.d.ts +0 -1
- package/src/lib/components/LayerSelect/LayerSelect.stories.d.ts +0 -14
- package/src/lib/components/LayerSelect/LayerSelectButtonConnect.d.ts +0 -11
- package/src/lib/components/LayerSelect/LayerSelectButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/LayerSelect/LayerSelectConnect.d.ts +0 -16
- package/src/lib/components/LayerSelect/LayerSelectConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/LayerSelect/LayerSelectConnect.spec.d.ts +0 -1
- package/src/lib/components/LayerSelect/LayerSelectUtils.d.ts +0 -77
- package/src/lib/components/LayerSelect/LayerSelectUtils.spec.d.ts +0 -1
- package/src/lib/components/LayerSelect/index.d.ts +0 -2
- package/src/lib/components/Providers/Providers.d.ts +0 -22
- package/src/lib/components/Providers/index.d.ts +0 -1
- package/src/lib/components/SearchField/SearchFieldConnect.d.ts +0 -2
- package/src/lib/components/SearchField/SearchFieldConnect.spec.d.ts +0 -1
- package/src/lib/components/SearchField/index.d.ts +0 -1
- package/src/lib/components/ServiceList/ServiceChip.d.ts +0 -12
- package/src/lib/components/ServiceList/ServiceChip.spec.d.ts +0 -1
- package/src/lib/components/ServiceList/ServiceChipConnect.d.ts +0 -10
- package/src/lib/components/ServiceList/ServiceList.d.ts +0 -8
- package/src/lib/components/ServiceList/ServiceListConnect.d.ts +0 -6
- package/src/lib/components/ServiceList/ServiceListConnect.spec.d.ts +0 -1
- package/src/lib/components/ServiceList/index.d.ts +0 -4
- package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.d.ts +0 -6
- package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +0 -1
- package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +0 -8
- package/src/lib/components/ServiceOptionsButton/index.d.ts +0 -1
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +0 -20
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +0 -1
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +0 -45
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +0 -8
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +0 -1
- package/src/lib/components/ServiceOptionsDialog/index.d.ts +0 -2
- package/src/lib/components/ServicePopup/ServicePopup.d.ts +0 -20
- package/src/lib/components/ServicePopup/ServicePopup.spec.d.ts +0 -1
- package/src/lib/components/ServicePopup/ServicePopup.stories.d.ts +0 -12
- package/src/lib/components/ServicePopup/ServicePopupConnect.d.ts +0 -2
- package/src/lib/components/ServicePopup/ServicePopupConnect.spec.d.ts +0 -1
- package/src/lib/components/ServicePopup/ServicePopupConnect.stories.d.ts +0 -9
- package/src/lib/components/ServicePopup/ServicePopupDialogConnect.d.ts +0 -11
- package/src/lib/components/ServicePopup/index.d.ts +0 -3
- package/src/lib/components/ServicePopup/utils.d.ts +0 -7
- package/src/lib/components/ServicePopup/utils.spec.d.ts +0 -1
- package/src/lib/components/index.d.ts +0 -10
- package/src/lib/index.d.ts +0 -2
- package/src/lib/store/index.d.ts +0 -7
- package/src/lib/store/listeners.d.ts +0 -2
- package/src/lib/store/listeners.spec.d.ts +0 -1
- package/src/lib/store/reducer.d.ts +0 -26
- package/src/lib/store/reducer.spec.d.ts +0 -1
- package/src/lib/store/selectors.d.ts +0 -535
- package/src/lib/store/selectors.spec.d.ts +0 -1
- package/src/lib/store/store.d.ts +0 -13
- package/src/lib/store/types.d.ts +0 -71
- package/src/lib/store/utils.d.ts +0 -9
- package/src/lib/store/utils.spec.d.ts +0 -1
- package/src/lib/utils/i18n.d.ts +0 -7
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
19
|
-
export declare const getSuccesMessage: (serviceName: string, t: TFunction) => string;
|
|
20
|
-
export declare const ServicePopup: React.FC<ServicePopupProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { ServicePopup } from './ServicePopup';
|
|
3
|
-
declare const meta: Meta<typeof ServicePopup>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ServicePopup>;
|
|
6
|
-
export declare const Component: Story;
|
|
7
|
-
export declare const ServicePopupAddLight: Story;
|
|
8
|
-
export declare const ServicePopupAddDark: Story;
|
|
9
|
-
export declare const ServicePopupShowLight: Story;
|
|
10
|
-
export declare const ServicePopupShowDark: Story;
|
|
11
|
-
export declare const ServicePopupEditLight: Story;
|
|
12
|
-
export declare const ServicePopupEditDark: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import type { serviceTypes } from '@opengeoweb/store';
|
|
3
|
-
import type { layerSelectTypes } from '../../store';
|
|
4
|
-
export type ValidationResult = string | boolean;
|
|
5
|
-
export declare const validateServiceName: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
|
|
6
|
-
export declare const validateServiceUrl: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities) => ValidationResult;
|
|
7
|
-
export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<serviceTypes.SetLayersForServicePayload>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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';
|
package/src/lib/index.d.ts
DELETED
package/src/lib/store/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|