@opengeoweb/time-series 19.6.1 → 20.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/dist/index.esm.js +12 -10
- package/package.json +64 -63
package/dist/index.esm.js
CHANGED
|
@@ -18,6 +18,7 @@ import { center } from '@turf/turf';
|
|
|
18
18
|
import { MapFeatureClass } from '@opengeoweb/webmap-react';
|
|
19
19
|
import { useQueries, useQueryClient, useQuery, queryOptions } from '@tanstack/react-query';
|
|
20
20
|
import { withJsonFormat, handleResponse } from '@opengeoweb/api';
|
|
21
|
+
import { authFetch } from '@opengeoweb/authentication';
|
|
21
22
|
import Box$1 from '@mui/material/Box';
|
|
22
23
|
import { useFormContext } from 'react-hook-form';
|
|
23
24
|
import { ReactHookFormProvider, defaultFormOptions, ReactHookFormTextField, ReactHookFormSelect } from '@opengeoweb/form-fields';
|
|
@@ -2662,7 +2663,7 @@ var createGeoJsonArrays = function createGeoJsonArrays(locations, services, hide
|
|
|
2662
2663
|
var feature = obj[key];
|
|
2663
2664
|
return Object.assign({}, feature, {
|
|
2664
2665
|
properties: Object.assign({}, feature.properties, {
|
|
2665
|
-
name: Object.keys(feature.properties.names).
|
|
2666
|
+
name: Object.keys(feature.properties.names).sort(function (featureA, featureB) {
|
|
2666
2667
|
return featureB.length - featureA.length;
|
|
2667
2668
|
})[0],
|
|
2668
2669
|
hidden: hideFeatures,
|
|
@@ -2782,7 +2783,7 @@ var getLocations = /*#__PURE__*/function () {
|
|
|
2782
2783
|
while (1) switch (_context.n) {
|
|
2783
2784
|
case 0:
|
|
2784
2785
|
url = withJsonFormat(createUrl(serviceUrl, "/collections/" + collectionId + "/locations"));
|
|
2785
|
-
return _context.a(2,
|
|
2786
|
+
return _context.a(2, authFetch(url).then(handleResponse));
|
|
2786
2787
|
}
|
|
2787
2788
|
}, _callee);
|
|
2788
2789
|
}));
|
|
@@ -2797,7 +2798,7 @@ var getServiceInformation = /*#__PURE__*/function () {
|
|
|
2797
2798
|
while (1) switch (_context2.n) {
|
|
2798
2799
|
case 0:
|
|
2799
2800
|
url = withJsonFormat(createUrl(serviceUrl));
|
|
2800
|
-
return _context2.a(2,
|
|
2801
|
+
return _context2.a(2, authFetch(url).then(handleResponse));
|
|
2801
2802
|
}
|
|
2802
2803
|
}, _callee2);
|
|
2803
2804
|
}));
|
|
@@ -2812,7 +2813,7 @@ var getCollections = /*#__PURE__*/function () {
|
|
|
2812
2813
|
while (1) switch (_context3.n) {
|
|
2813
2814
|
case 0:
|
|
2814
2815
|
url = withJsonFormat(createUrl(serviceUrl, '/collections'));
|
|
2815
|
-
return _context3.a(2,
|
|
2816
|
+
return _context3.a(2, authFetch(url).then(handleResponse));
|
|
2816
2817
|
}
|
|
2817
2818
|
}, _callee3);
|
|
2818
2819
|
}));
|
|
@@ -2827,7 +2828,7 @@ var getCollection = /*#__PURE__*/function () {
|
|
|
2827
2828
|
while (1) switch (_context4.n) {
|
|
2828
2829
|
case 0:
|
|
2829
2830
|
url = withJsonFormat(createUrl(serviceUrl, "/collections/" + collectionId));
|
|
2830
|
-
return _context4.a(2,
|
|
2831
|
+
return _context4.a(2, authFetch(url).then(handleResponse));
|
|
2831
2832
|
}
|
|
2832
2833
|
}, _callee4);
|
|
2833
2834
|
}));
|
|
@@ -2842,7 +2843,7 @@ var getInstances = /*#__PURE__*/function () {
|
|
|
2842
2843
|
while (1) switch (_context5.n) {
|
|
2843
2844
|
case 0:
|
|
2844
2845
|
url = withJsonFormat(createUrl(serviceUrl, "/collections/" + collectionId + "/instances"));
|
|
2845
|
-
return _context5.a(2,
|
|
2846
|
+
return _context5.a(2, authFetch(url).then(handleResponse));
|
|
2846
2847
|
}
|
|
2847
2848
|
}, _callee5);
|
|
2848
2849
|
}));
|
|
@@ -2858,7 +2859,7 @@ var getLocation = /*#__PURE__*/function () {
|
|
|
2858
2859
|
case 0:
|
|
2859
2860
|
path = getLocationPositionPath(collectionId, instanceId);
|
|
2860
2861
|
url = createUrl(serviceUrl, path + "/locations/" + locationId, queryParamArr);
|
|
2861
|
-
return _context6.a(2,
|
|
2862
|
+
return _context6.a(2, authFetch(url).then(handleResponse));
|
|
2862
2863
|
}
|
|
2863
2864
|
}, _callee6);
|
|
2864
2865
|
}));
|
|
@@ -2875,7 +2876,7 @@ var getPosition = /*#__PURE__*/function () {
|
|
|
2875
2876
|
path = getLocationPositionPath(collectionId, instanceId);
|
|
2876
2877
|
lat = position.lat, lon = position.lon;
|
|
2877
2878
|
url = createUrl(serviceUrl, path + "/position", [].concat(queryParamArr, [['coords', "POINT(" + lon + " " + lat + ")"]]));
|
|
2878
|
-
return _context7.a(2,
|
|
2879
|
+
return _context7.a(2, authFetch(url).then(handleResponse));
|
|
2879
2880
|
}
|
|
2880
2881
|
}, _callee7);
|
|
2881
2882
|
}));
|
|
@@ -2971,7 +2972,7 @@ var getInstanceByRelativeReferenceTime = function getInstanceByRelativeReference
|
|
|
2971
2972
|
if (offset === null) {
|
|
2972
2973
|
return null;
|
|
2973
2974
|
}
|
|
2974
|
-
var sortedInstances = instances.
|
|
2975
|
+
var sortedInstances = instances.slice().sort(function (instanceA, instanceB) {
|
|
2975
2976
|
return instanceB.id.localeCompare(instanceA.id);
|
|
2976
2977
|
});
|
|
2977
2978
|
return (_sortedInstances$offs = sortedInstances[offset]) != null ? _sortedInstances$offs : null;
|
|
@@ -3452,7 +3453,7 @@ var ParameterDimensionSelect = function ParameterDimensionSelect(_ref) {
|
|
|
3452
3453
|
React.useEffect(function () {
|
|
3453
3454
|
if (instances) {
|
|
3454
3455
|
// Sort the reference times in descending order (newest first)
|
|
3455
|
-
var sortedRefTimeList = instances.sort(function (instanceA, instanceB) {
|
|
3456
|
+
var sortedRefTimeList = instances.slice().sort(function (instanceA, instanceB) {
|
|
3456
3457
|
return dateUtils.parseCustomDateString(instanceB.id).getTime() - dateUtils.parseCustomDateString(instanceA.id).getTime();
|
|
3457
3458
|
});
|
|
3458
3459
|
setRefTimeList(sortedRefTimeList);
|
|
@@ -4786,6 +4787,7 @@ var ParameterInfoDialogConnect = function ParameterInfoDialogConnect() {
|
|
|
4786
4787
|
var sortByService$1 = function sortByService(serviceObj) {
|
|
4787
4788
|
// Need to make a copy as we are not allowed to mutate the original serviceObj and .sort mutates
|
|
4788
4789
|
var newServiceObj = serviceObj.slice();
|
|
4790
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
4789
4791
|
return newServiceObj.sort(function (serviceA, serviceB) {
|
|
4790
4792
|
return (serviceA.name ? serviceA.name : serviceA.id).localeCompare(serviceB.name ? serviceB.name : serviceB.id);
|
|
4791
4793
|
});
|
package/package.json
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"name": "@opengeoweb/time-series",
|
|
3
|
+
"version": "20.0.0",
|
|
4
|
+
"description": "GeoWeb time-series library for the opengeoweb project",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
|
+
},
|
|
10
|
+
"main": "./dist/index.esm.js",
|
|
11
|
+
"module": "./dist/index.esm.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
"./package.json": "./package.json",
|
|
15
|
+
".": {
|
|
16
|
+
"@opengeoweb/source": "./src/index.ts",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.esm.js",
|
|
19
|
+
"default": "./dist/index.esm.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"immer": "^10.0.3",
|
|
24
|
+
"@opengeoweb/shared": "20.0.0",
|
|
25
|
+
"@reduxjs/toolkit": "^2.6.1",
|
|
26
|
+
"react-redux": "^9.2.0",
|
|
27
|
+
"@opengeoweb/webmap": "20.0.0",
|
|
28
|
+
"@opengeoweb/webmap-react": "20.0.0",
|
|
29
|
+
"lodash": "^4.18.1",
|
|
30
|
+
"@opengeoweb/api": "20.0.0",
|
|
31
|
+
"@opengeoweb/authentication": "20.0.0",
|
|
32
|
+
"@opengeoweb/theme": "20.0.0",
|
|
33
|
+
"@opengeoweb/store": "20.0.0",
|
|
34
|
+
"echarts-for-react": "^3.0.6",
|
|
35
|
+
"echarts": "^6.1.0",
|
|
36
|
+
"react-sortablejs": "^6.1.4",
|
|
37
|
+
"@opengeoweb/snackbar": "20.0.0",
|
|
38
|
+
"react-window": "^2.2.6",
|
|
39
|
+
"msw": "^2.7.3",
|
|
40
|
+
"i18next": "^25.0.1",
|
|
41
|
+
"react-i18next": "^15.1.1",
|
|
42
|
+
"@opengeoweb/core": "20.0.0",
|
|
43
|
+
"@opengeoweb/form-fields": "20.0.0",
|
|
44
|
+
"@mui/material": "^9.0.1",
|
|
45
|
+
"react-hook-form": "^7.61.1",
|
|
46
|
+
"uuid": "^11.1.1",
|
|
47
|
+
"@turf/turf": "^7.2.0",
|
|
48
|
+
"@tanstack/react-query": "^5.85.5",
|
|
49
|
+
"@types/geojson": "^7946.0.14"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"react": "19",
|
|
53
|
+
"@emotion/react": "*",
|
|
54
|
+
"@emotion/styled": "*"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"eslint-plugin-storybook": "10.3.3"
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist",
|
|
61
|
+
"!dist/package.json",
|
|
62
|
+
"README.md",
|
|
63
|
+
"package.json"
|
|
64
|
+
]
|
|
65
|
+
}
|