@opengeoweb/time-series 14.2.1 → 14.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/index.esm.js CHANGED
@@ -133,6 +133,8 @@ var en = {
133
133
  "timeseries-location-info-collection": "collection",
134
134
  "timeseries-location-info-detail": "Detail",
135
135
  "timeseries-location-info-no-location-selected": "No location selected",
136
+ "timeseries-location-info-mapFeatureClass": "Map feature class",
137
+ "timeseries-location-info-parameterName": "Parameter name",
136
138
  "timeseries-toggle-location-markers-label": "Markers",
137
139
  "timeseries-toggle-location-markers-tooltip": "Show/hide location markers",
138
140
  "timeseries-legend": "Legend",
@@ -242,6 +244,8 @@ var fi = {
242
244
  "timeseries-location-info-collection": "collection",
243
245
  "timeseries-location-info-detail": "Detail",
244
246
  "timeseries-location-info-no-location-selected": "Ei paikkaa valittuna",
247
+ "timeseries-location-info-mapFeatureClass": "Map feature class",
248
+ "timeseries-location-info-parameterName": "Parameter name",
245
249
  "timeseries-toggle-location-markers-label": "Merkit",
246
250
  "timeseries-toggle-location-markers-tooltip": "Näytä/piilota kohdemerkit",
247
251
  "timeseries-legend": "Selite",
@@ -351,6 +355,8 @@ var no = {
351
355
  "timeseries-location-info-collection": "collection",
352
356
  "timeseries-location-info-detail": "Detail",
353
357
  "timeseries-location-info-no-location-selected": "Ingen posisjon valgt",
358
+ "timeseries-location-info-mapFeatureClass": "Map feature class",
359
+ "timeseries-location-info-parameterName": "Parameter name",
354
360
  "timeseries-toggle-location-markers-label": "ikke oversatt",
355
361
  "timeseries-toggle-location-markers-tooltip": "ikke oversatt",
356
362
  "timeseries-legend": "Forklaring",
@@ -465,6 +471,8 @@ var nl = {
465
471
  "timeseries-location-info-collection": "collection",
466
472
  "timeseries-location-info-detail": "Detail",
467
473
  "timeseries-location-info-no-location-selected": "Geen locatie geselecteerd",
474
+ "timeseries-location-info-mapFeatureClass": "Map feature class",
475
+ "timeseries-location-info-parameterName": "Parameter name",
468
476
  "timeseries-toggle-location-markers-label": "Kaart locaties",
469
477
  "timeseries-toggle-location-markers-tooltip": "Toon/Verberg locatie punten",
470
478
  "timeseries-legend": "Legenda",
@@ -5684,9 +5692,7 @@ var generateInfoList = function generateInfoList(element, t) {
5684
5692
  });
5685
5693
  }
5686
5694
  if ((_element$extent2 = element.extent) != null && (_element$extent2 = _element$extent2.spatial) != null && _element$extent2.bbox) {
5687
- // The EDR specification is unclear as to what the type of the bbox is so we cater for both implementations
5688
- // [number, number, number, number] | [[number, number, number, number]]
5689
- var bbox = typeof element.extent.spatial.bbox[0] === 'number' ? element.extent.spatial.bbox : element.extent.spatial.bbox[0];
5695
+ var bbox = element.extent.spatial.bbox[0];
5690
5696
  var value = t('timeseries-info-bbox-rendering', {
5691
5697
  west: bbox[0],
5692
5698
  south: bbox[1],
@@ -6103,9 +6109,8 @@ var LocationInfo = function LocationInfo(_ref) {
6103
6109
  collections: []
6104
6110
  };
6105
6111
  // Internal properties
6106
- var propertyBlacklist = ['parameterName', 'mapFeatureClass'];
6107
- var _loop = function _loop() {
6108
- var _feature$properties3;
6112
+ for (var i = 0; i < (feature == null || (_feature$properties2 = feature.properties) == null ? void 0 : _feature$properties2.occurrences.length); i += 1) {
6113
+ var _feature$properties2, _feature$properties3;
6109
6114
  var occ = feature == null || (_feature$properties3 = feature.properties) == null ? void 0 : _feature$properties3.occurrences[i];
6110
6115
  var collectionInfo = {
6111
6116
  properties: Object.assign({}, occ.properties, {
@@ -6113,14 +6118,7 @@ var LocationInfo = function LocationInfo(_ref) {
6113
6118
  }),
6114
6119
  parameterIndex: i
6115
6120
  };
6116
- propertyBlacklist.forEach(function (property) {
6117
- delete collectionInfo.properties[property];
6118
- });
6119
6121
  calculated.collections.push(collectionInfo);
6120
- };
6121
- for (var i = 0; i < (feature == null || (_feature$properties2 = feature.properties) == null ? void 0 : _feature$properties2.occurrences.length); i += 1) {
6122
- var _feature$properties2;
6123
- _loop();
6124
6122
  }
6125
6123
  return calculated;
6126
6124
  }, [feature]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/time-series",
3
- "version": "14.2.1",
3
+ "version": "14.3.0",
4
4
  "description": "GeoWeb time-series library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -9,26 +9,26 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "immer": "^10.0.3",
12
- "@opengeoweb/shared": "14.2.1",
12
+ "@opengeoweb/shared": "14.3.0",
13
13
  "@reduxjs/toolkit": "^2.6.1",
14
14
  "react-redux": "^9.2.0",
15
- "@opengeoweb/webmap": "14.2.1",
16
- "@opengeoweb/webmap-react": "14.2.1",
15
+ "@opengeoweb/webmap": "14.3.0",
16
+ "@opengeoweb/webmap-react": "14.3.0",
17
17
  "lodash": "^4.17.21",
18
- "@opengeoweb/api": "14.2.1",
19
- "@opengeoweb/theme": "14.2.1",
20
- "@opengeoweb/store": "14.2.1",
18
+ "@opengeoweb/api": "14.3.0",
19
+ "@opengeoweb/theme": "14.3.0",
20
+ "@opengeoweb/store": "14.3.0",
21
21
  "echarts-for-react": "^3.0.2",
22
22
  "echarts": "^5.4.3",
23
23
  "react-sortablejs": "^6.1.4",
24
- "@opengeoweb/snackbar": "14.2.1",
24
+ "@opengeoweb/snackbar": "14.3.0",
25
25
  "react-window": "^1.8.10",
26
26
  "react-virtualized-auto-sizer": "^1.0.21",
27
27
  "msw": "^2.7.3",
28
28
  "i18next": "^25.0.1",
29
29
  "react-i18next": "^15.1.1",
30
- "@opengeoweb/core": "14.2.1",
31
- "@opengeoweb/form-fields": "14.2.1",
30
+ "@opengeoweb/core": "14.3.0",
31
+ "@opengeoweb/form-fields": "14.3.0",
32
32
  "@mui/material": "^7.0.1",
33
33
  "react-hook-form": "^7.61.1",
34
34
  "uuid": "^10.0.0",
@@ -148,7 +148,7 @@ export interface EDRExtentObject {
148
148
  };
149
149
  spatial?: {
150
150
  crs: string;
151
- bbox: [number, number, number, number] | [[number, number, number, number]];
151
+ bbox: [[number, number, number, number]];
152
152
  };
153
153
  custom?: CustomDimension[];
154
154
  }
@@ -190,7 +190,7 @@ export interface EDRInstance {
190
190
  };
191
191
  spatial: {
192
192
  crs: string;
193
- bbox: [number, number, number, number];
193
+ bbox: [[number, number, number, number]];
194
194
  };
195
195
  custom?: CustomDimension[];
196
196
  };
@@ -2,5 +2,5 @@ import i18n from 'i18next';
2
2
  import { UseTranslationResponse } from 'react-i18next';
3
3
  export declare const TIME_SERIES_NAMESPACE = "timeseries";
4
4
  export declare const initTimeseriesI18n: () => void;
5
- export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
5
+ export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
6
6
  export declare const useTimeseriesTranslation: () => UseTranslationResponse<typeof TIME_SERIES_NAMESPACE, typeof i18n>;