@opengeoweb/store 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 +254 -290
- package/package.json +4 -2
- package/src/store/drawings/reducer.d.ts +2 -2
- package/src/store/drawings/types.d.ts +9 -0
- package/src/store/generic/types.d.ts +2 -1
- package/src/store/mapStore/index.d.ts +7 -7
- package/src/store/mapStore/layers/reducer.d.ts +2 -1
- package/src/store/mapStore/layers/types.d.ts +2 -17
- package/src/store/mapStore/map/actions.d.ts +2 -1
- package/src/store/mapStore/map/index.d.ts +1 -1
- package/src/store/mapStore/map/reducer.d.ts +3 -2
- package/src/store/mapStore/map/selectors.d.ts +1 -1
- package/src/store/mapStore/map/types.d.ts +1 -23
- package/src/store/ui/selectors.d.ts +1 -1
- package/src/store/ui/types.d.ts +2 -2
- package/src/store/mapStore/map/defaultLayers.d.ts +0 -15
package/index.esm.js
CHANGED
|
@@ -1,336 +1,343 @@
|
|
|
1
1
|
import { webmapUtils, LayerType, webmapTestSettings, WMLayer, getCapabilities } from '@opengeoweb/webmap';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { defaultLayers } from '@opengeoweb/webmap-react';
|
|
3
|
+
export { defaultLayers } from '@opengeoweb/webmap-react';
|
|
4
|
+
|
|
5
|
+
function _iterableToArrayLimit(r, l) {
|
|
6
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
+
if (null != t) {
|
|
8
|
+
var e,
|
|
9
|
+
n,
|
|
10
|
+
i,
|
|
11
|
+
u,
|
|
12
|
+
a = [],
|
|
13
|
+
f = !0,
|
|
14
|
+
o = !1;
|
|
13
15
|
try {
|
|
14
|
-
if (
|
|
15
|
-
if (Object(
|
|
16
|
-
|
|
17
|
-
} else for (; !(
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
16
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
17
|
+
if (Object(t) !== t) return;
|
|
18
|
+
f = !1;
|
|
19
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
20
|
+
} catch (r) {
|
|
21
|
+
o = !0, n = r;
|
|
20
22
|
} finally {
|
|
21
23
|
try {
|
|
22
|
-
if (!
|
|
24
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
23
25
|
} finally {
|
|
24
|
-
if (
|
|
26
|
+
if (o) throw n;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
|
-
return
|
|
29
|
+
return a;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
function _regeneratorRuntime() {
|
|
31
33
|
_regeneratorRuntime = function () {
|
|
32
|
-
return
|
|
34
|
+
return e;
|
|
33
35
|
};
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
var t,
|
|
37
|
+
e = {},
|
|
38
|
+
r = Object.prototype,
|
|
39
|
+
n = r.hasOwnProperty,
|
|
40
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
41
|
+
t[e] = r.value;
|
|
39
42
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function define(
|
|
45
|
-
return Object.defineProperty(
|
|
46
|
-
value:
|
|
43
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
44
|
+
a = i.iterator || "@@iterator",
|
|
45
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
46
|
+
u = i.toStringTag || "@@toStringTag";
|
|
47
|
+
function define(t, e, r) {
|
|
48
|
+
return Object.defineProperty(t, e, {
|
|
49
|
+
value: r,
|
|
47
50
|
enumerable: !0,
|
|
48
51
|
configurable: !0,
|
|
49
52
|
writable: !0
|
|
50
|
-
}),
|
|
53
|
+
}), t[e];
|
|
51
54
|
}
|
|
52
55
|
try {
|
|
53
56
|
define({}, "");
|
|
54
|
-
} catch (
|
|
55
|
-
define = function (
|
|
56
|
-
return
|
|
57
|
+
} catch (t) {
|
|
58
|
+
define = function (t, e, r) {
|
|
59
|
+
return t[e] = r;
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
|
-
function wrap(
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return
|
|
64
|
-
value: makeInvokeMethod(
|
|
65
|
-
}),
|
|
62
|
+
function wrap(t, e, r, n) {
|
|
63
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
64
|
+
a = Object.create(i.prototype),
|
|
65
|
+
c = new Context(n || []);
|
|
66
|
+
return o(a, "_invoke", {
|
|
67
|
+
value: makeInvokeMethod(t, r, c)
|
|
68
|
+
}), a;
|
|
66
69
|
}
|
|
67
|
-
function tryCatch(
|
|
70
|
+
function tryCatch(t, e, r) {
|
|
68
71
|
try {
|
|
69
72
|
return {
|
|
70
73
|
type: "normal",
|
|
71
|
-
arg:
|
|
74
|
+
arg: t.call(e, r)
|
|
72
75
|
};
|
|
73
|
-
} catch (
|
|
76
|
+
} catch (t) {
|
|
74
77
|
return {
|
|
75
78
|
type: "throw",
|
|
76
|
-
arg:
|
|
79
|
+
arg: t
|
|
77
80
|
};
|
|
78
81
|
}
|
|
79
82
|
}
|
|
80
|
-
|
|
81
|
-
var
|
|
83
|
+
e.wrap = wrap;
|
|
84
|
+
var h = "suspendedStart",
|
|
85
|
+
l = "suspendedYield",
|
|
86
|
+
f = "executing",
|
|
87
|
+
s = "completed",
|
|
88
|
+
y = {};
|
|
82
89
|
function Generator() {}
|
|
83
90
|
function GeneratorFunction() {}
|
|
84
91
|
function GeneratorFunctionPrototype() {}
|
|
85
|
-
var
|
|
86
|
-
define(
|
|
92
|
+
var p = {};
|
|
93
|
+
define(p, a, function () {
|
|
87
94
|
return this;
|
|
88
95
|
});
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
var
|
|
93
|
-
function defineIteratorMethods(
|
|
94
|
-
["next", "throw", "return"].forEach(function (
|
|
95
|
-
define(
|
|
96
|
-
return this._invoke(
|
|
96
|
+
var d = Object.getPrototypeOf,
|
|
97
|
+
v = d && d(d(values([])));
|
|
98
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
99
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
100
|
+
function defineIteratorMethods(t) {
|
|
101
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
102
|
+
define(t, e, function (t) {
|
|
103
|
+
return this._invoke(e, t);
|
|
97
104
|
});
|
|
98
105
|
});
|
|
99
106
|
}
|
|
100
|
-
function AsyncIterator(
|
|
101
|
-
function invoke(
|
|
102
|
-
var
|
|
103
|
-
if ("throw" !==
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
invoke("next",
|
|
108
|
-
}, function (
|
|
109
|
-
invoke("throw",
|
|
110
|
-
}) :
|
|
111
|
-
|
|
112
|
-
}, function (
|
|
113
|
-
return invoke("throw",
|
|
107
|
+
function AsyncIterator(t, e) {
|
|
108
|
+
function invoke(r, o, i, a) {
|
|
109
|
+
var c = tryCatch(t[r], t, o);
|
|
110
|
+
if ("throw" !== c.type) {
|
|
111
|
+
var u = c.arg,
|
|
112
|
+
h = u.value;
|
|
113
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
114
|
+
invoke("next", t, i, a);
|
|
115
|
+
}, function (t) {
|
|
116
|
+
invoke("throw", t, i, a);
|
|
117
|
+
}) : e.resolve(h).then(function (t) {
|
|
118
|
+
u.value = t, i(u);
|
|
119
|
+
}, function (t) {
|
|
120
|
+
return invoke("throw", t, i, a);
|
|
114
121
|
});
|
|
115
122
|
}
|
|
116
|
-
|
|
123
|
+
a(c.arg);
|
|
117
124
|
}
|
|
118
|
-
var
|
|
119
|
-
|
|
120
|
-
value: function (
|
|
125
|
+
var r;
|
|
126
|
+
o(this, "_invoke", {
|
|
127
|
+
value: function (t, n) {
|
|
121
128
|
function callInvokeWithMethodAndArg() {
|
|
122
|
-
return new
|
|
123
|
-
invoke(
|
|
129
|
+
return new e(function (e, r) {
|
|
130
|
+
invoke(t, n, e, r);
|
|
124
131
|
});
|
|
125
132
|
}
|
|
126
|
-
return
|
|
133
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
127
134
|
}
|
|
128
135
|
});
|
|
129
136
|
}
|
|
130
|
-
function makeInvokeMethod(
|
|
131
|
-
var
|
|
132
|
-
return function (
|
|
133
|
-
if (
|
|
134
|
-
if (
|
|
135
|
-
if ("throw" ===
|
|
137
|
+
function makeInvokeMethod(e, r, n) {
|
|
138
|
+
var o = h;
|
|
139
|
+
return function (i, a) {
|
|
140
|
+
if (o === f) throw new Error("Generator is already running");
|
|
141
|
+
if (o === s) {
|
|
142
|
+
if ("throw" === i) throw a;
|
|
136
143
|
return {
|
|
137
|
-
value:
|
|
144
|
+
value: t,
|
|
138
145
|
done: !0
|
|
139
146
|
};
|
|
140
147
|
}
|
|
141
|
-
for (
|
|
142
|
-
var
|
|
143
|
-
if (
|
|
144
|
-
var
|
|
145
|
-
if (
|
|
146
|
-
if (
|
|
147
|
-
return
|
|
148
|
+
for (n.method = i, n.arg = a;;) {
|
|
149
|
+
var c = n.delegate;
|
|
150
|
+
if (c) {
|
|
151
|
+
var u = maybeInvokeDelegate(c, n);
|
|
152
|
+
if (u) {
|
|
153
|
+
if (u === y) continue;
|
|
154
|
+
return u;
|
|
148
155
|
}
|
|
149
156
|
}
|
|
150
|
-
if ("next" ===
|
|
151
|
-
if (
|
|
152
|
-
|
|
153
|
-
} else "return" ===
|
|
154
|
-
|
|
155
|
-
var
|
|
156
|
-
if ("normal" ===
|
|
157
|
-
if (
|
|
157
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
158
|
+
if (o === h) throw o = s, n.arg;
|
|
159
|
+
n.dispatchException(n.arg);
|
|
160
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
161
|
+
o = f;
|
|
162
|
+
var p = tryCatch(e, r, n);
|
|
163
|
+
if ("normal" === p.type) {
|
|
164
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
158
165
|
return {
|
|
159
|
-
value:
|
|
160
|
-
done:
|
|
166
|
+
value: p.arg,
|
|
167
|
+
done: n.done
|
|
161
168
|
};
|
|
162
169
|
}
|
|
163
|
-
"throw" ===
|
|
170
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
164
171
|
}
|
|
165
172
|
};
|
|
166
173
|
}
|
|
167
|
-
function maybeInvokeDelegate(
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
if (
|
|
171
|
-
var
|
|
172
|
-
if ("throw" ===
|
|
173
|
-
var
|
|
174
|
-
return
|
|
175
|
-
}
|
|
176
|
-
function pushTryEntry(
|
|
177
|
-
var
|
|
178
|
-
tryLoc:
|
|
174
|
+
function maybeInvokeDelegate(e, r) {
|
|
175
|
+
var n = r.method,
|
|
176
|
+
o = e.iterator[n];
|
|
177
|
+
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;
|
|
178
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
179
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
180
|
+
var a = i.arg;
|
|
181
|
+
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);
|
|
182
|
+
}
|
|
183
|
+
function pushTryEntry(t) {
|
|
184
|
+
var e = {
|
|
185
|
+
tryLoc: t[0]
|
|
179
186
|
};
|
|
180
|
-
1 in
|
|
187
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
181
188
|
}
|
|
182
|
-
function resetTryEntry(
|
|
183
|
-
var
|
|
184
|
-
|
|
189
|
+
function resetTryEntry(t) {
|
|
190
|
+
var e = t.completion || {};
|
|
191
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
185
192
|
}
|
|
186
|
-
function Context(
|
|
193
|
+
function Context(t) {
|
|
187
194
|
this.tryEntries = [{
|
|
188
195
|
tryLoc: "root"
|
|
189
|
-
}],
|
|
190
|
-
}
|
|
191
|
-
function values(
|
|
192
|
-
if (
|
|
193
|
-
var
|
|
194
|
-
if (
|
|
195
|
-
if ("function" == typeof
|
|
196
|
-
if (!isNaN(
|
|
197
|
-
var
|
|
198
|
-
|
|
199
|
-
for (; ++
|
|
200
|
-
return next.value =
|
|
196
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
197
|
+
}
|
|
198
|
+
function values(e) {
|
|
199
|
+
if (e || "" === e) {
|
|
200
|
+
var r = e[a];
|
|
201
|
+
if (r) return r.call(e);
|
|
202
|
+
if ("function" == typeof e.next) return e;
|
|
203
|
+
if (!isNaN(e.length)) {
|
|
204
|
+
var o = -1,
|
|
205
|
+
i = function next() {
|
|
206
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
207
|
+
return next.value = t, next.done = !0, next;
|
|
201
208
|
};
|
|
202
|
-
return
|
|
209
|
+
return i.next = i;
|
|
203
210
|
}
|
|
204
211
|
}
|
|
205
|
-
throw new TypeError(typeof
|
|
212
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
206
213
|
}
|
|
207
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
214
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
208
215
|
value: GeneratorFunctionPrototype,
|
|
209
216
|
configurable: !0
|
|
210
|
-
}),
|
|
217
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
211
218
|
value: GeneratorFunction,
|
|
212
219
|
configurable: !0
|
|
213
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
214
|
-
var
|
|
215
|
-
return !!
|
|
216
|
-
},
|
|
217
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
218
|
-
},
|
|
220
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
221
|
+
var e = "function" == typeof t && t.constructor;
|
|
222
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
223
|
+
}, e.mark = function (t) {
|
|
224
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
225
|
+
}, e.awrap = function (t) {
|
|
219
226
|
return {
|
|
220
|
-
__await:
|
|
227
|
+
__await: t
|
|
221
228
|
};
|
|
222
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
229
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
223
230
|
return this;
|
|
224
|
-
}),
|
|
225
|
-
void 0 ===
|
|
226
|
-
var
|
|
227
|
-
return
|
|
228
|
-
return
|
|
231
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
232
|
+
void 0 === i && (i = Promise);
|
|
233
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
234
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
235
|
+
return t.done ? t.value : a.next();
|
|
229
236
|
});
|
|
230
|
-
}, defineIteratorMethods(
|
|
237
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
231
238
|
return this;
|
|
232
|
-
}), define(
|
|
239
|
+
}), define(g, "toString", function () {
|
|
233
240
|
return "[object Generator]";
|
|
234
|
-
}),
|
|
235
|
-
var
|
|
236
|
-
|
|
237
|
-
for (var
|
|
238
|
-
return
|
|
239
|
-
for (;
|
|
240
|
-
var
|
|
241
|
-
if (
|
|
241
|
+
}), e.keys = function (t) {
|
|
242
|
+
var e = Object(t),
|
|
243
|
+
r = [];
|
|
244
|
+
for (var n in e) r.push(n);
|
|
245
|
+
return r.reverse(), function next() {
|
|
246
|
+
for (; r.length;) {
|
|
247
|
+
var t = r.pop();
|
|
248
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
242
249
|
}
|
|
243
250
|
return next.done = !0, next;
|
|
244
251
|
};
|
|
245
|
-
},
|
|
252
|
+
}, e.values = values, Context.prototype = {
|
|
246
253
|
constructor: Context,
|
|
247
|
-
reset: function (
|
|
248
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
254
|
+
reset: function (e) {
|
|
255
|
+
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);
|
|
249
256
|
},
|
|
250
257
|
stop: function () {
|
|
251
258
|
this.done = !0;
|
|
252
|
-
var
|
|
253
|
-
if ("throw" ===
|
|
259
|
+
var t = this.tryEntries[0].completion;
|
|
260
|
+
if ("throw" === t.type) throw t.arg;
|
|
254
261
|
return this.rval;
|
|
255
262
|
},
|
|
256
|
-
dispatchException: function (
|
|
257
|
-
if (this.done) throw
|
|
258
|
-
var
|
|
259
|
-
function handle(
|
|
260
|
-
return
|
|
261
|
-
}
|
|
262
|
-
for (var
|
|
263
|
-
var
|
|
264
|
-
|
|
265
|
-
if ("root" ===
|
|
266
|
-
if (
|
|
267
|
-
var
|
|
268
|
-
|
|
269
|
-
if (
|
|
270
|
-
if (this.prev <
|
|
271
|
-
if (this.prev <
|
|
272
|
-
} else if (
|
|
273
|
-
if (this.prev <
|
|
263
|
+
dispatchException: function (e) {
|
|
264
|
+
if (this.done) throw e;
|
|
265
|
+
var r = this;
|
|
266
|
+
function handle(n, o) {
|
|
267
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
268
|
+
}
|
|
269
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
270
|
+
var i = this.tryEntries[o],
|
|
271
|
+
a = i.completion;
|
|
272
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
273
|
+
if (i.tryLoc <= this.prev) {
|
|
274
|
+
var c = n.call(i, "catchLoc"),
|
|
275
|
+
u = n.call(i, "finallyLoc");
|
|
276
|
+
if (c && u) {
|
|
277
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
278
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
279
|
+
} else if (c) {
|
|
280
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
274
281
|
} else {
|
|
275
|
-
if (!
|
|
276
|
-
if (this.prev <
|
|
282
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
283
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
277
284
|
}
|
|
278
285
|
}
|
|
279
286
|
}
|
|
280
287
|
},
|
|
281
|
-
abrupt: function (
|
|
282
|
-
for (var
|
|
283
|
-
var
|
|
284
|
-
if (
|
|
285
|
-
var
|
|
288
|
+
abrupt: function (t, e) {
|
|
289
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
290
|
+
var o = this.tryEntries[r];
|
|
291
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
292
|
+
var i = o;
|
|
286
293
|
break;
|
|
287
294
|
}
|
|
288
295
|
}
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
return
|
|
296
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
297
|
+
var a = i ? i.completion : {};
|
|
298
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
292
299
|
},
|
|
293
|
-
complete: function (
|
|
294
|
-
if ("throw" ===
|
|
295
|
-
return "break" ===
|
|
300
|
+
complete: function (t, e) {
|
|
301
|
+
if ("throw" === t.type) throw t.arg;
|
|
302
|
+
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;
|
|
296
303
|
},
|
|
297
|
-
finish: function (
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
if (
|
|
304
|
+
finish: function (t) {
|
|
305
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
306
|
+
var r = this.tryEntries[e];
|
|
307
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
301
308
|
}
|
|
302
309
|
},
|
|
303
|
-
catch: function (
|
|
304
|
-
for (var
|
|
305
|
-
var
|
|
306
|
-
if (
|
|
307
|
-
var
|
|
308
|
-
if ("throw" ===
|
|
309
|
-
var
|
|
310
|
-
resetTryEntry(
|
|
310
|
+
catch: function (t) {
|
|
311
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
312
|
+
var r = this.tryEntries[e];
|
|
313
|
+
if (r.tryLoc === t) {
|
|
314
|
+
var n = r.completion;
|
|
315
|
+
if ("throw" === n.type) {
|
|
316
|
+
var o = n.arg;
|
|
317
|
+
resetTryEntry(r);
|
|
311
318
|
}
|
|
312
|
-
return
|
|
319
|
+
return o;
|
|
313
320
|
}
|
|
314
321
|
}
|
|
315
322
|
throw new Error("illegal catch attempt");
|
|
316
323
|
},
|
|
317
|
-
delegateYield: function (
|
|
324
|
+
delegateYield: function (e, r, n) {
|
|
318
325
|
return this.delegate = {
|
|
319
|
-
iterator: values(
|
|
320
|
-
resultName:
|
|
321
|
-
nextLoc:
|
|
322
|
-
}, "next" === this.method && (this.arg =
|
|
326
|
+
iterator: values(e),
|
|
327
|
+
resultName: r,
|
|
328
|
+
nextLoc: n
|
|
329
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
323
330
|
}
|
|
324
|
-
},
|
|
331
|
+
}, e;
|
|
325
332
|
}
|
|
326
|
-
function _typeof$1(
|
|
333
|
+
function _typeof$1(o) {
|
|
327
334
|
"@babel/helpers - typeof";
|
|
328
335
|
|
|
329
|
-
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
330
|
-
return typeof
|
|
331
|
-
} : function (
|
|
332
|
-
return
|
|
333
|
-
}, _typeof$1(
|
|
336
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
337
|
+
return typeof o;
|
|
338
|
+
} : function (o) {
|
|
339
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
340
|
+
}, _typeof$1(o);
|
|
334
341
|
}
|
|
335
342
|
function _defineProperty$1(obj, key, value) {
|
|
336
343
|
key = _toPropertyKey$1(key);
|
|
@@ -480,14 +487,14 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
480
487
|
|
|
481
488
|
function n$1(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r$1(n){return !!n&&!!n[Q]}function t$3(n){var r;return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var r=Object.getPrototypeOf(n);if(null===r)return !0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function i$1(n,r,t){void 0===t&&(t=!1),0===o$1(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n);})):n.forEach((function(t,e){return r(e,t,n)}));}function o$1(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u$1(n,r){return 2===o$1(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a$1(n,r){return 2===o$1(n)?n.get(r):n[r]}function f(n,r,t){var e=o$1(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t;}function c$1(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r$1(n)||!t$3(n)||(o$1(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i$1(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n$1(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n$1(18,r),t}function m(n,r){tn[n]||(tn[n]=r);}function _(){return "production"===process.env.NODE_ENV||U||n$1(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r);}function g(n){O(n),n.p.forEach(S),n.p=null;}function O(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0;}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n$1(4)),t$3(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i$1(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i$1(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s);}return e.o}function A(e,i,o,a,c,s,v){if("production"!==process.env.NODE_ENV&&c===o&&n$1(5),r$1(c)){var p=M(e,c,s&&i&&3!==i.i&&!u$1(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r$1(p))return;e.m=!1;}else v&&o.add(c);if(t$3(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t);}function z(n,r){var t=n[Q];return (t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return (t?t.A:_()).p.push(e),e}function R(e){return r$1(e)||n$1(22,e),function n(r){if(!t$3(r))return r;var e,u=r[Q],c=o$1(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1;}else e=D(r,c);return i$1(e,(function(r,t){u&&a$1(u.t,r)===t||f(e,r,n(t));})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return "production"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];"production"!==process.env.NODE_ENV&&f(t),en.set(t,n,r);}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t);}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u$1(r,o))return !0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c$1(f,a))return !0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return !0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return !0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return !0;return !1}function f(r){r.g&&n$1(3,JSON.stringify(p(r)));}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r$1(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.R,c=t.i;if(4===c)i$1(o,(function(r){r!==Q&&(void 0!==e[r]||u$1(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)));})),i$1(e,(function(n){void 0!==o[n]||u$1(o,n)||(f[n]=!1,k(t));}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t);})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u$1(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t$3(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c$1(t,i)&&(void 0!==t||u$1(n.t,r)))return !0;E(n),k(n);}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n$1(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n$1(12);}},on={};i$1(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)};})),on.deleteProperty=function(r,t){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&n$1(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&n$1(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return (t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n$1(6),void 0!==o&&"function"!=typeof o&&n$1(7),t$3(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1;}finally{v?g(c):O(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n$1(21,r);},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r;}));return "undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return [n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){t$3(e)||n$1(8),r$1(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q];"production"!==process.env.NODE_ENV&&(e&&e.C||n$1(9),e.I&&n$1(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n;},i.setUseProxies=function(r){r&&!B&&n$1(20),this.O=r;},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r$1(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);var produce = fn;
|
|
482
489
|
|
|
483
|
-
function _typeof(
|
|
490
|
+
function _typeof(o) {
|
|
484
491
|
"@babel/helpers - typeof";
|
|
485
492
|
|
|
486
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
487
|
-
return typeof
|
|
488
|
-
} : function (
|
|
489
|
-
return
|
|
490
|
-
}, _typeof(
|
|
493
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
494
|
+
return typeof o;
|
|
495
|
+
} : function (o) {
|
|
496
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
497
|
+
}, _typeof(o);
|
|
491
498
|
}
|
|
492
499
|
|
|
493
500
|
function _toPrimitive(input, hint) {
|
|
@@ -521,26 +528,26 @@ function _defineProperty(obj, key, value) {
|
|
|
521
528
|
return obj;
|
|
522
529
|
}
|
|
523
530
|
|
|
524
|
-
function ownKeys(
|
|
525
|
-
var
|
|
531
|
+
function ownKeys(e, r) {
|
|
532
|
+
var t = Object.keys(e);
|
|
526
533
|
if (Object.getOwnPropertySymbols) {
|
|
527
|
-
var
|
|
528
|
-
|
|
529
|
-
return Object.getOwnPropertyDescriptor(
|
|
530
|
-
})),
|
|
534
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
535
|
+
r && (o = o.filter(function (r) {
|
|
536
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
537
|
+
})), t.push.apply(t, o);
|
|
531
538
|
}
|
|
532
|
-
return
|
|
539
|
+
return t;
|
|
533
540
|
}
|
|
534
|
-
function _objectSpread2(
|
|
535
|
-
for (var
|
|
536
|
-
var
|
|
537
|
-
|
|
538
|
-
_defineProperty(
|
|
539
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
540
|
-
Object.defineProperty(
|
|
541
|
+
function _objectSpread2(e) {
|
|
542
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
543
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
544
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
545
|
+
_defineProperty(e, r, t[r]);
|
|
546
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
547
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
541
548
|
});
|
|
542
549
|
}
|
|
543
|
-
return
|
|
550
|
+
return e;
|
|
544
551
|
}
|
|
545
552
|
|
|
546
553
|
/**
|
|
@@ -29738,49 +29745,6 @@ var selectors$5 = /*#__PURE__*/Object.freeze({
|
|
|
29738
29745
|
getDockedLayerManagerSize: getDockedLayerManagerSize
|
|
29739
29746
|
});
|
|
29740
29747
|
|
|
29741
|
-
/* *
|
|
29742
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
29743
|
-
* you may not use this file except in compliance with the License.
|
|
29744
|
-
* You may obtain a copy of the License at
|
|
29745
|
-
*
|
|
29746
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29747
|
-
*
|
|
29748
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
29749
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29750
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29751
|
-
* See the License for the specific language governing permissions and
|
|
29752
|
-
* limitations under the License.
|
|
29753
|
-
*
|
|
29754
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
29755
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
29756
|
-
* */
|
|
29757
|
-
var baseLayerGrey = {
|
|
29758
|
-
id: webmapUtils.generateLayerId(),
|
|
29759
|
-
name: 'WorldMap_Light_Grey_Canvas',
|
|
29760
|
-
type: 'twms',
|
|
29761
|
-
layerType: LayerType.baseLayer
|
|
29762
|
-
};
|
|
29763
|
-
// Over Layers List
|
|
29764
|
-
var KNMIgeoservicesBaselayers = {
|
|
29765
|
-
name: 'KNMIgeoservicesBaselayers',
|
|
29766
|
-
url: 'https://geoservices.knmi.nl/wms?DATASET=baselayers&',
|
|
29767
|
-
id: 'KNMIgeoservicesBaselayers'
|
|
29768
|
-
};
|
|
29769
|
-
var overLayer = {
|
|
29770
|
-
service: KNMIgeoservicesBaselayers.url,
|
|
29771
|
-
name: 'countryborders',
|
|
29772
|
-
format: 'image/png',
|
|
29773
|
-
enabled: true,
|
|
29774
|
-
id: webmapUtils.generateLayerId(),
|
|
29775
|
-
layerType: LayerType.overLayer
|
|
29776
|
-
};
|
|
29777
|
-
|
|
29778
|
-
var defaultLayers = /*#__PURE__*/Object.freeze({
|
|
29779
|
-
__proto__: null,
|
|
29780
|
-
baseLayerGrey: baseLayerGrey,
|
|
29781
|
-
overLayer: overLayer
|
|
29782
|
-
});
|
|
29783
|
-
|
|
29784
29748
|
/* *
|
|
29785
29749
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
29786
29750
|
* you may not use this file except in compliance with the License.
|
|
@@ -32916,8 +32880,8 @@ function setMapPresetSaga(_ref6) {
|
|
|
32916
32880
|
}));
|
|
32917
32881
|
case 19:
|
|
32918
32882
|
// sets (default) baseLayers
|
|
32919
|
-
baseLayersWithDefaultLayer = baseLayers.length ? baseLayers : [baseLayerGrey]; // sets (default) overLayers
|
|
32920
|
-
overLayersWithDefaultLayer = overLayers.length ? overLayers : [overLayer];
|
|
32883
|
+
baseLayersWithDefaultLayer = baseLayers.length ? baseLayers : [defaultLayers.baseLayerGrey]; // sets (default) overLayers
|
|
32884
|
+
overLayersWithDefaultLayer = overLayers.length ? overLayers : [defaultLayers.overLayer];
|
|
32921
32885
|
allBaseLayers = [].concat(_toConsumableArray(baseLayersWithDefaultLayer), _toConsumableArray(overLayersWithDefaultLayer)).map(function (layer) {
|
|
32922
32886
|
return Object.assign(Object.assign({}, layer), {
|
|
32923
32887
|
id: webmapUtils.generateLayerId()
|
|
@@ -35881,4 +35845,4 @@ var uiModuleConfig = {
|
|
|
35881
35845
|
* */
|
|
35882
35846
|
var coreModuleConfig = [mapStoreModuleConfig, synchronizationGroupConfig, uiModuleConfig, layerSelectConfig, snackbarModuleConfig, drawModuleConfig, drawtoolModuleConfig];
|
|
35883
35847
|
|
|
35884
|
-
export { appActions, appModuleConfig, coreModuleConfig,
|
|
35848
|
+
export { appActions, appModuleConfig, coreModuleConfig, drawActions, drawModuleConfig, selectors$1 as drawSelectors, types as drawTypes, drawtoolActions, drawtoolModuleConfig, selectors as drawtoolSelectors, filterLayers$1 as filterLayers, genericActions, selectors$6 as genericSelectors, types$4 as genericTypes, getUserAddedServices, initialState$7 as initialState, layerActions, reducer$a as layerReducer, layerSelectActions, initialState$5 as layerSelectInitialState, selectors$3 as layerSelectSelectors, types$2 as layerSelectTypes, selectors$9 as layerSelectors, types$8 as layerTypes, utils$2 as layerUtils, mapActions, constants$1 as mapConstants, enums as mapEnums, selectors$5 as mapSelectors, mapStoreActions, mapStoreModuleConfig, types$7 as mapTypes, mapUtils, routerActions, routerModuleConfig, utils as routerUtils, serviceActions, selectors$4 as serviceSelectors, types$3 as serviceTypes, setUserAddedServices, snackbarActions, snackbarModuleConfig, selectors$2 as snackbarSelectors, types$1 as snackbarTypes, storeTestSettings, storeTestUtils, utils$1 as storeUtils, constants as syncConstants, actions as syncGroupsActions, selector as syncGroupsSelector, selectors$7 as syncGroupsSelectors, types$5 as syncGroupsTypes, types$5 as types, uiActions, uiModuleConfig, reducer$9 as uiReducer, selectors$8 as uiSelectors, types$6 as uiTypes, reducer$8 as webmapReducer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"main": "./index.esm.js",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@opengeoweb/
|
|
15
|
+
"@opengeoweb/shared": "7.0.0",
|
|
16
|
+
"@opengeoweb/webmap": "7.0.0",
|
|
17
|
+
"@opengeoweb/webmap-react": "7.0.0",
|
|
16
18
|
"@redux-eggs/core": "2.2.0",
|
|
17
19
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
18
20
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import { DrawItem, DrawState, SetDrawValuesPayload } from './types';
|
|
2
|
+
import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
|
|
3
3
|
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem>;
|
|
4
4
|
export declare const initialState: DrawState;
|
|
5
5
|
export declare const reducer: import("redux").Reducer<DrawState, import("redux").AnyAction>;
|
|
6
6
|
export declare const drawActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
7
|
setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
|
|
8
|
-
submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<
|
|
8
|
+
submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SubmitDrawValuesPayload>) => void;
|
|
9
9
|
}, "draw">;
|
|
@@ -9,4 +9,13 @@ export type DrawState = EntityState<DrawItem>;
|
|
|
9
9
|
export interface DrawModuleStore {
|
|
10
10
|
drawings?: DrawState;
|
|
11
11
|
}
|
|
12
|
+
export type DrawingScope = 'user';
|
|
12
13
|
export type SetDrawValuesPayload = DrawItem;
|
|
14
|
+
export type SubmitDrawValuesPayload = {
|
|
15
|
+
id?: string;
|
|
16
|
+
area: GeoJSON.FeatureCollection;
|
|
17
|
+
name: string;
|
|
18
|
+
mapId: string;
|
|
19
|
+
lastUpdatedTime?: string;
|
|
20
|
+
scope: DrawingScope;
|
|
21
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { SetLayerStylePayload } from '@opengeoweb/webmap-react';
|
|
1
2
|
import { MapActionOrigin } from '../mapStore/map/enums';
|
|
2
|
-
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload
|
|
3
|
+
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../mapStore/types';
|
|
3
4
|
export interface SetTimePayload {
|
|
4
5
|
sourceId: string;
|
|
5
6
|
origin: string;
|
|
@@ -3,15 +3,15 @@ export declare const mapStoreActions: {
|
|
|
3
3
|
mapStoreRemoveService: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").MapStoreRemoveServicePayload, "serviceReducer/mapStoreRemoveService">;
|
|
4
4
|
fetchInitialServices: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").FetchInitialServicesPayload, "serviceReducer/fetchInitialServices">;
|
|
5
5
|
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
|
|
6
|
-
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
6
|
+
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetMapDimensionPayload, string>;
|
|
7
7
|
registerMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
8
8
|
mapId: string;
|
|
9
9
|
}, "mapReducer/registerMap">;
|
|
10
10
|
unregisterMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
11
11
|
mapId: string;
|
|
12
12
|
}, "mapReducer/unregisterMap">;
|
|
13
|
-
setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
14
|
-
mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
13
|
+
setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetBboxPayload, "mapReducer/setBbox">;
|
|
14
|
+
mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").UpdateAllMapDimensionsPayload, "mapReducer/mapUpdateAllMapDimensions">;
|
|
15
15
|
mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapAnimationStartPayload, "mapReducer/mapStartAnimation">;
|
|
16
16
|
mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapAnimationStopPayload, "mapReducer/mapStopAnimation">;
|
|
17
17
|
setTimeSliderSpan: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderSpanPayload, "mapReducer/setTimeSliderSpan">;
|
|
@@ -40,7 +40,7 @@ export declare const mapStoreActions: {
|
|
|
40
40
|
toggleTimeSliderHover: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleTimeSliderHoverPayload, "mapReducer/toggleTimeSliderHover">;
|
|
41
41
|
toggleTimeSliderIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleTimeSliderIsVisiblePayload, "mapReducer/toggleTimeSliderIsVisible">;
|
|
42
42
|
toggleZoomControls: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleZoomControlsPayload, "mapReducer/toggleZoomControls">;
|
|
43
|
-
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
43
|
+
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").MapPinLocationPayload, "mapReducer/setMapPinLocation">;
|
|
44
44
|
setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").DisableMapPinPayload, "mapReducer/setDisableMapPin">;
|
|
45
45
|
toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleMapPinIsVisiblePayload, "mapReducer/toggleMapPinIsVisible">;
|
|
46
46
|
setDockedLayerManagerSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetDockedLayerManagerSize, "mapReducer/setDockedLayerManagerSize">;
|
|
@@ -48,7 +48,7 @@ export declare const mapStoreActions: {
|
|
|
48
48
|
layerChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerDimensionPayload, "layerReducer/layerChangeDimension">;
|
|
49
49
|
layerChangeEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerEnabledPayload, "layerReducer/layerChangeEnabled">;
|
|
50
50
|
layerChangeOpacity: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerOpacityPayload, "layerReducer/layerChangeOpacity">;
|
|
51
|
-
layerChangeStyle: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
51
|
+
layerChangeStyle: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetLayerStylePayload, "layerReducer/layerChangeStyle">;
|
|
52
52
|
layerChangeAcceptanceTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
53
53
|
layerId: string;
|
|
54
54
|
acceptanceTime: number | undefined;
|
|
@@ -61,11 +61,11 @@ export declare const mapStoreActions: {
|
|
|
61
61
|
setLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayersPayload, "layerReducer/setLayers">;
|
|
62
62
|
setBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetBaseLayersPayload, "layerReducer/setBaseLayers">;
|
|
63
63
|
addBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddBaseLayerPayload, "layerReducer/addBaseLayer">;
|
|
64
|
-
layerSetDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
64
|
+
layerSetDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetLayerDimensionsPayload, "layerReducer/layerSetDimensions">;
|
|
65
65
|
addAvailableBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddAvailableBaseLayerPayload, "layerReducer/addAvailableBaseLayer">;
|
|
66
66
|
addAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddAvailableBaseLayersPayload, "layerReducer/addAvailableBaseLayers">;
|
|
67
67
|
setAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetAvailableBaseLayersPayload, "layerReducer/setAvailableBaseLayers">;
|
|
68
|
-
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
68
|
+
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").UpdateLayerInfoPayload, "layerReducer/onUpdateLayerInformation">;
|
|
69
69
|
setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetSelectedFeaturePayload, "layerReducer/setSelectedFeature">;
|
|
70
70
|
updateFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").UpdateFeaturePayload, "layerReducer/updateFeature">;
|
|
71
71
|
updateFeatureProperties: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").UpdateFeaturePropertiesPayload, "layerReducer/updateFeatureProperties">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
2
|
+
import { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
3
|
+
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload } from './types';
|
|
3
4
|
export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, ...props }: Layer) => Layer;
|
|
4
5
|
export declare const initialState: LayerState;
|
|
5
6
|
export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Action } from '@reduxjs/toolkit';
|
|
2
2
|
import { FeatureCollection } from 'geojson';
|
|
3
3
|
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
|
-
import
|
|
4
|
+
import { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
5
|
+
import type { Dimension } from '../map/types';
|
|
5
6
|
import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
|
|
6
7
|
export declare enum LayerStatus {
|
|
7
8
|
default = "default",
|
|
@@ -26,7 +27,6 @@ export interface FeatureLayer {
|
|
|
26
27
|
* It is a subset of Layer since some properties like the styles list now come from the service store.
|
|
27
28
|
*/
|
|
28
29
|
export interface ReduxLayer extends LayerFoundation, FeatureLayer {
|
|
29
|
-
acceptanceTimeInMinutes?: number;
|
|
30
30
|
dimensions?: Dimension[];
|
|
31
31
|
mapId?: string;
|
|
32
32
|
status?: LayerStatus;
|
|
@@ -60,10 +60,6 @@ export interface SetBaseLayersPayload {
|
|
|
60
60
|
layers: ReduxLayer[];
|
|
61
61
|
origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
|
|
62
62
|
}
|
|
63
|
-
export interface SetLayerDimensionsPayload extends LayerPayload {
|
|
64
|
-
origin: string;
|
|
65
|
-
dimensions: Dimension[];
|
|
66
|
-
}
|
|
67
63
|
export interface SetLayerOpacityPayload extends LayerPayload {
|
|
68
64
|
opacity: number;
|
|
69
65
|
mapId?: string;
|
|
@@ -85,11 +81,6 @@ export interface SetLayerDimensionPayload extends LayerPayload {
|
|
|
85
81
|
origin?: LayerActionOrigin;
|
|
86
82
|
mapId?: string;
|
|
87
83
|
}
|
|
88
|
-
export interface SetLayerStylePayload extends LayerPayload {
|
|
89
|
-
style: string;
|
|
90
|
-
mapId?: string;
|
|
91
|
-
origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
|
|
92
|
-
}
|
|
93
84
|
export interface SetLayerGeojsonPayload extends LayerPayload {
|
|
94
85
|
geojson: FeatureCollection;
|
|
95
86
|
}
|
|
@@ -124,12 +115,6 @@ export interface SetAvailableBaseLayersPayload extends AddAvailableBaseLayersPay
|
|
|
124
115
|
export interface ErrorLayerPayload extends LayerPayload {
|
|
125
116
|
error: Error;
|
|
126
117
|
}
|
|
127
|
-
export interface UpdateLayerInfoPayload {
|
|
128
|
-
origin: string;
|
|
129
|
-
mapDimensions?: UpdateAllMapDimensionsPayload;
|
|
130
|
-
layerStyle?: SetLayerStylePayload;
|
|
131
|
-
layerDimensions?: SetLayerDimensionsPayload;
|
|
132
|
-
}
|
|
133
118
|
export interface UpdateLayerInfo extends Action {
|
|
134
119
|
type: `layerReducer/onUpdateLayerInformation`;
|
|
135
120
|
payload: UpdateLayerInfoPayload;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SetMapDimensionPayload } from '@opengeoweb/webmap-react';
|
|
2
|
+
import type { SetMapPresetPayload } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* These actions causes circular dependency if they are defined in the reducer.ts file.
|
|
4
5
|
* Therefor they are instead added to this file
|
|
@@ -32,5 +32,5 @@ export { mapActions, reducer as webmapReducer } from './reducer';
|
|
|
32
32
|
export * as mapSelectors from './selectors';
|
|
33
33
|
export * as mapEnums from './enums';
|
|
34
34
|
export * as mapConstants from './constants';
|
|
35
|
-
export
|
|
35
|
+
export { defaultLayers } from '@opengeoweb/webmap-react';
|
|
36
36
|
export * as filterLayers from './filterLayers';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import
|
|
2
|
+
import { MapPinLocationPayload, SetBboxPayload, UpdateAllMapDimensionsPayload } from '@opengeoweb/webmap-react';
|
|
3
|
+
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize } from './types';
|
|
3
4
|
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload, SetTimeSliderUnfilteredSelectedTimePayload } from '../types';
|
|
4
5
|
/**
|
|
5
6
|
* Checks if the layer id is already taken in one of the maps.
|
|
@@ -53,7 +54,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
53
54
|
}, "mapReducer">;
|
|
54
55
|
export declare const mapActions: {
|
|
55
56
|
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
|
|
56
|
-
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
57
|
+
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@opengeoweb/webmap-react").SetMapDimensionPayload, string>;
|
|
57
58
|
registerMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
58
59
|
mapId: string;
|
|
59
60
|
}, "mapReducer/registerMap">;
|
|
@@ -565,7 +565,7 @@ export declare const getAllUniqueDimensions: ((state: CoreAppStore) => string[])
|
|
|
565
565
|
* @param {string} mapId mapId: string - Id of the map
|
|
566
566
|
* @returns {object} returnType: latitude and longitude of pin
|
|
567
567
|
*/
|
|
568
|
-
export declare const getPinLocation: ((state: CoreAppStore | undefined, mapId: string) => import("
|
|
568
|
+
export declare const getPinLocation: ((state: CoreAppStore | undefined, mapId: string) => import("dist/libs/webmap-react/src").MapLocation | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => import("dist/libs/webmap-react/src").MapLocation | undefined, {
|
|
569
569
|
clearCache: () => void;
|
|
570
570
|
}> & {
|
|
571
571
|
clearCache: () => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
+
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
2
3
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
3
4
|
import { MapActionOrigin } from './enums';
|
|
4
5
|
export interface Dimension {
|
|
@@ -51,10 +52,6 @@ export interface WebMapState {
|
|
|
51
52
|
byId: Record<string, WebMap>;
|
|
52
53
|
allIds: string[];
|
|
53
54
|
}
|
|
54
|
-
export interface MapLocation {
|
|
55
|
-
lat: number;
|
|
56
|
-
lon: number;
|
|
57
|
-
}
|
|
58
55
|
export interface Bbox {
|
|
59
56
|
left: number;
|
|
60
57
|
right: number;
|
|
@@ -111,21 +108,6 @@ export interface MoveLayerPayload {
|
|
|
111
108
|
newIndex: number;
|
|
112
109
|
origin: string;
|
|
113
110
|
}
|
|
114
|
-
export interface SetBboxPayload {
|
|
115
|
-
mapId: string;
|
|
116
|
-
bbox: Bbox;
|
|
117
|
-
srs?: string;
|
|
118
|
-
}
|
|
119
|
-
export interface SetMapDimensionPayload {
|
|
120
|
-
origin: string;
|
|
121
|
-
mapId: string;
|
|
122
|
-
dimension: Dimension;
|
|
123
|
-
}
|
|
124
|
-
export interface UpdateAllMapDimensionsPayload {
|
|
125
|
-
origin: string;
|
|
126
|
-
mapId: string;
|
|
127
|
-
dimensions: Dimension[];
|
|
128
|
-
}
|
|
129
111
|
export type TimeListType = {
|
|
130
112
|
name: string;
|
|
131
113
|
value: string;
|
|
@@ -220,10 +202,6 @@ export interface ToggleZoomControlsPayload {
|
|
|
220
202
|
mapId: string;
|
|
221
203
|
shouldShowZoomControls: boolean;
|
|
222
204
|
}
|
|
223
|
-
export interface MapPinLocationPayload {
|
|
224
|
-
mapId: string;
|
|
225
|
-
mapPinLocation: MapLocation;
|
|
226
|
-
}
|
|
227
205
|
export interface DisableMapPinPayload {
|
|
228
206
|
mapId: string;
|
|
229
207
|
disableMapPin: boolean;
|
|
@@ -58,7 +58,7 @@ export declare const getDialogIsOrderedOnTop: ((state: CoreAppStore, dialogType:
|
|
|
58
58
|
}> & {
|
|
59
59
|
clearCache: () => void;
|
|
60
60
|
};
|
|
61
|
-
export declare const getDialogSource: ((state: CoreAppStore, dialogType: string) => import("
|
|
61
|
+
export declare const getDialogSource: ((state: CoreAppStore, dialogType: string) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source, {
|
|
62
62
|
clearCache: () => void;
|
|
63
63
|
}> & {
|
|
64
64
|
clearCache: () => void;
|
package/src/store/ui/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Source } from '@opengeoweb/shared';
|
|
1
2
|
import { MapActionOrigin } from '../mapStore/map/enums';
|
|
2
3
|
type LegendDialogType = string;
|
|
3
4
|
type GetFeatureInfoDialogType = string;
|
|
@@ -17,7 +18,7 @@ export declare enum DialogTypes {
|
|
|
17
18
|
AreaManager = "areaManager"
|
|
18
19
|
}
|
|
19
20
|
export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
20
|
-
export type Source
|
|
21
|
+
export type { Source };
|
|
21
22
|
export interface UIType {
|
|
22
23
|
type: DialogType;
|
|
23
24
|
activeMapId: string;
|
|
@@ -75,4 +76,3 @@ export interface UISetDialogFocusedPayload {
|
|
|
75
76
|
type: DialogType;
|
|
76
77
|
focused: boolean;
|
|
77
78
|
}
|
|
78
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LayerType } from '@opengeoweb/webmap';
|
|
2
|
-
export declare const baseLayerGrey: {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
layerType: LayerType;
|
|
7
|
-
};
|
|
8
|
-
export declare const overLayer: {
|
|
9
|
-
service: string;
|
|
10
|
-
name: string;
|
|
11
|
-
format: string;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
id: string;
|
|
14
|
-
layerType: LayerType;
|
|
15
|
-
};
|