@opengeoweb/shared 19.1.1 → 19.3.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/dist/index.esm.js
CHANGED
|
@@ -6213,6 +6213,13 @@ var resolveReferenceTimeInstance = function resolveReferenceTimeInstance(instanc
|
|
|
6213
6213
|
}
|
|
6214
6214
|
return (_getValidInstancesNew = getValidInstancesNewestFirst(instances)[offset]) != null ? _getValidInstancesNew : null;
|
|
6215
6215
|
};
|
|
6216
|
+
var extendCollectionInstances = function extendCollectionInstances(instances, selectedInstanceId) {
|
|
6217
|
+
return instances.findIndex(function (instance) {
|
|
6218
|
+
return instance.id === selectedInstanceId;
|
|
6219
|
+
}) === -1 && selectedInstanceId && !isRelativeReferenceTime(selectedInstanceId) ? [].concat(instances, [{
|
|
6220
|
+
id: selectedInstanceId
|
|
6221
|
+
}]) : instances;
|
|
6222
|
+
};
|
|
6216
6223
|
|
|
6217
6224
|
/* *
|
|
6218
6225
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -6236,6 +6243,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
6236
6243
|
__proto__: null,
|
|
6237
6244
|
DEFAULT_MAX_RELATIVE_REFERENCE_TIME_OPTIONS: DEFAULT_MAX_RELATIVE_REFERENCE_TIME_OPTIONS,
|
|
6238
6245
|
buildRelativeReferenceTimeOptions: buildRelativeReferenceTimeOptions,
|
|
6246
|
+
extendCollectionInstances: extendCollectionInstances,
|
|
6239
6247
|
formatRelativeReferenceTimeLabel: formatRelativeReferenceTimeLabel,
|
|
6240
6248
|
getValidInstancesNewestFirst: getValidInstancesNewestFirst,
|
|
6241
6249
|
isRelativeReferenceTime: isRelativeReferenceTime,
|
|
@@ -45,6 +45,7 @@ export interface ConfigType {
|
|
|
45
45
|
GW_DATA_EXPLORER_BUTTON_ON_MAP?: boolean;
|
|
46
46
|
GW_HIDE_SIGMET_MENU?: boolean;
|
|
47
47
|
GW_HIDE_AIRMET_MENU?: boolean;
|
|
48
|
+
GW_FEATURE_WARNINGS_EVENT?: boolean;
|
|
48
49
|
GW_LANGUAGE?: string;
|
|
49
50
|
GW_EXTERNAL_APPLICATIONS_MENU_LINKS?: string;
|
|
50
51
|
GW_PLUGIN_BACKEND_URL?: string;
|
|
@@ -56,6 +57,7 @@ export interface SoundingsCollection {
|
|
|
56
57
|
id: string;
|
|
57
58
|
url: string;
|
|
58
59
|
description: string;
|
|
60
|
+
instanceId?: string;
|
|
59
61
|
parameterMappings?: Record<string, string>;
|
|
60
62
|
windSpeedUnit?: string;
|
|
61
63
|
prefetchAllTimesteps?: boolean;
|
|
@@ -18,3 +18,4 @@ export declare const buildRelativeReferenceTimeOptions: (instances: EDRInstance[
|
|
|
18
18
|
* not a relative token or when no instance exists at that offset.
|
|
19
19
|
*/
|
|
20
20
|
export declare const resolveReferenceTimeInstance: (instances: EDRInstance[], referenceTime?: string) => EDRInstance | null;
|
|
21
|
+
export declare const extendCollectionInstances: (instances: EDRInstance[], selectedInstanceId: string | undefined) => EDRInstance[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.3.0",
|
|
4
4
|
"description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"react-draggable": "^4.4.6",
|
|
25
25
|
"re-resizable": "^6.9.11",
|
|
26
26
|
"lodash": "^4.18.1",
|
|
27
|
-
"axios": "^1.
|
|
27
|
+
"axios": "^1.18.0",
|
|
28
28
|
"date-fns": "^4.1.0",
|
|
29
29
|
"react-i18next": "^15.1.1",
|
|
30
30
|
"i18next": "^25.0.1",
|