@opengeoweb/layer-select 12.10.0 → 12.12.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 +265 -314
- package/package.json +11 -8
- package/src/lib/components/DataExplorerButtonConnect/index.d.ts +1 -0
- 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/components/index.d.ts +1 -0
- package/src/lib/store/selectors.d.ts +46 -46
- /package/src/lib/components/{LayerSelect → DataExplorerButtonConnect}/DataExplorerButtonConnect.d.ts +0 -0
package/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
import { useSelector, useDispatch } from 'react-redux';
|
|
5
5
|
import { CustomIconButton, FilterOption, ToolContainerDraggable, CustomAccordion, CustomToggleButton, CustomTooltip, SearchHighlight, SearchField, AlertBanner, ToggleMenu, CustomDialog, sessionStorageProvider } from '@opengeoweb/shared';
|
|
6
6
|
import { Filter, LayersAdd, Add, Cached, Edit, Visibility, Delete, MeteoGate, Copy } from '@opengeoweb/theme';
|
|
7
|
-
import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, uiActions, getUserAddedServices, setUserAddedServices, layerActions, uiSelectors, layerSelectors, mapListener, serviceListener, layersListener, openlayersListener, uiReducer, layerReducer, serviceReducer, mapReducer, useSetupDialog, mapSelectors, layerTypes } from '@opengeoweb/store';
|
|
7
|
+
import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, uiActions, getUserAddedServices, setUserAddedServices, layerActions, uiSelectors, layerSelectors, mapListener, serviceListener, layersListener, openlayersListener, uiReducer, layerReducer, serviceReducer, mapReducer, useSetupDialog, mapSelectors, layerTypes, mapEnums } from '@opengeoweb/store';
|
|
8
8
|
import { createEntityAdapter, createSlice, createSelector, createListenerMiddleware, isAnyOf, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
9
9
|
import { compact, countBy, partition } from 'lodash';
|
|
10
10
|
import { snackbarListener, snackbarReducer, snackbarTypes, snackbarActions } from '@opengeoweb/snackbar';
|
|
@@ -505,12 +505,13 @@ var getSearchFilter = createSelector(layerSelectStore, function (store) {
|
|
|
505
505
|
var getActiveServices = function getActiveServices(store) {
|
|
506
506
|
return getActiveServicesDictionary(store);
|
|
507
507
|
};
|
|
508
|
+
var EMPTY_ACTIVE_SERVICES = {
|
|
509
|
+
entities: {},
|
|
510
|
+
ids: []
|
|
511
|
+
};
|
|
508
512
|
var _layerSelectActiveSer = layerSelectActiveServicesAdapter.getSelectors(function (store) {
|
|
509
513
|
var _store$layerSelect;
|
|
510
|
-
return (store == null || (_store$layerSelect = store.layerSelect) == null || (_store$layerSelect = _store$layerSelect.filters) == null ? void 0 : _store$layerSelect.activeServices) ||
|
|
511
|
-
entities: {},
|
|
512
|
-
ids: []
|
|
513
|
-
};
|
|
514
|
+
return (store == null || (_store$layerSelect = store.layerSelect) == null || (_store$layerSelect = _store$layerSelect.filters) == null ? void 0 : _store$layerSelect.activeServices) || EMPTY_ACTIVE_SERVICES;
|
|
514
515
|
}),
|
|
515
516
|
getActiveServicesDictionary = _layerSelectActiveSer.selectEntities,
|
|
516
517
|
getActiveServiceById = _layerSelectActiveSer.selectById,
|
|
@@ -533,12 +534,13 @@ var getEnabledServiceIds = createSelector(getAllActiveServices, function (servic
|
|
|
533
534
|
var getAllFilterIds = function getAllFilterIds(store) {
|
|
534
535
|
return getAllFilterIdsEntity(store);
|
|
535
536
|
};
|
|
537
|
+
var EMPTY_FILTERS = {
|
|
538
|
+
entities: {},
|
|
539
|
+
ids: []
|
|
540
|
+
};
|
|
536
541
|
var _layerSelectFilterAda = layerSelectFilterAdapter.getSelectors(function (store) {
|
|
537
542
|
var _store$layerSelect2;
|
|
538
|
-
return (store == null || (_store$layerSelect2 = store.layerSelect) == null || (_store$layerSelect2 = _store$layerSelect2.filters) == null ? void 0 : _store$layerSelect2.filters) ||
|
|
539
|
-
entities: {},
|
|
540
|
-
ids: []
|
|
541
|
-
};
|
|
543
|
+
return (store == null || (_store$layerSelect2 = store.layerSelect) == null || (_store$layerSelect2 = _store$layerSelect2.filters) == null ? void 0 : _store$layerSelect2.filters) || EMPTY_FILTERS;
|
|
542
544
|
}),
|
|
543
545
|
getAllFilters = _layerSelectFilterAda.selectAll,
|
|
544
546
|
getAllFilterIdsEntity = _layerSelectFilterAda.selectIds,
|
|
@@ -579,11 +581,11 @@ var getFilters = createSelector(getAllActiveServices, getAllFilters, function (s
|
|
|
579
581
|
}),
|
|
580
582
|
groupsWithCount = _partition[0],
|
|
581
583
|
keywordsWithCount = _partition[1];
|
|
582
|
-
var groupsSorted = [].concat(groupsWithCount).sort(function (
|
|
583
|
-
return
|
|
584
|
+
var groupsSorted = [].concat(groupsWithCount).sort(function (groupA, groupB) {
|
|
585
|
+
return groupA.name.localeCompare(groupB.name);
|
|
584
586
|
});
|
|
585
|
-
var keywordsSorted = [].concat(keywordsWithCount).sort(function (
|
|
586
|
-
return
|
|
587
|
+
var keywordsSorted = [].concat(keywordsWithCount).sort(function (groupA, groupB) {
|
|
588
|
+
return groupA.name.localeCompare(groupB.name);
|
|
587
589
|
});
|
|
588
590
|
return {
|
|
589
591
|
groups: groupsSorted,
|
|
@@ -695,6 +697,9 @@ var types = /*#__PURE__*/Object.freeze({
|
|
|
695
697
|
__proto__: null
|
|
696
698
|
});
|
|
697
699
|
|
|
700
|
+
function _OverloadYield(e, d) {
|
|
701
|
+
this.v = e, this.k = d;
|
|
702
|
+
}
|
|
698
703
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
699
704
|
try {
|
|
700
705
|
var i = n[a](c),
|
|
@@ -723,313 +728,255 @@ function _asyncToGenerator(n) {
|
|
|
723
728
|
function _objectDestructuringEmpty(t) {
|
|
724
729
|
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
725
730
|
}
|
|
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
|
-
|
|
731
|
+
function _regenerator() {
|
|
732
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
733
|
+
var e,
|
|
734
|
+
t,
|
|
735
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
736
|
+
n = r.iterator || "@@iterator",
|
|
737
|
+
o = r.toStringTag || "@@toStringTag";
|
|
738
|
+
function i(r, n, o, i) {
|
|
739
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
740
|
+
u = Object.create(c.prototype);
|
|
741
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
742
|
+
var i,
|
|
743
|
+
c,
|
|
744
|
+
u,
|
|
745
|
+
f = 0,
|
|
746
|
+
p = o || [],
|
|
747
|
+
y = false,
|
|
748
|
+
G = {
|
|
749
|
+
p: 0,
|
|
750
|
+
n: 0,
|
|
751
|
+
v: e,
|
|
752
|
+
a: d,
|
|
753
|
+
f: d.bind(e, 4),
|
|
754
|
+
d: function (t, r) {
|
|
755
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
function d(r, n) {
|
|
759
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
760
|
+
var o,
|
|
761
|
+
i = p[t],
|
|
762
|
+
d = G.p,
|
|
763
|
+
l = i[2];
|
|
764
|
+
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));
|
|
765
|
+
}
|
|
766
|
+
if (o || r > 1) return a;
|
|
767
|
+
throw y = true, n;
|
|
768
|
+
}
|
|
769
|
+
return function (o, p, l) {
|
|
770
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
771
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
772
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
773
|
+
try {
|
|
774
|
+
if (f = 2, i) {
|
|
775
|
+
if (c || (o = "next"), t = i[o]) {
|
|
776
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
777
|
+
if (!t.done) return t;
|
|
778
|
+
u = t.value, c < 2 && (c = 0);
|
|
779
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
780
|
+
i = e;
|
|
781
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
782
|
+
} catch (t) {
|
|
783
|
+
i = e, c = 1, u = t;
|
|
784
|
+
} finally {
|
|
785
|
+
f = 1;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
return {
|
|
789
|
+
value: t,
|
|
790
|
+
done: y
|
|
791
|
+
};
|
|
774
792
|
};
|
|
775
|
-
}
|
|
793
|
+
}(r, o, i), true), u;
|
|
776
794
|
}
|
|
777
|
-
|
|
778
|
-
var h = "suspendedStart",
|
|
779
|
-
l = "suspendedYield",
|
|
780
|
-
f = "executing",
|
|
781
|
-
s = "completed",
|
|
782
|
-
y = {};
|
|
795
|
+
var a = {};
|
|
783
796
|
function Generator() {}
|
|
784
797
|
function GeneratorFunction() {}
|
|
785
798
|
function GeneratorFunctionPrototype() {}
|
|
786
|
-
|
|
787
|
-
|
|
799
|
+
t = Object.getPrototypeOf;
|
|
800
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
801
|
+
return this;
|
|
802
|
+
}), t),
|
|
803
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
804
|
+
function f(e) {
|
|
805
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
806
|
+
}
|
|
807
|
+
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
808
|
return this;
|
|
809
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
810
|
+
return "[object Generator]";
|
|
811
|
+
}), (_regenerator = function () {
|
|
812
|
+
return {
|
|
813
|
+
w: i,
|
|
814
|
+
m: f
|
|
815
|
+
};
|
|
816
|
+
})();
|
|
817
|
+
}
|
|
818
|
+
function _regeneratorAsync(n, e, r, t, o) {
|
|
819
|
+
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
820
|
+
return a.next().then(function (n) {
|
|
821
|
+
return n.done ? n.value : a.next();
|
|
789
822
|
});
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
823
|
+
}
|
|
824
|
+
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
825
|
+
return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
|
|
826
|
+
}
|
|
827
|
+
function _regeneratorAsyncIterator(t, e) {
|
|
828
|
+
function n(r, o, i, f) {
|
|
829
|
+
try {
|
|
830
|
+
var c = t[r](o),
|
|
831
|
+
u = c.value;
|
|
832
|
+
return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
|
|
833
|
+
n("next", t, i, f);
|
|
834
|
+
}, function (t) {
|
|
835
|
+
n("throw", t, i, f);
|
|
836
|
+
}) : e.resolve(u).then(function (t) {
|
|
837
|
+
c.value = t, i(c);
|
|
838
|
+
}, function (t) {
|
|
839
|
+
return n("throw", t, i, f);
|
|
798
840
|
});
|
|
799
|
-
})
|
|
841
|
+
} catch (t) {
|
|
842
|
+
f(t);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
var r;
|
|
846
|
+
this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
|
|
847
|
+
return this;
|
|
848
|
+
})), _regeneratorDefine(this, "_invoke", function (t, o, i) {
|
|
849
|
+
function f() {
|
|
850
|
+
return new e(function (e, r) {
|
|
851
|
+
n(t, i, e, r);
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
return r = r ? r.then(f, f) : f();
|
|
855
|
+
}, true);
|
|
856
|
+
}
|
|
857
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
858
|
+
var i = Object.defineProperty;
|
|
859
|
+
try {
|
|
860
|
+
i({}, "", {});
|
|
861
|
+
} catch (e) {
|
|
862
|
+
i = 0;
|
|
800
863
|
}
|
|
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);
|
|
864
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
865
|
+
if (r) i ? i(e, r, {
|
|
866
|
+
value: n,
|
|
867
|
+
enumerable: !t,
|
|
868
|
+
configurable: !t,
|
|
869
|
+
writable: !t
|
|
870
|
+
}) : e[r] = n;else {
|
|
871
|
+
function o(r, n) {
|
|
872
|
+
_regeneratorDefine(e, r, function (e) {
|
|
873
|
+
return this._invoke(r, n, e);
|
|
815
874
|
});
|
|
816
875
|
}
|
|
817
|
-
|
|
876
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
818
877
|
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
var
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
878
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
879
|
+
}
|
|
880
|
+
function _regeneratorKeys(e) {
|
|
881
|
+
var n = Object(e),
|
|
882
|
+
r = [];
|
|
883
|
+
for (var t in n) r.unshift(t);
|
|
884
|
+
return function e() {
|
|
885
|
+
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
|
|
886
|
+
return e.done = true, e;
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
function _regeneratorValues(e) {
|
|
890
|
+
if (null != e) {
|
|
891
|
+
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
892
|
+
r = 0;
|
|
893
|
+
if (t) return t.call(e);
|
|
894
|
+
if ("function" == typeof e.next) return e;
|
|
895
|
+
if (!isNaN(e.length)) return {
|
|
896
|
+
next: function () {
|
|
897
|
+
return e && r >= e.length && (e = void 0), {
|
|
898
|
+
value: e && e[r++],
|
|
899
|
+
done: !e
|
|
840
900
|
};
|
|
841
901
|
}
|
|
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
902
|
};
|
|
881
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
882
903
|
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
904
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
905
|
+
}
|
|
906
|
+
function _regeneratorRuntime() {
|
|
907
|
+
|
|
908
|
+
var r = _regenerator(),
|
|
909
|
+
e = r.m(_regeneratorRuntime),
|
|
910
|
+
t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
911
|
+
function n(r) {
|
|
912
|
+
var e = "function" == typeof r && r.constructor;
|
|
913
|
+
return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
|
|
891
914
|
}
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
915
|
+
var o = {
|
|
916
|
+
throw: 1,
|
|
917
|
+
return: 2,
|
|
918
|
+
break: 3,
|
|
919
|
+
continue: 3
|
|
920
|
+
};
|
|
921
|
+
function a(r) {
|
|
922
|
+
var e, t;
|
|
923
|
+
return function (n) {
|
|
924
|
+
e || (e = {
|
|
925
|
+
stop: function () {
|
|
926
|
+
return t(n.a, 2);
|
|
927
|
+
},
|
|
928
|
+
catch: function () {
|
|
929
|
+
return n.v;
|
|
930
|
+
},
|
|
931
|
+
abrupt: function (r, e) {
|
|
932
|
+
return t(n.a, o[r], e);
|
|
933
|
+
},
|
|
934
|
+
delegateYield: function (r, o, a) {
|
|
935
|
+
return e.resultName = o, t(n.d, _regeneratorValues(r), a);
|
|
936
|
+
},
|
|
937
|
+
finish: function (r) {
|
|
938
|
+
return t(n.f, r);
|
|
939
|
+
}
|
|
940
|
+
}, t = function (r, t, o) {
|
|
941
|
+
n.p = e.prev, n.n = e.next;
|
|
942
|
+
try {
|
|
943
|
+
return r(t, o);
|
|
944
|
+
} finally {
|
|
945
|
+
e.next = n.n;
|
|
946
|
+
}
|
|
947
|
+
}), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
|
|
948
|
+
try {
|
|
949
|
+
return r.call(this, e);
|
|
950
|
+
} finally {
|
|
951
|
+
n.p = e.prev, n.n = e.next;
|
|
904
952
|
}
|
|
905
|
-
}
|
|
906
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
953
|
+
};
|
|
907
954
|
}
|
|
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) {
|
|
955
|
+
return (_regeneratorRuntime = function () {
|
|
920
956
|
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;
|
|
957
|
+
wrap: function (e, t, n, o) {
|
|
958
|
+
return r.w(a(e), t, n, o && o.reverse());
|
|
959
|
+
},
|
|
960
|
+
isGeneratorFunction: n,
|
|
961
|
+
mark: r.m,
|
|
962
|
+
awrap: function (r, e) {
|
|
963
|
+
return new _OverloadYield(r, e);
|
|
964
|
+
},
|
|
965
|
+
AsyncIterator: _regeneratorAsyncIterator,
|
|
966
|
+
async: function (r, e, t, o, u) {
|
|
967
|
+
return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
|
|
968
|
+
},
|
|
969
|
+
keys: _regeneratorKeys,
|
|
970
|
+
values: _regeneratorValues
|
|
945
971
|
};
|
|
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;
|
|
972
|
+
})();
|
|
1026
973
|
}
|
|
1027
974
|
|
|
1028
975
|
var layerSelectListener = createListenerMiddleware();
|
|
1029
976
|
layerSelectListener.startListening({
|
|
1030
977
|
actionCreator: serviceActions.mapStoreRemoveService,
|
|
1031
978
|
effect: function () {
|
|
1032
|
-
var _effect = _asyncToGenerator(
|
|
979
|
+
var _effect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(action) {
|
|
1033
980
|
var serviceUrl, localStorageServices;
|
|
1034
981
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1035
982
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -1053,7 +1000,7 @@ layerSelectListener.startListening({
|
|
|
1053
1000
|
layerSelectListener.startListening({
|
|
1054
1001
|
actionCreator: layerSelectActions.layerSelectRemoveService,
|
|
1055
1002
|
effect: function () {
|
|
1056
|
-
var _effect2 = _asyncToGenerator(
|
|
1003
|
+
var _effect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(action, listenerApi) {
|
|
1057
1004
|
var removedService, serviceId, serviceUrl, services, servicesEnabled;
|
|
1058
1005
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1059
1006
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1091,7 +1038,7 @@ layerSelectListener.startListening({
|
|
|
1091
1038
|
layerSelectListener.startListening({
|
|
1092
1039
|
actionCreator: serviceActions.serviceSetLayers,
|
|
1093
1040
|
effect: function () {
|
|
1094
|
-
var _effect3 = _asyncToGenerator(
|
|
1041
|
+
var _effect3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(action) {
|
|
1095
1042
|
var _action$payload, scope, name, serviceUrl, _abstract, _Object$assign, localStorageServices;
|
|
1096
1043
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1097
1044
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -1120,7 +1067,7 @@ layerSelectListener.startListening({
|
|
|
1120
1067
|
layerSelectListener.startListening({
|
|
1121
1068
|
matcher: isAnyOf(uiActions.setToggleOpenDialog, uiActions.setActiveMapIdForDialog),
|
|
1122
1069
|
effect: function () {
|
|
1123
|
-
var _effect4 = _asyncToGenerator(
|
|
1070
|
+
var _effect4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(action, listenerApi) {
|
|
1124
1071
|
var payload;
|
|
1125
1072
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
1126
1073
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -1144,7 +1091,7 @@ layerSelectListener.startListening({
|
|
|
1144
1091
|
layerSelectListener.startListening({
|
|
1145
1092
|
matcher: isAnyOf(layerSelectActions.disableActiveService, layerSelectActions.onlyThisServiceEnabled, layerSelectActions.toggleFilter, layerSelectActions.setSearchFilter),
|
|
1146
1093
|
effect: function () {
|
|
1147
|
-
var _effect5 = _asyncToGenerator(
|
|
1094
|
+
var _effect5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(action, listenerApi) {
|
|
1148
1095
|
var filteredLayers, dialogInfo, layerWithData;
|
|
1149
1096
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
1150
1097
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -1584,14 +1531,14 @@ var widthToRowHeight = function widthToRowHeight(width) {
|
|
|
1584
1531
|
};
|
|
1585
1532
|
var sortByService = function sortByService(serviceObj) {
|
|
1586
1533
|
return Object.entries(serviceObj).sort(function (_ref, _ref2) {
|
|
1587
|
-
var
|
|
1588
|
-
var
|
|
1589
|
-
return
|
|
1590
|
-
}).reduce(function (
|
|
1534
|
+
var serviceA = _ref[1];
|
|
1535
|
+
var serviceB = _ref2[1];
|
|
1536
|
+
return serviceA.serviceName.localeCompare(serviceB == null ? void 0 : serviceB.serviceName);
|
|
1537
|
+
}).reduce(function (result, _ref3) {
|
|
1591
1538
|
var _Object$assign;
|
|
1592
1539
|
var key = _ref3[0],
|
|
1593
1540
|
value = _ref3[1];
|
|
1594
|
-
return Object.assign({},
|
|
1541
|
+
return Object.assign({}, result, (_Object$assign = {}, _Object$assign[key] = value, _Object$assign));
|
|
1595
1542
|
}, {});
|
|
1596
1543
|
};
|
|
1597
1544
|
|
|
@@ -1704,8 +1651,8 @@ var LayerListRow = function LayerListRow(_ref) {
|
|
|
1704
1651
|
}), ((_layer$keywords = layer.keywords) == null ? void 0 : _layer$keywords.length) > 0 && jsxs(Typography, {
|
|
1705
1652
|
sx: layerInfoStyle,
|
|
1706
1653
|
children: [t('keywords'), ":", ' ', jsx(SearchHighlight, {
|
|
1707
|
-
text: layer.keywords.slice().sort(function (
|
|
1708
|
-
return
|
|
1654
|
+
text: layer.keywords.slice().sort(function (textA, textB) {
|
|
1655
|
+
return textA.localeCompare(textB);
|
|
1709
1656
|
}).join(', '),
|
|
1710
1657
|
search: searchFilter
|
|
1711
1658
|
})]
|
|
@@ -2423,7 +2370,7 @@ var validateServiceUrl = function validateServiceUrl(t, value, services) {
|
|
|
2423
2370
|
return true;
|
|
2424
2371
|
};
|
|
2425
2372
|
var loadWMSService = /*#__PURE__*/function () {
|
|
2426
|
-
var _ref = _asyncToGenerator(
|
|
2373
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl, forceReload) {
|
|
2427
2374
|
var layers, service;
|
|
2428
2375
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2429
2376
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2530,8 +2477,8 @@ var ServiceOptionsDialogConnect = function ServiceOptionsDialogConnect(_ref) {
|
|
|
2530
2477
|
serviceUrl: serviceUrl
|
|
2531
2478
|
}));
|
|
2532
2479
|
}, [dispatch, showSnackbar]);
|
|
2533
|
-
var layerSelectReloadService = React.useCallback(
|
|
2534
|
-
var _ref2 = _asyncToGenerator(
|
|
2480
|
+
var layerSelectReloadService = React.useCallback(/*#__PURE__*/function () {
|
|
2481
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl) {
|
|
2535
2482
|
var layersForService, service, serviceTitle;
|
|
2536
2483
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2537
2484
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2606,24 +2553,28 @@ var DataExplorerButtonConnect = function DataExplorerButtonConnect(_ref) {
|
|
|
2606
2553
|
source = _ref$source === void 0 ? 'app' : _ref$source;
|
|
2607
2554
|
var dispatch = useDispatch();
|
|
2608
2555
|
var dialogType = uiTypes.DialogTypes.DataExplorer;
|
|
2556
|
+
var currentActiveMapId = useSelector(function (store) {
|
|
2557
|
+
return uiSelectors.getDialogMapId(store, dialogType);
|
|
2558
|
+
});
|
|
2609
2559
|
var isOpenInStore = useSelector(function (store) {
|
|
2610
2560
|
return uiSelectors.getisDialogOpen(store, dialogType);
|
|
2611
2561
|
});
|
|
2612
2562
|
var openDataExplorerDialog = React.useCallback(function () {
|
|
2613
2563
|
dispatch(uiActions.setActiveMapIdForDialog({
|
|
2614
2564
|
type: dialogType,
|
|
2615
|
-
setOpen: !isOpenInStore,
|
|
2565
|
+
setOpen: currentActiveMapId !== mapId ? true : !isOpenInStore,
|
|
2616
2566
|
source: source,
|
|
2617
|
-
mapId: mapId
|
|
2567
|
+
mapId: mapId,
|
|
2568
|
+
origin: mapEnums.MapActionOrigin.map
|
|
2618
2569
|
}));
|
|
2619
|
-
}, [
|
|
2570
|
+
}, [dispatch, dialogType, currentActiveMapId, mapId, isOpenInStore, source]);
|
|
2620
2571
|
return jsx(CustomTooltip, {
|
|
2621
2572
|
title: "MeteoGate Data Explorer",
|
|
2622
2573
|
children: jsx(CustomIconButton, {
|
|
2623
2574
|
variant: "tool",
|
|
2624
2575
|
"data-testid": "dataExplorerButton",
|
|
2625
2576
|
onClick: openDataExplorerDialog,
|
|
2626
|
-
isSelected: isOpenInStore,
|
|
2577
|
+
isSelected: currentActiveMapId !== mapId ? false : isOpenInStore,
|
|
2627
2578
|
children: jsx(MeteoGate, {
|
|
2628
2579
|
sx: {}
|
|
2629
2580
|
})
|
|
@@ -2843,7 +2794,7 @@ var ServicePopupUnwrapped = function ServicePopupUnwrapped(_ref2) {
|
|
|
2843
2794
|
shouldForceReload = _React$useState2[0],
|
|
2844
2795
|
setShouldForceReload = _React$useState2[1];
|
|
2845
2796
|
var fetchServiceData = /*#__PURE__*/function () {
|
|
2846
|
-
var _ref3 = _asyncToGenerator(
|
|
2797
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(newServiceUrl) {
|
|
2847
2798
|
var service;
|
|
2848
2799
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2849
2800
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2880,7 +2831,7 @@ var ServicePopupUnwrapped = function ServicePopupUnwrapped(_ref2) {
|
|
|
2880
2831
|
};
|
|
2881
2832
|
}();
|
|
2882
2833
|
var addNewService = /*#__PURE__*/function () {
|
|
2883
|
-
var _ref4 = _asyncToGenerator(
|
|
2834
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(formValues) {
|
|
2884
2835
|
var service;
|
|
2885
2836
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2886
2837
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -3240,4 +3191,4 @@ var LayerSelectConnect = function LayerSelectConnect(_ref) {
|
|
|
3240
3191
|
});
|
|
3241
3192
|
};
|
|
3242
3193
|
|
|
3243
|
-
export { AllChipConnect, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LAYER_SELECT_NAMESPACE, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, createMockStore, getServiceSuccesUpdateMessage, getSuccesMessage, isUserAddedService, layerSelectActions, initialState as layerSelectInitialState, layerSelectListener, layerSelectMiddlewares, layerSelectReducer, layerSelectReducersMap, selectors as layerSelectSelectors, layerSelectTranslations, types as layerSelectTypes, useAppSelector };
|
|
3194
|
+
export { AllChipConnect, DataExplorerButtonConnect, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LAYER_SELECT_NAMESPACE, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, createMockStore, getServiceSuccesUpdateMessage, getSuccesMessage, isUserAddedService, layerSelectActions, initialState as layerSelectInitialState, layerSelectListener, layerSelectMiddlewares, layerSelectReducer, layerSelectReducersMap, selectors as layerSelectSelectors, layerSelectTranslations, types as layerSelectTypes, useAppSelector };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/layer-select",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.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.12.0",
|
|
12
|
+
"@opengeoweb/store": "12.12.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.12.0",
|
|
15
|
+
"@opengeoweb/webmap-react": "12.12.0",
|
|
16
|
+
"@opengeoweb/webmap": "12.12.0",
|
|
17
17
|
"react-window": "^1.8.10",
|
|
18
|
-
"@opengeoweb/snackbar": "12.
|
|
19
|
-
"@opengeoweb/form-fields": "12.
|
|
18
|
+
"@opengeoweb/snackbar": "12.12.0",
|
|
19
|
+
"@opengeoweb/form-fields": "12.12.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",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataExplorerButtonConnect } from './DataExplorerButtonConnect';
|
|
@@ -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;
|
/package/src/lib/components/{LayerSelect → DataExplorerButtonConnect}/DataExplorerButtonConnect.d.ts
RENAMED
|
File without changes
|