@opengeoweb/layer-select 12.10.0 → 12.11.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 +234 -289
- package/package.json +11 -8
- package/src/lib/components/KeywordFilterResults/KeywordFilterResults.stories.d.ts +1 -1
- package/src/lib/components/LayerSelect/LayerSelect.stories.d.ts +1 -1
- package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +1 -1
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +1 -1
- package/src/lib/components/ServicePopup/ServicePopup.stories.d.ts +1 -1
- package/src/lib/store/selectors.d.ts +46 -46
package/index.esm.js
CHANGED
|
@@ -695,6 +695,9 @@ var types = /*#__PURE__*/Object.freeze({
|
|
|
695
695
|
__proto__: null
|
|
696
696
|
});
|
|
697
697
|
|
|
698
|
+
function _OverloadYield(e, d) {
|
|
699
|
+
this.v = e, this.k = d;
|
|
700
|
+
}
|
|
698
701
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
699
702
|
try {
|
|
700
703
|
var i = n[a](c),
|
|
@@ -723,313 +726,255 @@ function _asyncToGenerator(n) {
|
|
|
723
726
|
function _objectDestructuringEmpty(t) {
|
|
724
727
|
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
725
728
|
}
|
|
726
|
-
function
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
729
|
+
function _regenerator() {
|
|
730
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
731
|
+
var e,
|
|
732
|
+
t,
|
|
733
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
734
|
+
n = r.iterator || "@@iterator",
|
|
735
|
+
o = r.toStringTag || "@@toStringTag";
|
|
736
|
+
function i(r, n, o, i) {
|
|
737
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
738
|
+
u = Object.create(c.prototype);
|
|
739
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
740
|
+
var i,
|
|
741
|
+
c,
|
|
742
|
+
u,
|
|
743
|
+
f = 0,
|
|
744
|
+
p = o || [],
|
|
745
|
+
y = false,
|
|
746
|
+
G = {
|
|
747
|
+
p: 0,
|
|
748
|
+
n: 0,
|
|
749
|
+
v: e,
|
|
750
|
+
a: d,
|
|
751
|
+
f: d.bind(e, 4),
|
|
752
|
+
d: function (t, r) {
|
|
753
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
function d(r, n) {
|
|
757
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
758
|
+
var o,
|
|
759
|
+
i = p[t],
|
|
760
|
+
d = G.p,
|
|
761
|
+
l = i[2];
|
|
762
|
+
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));
|
|
763
|
+
}
|
|
764
|
+
if (o || r > 1) return a;
|
|
765
|
+
throw y = true, n;
|
|
766
|
+
}
|
|
767
|
+
return function (o, p, l) {
|
|
768
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
769
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
770
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
771
|
+
try {
|
|
772
|
+
if (f = 2, i) {
|
|
773
|
+
if (c || (o = "next"), t = i[o]) {
|
|
774
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
775
|
+
if (!t.done) return t;
|
|
776
|
+
u = t.value, c < 2 && (c = 0);
|
|
777
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
778
|
+
i = e;
|
|
779
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
780
|
+
} catch (t) {
|
|
781
|
+
i = e, c = 1, u = t;
|
|
782
|
+
} finally {
|
|
783
|
+
f = 1;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
return {
|
|
787
|
+
value: t,
|
|
788
|
+
done: y
|
|
789
|
+
};
|
|
774
790
|
};
|
|
775
|
-
}
|
|
791
|
+
}(r, o, i), true), u;
|
|
776
792
|
}
|
|
777
|
-
|
|
778
|
-
var h = "suspendedStart",
|
|
779
|
-
l = "suspendedYield",
|
|
780
|
-
f = "executing",
|
|
781
|
-
s = "completed",
|
|
782
|
-
y = {};
|
|
793
|
+
var a = {};
|
|
783
794
|
function Generator() {}
|
|
784
795
|
function GeneratorFunction() {}
|
|
785
796
|
function GeneratorFunctionPrototype() {}
|
|
786
|
-
|
|
787
|
-
|
|
797
|
+
t = Object.getPrototypeOf;
|
|
798
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
799
|
+
return this;
|
|
800
|
+
}), t),
|
|
801
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
802
|
+
function f(e) {
|
|
803
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
804
|
+
}
|
|
805
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
788
806
|
return this;
|
|
807
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
808
|
+
return "[object Generator]";
|
|
809
|
+
}), (_regenerator = function () {
|
|
810
|
+
return {
|
|
811
|
+
w: i,
|
|
812
|
+
m: f
|
|
813
|
+
};
|
|
814
|
+
})();
|
|
815
|
+
}
|
|
816
|
+
function _regeneratorAsync(n, e, r, t, o) {
|
|
817
|
+
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
818
|
+
return a.next().then(function (n) {
|
|
819
|
+
return n.done ? n.value : a.next();
|
|
789
820
|
});
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
821
|
+
}
|
|
822
|
+
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
823
|
+
return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
|
|
824
|
+
}
|
|
825
|
+
function _regeneratorAsyncIterator(t, e) {
|
|
826
|
+
function n(r, o, i, f) {
|
|
827
|
+
try {
|
|
828
|
+
var c = t[r](o),
|
|
829
|
+
u = c.value;
|
|
830
|
+
return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
|
|
831
|
+
n("next", t, i, f);
|
|
832
|
+
}, function (t) {
|
|
833
|
+
n("throw", t, i, f);
|
|
834
|
+
}) : e.resolve(u).then(function (t) {
|
|
835
|
+
c.value = t, i(c);
|
|
836
|
+
}, function (t) {
|
|
837
|
+
return n("throw", t, i, f);
|
|
798
838
|
});
|
|
799
|
-
})
|
|
839
|
+
} catch (t) {
|
|
840
|
+
f(t);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
var r;
|
|
844
|
+
this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
|
|
845
|
+
return this;
|
|
846
|
+
})), _regeneratorDefine(this, "_invoke", function (t, o, i) {
|
|
847
|
+
function f() {
|
|
848
|
+
return new e(function (e, r) {
|
|
849
|
+
n(t, i, e, r);
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
return r = r ? r.then(f, f) : f();
|
|
853
|
+
}, true);
|
|
854
|
+
}
|
|
855
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
856
|
+
var i = Object.defineProperty;
|
|
857
|
+
try {
|
|
858
|
+
i({}, "", {});
|
|
859
|
+
} catch (e) {
|
|
860
|
+
i = 0;
|
|
800
861
|
}
|
|
801
|
-
function
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
}) : e.resolve(h).then(function (t) {
|
|
812
|
-
u.value = t, i(u);
|
|
813
|
-
}, function (t) {
|
|
814
|
-
return invoke("throw", t, i, a);
|
|
862
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
863
|
+
if (r) i ? i(e, r, {
|
|
864
|
+
value: n,
|
|
865
|
+
enumerable: !t,
|
|
866
|
+
configurable: !t,
|
|
867
|
+
writable: !t
|
|
868
|
+
}) : e[r] = n;else {
|
|
869
|
+
function o(r, n) {
|
|
870
|
+
_regeneratorDefine(e, r, function (e) {
|
|
871
|
+
return this._invoke(r, n, e);
|
|
815
872
|
});
|
|
816
873
|
}
|
|
817
|
-
|
|
874
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
818
875
|
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
var
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
876
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
877
|
+
}
|
|
878
|
+
function _regeneratorKeys(e) {
|
|
879
|
+
var n = Object(e),
|
|
880
|
+
r = [];
|
|
881
|
+
for (var t in n) r.unshift(t);
|
|
882
|
+
return function e() {
|
|
883
|
+
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
|
|
884
|
+
return e.done = true, e;
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
function _regeneratorValues(e) {
|
|
888
|
+
if (null != e) {
|
|
889
|
+
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
890
|
+
r = 0;
|
|
891
|
+
if (t) return t.call(e);
|
|
892
|
+
if ("function" == typeof e.next) return e;
|
|
893
|
+
if (!isNaN(e.length)) return {
|
|
894
|
+
next: function () {
|
|
895
|
+
return e && r >= e.length && (e = void 0), {
|
|
896
|
+
value: e && e[r++],
|
|
897
|
+
done: !e
|
|
840
898
|
};
|
|
841
899
|
}
|
|
842
|
-
for (n.method = i, n.arg = a;;) {
|
|
843
|
-
var c = n.delegate;
|
|
844
|
-
if (c) {
|
|
845
|
-
var u = maybeInvokeDelegate(c, n);
|
|
846
|
-
if (u) {
|
|
847
|
-
if (u === y) continue;
|
|
848
|
-
return u;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
852
|
-
if (o === h) throw o = s, n.arg;
|
|
853
|
-
n.dispatchException(n.arg);
|
|
854
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
855
|
-
o = f;
|
|
856
|
-
var p = tryCatch(e, r, n);
|
|
857
|
-
if ("normal" === p.type) {
|
|
858
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
859
|
-
return {
|
|
860
|
-
value: p.arg,
|
|
861
|
-
done: n.done
|
|
862
|
-
};
|
|
863
|
-
}
|
|
864
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
865
|
-
}
|
|
866
|
-
};
|
|
867
|
-
}
|
|
868
|
-
function maybeInvokeDelegate(e, r) {
|
|
869
|
-
var n = r.method,
|
|
870
|
-
o = e.iterator[n];
|
|
871
|
-
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;
|
|
872
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
873
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
874
|
-
var a = i.arg;
|
|
875
|
-
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);
|
|
876
|
-
}
|
|
877
|
-
function pushTryEntry(t) {
|
|
878
|
-
var e = {
|
|
879
|
-
tryLoc: t[0]
|
|
880
900
|
};
|
|
881
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
882
|
-
}
|
|
883
|
-
function resetTryEntry(t) {
|
|
884
|
-
var e = t.completion || {};
|
|
885
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
886
901
|
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
902
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
903
|
+
}
|
|
904
|
+
function _regeneratorRuntime() {
|
|
905
|
+
|
|
906
|
+
var r = _regenerator(),
|
|
907
|
+
e = r.m(_regeneratorRuntime),
|
|
908
|
+
t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
909
|
+
function n(r) {
|
|
910
|
+
var e = "function" == typeof r && r.constructor;
|
|
911
|
+
return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
|
|
891
912
|
}
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
913
|
+
var o = {
|
|
914
|
+
throw: 1,
|
|
915
|
+
return: 2,
|
|
916
|
+
break: 3,
|
|
917
|
+
continue: 3
|
|
918
|
+
};
|
|
919
|
+
function a(r) {
|
|
920
|
+
var e, t;
|
|
921
|
+
return function (n) {
|
|
922
|
+
e || (e = {
|
|
923
|
+
stop: function () {
|
|
924
|
+
return t(n.a, 2);
|
|
925
|
+
},
|
|
926
|
+
catch: function () {
|
|
927
|
+
return n.v;
|
|
928
|
+
},
|
|
929
|
+
abrupt: function (r, e) {
|
|
930
|
+
return t(n.a, o[r], e);
|
|
931
|
+
},
|
|
932
|
+
delegateYield: function (r, o, a) {
|
|
933
|
+
return e.resultName = o, t(n.d, _regeneratorValues(r), a);
|
|
934
|
+
},
|
|
935
|
+
finish: function (r) {
|
|
936
|
+
return t(n.f, r);
|
|
937
|
+
}
|
|
938
|
+
}, t = function (r, t, o) {
|
|
939
|
+
n.p = e.prev, n.n = e.next;
|
|
940
|
+
try {
|
|
941
|
+
return r(t, o);
|
|
942
|
+
} finally {
|
|
943
|
+
e.next = n.n;
|
|
944
|
+
}
|
|
945
|
+
}), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
|
|
946
|
+
try {
|
|
947
|
+
return r.call(this, e);
|
|
948
|
+
} finally {
|
|
949
|
+
n.p = e.prev, n.n = e.next;
|
|
904
950
|
}
|
|
905
|
-
}
|
|
906
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
951
|
+
};
|
|
907
952
|
}
|
|
908
|
-
return
|
|
909
|
-
value: GeneratorFunctionPrototype,
|
|
910
|
-
configurable: true
|
|
911
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
912
|
-
value: GeneratorFunction,
|
|
913
|
-
configurable: true
|
|
914
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
915
|
-
var e = "function" == typeof t && t.constructor;
|
|
916
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
917
|
-
}, e.mark = function (t) {
|
|
918
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
919
|
-
}, e.awrap = function (t) {
|
|
953
|
+
return (_regeneratorRuntime = function () {
|
|
920
954
|
return {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
}), e.keys = function (t) {
|
|
936
|
-
var e = Object(t),
|
|
937
|
-
r = [];
|
|
938
|
-
for (var n in e) r.push(n);
|
|
939
|
-
return r.reverse(), function next() {
|
|
940
|
-
for (; r.length;) {
|
|
941
|
-
var t = r.pop();
|
|
942
|
-
if (t in e) return next.value = t, next.done = false, next;
|
|
943
|
-
}
|
|
944
|
-
return next.done = true, next;
|
|
955
|
+
wrap: function (e, t, n, o) {
|
|
956
|
+
return r.w(a(e), t, n, o && o.reverse());
|
|
957
|
+
},
|
|
958
|
+
isGeneratorFunction: n,
|
|
959
|
+
mark: r.m,
|
|
960
|
+
awrap: function (r, e) {
|
|
961
|
+
return new _OverloadYield(r, e);
|
|
962
|
+
},
|
|
963
|
+
AsyncIterator: _regeneratorAsyncIterator,
|
|
964
|
+
async: function (r, e, t, o, u) {
|
|
965
|
+
return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
|
|
966
|
+
},
|
|
967
|
+
keys: _regeneratorKeys,
|
|
968
|
+
values: _regeneratorValues
|
|
945
969
|
};
|
|
946
|
-
}
|
|
947
|
-
constructor: Context,
|
|
948
|
-
reset: function (e) {
|
|
949
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, 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);
|
|
950
|
-
},
|
|
951
|
-
stop: function () {
|
|
952
|
-
this.done = true;
|
|
953
|
-
var t = this.tryEntries[0].completion;
|
|
954
|
-
if ("throw" === t.type) throw t.arg;
|
|
955
|
-
return this.rval;
|
|
956
|
-
},
|
|
957
|
-
dispatchException: function (e) {
|
|
958
|
-
if (this.done) throw e;
|
|
959
|
-
var r = this;
|
|
960
|
-
function handle(n, o) {
|
|
961
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
962
|
-
}
|
|
963
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
964
|
-
var i = this.tryEntries[o],
|
|
965
|
-
a = i.completion;
|
|
966
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
967
|
-
if (i.tryLoc <= this.prev) {
|
|
968
|
-
var c = n.call(i, "catchLoc"),
|
|
969
|
-
u = n.call(i, "finallyLoc");
|
|
970
|
-
if (c && u) {
|
|
971
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
|
972
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
973
|
-
} else if (c) {
|
|
974
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
|
975
|
-
} else {
|
|
976
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
977
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
},
|
|
982
|
-
abrupt: function (t, e) {
|
|
983
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
984
|
-
var o = this.tryEntries[r];
|
|
985
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
986
|
-
var i = o;
|
|
987
|
-
break;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
991
|
-
var a = i ? i.completion : {};
|
|
992
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
993
|
-
},
|
|
994
|
-
complete: function (t, e) {
|
|
995
|
-
if ("throw" === t.type) throw t.arg;
|
|
996
|
-
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;
|
|
997
|
-
},
|
|
998
|
-
finish: function (t) {
|
|
999
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
1000
|
-
var r = this.tryEntries[e];
|
|
1001
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
1002
|
-
}
|
|
1003
|
-
},
|
|
1004
|
-
catch: function (t) {
|
|
1005
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
1006
|
-
var r = this.tryEntries[e];
|
|
1007
|
-
if (r.tryLoc === t) {
|
|
1008
|
-
var n = r.completion;
|
|
1009
|
-
if ("throw" === n.type) {
|
|
1010
|
-
var o = n.arg;
|
|
1011
|
-
resetTryEntry(r);
|
|
1012
|
-
}
|
|
1013
|
-
return o;
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
throw Error("illegal catch attempt");
|
|
1017
|
-
},
|
|
1018
|
-
delegateYield: function (e, r, n) {
|
|
1019
|
-
return this.delegate = {
|
|
1020
|
-
iterator: values(e),
|
|
1021
|
-
resultName: r,
|
|
1022
|
-
nextLoc: n
|
|
1023
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
1024
|
-
}
|
|
1025
|
-
}, e;
|
|
970
|
+
})();
|
|
1026
971
|
}
|
|
1027
972
|
|
|
1028
973
|
var layerSelectListener = createListenerMiddleware();
|
|
1029
974
|
layerSelectListener.startListening({
|
|
1030
975
|
actionCreator: serviceActions.mapStoreRemoveService,
|
|
1031
976
|
effect: function () {
|
|
1032
|
-
var _effect = _asyncToGenerator(
|
|
977
|
+
var _effect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(action) {
|
|
1033
978
|
var serviceUrl, localStorageServices;
|
|
1034
979
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1035
980
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -1053,7 +998,7 @@ layerSelectListener.startListening({
|
|
|
1053
998
|
layerSelectListener.startListening({
|
|
1054
999
|
actionCreator: layerSelectActions.layerSelectRemoveService,
|
|
1055
1000
|
effect: function () {
|
|
1056
|
-
var _effect2 = _asyncToGenerator(
|
|
1001
|
+
var _effect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(action, listenerApi) {
|
|
1057
1002
|
var removedService, serviceId, serviceUrl, services, servicesEnabled;
|
|
1058
1003
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1059
1004
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1091,7 +1036,7 @@ layerSelectListener.startListening({
|
|
|
1091
1036
|
layerSelectListener.startListening({
|
|
1092
1037
|
actionCreator: serviceActions.serviceSetLayers,
|
|
1093
1038
|
effect: function () {
|
|
1094
|
-
var _effect3 = _asyncToGenerator(
|
|
1039
|
+
var _effect3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(action) {
|
|
1095
1040
|
var _action$payload, scope, name, serviceUrl, _abstract, _Object$assign, localStorageServices;
|
|
1096
1041
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1097
1042
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -1120,7 +1065,7 @@ layerSelectListener.startListening({
|
|
|
1120
1065
|
layerSelectListener.startListening({
|
|
1121
1066
|
matcher: isAnyOf(uiActions.setToggleOpenDialog, uiActions.setActiveMapIdForDialog),
|
|
1122
1067
|
effect: function () {
|
|
1123
|
-
var _effect4 = _asyncToGenerator(
|
|
1068
|
+
var _effect4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(action, listenerApi) {
|
|
1124
1069
|
var payload;
|
|
1125
1070
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
1126
1071
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -1144,7 +1089,7 @@ layerSelectListener.startListening({
|
|
|
1144
1089
|
layerSelectListener.startListening({
|
|
1145
1090
|
matcher: isAnyOf(layerSelectActions.disableActiveService, layerSelectActions.onlyThisServiceEnabled, layerSelectActions.toggleFilter, layerSelectActions.setSearchFilter),
|
|
1146
1091
|
effect: function () {
|
|
1147
|
-
var _effect5 = _asyncToGenerator(
|
|
1092
|
+
var _effect5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(action, listenerApi) {
|
|
1148
1093
|
var filteredLayers, dialogInfo, layerWithData;
|
|
1149
1094
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
1150
1095
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -2423,7 +2368,7 @@ var validateServiceUrl = function validateServiceUrl(t, value, services) {
|
|
|
2423
2368
|
return true;
|
|
2424
2369
|
};
|
|
2425
2370
|
var loadWMSService = /*#__PURE__*/function () {
|
|
2426
|
-
var _ref = _asyncToGenerator(
|
|
2371
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl, forceReload) {
|
|
2427
2372
|
var layers, service;
|
|
2428
2373
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2429
2374
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2530,8 +2475,8 @@ var ServiceOptionsDialogConnect = function ServiceOptionsDialogConnect(_ref) {
|
|
|
2530
2475
|
serviceUrl: serviceUrl
|
|
2531
2476
|
}));
|
|
2532
2477
|
}, [dispatch, showSnackbar]);
|
|
2533
|
-
var layerSelectReloadService = React.useCallback(
|
|
2534
|
-
var _ref2 = _asyncToGenerator(
|
|
2478
|
+
var layerSelectReloadService = React.useCallback(/*#__PURE__*/function () {
|
|
2479
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl) {
|
|
2535
2480
|
var layersForService, service, serviceTitle;
|
|
2536
2481
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2537
2482
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2843,7 +2788,7 @@ var ServicePopupUnwrapped = function ServicePopupUnwrapped(_ref2) {
|
|
|
2843
2788
|
shouldForceReload = _React$useState2[0],
|
|
2844
2789
|
setShouldForceReload = _React$useState2[1];
|
|
2845
2790
|
var fetchServiceData = /*#__PURE__*/function () {
|
|
2846
|
-
var _ref3 = _asyncToGenerator(
|
|
2791
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(newServiceUrl) {
|
|
2847
2792
|
var service;
|
|
2848
2793
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2849
2794
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2880,7 +2825,7 @@ var ServicePopupUnwrapped = function ServicePopupUnwrapped(_ref2) {
|
|
|
2880
2825
|
};
|
|
2881
2826
|
}();
|
|
2882
2827
|
var addNewService = /*#__PURE__*/function () {
|
|
2883
|
-
var _ref4 = _asyncToGenerator(
|
|
2828
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(formValues) {
|
|
2884
2829
|
var service;
|
|
2885
2830
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2886
2831
|
while (1) switch (_context2.prev = _context2.next) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/layer-select",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.11.0",
|
|
4
4
|
"description": "GeoWeb layer select library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
12
|
-
"@opengeoweb/store": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.11.0",
|
|
12
|
+
"@opengeoweb/store": "12.11.0",
|
|
13
13
|
"react-redux": "^9.2.0",
|
|
14
|
-
"@opengeoweb/theme": "12.
|
|
15
|
-
"@opengeoweb/webmap-react": "12.
|
|
16
|
-
"@opengeoweb/webmap": "12.
|
|
14
|
+
"@opengeoweb/theme": "12.11.0",
|
|
15
|
+
"@opengeoweb/webmap-react": "12.11.0",
|
|
16
|
+
"@opengeoweb/webmap": "12.11.0",
|
|
17
17
|
"react-window": "^1.8.10",
|
|
18
|
-
"@opengeoweb/snackbar": "12.
|
|
19
|
-
"@opengeoweb/form-fields": "12.
|
|
18
|
+
"@opengeoweb/snackbar": "12.11.0",
|
|
19
|
+
"@opengeoweb/form-fields": "12.11.0",
|
|
20
20
|
"react-hook-form": "^7.50.1",
|
|
21
21
|
"@reduxjs/toolkit": "^2.6.1",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
"@emotion/react": "*",
|
|
30
30
|
"@emotion/styled": "*"
|
|
31
31
|
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"eslint-plugin-storybook": "9.0.17"
|
|
34
|
+
},
|
|
32
35
|
"module": "./index.esm.js",
|
|
33
36
|
"type": "module",
|
|
34
37
|
"main": "./index.esm.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { layerTypes } from '@opengeoweb/store';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { ServiceOptionsDialog } from './ServiceOptionsDialog';
|
|
4
4
|
import { layerSelectTypes } from '../../store';
|
|
5
5
|
declare const meta: Meta<typeof ServiceOptionsDialog>;
|
|
@@ -217,13 +217,13 @@ export declare const getFilteredLayers: ((state: LayerSelectModuleState & import
|
|
|
217
217
|
resultsCount: () => number;
|
|
218
218
|
resetResultsCount: () => void;
|
|
219
219
|
} & {
|
|
220
|
-
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services;
|
|
221
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services) & {
|
|
220
|
+
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/service/types").Services;
|
|
221
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/service/types").Services) & {
|
|
222
222
|
clearCache: () => void;
|
|
223
223
|
resultsCount: () => number;
|
|
224
224
|
resetResultsCount: () => void;
|
|
225
225
|
};
|
|
226
|
-
lastResult: () => import("dist/libs/store/src/store/map/types").Services;
|
|
226
|
+
lastResult: () => import("dist/libs/store/src/store/map/service/types").Services;
|
|
227
227
|
dependencies: [(store: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/map/types").ServiceState | undefined];
|
|
228
228
|
recomputations: () => number;
|
|
229
229
|
resetRecomputations: () => void;
|
|
@@ -319,16 +319,16 @@ export declare const getServicePopupDetails: (store: LayerSelectModuleState) =>
|
|
|
319
319
|
export declare const getFilteredActiveServices: ((state: LayerSelectModuleState & import("@opengeoweb/store").CoreAppStore) => {
|
|
320
320
|
[k: string]: {
|
|
321
321
|
isInSearch: boolean;
|
|
322
|
-
serviceId?: string
|
|
323
|
-
serviceName?: string
|
|
324
|
-
serviceUrl?: string
|
|
325
|
-
abstract?: string
|
|
326
|
-
enabled?: boolean
|
|
327
|
-
filterIds?: string[]
|
|
328
|
-
scope?: import("@opengeoweb/shared").SystemScope
|
|
329
|
-
isLoading?: boolean
|
|
330
|
-
keywords?: string[]
|
|
331
|
-
groups?: string[]
|
|
322
|
+
serviceId?: string;
|
|
323
|
+
serviceName?: string;
|
|
324
|
+
serviceUrl?: string;
|
|
325
|
+
abstract?: string;
|
|
326
|
+
enabled?: boolean;
|
|
327
|
+
filterIds?: string[];
|
|
328
|
+
scope?: import("@opengeoweb/shared").SystemScope;
|
|
329
|
+
isLoading?: boolean;
|
|
330
|
+
keywords?: string[];
|
|
331
|
+
groups?: string[];
|
|
332
332
|
};
|
|
333
333
|
}) & {
|
|
334
334
|
clearCache: () => void;
|
|
@@ -338,31 +338,31 @@ export declare const getFilteredActiveServices: ((state: LayerSelectModuleState
|
|
|
338
338
|
resultFunc: (resultFuncArgs_0: LayerWithServiceName[], resultFuncArgs_1: ActiveServiceObjectEntities, resultFuncArgs_2: string) => {
|
|
339
339
|
[k: string]: {
|
|
340
340
|
isInSearch: boolean;
|
|
341
|
-
serviceId?: string
|
|
342
|
-
serviceName?: string
|
|
343
|
-
serviceUrl?: string
|
|
344
|
-
abstract?: string
|
|
345
|
-
enabled?: boolean
|
|
346
|
-
filterIds?: string[]
|
|
347
|
-
scope?: import("@opengeoweb/shared").SystemScope
|
|
348
|
-
isLoading?: boolean
|
|
349
|
-
keywords?: string[]
|
|
350
|
-
groups?: string[]
|
|
341
|
+
serviceId?: string;
|
|
342
|
+
serviceName?: string;
|
|
343
|
+
serviceUrl?: string;
|
|
344
|
+
abstract?: string;
|
|
345
|
+
enabled?: boolean;
|
|
346
|
+
filterIds?: string[];
|
|
347
|
+
scope?: import("@opengeoweb/shared").SystemScope;
|
|
348
|
+
isLoading?: boolean;
|
|
349
|
+
keywords?: string[];
|
|
350
|
+
groups?: string[];
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
353
|
memoizedResultFunc: ((resultFuncArgs_0: LayerWithServiceName[], resultFuncArgs_1: ActiveServiceObjectEntities, resultFuncArgs_2: string) => {
|
|
354
354
|
[k: string]: {
|
|
355
355
|
isInSearch: boolean;
|
|
356
|
-
serviceId?: string
|
|
357
|
-
serviceName?: string
|
|
358
|
-
serviceUrl?: string
|
|
359
|
-
abstract?: string
|
|
360
|
-
enabled?: boolean
|
|
361
|
-
filterIds?: string[]
|
|
362
|
-
scope?: import("@opengeoweb/shared").SystemScope
|
|
363
|
-
isLoading?: boolean
|
|
364
|
-
keywords?: string[]
|
|
365
|
-
groups?: string[]
|
|
356
|
+
serviceId?: string;
|
|
357
|
+
serviceName?: string;
|
|
358
|
+
serviceUrl?: string;
|
|
359
|
+
abstract?: string;
|
|
360
|
+
enabled?: boolean;
|
|
361
|
+
filterIds?: string[];
|
|
362
|
+
scope?: import("@opengeoweb/shared").SystemScope;
|
|
363
|
+
isLoading?: boolean;
|
|
364
|
+
keywords?: string[];
|
|
365
|
+
groups?: string[];
|
|
366
366
|
};
|
|
367
367
|
}) & {
|
|
368
368
|
clearCache: () => void;
|
|
@@ -372,16 +372,16 @@ export declare const getFilteredActiveServices: ((state: LayerSelectModuleState
|
|
|
372
372
|
lastResult: () => {
|
|
373
373
|
[k: string]: {
|
|
374
374
|
isInSearch: boolean;
|
|
375
|
-
serviceId?: string
|
|
376
|
-
serviceName?: string
|
|
377
|
-
serviceUrl?: string
|
|
378
|
-
abstract?: string
|
|
379
|
-
enabled?: boolean
|
|
380
|
-
filterIds?: string[]
|
|
381
|
-
scope?: import("@opengeoweb/shared").SystemScope
|
|
382
|
-
isLoading?: boolean
|
|
383
|
-
keywords?: string[]
|
|
384
|
-
groups?: string[]
|
|
375
|
+
serviceId?: string;
|
|
376
|
+
serviceName?: string;
|
|
377
|
+
serviceUrl?: string;
|
|
378
|
+
abstract?: string;
|
|
379
|
+
enabled?: boolean;
|
|
380
|
+
filterIds?: string[];
|
|
381
|
+
scope?: import("@opengeoweb/shared").SystemScope;
|
|
382
|
+
isLoading?: boolean;
|
|
383
|
+
keywords?: string[];
|
|
384
|
+
groups?: string[];
|
|
385
385
|
};
|
|
386
386
|
};
|
|
387
387
|
dependencies: [((state: LayerSelectModuleState & import("@opengeoweb/store").CoreAppStore) => LayerWithServiceName[]) & {
|
|
@@ -421,13 +421,13 @@ export declare const getFilteredActiveServices: ((state: LayerSelectModuleState
|
|
|
421
421
|
resultsCount: () => number;
|
|
422
422
|
resetResultsCount: () => void;
|
|
423
423
|
} & {
|
|
424
|
-
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services;
|
|
425
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services) & {
|
|
424
|
+
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/service/types").Services;
|
|
425
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/service/types").Services) & {
|
|
426
426
|
clearCache: () => void;
|
|
427
427
|
resultsCount: () => number;
|
|
428
428
|
resetResultsCount: () => void;
|
|
429
429
|
};
|
|
430
|
-
lastResult: () => import("dist/libs/store/src/store/map/types").Services;
|
|
430
|
+
lastResult: () => import("dist/libs/store/src/store/map/service/types").Services;
|
|
431
431
|
dependencies: [(store: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/map/types").ServiceState | undefined];
|
|
432
432
|
recomputations: () => number;
|
|
433
433
|
resetRecomputations: () => void;
|