@opengeoweb/layer-select 9.7.0 → 9.9.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
CHANGED
|
@@ -3990,6 +3990,28 @@ const LayerInfoDialog = ({
|
|
|
3990
3990
|
}));
|
|
3991
3991
|
};
|
|
3992
3992
|
|
|
3993
|
+
const LayerInfoDialogConnect = () => {
|
|
3994
|
+
const layer = useAppSelector(store => getActiveLayerInfo(store));
|
|
3995
|
+
const {
|
|
3996
|
+
dialogOrder,
|
|
3997
|
+
onCloseDialog,
|
|
3998
|
+
setDialogOrder,
|
|
3999
|
+
uiSource,
|
|
4000
|
+
isDialogOpen
|
|
4001
|
+
} = useSetupDialog(uiTypes.DialogTypes.LayerInfo);
|
|
4002
|
+
if (!layer) {
|
|
4003
|
+
return null;
|
|
4004
|
+
}
|
|
4005
|
+
return jsx(LayerInfoDialog, {
|
|
4006
|
+
isOpen: isDialogOpen,
|
|
4007
|
+
onClose: onCloseDialog,
|
|
4008
|
+
onMouseDown: setDialogOrder,
|
|
4009
|
+
order: dialogOrder,
|
|
4010
|
+
source: uiSource,
|
|
4011
|
+
layer: layer
|
|
4012
|
+
});
|
|
4013
|
+
};
|
|
4014
|
+
|
|
3993
4015
|
const LayerAddRemoveButton = ({
|
|
3994
4016
|
layer,
|
|
3995
4017
|
layerIndex,
|
|
@@ -5154,28 +5176,6 @@ const LayerSelect = ({
|
|
|
5154
5176
|
}));
|
|
5155
5177
|
};
|
|
5156
5178
|
|
|
5157
|
-
const LayerInfoDialogConnect = () => {
|
|
5158
|
-
const layer = useAppSelector(store => getActiveLayerInfo(store));
|
|
5159
|
-
const {
|
|
5160
|
-
dialogOrder,
|
|
5161
|
-
onCloseDialog,
|
|
5162
|
-
setDialogOrder,
|
|
5163
|
-
uiSource,
|
|
5164
|
-
isDialogOpen
|
|
5165
|
-
} = useSetupDialog(uiTypes.DialogTypes.LayerInfo);
|
|
5166
|
-
if (!layer) {
|
|
5167
|
-
return null;
|
|
5168
|
-
}
|
|
5169
|
-
return jsx(LayerInfoDialog, {
|
|
5170
|
-
isOpen: isDialogOpen,
|
|
5171
|
-
onClose: onCloseDialog,
|
|
5172
|
-
onMouseDown: setDialogOrder,
|
|
5173
|
-
order: dialogOrder,
|
|
5174
|
-
source: uiSource,
|
|
5175
|
-
layer: layer
|
|
5176
|
-
});
|
|
5177
|
-
};
|
|
5178
|
-
|
|
5179
5179
|
const style = {
|
|
5180
5180
|
textField: {
|
|
5181
5181
|
width: '100%',
|
|
@@ -5627,4 +5627,4 @@ const LayerSelectConnect = ({
|
|
|
5627
5627
|
});
|
|
5628
5628
|
};
|
|
5629
5629
|
|
|
5630
|
-
export { ADD_HEADING, AllChipConnect, COPY_URL_MESSAGE, DIALOG_TITLE, EDIT_HEADING, FilterListItem, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LayerAddRemoveButton, LayerInfoButton, LayerInfoButtonConnect, LayerInfoDialog, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SAVE_HEADING, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, getUserAddedServices, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, reducer as layerSelectReducer, selectors as layerSelectSelectors, types as layerSelectTypes, setUserAddedServices, useAppSelector };
|
|
5630
|
+
export { ADD_HEADING, AllChipConnect, COPY_URL_MESSAGE, DIALOG_TITLE, EDIT_HEADING, FilterListItem, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LayerAddRemoveButton, LayerInfoButton, LayerInfoButtonConnect, LayerInfoDialog, LayerInfoDialogConnect, LayerInfoLegend, LayerInfoList, LayerInfoText, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SAVE_HEADING, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getLayerBbox, getLayerStyles, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, getUserAddedServices, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, reducer as layerSelectReducer, selectors as layerSelectSelectors, types as layerSelectTypes, setUserAddedServices, textStyle, textStyleWithMargin, useAppSelector };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/layer-select",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"description": "GeoWeb layer select library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"react-window": "^1.8.10",
|
|
19
19
|
"@opengeoweb/snackbar": "*",
|
|
20
20
|
"@opengeoweb/form-fields": "*",
|
|
21
|
-
"react-hook-form": "7.
|
|
21
|
+
"react-hook-form": "^7.50.1",
|
|
22
22
|
"@reduxjs/toolkit": "^1.9.7",
|
|
23
23
|
"@redux-eggs/core": "^2.2.0",
|
|
24
24
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './LayerInfoButton';
|
|
1
2
|
export * from './LayerInfoButtonConnect';
|
|
2
3
|
export * from './LayerInfoDialog';
|
|
3
|
-
export * from './
|
|
4
|
+
export * from './LayerInfoDialogConnect';
|
|
5
|
+
export * from './LayerInfoLegend';
|
|
6
|
+
export * from './LayerInfoList';
|
|
7
|
+
export * from './LayerInfoText';
|
|
8
|
+
export * from './LayerInfoUtils';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { PayloadAction } from '@reduxjs/toolkit';
|
|
1
|
+
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { uiTypes } from '@opengeoweb/store';
|
|
3
3
|
import { EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
|
|
4
4
|
export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
|
|
5
5
|
export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
|
|
6
6
|
export declare const initialServicePopupState: ServicePopupObject;
|
|
7
7
|
export declare const initialState: LayerSelectStoreType;
|
|
8
|
-
export declare const reducer: import("redux").Reducer<
|
|
8
|
+
export declare const reducer: import("redux").Reducer<LayerSelectStoreType, import("redux").AnyAction>;
|
|
9
9
|
export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
10
|
-
setSearchFilter: (draft:
|
|
11
|
-
closeServicePopupOpen: (draft:
|
|
12
|
-
toggleServicePopup: (draft:
|
|
13
|
-
layerSelectRemoveService: (draft:
|
|
14
|
-
enableActiveService: (draft:
|
|
10
|
+
setSearchFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
|
|
11
|
+
closeServicePopupOpen: (draft: Draft<LayerSelectStoreType>) => void;
|
|
12
|
+
toggleServicePopup: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
|
|
13
|
+
layerSelectRemoveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
|
|
14
|
+
enableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
|
|
15
15
|
serviceId: string;
|
|
16
16
|
}>) => void;
|
|
17
|
-
enableAllActiveServices: (draft:
|
|
18
|
-
onlyThisServiceEnabled: (draft:
|
|
17
|
+
enableAllActiveServices: (draft: Draft<LayerSelectStoreType>) => void;
|
|
18
|
+
onlyThisServiceEnabled: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
|
|
19
19
|
serviceId: string;
|
|
20
20
|
}>) => void;
|
|
21
|
-
disableActiveService: (draft:
|
|
21
|
+
disableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
|
|
22
22
|
serviceId: string;
|
|
23
23
|
}>) => void;
|
|
24
|
-
toggleFilter: (draft:
|
|
25
|
-
enableOnlyOneFilter: (draft:
|
|
26
|
-
setActiveLayerInfo: (draft:
|
|
24
|
+
toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
|
|
25
|
+
enableOnlyOneFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
|
|
26
|
+
setActiveLayerInfo: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
|
|
27
27
|
}, uiTypes.DialogTypes.LayerSelect>;
|
|
28
28
|
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.enableOnlyOneFilter> | ReturnType<typeof layerSelectActions.setActiveLayerInfo>;
|
|
@@ -55,10 +55,10 @@ export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => st
|
|
|
55
55
|
}> & {
|
|
56
56
|
clearCache: () => void;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export interface FiltersGrouped {
|
|
59
59
|
groups: Filter[];
|
|
60
60
|
keywords: Filter[];
|
|
61
|
-
}
|
|
61
|
+
}
|
|
62
62
|
export declare const getFilters: ((state: LayerSelectModuleState) => FiltersGrouped) & import("reselect").OutputSelectorFields<(args_0: import("./types").ActiveServiceObject[], args_1: Filter[]) => FiltersGrouped, {
|
|
63
63
|
clearCache: () => void;
|
|
64
64
|
}> & {
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import { CoreAppStore, serviceTypes } from '@opengeoweb/store';
|
|
|
2
2
|
import { EntityState } from '@reduxjs/toolkit';
|
|
3
3
|
export type RootState = CoreAppStore & LayerSelectModuleState;
|
|
4
4
|
export type NoIdService = Omit<LayerSelectService, 'id'>;
|
|
5
|
-
export
|
|
6
|
-
[url: string]: NoIdService;
|
|
7
|
-
}
|
|
5
|
+
export type UserAddedServices = Record<string, NoIdService>;
|
|
8
6
|
export interface LayerSelectService {
|
|
9
7
|
name: string;
|
|
10
8
|
url: string;
|