@dereekb/dbx-web 9.24.18 → 9.24.20
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/calendar/package.json +2 -2
- package/esm2020/lib/dbx-web.module.mjs +1 -17
- package/esm2020/lib/extension/index.mjs +4 -1
- package/esm2020/lib/extension/structure/index.mjs +4 -0
- package/esm2020/lib/extension/structure/structure.body.directive.mjs +28 -0
- package/esm2020/lib/extension/structure/structure.module.mjs +27 -0
- package/esm2020/lib/extension/structure/structure.structure.directive.mjs +23 -0
- package/esm2020/mapbox/lib/index.mjs +2 -1
- package/esm2020/mapbox/lib/mapbox.layout.component.mjs +13 -9
- package/esm2020/mapbox/lib/mapbox.layout.resize.sync.directive.mjs +38 -0
- package/esm2020/mapbox/lib/mapbox.module.mjs +5 -1
- package/esm2020/mapbox/lib/mapbox.store.mjs +66 -11
- package/fesm2015/dereekb-dbx-web-mapbox.mjs +114 -19
- package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-web.mjs +103 -47
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web-mapbox.mjs +112 -19
- package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +101 -47
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/dbx-web.module.d.ts +0 -10
- package/lib/extension/index.d.ts +1 -0
- package/lib/extension/structure/index.d.ts +3 -0
- package/lib/extension/structure/structure.body.directive.d.ts +9 -0
- package/lib/extension/structure/structure.module.d.ts +9 -0
- package/lib/extension/structure/structure.structure.directive.d.ts +15 -0
- package/mapbox/esm2020/lib/index.mjs +2 -1
- package/mapbox/esm2020/lib/mapbox.layout.component.mjs +13 -9
- package/mapbox/esm2020/lib/mapbox.layout.resize.sync.directive.mjs +38 -0
- package/mapbox/esm2020/lib/mapbox.module.mjs +5 -1
- package/mapbox/esm2020/lib/mapbox.store.mjs +66 -11
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +114 -19
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +112 -19
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/lib/index.d.ts +1 -0
- package/mapbox/lib/mapbox.layout.component.d.ts +3 -1
- package/mapbox/lib/mapbox.layout.resize.sync.directive.d.ts +15 -0
- package/mapbox/lib/mapbox.module.d.ts +18 -17
- package/mapbox/lib/mapbox.store.d.ts +36 -4
- package/mapbox/package.json +3 -3
- package/package.json +3 -3
- package/table/package.json +3 -3
package/mapbox/lib/index.d.ts
CHANGED
|
@@ -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
|
|
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.
|
|
5
|
-
import * as i2 from "./mapbox.
|
|
6
|
-
import * as i3 from "./mapbox.layout.
|
|
7
|
-
import * as i4 from "./mapbox.
|
|
8
|
-
import * as i5 from "./mapbox.
|
|
9
|
-
import * as i6 from "./mapbox.
|
|
10
|
-
import * as i7 from "./mapbox.
|
|
11
|
-
import * as i8 from "./mapbox.
|
|
12
|
-
import * as i9 from "
|
|
13
|
-
import * as i10 from "@angular/
|
|
14
|
-
import * as i11 from "@
|
|
15
|
-
import * as i12 from "@
|
|
16
|
-
import * as i13 from "@angular/material/
|
|
17
|
-
import * as i14 from "angular
|
|
18
|
-
import * as i15 from "
|
|
19
|
-
import * as i16 from "
|
|
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.
|
|
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
|
}
|
|
@@ -70,6 +70,16 @@ export interface DbxMapboxStoreState {
|
|
|
70
70
|
* Map margin/offset
|
|
71
71
|
*/
|
|
72
72
|
margin?: Maybe<DbxMapboxMarginCalculationSizing>;
|
|
73
|
+
/**
|
|
74
|
+
* Minimum vector size to use for the viewportBoundFunction$. If not defined there is no minimum.
|
|
75
|
+
*/
|
|
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;
|
|
73
83
|
}
|
|
74
84
|
/**
|
|
75
85
|
* Store used for retrieving information.
|
|
@@ -130,6 +140,27 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
|
|
|
130
140
|
private readonly _renderingTimer;
|
|
131
141
|
readonly centerNow$: Observable<LatLngPoint>;
|
|
132
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>;
|
|
133
164
|
readonly margin$: Observable<Maybe<DbxMapboxMarginCalculationSizing>>;
|
|
134
165
|
readonly reverseMargin$: Observable<{
|
|
135
166
|
leftMargin: number;
|
|
@@ -137,7 +168,9 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
|
|
|
137
168
|
fullWidth: number;
|
|
138
169
|
} | null | undefined>;
|
|
139
170
|
readonly centerGivenMargin$: Observable<LatLngPoint>;
|
|
140
|
-
readonly
|
|
171
|
+
readonly rawBoundNow$: Observable<LatLngBound>;
|
|
172
|
+
readonly rawBound$: Observable<LatLngBound>;
|
|
173
|
+
readonly useVirtualBound$: Observable<boolean>;
|
|
141
174
|
readonly bound$: Observable<LatLngBound>;
|
|
142
175
|
readonly boundSizing$: Observable<LatLngPoint>;
|
|
143
176
|
readonly boundWrapsAroundWorld$: Observable<boolean>;
|
|
@@ -151,13 +184,12 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
|
|
|
151
184
|
readonly bearing$: Observable<number>;
|
|
152
185
|
readonly content$: Observable<Maybe<DbxInjectionComponentConfig<unknown>>>;
|
|
153
186
|
readonly hasContent$: Observable<boolean>;
|
|
154
|
-
readonly currentMapCanvasSize$: Observable<Maybe<Vector>>;
|
|
155
|
-
readonly mapCanvasSize$: Observable<Vector>;
|
|
156
|
-
readonly viewportBoundFunction$: Observable<MapboxViewportBoundFunction>;
|
|
157
187
|
readonly clickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
|
|
158
188
|
readonly doubleClickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
|
|
159
189
|
readonly rightClickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
|
|
160
190
|
readonly setMargin: (() => void) | ((observableOrValue: Maybe<DbxMapboxMarginCalculationSizing> | Observable<Maybe<DbxMapboxMarginCalculationSizing>>) => Subscription);
|
|
191
|
+
readonly setMinimumVirtualViewportSize: (() => void) | ((observableOrValue: Maybe<Partial<Vector>> | Observable<Maybe<Partial<Vector>>>) => Subscription);
|
|
192
|
+
readonly setUseVirtualBound: (observableOrValue: boolean | Observable<boolean>) => Subscription;
|
|
161
193
|
private readonly _setMapService;
|
|
162
194
|
private readonly _setLifecycleState;
|
|
163
195
|
private readonly _setMoveState;
|
package/mapbox/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web/mapbox",
|
|
3
|
-
"version": "9.24.
|
|
3
|
+
"version": "9.24.20",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.1.0",
|
|
6
6
|
"@angular/core": "^14.1.0",
|
|
7
|
-
"@dereekb/dbx-core": "9.24.
|
|
8
|
-
"@dereekb/dbx-web": "9.24.
|
|
7
|
+
"@dereekb/dbx-core": "9.24.20",
|
|
8
|
+
"@dereekb/dbx-web": "9.24.20",
|
|
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.
|
|
3
|
+
"version": "9.24.20",
|
|
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.
|
|
11
|
-
"@dereekb/dbx-core": "9.24.
|
|
10
|
+
"@dereekb/rxjs": "9.24.20",
|
|
11
|
+
"@dereekb/dbx-core": "9.24.20",
|
|
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",
|
package/table/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web/table",
|
|
3
|
-
"version": "9.24.
|
|
3
|
+
"version": "9.24.20",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.2.0",
|
|
6
6
|
"@angular/core": "^14.2.0",
|
|
7
|
-
"@dereekb/dbx-core": "9.24.
|
|
7
|
+
"@dereekb/dbx-core": "9.24.20",
|
|
8
8
|
"@angular/material": "^14.2.0",
|
|
9
9
|
"@angular/forms": "^14.2.0",
|
|
10
|
-
"@dereekb/dbx-web": "9.24.
|
|
10
|
+
"@dereekb/dbx-web": "9.24.20"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.3.0"
|