@igo2/geo 21.0.0-next.37 → 21.0.0-next.38
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 +13 -10
- package/fesm2022/igo2-geo.mjs.map +1 -1
- package/package.json +4 -4
- package/types/igo2-geo.d.ts +1 -0
package/fesm2022/igo2-geo.mjs
CHANGED
|
@@ -20,12 +20,12 @@ import html2canvas from 'html2canvas';
|
|
|
20
20
|
import jsPDF, { jsPDF as jsPDF$1 } from 'jspdf';
|
|
21
21
|
import { autoTable } from 'jspdf-autotable';
|
|
22
22
|
import moment from 'moment';
|
|
23
|
-
import { Observable, of, combineLatest, BehaviorSubject, interval, tap, merge, fromEvent, firstValueFrom, Subject, forkJoin, map as map$1, catchError as catchError$1, debounceTime as debounceTime$1, switchMap,
|
|
23
|
+
import { Observable, of, combineLatest, BehaviorSubject, interval, tap, merge, fromEvent, firstValueFrom, Subject, forkJoin, map as map$1, catchError as catchError$1, debounceTime as debounceTime$1, switchMap, debounce, timer, filter as filter$1, take, from, Subscription, pairwise, lastValueFrom, throwError, first as first$1, zip, EMPTY } from 'rxjs';
|
|
24
24
|
import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
|
|
25
25
|
import { fetchImageFromDepotUrl, ImageErrorDirective, SecureImagePipe } from '@igo2/common/image';
|
|
26
26
|
import { saveAs } from 'file-saver';
|
|
27
27
|
import JSZip from 'jszip';
|
|
28
|
-
import { concatMap, distinctUntilChanged, map, timeout, first, catchError, debounceTime, skip, filter, switchMap as switchMap$1,
|
|
28
|
+
import { concatMap, distinctUntilChanged, map, timeout, first, catchError, debounceTime, skip, filter, switchMap as switchMap$1, mergeMap, skipWhile, takeUntil, take as take$1, finalize, debounce as debounce$1, startWith } from 'rxjs/operators';
|
|
29
29
|
import { getUid } from 'ol/util';
|
|
30
30
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
31
31
|
import olSourceImageWMS from 'ol/source/ImageWMS';
|
|
@@ -12580,6 +12580,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
12580
12580
|
}] });
|
|
12581
12581
|
|
|
12582
12582
|
class LayerSearchComponent {
|
|
12583
|
+
destroyRef = inject(DestroyRef);
|
|
12583
12584
|
control = new FormControl();
|
|
12584
12585
|
initialValue = input(...(ngDevMode ? [undefined, { debugName: "initialValue" }] : /* istanbul ignore next */ []));
|
|
12585
12586
|
floatLabel = input('auto', ...(ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -12593,7 +12594,9 @@ class LayerSearchComponent {
|
|
|
12593
12594
|
emitEvent: false
|
|
12594
12595
|
});
|
|
12595
12596
|
}
|
|
12596
|
-
this.control.valueChanges
|
|
12597
|
+
this.control.valueChanges
|
|
12598
|
+
.pipe(debounce((value) => (value ? timer(300) : of(0))), takeUntilDestroyed(this.destroyRef))
|
|
12599
|
+
.subscribe((value) => {
|
|
12597
12600
|
this.searchChange.emit(value);
|
|
12598
12601
|
});
|
|
12599
12602
|
}
|
|
@@ -13123,6 +13126,10 @@ class LayerViewerComponent {
|
|
|
13123
13126
|
* @internal
|
|
13124
13127
|
*/
|
|
13125
13128
|
ngOnInit() {
|
|
13129
|
+
const initialKeyword = this.options()?.filterAndSortOptions?.keyword;
|
|
13130
|
+
if (initialKeyword) {
|
|
13131
|
+
this.keyword$.next(initialKeyword);
|
|
13132
|
+
}
|
|
13126
13133
|
const baseObs$ = [
|
|
13127
13134
|
this.layerController.layers$,
|
|
13128
13135
|
this.keyword$
|
|
@@ -13147,11 +13154,7 @@ class LayerViewerComponent {
|
|
|
13147
13154
|
this.isLoading.set(false);
|
|
13148
13155
|
this.cdr.markForCheck();
|
|
13149
13156
|
});
|
|
13150
|
-
this.keyword
|
|
13151
|
-
.pipe(debounce(() => {
|
|
13152
|
-
return this.layers?.length === 0 ? EMPTY : timer(50);
|
|
13153
|
-
}))
|
|
13154
|
-
.subscribe((keyword) => {
|
|
13157
|
+
this.keyword$.subscribe((keyword) => {
|
|
13155
13158
|
this.isDragDropDisabled = !!keyword;
|
|
13156
13159
|
this.appliedFilterAndSort.emit({
|
|
13157
13160
|
keyword
|
|
@@ -32051,7 +32054,7 @@ class SearchBarComponent {
|
|
|
32051
32054
|
this.empty$.next(term === undefined || term.length === 0);
|
|
32052
32055
|
});
|
|
32053
32056
|
this.stream$$ = this.stream$
|
|
32054
|
-
.pipe(debounce(() => timer(this.debounce())))
|
|
32057
|
+
.pipe(debounce$1(() => timer(this.debounce())))
|
|
32055
32058
|
.subscribe((term) => this.onSetTerm(term));
|
|
32056
32059
|
this.handlePlaceholder();
|
|
32057
32060
|
this.searchType$$ = this.searchType$
|
|
@@ -32955,7 +32958,7 @@ class SearchResultsComponent {
|
|
|
32955
32958
|
liftResults() {
|
|
32956
32959
|
return this.store()
|
|
32957
32960
|
?.stateView.all$()
|
|
32958
|
-
.pipe(debounce((results) => {
|
|
32961
|
+
.pipe(debounce$1((results) => {
|
|
32959
32962
|
return results.length === 0 ? EMPTY : timer(200);
|
|
32960
32963
|
}), map((results) => {
|
|
32961
32964
|
return this.groupResults(results.map((r) => r.entity).sort(this.sortByOrder));
|