@dereekb/dbx-web 9.7.2 → 9.7.5

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.
Files changed (53) hide show
  1. package/esm2020/lib/layout/list/index.mjs +2 -1
  2. package/esm2020/lib/layout/list/list.grid.view.component.mjs +3 -3
  3. package/esm2020/lib/layout/list/list.track.mjs +9 -0
  4. package/esm2020/lib/layout/list/list.view.directive.mjs +1 -1
  5. package/esm2020/lib/layout/list/list.view.mjs +1 -1
  6. package/esm2020/lib/layout/list/list.view.value.component.mjs +5 -3
  7. package/esm2020/lib/layout/text/text.chips.component.mjs +6 -3
  8. package/esm2020/mapbox/lib/index.mjs +2 -1
  9. package/esm2020/mapbox/lib/mapbox.cdref.service.mjs +3 -1
  10. package/esm2020/mapbox/lib/mapbox.change.service.mjs +44 -0
  11. package/esm2020/mapbox/lib/mapbox.marker.component.mjs +21 -11
  12. package/esm2020/mapbox/lib/mapbox.marker.mjs +1 -1
  13. package/esm2020/mapbox/lib/mapbox.markers.component.mjs +14 -17
  14. package/esm2020/mapbox/lib/mapbox.mjs +1 -1
  15. package/esm2020/mapbox/lib/mapbox.rxjs.mjs +2 -2
  16. package/esm2020/mapbox/lib/mapbox.store.mjs +14 -6
  17. package/fesm2015/dereekb-dbx-web-mapbox.mjs +87 -31
  18. package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  19. package/fesm2015/dereekb-dbx-web.mjs +21 -7
  20. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  21. package/fesm2020/dereekb-dbx-web-mapbox.mjs +82 -26
  22. package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  23. package/fesm2020/dereekb-dbx-web.mjs +21 -7
  24. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  25. package/lib/layout/list/index.d.ts +1 -0
  26. package/lib/layout/list/list.track.d.ts +6 -0
  27. package/lib/layout/list/list.view.d.ts +5 -1
  28. package/lib/layout/list/list.view.directive.d.ts +2 -1
  29. package/lib/layout/list/list.view.value.component.d.ts +2 -0
  30. package/lib/layout/text/text.chips.component.d.ts +1 -0
  31. package/mapbox/esm2020/lib/index.mjs +2 -1
  32. package/mapbox/esm2020/lib/mapbox.cdref.service.mjs +3 -1
  33. package/mapbox/esm2020/lib/mapbox.change.service.mjs +44 -0
  34. package/mapbox/esm2020/lib/mapbox.marker.component.mjs +21 -11
  35. package/mapbox/esm2020/lib/mapbox.marker.mjs +1 -1
  36. package/mapbox/esm2020/lib/mapbox.markers.component.mjs +14 -17
  37. package/mapbox/esm2020/lib/mapbox.mjs +1 -1
  38. package/mapbox/esm2020/lib/mapbox.rxjs.mjs +2 -2
  39. package/mapbox/esm2020/lib/mapbox.store.mjs +14 -6
  40. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +87 -31
  41. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  42. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +82 -26
  43. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  44. package/mapbox/lib/index.d.ts +1 -0
  45. package/mapbox/lib/mapbox.cdref.service.d.ts +2 -0
  46. package/mapbox/lib/mapbox.change.service.d.ts +21 -0
  47. package/mapbox/lib/mapbox.d.ts +2 -1
  48. package/mapbox/lib/mapbox.marker.component.d.ts +9 -5
  49. package/mapbox/lib/mapbox.marker.d.ts +3 -3
  50. package/mapbox/lib/mapbox.markers.component.d.ts +4 -6
  51. package/mapbox/lib/mapbox.store.d.ts +1 -0
  52. package/mapbox/package.json +3 -3
  53. package/package.json +3 -3
@@ -1,18 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Host, Optional, Inject, Directive, Component, ElementRef, ViewChild, Input, ChangeDetectionStrategy, SkipSelf, Injector, NgModule } from '@angular/core';
3
3
  import * as i2 from '@dereekb/dbx-core';
4
- import { safeMarkForCheck, safeDetectChanges, AbstractSubscriptionDirective, tapSafeMarkForCheck, DbxInjectionComponentModule } from '@dereekb/dbx-core';
5
- import * as i2$1 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
4
+ import { safeMarkForCheck, safeDetectChanges, AbstractSubscriptionDirective, DbxInjectionComponentModule } from '@dereekb/dbx-core';
5
+ import { switchMap as switchMap$1 } from 'rxjs/operators';
7
6
  import { cleanup, filterMaybe, onTrueToFalse, SubscriptionObject, asObservable } from '@dereekb/rxjs';
8
- import { latLngPointFunction, latLngBoundFunction, isSameLatLngPoint, isDefaultLatLngPoint, swMostLatLngPoint, neMostLatLngPoint, isSameLatLngBound, diffLatLngBoundPoints, latLngBoundWrapsMap, isWithinLatLngBoundFunction, overlapsLatLngBoundFunction, vectorsAreEqual, latLngBoundCenterPoint, addLatLngPoints, latLngPoint, DestroyFunctionObject, getValueFromGetter, LAT_LONG_10M_PRECISION, roundNumberToStepFunction } from '@dereekb/util';
7
+ import { switchMap, NEVER, defaultIfEmpty, map, tap, distinctUntilChanged, shareReplay, of, combineLatest, filter, first, startWith, interval, Subject, merge, throttleTime, BehaviorSubject, combineLatestWith } from 'rxjs';
8
+ import { latLngPointFunction, latLngBoundFunction, filterUndefinedValues, isSameLatLngPoint, isDefaultLatLngPoint, swMostLatLngPoint, neMostLatLngPoint, isSameLatLngBound, diffLatLngBoundPoints, latLngBoundWrapsMap, isWithinLatLngBoundFunction, overlapsLatLngBoundFunction, vectorsAreEqual, latLngBoundCenterPoint, addLatLngPoints, latLngPoint, DestroyFunctionObject, getValueFromGetter, LAT_LONG_10M_PRECISION, roundNumberToStepFunction } from '@dereekb/util';
9
9
  import { ComponentStore } from '@ngrx/component-store';
10
- import { switchMap, NEVER, defaultIfEmpty, map, tap, distinctUntilChanged, shareReplay, of, combineLatest, filter, first, startWith, interval, Subject, BehaviorSubject, throttleTime, combineLatestWith } from 'rxjs';
11
10
  import * as MapboxGl from 'mapbox-gl';
12
11
  import { bounds } from '@mapbox/geo-viewport';
12
+ import * as i2$1 from '@angular/common';
13
+ import { CommonModule } from '@angular/common';
13
14
  import * as i1 from 'ngx-mapbox-gl';
14
15
  import { NgxMapboxGLModule } from 'ngx-mapbox-gl';
15
- import * as i3$1 from '@dereekb/dbx-web';
16
+ import * as i4$1 from '@dereekb/dbx-web';
16
17
  import { dbxColorBackground, disableRightClickInCdkBackdrop, DbxRouterAnchorModule } from '@dereekb/dbx-web';
17
18
  import * as i3 from '@angular/material/sidenav';
18
19
  import { MatDrawerContainer, MatSidenavModule } from '@angular/material/sidenav';
@@ -26,6 +27,8 @@ import * as i2$2 from '@angular/material/menu';
26
27
 
27
28
  /**
28
29
  * Provided in the parent component that allows children to import the parent's cdRef for use.
30
+ *
31
+ * @Deprecated consider using DbxMapboxChangeService instead.
29
32
  */
30
33
  class DbxMapboxChangeDetectorRefService {
31
34
  constructor(cdRef) {
@@ -110,7 +113,7 @@ class DbxMapboxMapStore extends ComponentStore {
110
113
  retainContent: true
111
114
  });
112
115
  this.dbxMapboxService = dbxMapboxService;
113
- this.safeLatLngPoint = latLngPointFunction();
116
+ this.safeLatLngPoint = latLngPointFunction({ wrap: true });
114
117
  this.latLngPoint = latLngPointFunction({ wrap: false, validate: false });
115
118
  this.latLngBound = latLngBoundFunction({ pointFunction: this.latLngPoint });
116
119
  // MARK: Effects
@@ -193,6 +196,14 @@ class DbxMapboxMapStore extends ComponentStore {
193
196
  return this.mapInstance$.pipe(tap((map) => map.setZoom(zoom)));
194
197
  }));
195
198
  });
199
+ this.setZoomRange = this.effect((input) => {
200
+ return input.pipe(switchMap((zoomRange) => {
201
+ return this.mapInstance$.pipe(tap((map) => {
202
+ map.setMinZoom(zoomRange.min || null);
203
+ map.setMaxZoom(zoomRange.max || null);
204
+ }));
205
+ }));
206
+ });
196
207
  this.setMinZoom = this.effect((input) => {
197
208
  return input.pipe(switchMap((zoom) => {
198
209
  return this.mapInstance$.pipe(tap((map) => map.setMinZoom(zoom)));
@@ -304,21 +315,21 @@ class DbxMapboxMapStore extends ComponentStore {
304
315
  return input.pipe(switchMap((x) => {
305
316
  const inputCenter = x.center ?? x.to?.center;
306
317
  const center = inputCenter ? this.safeLatLngPoint(inputCenter) : undefined;
307
- return this.mapInstance$.pipe(tap((map) => map.jumpTo({ ...x.to, center }, x.eventData)));
318
+ return this.mapInstance$.pipe(tap((map) => map.jumpTo(filterUndefinedValues({ ...x.to, center }), x.eventData)));
308
319
  }));
309
320
  });
310
321
  this.easeTo = this.effect((input) => {
311
322
  return input.pipe(switchMap((x) => {
312
323
  const inputCenter = x.center ?? x.to?.center;
313
324
  const center = inputCenter ? this.safeLatLngPoint(inputCenter) : undefined;
314
- return this.mapInstance$.pipe(tap((map) => map.easeTo({ ...x.to, center }, x.eventData)));
325
+ return this.mapInstance$.pipe(tap((map) => map.easeTo(filterUndefinedValues({ ...x.to, center }), x.eventData)));
315
326
  }));
316
327
  });
317
328
  this.flyTo = this.effect((input) => {
318
329
  return input.pipe(switchMap((x) => {
319
330
  const inputCenter = x.center ?? x.to?.center;
320
331
  const center = inputCenter ? this.safeLatLngPoint(inputCenter) : undefined;
321
- return this.mapInstance$.pipe(tap((map) => map.flyTo({ ...x.to, center }, x.eventData)));
332
+ return this.mapInstance$.pipe(tap((map) => map.flyTo(filterUndefinedValues({ ...x.to, center }), x.eventData)));
322
333
  }));
323
334
  });
324
335
  this.resetPitchAndBearing = this.effect((input) => {
@@ -498,6 +509,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
498
509
  args: [DbxMapboxService]
499
510
  }] }]; } });
500
511
 
512
+ /**
513
+ * Provided in the parent component that allows children to emit events related to their lifecycles.
514
+ */
515
+ class DbxMapboxChangeService {
516
+ constructor(dbxMapboxMapStore) {
517
+ this.dbxMapboxMapStore = dbxMapboxMapStore;
518
+ this._markerDestroyed = new Subject();
519
+ this._applyChanges = new Subject();
520
+ this.markerDestroyed$ = this._markerDestroyed;
521
+ this.applyChanges$ = merge(this._applyChanges, this.markerDestroyed$).pipe(throttleTime(100, undefined, { leading: false, trailing: true }));
522
+ this._applyChangesSub = new SubscriptionObject(this.dbxMapboxMapStore.mapService$
523
+ .pipe(switchMap$1((mapService) => this.applyChanges$.pipe(tap(() => {
524
+ mapService.applyChanges();
525
+ }))))
526
+ .subscribe());
527
+ }
528
+ applyChanges() {
529
+ this._applyChanges.next();
530
+ }
531
+ emitMarkerDestroyed() {
532
+ this._markerDestroyed.next();
533
+ }
534
+ ngOnDestroy() {
535
+ this._markerDestroyed.complete();
536
+ this._applyChanges.complete();
537
+ this._applyChangesSub.destroy();
538
+ }
539
+ }
540
+ DbxMapboxChangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxChangeService, deps: [{ token: DbxMapboxMapStore }], target: i0.ɵɵFactoryTarget.Injectable });
541
+ DbxMapboxChangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxChangeService, providedIn: null });
542
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxChangeService, decorators: [{
543
+ type: Injectable,
544
+ args: [{
545
+ providedIn: null
546
+ }]
547
+ }], ctorParameters: function () { return [{ type: DbxMapboxMapStore }]; } });
548
+
501
549
  /**
502
550
  * Directive that configures a MapComponent with content from DbxMapboxService. Connects a host MapService to a parent DbxMapboxMapStore if available.
503
551
  */
@@ -847,6 +895,9 @@ function provideMapboxStoreIfParentIsUnavailable() {
847
895
  }
848
896
 
849
897
  class DbxMapboxMarkerComponent {
898
+ constructor(_dbxMapboxChangeService) {
899
+ this._dbxMapboxChangeService = _dbxMapboxChangeService;
900
+ }
850
901
  get marker() {
851
902
  return this._marker;
852
903
  }
@@ -904,11 +955,14 @@ class DbxMapboxMarkerComponent {
904
955
  };
905
956
  return style;
906
957
  }
958
+ ngOnDestroy() {
959
+ this._dbxMapboxChangeService?.emitMarkerDestroyed();
960
+ }
907
961
  }
908
962
  DbxMapboxMarkerComponent._latLngPoint = latLngPointFunction({ wrap: true });
909
- DbxMapboxMarkerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
963
+ DbxMapboxMarkerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxMarkerComponent, deps: [{ token: DbxMapboxChangeService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
910
964
  DbxMapboxMarkerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxMapboxMarkerComponent, selector: "dbx-mapbox-marker", inputs: { marker: "marker" }, ngImport: i0, template: `
911
- <mgl-marker *ngIf="marker" [lngLat]="latLng">
965
+ <mgl-marker [lngLat]="latLng">
912
966
  <dbx-anchor [anchor]="anchor">
913
967
  <div class="dbx-mapbox-marker">
914
968
  <div class="dbx-mapbox-marker-content" [ngStyle]="style">
@@ -918,11 +972,11 @@ DbxMapboxMarkerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
918
972
  </div>
919
973
  </dbx-anchor>
920
974
  </mgl-marker>
921
- `, isInline: true, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "component", type: i1.MarkerComponent, selector: "mgl-marker", inputs: ["offset", "anchor", "clickTolerance", "feature", "lngLat", "draggable", "popupShown", "className", "pitchAlignment", "rotationAlignment"], outputs: ["markerDragStart", "markerDragEnd", "markerDrag", "dragStart", "dragEnd", "drag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
975
+ `, isInline: true, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$1.DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "component", type: i1.MarkerComponent, selector: "mgl-marker", inputs: ["offset", "anchor", "clickTolerance", "feature", "lngLat", "draggable", "popupShown", "className", "pitchAlignment", "rotationAlignment"], outputs: ["markerDragStart", "markerDragEnd", "markerDrag", "dragStart", "dragEnd", "drag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
922
976
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxMarkerComponent, decorators: [{
923
977
  type: Component,
924
978
  args: [{ selector: 'dbx-mapbox-marker', template: `
925
- <mgl-marker *ngIf="marker" [lngLat]="latLng">
979
+ <mgl-marker [lngLat]="latLng">
926
980
  <dbx-anchor [anchor]="anchor">
927
981
  <div class="dbx-mapbox-marker">
928
982
  <div class="dbx-mapbox-marker-content" [ngStyle]="style">
@@ -933,7 +987,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
933
987
  </dbx-anchor>
934
988
  </mgl-marker>
935
989
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}\n"] }]
936
- }], propDecorators: { marker: [{
990
+ }], ctorParameters: function () { return [{ type: DbxMapboxChangeService, decorators: [{
991
+ type: Optional
992
+ }] }]; }, propDecorators: { marker: [{
937
993
  type: Input
938
994
  }] } });
939
995
 
@@ -941,8 +997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
941
997
  * Component used to render a set of DbxMapboxMarker values from the input data and marker factory.
942
998
  */
943
999
  class DbxMapboxMarkersComponent {
944
- constructor(cdRefService) {
945
- this.cdRefService = cdRefService;
1000
+ constructor() {
946
1001
  this._data = new BehaviorSubject(undefined);
947
1002
  this._markerFactory = new BehaviorSubject(undefined);
948
1003
  this.markers$ = combineLatest([this._data.pipe(distinctUntilChanged()), this._markerFactory.pipe(distinctUntilChanged())]).pipe(map(([data, markerFactory]) => {
@@ -952,7 +1007,10 @@ class DbxMapboxMarkersComponent {
952
1007
  else {
953
1008
  return [];
954
1009
  }
955
- }), tapSafeMarkForCheck(this.cdRefService?.cdRef), shareReplay(1));
1010
+ }), shareReplay(1));
1011
+ }
1012
+ trackMarkerById(index, marker) {
1013
+ return marker.id;
956
1014
  }
957
1015
  get data() {
958
1016
  return this._data.value;
@@ -971,22 +1029,20 @@ class DbxMapboxMarkersComponent {
971
1029
  this._markerFactory.complete();
972
1030
  }
973
1031
  }
974
- DbxMapboxMarkersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxMarkersComponent, deps: [{ token: DbxMapboxChangeDetectorRefService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1032
+ DbxMapboxMarkersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxMarkersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
975
1033
  DbxMapboxMarkersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxMapboxMarkersComponent, selector: "dbx-mapbox-markers", inputs: { data: "data", markerFactory: "markerFactory" }, ngImport: i0, template: `
976
- <dbx-mapbox-marker *ngFor="let marker of markers$ | async" [marker]="marker"></dbx-mapbox-marker>
1034
+ <dbx-mapbox-marker *ngFor="let marker of markers$ | async; trackBy: trackMarkerById" [marker]="marker"></dbx-mapbox-marker>
977
1035
  `, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: DbxMapboxMarkerComponent, selector: "dbx-mapbox-marker", inputs: ["marker"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
978
1036
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxMapboxMarkersComponent, decorators: [{
979
1037
  type: Component,
980
1038
  args: [{
981
1039
  selector: 'dbx-mapbox-markers',
982
1040
  template: `
983
- <dbx-mapbox-marker *ngFor="let marker of markers$ | async" [marker]="marker"></dbx-mapbox-marker>
1041
+ <dbx-mapbox-marker *ngFor="let marker of markers$ | async; trackBy: trackMarkerById" [marker]="marker"></dbx-mapbox-marker>
984
1042
  `,
985
1043
  changeDetection: ChangeDetectionStrategy.OnPush
986
1044
  }]
987
- }], ctorParameters: function () { return [{ type: DbxMapboxChangeDetectorRefService, decorators: [{
988
- type: Optional
989
- }] }]; }, propDecorators: { data: [{
1045
+ }], propDecorators: { data: [{
990
1046
  type: Input
991
1047
  }], markerFactory: [{
992
1048
  type: Input
@@ -1125,7 +1181,7 @@ function filterByMapboxViewportBound(config) {
1125
1181
  };
1126
1182
  });
1127
1183
  }), combineLatestWith(boundDecisionObs), map(([items, boundFunction]) => {
1128
- let valuesInBounds = [];
1184
+ const valuesInBounds = [];
1129
1185
  items.forEach((item) => {
1130
1186
  if (boundFunction(item.bound)) {
1131
1187
  valuesInBounds.push(item.value);
@@ -1158,5 +1214,5 @@ function mapboxZoomLevel(input) {
1158
1214
  * Generated bundle index. Do not edit.
1159
1215
  */
1160
1216
 
1161
- export { DEFAULT_MAPBOX_CENTER, DEFAULT_MAPBOX_MAP_STORE_TIMER_REFRESH_PERIOD, DEFAULT_MAPBOX_STYLE, DEFAULT_MAPBOX_ZOOM, DbxMapboxChangeDetectorRefService, DbxMapboxConfig, DbxMapboxLayoutComponent, DbxMapboxLayoutDrawerComponent, DbxMapboxMapDirective, DbxMapboxMapStore, DbxMapboxMapStoreInjectionBlockDirective, DbxMapboxMapStoreProviderBlock, DbxMapboxMarkerComponent, DbxMapboxMarkersComponent, DbxMapboxMenuComponent, DbxMapboxModule, DbxMapboxService, KNOWN_MAPBOX_STYLES, MAPBOX_MAX_ZOOM_LEVEL, MAPBOX_MIN_ZOOM_LEVEL, dbxMapboxColoredDotStyle, filterByMapboxViewportBound, mapboxViewportBoundFunction, mapboxZoomLevel, provideMapboxStoreIfParentIsUnavailable };
1217
+ export { DEFAULT_MAPBOX_CENTER, DEFAULT_MAPBOX_MAP_STORE_TIMER_REFRESH_PERIOD, DEFAULT_MAPBOX_STYLE, DEFAULT_MAPBOX_ZOOM, DbxMapboxChangeDetectorRefService, DbxMapboxChangeService, DbxMapboxConfig, DbxMapboxLayoutComponent, DbxMapboxLayoutDrawerComponent, DbxMapboxMapDirective, DbxMapboxMapStore, DbxMapboxMapStoreInjectionBlockDirective, DbxMapboxMapStoreProviderBlock, DbxMapboxMarkerComponent, DbxMapboxMarkersComponent, DbxMapboxMenuComponent, DbxMapboxModule, DbxMapboxService, KNOWN_MAPBOX_STYLES, MAPBOX_MAX_ZOOM_LEVEL, MAPBOX_MIN_ZOOM_LEVEL, dbxMapboxColoredDotStyle, filterByMapboxViewportBound, mapboxViewportBoundFunction, mapboxZoomLevel, provideMapboxStoreIfParentIsUnavailable };
1162
1218
  //# sourceMappingURL=dereekb-dbx-web-mapbox.mjs.map