@opengeoweb/layer-select 9.28.1 → 9.29.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.
Files changed (79) hide show
  1. package/index.esm.js +185 -169
  2. package/package.json +1 -1
  3. package/src/index.d.ts +4 -4
  4. package/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +9 -9
  5. package/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.spec.d.ts +1 -1
  6. package/src/lib/components/KeywordFilterButton/index.d.ts +1 -1
  7. package/src/lib/components/KeywordFilterResults/KeywordFilterResults.d.ts +13 -13
  8. package/src/lib/components/KeywordFilterResults/KeywordFilterResults.integration.spec.d.ts +1 -1
  9. package/src/lib/components/KeywordFilterResults/KeywordFilterResults.stories.d.ts +25 -25
  10. package/src/lib/components/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +8 -8
  11. package/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -6
  12. package/src/lib/components/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +2 -2
  13. package/src/lib/components/KeywordFilterResults/index.d.ts +4 -4
  14. package/src/lib/components/LayerList/LayerAddRemoveButton.d.ts +19 -19
  15. package/src/lib/components/LayerList/LayerAddRemoveButton.spec.d.ts +1 -1
  16. package/src/lib/components/LayerList/LayerList.d.ts +26 -26
  17. package/src/lib/components/LayerList/LayerList.spec.d.ts +3 -3
  18. package/src/lib/components/LayerList/LayerListConnect.d.ts +9 -9
  19. package/src/lib/components/LayerList/LayerListConnect.spec.d.ts +1 -1
  20. package/src/lib/components/LayerList/LayerListDimensions.d.ts +7 -7
  21. package/src/lib/components/LayerList/LayerListRow.d.ts +21 -21
  22. package/src/lib/components/LayerList/index.d.ts +5 -5
  23. package/src/lib/components/LayerSelect/LayerSelect.d.ts +20 -20
  24. package/src/lib/components/LayerSelect/LayerSelect.spec.d.ts +1 -1
  25. package/src/lib/components/LayerSelect/LayerSelect.stories.d.ts +33 -33
  26. package/src/lib/components/LayerSelect/LayerSelectButtonConnect.d.ts +11 -11
  27. package/src/lib/components/LayerSelect/LayerSelectButtonConnect.spec.d.ts +1 -1
  28. package/src/lib/components/LayerSelect/LayerSelectConnect.d.ts +16 -16
  29. package/src/lib/components/LayerSelect/LayerSelectConnect.integration.spec.d.ts +1 -1
  30. package/src/lib/components/LayerSelect/LayerSelectConnect.spec.d.ts +1 -1
  31. package/src/lib/components/LayerSelect/LayerSelectUtils.d.ts +77 -77
  32. package/src/lib/components/LayerSelect/LayerSelectUtils.spec.d.ts +1 -1
  33. package/src/lib/components/LayerSelect/index.d.ts +2 -2
  34. package/src/lib/components/Providers/Providers.d.ts +20 -20
  35. package/src/lib/components/Providers/index.d.ts +1 -1
  36. package/src/lib/components/SearchField/SearchFieldConnect.d.ts +2 -2
  37. package/src/lib/components/SearchField/SearchFieldConnect.spec.d.ts +1 -1
  38. package/src/lib/components/SearchField/index.d.ts +1 -1
  39. package/src/lib/components/ServiceList/ServiceChip.d.ts +11 -11
  40. package/src/lib/components/ServiceList/ServiceChip.spec.d.ts +1 -1
  41. package/src/lib/components/ServiceList/ServiceChipConnect.d.ts +10 -10
  42. package/src/lib/components/ServiceList/ServiceList.d.ts +8 -8
  43. package/src/lib/components/ServiceList/ServiceListConnect.d.ts +6 -6
  44. package/src/lib/components/ServiceList/ServiceListConnect.spec.d.ts +1 -1
  45. package/src/lib/components/ServiceList/index.d.ts +4 -4
  46. package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.d.ts +6 -6
  47. package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +1 -1
  48. package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +7 -7
  49. package/src/lib/components/ServiceOptionsButton/index.d.ts +1 -1
  50. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +19 -19
  51. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +1 -1
  52. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +25 -25
  53. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +9 -8
  54. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +1 -1
  55. package/src/lib/components/ServiceOptionsDialog/index.d.ts +2 -2
  56. package/src/lib/components/ServicePopup/ServicePopup.d.ts +20 -19
  57. package/src/lib/components/ServicePopup/ServicePopup.spec.d.ts +1 -1
  58. package/src/lib/components/ServicePopup/ServicePopup.stories.d.ts +44 -43
  59. package/src/lib/components/ServicePopup/ServicePopupConnect.d.ts +2 -2
  60. package/src/lib/components/ServicePopup/ServicePopupConnect.spec.d.ts +1 -1
  61. package/src/lib/components/ServicePopup/ServicePopupConnect.stories.d.ts +6 -6
  62. package/src/lib/components/ServicePopup/ServicePopupDialogConnect.d.ts +11 -11
  63. package/src/lib/components/ServicePopup/index.d.ts +3 -3
  64. package/src/lib/components/ServicePopup/utils.d.ts +6 -6
  65. package/src/lib/components/ServicePopup/utils.spec.d.ts +1 -1
  66. package/src/lib/components/index.d.ts +9 -9
  67. package/src/lib/index.d.ts +2 -2
  68. package/src/lib/store/config.d.ts +4 -4
  69. package/src/lib/store/index.d.ts +6 -6
  70. package/src/lib/store/listeners.d.ts +2 -2
  71. package/src/lib/store/listeners.spec.d.ts +1 -1
  72. package/src/lib/store/reducer.d.ts +27 -27
  73. package/src/lib/store/reducer.spec.d.ts +1 -1
  74. package/src/lib/store/selectors.d.ts +97 -97
  75. package/src/lib/store/selectors.spec.d.ts +1 -1
  76. package/src/lib/store/types.d.ts +68 -68
  77. package/src/lib/store/utils.d.ts +8 -8
  78. package/src/lib/store/utils.spec.d.ts +1 -1
  79. package/src/lib/utils/i18n.d.ts +6 -6
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- import { 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
+ import React from 'react';
2
+ import { 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,3 +1,3 @@
1
- export * from './ServicePopup';
2
- export * from './ServicePopupConnect';
3
- export * from './ServicePopupDialogConnect';
1
+ export * from './ServicePopup';
2
+ export * from './ServicePopupConnect';
3
+ export * from './ServicePopupDialogConnect';
@@ -1,6 +1,6 @@
1
- import { serviceTypes } from '@opengeoweb/store';
2
- import { layerSelectTypes } from '../../store';
3
- export type ValidationResult = string | boolean;
4
- export declare const validateServiceName: (value: string, services: layerSelectTypes.ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
5
- export declare const validateServiceUrl: (value: string, services: layerSelectTypes.ActiveServiceObjectEntities) => ValidationResult;
6
- export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<serviceTypes.SetLayersForServicePayload>;
1
+ import { serviceTypes } from '@opengeoweb/store';
2
+ import { layerSelectTypes } from '../../store';
3
+ export type ValidationResult = string | boolean;
4
+ export declare const validateServiceName: (value: string, services: layerSelectTypes.ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
5
+ export declare const validateServiceUrl: (value: string, services: layerSelectTypes.ActiveServiceObjectEntities) => ValidationResult;
6
+ export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<serviceTypes.SetLayersForServicePayload>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,9 +1,9 @@
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';
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';
@@ -1,2 +1,2 @@
1
- export * from './components';
2
- export * from './store';
1
+ export * from './components';
2
+ export * from './store';
@@ -1,4 +1,4 @@
1
- import { Egg } from '@redux-eggs/core';
2
- import { Store } from '@reduxjs/toolkit';
3
- import { LayerSelectModuleState } from './types';
4
- export declare const layerSelectConfig: Egg<Store<LayerSelectModuleState>>;
1
+ import { Egg } from '@redux-eggs/core';
2
+ import { Store } from '@reduxjs/toolkit';
3
+ import { LayerSelectModuleState } from './types';
4
+ export declare const layerSelectConfig: Egg<Store<LayerSelectModuleState>>;
@@ -1,6 +1,6 @@
1
- export { layerSelectActions, initialState as layerSelectInitialState, reducer as layerSelectReducer, } from './reducer';
2
- export * as layerSelectSelectors from './selectors';
3
- export { useAppSelector } from './selectors';
4
- export * as layerSelectTypes from './types';
5
- export * from './config';
6
- export { isUserAddedService } from './utils';
1
+ export { layerSelectActions, initialState as layerSelectInitialState, reducer as layerSelectReducer, } from './reducer';
2
+ export * as layerSelectSelectors from './selectors';
3
+ export { useAppSelector } from './selectors';
4
+ export * as layerSelectTypes from './types';
5
+ export * from './config';
6
+ export { isUserAddedService } from './utils';
@@ -1,2 +1,2 @@
1
- import { RootState } from './types';
2
- export declare const layerSelectListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<RootState, import("@reduxjs/toolkit").ThunkDispatch<RootState, unknown, import("redux").AnyAction>, unknown>;
1
+ import { RootState } from './types';
2
+ export declare const layerSelectListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<RootState, import("@reduxjs/toolkit").ThunkDispatch<RootState, unknown, import("redux").AnyAction>, unknown>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,27 +1,27 @@
1
- import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { uiTypes } from '@opengeoweb/store';
3
- import { EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
4
- export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
5
- export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
6
- export declare const initialServicePopupState: ServicePopupObject;
7
- export declare const initialState: LayerSelectStoreType;
8
- export declare const reducer: import("redux").Reducer<LayerSelectStoreType, import("redux").AnyAction>;
9
- export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
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
- serviceId: string;
16
- }>) => void;
17
- enableAllActiveServices: (draft: Draft<LayerSelectStoreType>) => void;
18
- onlyThisServiceEnabled: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
19
- serviceId: string;
20
- }>) => void;
21
- disableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
22
- serviceId: string;
23
- }>) => void;
24
- toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
25
- enableOnlyOneFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
26
- }, uiTypes.DialogTypes.LayerSelect>;
27
- 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>;
1
+ import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
+ import { uiTypes } from '@opengeoweb/store';
3
+ import { EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
4
+ export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
5
+ export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
6
+ export declare const initialServicePopupState: ServicePopupObject;
7
+ export declare const initialState: LayerSelectStoreType;
8
+ export declare const reducer: import("redux").Reducer<LayerSelectStoreType>;
9
+ export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
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
+ serviceId: string;
16
+ }>) => void;
17
+ enableAllActiveServices: (draft: Draft<LayerSelectStoreType>) => void;
18
+ onlyThisServiceEnabled: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
19
+ serviceId: string;
20
+ }>) => void;
21
+ disableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
22
+ serviceId: string;
23
+ }>) => void;
24
+ toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
25
+ enableOnlyOneFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
26
+ }, uiTypes.DialogTypes.LayerSelect>;
27
+ 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>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,97 +1,97 @@
1
- import { TypedUseSelectorHook } from 'react-redux';
2
- import { LayerSelectStoreType, ActiveServiceObjectEntities, ServicePopupObject, LayerSelectModuleState, RootState, Filter, LayerWithServiceName } from './types';
3
- export declare const useAppSelector: TypedUseSelectorHook<RootState>;
4
- /**
5
- * Returns search filter string
6
- *
7
- * Example getSearchFilter(store);
8
- * @param {object} store store: object - store object
9
- * @returns {array} returnType: string
10
- */
11
- export declare const getSearchFilter: ((state: LayerSelectModuleState) => string) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string, {
12
- clearCache: () => void;
13
- }> & {
14
- clearCache: () => void;
15
- };
16
- /**
17
- * Returns active services array
18
- *
19
- * Example getActiveServices(store);
20
- * @param {object} store store: object - store object
21
- * @returns {ActiveServiceObjectEntities} returnType: ActiveServiceObjectEntitiesobject of active services
22
- */
23
- export declare const getActiveServices: (store: LayerSelectModuleState) => ActiveServiceObjectEntities;
24
- export declare const getActiveServicesDictionary: (state: LayerSelectModuleState) => import("@reduxjs/toolkit").Dictionary<import("./types").ActiveServiceObject>, getActiveServiceById: (state: LayerSelectModuleState, id: import("@reduxjs/toolkit").EntityId) => import("./types").ActiveServiceObject | undefined, getAllActiveServices: (state: LayerSelectModuleState) => import("./types").ActiveServiceObject[];
25
- /**
26
- * Returns all ids of enabled services
27
- *
28
- * Example getEnabledServiceIds(store);
29
- * @param {object} store store: object - store object
30
- * @returns {array} returnType: array of service ids that are enabled
31
- */
32
- export declare const getEnabledServiceIds: ((state: LayerSelectModuleState) => string[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ActiveServiceObject[]) => string[], {
33
- clearCache: () => void;
34
- }> & {
35
- clearCache: () => void;
36
- };
37
- /**
38
- * Returns ids of all keywords
39
- *
40
- * Example getAllKeywordIds(store);
41
- * @param {object} store store: object - store object
42
- * @returns {array} returnType: array of all keyword ids
43
- */
44
- export declare const getAllFilterIds: (store: LayerSelectModuleState) => string[];
45
- export declare const getAllFilters: (state: LayerSelectModuleState) => Filter[], getAllFilterIdsEntity: (state: LayerSelectModuleState) => import("@reduxjs/toolkit").EntityId[], getFilterById: (state: LayerSelectModuleState, id: import("@reduxjs/toolkit").EntityId) => Filter | undefined;
46
- /**
47
- * Returns all ids of checked keywords
48
- *
49
- * Example getCheckedKeywordIds(store);
50
- * @param {object} store store: object - store object
51
- * @returns {array} returnType: array of keyword ids that are checked
52
- */
53
- export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => string[]) & import("reselect").OutputSelectorFields<(args_0: Filter[]) => string[], {
54
- clearCache: () => void;
55
- }> & {
56
- clearCache: () => void;
57
- };
58
- export interface FiltersGrouped {
59
- groups: Filter[];
60
- keywords: Filter[];
61
- }
62
- export declare const getFilters: ((state: LayerSelectModuleState) => FiltersGrouped) & import("reselect").OutputSelectorFields<(args_0: import("./types").ActiveServiceObject[], args_1: Filter[]) => FiltersGrouped, {
63
- clearCache: () => void;
64
- }> & {
65
- clearCache: () => void;
66
- };
67
- /**
68
- * Returns if all keywords are checked
69
- *
70
- * Example isAllKeywordsChecked(store);
71
- * @param {object} store store: object - store object
72
- * @returns {array} returnType: boolean if all keywords are checked
73
- */
74
- export declare const isAllFiltersChecked: ((state: LayerSelectModuleState) => boolean) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => boolean, {
75
- clearCache: () => void;
76
- }> & {
77
- clearCache: () => void;
78
- };
79
- /**
80
- * Returns a filtered active layer object based on the given filter settings
81
- * Example: layerSelectSelectors.getFilteredLayers(store, filteredSettings);
82
- * @param {object} store store: object - object from which the service state will be extracted
83
- * @returns {array} returnType: LayerWithServiceName - an array of all filtered activelayers
84
- */
85
- export declare const getFilteredLayers: ((state: LayerSelectModuleState & import("@opengeoweb/store").CoreAppStore) => LayerWithServiceName[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: import("dist/libs/store/src/store/mapStore/types").Services, args_2: string[], args_3: boolean, args_4: string) => LayerWithServiceName[], {
86
- clearCache: () => void;
87
- }> & {
88
- clearCache: () => void;
89
- };
90
- /**
91
- * Returns service popup details
92
- *
93
- * Example getActiveServices(store, 'server-id');
94
- * @param {object} store store: object - store object
95
- * @returns {object} returnType: object of active service
96
- */
97
- export declare const getServicePopupDetails: (store: LayerSelectModuleState) => ServicePopupObject;
1
+ import { TypedUseSelectorHook } from 'react-redux';
2
+ import { LayerSelectStoreType, ActiveServiceObjectEntities, ServicePopupObject, LayerSelectModuleState, RootState, Filter, LayerWithServiceName } from './types';
3
+ export declare const useAppSelector: TypedUseSelectorHook<RootState>;
4
+ /**
5
+ * Returns search filter string
6
+ *
7
+ * Example getSearchFilter(store);
8
+ * @param {object} store store: object - store object
9
+ * @returns {array} returnType: string
10
+ */
11
+ export declare const getSearchFilter: ((state: LayerSelectModuleState) => string) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string, {
12
+ clearCache: () => void;
13
+ }> & {
14
+ clearCache: () => void;
15
+ };
16
+ /**
17
+ * Returns active services array
18
+ *
19
+ * Example getActiveServices(store);
20
+ * @param {object} store store: object - store object
21
+ * @returns {ActiveServiceObjectEntities} returnType: ActiveServiceObjectEntitiesobject of active services
22
+ */
23
+ export declare const getActiveServices: (store: LayerSelectModuleState) => ActiveServiceObjectEntities;
24
+ export declare const getActiveServicesDictionary: (state: LayerSelectModuleState) => import("@reduxjs/toolkit").Dictionary<import("./types").ActiveServiceObject>, getActiveServiceById: (state: LayerSelectModuleState, id: import("@reduxjs/toolkit").EntityId) => import("./types").ActiveServiceObject | undefined, getAllActiveServices: (state: LayerSelectModuleState) => import("./types").ActiveServiceObject[];
25
+ /**
26
+ * Returns all ids of enabled services
27
+ *
28
+ * Example getEnabledServiceIds(store);
29
+ * @param {object} store store: object - store object
30
+ * @returns {array} returnType: array of service ids that are enabled
31
+ */
32
+ export declare const getEnabledServiceIds: ((state: LayerSelectModuleState) => string[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ActiveServiceObject[]) => string[], {
33
+ clearCache: () => void;
34
+ }> & {
35
+ clearCache: () => void;
36
+ };
37
+ /**
38
+ * Returns ids of all keywords
39
+ *
40
+ * Example getAllKeywordIds(store);
41
+ * @param {object} store store: object - store object
42
+ * @returns {array} returnType: array of all keyword ids
43
+ */
44
+ export declare const getAllFilterIds: (store: LayerSelectModuleState) => string[];
45
+ export declare const getAllFilters: (state: LayerSelectModuleState) => Filter[], getAllFilterIdsEntity: (state: LayerSelectModuleState) => import("@reduxjs/toolkit").EntityId[], getFilterById: (state: LayerSelectModuleState, id: import("@reduxjs/toolkit").EntityId) => Filter | undefined;
46
+ /**
47
+ * Returns all ids of checked keywords
48
+ *
49
+ * Example getCheckedKeywordIds(store);
50
+ * @param {object} store store: object - store object
51
+ * @returns {array} returnType: array of keyword ids that are checked
52
+ */
53
+ export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => string[]) & import("reselect").OutputSelectorFields<(args_0: Filter[]) => string[], {
54
+ clearCache: () => void;
55
+ }> & {
56
+ clearCache: () => void;
57
+ };
58
+ export interface FiltersGrouped {
59
+ groups: Filter[];
60
+ keywords: Filter[];
61
+ }
62
+ export declare const getFilters: ((state: LayerSelectModuleState) => FiltersGrouped) & import("reselect").OutputSelectorFields<(args_0: import("./types").ActiveServiceObject[], args_1: Filter[]) => FiltersGrouped, {
63
+ clearCache: () => void;
64
+ }> & {
65
+ clearCache: () => void;
66
+ };
67
+ /**
68
+ * Returns if all keywords are checked
69
+ *
70
+ * Example isAllKeywordsChecked(store);
71
+ * @param {object} store store: object - store object
72
+ * @returns {array} returnType: boolean if all keywords are checked
73
+ */
74
+ export declare const isAllFiltersChecked: ((state: LayerSelectModuleState) => boolean) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => boolean, {
75
+ clearCache: () => void;
76
+ }> & {
77
+ clearCache: () => void;
78
+ };
79
+ /**
80
+ * Returns a filtered active layer object based on the given filter settings
81
+ * Example: layerSelectSelectors.getFilteredLayers(store, filteredSettings);
82
+ * @param {object} store store: object - object from which the service state will be extracted
83
+ * @returns {array} returnType: LayerWithServiceName - an array of all filtered activelayers
84
+ */
85
+ export declare const getFilteredLayers: ((state: LayerSelectModuleState & import("@opengeoweb/store").CoreAppStore) => LayerWithServiceName[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: import("dist/libs/store/src/store/mapStore/types").Services, args_2: string[], args_3: boolean, args_4: string) => LayerWithServiceName[], {
86
+ clearCache: () => void;
87
+ }> & {
88
+ clearCache: () => void;
89
+ };
90
+ /**
91
+ * Returns service popup details
92
+ *
93
+ * Example getActiveServices(store, 'server-id');
94
+ * @param {object} store store: object - store object
95
+ * @returns {object} returnType: object of active service
96
+ */
97
+ export declare const getServicePopupDetails: (store: LayerSelectModuleState) => ServicePopupObject;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,68 +1,68 @@
1
- import { FilterListItemFilter } from '@opengeoweb/shared';
2
- import { CoreAppStore, serviceTypes } from '@opengeoweb/store';
3
- import { EntityState } from '@reduxjs/toolkit';
4
- export type RootState = CoreAppStore & LayerSelectModuleState;
5
- export interface LayerWithServiceName extends serviceTypes.ServiceLayer {
6
- serviceName: string;
7
- }
8
- export interface ActiveServiceObject {
9
- serviceId?: string;
10
- serviceName?: string;
11
- serviceUrl?: string;
12
- abstract?: string;
13
- enabled?: boolean;
14
- filterIds?: string[];
15
- scope?: serviceTypes.ServiceScope;
16
- isLoading?: boolean;
17
- keywords?: string[];
18
- groups?: string[];
19
- }
20
- export type FilterType = 'keywords' | 'groups';
21
- export interface Filter extends FilterListItemFilter {
22
- type: FilterType;
23
- }
24
- export type ActiveServiceObjectEntities = Record<string, ActiveServiceObject>;
25
- export type Filters = EntityState<Filter>;
26
- export type ActiveServiceType = EntityState<ActiveServiceObject>;
27
- export interface FiltersType {
28
- searchFilter: string;
29
- activeServices: ActiveServiceType;
30
- filters: Filters;
31
- }
32
- export type PopupVariant = 'edit' | 'add' | 'save' | 'show';
33
- export interface ServicePopupObject {
34
- isOpen: boolean;
35
- variant: PopupVariant;
36
- url?: string;
37
- serviceId?: string;
38
- }
39
- export interface LayerSelectStoreType {
40
- filters: FiltersType;
41
- allServicesEnabled: boolean;
42
- servicePopup: ServicePopupObject;
43
- }
44
- export interface LayerSelectModuleState {
45
- layerSelect?: LayerSelectStoreType;
46
- }
47
- export interface SetSearchFilterPayload {
48
- filterText: string;
49
- }
50
- export interface SetAllServicesEnabledPayload {
51
- allServicesEnabled: boolean;
52
- }
53
- export interface ToggleServicePopupPayload {
54
- url?: string;
55
- variant: PopupVariant;
56
- serviceId?: string;
57
- isOpen: boolean;
58
- }
59
- export interface LayerSelectRemoveServicePayload {
60
- serviceId: string;
61
- serviceUrl?: string;
62
- }
63
- export interface ToggleKeywordsPayload {
64
- filterIds: string[];
65
- }
66
- export interface EnableOnlyOneKeywordPayload {
67
- filterId: string;
68
- }
1
+ import { FilterListItemFilter } from '@opengeoweb/shared';
2
+ import { CoreAppStore, serviceTypes } from '@opengeoweb/store';
3
+ import { EntityState } from '@reduxjs/toolkit';
4
+ export type RootState = CoreAppStore & LayerSelectModuleState;
5
+ export interface LayerWithServiceName extends serviceTypes.ServiceLayer {
6
+ serviceName: string;
7
+ }
8
+ export interface ActiveServiceObject {
9
+ serviceId?: string;
10
+ serviceName?: string;
11
+ serviceUrl?: string;
12
+ abstract?: string;
13
+ enabled?: boolean;
14
+ filterIds?: string[];
15
+ scope?: serviceTypes.ServiceScope;
16
+ isLoading?: boolean;
17
+ keywords?: string[];
18
+ groups?: string[];
19
+ }
20
+ export type FilterType = 'keywords' | 'groups';
21
+ export interface Filter extends FilterListItemFilter {
22
+ type: FilterType;
23
+ }
24
+ export type ActiveServiceObjectEntities = Record<string, ActiveServiceObject>;
25
+ export type Filters = EntityState<Filter>;
26
+ export type ActiveServiceType = EntityState<ActiveServiceObject>;
27
+ export interface FiltersType {
28
+ searchFilter: string;
29
+ activeServices: ActiveServiceType;
30
+ filters: Filters;
31
+ }
32
+ export type PopupVariant = 'edit' | 'add' | 'save' | 'show';
33
+ export interface ServicePopupObject {
34
+ isOpen: boolean;
35
+ variant: PopupVariant;
36
+ url?: string;
37
+ serviceId?: string;
38
+ }
39
+ export interface LayerSelectStoreType {
40
+ filters: FiltersType;
41
+ allServicesEnabled: boolean;
42
+ servicePopup: ServicePopupObject;
43
+ }
44
+ export interface LayerSelectModuleState {
45
+ layerSelect?: LayerSelectStoreType;
46
+ }
47
+ export interface SetSearchFilterPayload {
48
+ filterText: string;
49
+ }
50
+ export interface SetAllServicesEnabledPayload {
51
+ allServicesEnabled: boolean;
52
+ }
53
+ export interface ToggleServicePopupPayload {
54
+ url?: string;
55
+ variant: PopupVariant;
56
+ serviceId?: string;
57
+ isOpen: boolean;
58
+ }
59
+ export interface LayerSelectRemoveServicePayload {
60
+ serviceId: string;
61
+ serviceUrl?: string;
62
+ }
63
+ export interface ToggleKeywordsPayload {
64
+ filterIds: string[];
65
+ }
66
+ export interface EnableOnlyOneKeywordPayload {
67
+ filterId: string;
68
+ }
@@ -1,8 +1,8 @@
1
- import { EntityAdapter, Draft } from '@reduxjs/toolkit';
2
- import { serviceTypes } from '@opengeoweb/store';
3
- import { LayerProps } from '@opengeoweb/webmap';
4
- import { Filter, FilterType, LayerSelectStoreType } from './types';
5
- export declare const getFilterId: (filterType: FilterType, filterName: string) => string;
6
- export declare const produceFilters: (filterNames: string[], filterType: FilterType, draft: Draft<LayerSelectStoreType>, layerSelectFilterAdapter: EntityAdapter<Filter>) => void;
7
- export declare const filterLayersFromService: (serviceId: string, services: serviceTypes.Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => LayerProps[];
8
- export declare const isUserAddedService: (scope: serviceTypes.ServiceScope) => boolean;
1
+ import { EntityAdapter, Draft } from '@reduxjs/toolkit';
2
+ import { serviceTypes } from '@opengeoweb/store';
3
+ import { LayerProps } from '@opengeoweb/webmap';
4
+ import { Filter, FilterType, LayerSelectStoreType } from './types';
5
+ export declare const getFilterId: (filterType: FilterType, filterName: string) => string;
6
+ export declare const produceFilters: (filterNames: string[], filterType: FilterType, draft: Draft<LayerSelectStoreType>, layerSelectFilterAdapter: EntityAdapter<Filter>) => void;
7
+ export declare const filterLayersFromService: (serviceId: string, services: serviceTypes.Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => LayerProps[];
8
+ export declare const isUserAddedService: (scope: serviceTypes.ServiceScope) => boolean;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- import i18n from 'i18next';
2
- import { UseTranslationResponse } from 'react-i18next';
3
- export declare const LAYER_SELECT_NAMESPACE = "layerselect";
4
- export declare const initLayerSelectI18n: () => typeof i18n;
5
- export declare const useLayerSelectTranslation: () => UseTranslationResponse<typeof LAYER_SELECT_NAMESPACE, typeof i18n>;
6
- export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
1
+ import i18n from 'i18next';
2
+ import { UseTranslationResponse } from 'react-i18next';
3
+ export declare const LAYER_SELECT_NAMESPACE = "layerselect";
4
+ export declare const initLayerSelectI18n: () => typeof i18n;
5
+ export declare const useLayerSelectTranslation: () => UseTranslationResponse<typeof LAYER_SELECT_NAMESPACE, typeof i18n>;
6
+ export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;