@igo2/geo 21.0.0-next.50 → 21.0.0-next.52
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/fesm2022/igo2-geo.mjs +0 -15
- package/fesm2022/igo2-geo.mjs.map +1 -1
- package/package.json +4 -4
- package/types/igo2-geo.d.ts +0 -2
package/fesm2022/igo2-geo.mjs
CHANGED
|
@@ -39619,25 +39619,11 @@ class CatalogLibraryComponent {
|
|
|
39619
39619
|
set addedCatalogs(catalogs) {
|
|
39620
39620
|
this.storageService.set('addedCatalogs', catalogs);
|
|
39621
39621
|
}
|
|
39622
|
-
get selectedCatalogId() {
|
|
39623
|
-
return this.storageService.get('selectedCatalogId', StorageScope.SESSION);
|
|
39624
|
-
}
|
|
39625
|
-
set selectedCatalogId(id) {
|
|
39626
|
-
this.storageService.set('selectedCatalogId', id, StorageScope.SESSION);
|
|
39627
|
-
}
|
|
39628
39622
|
/**
|
|
39629
39623
|
* @internal
|
|
39630
39624
|
*/
|
|
39631
39625
|
ngOnInit() {
|
|
39632
39626
|
this.store().state.clear();
|
|
39633
|
-
if (this.selectedCatalogId) {
|
|
39634
|
-
const selectedCatalog = this.store()
|
|
39635
|
-
.all()
|
|
39636
|
-
.find((item) => item.id === this.selectedCatalogId);
|
|
39637
|
-
if (selectedCatalog) {
|
|
39638
|
-
this.onCatalogSelect(selectedCatalog);
|
|
39639
|
-
}
|
|
39640
|
-
}
|
|
39641
39627
|
this.predefinedCatalogs.update((catalogs) => {
|
|
39642
39628
|
return catalogs.map((catalog) => {
|
|
39643
39629
|
catalog.type = catalog.type ?? 'wms';
|
|
@@ -39659,7 +39645,6 @@ class CatalogLibraryComponent {
|
|
|
39659
39645
|
*/
|
|
39660
39646
|
onCatalogSelect(catalog) {
|
|
39661
39647
|
this.store().state.update(catalog, { selected: true, focused: true }, true);
|
|
39662
|
-
this.selectedCatalogId = catalog.id;
|
|
39663
39648
|
this.catalogSelectChange.emit({ selected: true, catalog });
|
|
39664
39649
|
}
|
|
39665
39650
|
unsubscribeAddingCatalog() {
|