@opengeoweb/sigmet-airmet 21.1.0 → 21.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.
Files changed (2) hide show
  1. package/dist/index.esm.js +28 -15
  2. package/package.json +11 -11
package/dist/index.esm.js CHANGED
@@ -64,11 +64,13 @@ var en = {
64
64
  "observation-label": "Observed",
65
65
  "forecast-label": "Forecast",
66
66
  "valid-from-before-current-error": "Valid from time cannot be before current time",
67
- "valid-from-time-error": "Valid from time can be no more than {{hours}} hours after current time",
67
+ "valid-from-time-error_one": "Valid from time can be no more than {{hours}} hour after current time",
68
+ "valid-from-time-error_other": "Valid from time can be no more than {{hours}} hours after current time",
68
69
  "date-and-time": "Date and time",
69
70
  "valid-from": "Valid from",
70
71
  "valid-until": "Valid until",
71
- "valid-until-time-error": "Valid until time can be no more than {{hours}} hours after Valid from time",
72
+ "valid-until-time-error_one": "Valid until time can be no more than {{hours}} hour after Valid from time",
73
+ "valid-until-time-error_other": "Valid until time can be no more than {{hours}} hours after Valid from time",
72
74
  "select-fir-title": "Where",
73
75
  "select-fir-label": "Select FIR",
74
76
  "geometry-coodinates-empty-message": "A start position drawing is required",
@@ -168,7 +170,7 @@ var fi = {
168
170
  "error-title": "Virhe konfiguraatiotiedostoa ladatessa",
169
171
  "error-auth-login": "Tämän toiminnallisuuden käyttäminen vaatii tunnistautumista. Kirjaudu sisään jatkaaksesi",
170
172
  "error-backend": "Tietoja haettaessa on havaittu virhe, yritä uudelleen",
171
- "saved-as-draft": "tallenna luonnoksena",
173
+ "saved-as-draft": "tallennettu luonnoksena",
172
174
  cancels: "Peruu",
173
175
  close: "Sulje",
174
176
  "discard-non-capitalized": "Hylkää",
@@ -194,11 +196,13 @@ var fi = {
194
196
  "observation-label": "Havainto",
195
197
  "forecast-label": "Ennuste",
196
198
  "valid-from-before-current-error": "Voimassaoloajan alkuhetki ei voi olla ennen nykyistä ajanhetkeä.",
197
- "valid-from-time-error": "Voimassaoloajan alkuhetki ei voi olla enempää kuin {{hours}} nykyisen ajanhetken jälkeen.",
199
+ "valid-from-time-error_one": "Voimassaoloajan alkuhetki voi olla enintään {{hours}} tunti nykyhetken jälkeen.",
200
+ "valid-from-time-error_other": "Voimassaoloajan alkuhetki voi olla enintään {{hours}} tuntia nykyhetken jälkeen.",
198
201
  "date-and-time": "Päivämäärä ja aika",
199
202
  "valid-from": "Alkuhetki",
200
203
  "valid-until": "Päättymishetki",
201
- "valid-until-time-error": "Voimassaoloajan loppuhetki ei voi olla enempää kuin {{hours}} voimassaoloajan alkuhetken jälkeen.",
204
+ "valid-until-time-error_one": "Voimassaoloajan päättymishetki voi olla enintään {{hours}} tunti alkuhetken jälkeen.",
205
+ "valid-until-time-error_other": "Voimassaoloajan päättymishetki voi olla enintään {{hours}} tuntia alkuhetken jälkeen.",
202
206
  "select-fir-title": "Missä",
203
207
  "select-fir-label": "Valitse FIR",
204
208
  "geometry-coodinates-empty-message": "Aloituspaikan piirros vaaditaan",
@@ -207,7 +211,7 @@ var fi = {
207
211
  "geometry-max-feature-points-message": "Piirretyn polygonin ja FIR-rajan leikkauspisteessä on yli 6 yksittäistä pistettä. Tarkita vastaako esikatselun TAC aiottua aluetta.",
208
212
  "geometry-multi-intersections-message": "Piirretyllä polygonilla on useita leikkauspisteitä FIR-rajan kanssa. Piirrettyä polygonia käytetään TAC-koodin luomiseen",
209
213
  "geometry-maximum-points-message": "Aloituspisteenä käytettävä piirros sallii maksimissaan {{maxPoints}} yksittäistä pistettä.",
210
- "geometry-too-many-points-message": "Alueessa on liikaa pisteitä. Vähennä pisteiden määrä alle arvon {{maxPoints}}.",
214
+ "geometry-too-many-points-message": "Alueessa on liikaa pisteitä. Vähennä pisteiden määrää niin, että niitä on enintään {{maxPoints}}.",
211
215
  "geometry-more-than-6-points-message": "Piirros jota käytetään sijainnin aloitukseen tai lopetukseen sisältää enemmän kuin sallitun määrän: 6 yksittäistä pistettä. TAC-viestissä on kaikenkaikkiaan {{totalDrawnPoints}} pistettä. Jos mahdollista, vähennä pisteiden määrää.",
212
216
  "geometry-intersection-above-6-points-message": "Leikatun polygonin alku-/päätepisteessä on {{intersectingPolygonPointsTotal}} pistettä. Piirretyn polygonin ja FIR-rajan leikkauspiste on ylittänyt 6 yksittäistä pistettä. Tarkista vastaako esikatselun TAC aiottua aluetta.",
213
217
  "geometry-only-one-start-position-drawing": "Vain yksi aloitusaluepiirros on sallittu.",
@@ -225,7 +229,7 @@ var fi = {
225
229
  "progress-radio-button-label-end-potision": "Lopullinen sijainti",
226
230
  "progress-movement-direction-label": "Aseta suunta",
227
231
  "progress-movement-unit-label": "Yksikkö",
228
- "progress-movement-speed-label": "Askeleen nopeus",
232
+ "progress-movement-speed-label": "Liikenopeus",
229
233
  "progress-the-minimum-level-in-movement": "Pienin taso {{movementUnitType}}:ssa on {{movementUnit}}",
230
234
  "progress-the-maxium-level-in-movement": "Suurin taso {{movementUnitType}}:ssa on {{movementUnit}}",
231
235
  "progress-only-one-position-drawing": "Vain yksi lopetuspaikan piirros on sallittu",
@@ -242,7 +246,9 @@ var fi = {
242
246
  "issued-at": "Annettu klo:",
243
247
  "volcano-name": "Tulivuoren nimi",
244
248
  latitude: "Leveysaste",
249
+ "latitude-degrees-and-minutes": "Leveysaste (asteet ja minuutit)",
245
250
  longitude: "Pituusaste",
251
+ "longitude-degrees-and-minutes": "Pituusaste (asteet ja minuutit)",
246
252
  "tac-missing-data": "Tarvittavia tietoja puuttuu, TAC:ia ei voida generoida",
247
253
  "invalid-surface-wind-direction-message": "Suunta tulee pyöristää lähimpään {{value}} asteeseen.",
248
254
  "surface-wind-label": "tuulen suunta",
@@ -274,7 +280,7 @@ var fi = {
274
280
  "surface-visibility-helper-text": "Arvo metreinä",
275
281
  "surface-visibility-between-time": "Ennusteajan tulee olla voimassa olevan alkamis- ja päättymisajan välissä",
276
282
  phenomenon: "sääilmiö",
277
- "geometry-drawing-disabled": "Link a map to enable draw tools"
283
+ "geometry-drawing-disabled": "Yhdistä kartta, jotta voit käyttää piirtotyökaluja"
278
284
  };
279
285
  var no = {
280
286
  "sigmet-airmet": "sigmet",
@@ -322,11 +328,13 @@ var no = {
322
328
  "observation-label": "Observed",
323
329
  "forecast-label": "Forecast",
324
330
  "valid-from-before-current-error": "Valid from time cannot be before current time",
325
- "valid-from-time-error": "Valid from time can be no more than {{hours}} hours after current time",
331
+ "valid-from-time-error_one": "Valid from time can be no more than {{hours}} hour after current time",
332
+ "valid-from-time-error_other": "Valid from time can be no more than {{hours}} hours after current time",
326
333
  "date-and-time": "Date and time",
327
334
  "valid-from": "Valid from",
328
335
  "valid-until": "Valid until",
329
- "valid-until-time-error": "Valid until time can be no more than {{hours}} hours after Valid from time",
336
+ "valid-until-time-error_one": "Valid until time can be no more than {{hours}} hour after Valid from time",
337
+ "valid-until-time-error_other": "Valid until time can be no more than {{hours}} hours after Valid from time",
330
338
  "select-fir-title": "Where",
331
339
  "select-fir-label": "Select FIR",
332
340
  "geometry-coodinates-empty-message": "A start position drawing is required",
@@ -452,11 +460,13 @@ var nl = {
452
460
  "observation-label": "Opgemerkt",
453
461
  "forecast-label": "Voorspelling",
454
462
  "valid-from-before-current-error": "Vanaf tijd kan niet voor huidige tijd zijn",
455
- "valid-from-time-error": "Geldig vanaf tijd kan maximaal {{hours}} uur na huidige tijd zijn",
463
+ "valid-from-time-error_one": "Geldig vanaf tijd kan maximaal {{hours}} uur na huidige tijd zijn",
464
+ "valid-from-time-error_other": "Geldig vanaf tijd kan maximaal {{hours}} uur na huidige tijd zijn",
456
465
  "date-and-time": "Datum en tijd",
457
466
  "valid-from": "Geldig vanaf",
458
467
  "valid-until": "Geldig tot",
459
- "valid-until-time-error": "Geldig tot tijd mag maximaal {{hours}} uur na Geldig vanaf tijd zijn",
468
+ "valid-until-time-error_one": "Geldig tot tijd mag maximaal {{hours}} uur na Geldig vanaf tijd zijn",
469
+ "valid-until-time-error_other": "Geldig tot tijd mag maximaal {{hours}} uur na Geldig vanaf tijd zijn",
460
470
  "select-fir-title": "Waar",
461
471
  "select-fir-label": "Selecteer FIR",
462
472
  "geometry-coodinates-empty-message": "Een startpositietekening is vereist",
@@ -2169,8 +2179,10 @@ var ValidUntil = function ValidUntil(_ref) {
2169
2179
  return value ? dateUtils.isAfter(value, getValues('validDateStart')) || t('valid-until-time') : true;
2170
2180
  },
2171
2181
  isXHoursAfter: function isXHoursAfter$1(value) {
2172
- return isXHoursAfter(value, getValues('validDateStart'), getMaxHoursOfValidity(getValues('phenomenon'), getValues('locationIndicatorATSR'), productConfig)) || t('valid-until-time-error', {
2173
- hours: getMaxHoursOfValidity(getValues('phenomenon'), getValues('locationIndicatorATSR'), productConfig)
2182
+ var hours = getMaxHoursOfValidity(getValues('phenomenon'), getValues('locationIndicatorATSR'), productConfig);
2183
+ return isXHoursAfter(value, getValues('validDateStart'), hours) || t('valid-until-time-error', {
2184
+ hours: hours,
2185
+ count: hours
2174
2186
  });
2175
2187
  }
2176
2188
  }
@@ -7203,7 +7215,8 @@ var Type = function Type(_ref) {
7203
7215
 
7204
7216
  var getValidFromXHoursBeforeMessage = function getValidFromXHoursBeforeMessage(t, hours) {
7205
7217
  return t('valid-from-time-error', {
7206
- hours: hours
7218
+ hours: hours,
7219
+ count: hours
7207
7220
  });
7208
7221
  };
7209
7222
  var getDefaultValidFromValue = function getDefaultValidFromValue(productConfig) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "21.1.0",
3
+ "version": "21.2.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,17 +20,17 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@opengeoweb/api": "21.1.0",
24
- "@opengeoweb/shared": "21.1.0",
25
- "@opengeoweb/theme": "21.1.0",
26
- "@opengeoweb/store": "21.1.0",
27
- "@opengeoweb/webmap": "21.1.0",
28
- "@opengeoweb/webmap-react": "21.1.0",
23
+ "@opengeoweb/api": "21.2.0",
24
+ "@opengeoweb/shared": "21.2.0",
25
+ "@opengeoweb/theme": "21.2.0",
26
+ "@opengeoweb/store": "21.2.0",
27
+ "@opengeoweb/webmap": "21.2.0",
28
+ "@opengeoweb/webmap-react": "21.2.0",
29
29
  "react-redux": "^9.2.0",
30
- "@opengeoweb/core": "21.1.0",
31
- "@opengeoweb/authentication": "21.1.0",
30
+ "@opengeoweb/core": "21.2.0",
31
+ "@opengeoweb/authentication": "21.2.0",
32
32
  "@mui/system": "^9.0.1",
33
- "@opengeoweb/form-fields": "21.1.0",
33
+ "@opengeoweb/form-fields": "21.2.0",
34
34
  "react-hook-form": "^7.50.1",
35
35
  "axios": "^1.20.0",
36
36
  "lodash": "^4.18.1",
@@ -48,7 +48,7 @@
48
48
  "@emotion/styled": "*"
49
49
  },
50
50
  "devDependencies": {
51
- "eslint-plugin-storybook": "10.3.3"
51
+ "eslint-plugin-storybook": "^10.3.3"
52
52
  },
53
53
  "files": [
54
54
  "dist",