@opengeoweb/sigmet-airmet 6.1.0 → 7.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/index.esm.js
CHANGED
|
@@ -4,349 +4,354 @@ import { FormControlLabel, Radio, Grid, Typography, Box as Box$2, Button, Checkb
|
|
|
4
4
|
import { useFormContext } from 'react-hook-form';
|
|
5
5
|
import { useDraftFormHelpers, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormNumberField, isInteger, isValidMax, isValidMin, isEmpty, ReactHookFormDateTime, isValidDate, isBefore, isBetween, hasMaxFeaturePoints, hasMulitpleIntersections, ReactHookFormHiddenInput, isMaximumOneDrawing, hasIntersectionWithFIR, isValidGeoJsonCoordinates, isXHoursBefore, isAfter, isXHoursAfter, ReactHookFormTextField, isLatitude, isNonOrBothCoordinates, isLongitude, ReactHookFormFormControl, isGeometryDirty, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
|
|
6
6
|
import { useApiContext, useApi, createApiInstance, createNonAuthApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
|
|
7
|
-
import { defaultIntersectionStyleProperties, defaultPoint, defaultBox, defaultPolygon, defaultDelete,
|
|
8
|
-
import { defaultStyleProperties, DRAWMODE, addFeatureProperties } from '@opengeoweb/webmap-react';
|
|
9
|
-
import { CustomTooltip, ToggleMenu, useIsMounted, StatusTag, AlertBanner, ConfirmationServiceProvider, usePreventBrowserClose, useConfirmationDialog, isAxiosError, getAxiosErrorMessage, usePoller, ErrorBoundary } from '@opengeoweb/shared';
|
|
10
|
-
import moment from 'moment';
|
|
7
|
+
import { defaultIntersectionStyleProperties, defaultPoint, defaultBox, defaultPolygon, defaultDelete, LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSelectMapButtonsConnect, MapViewConnect, TimeSliderConnect, LegendConnect, LayerManagerConnect, useMapDrawTool } from '@opengeoweb/core';
|
|
8
|
+
import { defaultStyleProperties, DRAWMODE, addFeatureProperties, MapControls, MapViewLayer } from '@opengeoweb/webmap-react';
|
|
9
|
+
import { CustomTooltip, dateUtils, ToggleMenu, useIsMounted, StatusTag, AlertBanner, ConfirmationServiceProvider, usePreventBrowserClose, useConfirmationDialog, isAxiosError, getAxiosErrorMessage, usePoller, ErrorBoundary } from '@opengeoweb/shared';
|
|
11
10
|
import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
|
|
12
11
|
import { DrawFIRLand, ChevronLeft, Edit, Success, Clock } from '@opengeoweb/theme';
|
|
13
12
|
import { LayerType, webmapUtils } from '@opengeoweb/webmap';
|
|
13
|
+
import moment from 'moment';
|
|
14
14
|
import { debounce } from 'lodash';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import { mapSelectors, syncGroupsActions, mapStoreActions, defaultLayers, syncConstants } from '@opengeoweb/store';
|
|
17
17
|
import { jsx } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
|
-
function _iterableToArrayLimit(
|
|
20
|
-
var
|
|
21
|
-
if (null !=
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
function _iterableToArrayLimit(r, l) {
|
|
20
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
21
|
+
if (null != t) {
|
|
22
|
+
var e,
|
|
23
|
+
n,
|
|
24
|
+
i,
|
|
25
|
+
u,
|
|
26
|
+
a = [],
|
|
27
|
+
f = !0,
|
|
28
|
+
o = !1;
|
|
29
29
|
try {
|
|
30
|
-
if (
|
|
31
|
-
if (Object(
|
|
32
|
-
|
|
33
|
-
} else for (; !(
|
|
34
|
-
} catch (
|
|
35
|
-
|
|
30
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
31
|
+
if (Object(t) !== t) return;
|
|
32
|
+
f = !1;
|
|
33
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
34
|
+
} catch (r) {
|
|
35
|
+
o = !0, n = r;
|
|
36
36
|
} finally {
|
|
37
37
|
try {
|
|
38
|
-
if (!
|
|
38
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
39
39
|
} finally {
|
|
40
|
-
if (
|
|
40
|
+
if (o) throw n;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return a;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
function _regeneratorRuntime() {
|
|
47
47
|
_regeneratorRuntime = function () {
|
|
48
|
-
return
|
|
48
|
+
return e;
|
|
49
49
|
};
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
var t,
|
|
51
|
+
e = {},
|
|
52
|
+
r = Object.prototype,
|
|
53
|
+
n = r.hasOwnProperty,
|
|
54
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
55
|
+
t[e] = r.value;
|
|
55
56
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
function define(
|
|
61
|
-
return Object.defineProperty(
|
|
62
|
-
value:
|
|
57
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
58
|
+
a = i.iterator || "@@iterator",
|
|
59
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
60
|
+
u = i.toStringTag || "@@toStringTag";
|
|
61
|
+
function define(t, e, r) {
|
|
62
|
+
return Object.defineProperty(t, e, {
|
|
63
|
+
value: r,
|
|
63
64
|
enumerable: !0,
|
|
64
65
|
configurable: !0,
|
|
65
66
|
writable: !0
|
|
66
|
-
}),
|
|
67
|
+
}), t[e];
|
|
67
68
|
}
|
|
68
69
|
try {
|
|
69
70
|
define({}, "");
|
|
70
|
-
} catch (
|
|
71
|
-
define = function (
|
|
72
|
-
return
|
|
71
|
+
} catch (t) {
|
|
72
|
+
define = function (t, e, r) {
|
|
73
|
+
return t[e] = r;
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
|
-
function wrap(
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return
|
|
80
|
-
value: makeInvokeMethod(
|
|
81
|
-
}),
|
|
76
|
+
function wrap(t, e, r, n) {
|
|
77
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
78
|
+
a = Object.create(i.prototype),
|
|
79
|
+
c = new Context(n || []);
|
|
80
|
+
return o(a, "_invoke", {
|
|
81
|
+
value: makeInvokeMethod(t, r, c)
|
|
82
|
+
}), a;
|
|
82
83
|
}
|
|
83
|
-
function tryCatch(
|
|
84
|
+
function tryCatch(t, e, r) {
|
|
84
85
|
try {
|
|
85
86
|
return {
|
|
86
87
|
type: "normal",
|
|
87
|
-
arg:
|
|
88
|
+
arg: t.call(e, r)
|
|
88
89
|
};
|
|
89
|
-
} catch (
|
|
90
|
+
} catch (t) {
|
|
90
91
|
return {
|
|
91
92
|
type: "throw",
|
|
92
|
-
arg:
|
|
93
|
+
arg: t
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
-
var
|
|
97
|
+
e.wrap = wrap;
|
|
98
|
+
var h = "suspendedStart",
|
|
99
|
+
l = "suspendedYield",
|
|
100
|
+
f = "executing",
|
|
101
|
+
s = "completed",
|
|
102
|
+
y = {};
|
|
98
103
|
function Generator() {}
|
|
99
104
|
function GeneratorFunction() {}
|
|
100
105
|
function GeneratorFunctionPrototype() {}
|
|
101
|
-
var
|
|
102
|
-
define(
|
|
106
|
+
var p = {};
|
|
107
|
+
define(p, a, function () {
|
|
103
108
|
return this;
|
|
104
109
|
});
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
var
|
|
109
|
-
function defineIteratorMethods(
|
|
110
|
-
["next", "throw", "return"].forEach(function (
|
|
111
|
-
define(
|
|
112
|
-
return this._invoke(
|
|
110
|
+
var d = Object.getPrototypeOf,
|
|
111
|
+
v = d && d(d(values([])));
|
|
112
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
113
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
114
|
+
function defineIteratorMethods(t) {
|
|
115
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
116
|
+
define(t, e, function (t) {
|
|
117
|
+
return this._invoke(e, t);
|
|
113
118
|
});
|
|
114
119
|
});
|
|
115
120
|
}
|
|
116
|
-
function AsyncIterator(
|
|
117
|
-
function invoke(
|
|
118
|
-
var
|
|
119
|
-
if ("throw" !==
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
return
|
|
123
|
-
invoke("next",
|
|
124
|
-
}, function (
|
|
125
|
-
invoke("throw",
|
|
126
|
-
}) :
|
|
127
|
-
|
|
128
|
-
}, function (
|
|
129
|
-
return invoke("throw",
|
|
121
|
+
function AsyncIterator(t, e) {
|
|
122
|
+
function invoke(r, o, i, a) {
|
|
123
|
+
var c = tryCatch(t[r], t, o);
|
|
124
|
+
if ("throw" !== c.type) {
|
|
125
|
+
var u = c.arg,
|
|
126
|
+
h = u.value;
|
|
127
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
128
|
+
invoke("next", t, i, a);
|
|
129
|
+
}, function (t) {
|
|
130
|
+
invoke("throw", t, i, a);
|
|
131
|
+
}) : e.resolve(h).then(function (t) {
|
|
132
|
+
u.value = t, i(u);
|
|
133
|
+
}, function (t) {
|
|
134
|
+
return invoke("throw", t, i, a);
|
|
130
135
|
});
|
|
131
136
|
}
|
|
132
|
-
|
|
137
|
+
a(c.arg);
|
|
133
138
|
}
|
|
134
|
-
var
|
|
135
|
-
|
|
136
|
-
value: function (
|
|
139
|
+
var r;
|
|
140
|
+
o(this, "_invoke", {
|
|
141
|
+
value: function (t, n) {
|
|
137
142
|
function callInvokeWithMethodAndArg() {
|
|
138
|
-
return new
|
|
139
|
-
invoke(
|
|
143
|
+
return new e(function (e, r) {
|
|
144
|
+
invoke(t, n, e, r);
|
|
140
145
|
});
|
|
141
146
|
}
|
|
142
|
-
return
|
|
147
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
143
148
|
}
|
|
144
149
|
});
|
|
145
150
|
}
|
|
146
|
-
function makeInvokeMethod(
|
|
147
|
-
var
|
|
148
|
-
return function (
|
|
149
|
-
if (
|
|
150
|
-
if (
|
|
151
|
-
if ("throw" ===
|
|
151
|
+
function makeInvokeMethod(e, r, n) {
|
|
152
|
+
var o = h;
|
|
153
|
+
return function (i, a) {
|
|
154
|
+
if (o === f) throw new Error("Generator is already running");
|
|
155
|
+
if (o === s) {
|
|
156
|
+
if ("throw" === i) throw a;
|
|
152
157
|
return {
|
|
153
|
-
value:
|
|
158
|
+
value: t,
|
|
154
159
|
done: !0
|
|
155
160
|
};
|
|
156
161
|
}
|
|
157
|
-
for (
|
|
158
|
-
var
|
|
159
|
-
if (
|
|
160
|
-
var
|
|
161
|
-
if (
|
|
162
|
-
if (
|
|
163
|
-
return
|
|
162
|
+
for (n.method = i, n.arg = a;;) {
|
|
163
|
+
var c = n.delegate;
|
|
164
|
+
if (c) {
|
|
165
|
+
var u = maybeInvokeDelegate(c, n);
|
|
166
|
+
if (u) {
|
|
167
|
+
if (u === y) continue;
|
|
168
|
+
return u;
|
|
164
169
|
}
|
|
165
170
|
}
|
|
166
|
-
if ("next" ===
|
|
167
|
-
if (
|
|
168
|
-
|
|
169
|
-
} else "return" ===
|
|
170
|
-
|
|
171
|
-
var
|
|
172
|
-
if ("normal" ===
|
|
173
|
-
if (
|
|
171
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
172
|
+
if (o === h) throw o = s, n.arg;
|
|
173
|
+
n.dispatchException(n.arg);
|
|
174
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
175
|
+
o = f;
|
|
176
|
+
var p = tryCatch(e, r, n);
|
|
177
|
+
if ("normal" === p.type) {
|
|
178
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
174
179
|
return {
|
|
175
|
-
value:
|
|
176
|
-
done:
|
|
180
|
+
value: p.arg,
|
|
181
|
+
done: n.done
|
|
177
182
|
};
|
|
178
183
|
}
|
|
179
|
-
"throw" ===
|
|
184
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
180
185
|
}
|
|
181
186
|
};
|
|
182
187
|
}
|
|
183
|
-
function maybeInvokeDelegate(
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
if (
|
|
187
|
-
var
|
|
188
|
-
if ("throw" ===
|
|
189
|
-
var
|
|
190
|
-
return
|
|
188
|
+
function maybeInvokeDelegate(e, r) {
|
|
189
|
+
var n = r.method,
|
|
190
|
+
o = e.iterator[n];
|
|
191
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
192
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
193
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
194
|
+
var a = i.arg;
|
|
195
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
191
196
|
}
|
|
192
|
-
function pushTryEntry(
|
|
193
|
-
var
|
|
194
|
-
tryLoc:
|
|
197
|
+
function pushTryEntry(t) {
|
|
198
|
+
var e = {
|
|
199
|
+
tryLoc: t[0]
|
|
195
200
|
};
|
|
196
|
-
1 in
|
|
201
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
197
202
|
}
|
|
198
|
-
function resetTryEntry(
|
|
199
|
-
var
|
|
200
|
-
|
|
203
|
+
function resetTryEntry(t) {
|
|
204
|
+
var e = t.completion || {};
|
|
205
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
201
206
|
}
|
|
202
|
-
function Context(
|
|
207
|
+
function Context(t) {
|
|
203
208
|
this.tryEntries = [{
|
|
204
209
|
tryLoc: "root"
|
|
205
|
-
}],
|
|
210
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
206
211
|
}
|
|
207
|
-
function values(
|
|
208
|
-
if (
|
|
209
|
-
var
|
|
210
|
-
if (
|
|
211
|
-
if ("function" == typeof
|
|
212
|
-
if (!isNaN(
|
|
213
|
-
var
|
|
214
|
-
|
|
215
|
-
for (; ++
|
|
216
|
-
return next.value =
|
|
212
|
+
function values(e) {
|
|
213
|
+
if (e || "" === e) {
|
|
214
|
+
var r = e[a];
|
|
215
|
+
if (r) return r.call(e);
|
|
216
|
+
if ("function" == typeof e.next) return e;
|
|
217
|
+
if (!isNaN(e.length)) {
|
|
218
|
+
var o = -1,
|
|
219
|
+
i = function next() {
|
|
220
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
221
|
+
return next.value = t, next.done = !0, next;
|
|
217
222
|
};
|
|
218
|
-
return
|
|
223
|
+
return i.next = i;
|
|
219
224
|
}
|
|
220
225
|
}
|
|
221
|
-
throw new TypeError(typeof
|
|
226
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
222
227
|
}
|
|
223
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
228
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
224
229
|
value: GeneratorFunctionPrototype,
|
|
225
230
|
configurable: !0
|
|
226
|
-
}),
|
|
231
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
227
232
|
value: GeneratorFunction,
|
|
228
233
|
configurable: !0
|
|
229
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
230
|
-
var
|
|
231
|
-
return !!
|
|
232
|
-
},
|
|
233
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
234
|
-
},
|
|
234
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
235
|
+
var e = "function" == typeof t && t.constructor;
|
|
236
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
237
|
+
}, e.mark = function (t) {
|
|
238
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
239
|
+
}, e.awrap = function (t) {
|
|
235
240
|
return {
|
|
236
|
-
__await:
|
|
241
|
+
__await: t
|
|
237
242
|
};
|
|
238
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
243
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
239
244
|
return this;
|
|
240
|
-
}),
|
|
241
|
-
void 0 ===
|
|
242
|
-
var
|
|
243
|
-
return
|
|
244
|
-
return
|
|
245
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
246
|
+
void 0 === i && (i = Promise);
|
|
247
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
248
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
249
|
+
return t.done ? t.value : a.next();
|
|
245
250
|
});
|
|
246
|
-
}, defineIteratorMethods(
|
|
251
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
247
252
|
return this;
|
|
248
|
-
}), define(
|
|
253
|
+
}), define(g, "toString", function () {
|
|
249
254
|
return "[object Generator]";
|
|
250
|
-
}),
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
for (var
|
|
254
|
-
return
|
|
255
|
-
for (;
|
|
256
|
-
var
|
|
257
|
-
if (
|
|
255
|
+
}), e.keys = function (t) {
|
|
256
|
+
var e = Object(t),
|
|
257
|
+
r = [];
|
|
258
|
+
for (var n in e) r.push(n);
|
|
259
|
+
return r.reverse(), function next() {
|
|
260
|
+
for (; r.length;) {
|
|
261
|
+
var t = r.pop();
|
|
262
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
258
263
|
}
|
|
259
264
|
return next.done = !0, next;
|
|
260
265
|
};
|
|
261
|
-
},
|
|
266
|
+
}, e.values = values, Context.prototype = {
|
|
262
267
|
constructor: Context,
|
|
263
|
-
reset: function (
|
|
264
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
268
|
+
reset: function (e) {
|
|
269
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
265
270
|
},
|
|
266
271
|
stop: function () {
|
|
267
272
|
this.done = !0;
|
|
268
|
-
var
|
|
269
|
-
if ("throw" ===
|
|
273
|
+
var t = this.tryEntries[0].completion;
|
|
274
|
+
if ("throw" === t.type) throw t.arg;
|
|
270
275
|
return this.rval;
|
|
271
276
|
},
|
|
272
|
-
dispatchException: function (
|
|
273
|
-
if (this.done) throw
|
|
274
|
-
var
|
|
275
|
-
function handle(
|
|
276
|
-
return
|
|
277
|
+
dispatchException: function (e) {
|
|
278
|
+
if (this.done) throw e;
|
|
279
|
+
var r = this;
|
|
280
|
+
function handle(n, o) {
|
|
281
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
277
282
|
}
|
|
278
|
-
for (var
|
|
279
|
-
var
|
|
280
|
-
|
|
281
|
-
if ("root" ===
|
|
282
|
-
if (
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
if (
|
|
286
|
-
if (this.prev <
|
|
287
|
-
if (this.prev <
|
|
288
|
-
} else if (
|
|
289
|
-
if (this.prev <
|
|
283
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
284
|
+
var i = this.tryEntries[o],
|
|
285
|
+
a = i.completion;
|
|
286
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
287
|
+
if (i.tryLoc <= this.prev) {
|
|
288
|
+
var c = n.call(i, "catchLoc"),
|
|
289
|
+
u = n.call(i, "finallyLoc");
|
|
290
|
+
if (c && u) {
|
|
291
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
292
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
293
|
+
} else if (c) {
|
|
294
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
290
295
|
} else {
|
|
291
|
-
if (!
|
|
292
|
-
if (this.prev <
|
|
296
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
297
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
293
298
|
}
|
|
294
299
|
}
|
|
295
300
|
}
|
|
296
301
|
},
|
|
297
|
-
abrupt: function (
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
if (
|
|
301
|
-
var
|
|
302
|
+
abrupt: function (t, e) {
|
|
303
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
304
|
+
var o = this.tryEntries[r];
|
|
305
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
306
|
+
var i = o;
|
|
302
307
|
break;
|
|
303
308
|
}
|
|
304
309
|
}
|
|
305
|
-
|
|
306
|
-
var
|
|
307
|
-
return
|
|
310
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
311
|
+
var a = i ? i.completion : {};
|
|
312
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
308
313
|
},
|
|
309
|
-
complete: function (
|
|
310
|
-
if ("throw" ===
|
|
311
|
-
return "break" ===
|
|
314
|
+
complete: function (t, e) {
|
|
315
|
+
if ("throw" === t.type) throw t.arg;
|
|
316
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
312
317
|
},
|
|
313
|
-
finish: function (
|
|
314
|
-
for (var
|
|
315
|
-
var
|
|
316
|
-
if (
|
|
318
|
+
finish: function (t) {
|
|
319
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
320
|
+
var r = this.tryEntries[e];
|
|
321
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
317
322
|
}
|
|
318
323
|
},
|
|
319
|
-
catch: function (
|
|
320
|
-
for (var
|
|
321
|
-
var
|
|
322
|
-
if (
|
|
323
|
-
var
|
|
324
|
-
if ("throw" ===
|
|
325
|
-
var
|
|
326
|
-
resetTryEntry(
|
|
324
|
+
catch: function (t) {
|
|
325
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
326
|
+
var r = this.tryEntries[e];
|
|
327
|
+
if (r.tryLoc === t) {
|
|
328
|
+
var n = r.completion;
|
|
329
|
+
if ("throw" === n.type) {
|
|
330
|
+
var o = n.arg;
|
|
331
|
+
resetTryEntry(r);
|
|
327
332
|
}
|
|
328
|
-
return
|
|
333
|
+
return o;
|
|
329
334
|
}
|
|
330
335
|
}
|
|
331
336
|
throw new Error("illegal catch attempt");
|
|
332
337
|
},
|
|
333
|
-
delegateYield: function (
|
|
338
|
+
delegateYield: function (e, r, n) {
|
|
334
339
|
return this.delegate = {
|
|
335
|
-
iterator: values(
|
|
336
|
-
resultName:
|
|
337
|
-
nextLoc:
|
|
338
|
-
}, "next" === this.method && (this.arg =
|
|
340
|
+
iterator: values(e),
|
|
341
|
+
resultName: r,
|
|
342
|
+
nextLoc: n
|
|
343
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
339
344
|
}
|
|
340
|
-
},
|
|
345
|
+
}, e;
|
|
341
346
|
}
|
|
342
|
-
function _typeof(
|
|
347
|
+
function _typeof(o) {
|
|
343
348
|
"@babel/helpers - typeof";
|
|
344
349
|
|
|
345
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
346
|
-
return typeof
|
|
347
|
-
} : function (
|
|
348
|
-
return
|
|
349
|
-
}, _typeof(
|
|
350
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
351
|
+
return typeof o;
|
|
352
|
+
} : function (o) {
|
|
353
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
354
|
+
}, _typeof(o);
|
|
350
355
|
}
|
|
351
356
|
function _defineProperty(obj, key, value) {
|
|
352
357
|
key = _toPropertyKey(key);
|
|
@@ -1231,10 +1236,10 @@ var getConfirmationDialogCancelLabel = function getConfirmationDialogCancelLabel
|
|
|
1231
1236
|
};
|
|
1232
1237
|
var getProductIssueDate = function getProductIssueDate(initialProduct, initialCancelProduct) {
|
|
1233
1238
|
if (initialProduct !== null && (initialProduct.status === 'PUBLISHED' || initialProduct.status === 'EXPIRED') && initialProduct.issueDate) {
|
|
1234
|
-
return "".concat(
|
|
1239
|
+
return "".concat(dateUtils.dateToString(dateUtils.utc(initialProduct.issueDate), 'yyyy/MM/dd HH:mm'), " UTC");
|
|
1235
1240
|
}
|
|
1236
1241
|
if (initialCancelProduct !== null && initialCancelProduct.issueDate) {
|
|
1237
|
-
return "".concat(
|
|
1242
|
+
return "".concat(dateUtils.dateToString(dateUtils.utc(initialCancelProduct.issueDate), 'yyyy/MM/dd HH:mm'), " UTC");
|
|
1238
1243
|
}
|
|
1239
1244
|
return '(Not published)';
|
|
1240
1245
|
};
|
|
@@ -2517,7 +2522,9 @@ var getValidFromXHoursBeforeMessage = function getValidFromXHoursBeforeMessage(h
|
|
|
2517
2522
|
};
|
|
2518
2523
|
var getDefaultValidFromValue = function getDefaultValidFromValue(productConfig) {
|
|
2519
2524
|
var validFromDelayTimeMinutes = getValidFromDelayTimeMinutesFromConfig(productConfig);
|
|
2520
|
-
return
|
|
2525
|
+
return dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
2526
|
+
minutes: validFromDelayTimeMinutes
|
|
2527
|
+
}));
|
|
2521
2528
|
};
|
|
2522
2529
|
var ValidFrom = function ValidFrom(_ref) {
|
|
2523
2530
|
var productConfig = _ref.productConfig,
|
|
@@ -2544,11 +2551,11 @@ var ValidFrom = function ValidFrom(_ref) {
|
|
|
2544
2551
|
isValidDate: isValidDate,
|
|
2545
2552
|
// The validity start can not be before the current time
|
|
2546
2553
|
isValueBeforeCurrentTime: function isValueBeforeCurrentTime(value) {
|
|
2547
|
-
return isXHoursBefore(value,
|
|
2554
|
+
return isXHoursBefore(value, dateUtils.dateToString(dateUtils.utc()), 0) || VALID_FROM_ERROR_BEFORE_CURRENT;
|
|
2548
2555
|
},
|
|
2549
2556
|
// The current time can be no more than 4 hours before the validity start (12 for VA/TC SIGMET)
|
|
2550
2557
|
isCurrentTimeXHoursBeforeValue: function isCurrentTimeXHoursBeforeValue(value) {
|
|
2551
|
-
return isXHoursBefore(
|
|
2558
|
+
return isXHoursBefore(dateUtils.dateToString(dateUtils.utc()), value, getHoursBeforeValidity(getValues('phenomenon'), getValues('locationIndicatorATSR'), productConfig)) || getValidFromXHoursBeforeMessage(getHoursBeforeValidity(getValues('phenomenon'), getValues('locationIndicatorATSR'), productConfig));
|
|
2552
2559
|
}
|
|
2553
2560
|
}
|
|
2554
2561
|
},
|
|
@@ -2581,7 +2588,9 @@ var ValidFrom = function ValidFrom(_ref) {
|
|
|
2581
2588
|
var getDefaultValidUntilValue = function getDefaultValidUntilValue(productConfig) {
|
|
2582
2589
|
var defaultValidityMinutes = getDefaultValidityMinutesFromConfig(productConfig);
|
|
2583
2590
|
var validFromDelayTimeMinutes = getValidFromDelayTimeMinutesFromConfig(productConfig);
|
|
2584
|
-
return
|
|
2591
|
+
return dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
2592
|
+
minutes: defaultValidityMinutes + validFromDelayTimeMinutes
|
|
2593
|
+
}));
|
|
2585
2594
|
};
|
|
2586
2595
|
var ValidUntil = function ValidUntil(_ref) {
|
|
2587
2596
|
var productConfig = _ref.productConfig,
|
|
@@ -3322,13 +3331,54 @@ var CloudLevels = function CloudLevels(_ref) {
|
|
|
3322
3331
|
};
|
|
3323
3332
|
|
|
3324
3333
|
var noTAC = 'Missing data: no TAC can be generated';
|
|
3334
|
+
var isLevelFieldsComplete = function isLevelFieldsComplete(product) {
|
|
3335
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3336
|
+
switch (product.phenomenon) {
|
|
3337
|
+
// For certain AIRMETs no levels are provided
|
|
3338
|
+
case 'SFC_VIS':
|
|
3339
|
+
case 'SFC_WIND':
|
|
3340
|
+
return true;
|
|
3341
|
+
// For certain AIRMETs we have cloudlevels
|
|
3342
|
+
case 'OVC_CLD':
|
|
3343
|
+
case 'BKN_CLD':
|
|
3344
|
+
{
|
|
3345
|
+
if (!product.cloudLevelInfoMode) {
|
|
3346
|
+
return false;
|
|
3347
|
+
}
|
|
3348
|
+
var cloudLevelMode = product.cloudLevelInfoMode;
|
|
3349
|
+
var levelNeeded = cloudLevelMode === 'BETW_SFC_ABV' || cloudLevelMode === 'BETW_SFC';
|
|
3350
|
+
var levelAndLowerLevelNeeded = cloudLevelMode === 'BETW' || cloudLevelMode === 'BETW_ABV';
|
|
3351
|
+
if (levelAndLowerLevelNeeded && (!((_a = product.cloudLevel) === null || _a === void 0 ? void 0 : _a.value) || !((_b = product.cloudLowerLevel) === null || _b === void 0 ? void 0 : _b.value)) || levelNeeded && !((_c = product.cloudLevel) === null || _c === void 0 ? void 0 : _c.value)) {
|
|
3352
|
+
return false;
|
|
3353
|
+
}
|
|
3354
|
+
return true;
|
|
3355
|
+
}
|
|
3356
|
+
// Other AIRMETs and all SIGMETs
|
|
3357
|
+
default:
|
|
3358
|
+
{
|
|
3359
|
+
if (!product.levelInfoMode) {
|
|
3360
|
+
return false;
|
|
3361
|
+
}
|
|
3362
|
+
var levelMode = product.levelInfoMode;
|
|
3363
|
+
var _levelNeeded = levelMode === 'AT' || levelMode === 'ABV' || levelMode === 'TOPS' || levelMode === 'TOPS_ABV' || levelMode === 'BETW_SFC';
|
|
3364
|
+
var _levelAndLowerLevelNeeded = levelMode === 'BETW';
|
|
3365
|
+
if (_levelNeeded && !((_d = product.level) === null || _d === void 0 ? void 0 : _d.value) || _levelAndLowerLevelNeeded && (!((_e = product.level) === null || _e === void 0 ? void 0 : _e.value) || !((_f = product.lowerLevel) === null || _f === void 0 ? void 0 : _f.value))) {
|
|
3366
|
+
return false;
|
|
3367
|
+
}
|
|
3368
|
+
return true;
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
};
|
|
3325
3372
|
// Ensure we have enough data to retrieve a TAC
|
|
3326
3373
|
var shouldRetrieveTAC = function shouldRetrieveTAC(product) {
|
|
3374
|
+
if (!product) {
|
|
3375
|
+
return false;
|
|
3376
|
+
}
|
|
3327
3377
|
// always retrieve for a cancel product - this is always complete
|
|
3328
3378
|
if (product && isInstanceOfCancelSigmetOrAirmet(product)) {
|
|
3329
3379
|
return true;
|
|
3330
3380
|
}
|
|
3331
|
-
if (product && isInstanceOfSigmetOrAirmet(product) && product.phenomenon && product.phenomenon !== '' && product.isObservationOrForecast && product.isObservationOrForecast !== '' && product.validDateStart && product.validDateStart !== null && product.validDateEnd && product.validDateEnd !== null && product.startGeometry && product.startGeometry !== null && product.startGeometryIntersect && product.startGeometryIntersect !== null && product.movementType && product.movementType !== '' && product.change && product.change !== '') {
|
|
3381
|
+
if (product && isInstanceOfSigmetOrAirmet(product) && product.phenomenon && product.phenomenon !== '' && product.isObservationOrForecast && product.isObservationOrForecast !== '' && product.validDateStart && product.validDateStart !== null && product.validDateEnd && product.validDateEnd !== null && isLevelFieldsComplete(product) && product.startGeometry && product.startGeometry !== null && product.startGeometryIntersect && product.startGeometryIntersect !== null && product.movementType && product.movementType !== '' && product.change && product.change !== '') {
|
|
3332
3382
|
return true;
|
|
3333
3383
|
}
|
|
3334
3384
|
return false;
|
|
@@ -12494,7 +12544,7 @@ tags.forEach(function (tagName) {
|
|
|
12494
12544
|
});
|
|
12495
12545
|
|
|
12496
12546
|
/**
|
|
12497
|
-
* @mui/styled-engine v5.
|
|
12547
|
+
* @mui/styled-engine v5.14.8
|
|
12498
12548
|
*
|
|
12499
12549
|
* @license MIT
|
|
12500
12550
|
* This source code is licensed under the MIT license found in the
|
|
@@ -13136,10 +13186,20 @@ const width = style$1({
|
|
|
13136
13186
|
const maxWidth = props => {
|
|
13137
13187
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
13138
13188
|
const styleFromPropValue = propValue => {
|
|
13139
|
-
var _props$theme;
|
|
13189
|
+
var _props$theme, _props$theme2;
|
|
13140
13190
|
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
|
|
13191
|
+
if (!breakpoint) {
|
|
13192
|
+
return {
|
|
13193
|
+
maxWidth: sizingTransform(propValue)
|
|
13194
|
+
};
|
|
13195
|
+
}
|
|
13196
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
|
|
13197
|
+
return {
|
|
13198
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
13199
|
+
};
|
|
13200
|
+
}
|
|
13141
13201
|
return {
|
|
13142
|
-
maxWidth: breakpoint
|
|
13202
|
+
maxWidth: breakpoint
|
|
13143
13203
|
};
|
|
13144
13204
|
};
|
|
13145
13205
|
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
@@ -14218,7 +14278,6 @@ var createApi$1 = function createApi(props) {
|
|
|
14218
14278
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
14219
14279
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
14220
14280
|
* */
|
|
14221
|
-
var dateFormatUTC$1 = 'YYYY-MM-DDTHH:mmZ';
|
|
14222
14281
|
var fakeAirmetList = [{
|
|
14223
14282
|
creationDate: '2020-09-17T12:00:00Z',
|
|
14224
14283
|
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
@@ -14226,14 +14285,20 @@ var fakeAirmetList = [{
|
|
|
14226
14285
|
uuid: 'someuniqueidprescibedbyBE',
|
|
14227
14286
|
phenomenon: 'ISOL_TSGR',
|
|
14228
14287
|
sequence: 'A01',
|
|
14229
|
-
validDateStart:
|
|
14230
|
-
|
|
14288
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14289
|
+
hours: 1
|
|
14290
|
+
})),
|
|
14291
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14292
|
+
hours: 3
|
|
14293
|
+
})),
|
|
14231
14294
|
firName: 'AMSTERDAM FIR',
|
|
14232
14295
|
locationIndicatorATSU: 'EHAA',
|
|
14233
14296
|
locationIndicatorATSR: 'EHAA',
|
|
14234
14297
|
locationIndicatorMWO: 'EHDB',
|
|
14235
14298
|
isObservationOrForecast: 'OBS',
|
|
14236
|
-
observationOrForecastTime:
|
|
14299
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.sub(dateUtils.utc(), {
|
|
14300
|
+
hours: 2
|
|
14301
|
+
})),
|
|
14237
14302
|
movementType: 'STATIONARY',
|
|
14238
14303
|
change: 'WKN',
|
|
14239
14304
|
type: 'NORMAL',
|
|
@@ -14272,21 +14337,27 @@ var fakeAirmetList = [{
|
|
|
14272
14337
|
}
|
|
14273
14338
|
}
|
|
14274
14339
|
}, {
|
|
14275
|
-
creationDate:
|
|
14340
|
+
creationDate: dateUtils.dateToString(dateUtils.utc()),
|
|
14276
14341
|
canbe: ['CANCELLED'],
|
|
14277
14342
|
airmet: {
|
|
14278
14343
|
uuid: 'someuniqueidprescibedbyBE2',
|
|
14279
14344
|
phenomenon: 'SFC_VIS',
|
|
14280
14345
|
sequence: 'A01V',
|
|
14281
14346
|
issueDate: '2020-09-17T12:00:00Z',
|
|
14282
|
-
validDateStart:
|
|
14283
|
-
|
|
14347
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14348
|
+
hours: 1
|
|
14349
|
+
})),
|
|
14350
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14351
|
+
hours: 2
|
|
14352
|
+
})),
|
|
14284
14353
|
firName: 'AMSTERDAM FIR',
|
|
14285
14354
|
locationIndicatorATSU: 'EHAA',
|
|
14286
14355
|
locationIndicatorATSR: 'EHAA',
|
|
14287
14356
|
locationIndicatorMWO: 'EHDB',
|
|
14288
14357
|
isObservationOrForecast: 'OBS',
|
|
14289
|
-
observationOrForecastTime:
|
|
14358
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14359
|
+
hours: 1
|
|
14360
|
+
})),
|
|
14290
14361
|
movementType: 'STATIONARY',
|
|
14291
14362
|
change: 'WKN',
|
|
14292
14363
|
type: 'NORMAL',
|
|
@@ -14323,21 +14394,23 @@ var fakeAirmetList = [{
|
|
|
14323
14394
|
}
|
|
14324
14395
|
}
|
|
14325
14396
|
}, {
|
|
14326
|
-
creationDate:
|
|
14397
|
+
creationDate: dateUtils.dateToString(dateUtils.utc()),
|
|
14327
14398
|
canbe: ['CANCELLED'],
|
|
14328
14399
|
airmet: {
|
|
14329
14400
|
uuid: 'someuniqueidprescibedbyBE3',
|
|
14330
14401
|
phenomenon: 'ISOL_TS',
|
|
14331
14402
|
sequence: 'A02V30',
|
|
14332
|
-
issueDate:
|
|
14333
|
-
validDateStart:
|
|
14334
|
-
validDateEnd:
|
|
14403
|
+
issueDate: dateUtils.dateToString(dateUtils.utc()),
|
|
14404
|
+
validDateStart: dateUtils.dateToString(dateUtils.utc()),
|
|
14405
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14406
|
+
hours: 1
|
|
14407
|
+
})),
|
|
14335
14408
|
firName: 'AMSTERDAM FIR',
|
|
14336
14409
|
locationIndicatorATSU: 'EHAA',
|
|
14337
14410
|
locationIndicatorATSR: 'EHAA',
|
|
14338
14411
|
locationIndicatorMWO: 'EHDB',
|
|
14339
14412
|
isObservationOrForecast: 'OBS',
|
|
14340
|
-
observationOrForecastTime:
|
|
14413
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.utc()),
|
|
14341
14414
|
movementType: 'STATIONARY',
|
|
14342
14415
|
change: 'WKN',
|
|
14343
14416
|
type: 'NORMAL',
|
|
@@ -14623,14 +14696,20 @@ var fakeAirmetList = [{
|
|
|
14623
14696
|
uuid: 'someuniqueidprescibedbyBE',
|
|
14624
14697
|
phenomenon: 'MOD_ICE',
|
|
14625
14698
|
sequence: 'A01',
|
|
14626
|
-
validDateStart:
|
|
14627
|
-
|
|
14699
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14700
|
+
hours: 1
|
|
14701
|
+
})),
|
|
14702
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14703
|
+
hours: 3
|
|
14704
|
+
})),
|
|
14628
14705
|
firName: 'AMSTERDAM FIR',
|
|
14629
14706
|
locationIndicatorATSU: 'EHAA',
|
|
14630
14707
|
locationIndicatorATSR: 'EHAA',
|
|
14631
14708
|
locationIndicatorMWO: 'EHDB',
|
|
14632
14709
|
isObservationOrForecast: 'OBS',
|
|
14633
|
-
observationOrForecastTime:
|
|
14710
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.sub(dateUtils.utc(), {
|
|
14711
|
+
hours: 2
|
|
14712
|
+
})),
|
|
14634
14713
|
movementType: 'STATIONARY',
|
|
14635
14714
|
change: 'WKN',
|
|
14636
14715
|
type: 'NORMAL',
|
|
@@ -14671,16 +14750,22 @@ var fakeAirmetList = [{
|
|
|
14671
14750
|
({
|
|
14672
14751
|
uuid: 'someuniqueidprescibedbyBE02',
|
|
14673
14752
|
phenomenon: 'ISOL_TCU',
|
|
14674
|
-
issueDate:
|
|
14753
|
+
issueDate: dateUtils.dateToString(dateUtils.utc()),
|
|
14675
14754
|
sequence: 'A02',
|
|
14676
|
-
validDateStart:
|
|
14677
|
-
|
|
14755
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14756
|
+
hours: 1
|
|
14757
|
+
})),
|
|
14758
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14759
|
+
hours: 3
|
|
14760
|
+
})),
|
|
14678
14761
|
firName: 'AMSTERDAM FIR',
|
|
14679
14762
|
locationIndicatorATSU: 'EHAA',
|
|
14680
14763
|
locationIndicatorATSR: 'EHAA',
|
|
14681
14764
|
locationIndicatorMWO: 'EHDB',
|
|
14682
14765
|
isObservationOrForecast: 'OBS',
|
|
14683
|
-
observationOrForecastTime:
|
|
14766
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.sub(dateUtils.utc(), {
|
|
14767
|
+
hours: 2
|
|
14768
|
+
})),
|
|
14684
14769
|
movementType: 'STATIONARY',
|
|
14685
14770
|
change: 'WKN',
|
|
14686
14771
|
type: 'NORMAL',
|
|
@@ -14773,10 +14858,14 @@ var fakeAirmetList = [{
|
|
|
14773
14858
|
uuid: 'someuniqueidprescibedbyBE',
|
|
14774
14859
|
phenomenon: 'BKN_CLD',
|
|
14775
14860
|
sequence: 'A02V',
|
|
14776
|
-
issueDate:
|
|
14861
|
+
issueDate: dateUtils.dateToString(dateUtils.utc()),
|
|
14777
14862
|
observationOrForecastTime: null,
|
|
14778
|
-
validDateStart:
|
|
14779
|
-
|
|
14863
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14864
|
+
hours: 1
|
|
14865
|
+
})),
|
|
14866
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14867
|
+
hours: 3
|
|
14868
|
+
})),
|
|
14780
14869
|
firName: 'AMSTERDAM FIR',
|
|
14781
14870
|
locationIndicatorATSU: 'EHAA',
|
|
14782
14871
|
locationIndicatorATSR: 'EHAA',
|
|
@@ -14834,14 +14923,20 @@ var fakeAirmetList = [{
|
|
|
14834
14923
|
uuid: 'someuniqueidprescribedbyBE',
|
|
14835
14924
|
phenomenon: 'ISOL_TSGR',
|
|
14836
14925
|
sequence: 'A01',
|
|
14837
|
-
validDateStart:
|
|
14838
|
-
|
|
14926
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14927
|
+
hours: 1
|
|
14928
|
+
})),
|
|
14929
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
14930
|
+
hours: 3
|
|
14931
|
+
})),
|
|
14839
14932
|
firName: 'AMSTERDAM FIR',
|
|
14840
14933
|
locationIndicatorATSU: 'EHAA',
|
|
14841
14934
|
locationIndicatorATSR: 'EHAA',
|
|
14842
14935
|
locationIndicatorMWO: 'EHDB',
|
|
14843
14936
|
isObservationOrForecast: 'OBS',
|
|
14844
|
-
observationOrForecastTime:
|
|
14937
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.sub(dateUtils.utc(), {
|
|
14938
|
+
hours: 2
|
|
14939
|
+
})),
|
|
14845
14940
|
movementType: 'STATIONARY',
|
|
14846
14941
|
change: 'WKN',
|
|
14847
14942
|
type: 'NORMAL',
|
|
@@ -15184,7 +15279,6 @@ var fakeAirmetList = [{
|
|
|
15184
15279
|
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
15185
15280
|
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
15186
15281
|
* */
|
|
15187
|
-
var dateFormatUTC = 'YYYY-MM-DDTHH:mmZ';
|
|
15188
15282
|
// TODO: [Loes Cornelis] Replace with correct strucutre and in JSON format - not js object
|
|
15189
15283
|
var fakeSigmetList = [{
|
|
15190
15284
|
creationDate: '2020-09-17T12:00:00Z',
|
|
@@ -15193,14 +15287,20 @@ var fakeSigmetList = [{
|
|
|
15193
15287
|
uuid: 'someuniqueidprescibedbyBE',
|
|
15194
15288
|
phenomenon: 'OBSC_TS',
|
|
15195
15289
|
sequence: 'A01',
|
|
15196
|
-
validDateStart:
|
|
15197
|
-
|
|
15290
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15291
|
+
hours: 1
|
|
15292
|
+
})),
|
|
15293
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15294
|
+
hours: 3
|
|
15295
|
+
})),
|
|
15198
15296
|
firName: 'AMSTERDAM FIR',
|
|
15199
15297
|
locationIndicatorATSU: 'EHAA',
|
|
15200
15298
|
locationIndicatorATSR: 'EHAA',
|
|
15201
15299
|
locationIndicatorMWO: 'EHDB',
|
|
15202
15300
|
isObservationOrForecast: 'OBS',
|
|
15203
|
-
observationOrForecastTime:
|
|
15301
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.sub(dateUtils.utc(), {
|
|
15302
|
+
hours: 2
|
|
15303
|
+
})),
|
|
15204
15304
|
movementType: 'FORECAST_POSITION',
|
|
15205
15305
|
change: 'WKN',
|
|
15206
15306
|
type: 'NORMAL',
|
|
@@ -15265,21 +15365,27 @@ var fakeSigmetList = [{
|
|
|
15265
15365
|
}
|
|
15266
15366
|
}
|
|
15267
15367
|
}, {
|
|
15268
|
-
creationDate:
|
|
15368
|
+
creationDate: dateUtils.dateToString(dateUtils.utc()),
|
|
15269
15369
|
canbe: ['CANCELLED'],
|
|
15270
15370
|
sigmet: {
|
|
15271
15371
|
uuid: 'someuniqueidprescibedbyBE2',
|
|
15272
15372
|
phenomenon: 'VA_CLD',
|
|
15273
15373
|
sequence: 'A01V',
|
|
15274
15374
|
issueDate: '2020-09-17T12:00:00Z',
|
|
15275
|
-
validDateStart:
|
|
15276
|
-
|
|
15375
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15376
|
+
hours: 1
|
|
15377
|
+
})),
|
|
15378
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15379
|
+
hours: 2
|
|
15380
|
+
})),
|
|
15277
15381
|
firName: 'AMSTERDAM FIR',
|
|
15278
15382
|
locationIndicatorATSU: 'EHAA',
|
|
15279
15383
|
locationIndicatorATSR: 'EHAA',
|
|
15280
15384
|
locationIndicatorMWO: 'EHDB',
|
|
15281
15385
|
isObservationOrForecast: 'OBS',
|
|
15282
|
-
observationOrForecastTime:
|
|
15386
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15387
|
+
hours: 1
|
|
15388
|
+
})),
|
|
15283
15389
|
movementType: 'STATIONARY',
|
|
15284
15390
|
change: 'WKN',
|
|
15285
15391
|
type: 'NORMAL',
|
|
@@ -15327,21 +15433,23 @@ var fakeSigmetList = [{
|
|
|
15327
15433
|
}
|
|
15328
15434
|
}
|
|
15329
15435
|
}, {
|
|
15330
|
-
creationDate:
|
|
15436
|
+
creationDate: dateUtils.dateToString(dateUtils.utc()),
|
|
15331
15437
|
canbe: ['CANCELLED'],
|
|
15332
15438
|
sigmet: {
|
|
15333
15439
|
uuid: 'someuniqueidprescibedbyBE3',
|
|
15334
15440
|
phenomenon: 'VA_CLD',
|
|
15335
15441
|
sequence: 'A02V',
|
|
15336
|
-
issueDate:
|
|
15337
|
-
validDateStart:
|
|
15338
|
-
validDateEnd:
|
|
15442
|
+
issueDate: dateUtils.dateToString(dateUtils.utc()),
|
|
15443
|
+
validDateStart: dateUtils.dateToString(dateUtils.utc()),
|
|
15444
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15445
|
+
hours: 1
|
|
15446
|
+
})),
|
|
15339
15447
|
firName: 'AMSTERDAM FIR',
|
|
15340
15448
|
locationIndicatorATSU: 'EHAA',
|
|
15341
15449
|
locationIndicatorATSR: 'EHAA',
|
|
15342
15450
|
locationIndicatorMWO: 'EHDB',
|
|
15343
15451
|
isObservationOrForecast: 'OBS',
|
|
15344
|
-
observationOrForecastTime:
|
|
15452
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.utc()),
|
|
15345
15453
|
movementType: 'NO_VA_EXP',
|
|
15346
15454
|
change: 'WKN',
|
|
15347
15455
|
type: 'NORMAL',
|
|
@@ -15689,14 +15797,20 @@ var fakeSigmetList = [{
|
|
|
15689
15797
|
uuid: '41d4dd4f-82bb-4944-a8f5-f9635086156b',
|
|
15690
15798
|
phenomenon: 'OBSC_TS',
|
|
15691
15799
|
sequence: 'A05',
|
|
15692
|
-
validDateStart:
|
|
15693
|
-
|
|
15800
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15801
|
+
hours: 1
|
|
15802
|
+
})),
|
|
15803
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15804
|
+
hours: 2
|
|
15805
|
+
})),
|
|
15694
15806
|
firName: 'AMSTERDAM FIR',
|
|
15695
15807
|
locationIndicatorATSU: 'EHAA',
|
|
15696
15808
|
locationIndicatorATSR: 'EHAA',
|
|
15697
15809
|
locationIndicatorMWO: 'EHDB',
|
|
15698
15810
|
isObservationOrForecast: 'OBS',
|
|
15699
|
-
observationOrForecastTime:
|
|
15811
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.sub(dateUtils.utc(), {
|
|
15812
|
+
hours: 1
|
|
15813
|
+
})),
|
|
15700
15814
|
movementType: 'FORECAST_POSITION',
|
|
15701
15815
|
change: '',
|
|
15702
15816
|
type: 'NORMAL',
|
|
@@ -15761,21 +15875,27 @@ var fakeSigmetList = [{
|
|
|
15761
15875
|
}
|
|
15762
15876
|
}
|
|
15763
15877
|
}, {
|
|
15764
|
-
creationDate:
|
|
15878
|
+
creationDate: dateUtils.dateToString(dateUtils.utc()),
|
|
15765
15879
|
canbe: ['CANCELLED'],
|
|
15766
15880
|
sigmet: {
|
|
15767
15881
|
uuid: 'someuniqueidprescibedbyPET',
|
|
15768
15882
|
phenomenon: 'EMBD_TS',
|
|
15769
15883
|
sequence: '10',
|
|
15770
15884
|
issueDate: '2020-09-17T12:00:00Z',
|
|
15771
|
-
validDateStart:
|
|
15772
|
-
|
|
15885
|
+
validDateStart: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15886
|
+
hours: 1
|
|
15887
|
+
})),
|
|
15888
|
+
validDateEnd: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15889
|
+
hours: 2
|
|
15890
|
+
})),
|
|
15773
15891
|
firName: 'AMSTERDAM FIR',
|
|
15774
15892
|
locationIndicatorATSU: 'EHAA',
|
|
15775
15893
|
locationIndicatorATSR: 'EHAA',
|
|
15776
15894
|
locationIndicatorMWO: 'EHDB',
|
|
15777
15895
|
isObservationOrForecast: 'OBS',
|
|
15778
|
-
observationOrForecastTime:
|
|
15896
|
+
observationOrForecastTime: dateUtils.dateToString(dateUtils.add(dateUtils.utc(), {
|
|
15897
|
+
hours: 1
|
|
15898
|
+
})),
|
|
15779
15899
|
movementType: 'STATIONARY',
|
|
15780
15900
|
change: 'WKN',
|
|
15781
15901
|
type: 'NORMAL',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,26 +12,26 @@
|
|
|
12
12
|
"main": "./index.esm.js",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@mui/material": "5.12.0",
|
|
15
|
-
"@mui/system": "5.14.
|
|
16
|
-
"@opengeoweb/api": "
|
|
17
|
-
"@opengeoweb/authentication": "
|
|
18
|
-
"@opengeoweb/core": "
|
|
19
|
-
"@opengeoweb/form-fields": "
|
|
20
|
-
"@opengeoweb/shared": "
|
|
21
|
-
"@opengeoweb/store": "
|
|
22
|
-
"@opengeoweb/theme": "
|
|
23
|
-
"@opengeoweb/webmap": "
|
|
24
|
-
"@opengeoweb/webmap-react": "
|
|
15
|
+
"@mui/system": "5.14.8",
|
|
16
|
+
"@opengeoweb/api": "7.0.0",
|
|
17
|
+
"@opengeoweb/authentication": "7.0.0",
|
|
18
|
+
"@opengeoweb/core": "7.0.0",
|
|
19
|
+
"@opengeoweb/form-fields": "7.0.0",
|
|
20
|
+
"@opengeoweb/shared": "7.0.0",
|
|
21
|
+
"@opengeoweb/store": "7.0.0",
|
|
22
|
+
"@opengeoweb/theme": "7.0.0",
|
|
23
|
+
"@opengeoweb/webmap": "7.0.0",
|
|
24
|
+
"@opengeoweb/webmap-react": "7.0.0",
|
|
25
25
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
26
26
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
27
27
|
"@reduxjs/toolkit": "1.9.5",
|
|
28
28
|
"@turf/turf": "6.5.0",
|
|
29
|
-
"axios": "1.
|
|
29
|
+
"axios": "1.5.0",
|
|
30
30
|
"immer": "9.0.21",
|
|
31
31
|
"lodash": "4.17.21",
|
|
32
32
|
"moment": "2.29.4",
|
|
33
33
|
"react": "18.2.0",
|
|
34
|
-
"react-hook-form": "7.
|
|
34
|
+
"react-hook-form": "7.46.1",
|
|
35
35
|
"react-redux": "8.1.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { mapTypes, layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { MapViewLayerProps } from '@opengeoweb/
|
|
3
|
+
import { MapViewLayerProps } from '@opengeoweb/webmap-react';
|
|
4
4
|
export interface MapViewGeoJsonProps {
|
|
5
5
|
baseLayers?: layerTypes.Layer[];
|
|
6
6
|
projection?: mapTypes.MapPreset['proj'];
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { CancelSigmet, Sigmet, Airmet, CancelAirmet } from '../../types';
|
|
3
3
|
type AviationProduct = Sigmet | CancelSigmet | Airmet | CancelAirmet;
|
|
4
4
|
export declare const noTAC = "Missing data: no TAC can be generated";
|
|
5
|
+
export declare const isLevelFieldsComplete: (product: Sigmet | Airmet) => boolean;
|
|
5
6
|
export declare const shouldRetrieveTAC: (product: AviationProduct) => boolean;
|
|
6
7
|
export declare const useTAC: (initialProduct: AviationProduct, getTAC: (product: AviationProduct) => Promise<{
|
|
7
8
|
data: string;
|