@opengeoweb/layer-select 14.4.0 → 14.5.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 +316 -340
- package/package.json +8 -8
- package/src/lib/components/DataExplorerButtonConnect/DataExplorerButtonConnect.d.ts +1 -1
- package/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +1 -1
- package/src/lib/components/KeywordFilterResults/KeywordFilterResults.d.ts +3 -3
- package/src/lib/components/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +1 -1
- package/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +2 -2
- package/src/lib/components/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +1 -1
- package/src/lib/components/LayerList/LayerAddRemoveButton.d.ts +2 -2
- package/src/lib/components/LayerList/LayerList.d.ts +4 -4
- package/src/lib/components/LayerList/LayerList.spec.d.ts +1 -1
- package/src/lib/components/LayerList/LayerListConnect.d.ts +1 -1
- package/src/lib/components/LayerList/LayerListDimensions.d.ts +1 -1
- package/src/lib/components/LayerList/LayerListRow.d.ts +3 -3
- package/src/lib/components/LayerSelect/LayerSelect.d.ts +2 -2
- package/src/lib/components/LayerSelect/LayerSelectButtonConnect.d.ts +1 -1
- package/src/lib/components/LayerSelect/LayerSelectConnect.d.ts +1 -1
- package/src/lib/components/LayerSelect/LayerSelectUtils.d.ts +2 -2
- package/src/lib/components/Providers/Providers.d.ts +4 -4
- package/src/lib/components/SearchField/SearchFieldConnect.d.ts +1 -1
- package/src/lib/components/ServiceList/ServiceChip.d.ts +2 -2
- package/src/lib/components/ServiceList/ServiceChipConnect.d.ts +2 -2
- package/src/lib/components/ServiceList/ServiceList.d.ts +2 -2
- package/src/lib/components/ServiceList/ServiceListConnect.d.ts +1 -1
- package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.d.ts +1 -1
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -3
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +2 -2
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +1 -1
- package/src/lib/components/ServicePopup/ServicePopup.d.ts +4 -4
- package/src/lib/components/ServicePopup/ServicePopupDialogConnect.d.ts +1 -1
- package/src/lib/components/ServicePopup/utils.d.ts +3 -3
- package/src/lib/store/index.d.ts +1 -1
- package/src/lib/store/listeners.d.ts +1 -1
- package/src/lib/store/reducer.d.ts +2 -2
- package/src/lib/store/selectors.d.ts +2 -2
- package/src/lib/store/store.d.ts +3 -3
- package/src/lib/store/types.d.ts +3 -3
- package/src/lib/store/utils.d.ts +5 -5
- package/src/lib/utils/i18n.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/layer-select",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.1",
|
|
4
4
|
"description": "GeoWeb layer select library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "14.
|
|
12
|
-
"@opengeoweb/store": "14.
|
|
11
|
+
"@opengeoweb/shared": "14.5.1",
|
|
12
|
+
"@opengeoweb/store": "14.5.1",
|
|
13
13
|
"react-redux": "^9.2.0",
|
|
14
|
-
"@opengeoweb/theme": "14.
|
|
15
|
-
"@opengeoweb/webmap-react": "14.
|
|
16
|
-
"@opengeoweb/webmap": "14.
|
|
14
|
+
"@opengeoweb/theme": "14.5.1",
|
|
15
|
+
"@opengeoweb/webmap-react": "14.5.1",
|
|
16
|
+
"@opengeoweb/webmap": "14.5.1",
|
|
17
17
|
"react-window": "^1.8.10",
|
|
18
|
-
"@opengeoweb/snackbar": "14.
|
|
19
|
-
"@opengeoweb/form-fields": "14.
|
|
18
|
+
"@opengeoweb/snackbar": "14.5.1",
|
|
19
|
+
"@opengeoweb/form-fields": "14.5.1",
|
|
20
20
|
"react-hook-form": "^7.50.1",
|
|
21
21
|
"@reduxjs/toolkit": "^2.6.1",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
-
import { FiltersGrouped } from '../../store/selectors';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { uiTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { FiltersGrouped } from '../../store/selectors';
|
|
4
4
|
export interface KeywordFilterResultsProps {
|
|
5
5
|
bounds?: string;
|
|
6
6
|
onClose?: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const KeywordFilterSelectAllSwitchConnect: React.FC;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { DeleteLayerParams } from './LayerAddRemoveButton';
|
|
4
|
+
import type { LayerWithServiceName } from '../../store/types';
|
|
5
5
|
interface AddLayerParams {
|
|
6
6
|
serviceUrl: string;
|
|
7
7
|
layerName: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { LayerWithServiceName } from '../../store/types';
|
|
1
|
+
import type { LayerWithServiceName } from '../../store/types';
|
|
2
2
|
export declare const defaultReduxActiveLayers: LayerWithServiceName[];
|
|
3
3
|
export declare const defaultReduxActiveLayersWithoutOptionalVariables: LayerWithServiceName[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
3
|
-
import { LayerProps } from '@opengeoweb/webmap';
|
|
4
|
-
import { DeleteLayerParams } from './LayerAddRemoveButton';
|
|
2
|
+
import type { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { LayerProps } from '@opengeoweb/webmap';
|
|
4
|
+
import type { DeleteLayerParams } from './LayerAddRemoveButton';
|
|
5
5
|
interface AddLayerParams {
|
|
6
6
|
serviceUrl: string;
|
|
7
7
|
layerName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { layerSelectTypes } from '../../store';
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { layerSelectTypes } from '../../store';
|
|
3
3
|
export declare const layerSelectColumnsLarge: {
|
|
4
4
|
column1: {
|
|
5
5
|
width: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material';
|
|
2
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
3
|
+
import type i18n from 'i18next';
|
|
1
4
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { Theme } from '@mui/material';
|
|
4
|
-
import { ThemeProviderProps } from '@opengeoweb/theme';
|
|
5
|
-
import { Store } from '@reduxjs/toolkit';
|
|
5
|
+
import type { ThemeProviderProps } from '@opengeoweb/theme';
|
|
6
6
|
interface BaseProviderProps {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
theme?: Theme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const SearchFieldConnect: React.FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { layerSelectTypes } from '../../store';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { layerSelectTypes } from '../../store';
|
|
3
3
|
export interface ServiceChipConnectProps {
|
|
4
4
|
service: layerSelectTypes.ActiveServiceObject;
|
|
5
5
|
isAllSelected: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { layerSelectTypes } from '../../store';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { layerSelectTypes } from '../../store';
|
|
3
3
|
interface ServiceListProps {
|
|
4
4
|
activeServicesById: layerSelectTypes.ActiveServiceObjectEntities;
|
|
5
5
|
setHeight: (height: number) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { layerSelectTypes } from '../../store';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { layerTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { layerSelectTypes } from '../../store';
|
|
4
4
|
interface ServiceOptionsDialogProps {
|
|
5
5
|
services: layerSelectTypes.ActiveServiceObjectEntities;
|
|
6
6
|
layerSelectRemoveService?: (serviceId: string, serviceUrl: string, serviceName: string) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import type { layerTypes } from '@opengeoweb/store';
|
|
3
3
|
import { ServiceOptionsDialog } from './ServiceOptionsDialog';
|
|
4
|
-
import { layerSelectTypes } from '../../store';
|
|
4
|
+
import type { layerSelectTypes } from '../../store';
|
|
5
5
|
declare const meta: Meta<typeof ServiceOptionsDialog>;
|
|
6
6
|
export default meta;
|
|
7
7
|
type Story = StoryObj<typeof ServiceOptionsDialog>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { layerSelectTypes } from '../../store';
|
|
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
5
|
export interface ServicePopupProps {
|
|
6
6
|
servicePopupVariant: layerSelectTypes.PopupVariant;
|
|
7
7
|
hideBackdrop?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { layerSelectTypes } from '../../store';
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { serviceTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { layerSelectTypes } from '../../store';
|
|
4
4
|
export type ValidationResult = string | boolean;
|
|
5
5
|
export declare const validateServiceName: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
|
|
6
6
|
export declare const validateServiceUrl: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities) => ValidationResult;
|
package/src/lib/store/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { layerSelectActions, initialState as layerSelectInitialState, layerSelectReducer, } from './reducer';
|
|
2
2
|
export * as layerSelectSelectors from './selectors';
|
|
3
3
|
export { useAppSelector } from './selectors';
|
|
4
|
-
export * as layerSelectTypes from './types';
|
|
4
|
+
export type * as layerSelectTypes from './types';
|
|
5
5
|
export * from './store';
|
|
6
6
|
export { isUserAddedService } from './utils';
|
|
7
7
|
export { layerSelectListener } from './listeners';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RootState } from './types';
|
|
1
|
+
import type { RootState } from './types';
|
|
2
2
|
export declare const layerSelectListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<RootState, import("redux-thunk").ThunkDispatch<RootState, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
1
|
+
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
-
import { LayerSelectRemoveServicePayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
|
|
3
|
+
import type { LayerSelectRemoveServicePayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
|
|
4
4
|
export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter, string>;
|
|
5
5
|
export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject, string>;
|
|
6
6
|
export declare const initialServicePopupState: ServicePopupObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import { LayerSelectStoreType, ActiveServiceObjectEntities, ServicePopupObject, LayerSelectModuleState, RootState, Filter, LayerWithServiceName } from './types';
|
|
1
|
+
import type { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
+
import type { LayerSelectStoreType, ActiveServiceObjectEntities, ServicePopupObject, LayerSelectModuleState, RootState, Filter, LayerWithServiceName } from './types';
|
|
3
3
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
4
4
|
/**
|
|
5
5
|
* Returns search filter string
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { LayerSelectModuleState } from './types';
|
|
1
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import type { WebMapStateModuleState, UIModuleState } from '@opengeoweb/store';
|
|
3
|
+
import type { LayerSelectModuleState } from './types';
|
|
4
4
|
export declare const layerSelectReducersMap: {
|
|
5
5
|
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
6
6
|
services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").ServiceState>;
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SystemScope } from '@opengeoweb/shared';
|
|
3
|
+
import type { CoreAppStore, serviceTypes } from '@opengeoweb/store';
|
|
4
4
|
export type RootState = CoreAppStore & LayerSelectModuleState;
|
|
5
5
|
export interface LayerWithServiceName extends serviceTypes.ServiceLayer {
|
|
6
6
|
serviceName: string;
|
package/src/lib/store/utils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Filter, FilterType, LayerSelectStoreType } from './types';
|
|
1
|
+
import type { Draft, EntityAdapter } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SystemScope } from '@opengeoweb/shared';
|
|
3
|
+
import type { serviceTypes } from '@opengeoweb/store';
|
|
4
|
+
import type { LayerProps } from '@opengeoweb/webmap';
|
|
5
|
+
import type { Filter, FilterType, LayerSelectStoreType } from './types';
|
|
6
6
|
export declare const getFilterId: (filterType: FilterType, filterName: string) => string;
|
|
7
7
|
export declare const produceFilters: (filterNames: string[], filterType: FilterType, draft: Draft<LayerSelectStoreType>, layerSelectFilterAdapter: EntityAdapter<Filter, string>) => void;
|
|
8
8
|
export declare const filterLayersFromService: (serviceId: string, services: serviceTypes.Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => LayerProps[];
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
|
-
import { UseTranslationResponse } from 'react-i18next';
|
|
2
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const LAYER_SELECT_NAMESPACE = "layerselect";
|
|
4
4
|
export declare const initLayerSelectI18n: () => typeof i18n;
|
|
5
5
|
export declare const useLayerSelectTranslation: () => UseTranslationResponse<typeof LAYER_SELECT_NAMESPACE, typeof i18n>;
|