@dereekb/dbx-web 9.24.19 → 9.24.21

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 (37) hide show
  1. package/calendar/esm2020/lib/calendar.store.mjs +2 -2
  2. package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs +1 -1
  3. package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs.map +1 -1
  4. package/calendar/fesm2020/dereekb-dbx-web-calendar.mjs +1 -1
  5. package/calendar/fesm2020/dereekb-dbx-web-calendar.mjs.map +1 -1
  6. package/calendar/package.json +2 -2
  7. package/esm2020/calendar/lib/calendar.store.mjs +2 -2
  8. package/esm2020/mapbox/lib/index.mjs +2 -1
  9. package/esm2020/mapbox/lib/mapbox.layout.component.mjs +13 -9
  10. package/esm2020/mapbox/lib/mapbox.layout.resize.sync.directive.mjs +38 -0
  11. package/esm2020/mapbox/lib/mapbox.module.mjs +5 -1
  12. package/esm2020/mapbox/lib/mapbox.store.mjs +61 -26
  13. package/fesm2015/dereekb-dbx-web-calendar.mjs +1 -1
  14. package/fesm2015/dereekb-dbx-web-calendar.mjs.map +1 -1
  15. package/fesm2015/dereekb-dbx-web-mapbox.mjs +109 -34
  16. package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  17. package/fesm2020/dereekb-dbx-web-calendar.mjs +1 -1
  18. package/fesm2020/dereekb-dbx-web-calendar.mjs.map +1 -1
  19. package/fesm2020/dereekb-dbx-web-mapbox.mjs +107 -34
  20. package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  21. package/mapbox/esm2020/lib/index.mjs +2 -1
  22. package/mapbox/esm2020/lib/mapbox.layout.component.mjs +13 -9
  23. package/mapbox/esm2020/lib/mapbox.layout.resize.sync.directive.mjs +38 -0
  24. package/mapbox/esm2020/lib/mapbox.module.mjs +5 -1
  25. package/mapbox/esm2020/lib/mapbox.store.mjs +61 -26
  26. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +109 -34
  27. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  28. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +107 -34
  29. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  30. package/mapbox/lib/index.d.ts +1 -0
  31. package/mapbox/lib/mapbox.layout.component.d.ts +3 -1
  32. package/mapbox/lib/mapbox.layout.resize.sync.directive.d.ts +15 -0
  33. package/mapbox/lib/mapbox.module.d.ts +18 -17
  34. package/mapbox/lib/mapbox.store.d.ts +31 -13
  35. package/mapbox/package.json +3 -3
  36. package/package.json +3 -3
  37. package/table/package.json +3 -3
@@ -6,6 +6,7 @@ export * from './mapbox.injection.store';
6
6
  export * from './mapbox.module';
7
7
  export * from './mapbox.layout.component';
8
8
  export * from './mapbox.layout.drawer.component';
9
+ export * from './mapbox.layout.resize.sync.directive';
9
10
  export * from './mapbox.marker';
10
11
  export * from './mapbox.marker.component';
11
12
  export * from './mapbox.markers.component';
@@ -18,7 +18,8 @@ export declare type DbxMapboxLayoutMode = 'side' | 'push';
18
18
  */
19
19
  export declare class DbxMapboxLayoutComponent extends SubscriptionObject implements OnInit, OnDestroy {
20
20
  readonly dbxMapboxMapStore: DbxMapboxMapStore;
21
- readonly container: MatDrawerContainer;
21
+ readonly containerElement: ElementRef;
22
+ readonly drawerContainer: MatDrawerContainer;
22
23
  readonly content: ElementRef;
23
24
  private _resized;
24
25
  private _updateMargins;
@@ -28,6 +29,7 @@ export declare class DbxMapboxLayoutComponent extends SubscriptionObject impleme
28
29
  private _openToggle;
29
30
  private _color;
30
31
  private _toggleSub;
32
+ readonly resized$: Observable<ResizedEvent>;
31
33
  readonly side$: Observable<DbxMapboxLayoutSide>;
32
34
  readonly mode$: Observable<DbxMapboxLayoutMode>;
33
35
  readonly hasContent$: Observable<boolean>;
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { SubscriptionObject } from '@dereekb/rxjs';
3
+ import { DbxMapboxLayoutComponent } from './mapbox.layout.component';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Directive that synchronizes a map's virtual size with the size of the element.
7
+ */
8
+ export declare class DbxMapboxLayoutVirtualResizeSyncComponent extends SubscriptionObject implements OnInit {
9
+ readonly dbxMapboxLayoutComponent: DbxMapboxLayoutComponent;
10
+ readonly resizedVector$: import("rxjs").Observable<import("@dereekb/util").Maybe<Partial<import("@dereekb/util").Vector>>>;
11
+ constructor(dbxMapboxLayoutComponent: DbxMapboxLayoutComponent);
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxLayoutVirtualResizeSyncComponent, [{ host: true; }]>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxMapboxLayoutVirtualResizeSyncComponent, "[dbxMapboxLayoutVirtualResizeSync]", never, {}, {}, never, never, false>;
15
+ }
@@ -1,25 +1,26 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import { DbxMapboxConfig } from './mapbox.service';
3
3
  import * as i0 from "@angular/core";
4
- import * as i1 from "./mapbox.store.map.directive";
5
- import * as i2 from "./mapbox.layout.component";
6
- import * as i3 from "./mapbox.layout.drawer.component";
7
- import * as i4 from "./mapbox.injection.component";
8
- import * as i5 from "./mapbox.menu.component";
9
- import * as i6 from "./mapbox.marker.component";
10
- import * as i7 from "./mapbox.markers.component";
11
- import * as i8 from "./mapbox.store.provide";
12
- import * as i9 from "@angular/common";
13
- import * as i10 from "@angular/material/sidenav";
14
- import * as i11 from "@dereekb/dbx-core";
15
- import * as i12 from "@angular/material/button";
16
- import * as i13 from "@angular/material/icon";
17
- import * as i14 from "angular-resize-event";
18
- import * as i15 from "@dereekb/dbx-web";
19
- import * as i16 from "ngx-mapbox-gl";
4
+ import * as i1 from "./mapbox.layout.resize.sync.directive";
5
+ import * as i2 from "./mapbox.store.map.directive";
6
+ import * as i3 from "./mapbox.layout.component";
7
+ import * as i4 from "./mapbox.layout.drawer.component";
8
+ import * as i5 from "./mapbox.injection.component";
9
+ import * as i6 from "./mapbox.menu.component";
10
+ import * as i7 from "./mapbox.marker.component";
11
+ import * as i8 from "./mapbox.markers.component";
12
+ import * as i9 from "./mapbox.store.provide";
13
+ import * as i10 from "@angular/common";
14
+ import * as i11 from "@angular/material/sidenav";
15
+ import * as i12 from "@dereekb/dbx-core";
16
+ import * as i13 from "@angular/material/button";
17
+ import * as i14 from "@angular/material/icon";
18
+ import * as i15 from "angular-resize-event";
19
+ import * as i16 from "@dereekb/dbx-web";
20
+ import * as i17 from "ngx-mapbox-gl";
20
21
  export declare class DbxMapboxModule {
21
22
  static forRoot(config: DbxMapboxConfig): ModuleWithProviders<DbxMapboxModule>;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxMapboxModule, [typeof i1.DbxMapboxMapDirective, typeof i2.DbxMapboxLayoutComponent, typeof i3.DbxMapboxLayoutDrawerComponent, typeof i4.DbxMapboxInjectionComponent, typeof i5.DbxMapboxMenuComponent, typeof i6.DbxMapboxMarkerComponent, typeof i7.DbxMapboxMarkersComponent, typeof i8.DbxMapboxMapStoreInjectionBlockDirective], [typeof i9.CommonModule, typeof i10.MatSidenavModule, typeof i11.DbxInjectionComponentModule, typeof i12.MatButtonModule, typeof i13.MatIconModule, typeof i14.AngularResizeEventModule, typeof i15.DbxRouterAnchorModule, typeof i16.NgxMapboxGLModule], [typeof i1.DbxMapboxMapDirective, typeof i2.DbxMapboxLayoutComponent, typeof i3.DbxMapboxLayoutDrawerComponent, typeof i4.DbxMapboxInjectionComponent, typeof i5.DbxMapboxMenuComponent, typeof i6.DbxMapboxMarkerComponent, typeof i7.DbxMapboxMarkersComponent, typeof i8.DbxMapboxMapStoreInjectionBlockDirective]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxMapboxModule, [typeof i1.DbxMapboxLayoutVirtualResizeSyncComponent, typeof i2.DbxMapboxMapDirective, typeof i3.DbxMapboxLayoutComponent, typeof i4.DbxMapboxLayoutDrawerComponent, typeof i5.DbxMapboxInjectionComponent, typeof i6.DbxMapboxMenuComponent, typeof i7.DbxMapboxMarkerComponent, typeof i8.DbxMapboxMarkersComponent, typeof i9.DbxMapboxMapStoreInjectionBlockDirective], [typeof i10.CommonModule, typeof i11.MatSidenavModule, typeof i12.DbxInjectionComponentModule, typeof i13.MatButtonModule, typeof i14.MatIconModule, typeof i15.AngularResizeEventModule, typeof i16.DbxRouterAnchorModule, typeof i17.NgxMapboxGLModule], [typeof i1.DbxMapboxLayoutVirtualResizeSyncComponent, typeof i2.DbxMapboxMapDirective, typeof i3.DbxMapboxLayoutComponent, typeof i4.DbxMapboxLayoutDrawerComponent, typeof i5.DbxMapboxInjectionComponent, typeof i6.DbxMapboxMenuComponent, typeof i7.DbxMapboxMarkerComponent, typeof i8.DbxMapboxMarkersComponent, typeof i9.DbxMapboxMapStoreInjectionBlockDirective]>;
24
25
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxMapboxModule>;
25
26
  }
@@ -74,6 +74,12 @@ export interface DbxMapboxStoreState {
74
74
  * Minimum vector size to use for the viewportBoundFunction$. If not defined there is no minimum.
75
75
  */
76
76
  minimumVirtualViewportSize?: Maybe<Partial<Vector>>;
77
+ /**
78
+ * Whether or not to use the virtual bound (vs raw bound) for all bound-related observables.
79
+ *
80
+ * Defaults to true.
81
+ */
82
+ useVirtualBound: boolean;
77
83
  }
78
84
  /**
79
85
  * Store used for retrieving information.
@@ -134,6 +140,27 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
134
140
  private readonly _renderingTimer;
135
141
  readonly centerNow$: Observable<LatLngPoint>;
136
142
  readonly center$: Observable<LatLngPoint>;
143
+ readonly minimumVirtualViewportSize$: Observable<Maybe<Partial<Vector>>>;
144
+ readonly currentMapCanvasSize$: Observable<Maybe<Vector>>;
145
+ /**
146
+ * The map canvas size with consideration to the virtual viewport size.
147
+ */
148
+ readonly mapCanvasSize$: Observable<Vector>;
149
+ minimumMapCanvasSize(minVector: Partial<Vector>): Observable<Vector>;
150
+ /**
151
+ * The map canvas size with consideration to the virtual viewport size.
152
+ */
153
+ readonly virtualMapCanvasSize$: Observable<Vector>;
154
+ readonly rawViewportBoundFunction$: Observable<MapboxViewportBoundFunction>;
155
+ /**
156
+ * Creates a MapboxViewportBoundFunction observable that returns the minimum viewport size.
157
+ *
158
+ * @param minVector
159
+ * @returns
160
+ */
161
+ viewportBoundFunctionWithMinimumSize(minVector: Partial<Vector>): Observable<MapboxViewportBoundFunction>;
162
+ readonly viewportBoundFunction$: Observable<MapboxViewportBoundFunction>;
163
+ readonly virtualBound$: Observable<LatLngBound>;
137
164
  readonly margin$: Observable<Maybe<DbxMapboxMarginCalculationSizing>>;
138
165
  readonly reverseMargin$: Observable<{
139
166
  leftMargin: number;
@@ -141,7 +168,9 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
141
168
  fullWidth: number;
142
169
  } | null | undefined>;
143
170
  readonly centerGivenMargin$: Observable<LatLngPoint>;
144
- readonly boundNow$: Observable<LatLngBound>;
171
+ readonly rawBoundNow$: Observable<LatLngBound>;
172
+ readonly rawBound$: Observable<LatLngBound>;
173
+ readonly useVirtualBound$: Observable<boolean>;
145
174
  readonly bound$: Observable<LatLngBound>;
146
175
  readonly boundSizing$: Observable<LatLngPoint>;
147
176
  readonly boundWrapsAroundWorld$: Observable<boolean>;
@@ -155,23 +184,12 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
155
184
  readonly bearing$: Observable<number>;
156
185
  readonly content$: Observable<Maybe<DbxInjectionComponentConfig<unknown>>>;
157
186
  readonly hasContent$: Observable<boolean>;
158
- readonly currentMapCanvasSize$: Observable<Maybe<Vector>>;
159
- readonly mapCanvasSize$: Observable<Vector>;
160
- readonly minimumVirtualViewportSize$: Observable<Maybe<Partial<Vector>>>;
161
- readonly rawViewportBoundFunction$: Observable<MapboxViewportBoundFunction>;
162
- /**
163
- * Creates a MapboxViewportBoundFunction observable that returns the minimum viewport size.
164
- *
165
- * @param minVector
166
- * @returns
167
- */
168
- viewportBoundFunctionWithMinimumSize(minVector: Partial<Vector>): Observable<MapboxViewportBoundFunction>;
169
- readonly viewportBoundFunction$: Observable<MapboxViewportBoundFunction>;
170
187
  readonly clickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
171
188
  readonly doubleClickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
172
189
  readonly rightClickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
173
190
  readonly setMargin: (() => void) | ((observableOrValue: Maybe<DbxMapboxMarginCalculationSizing> | Observable<Maybe<DbxMapboxMarginCalculationSizing>>) => Subscription);
174
191
  readonly setMinimumVirtualViewportSize: (() => void) | ((observableOrValue: Maybe<Partial<Vector>> | Observable<Maybe<Partial<Vector>>>) => Subscription);
192
+ readonly setUseVirtualBound: (observableOrValue: boolean | Observable<boolean>) => Subscription;
175
193
  private readonly _setMapService;
176
194
  private readonly _setLifecycleState;
177
195
  private readonly _setMoveState;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/mapbox",
3
- "version": "9.24.19",
3
+ "version": "9.24.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.1.0",
6
6
  "@angular/core": "^14.1.0",
7
- "@dereekb/dbx-core": "9.24.19",
8
- "@dereekb/dbx-web": "9.24.19",
7
+ "@dereekb/dbx-core": "9.24.21",
8
+ "@dereekb/dbx-web": "9.24.21",
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.24.19",
3
+ "version": "9.24.21",
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.24.19",
11
- "@dereekb/dbx-core": "9.24.19",
10
+ "@dereekb/rxjs": "9.24.21",
11
+ "@dereekb/dbx-core": "9.24.21",
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.24.19",
3
+ "version": "9.24.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0",
7
- "@dereekb/dbx-core": "9.24.19",
7
+ "@dereekb/dbx-core": "9.24.21",
8
8
  "@angular/material": "^14.2.0",
9
9
  "@angular/forms": "^14.2.0",
10
- "@dereekb/dbx-web": "9.24.19"
10
+ "@dereekb/dbx-web": "9.24.21"
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.3.0"