@opengeoweb/layer-select 9.36.0 → 10.0.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/README.md +4 -0
- package/index.esm.js +39 -9
- package/package.json +1 -2
- package/src/lib/store/config.d.ts +7 -4
- package/src/lib/store/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -5,3 +5,7 @@ This library was generated with [Nx](https://nx.dev).
|
|
|
5
5
|
## Running unit tests
|
|
6
6
|
|
|
7
7
|
Run `nx test layer-select` to execute the unit tests via [Jest](https://jestjs.io).
|
|
8
|
+
|
|
9
|
+
### TypeScript Documentation
|
|
10
|
+
|
|
11
|
+
- [TypeScript Docs](https://opengeoweb.gitlab.io/opengeoweb/typescript-docs/layer-select/)
|
package/index.esm.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'i18next';
|
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
13
13
|
import { FixedSizeList } from 'react-window';
|
|
14
14
|
import { getDimensionsList, LayerInfoButton } from '@opengeoweb/webmap-react';
|
|
15
|
-
import { webmapUtils, LayerType,
|
|
15
|
+
import { webmapUtils, LayerType, getWMSServiceId, queryWMSServiceInfo, queryWMSLayers, invalidateWMSGetCapabilities, clearImageCacheForAllMaps } from '@opengeoweb/webmap';
|
|
16
16
|
import { snackbarTypes, snackbarActions } from '@opengeoweb/snackbar';
|
|
17
17
|
import { ReactHookFormProvider, defaultFormOptions, ReactHookFormTextField } from '@opengeoweb/form-fields';
|
|
18
18
|
import { useFormContext } from 'react-hook-form';
|
|
@@ -1150,7 +1150,25 @@ layerSelectListener.startListening({
|
|
|
1150
1150
|
}()
|
|
1151
1151
|
});
|
|
1152
1152
|
|
|
1153
|
+
/* *
|
|
1154
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1155
|
+
* you may not use this file except in compliance with the License.
|
|
1156
|
+
* You may obtain a copy of the License at
|
|
1157
|
+
*
|
|
1158
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1159
|
+
*
|
|
1160
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1161
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1162
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1163
|
+
* See the License for the specific language governing permissions and
|
|
1164
|
+
* limitations under the License.
|
|
1165
|
+
*
|
|
1166
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1167
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
1168
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
1169
|
+
* */
|
|
1153
1170
|
var layerSelectConfig = {
|
|
1171
|
+
// TODO: remove id in https://gitlab.com/opengeoweb/opengeoweb/-/issues/5561
|
|
1154
1172
|
id: 'layerSelect-module',
|
|
1155
1173
|
reducersMap: {
|
|
1156
1174
|
layerSelect: reducer
|
|
@@ -2126,7 +2144,9 @@ var ServiceOptionsDialog = function ServiceOptionsDialog(_ref) {
|
|
|
2126
2144
|
sx: styles.header,
|
|
2127
2145
|
children: t('services')
|
|
2128
2146
|
}), jsx(Backdrop, {
|
|
2129
|
-
sx: styles.loading,
|
|
2147
|
+
sx: Object.assign({}, styles.loading, {
|
|
2148
|
+
backgroundSize: 'cover'
|
|
2149
|
+
}),
|
|
2130
2150
|
open: isLoading,
|
|
2131
2151
|
children: jsx(CircularProgress, {})
|
|
2132
2152
|
}), jsx(Rows, {
|
|
@@ -2353,20 +2373,30 @@ var loadWMSService = /*#__PURE__*/function () {
|
|
|
2353
2373
|
if (forceReload === void 0) {
|
|
2354
2374
|
forceReload = false;
|
|
2355
2375
|
}
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2376
|
+
if (!forceReload) {
|
|
2377
|
+
_context.next = 4;
|
|
2378
|
+
break;
|
|
2379
|
+
}
|
|
2380
|
+
_context.next = 4;
|
|
2381
|
+
return invalidateWMSGetCapabilities(serviceUrl);
|
|
2382
|
+
case 4:
|
|
2383
|
+
_context.next = 6;
|
|
2384
|
+
return queryWMSLayers(serviceUrl);
|
|
2385
|
+
case 6:
|
|
2359
2386
|
layers = _context.sent;
|
|
2360
|
-
|
|
2387
|
+
_context.next = 9;
|
|
2388
|
+
return queryWMSServiceInfo(serviceUrl);
|
|
2389
|
+
case 9:
|
|
2390
|
+
service = _context.sent;
|
|
2361
2391
|
return _context.abrupt("return", {
|
|
2362
|
-
id: service.id,
|
|
2392
|
+
id: service.id || getWMSServiceId(serviceUrl),
|
|
2363
2393
|
name: service.title,
|
|
2364
2394
|
serviceUrl: serviceUrl,
|
|
2365
2395
|
"abstract": service["abstract"],
|
|
2366
2396
|
layers: layers,
|
|
2367
2397
|
scope: 'user'
|
|
2368
2398
|
});
|
|
2369
|
-
case
|
|
2399
|
+
case 11:
|
|
2370
2400
|
case "end":
|
|
2371
2401
|
return _context.stop();
|
|
2372
2402
|
}
|
|
@@ -3134,4 +3164,4 @@ var LayerSelectConnect = function LayerSelectConnect(_ref) {
|
|
|
3134
3164
|
});
|
|
3135
3165
|
};
|
|
3136
3166
|
|
|
3137
|
-
export { AllChipConnect, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LAYER_SELECT_NAMESPACE, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, reducer as layerSelectReducer, selectors as layerSelectSelectors, layerSelectTranslations, types as layerSelectTypes, useAppSelector };
|
|
3167
|
+
export { AllChipConnect, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LAYER_SELECT_NAMESPACE, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, layerSelectListener, reducer as layerSelectReducer, selectors as layerSelectSelectors, layerSelectTranslations, types as layerSelectTypes, useAppSelector };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/layer-select",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "GeoWeb layer select library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"@opengeoweb/form-fields": "*",
|
|
20
20
|
"react-hook-form": "^7.50.1",
|
|
21
21
|
"@reduxjs/toolkit": "^1.9.7",
|
|
22
|
-
"@redux-eggs/core": "^2.2.0",
|
|
23
22
|
"lodash": "^4.17.21",
|
|
24
23
|
"i18next": "^23.11.5",
|
|
25
24
|
"@mui/material": "^6.1.1",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const layerSelectConfig: {
|
|
2
|
+
id: string;
|
|
3
|
+
reducersMap: {
|
|
4
|
+
layerSelect: import("redux").Reducer<import("./types").LayerSelectStoreType>;
|
|
5
|
+
};
|
|
6
|
+
middlewares: import("@reduxjs/toolkit").ListenerMiddleware<import("./types").RootState, import("redux-thunk").ThunkDispatch<import("./types").RootState, unknown, import("redux").AnyAction>, unknown>[];
|
|
7
|
+
};
|
package/src/lib/store/index.d.ts
CHANGED