qwc2 2025.12.18 → 2025.12.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/actions/display.js +6 -6
  2. package/actions/theme.js +4 -19
  3. package/components/AppMenu.js +1 -1
  4. package/components/AttributeForm.js +7 -7
  5. package/components/AttributeTableWidget.js +2 -2
  6. package/components/AutoEditForm.js +6 -3
  7. package/components/EditComboField.js +1 -4
  8. package/components/IdentifyViewer.js +33 -34
  9. package/components/ImportLayer.js +78 -79
  10. package/components/OverviewMapButton.js +147 -0
  11. package/components/PluginsContainer.js +2 -2
  12. package/components/ResizeableWindow.js +8 -1
  13. package/components/SearchBox.js +2 -2
  14. package/components/SideBar.js +1 -0
  15. package/components/StandardApp.js +1 -2
  16. package/components/ThemeLayersListWindow.js +10 -1
  17. package/components/{map3d/View3DSwitcher.js → ViewSwitcher.js} +74 -29
  18. package/components/map/OlMap.js +1 -1
  19. package/components/map3d/Map3D.js +50 -48
  20. package/components/map3d/MapControls3D.js +4 -1
  21. package/components/map3d/drawtool/EditTool3D.js +1 -1
  22. package/components/map3d/layers/WFSLayer3D.js +1 -1
  23. package/components/share/ShareQRCode.js +1 -1
  24. package/{plugins/map3d/style/OverviewMap3D.css → components/style/OverviewMapButton.css} +4 -4
  25. package/components/style/ViewSwitcher.css +36 -0
  26. package/components/widgets/ColorButton.js +2 -2
  27. package/components/widgets/CopyButton.js +1 -1
  28. package/components/widgets/LayerCatalogWidget.js +4 -4
  29. package/libs/openlayers.js +11 -11
  30. package/package.json +54 -55
  31. package/plugins/API.js +4 -4
  32. package/plugins/FeatureForm.js +2 -2
  33. package/plugins/FeatureSearch.js +12 -12
  34. package/plugins/GeometryDigitizer.js +12 -13
  35. package/plugins/Map.js +11 -4
  36. package/plugins/MapFilter.js +12 -12
  37. package/plugins/MapTip.js +1 -1
  38. package/plugins/ObliqueView.js +115 -51
  39. package/plugins/Print.js +79 -91
  40. package/plugins/Routing.js +1 -1
  41. package/plugins/Share.js +5 -5
  42. package/plugins/TimeManager.js +1 -2
  43. package/plugins/View3D.js +135 -123
  44. package/plugins/map/RedliningSupport.js +3 -3
  45. package/plugins/map3d/Draw3D.js +4 -4
  46. package/plugins/map3d/ExportObjects3D.js +1 -1
  47. package/plugins/map3d/HideObjects3D.js +7 -7
  48. package/plugins/map3d/Identify3D.js +1 -1
  49. package/plugins/map3d/LayerTree3D.js +1 -1
  50. package/plugins/map3d/MapExport3D.js +25 -25
  51. package/plugins/map3d/Measure3D.js +1 -1
  52. package/plugins/map3d/OverviewMap3D.js +27 -102
  53. package/plugins/map3d/TopBar3D.js +7 -7
  54. package/plugins/style/ObliqueView.css +27 -11
  55. package/reducers/display.js +2 -2
  56. package/reducers/layers.js +11 -11
  57. package/scripts/gen-plugin-docs.js +11 -4
  58. package/scripts/makeIconkit.js +2 -2
  59. package/scripts/themesConfig.js +5 -5
  60. package/scripts/updateTranslations.js +2 -2
  61. package/utils/CoordinatesUtils.js +1 -1
  62. package/utils/EditingUtils.js +6 -6
  63. package/utils/FeatureStyles.js +1 -1
  64. package/utils/LayerUtils.js +73 -74
  65. package/utils/MiscUtils.js +10 -3
  66. package/utils/PermaLinkUtils.js +68 -71
  67. package/utils/SearchProviders.js +2 -2
  68. package/utils/ServiceLayerUtils.js +12 -12
  69. package/utils/ThemeUtils.js +1 -1
  70. package/utils/VectorLayerUtils.js +3 -3
  71. package/components/map3d/style/View3DSwitcher.css +0 -19
package/plugins/Print.js CHANGED
@@ -1,5 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; 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; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; 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); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { 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); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; 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; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
2
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
3
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
3
4
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
4
5
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
5
6
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
@@ -782,8 +783,8 @@ var Print = /*#__PURE__*/function (_React$Component) {
782
783
  });
783
784
  });
784
785
  _defineProperty(_this, "translateLayoutName", function (item) {
785
- var _ref9, _ref10, _this$props$theme$tra, _this$props$theme$tra2, _this$props$theme$tra3;
786
- return (_ref9 = (_ref10 = (_this$props$theme$tra = (_this$props$theme$tra2 = _this.props.theme.translations) === null || _this$props$theme$tra2 === void 0 || (_this$props$theme$tra2 = _this$props$theme$tra2.layouts) === null || _this$props$theme$tra2 === void 0 ? void 0 : _this$props$theme$tra2[item.title]) !== null && _this$props$theme$tra !== void 0 ? _this$props$theme$tra : (_this$props$theme$tra3 = _this.props.theme.translations) === null || _this$props$theme$tra3 === void 0 || (_this$props$theme$tra3 = _this$props$theme$tra3.layouts) === null || _this$props$theme$tra3 === void 0 ? void 0 : _this$props$theme$tra3[item.name]) !== null && _ref10 !== void 0 ? _ref10 : item.title) !== null && _ref9 !== void 0 ? _ref9 : item.name;
786
+ var _ref9, _ref0, _this$props$theme$tra, _this$props$theme$tra2, _this$props$theme$tra3;
787
+ return (_ref9 = (_ref0 = (_this$props$theme$tra = (_this$props$theme$tra2 = _this.props.theme.translations) === null || _this$props$theme$tra2 === void 0 || (_this$props$theme$tra2 = _this$props$theme$tra2.layouts) === null || _this$props$theme$tra2 === void 0 ? void 0 : _this$props$theme$tra2[item.title]) !== null && _this$props$theme$tra !== void 0 ? _this$props$theme$tra : (_this$props$theme$tra3 = _this.props.theme.translations) === null || _this$props$theme$tra3 === void 0 || (_this$props$theme$tra3 = _this$props$theme$tra3.layouts) === null || _this$props$theme$tra3 === void 0 ? void 0 : _this$props$theme$tra3[item.name]) !== null && _ref0 !== void 0 ? _ref0 : item.title) !== null && _ref9 !== void 0 ? _ref9 : item.name;
787
788
  });
788
789
  _this.printForm = null;
789
790
  _this.state.grid = props.gridInitiallyEnabled;
@@ -887,24 +888,24 @@ var Print = /*#__PURE__*/function (_React$Component) {
887
888
  }, {
888
889
  key: "batchPrint",
889
890
  value: function () {
890
- var _batchPrint = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(pages, fileName) {
891
+ var _batchPrint = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(pages, fileName) {
891
892
  var _this4 = this;
892
893
  var promises, docs, files, file, fileURL, _iterator, _step, _file;
893
- return _regeneratorRuntime().wrap(function _callee$(_context) {
894
- while (1) switch (_context.prev = _context.next) {
894
+ return _regenerator().w(function (_context) {
895
+ while (1) switch (_context.n) {
895
896
  case 0:
896
897
  // Print pages on server
897
898
  promises = pages.map(function (formData) {
898
899
  return _this4.printRequest(formData);
899
900
  }); // Collect printing results
900
- _context.next = 3;
901
+ _context.n = 1;
901
902
  return Promise.all(promises);
902
- case 3:
903
- docs = _context.sent;
904
- _context.next = 6;
903
+ case 1:
904
+ docs = _context.v;
905
+ _context.n = 2;
905
906
  return this.collectFiles(docs, fileName);
906
- case 6:
907
- files = _context.sent;
907
+ case 2:
908
+ files = _context.v;
908
909
  // Download or display files
909
910
  if (this.props.inlinePrintOutput && files.length === 1) {
910
911
  file = files.pop();
@@ -927,9 +928,8 @@ var Print = /*#__PURE__*/function (_React$Component) {
927
928
  _iterator.f();
928
929
  }
929
930
  }
930
- case 8:
931
- case "end":
932
- return _context.stop();
931
+ case 3:
932
+ return _context.a(2);
933
933
  }
934
934
  }, _callee, this);
935
935
  }));
@@ -941,10 +941,10 @@ var Print = /*#__PURE__*/function (_React$Component) {
941
941
  }, {
942
942
  key: "printRequest",
943
943
  value: function () {
944
- var _printRequest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(formData) {
944
+ var _printRequest = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(formData) {
945
945
  var data, config, response, contentType;
946
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
947
- while (1) switch (_context2.prev = _context2.next) {
946
+ return _regenerator().w(function (_context2) {
947
+ while (1) switch (_context2.n) {
948
948
  case 0:
949
949
  data = Object.entries(formData).map(function (pair) {
950
950
  return pair.map(function (entry) {
@@ -957,19 +957,16 @@ var Print = /*#__PURE__*/function (_React$Component) {
957
957
  },
958
958
  responseType: 'arraybuffer'
959
959
  };
960
- _context2.next = 4;
960
+ _context2.n = 1;
961
961
  return axios.post(this.props.theme.printUrl, data, config);
962
- case 4:
963
- response = _context2.sent;
962
+ case 1:
963
+ response = _context2.v;
964
964
  contentType = response.headers['content-type'];
965
- return _context2.abrupt("return", {
965
+ return _context2.a(2, {
966
966
  name: formData.name,
967
967
  data: response.data,
968
968
  contentType: contentType
969
969
  });
970
- case 7:
971
- case "end":
972
- return _context2.stop();
973
970
  }
974
971
  }, _callee2, this);
975
972
  }));
@@ -981,45 +978,45 @@ var Print = /*#__PURE__*/function (_React$Component) {
981
978
  }, {
982
979
  key: "collectFiles",
983
980
  value: function () {
984
- var _collectFiles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(docs, fileName) {
981
+ var _collectFiles = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(docs, fileName) {
985
982
  var _this5 = this;
986
983
  var data, content, _data, _content;
987
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
988
- while (1) switch (_context3.prev = _context3.next) {
984
+ return _regenerator().w(function (_context3) {
985
+ while (1) switch (_context3.n) {
989
986
  case 0:
990
987
  if (!(docs.length > 1 && this.state.downloadMode === 'onepdf')) {
991
- _context3.next = 6;
988
+ _context3.n = 2;
992
989
  break;
993
990
  }
994
- _context3.next = 3;
991
+ _context3.n = 1;
995
992
  return this.collectOnePdf(docs);
996
- case 3:
997
- data = _context3.sent;
993
+ case 1:
994
+ data = _context3.v;
998
995
  content = new Blob([data], {
999
996
  type: 'application/pdf'
1000
997
  });
1001
- return _context3.abrupt("return", [{
998
+ return _context3.a(2, [{
1002
999
  content: content,
1003
1000
  fileName: fileName + '.pdf'
1004
1001
  }]);
1005
- case 6:
1002
+ case 2:
1006
1003
  if (!(docs.length > 1 && this.state.downloadMode === 'onezip')) {
1007
- _context3.next = 12;
1004
+ _context3.n = 4;
1008
1005
  break;
1009
1006
  }
1010
- _context3.next = 9;
1007
+ _context3.n = 3;
1011
1008
  return this.collectOneZip(docs, fileName);
1012
- case 9:
1013
- _data = _context3.sent;
1009
+ case 3:
1010
+ _data = _context3.v;
1014
1011
  _content = new Blob([_data], {
1015
1012
  type: 'application/zip'
1016
1013
  });
1017
- return _context3.abrupt("return", [{
1014
+ return _context3.a(2, [{
1018
1015
  content: _content,
1019
1016
  fileName: fileName + '.zip'
1020
1017
  }]);
1021
- case 12:
1022
- return _context3.abrupt("return", docs.map(function (doc) {
1018
+ case 4:
1019
+ return _context3.a(2, docs.map(function (doc) {
1023
1020
  var content = new Blob([doc.data], {
1024
1021
  type: doc.contentType
1025
1022
  });
@@ -1030,9 +1027,6 @@ var Print = /*#__PURE__*/function (_React$Component) {
1030
1027
  fileName: fileName + appendix + '.' + ext
1031
1028
  };
1032
1029
  }));
1033
- case 13:
1034
- case "end":
1035
- return _context3.stop();
1036
1030
  }
1037
1031
  }, _callee3, this);
1038
1032
  }));
@@ -1044,37 +1038,37 @@ var Print = /*#__PURE__*/function (_React$Component) {
1044
1038
  }, {
1045
1039
  key: "collectOnePdf",
1046
1040
  value: function () {
1047
- var _collectOnePdf = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(docs) {
1048
- var _yield$import, PDFDocument, mergedDoc, _iterator2, _step2, doc, pdfBytes, copiedPages, _iterator3, _step3, page;
1049
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1050
- while (1) switch (_context4.prev = _context4.next) {
1041
+ var _collectOnePdf = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(docs) {
1042
+ var _yield$import, PDFDocument, mergedDoc, _iterator2, _step2, doc, pdfBytes, copiedPages, _iterator3, _step3, page, _t;
1043
+ return _regenerator().w(function (_context4) {
1044
+ while (1) switch (_context4.p = _context4.n) {
1051
1045
  case 0:
1052
- _context4.next = 2;
1046
+ _context4.n = 1;
1053
1047
  return import('pdf-lib');
1054
- case 2:
1055
- _yield$import = _context4.sent;
1048
+ case 1:
1049
+ _yield$import = _context4.v;
1056
1050
  PDFDocument = _yield$import.PDFDocument;
1057
- _context4.next = 6;
1051
+ _context4.n = 2;
1058
1052
  return PDFDocument.create();
1059
- case 6:
1060
- mergedDoc = _context4.sent;
1053
+ case 2:
1054
+ mergedDoc = _context4.v;
1061
1055
  _iterator2 = _createForOfIteratorHelper(docs);
1062
- _context4.prev = 8;
1056
+ _context4.p = 3;
1063
1057
  _iterator2.s();
1064
- case 10:
1058
+ case 4:
1065
1059
  if ((_step2 = _iterator2.n()).done) {
1066
- _context4.next = 22;
1060
+ _context4.n = 8;
1067
1061
  break;
1068
1062
  }
1069
1063
  doc = _step2.value;
1070
- _context4.next = 14;
1064
+ _context4.n = 5;
1071
1065
  return PDFDocument.load(doc.data);
1072
- case 14:
1073
- pdfBytes = _context4.sent;
1074
- _context4.next = 17;
1066
+ case 5:
1067
+ pdfBytes = _context4.v;
1068
+ _context4.n = 6;
1075
1069
  return mergedDoc.copyPages(pdfBytes, pdfBytes.getPageIndices());
1076
- case 17:
1077
- copiedPages = _context4.sent;
1070
+ case 6:
1071
+ copiedPages = _context4.v;
1078
1072
  _iterator3 = _createForOfIteratorHelper(copiedPages);
1079
1073
  try {
1080
1074
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -1086,30 +1080,27 @@ var Print = /*#__PURE__*/function (_React$Component) {
1086
1080
  } finally {
1087
1081
  _iterator3.f();
1088
1082
  }
1089
- case 20:
1090
- _context4.next = 10;
1083
+ case 7:
1084
+ _context4.n = 4;
1091
1085
  break;
1092
- case 22:
1093
- _context4.next = 27;
1086
+ case 8:
1087
+ _context4.n = 10;
1094
1088
  break;
1095
- case 24:
1096
- _context4.prev = 24;
1097
- _context4.t0 = _context4["catch"](8);
1098
- _iterator2.e(_context4.t0);
1099
- case 27:
1100
- _context4.prev = 27;
1089
+ case 9:
1090
+ _context4.p = 9;
1091
+ _t = _context4.v;
1092
+ _iterator2.e(_t);
1093
+ case 10:
1094
+ _context4.p = 10;
1101
1095
  _iterator2.f();
1102
- return _context4.finish(27);
1103
- case 30:
1104
- _context4.next = 32;
1096
+ return _context4.f(10);
1097
+ case 11:
1098
+ _context4.n = 12;
1105
1099
  return mergedDoc.save();
1106
- case 32:
1107
- return _context4.abrupt("return", _context4.sent);
1108
- case 33:
1109
- case "end":
1110
- return _context4.stop();
1100
+ case 12:
1101
+ return _context4.a(2, _context4.v);
1111
1102
  }
1112
- }, _callee4, null, [[8, 24, 27, 30]]);
1103
+ }, _callee4, null, [[3, 9, 10, 11]]);
1113
1104
  }));
1114
1105
  function collectOnePdf(_x6) {
1115
1106
  return _collectOnePdf.apply(this, arguments);
@@ -1119,10 +1110,10 @@ var Print = /*#__PURE__*/function (_React$Component) {
1119
1110
  }, {
1120
1111
  key: "collectOneZip",
1121
1112
  value: function () {
1122
- var _collectOneZip = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(docs, fileName) {
1113
+ var _collectOneZip = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(docs, fileName) {
1123
1114
  var mergedDoc, _iterator4, _step4, doc, file, ext, appendix;
1124
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
1125
- while (1) switch (_context5.prev = _context5.next) {
1115
+ return _regenerator().w(function (_context5) {
1116
+ while (1) switch (_context5.n) {
1126
1117
  case 0:
1127
1118
  mergedDoc = new JSZip();
1128
1119
  _iterator4 = _createForOfIteratorHelper(docs);
@@ -1141,15 +1132,12 @@ var Print = /*#__PURE__*/function (_React$Component) {
1141
1132
  } finally {
1142
1133
  _iterator4.f();
1143
1134
  }
1144
- _context5.next = 5;
1135
+ _context5.n = 1;
1145
1136
  return mergedDoc.generateAsync({
1146
1137
  type: 'arraybuffer'
1147
1138
  });
1148
- case 5:
1149
- return _context5.abrupt("return", _context5.sent);
1150
- case 6:
1151
- case "end":
1152
- return _context5.stop();
1139
+ case 1:
1140
+ return _context5.a(2, _context5.v);
1153
1141
  }
1154
1142
  }, _callee5, this);
1155
1143
  }));
@@ -607,7 +607,7 @@ var Routing = /*#__PURE__*/function (_React$Component) {
607
607
  }));
608
608
  });
609
609
  _this.recomputeIfNeeded();
610
- } catch (e) {
610
+ } catch (_unused) {
611
611
  // eslint-disable-next-line
612
612
  alert(LocaleUtils.tr("routing.importerror"));
613
613
  }
package/plugins/Share.js CHANGED
@@ -25,12 +25,12 @@ import { connect } from 'react-redux';
25
25
  import isEmpty from 'lodash.isempty';
26
26
  import PropTypes from 'prop-types';
27
27
  import url from 'url';
28
- import { View3DMode } from '../actions/display';
28
+ import { ViewMode } from '../actions/display';
29
29
  import { addMarker, removeMarker } from '../actions/layers';
30
- import SideBar from '../components/SideBar';
31
30
  import ShareLink from '../components/share/ShareLink';
32
31
  import ShareQRCode from '../components/share/ShareQRCode';
33
32
  import ShareSocials from '../components/share/ShareSocials';
33
+ import SideBar from '../components/SideBar';
34
34
  import ToggleSwitch from '../components/widgets/ToggleSwitch';
35
35
  import ConfigUtils from '../utils/ConfigUtils';
36
36
  import CoordinatesUtils from '../utils/CoordinatesUtils';
@@ -84,7 +84,7 @@ var Share = /*#__PURE__*/function (_React$Component) {
84
84
  shareUrl: shareUrl
85
85
  }) : null;
86
86
  var username = ConfigUtils.getConfigProp("username");
87
- return /*#__PURE__*/React.createElement("div", null, _this.props.view3dMode !== View3DMode.FULLSCREEN && ConfigUtils.havePlugin("StartupMarker") ? /*#__PURE__*/React.createElement("div", {
87
+ return /*#__PURE__*/React.createElement("div", null, _this.props.viewMode !== ViewMode._3DFullscreen && ConfigUtils.havePlugin("StartupMarker") ? /*#__PURE__*/React.createElement("div", {
88
88
  className: "share-option-pin"
89
89
  }, /*#__PURE__*/React.createElement("span", null, LocaleUtils.tr("share.showpin")), /*#__PURE__*/React.createElement(ToggleSwitch, {
90
90
  active: _this.state.pin,
@@ -186,7 +186,7 @@ _defineProperty(Share, "propTypes", {
186
186
  showSocials: PropTypes.oneOfType([PropTypes.bool, PropTypes.arrayOf(PropTypes.string)]),
187
187
  /** The side of the application on which to display the sidebar. */
188
188
  side: PropTypes.string,
189
- view3dMode: PropTypes.number
189
+ viewMode: PropTypes.number
190
190
  });
191
191
  _defineProperty(Share, "defaultProps", {
192
192
  showSocials: true,
@@ -198,7 +198,7 @@ export default connect(function (state) {
198
198
  return {
199
199
  currentTask: state.task.id,
200
200
  map: state.map,
201
- view3dMode: state.display.view3dMode
201
+ viewMode: state.display.viewMode
202
202
  };
203
203
  }, {
204
204
  addMarker: addMarker,
@@ -54,10 +54,10 @@ import ButtonBar from '../components/widgets/ButtonBar';
54
54
  import NumberInput from '../components/widgets/NumberInput';
55
55
  import ToggleSwitch from '../components/widgets/ToggleSwitch';
56
56
  import IdentifyUtils from '../utils/IdentifyUtils';
57
+ import markerIcon from '../utils/img/marker-icon.png';
57
58
  import LayerUtils from '../utils/LayerUtils';
58
59
  import LocaleUtils from '../utils/LocaleUtils';
59
60
  import VectorLayerUtils from '../utils/VectorLayerUtils';
60
- import markerIcon from '../utils/img/marker-icon.png';
61
61
  import './style/TimeManager.css';
62
62
  dayjs.extend(utc);
63
63
  var DateUnitLabels = {
@@ -74,7 +74,6 @@ var DateUnitLabels = {
74
74
  var qgisDateFormat = new Format({
75
75
  // $dateExpr $hour $minute $second $millisecond $zone $offset
76
76
  matcher: /^(.*?)[\s,-]*([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d|60)(?:[.,](\d{9}|\d{6}|\d{1,3}))?)?[\s,-]*\(?(UTC)?[\s,-]*([+-]0\d?:?(?:[0-5]\d)?)?[\s,-]*\)?$/i,
77
- // eslint-disable-next-line
78
77
  handler: function handler(_ref) {
79
78
  var _ref2 = _slicedToArray(_ref, 8),
80
79
  match = _ref2[0],