@dereekb/dbx-web 13.7.0 → 13.8.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/fesm2022/dereekb-dbx-web-calendar.mjs +10 -12
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +81 -129
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +81 -101
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +896 -917
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/package.json +13 -13
- package/types/dereekb-dbx-web.d.ts +25 -5
|
@@ -4,7 +4,7 @@ import { asObservable, cleanup, filterMaybe, onTrueToFalse, SubscriptionObject,
|
|
|
4
4
|
import { distinctUntilChanged, switchMap, map, combineLatestWith, shareReplay, NEVER, defaultIfEmpty, tap, EMPTY, interval, of, first, combineLatest, filter, startWith, throttleTime, Subject, merge, delay } from 'rxjs';
|
|
5
5
|
import { latLngPoint, LAT_LONG_10M_PRECISION, latLngPointFunction, roundNumberToStepFunction, latLngBoundFunction, latLngBoundFromInput, filterUndefinedValues, diffLatLngBoundPoints, latLngBoundCenterPoint, addLatLngPoints, isSameLatLngPoint, isSameVector, vectorMinimumSizeResizeFunction, isSameLatLngBound, isDefaultLatLngPoint, swMostLatLngPoint, neMostLatLngPoint, latLngBoundWrapsMap, isWithinLatLngBoundFunction, overlapsLatLngBoundFunction, isNotFalse, DestroyFunctionObject, getValueFromGetter, pushItemOrArrayItemsIntoArray, spaceSeparatedCssClasses } from '@dereekb/util';
|
|
6
6
|
import { ComponentStore } from '@ngrx/component-store';
|
|
7
|
-
import
|
|
7
|
+
import { LngLatBounds } from 'mapbox-gl';
|
|
8
8
|
import { bounds } from '@placemarkio/geo-viewport';
|
|
9
9
|
import { DbxInjectionArrayComponent, DbxInjectionComponent, cleanSubscription, clean } from '@dereekb/dbx-core';
|
|
10
10
|
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
@@ -60,10 +60,10 @@ class DbxMapboxService {
|
|
|
60
60
|
center: latLngPoint(this.defaultCenter)
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
64
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
64
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxService });
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxService, decorators: [{
|
|
67
67
|
type: Injectable
|
|
68
68
|
}] });
|
|
69
69
|
|
|
@@ -162,11 +162,9 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
162
162
|
setMapService = this.effect((input) => {
|
|
163
163
|
return input.pipe(switchMap((service) => {
|
|
164
164
|
this._setMapService(service);
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
else {
|
|
169
|
-
return service.mapLoaded$.pipe(defaultIfEmpty(undefined), map(() => {
|
|
165
|
+
let result = NEVER;
|
|
166
|
+
if (service) {
|
|
167
|
+
result = service.mapLoaded$.pipe(defaultIfEmpty(undefined), map(() => {
|
|
170
168
|
this._setLifecycleState('idle');
|
|
171
169
|
this._setMoveState('idle');
|
|
172
170
|
this._setZoomState('idle');
|
|
@@ -205,7 +203,9 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
205
203
|
};
|
|
206
204
|
}));
|
|
207
205
|
}
|
|
208
|
-
|
|
206
|
+
return result;
|
|
207
|
+
}), cleanup((state) => {
|
|
208
|
+
const { service, listenerPairs, subs } = state;
|
|
209
209
|
const map = service.mapInstance;
|
|
210
210
|
if (map) {
|
|
211
211
|
listenerPairs.forEach((x) => {
|
|
@@ -350,19 +350,18 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
350
350
|
fitPositions = this.effect((input) => {
|
|
351
351
|
return input.pipe(switchMap((x) => {
|
|
352
352
|
const boundFromInput = latLngBoundFromInput(x.positions);
|
|
353
|
+
let result = EMPTY;
|
|
353
354
|
if (boundFromInput) {
|
|
354
355
|
const bound = this.latLngBound(boundFromInput);
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
return EMPTY;
|
|
356
|
+
result = this.mapInstance$.pipe(tap((map) => map.fitBounds(new LngLatBounds(bound.sw, bound.ne), x.options, x.eventData)));
|
|
359
357
|
}
|
|
358
|
+
return result;
|
|
360
359
|
}));
|
|
361
360
|
});
|
|
362
361
|
fitBounds = this.effect((input) => {
|
|
363
362
|
return input.pipe(switchMap((x) => {
|
|
364
363
|
const bound = this.latLngBound(x.bounds);
|
|
365
|
-
return this.mapInstance$.pipe(tap((map) => map.fitBounds(new
|
|
364
|
+
return this.mapInstance$.pipe(tap((map) => map.fitBounds(new LngLatBounds(bound.sw, bound.ne), x.options, x.eventData)));
|
|
366
365
|
}));
|
|
367
366
|
});
|
|
368
367
|
jumpTo = this.effect((input) => {
|
|
@@ -400,22 +399,12 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
400
399
|
}
|
|
401
400
|
movingTimer(period = this.timerRefreshPeriod) {
|
|
402
401
|
return this.moveState$.pipe(switchMap((x) => {
|
|
403
|
-
|
|
404
|
-
return interval(period);
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
return of(0);
|
|
408
|
-
}
|
|
402
|
+
return x === 'moving' ? interval(period) : of(0);
|
|
409
403
|
}), shareReplay(1));
|
|
410
404
|
}
|
|
411
405
|
lifecycleRenderTimer(period = this.timerRefreshPeriod) {
|
|
412
406
|
return this.lifecycleState$.pipe(switchMap((x) => {
|
|
413
|
-
|
|
414
|
-
return interval(period);
|
|
415
|
-
}
|
|
416
|
-
else {
|
|
417
|
-
return of(0);
|
|
418
|
-
}
|
|
407
|
+
return x === 'render' ? interval(period) : of(0);
|
|
419
408
|
}), shareReplay(1));
|
|
420
409
|
}
|
|
421
410
|
atNextIdle() {
|
|
@@ -460,12 +449,9 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
460
449
|
currentMapService$ = this.state$.pipe(map((x) => x.mapService), distinctUntilChanged(), shareReplay(1));
|
|
461
450
|
mapService$ = this.currentMapService$.pipe(filterMaybe());
|
|
462
451
|
currentMapInstance$ = this.currentMapService$.pipe(switchMap((currentMapService) => {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
else {
|
|
467
|
-
return of(undefined);
|
|
468
|
-
}
|
|
452
|
+
return currentMapService
|
|
453
|
+
? currentMapService.mapLoaded$.pipe(defaultIfEmpty(undefined), map(() => currentMapService.mapInstance))
|
|
454
|
+
: of(undefined);
|
|
469
455
|
}), distinctUntilChanged(), shareReplay(1));
|
|
470
456
|
mapInstance$ = this.currentMapInstance$.pipe(filterMaybe());
|
|
471
457
|
boundRefreshSettings$ = this.state$.pipe(map((x) => x.boundRefreshSettings), shareReplay(1));
|
|
@@ -474,12 +460,11 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
474
460
|
zoomState$ = this.state$.pipe(map((x) => x.zoomState), distinctUntilChanged(), shareReplay(1));
|
|
475
461
|
rotateState$ = this.state$.pipe(map((x) => x.rotateState), distinctUntilChanged(), shareReplay(1));
|
|
476
462
|
isInitialized$ = this.currentMapInstance$.pipe(switchMap((x) => {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
else {
|
|
481
|
-
return combineLatest([this.moveState$.pipe(map((x) => x === 'idle')), this.lifecycleState$.pipe(map((x) => x === 'idle'))]).pipe(filter(([m, l]) => m && l), first(), map(() => true));
|
|
463
|
+
let result = of(false);
|
|
464
|
+
if (x) {
|
|
465
|
+
result = combineLatest([this.moveState$.pipe(map((x) => x === 'idle')), this.lifecycleState$.pipe(map((x) => x === 'idle'))]).pipe(filter(([m, l]) => m && l), first(), map(() => true));
|
|
482
466
|
}
|
|
467
|
+
return result;
|
|
483
468
|
}), shareReplay(1));
|
|
484
469
|
whenInitialized$ = this.isInitialized$.pipe(filter(() => true), shareReplay(1));
|
|
485
470
|
isRendering$ = this.whenInitialized$.pipe(switchMap(() => this.lifecycleState$.pipe(map((x) => x === 'render'), distinctUntilChanged(), shareReplay(1))));
|
|
@@ -506,12 +491,7 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
506
491
|
* The map canvas size with consideration to the virtual viewport size.
|
|
507
492
|
*/
|
|
508
493
|
virtualMapCanvasSize$ = this.minimumVirtualViewportSize$.pipe(switchMap((minimumVirtualViewportSize) => {
|
|
509
|
-
|
|
510
|
-
return this.minimumMapCanvasSize(minimumVirtualViewportSize);
|
|
511
|
-
}
|
|
512
|
-
else {
|
|
513
|
-
return this.mapCanvasSize$;
|
|
514
|
-
}
|
|
494
|
+
return minimumVirtualViewportSize ? this.minimumMapCanvasSize(minimumVirtualViewportSize) : this.mapCanvasSize$;
|
|
515
495
|
}), distinctUntilChanged(isSameVector), shareReplay(1));
|
|
516
496
|
rawViewportBoundFunction$ = this.mapCanvasSize$.pipe(map((mapCanvasSize) => mapboxViewportBoundFunction({ mapCanvasSize })), shareReplay(1));
|
|
517
497
|
/**
|
|
@@ -525,12 +505,7 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
525
505
|
return this.mapCanvasSize$.pipe(map((x) => resizeFn(x)), distinctUntilChanged(isSameVector), map((mapCanvasSize) => mapboxViewportBoundFunction({ mapCanvasSize })), shareReplay(1));
|
|
526
506
|
}
|
|
527
507
|
viewportBoundFunction$ = this.minimumVirtualViewportSize$.pipe(switchMap((minimumVirtualViewportSize) => {
|
|
528
|
-
|
|
529
|
-
return this.viewportBoundFunctionWithMinimumSize(minimumVirtualViewportSize);
|
|
530
|
-
}
|
|
531
|
-
else {
|
|
532
|
-
return this.rawViewportBoundFunction$;
|
|
533
|
-
}
|
|
508
|
+
return minimumVirtualViewportSize ? this.viewportBoundFunctionWithMinimumSize(minimumVirtualViewportSize) : this.rawViewportBoundFunction$;
|
|
534
509
|
}), shareReplay(1));
|
|
535
510
|
virtualBound$ = this.viewportBoundFunction$.pipe(switchMap((fn) => {
|
|
536
511
|
return this.boundRefreshSettings$.pipe(switchMap((settings) => {
|
|
@@ -553,21 +528,13 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
553
528
|
}), distinctUntilChanged(isSameLatLngBound), shareReplay(1));
|
|
554
529
|
margin$ = this.state$.pipe(map((x) => x.margin), distinctUntilChanged((a, b) => a != null && a.fullWidth === b?.fullWidth && a.leftMargin === b.leftMargin && a.rightMargin === b.rightMargin), shareReplay(1));
|
|
555
530
|
reverseMargin$ = this.margin$.pipe(map((x) => {
|
|
556
|
-
|
|
557
|
-
return { leftMargin: -x.leftMargin, rightMargin: -x.rightMargin, fullWidth: x.fullWidth };
|
|
558
|
-
}
|
|
559
|
-
else {
|
|
560
|
-
return x;
|
|
561
|
-
}
|
|
531
|
+
return x ? { leftMargin: -x.leftMargin, rightMargin: -x.rightMargin, fullWidth: x.fullWidth } : x;
|
|
562
532
|
}));
|
|
563
533
|
centerGivenMargin$ = this.whenInitialized$.pipe(switchMap(() => {
|
|
564
534
|
return this.reverseMargin$.pipe(switchMap((x) => {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
else {
|
|
569
|
-
return this.isMoving$.pipe(filter((x) => !x), switchMap(() => this.center$));
|
|
570
|
-
}
|
|
535
|
+
return x
|
|
536
|
+
? this.center$.pipe(switchMap((_) => this.calculateNextCenterOffsetWithScreenMarginChange(x)))
|
|
537
|
+
: this.isMoving$.pipe(filter((x) => !x), switchMap(() => this.center$));
|
|
571
538
|
}));
|
|
572
539
|
}), shareReplay(1));
|
|
573
540
|
rawBoundNow$ = this.whenInitialized$.pipe(switchMap(() => this.mapInstance$.pipe(switchMap((x) => this._renderingTimer.pipe(map(() => {
|
|
@@ -602,12 +569,7 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
602
569
|
}), distinctUntilChanged(isSameLatLngBound), shareReplay(1));
|
|
603
570
|
useVirtualBound$ = this.state$.pipe(map((x) => x.useVirtualBound), distinctUntilChanged(), shareReplay(1));
|
|
604
571
|
bound$ = this.useVirtualBound$.pipe(switchMap((useVirtualBound) => {
|
|
605
|
-
|
|
606
|
-
return this.virtualBound$;
|
|
607
|
-
}
|
|
608
|
-
else {
|
|
609
|
-
return this.rawBound$;
|
|
610
|
-
}
|
|
572
|
+
return useVirtualBound ? this.virtualBound$ : this.rawBound$;
|
|
611
573
|
}), shareReplay(1));
|
|
612
574
|
boundSizing$ = this.bound$.pipe(map((x) => diffLatLngBoundPoints(x)), shareReplay(1));
|
|
613
575
|
boundWrapsAroundWorld$ = this.bound$.pipe(map((x) => latLngBoundWrapsMap(x)), distinctUntilChanged(), shareReplay(1));
|
|
@@ -647,10 +609,10 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
647
609
|
_setError = this.updater((state, error) => ({ ...state, error }));
|
|
648
610
|
clearDrawerContent = this.updater((state) => setDrawerContent(state, undefined));
|
|
649
611
|
setDrawerContent = this.updater(setDrawerContent);
|
|
650
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
651
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
612
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
613
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStore });
|
|
652
614
|
}
|
|
653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStore, decorators: [{
|
|
654
616
|
type: Injectable
|
|
655
617
|
}], ctorParameters: () => [] });
|
|
656
618
|
function setDrawerContent(state, drawerContent) {
|
|
@@ -682,10 +644,10 @@ class DbxMapboxChangeService {
|
|
|
682
644
|
this._applyChanges.complete();
|
|
683
645
|
this._applyChangesSub.destroy();
|
|
684
646
|
}
|
|
685
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
686
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
647
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxChangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
648
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxChangeService, providedIn: null });
|
|
687
649
|
}
|
|
688
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxChangeService, decorators: [{
|
|
689
651
|
type: Injectable,
|
|
690
652
|
args: [{
|
|
691
653
|
providedIn: null
|
|
@@ -706,10 +668,10 @@ class DbxMapboxInjectionStore extends ComponentStore {
|
|
|
706
668
|
// MARK: State Changes
|
|
707
669
|
addInjectionConfig = this.updater(updateDbxMapboxMapInjectionStoreStateWithInjectionConfig);
|
|
708
670
|
removeInjectionConfigWithKey = this.updater(updateDbxMapboxMapInjectionStoreStateWithRemovedKey);
|
|
709
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
710
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
671
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
672
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStore });
|
|
711
673
|
}
|
|
712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStore, decorators: [{
|
|
713
675
|
type: Injectable
|
|
714
676
|
}], ctorParameters: () => [] });
|
|
715
677
|
/**
|
|
@@ -746,12 +708,12 @@ function updateDbxMapboxMapInjectionStoreStateWithRemovedKey(state, key) {
|
|
|
746
708
|
class DbxMapboxInjectionComponent {
|
|
747
709
|
dbxMapboxMapKeyInjectionStore = inject(DbxMapboxInjectionStore);
|
|
748
710
|
entriesSignal = toSignal(this.dbxMapboxMapKeyInjectionStore.allInjectionConfigs$);
|
|
749
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
750
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
711
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
712
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxMapboxInjectionComponent, isStandalone: true, selector: "dbx-mapbox-injection", ngImport: i0, template: `
|
|
751
713
|
<dbx-injection-array [entries]="entriesSignal()"></dbx-injection-array>
|
|
752
714
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionArrayComponent, selector: "dbx-injection-array", inputs: ["entries"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
753
715
|
}
|
|
754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionComponent, decorators: [{
|
|
755
717
|
type: Component,
|
|
756
718
|
args: [{
|
|
757
719
|
selector: 'dbx-mapbox-injection',
|
|
@@ -769,17 +731,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
769
731
|
*/
|
|
770
732
|
class DbxMapboxInjectionStoreProviderBlock {
|
|
771
733
|
dbxMapboxInjectionStore = inject(DbxMapboxInjectionStore, { skipSelf: true });
|
|
772
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
773
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
734
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
735
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock });
|
|
774
736
|
}
|
|
775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock, decorators: [{
|
|
776
738
|
type: Injectable
|
|
777
739
|
}] });
|
|
778
740
|
class DbxMapboxInjectionStoreInjectionBlockDirective {
|
|
779
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
780
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
741
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStoreInjectionBlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
742
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: DbxMapboxInjectionStoreInjectionBlockDirective, isStandalone: true, selector: "[dbxMapboxInjectionStoreParentBlocker]", providers: [DbxMapboxInjectionStoreProviderBlock], ngImport: i0 });
|
|
781
743
|
}
|
|
782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxInjectionStoreInjectionBlockDirective, decorators: [{
|
|
783
745
|
type: Directive,
|
|
784
746
|
args: [{
|
|
785
747
|
selector: '[dbxMapboxInjectionStoreParentBlocker]',
|
|
@@ -826,8 +788,8 @@ class DbxMapboxMapDirective {
|
|
|
826
788
|
this.dbxMapboxMapStore.setMapService(this.mapService);
|
|
827
789
|
}
|
|
828
790
|
}
|
|
829
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
830
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
791
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
792
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: DbxMapboxMapDirective, isStandalone: true, selector: "[dbxMapboxMap]", providers: [
|
|
831
793
|
{
|
|
832
794
|
provide: MAP_COMPONENT_INITIALIZATION_OPTIONS,
|
|
833
795
|
useFactory: (dbxMapboxService) => dbxMapboxService.initializationOptions(),
|
|
@@ -835,7 +797,7 @@ class DbxMapboxMapDirective {
|
|
|
835
797
|
}
|
|
836
798
|
], ngImport: i0 });
|
|
837
799
|
}
|
|
838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapDirective, decorators: [{
|
|
839
801
|
type: Directive,
|
|
840
802
|
args: [{
|
|
841
803
|
selector: '[dbxMapboxMap]',
|
|
@@ -856,10 +818,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
856
818
|
class DbxMapboxLayoutDrawerComponent {
|
|
857
819
|
dbxMapboxMapStore = inject(DbxMapboxMapStore);
|
|
858
820
|
drawerConfigSignal = toSignal(this.dbxMapboxMapStore.drawerContent$);
|
|
859
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
860
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
821
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxLayoutDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
822
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxMapboxLayoutDrawerComponent, isStandalone: true, selector: "dbx-mapbox-layout-drawer", host: { classAttribute: "dbx-mapbox-layout-drawer" }, ngImport: i0, template: "<div>\n <dbx-injection [config]=\"drawerConfigSignal()\"></dbx-injection>\n</div>\n", dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
861
823
|
}
|
|
862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxLayoutDrawerComponent, decorators: [{
|
|
863
825
|
type: Component,
|
|
864
826
|
args: [{ selector: 'dbx-mapbox-layout-drawer', host: {
|
|
865
827
|
class: 'dbx-mapbox-layout-drawer'
|
|
@@ -1000,10 +962,10 @@ class DbxMapboxLayoutComponent {
|
|
|
1000
962
|
}
|
|
1001
963
|
this.isDrawerOpenSignal.set(open);
|
|
1002
964
|
}
|
|
1003
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1004
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
965
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
966
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: DbxMapboxLayoutComponent, isStandalone: true, selector: "dbx-mapbox-layout", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, forceHasDrawerContent: { classPropertyName: "forceHasDrawerContent", publicName: "forceHasDrawerContent", isSignal: true, isRequired: false, transformFunction: null }, drawerButtonColor: { classPropertyName: "drawerButtonColor", publicName: "drawerButtonColor", isSignal: true, isRequired: false, transformFunction: null }, openDrawer: { classPropertyName: "openDrawer", publicName: "openDrawer", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { drawerOpenedChange: "drawerOpenedChange" }, host: { properties: { "style.--mat-sidenav-container-width": "dbxMapboxService.drawerWidth" } }, viewQueries: [{ propertyName: "drawerContainer", first: true, predicate: MatDrawerContainer, descendants: true, isSignal: true }, { propertyName: "drawerContainerElement", first: true, predicate: MatDrawerContainer, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "drawerContent", first: true, predicate: ["drawerContent"], descendants: true, isSignal: true }], ngImport: i0, template: "<mat-drawer-container #containerElement class=\"dbx-mapbox-layout-container\" [ngClass]=\"drawerClassesSignal()\" [hasBackdrop]=\"false\">\n <mat-drawer class=\"dbx-mapbox-layout-drawer\" #drawer (openedChange)=\"drawerOpened($event)\" [opened]=\"isOpenAndHasContentSignal()\" [mode]=\"mode()\" [position]=\"positionSignal()\">\n <div class=\"dbx-mapbox-layout-drawer-content\" [ngClass]=\"drawerClassesSignal()\">\n <ng-content select=\"[drawer]\"></ng-content>\n <dbx-mapbox-layout-drawer></dbx-mapbox-layout-drawer>\n </div>\n </mat-drawer>\n <mat-drawer-content #content class=\"dbx-mapbox-layout-content\" (dbxResized)=\"viewResized($event)\">\n <button mat-icon-button (click)=\"toggleDrawer()\" class=\"dbx-mapbox-layout-drawer-button\" [dbxColor]=\"drawerButtonColor()\">\n <mat-icon>{{ buttonIconSignal() }}</mat-icon>\n </button>\n <ng-content></ng-content>\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".dbx-mapbox-layout-container{height:100%;max-width:100%}.dbx-mapbox-layout-container .mat-drawer-container{height:100%}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer{max-width:calc(100% - var(--dbx-mapbox-min-width-var, 33px))}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer-content{height:100%;width:100%;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{position:absolute;z-index:2;top:40%;border:none;display:flex;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button{padding-left:0}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button ::ng-deep>.mat-mdc-button-persistent-ripple{border-radius:unset}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button.dbx-color{color:var(--dbx-color-current, transparent);background:color-mix(in srgb,var(--dbx-bg-color-current, transparent) var(--dbx-color-bg-tone, 100%),transparent)}.left-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{left:0;border-radius:0 20px 20px 0}.right-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{right:0;border-radius:20px 0 0 20px}.has-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.has-drawer-content.open-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.no-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:0px}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button mat-icon{padding-left:8px}\n"], dependencies: [{ kind: "directive", type: DbxResizedDirective, selector: "[dbxResized]", outputs: ["dbxResized"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: DbxMapboxLayoutDrawerComponent, selector: "dbx-mapbox-layout-drawer" }, { kind: "component", type: MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: MatDrawerContent, selector: "mat-drawer-content" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: DbxColorDirective, selector: "[dbxColor]", inputs: ["dbxColor", "dbxColorTone"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1005
967
|
}
|
|
1006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxLayoutComponent, decorators: [{
|
|
1007
969
|
type: Component,
|
|
1008
970
|
args: [{ selector: 'dbx-mapbox-layout', imports: [DbxResizedDirective, NgClass, DbxMapboxLayoutDrawerComponent, MatDrawer, MatDrawerContainer, MatDrawerContent, MatIconModule, MatIconButton, DbxColorDirective], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, host: {
|
|
1009
971
|
'[style.--mat-sidenav-container-width]': 'dbxMapboxService.drawerWidth'
|
|
@@ -1041,12 +1003,7 @@ class DbxMapboxMenuComponent {
|
|
|
1041
1003
|
constructor() {
|
|
1042
1004
|
cleanSubscription(this.active$
|
|
1043
1005
|
.pipe(switchMap((active) => {
|
|
1044
|
-
|
|
1045
|
-
return this.dbxMapboxMapStore.rightClickEvent$;
|
|
1046
|
-
}
|
|
1047
|
-
else {
|
|
1048
|
-
return of();
|
|
1049
|
-
}
|
|
1006
|
+
return active ? this.dbxMapboxMapStore.rightClickEvent$ : of();
|
|
1050
1007
|
}), filter(Boolean))
|
|
1051
1008
|
.subscribe((event) => {
|
|
1052
1009
|
const menu = this.matMenuTrigger.menu;
|
|
@@ -1076,10 +1033,10 @@ class DbxMapboxMenuComponent {
|
|
|
1076
1033
|
}
|
|
1077
1034
|
});
|
|
1078
1035
|
}
|
|
1079
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1080
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
1036
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1037
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: DbxMapboxMenuComponent, isStandalone: true, selector: "dbx-mapbox-menu", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.top": "posSignal().y", "style.left": "posSignal().x" }, styleAttribute: "visibility: hidden; position: fixed" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1081
1038
|
}
|
|
1082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMenuComponent, decorators: [{
|
|
1083
1040
|
type: Component,
|
|
1084
1041
|
args: [{
|
|
1085
1042
|
selector: 'dbx-mapbox-menu',
|
|
@@ -1099,17 +1056,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
1099
1056
|
*/
|
|
1100
1057
|
class DbxMapboxMapStoreProviderBlock {
|
|
1101
1058
|
dbxMapboxMapStore = inject(DbxMapboxMapStore, { skipSelf: true });
|
|
1102
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1103
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1059
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStoreProviderBlock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1060
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStoreProviderBlock });
|
|
1104
1061
|
}
|
|
1105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStoreProviderBlock, decorators: [{
|
|
1106
1063
|
type: Injectable
|
|
1107
1064
|
}] });
|
|
1108
1065
|
class DbxMapboxMapStoreInjectionBlockDirective {
|
|
1109
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1110
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1066
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStoreInjectionBlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1067
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: DbxMapboxMapStoreInjectionBlockDirective, isStandalone: true, selector: "[dbxMapboxStoreParentBlocker]", providers: [DbxMapboxMapStoreProviderBlock], ngImport: i0 });
|
|
1111
1068
|
}
|
|
1112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMapStoreInjectionBlockDirective, decorators: [{
|
|
1113
1070
|
type: Directive,
|
|
1114
1071
|
args: [{
|
|
1115
1072
|
selector: '[dbxMapboxStoreParentBlocker]',
|
|
@@ -1229,8 +1186,8 @@ class DbxMapboxMarkerComponent {
|
|
|
1229
1186
|
ngOnDestroy() {
|
|
1230
1187
|
this._dbxMapboxChangeService?.emitMarkerDestroyed();
|
|
1231
1188
|
}
|
|
1232
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1233
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1189
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1190
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxMapboxMarkerComponent, isStandalone: true, selector: "dbx-mapbox-marker", inputs: { marker: { classPropertyName: "marker", publicName: "marker", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
1234
1191
|
<mgl-marker [lngLat]="latLngSignal()">
|
|
1235
1192
|
<dbx-anchor [anchor]="marker()?.anchor">
|
|
1236
1193
|
<div class="dbx-mapbox-marker" [ngClass]="presentationCssClassSignal()">
|
|
@@ -1247,7 +1204,7 @@ class DbxMapboxMarkerComponent {
|
|
|
1247
1204
|
</mgl-marker>
|
|
1248
1205
|
`, isInline: true, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip{flex-direction:row;font-size:1em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-icon-content{width:18px;height:18px;font-size:18px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-label{padding-left:3px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-icon-content{padding:0!important;width:16px;height:16px;font-size:16px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content{display:none}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content .dbx-mapbox-marker-label{padding-left:0}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-label{padding-left:4px}\n"], dependencies: [{ kind: "component", type: MarkerComponent, selector: "mgl-marker", inputs: ["offset", "anchor", "clickTolerance", "feature", "lngLat", "draggable", "popupShown", "className", "zIndex", "pitchAlignment", "rotationAlignment"], outputs: ["markerDragStart", "markerDragEnd", "markerDrag"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1249
1206
|
}
|
|
1250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMarkerComponent, decorators: [{
|
|
1251
1208
|
type: Component,
|
|
1252
1209
|
args: [{ selector: 'dbx-mapbox-marker', template: `
|
|
1253
1210
|
<mgl-marker [lngLat]="latLngSignal()">
|
|
@@ -1276,24 +1233,19 @@ class DbxMapboxMarkersComponent {
|
|
|
1276
1233
|
markersSignal = computed(() => {
|
|
1277
1234
|
const data = this.data();
|
|
1278
1235
|
const markerFactory = this.markerFactory();
|
|
1279
|
-
|
|
1280
|
-
return data.map(markerFactory);
|
|
1281
|
-
}
|
|
1282
|
-
else {
|
|
1283
|
-
return [];
|
|
1284
|
-
}
|
|
1236
|
+
return data?.length && markerFactory ? data.map(markerFactory) : [];
|
|
1285
1237
|
}, ...(ngDevMode ? [{ debugName: "markersSignal" }] : /* istanbul ignore next */ []));
|
|
1286
1238
|
trackMarkerById(index, marker) {
|
|
1287
1239
|
return marker.id ?? `__MID__${index}_`;
|
|
1288
1240
|
}
|
|
1289
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1290
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1241
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMarkersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1242
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DbxMapboxMarkersComponent, isStandalone: true, selector: "dbx-mapbox-markers", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, markerFactory: { classPropertyName: "markerFactory", publicName: "markerFactory", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
1291
1243
|
@for (marker of markersSignal(); track trackMarkerById($index, marker)) {
|
|
1292
1244
|
<dbx-mapbox-marker [marker]="marker"></dbx-mapbox-marker>
|
|
1293
1245
|
}
|
|
1294
1246
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxMapboxMarkerComponent, selector: "dbx-mapbox-marker", inputs: ["marker"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1295
1247
|
}
|
|
1296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxMarkersComponent, decorators: [{
|
|
1297
1249
|
type: Component,
|
|
1298
1250
|
args: [{
|
|
1299
1251
|
selector: 'dbx-mapbox-markers',
|
|
@@ -1324,10 +1276,10 @@ class DbxMapboxLayoutVirtualResizeSyncComponent {
|
|
|
1324
1276
|
constructor() {
|
|
1325
1277
|
cleanSubscription(this.dbxMapboxLayoutComponent.dbxMapboxMapStore.setMinimumVirtualViewportSize(this.resizedVector$));
|
|
1326
1278
|
}
|
|
1327
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1328
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxLayoutVirtualResizeSyncComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1280
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: DbxMapboxLayoutVirtualResizeSyncComponent, isStandalone: true, selector: "[dbxMapboxLayoutVirtualResizeSync]", ngImport: i0 });
|
|
1329
1281
|
}
|
|
1330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxLayoutVirtualResizeSyncComponent, decorators: [{
|
|
1331
1283
|
type: Directive,
|
|
1332
1284
|
args: [{
|
|
1333
1285
|
selector: '[dbxMapboxLayoutVirtualResizeSync]',
|
|
@@ -1351,8 +1303,8 @@ const importsAndExports = [
|
|
|
1351
1303
|
MarkerComponent
|
|
1352
1304
|
];
|
|
1353
1305
|
class DbxMapboxModule {
|
|
1354
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1355
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
1306
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1307
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxModule, imports: [
|
|
1356
1308
|
//
|
|
1357
1309
|
DbxMapboxLayoutVirtualResizeSyncComponent,
|
|
1358
1310
|
DbxMapboxMapDirective,
|
|
@@ -1379,7 +1331,7 @@ class DbxMapboxModule {
|
|
|
1379
1331
|
// ngx-mapbox-gl
|
|
1380
1332
|
MapComponent,
|
|
1381
1333
|
MarkerComponent] });
|
|
1382
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
1334
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxModule, imports: [DbxMapboxLayoutComponent,
|
|
1383
1335
|
DbxMapboxLayoutDrawerComponent,
|
|
1384
1336
|
DbxMapboxInjectionComponent,
|
|
1385
1337
|
DbxMapboxMarkerComponent,
|
|
@@ -1388,7 +1340,7 @@ class DbxMapboxModule {
|
|
|
1388
1340
|
MapComponent,
|
|
1389
1341
|
MarkerComponent] });
|
|
1390
1342
|
}
|
|
1391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxMapboxModule, decorators: [{
|
|
1392
1344
|
type: NgModule,
|
|
1393
1345
|
args: [{
|
|
1394
1346
|
imports: importsAndExports,
|