@dereekb/dbx-web 9.3.3 → 9.4.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/esm2020/lib/extension/calendar/calendar.component.mjs +2 -2
- package/esm2020/lib/extension/calendar/calendar.store.mjs +2 -2
- package/esm2020/lib/layout/bar/bar.mjs +1 -1
- package/esm2020/lib/layout/column/two/two.column.right.component.mjs +5 -3
- package/esm2020/lib/layout/style/index.mjs +2 -1
- package/esm2020/lib/layout/style/style.mjs +16 -0
- package/esm2020/mapbox/lib/index.mjs +3 -1
- package/esm2020/mapbox/lib/mapbox.layout.component.mjs +132 -0
- package/esm2020/mapbox/lib/mapbox.layout.drawer.component.mjs +24 -0
- package/esm2020/mapbox/lib/mapbox.mjs +1 -1
- package/esm2020/mapbox/lib/mapbox.module.mjs +49 -6
- package/esm2020/mapbox/lib/mapbox.store.mjs +43 -6
- package/fesm2015/dereekb-dbx-web-mapbox.mjs +239 -14
- package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-web.mjs +38 -21
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web-mapbox.mjs +235 -14
- package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +38 -21
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/layout/bar/bar.d.ts +2 -1
- package/lib/layout/column/two/two.column.right.component.d.ts +2 -1
- package/lib/layout/style/_style.scss +11 -0
- package/lib/layout/style/index.d.ts +1 -0
- package/lib/layout/style/style.d.ts +3 -0
- package/mapbox/esm2020/lib/index.mjs +3 -1
- package/mapbox/esm2020/lib/mapbox.layout.component.mjs +132 -0
- package/mapbox/esm2020/lib/mapbox.layout.drawer.component.mjs +24 -0
- package/mapbox/esm2020/lib/mapbox.mjs +1 -1
- package/mapbox/esm2020/lib/mapbox.module.mjs +49 -6
- package/mapbox/esm2020/lib/mapbox.store.mjs +43 -6
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +239 -14
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +235 -14
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/lib/index.d.ts +2 -0
- package/mapbox/lib/mapbox.layout.component.d.ts +44 -0
- package/mapbox/lib/mapbox.layout.drawer.component.d.ts +12 -0
- package/mapbox/lib/mapbox.module.d.ts +9 -2
- package/mapbox/lib/mapbox.store.d.ts +23 -0
- package/mapbox/package.json +5 -5
- package/package.json +3 -3
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { DbxMapboxMapStore } from './mapbox.store';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import { DbxThemeColor } from '@dereekb/dbx-web';
|
|
6
|
+
import { ResizedEvent } from 'angular-resize-event';
|
|
7
|
+
import { SubscriptionObject } from '@dereekb/rxjs';
|
|
8
|
+
import { MatDrawerContainer } from '@angular/material/sidenav';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare type DbxMapboxLayoutSide = 'left' | 'right';
|
|
11
|
+
/**
|
|
12
|
+
* Responsive component meant to split a left and right column.
|
|
13
|
+
*
|
|
14
|
+
* The left column is smaller than the right column, which contains the primary content.
|
|
15
|
+
*
|
|
16
|
+
* Requires a TwoColumnsContextStore to be provided.
|
|
17
|
+
*/
|
|
18
|
+
export declare class DbxMapboxLayoutComponent extends SubscriptionObject implements OnInit, OnDestroy {
|
|
19
|
+
readonly dbxMapboxMapStore: DbxMapboxMapStore;
|
|
20
|
+
readonly container: MatDrawerContainer;
|
|
21
|
+
readonly content: ElementRef;
|
|
22
|
+
private _resized;
|
|
23
|
+
private _updateMargins;
|
|
24
|
+
private _side;
|
|
25
|
+
private _openToggle;
|
|
26
|
+
private _color;
|
|
27
|
+
private _toggleSub;
|
|
28
|
+
readonly side$: Observable<DbxMapboxLayoutSide>;
|
|
29
|
+
readonly opened$: Observable<boolean>;
|
|
30
|
+
readonly position$: Observable<'start' | 'end'>;
|
|
31
|
+
readonly drawerClasses$: Observable<string>;
|
|
32
|
+
readonly drawerButtonClasses$: Observable<string>;
|
|
33
|
+
readonly buttonIcon$: Observable<string>;
|
|
34
|
+
constructor(dbxMapboxMapStore: DbxMapboxMapStore);
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
toggleDrawer(open?: boolean): void;
|
|
38
|
+
set side(side: Maybe<DbxMapboxLayoutSide>);
|
|
39
|
+
set opened(opened: Maybe<boolean>);
|
|
40
|
+
set drawerColor(color: Maybe<DbxThemeColor>);
|
|
41
|
+
onResized(event: ResizedEvent): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxLayoutComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxMapboxLayoutComponent, "dbx-mapbox-layout", never, { "side": "side"; "opened": "opened"; "drawerColor": "drawerColor"; }, {}, never, ["[drawer]", "*"], false>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DbxMapboxMapStore } from './mapbox.store';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Content drawer that connects with DbxMapboxMapStore to
|
|
5
|
+
*/
|
|
6
|
+
export declare class DbxMapboxLayoutDrawerComponent {
|
|
7
|
+
readonly dbxMapboxMapStore: DbxMapboxMapStore;
|
|
8
|
+
readonly config$: import("rxjs").Observable<import("../../../../../dist/packages/util/src").Maybe<import("../../../../../dist/packages/dbx-core").DbxInjectionComponentConfig<unknown>>>;
|
|
9
|
+
constructor(dbxMapboxMapStore: DbxMapboxMapStore);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxLayoutDrawerComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxMapboxLayoutDrawerComponent, "dbx-mapbox-layout-drawer", never, {}, {}, never, never, false>;
|
|
12
|
+
}
|
|
@@ -2,10 +2,17 @@ import { ModuleWithProviders } from '@angular/core';
|
|
|
2
2
|
import { DbxMapboxConfig } from './mapbox.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./mapbox.store.map.directive";
|
|
5
|
-
import * as i2 from "
|
|
5
|
+
import * as i2 from "./mapbox.layout.component";
|
|
6
|
+
import * as i3 from "./mapbox.layout.drawer.component";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@angular/material/sidenav";
|
|
9
|
+
import * as i6 from "@dereekb/dbx-core";
|
|
10
|
+
import * as i7 from "@angular/material/button";
|
|
11
|
+
import * as i8 from "@angular/material/icon";
|
|
12
|
+
import * as i9 from "angular-resize-event";
|
|
6
13
|
export declare class DbxMapboxModule {
|
|
7
14
|
static forRoot(config: DbxMapboxConfig): ModuleWithProviders<DbxMapboxModule>;
|
|
8
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxMapboxModule, [typeof i1.DbxMapboxMapDirective], [typeof
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxMapboxModule, [typeof i1.DbxMapboxMapDirective, typeof i2.DbxMapboxLayoutComponent, typeof i3.DbxMapboxLayoutDrawerComponent], [typeof i4.CommonModule, typeof i5.MatSidenavModule, typeof i6.DbxInjectionComponentModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.AngularResizeEventModule], [typeof i1.DbxMapboxMapDirective, typeof i2.DbxMapboxLayoutComponent, typeof i3.DbxMapboxLayoutDrawerComponent]>;
|
|
10
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxMapboxModule>;
|
|
11
18
|
}
|
|
@@ -6,6 +6,7 @@ import { Observable, Subscription } from 'rxjs';
|
|
|
6
6
|
import * as MapboxGl from 'mapbox-gl';
|
|
7
7
|
import { DbxMapboxClickEvent, MapboxEaseTo, MapboxFitBounds, MapboxFlyTo, MapboxJumpTo, MapboxResetNorth, MapboxResetNorthPitch, MapboxRotateTo, MapboxSnapToNorth, MapboxStyleConfig, MapboxZoomLevel } from './mapbox';
|
|
8
8
|
import { DbxMapboxService } from './mapbox.service';
|
|
9
|
+
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare type MapboxMapLifecycleState = 'init' | 'load' | 'render' | 'idle';
|
|
11
12
|
export declare type MapboxMapMoveState = 'init' | 'idle' | 'moving';
|
|
@@ -19,6 +20,11 @@ export interface TypedMapboxListenerPair<T extends keyof MapboxGl.MapEventType>
|
|
|
19
20
|
type: T;
|
|
20
21
|
listener: (ev: MapboxGl.MapEventType[T] & MapboxGl.EventData) => void;
|
|
21
22
|
}
|
|
23
|
+
export interface DbxMapboxMarginCalculationSizing {
|
|
24
|
+
leftMargin: number;
|
|
25
|
+
rightMargin: number;
|
|
26
|
+
fullWidth: number;
|
|
27
|
+
}
|
|
22
28
|
export interface DbxMapboxStoreState {
|
|
23
29
|
/**
|
|
24
30
|
* Current MapService being utilized.
|
|
@@ -36,6 +42,16 @@ export interface DbxMapboxStoreState {
|
|
|
36
42
|
* Latest double-click event
|
|
37
43
|
*/
|
|
38
44
|
doubleClickEvent?: Maybe<DbxMapboxClickEvent>;
|
|
45
|
+
/**
|
|
46
|
+
* Whether or not to retain content between resets.
|
|
47
|
+
*
|
|
48
|
+
* True by default.
|
|
49
|
+
*/
|
|
50
|
+
retainContent: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Custom content configuration.
|
|
53
|
+
*/
|
|
54
|
+
content?: Maybe<DbxInjectionComponentConfig<unknown>>;
|
|
39
55
|
/**
|
|
40
56
|
* Latest error
|
|
41
57
|
*/
|
|
@@ -71,6 +87,9 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
|
|
|
71
87
|
get timerRefreshPeriod(): number;
|
|
72
88
|
movingTimer(period?: number): Observable<number>;
|
|
73
89
|
lifecycleRenderTimer(period?: number): Observable<number>;
|
|
90
|
+
atNextIdle(): Observable<boolean>;
|
|
91
|
+
calculateNextCenterWithOffset(inputOffset: LatLngPointInput): Observable<LatLngPoint>;
|
|
92
|
+
calculateNextCenterOffsetWithScreenMarginChange(sizing: DbxMapboxMarginCalculationSizing): Observable<LatLngPoint>;
|
|
74
93
|
readonly currentMapService$: Observable<Maybe<MapService>>;
|
|
75
94
|
readonly mapService$: Observable<MapService>;
|
|
76
95
|
readonly currentMapInstance$: Observable<Maybe<MapboxGl.Map>>;
|
|
@@ -99,6 +118,8 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
|
|
|
99
118
|
readonly pitch$: Observable<number>;
|
|
100
119
|
readonly bearingNow$: Observable<number>;
|
|
101
120
|
readonly bearing$: Observable<number>;
|
|
121
|
+
readonly content$: Observable<Maybe<DbxInjectionComponentConfig<unknown>>>;
|
|
122
|
+
readonly hasContent$: Observable<boolean>;
|
|
102
123
|
readonly clickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
|
|
103
124
|
readonly doubleClickEvent$: Observable<Maybe<DbxMapboxClickEvent>>;
|
|
104
125
|
private readonly _setMapService;
|
|
@@ -109,6 +130,8 @@ export declare class DbxMapboxMapStore extends ComponentStore<DbxMapboxStoreStat
|
|
|
109
130
|
private readonly _setClickEvent;
|
|
110
131
|
private readonly _setDoubleClickEvent;
|
|
111
132
|
private readonly _setError;
|
|
133
|
+
readonly clearContent: () => void;
|
|
134
|
+
readonly setContent: (() => void) | ((observableOrValue: Maybe<DbxInjectionComponentConfig<unknown>> | Observable<Maybe<DbxInjectionComponentConfig<unknown>>>) => Subscription);
|
|
112
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxMapStore, never>;
|
|
113
136
|
static ɵprov: i0.ɵɵInjectableDeclaration<DbxMapboxMapStore>;
|
|
114
137
|
}
|
package/mapbox/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web/mapbox",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.1.0",
|
|
6
6
|
"@angular/core": "^14.1.0",
|
|
7
|
-
"
|
|
7
|
+
"rxjs": "^7.5.0",
|
|
8
|
+
"@dereekb/util": "9.4.0",
|
|
9
|
+
"@dereekb/dbx-web": "9.4.0",
|
|
8
10
|
"mapbox-gl": "^2.9.2",
|
|
9
|
-
"ngx-mapbox-gl": "^9.1.0"
|
|
10
|
-
"@dereekb/rxjs": "9.3.3",
|
|
11
|
-
"@ngrx/component-store": "^14.0.0"
|
|
11
|
+
"ngx-mapbox-gl": "^9.1.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"tslib": "^2.3.0"
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
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.0.0",
|
|
10
|
-
"@dereekb/rxjs": "9.
|
|
11
|
-
"@dereekb/dbx-core": "9.
|
|
10
|
+
"@dereekb/rxjs": "9.4.0",
|
|
11
|
+
"@dereekb/dbx-core": "9.4.0",
|
|
12
12
|
"angular-calendar": "^0.30.1",
|
|
13
13
|
"@angular/flex-layout": "^14.0.0-beta.40",
|
|
14
14
|
"ng-overlay-container": "^14.0.0",
|