@opengeoweb/layer-select 9.0.0 → 9.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.
- package/index.esm.js +2495 -2547
- package/package.json +1 -1
- package/src/lib/components/KeywordFilterResults/KeywordFilterResults.d.ts +2 -2
- package/src/lib/store/selectors.d.ts +21 -28
- package/src/lib/store/types.d.ts +4 -7
- package/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItem.spec.d.ts +0 -1
- package/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts +0 -1
- package/src/lib/components/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts +0 -1
- package/src/lib/components/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts +0 -1
- /package/src/lib/components/KeywordFilterResults/{KeywordFilterResults.spec.d.ts → KeywordFilterResults.integration.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
-
import {
|
|
3
|
+
import { FiltersGrouped } from '../../store/selectors';
|
|
4
4
|
export declare const DIALOG_TITLE = "Groups & Keywords";
|
|
5
5
|
export interface KeywordFilterResultsProps {
|
|
6
6
|
bounds?: string;
|
|
@@ -9,6 +9,6 @@ export interface KeywordFilterResultsProps {
|
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
order?: number;
|
|
11
11
|
source?: uiTypes.Source;
|
|
12
|
-
filters:
|
|
12
|
+
filters: FiltersGrouped;
|
|
13
13
|
}
|
|
14
14
|
export declare const KeywordFilterResults: React.FC<KeywordFilterResultsProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import { LayerSelectStoreType, ActiveLayerObject, ActiveServiceObjectEntities, ServicePopupObject, LayerSelectModuleState, RootState } from './types';
|
|
2
|
+
import { LayerSelectStoreType, ActiveLayerObject, ActiveServiceObjectEntities, ServicePopupObject, LayerSelectModuleState, RootState, Filter } from './types';
|
|
3
3
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
4
4
|
/**
|
|
5
5
|
* Returns search filter string
|
|
@@ -21,7 +21,7 @@ export declare const getSearchFilter: ((state: LayerSelectModuleState) => string
|
|
|
21
21
|
* @returns {ActiveServiceObjectEntities} returnType: ActiveServiceObjectEntitiesobject of active services
|
|
22
22
|
*/
|
|
23
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;
|
|
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
25
|
/**
|
|
26
26
|
* Returns all ids of enabled services
|
|
27
27
|
*
|
|
@@ -29,19 +29,7 @@ export declare const getActiveServicesDictionary: (state: LayerSelectModuleState
|
|
|
29
29
|
* @param {object} store store: object - store object
|
|
30
30
|
* @returns {array} returnType: array of service ids that are enabled
|
|
31
31
|
*/
|
|
32
|
-
export declare const getEnabledServiceIds: ((state: LayerSelectModuleState) => string[]) & import("reselect").OutputSelectorFields<(args_0:
|
|
33
|
-
clearCache: () => void;
|
|
34
|
-
}> & {
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Returns all ids of checked keywords
|
|
39
|
-
*
|
|
40
|
-
* Example getCheckedKeywordIds(store);
|
|
41
|
-
* @param {object} store store: object - store object
|
|
42
|
-
* @returns {array} returnType: array of keyword ids that are checked
|
|
43
|
-
*/
|
|
44
|
-
export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => string[]) & import("reselect").OutputSelectorFields<(args_0: LayerSelectStoreType) => string[], {
|
|
32
|
+
export declare const getEnabledServiceIds: ((state: LayerSelectModuleState) => string[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ActiveServiceObject[]) => string[], {
|
|
45
33
|
clearCache: () => void;
|
|
46
34
|
}> & {
|
|
47
35
|
clearCache: () => void;
|
|
@@ -54,14 +42,28 @@ export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => st
|
|
|
54
42
|
* @returns {array} returnType: array of all keyword ids
|
|
55
43
|
*/
|
|
56
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;
|
|
57
46
|
/**
|
|
58
|
-
* Returns all
|
|
47
|
+
* Returns all ids of checked keywords
|
|
59
48
|
*
|
|
60
|
-
* Example
|
|
49
|
+
* Example getCheckedKeywordIds(store);
|
|
61
50
|
* @param {object} store store: object - store object
|
|
62
|
-
* @returns {array} returnType: array of
|
|
51
|
+
* @returns {array} returnType: array of keyword ids that are checked
|
|
63
52
|
*/
|
|
64
|
-
export declare const
|
|
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 type 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
|
+
};
|
|
65
67
|
/**
|
|
66
68
|
* Returns if all keywords are checked
|
|
67
69
|
*
|
|
@@ -74,15 +76,6 @@ export declare const isAllFiltersChecked: ((state: LayerSelectModuleState) => bo
|
|
|
74
76
|
}> & {
|
|
75
77
|
clearCache: () => void;
|
|
76
78
|
};
|
|
77
|
-
/**
|
|
78
|
-
* Gets a KeywordObject by its id
|
|
79
|
-
*
|
|
80
|
-
* Example: keywordObject = getKeywordObjectById(store, 'keywordId')
|
|
81
|
-
* @param {object} store object from which the keyword state will be extracted
|
|
82
|
-
* @param {string} filterId Id of the keyword
|
|
83
|
-
* @returns {object} object containing keyword information (id, amount, amountVisible, checked)
|
|
84
|
-
*/
|
|
85
|
-
export declare const getFilterById: (state: LayerSelectModuleState, id: import("@reduxjs/toolkit").EntityId) => import("./types").Filter | undefined;
|
|
86
79
|
/**
|
|
87
80
|
* Returns the active layer info
|
|
88
81
|
*
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -24,19 +24,16 @@ export interface ActiveServiceObject {
|
|
|
24
24
|
filterIds?: string[];
|
|
25
25
|
scope?: serviceTypes.ServiceScope;
|
|
26
26
|
isLoading?: boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export declare enum FilterType {
|
|
30
|
-
Keyword = "keywords",
|
|
31
|
-
Group = "groups"
|
|
27
|
+
keywords?: string[];
|
|
28
|
+
groups?: string[];
|
|
32
29
|
}
|
|
30
|
+
export type FilterType = 'keywords' | 'groups';
|
|
33
31
|
export interface Filter {
|
|
34
32
|
id: string;
|
|
35
33
|
name: string;
|
|
36
|
-
amount?: number;
|
|
37
|
-
amountVisible?: number;
|
|
38
34
|
checked?: boolean;
|
|
39
35
|
type: FilterType;
|
|
36
|
+
amountVisible?: number;
|
|
40
37
|
}
|
|
41
38
|
export type ActiveServiceObjectEntities = Record<string, ActiveServiceObject>;
|
|
42
39
|
export type Filters = EntityState<Filter>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/lib/components/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|