@dereekb/dbx-web 9.23.21 → 9.23.22

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 (31) hide show
  1. package/calendar/esm2020/lib/calendar.base.component.mjs +2 -2
  2. package/calendar/esm2020/lib/calendar.store.mjs +8 -3
  3. package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs +9 -4
  4. package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs.map +1 -1
  5. package/calendar/fesm2020/dereekb-dbx-web-calendar.mjs +9 -4
  6. package/calendar/fesm2020/dereekb-dbx-web-calendar.mjs.map +1 -1
  7. package/calendar/lib/calendar.store.d.ts +1 -0
  8. package/calendar/package.json +3 -3
  9. package/esm2020/calendar/lib/calendar.base.component.mjs +2 -2
  10. package/esm2020/calendar/lib/calendar.store.mjs +8 -3
  11. package/esm2020/mapbox/lib/mapbox.rxjs.mjs +1 -1
  12. package/esm2020/mapbox/lib/mapbox.store.mjs +10 -1
  13. package/fesm2015/dereekb-dbx-web-calendar.mjs +9 -4
  14. package/fesm2015/dereekb-dbx-web-calendar.mjs.map +1 -1
  15. package/fesm2015/dereekb-dbx-web-mapbox.mjs +57 -53
  16. package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  17. package/fesm2020/dereekb-dbx-web-calendar.mjs +9 -4
  18. package/fesm2020/dereekb-dbx-web-calendar.mjs.map +1 -1
  19. package/fesm2020/dereekb-dbx-web-mapbox.mjs +61 -53
  20. package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  21. package/mapbox/esm2020/lib/mapbox.rxjs.mjs +1 -1
  22. package/mapbox/esm2020/lib/mapbox.store.mjs +10 -1
  23. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +57 -53
  24. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  25. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +61 -53
  26. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  27. package/mapbox/lib/mapbox.rxjs.d.ts +2 -1
  28. package/mapbox/lib/mapbox.store.d.ts +3 -1
  29. package/mapbox/package.json +3 -3
  30. package/package.json +3 -3
  31. package/table/package.json +3 -3
@@ -3,13 +3,14 @@ import { LatLngPointInput, LatLngBound, LatLngBoundCheckFunction, RoundNumberToS
3
3
  import { OperatorFunction } from 'rxjs';
4
4
  import { MapboxZoomLevel } from './mapbox';
5
5
  import { MapboxViewportBoundFunction } from './mapbox.util';
6
+ export declare type FilterMapboxBoundReadItemValueFunction<T> = (value: T) => MapboxViewportBoundFunctionItemValue;
6
7
  export interface FilterMapboxBoundConfig<T> {
7
8
  boundFunctionObs: ObservableOrValue<MapboxViewportBoundFunction>;
8
9
  boundDecisionObs: ObservableOrValue<LatLngBoundCheckFunction>;
9
10
  /**
10
11
  * Reads the value from the input item.
11
12
  */
12
- readValue: (value: T) => MapboxViewportBoundFunctionItemValue;
13
+ readValue: FilterMapboxBoundReadItemValueFunction<T>;
13
14
  /**
14
15
  * Minimum precision to retain. Defaults to LAT_LONG_10M_PRECISION
15
16
  */
@@ -2,12 +2,13 @@ import { OnDestroy } from '@angular/core';
2
2
  import { IsWithinLatLngBoundFunction, LatLngBound, LatLngPointInput, LatLngPoint, Maybe, OverlapsLatLngBoundFunction, Vector } from '@dereekb/util';
3
3
  import { ComponentStore } from '@ngrx/component-store';
4
4
  import { MapService } from 'ngx-mapbox-gl';
5
- import { Observable, Subscription } from 'rxjs';
5
+ import { Observable, Subscription, OperatorFunction } from 'rxjs';
6
6
  import * as MapboxGl from 'mapbox-gl';
7
7
  import { DbxMapboxClickEvent, MapboxEaseTo, MapboxFitBounds, MapboxFitPositions, MapboxFlyTo, MapboxJumpTo, MapboxResetNorth, MapboxResetNorthPitch, MapboxRotateTo, MapboxSnapToNorth, MapboxStyleConfig, MapboxZoomLevel } from './mapbox';
8
8
  import { DbxMapboxService } from './mapbox.service';
9
9
  import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
10
10
  import { MapboxViewportBoundFunction } from './mapbox.util';
11
+ import { FilterMapboxBoundConfig, FilterMapboxBoundReadItemValueFunction } from './mapbox.rxjs';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare type MapboxMapLifecycleState = 'init' | 'load' | 'render' | 'idle';
13
14
  export declare type MapboxMapMoveState = 'init' | 'idle' | 'moving';
@@ -110,6 +111,7 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
110
111
  atNextIdle(): Observable<boolean>;
111
112
  calculateNextCenterWithOffset(inputOffset: LatLngPointInput): Observable<LatLngPoint>;
112
113
  calculateNextCenterOffsetWithScreenMarginChange(sizing: DbxMapboxMarginCalculationSizing): Observable<LatLngPoint>;
114
+ filterByViewportBound<T>(input: FilterMapboxBoundReadItemValueFunction<T> | Omit<FilterMapboxBoundConfig<T>, 'boundFunctionObs' | 'boundDecisionObs'>): OperatorFunction<T[], T[]>;
113
115
  readonly currentMapService$: Observable<Maybe<MapService>>;
114
116
  readonly mapService$: Observable<MapService>;
115
117
  readonly currentMapInstance$: Observable<Maybe<MapboxGl.Map>>;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/mapbox",
3
- "version": "9.23.21",
3
+ "version": "9.23.22",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.1.0",
6
6
  "@angular/core": "^14.1.0",
7
- "@dereekb/dbx-core": "9.23.21",
8
- "@dereekb/dbx-web": "9.23.21",
7
+ "@dereekb/dbx-core": "9.23.22",
8
+ "@dereekb/dbx-web": "9.23.22",
9
9
  "ngx-mapbox-gl": "^9.1.0",
10
10
  "mapbox-gl": "^2.9.2",
11
11
  "@mapbox/geo-viewport": "git+https://git@github.com/dereekb/geo-viewport#165513972f87dca23a20c177f4d173edc51b5e2f"
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web",
3
- "version": "9.23.21",
3
+ "version": "9.23.22",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0",
6
6
  "@angular/core": "^14.0.0",
7
7
  "linkify-string": "4.0.0-beta.5",
8
8
  "linkifyjs": "^4.0.0-beta.5",
9
9
  "@angular/material": "^14.2.0",
10
- "@dereekb/rxjs": "9.23.21",
11
- "@dereekb/dbx-core": "9.23.21",
10
+ "@dereekb/rxjs": "9.23.22",
11
+ "@dereekb/dbx-core": "9.23.22",
12
12
  "change-case": "^4.1.2",
13
13
  "@angular/flex-layout": "^14.0.0-beta.41",
14
14
  "ng-overlay-container": "^14.0.0",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/table",
3
- "version": "9.23.21",
3
+ "version": "9.23.22",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0",
7
- "@dereekb/dbx-core": "9.23.21",
7
+ "@dereekb/dbx-core": "9.23.22",
8
8
  "@angular/material": "^14.2.0",
9
9
  "@angular/forms": "^14.2.0",
10
- "@dereekb/dbx-web": "9.23.21"
10
+ "@dereekb/dbx-web": "9.23.22"
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.3.0"