@dereekb/dbx-web 9.6.2 → 9.6.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.
- package/esm2020/mapbox/lib/index.mjs +3 -1
- package/esm2020/mapbox/lib/mapbox.layout.component.mjs +53 -30
- package/esm2020/mapbox/lib/mapbox.marker.component.mjs +10 -8
- package/esm2020/mapbox/lib/mapbox.marker.mjs +16 -0
- package/esm2020/mapbox/lib/mapbox.markers.component.mjs +56 -0
- package/esm2020/mapbox/lib/mapbox.menu.component.mjs +1 -1
- package/esm2020/mapbox/lib/mapbox.module.mjs +5 -1
- package/fesm2015/dereekb-dbx-web-mapbox.mjs +135 -40
- package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web-mapbox.mjs +135 -40
- package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/lib/layout/text/_text.scss +18 -0
- package/mapbox/esm2020/lib/index.mjs +3 -1
- package/mapbox/esm2020/lib/mapbox.layout.component.mjs +53 -30
- package/mapbox/esm2020/lib/mapbox.marker.component.mjs +10 -8
- package/mapbox/esm2020/lib/mapbox.marker.mjs +16 -0
- package/mapbox/esm2020/lib/mapbox.markers.component.mjs +56 -0
- package/mapbox/esm2020/lib/mapbox.menu.component.mjs +1 -1
- package/mapbox/esm2020/lib/mapbox.module.mjs +5 -1
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +135 -40
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +135 -40
- 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 +5 -1
- package/mapbox/lib/mapbox.marker.component.d.ts +4 -33
- package/mapbox/lib/mapbox.marker.d.ts +49 -0
- package/mapbox/lib/mapbox.markers.component.d.ts +19 -0
- package/mapbox/lib/mapbox.module.d.ts +11 -10
- package/mapbox/package.json +3 -3
- package/package.json +3 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ClickableAnchor } from '@dereekb/dbx-core';
|
|
2
|
+
import { Pixels, FactoryWithRequiredInput, LatLngInputRef } from '@dereekb/util';
|
|
3
|
+
/**
|
|
4
|
+
* DbxMapboxMarkerSize. Numbers are converted to pixels.
|
|
5
|
+
*/
|
|
6
|
+
export declare type DbxMapboxMarkerSize = 'small' | 'medium' | 'large' | 'tall' | Pixels;
|
|
7
|
+
export declare type DbxMapboxMarker = LatLngInputRef & {
|
|
8
|
+
/**
|
|
9
|
+
* icon
|
|
10
|
+
*/
|
|
11
|
+
icon?: string;
|
|
12
|
+
/**
|
|
13
|
+
* label
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Image URL
|
|
18
|
+
*/
|
|
19
|
+
image?: string | FactoryWithRequiredInput<string, Pixels>;
|
|
20
|
+
/**
|
|
21
|
+
* Size of the marker.
|
|
22
|
+
*/
|
|
23
|
+
size?: DbxMapboxMarkerSize;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
anchor?: ClickableAnchor;
|
|
28
|
+
/**
|
|
29
|
+
* Additional object styling
|
|
30
|
+
*/
|
|
31
|
+
style?: object;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* MapFunction that converts the input data to a DbxMapboxMarker.
|
|
35
|
+
*/
|
|
36
|
+
export declare type DbxMapboxMarkerFactory<T> = (value: T, index: number) => DbxMapboxMarker;
|
|
37
|
+
/**
|
|
38
|
+
* Creates the styling for rendering a dot.
|
|
39
|
+
*
|
|
40
|
+
* @param background
|
|
41
|
+
* @param color
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
export declare function dbxMapboxColoredDotStyle(background: string, color?: string): {
|
|
45
|
+
background: string;
|
|
46
|
+
padding: string;
|
|
47
|
+
color: string;
|
|
48
|
+
'border-radius': string;
|
|
49
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Maybe } from '@dereekb/util';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { DbxMapboxMarkerFactory } from './mapbox.marker';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Component used to render a set of DbxMapboxMarker values from the input data and marker factory.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DbxMapboxMarkersComponent<T> implements OnDestroy {
|
|
9
|
+
private _data;
|
|
10
|
+
private _markerFactory;
|
|
11
|
+
readonly markers$: import("rxjs").Observable<import("./mapbox.marker").DbxMapboxMarker[]>;
|
|
12
|
+
get data(): Maybe<T[]>;
|
|
13
|
+
set data(data: Maybe<T[]>);
|
|
14
|
+
get markerFactory(): Maybe<DbxMapboxMarkerFactory<T>>;
|
|
15
|
+
set markerFactory(markerFactory: Maybe<DbxMapboxMarkerFactory<T>>);
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxMarkersComponent<any>, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxMapboxMarkersComponent<any>, "dbx-mapbox-markers", never, { "data": "data"; "markerFactory": "markerFactory"; }, {}, never, never, false>;
|
|
19
|
+
}
|
|
@@ -6,18 +6,19 @@ import * as i2 from "./mapbox.layout.component";
|
|
|
6
6
|
import * as i3 from "./mapbox.layout.drawer.component";
|
|
7
7
|
import * as i4 from "./mapbox.menu.component";
|
|
8
8
|
import * as i5 from "./mapbox.marker.component";
|
|
9
|
-
import * as i6 from "./mapbox.
|
|
10
|
-
import * as i7 from "
|
|
11
|
-
import * as i8 from "@angular/
|
|
12
|
-
import * as i9 from "@
|
|
13
|
-
import * as i10 from "@
|
|
14
|
-
import * as i11 from "@angular/material/
|
|
15
|
-
import * as i12 from "angular
|
|
16
|
-
import * as i13 from "
|
|
17
|
-
import * as i14 from "
|
|
9
|
+
import * as i6 from "./mapbox.markers.component";
|
|
10
|
+
import * as i7 from "./mapbox.store.provide";
|
|
11
|
+
import * as i8 from "@angular/common";
|
|
12
|
+
import * as i9 from "@angular/material/sidenav";
|
|
13
|
+
import * as i10 from "@dereekb/dbx-core";
|
|
14
|
+
import * as i11 from "@angular/material/button";
|
|
15
|
+
import * as i12 from "@angular/material/icon";
|
|
16
|
+
import * as i13 from "angular-resize-event";
|
|
17
|
+
import * as i14 from "@dereekb/dbx-web";
|
|
18
|
+
import * as i15 from "ngx-mapbox-gl";
|
|
18
19
|
export declare class DbxMapboxModule {
|
|
19
20
|
static forRoot(config: DbxMapboxConfig): ModuleWithProviders<DbxMapboxModule>;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxMapboxModule, [typeof i1.DbxMapboxMapDirective, typeof i2.DbxMapboxLayoutComponent, typeof i3.DbxMapboxLayoutDrawerComponent, typeof i4.DbxMapboxMenuComponent, typeof i5.DbxMapboxMarkerComponent, typeof i6.DbxMapboxMapStoreInjectionBlockDirective], [typeof
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxMapboxModule, [typeof i1.DbxMapboxMapDirective, typeof i2.DbxMapboxLayoutComponent, typeof i3.DbxMapboxLayoutDrawerComponent, typeof i4.DbxMapboxMenuComponent, typeof i5.DbxMapboxMarkerComponent, typeof i6.DbxMapboxMarkersComponent, typeof i7.DbxMapboxMapStoreInjectionBlockDirective], [typeof i8.CommonModule, typeof i9.MatSidenavModule, typeof i10.DbxInjectionComponentModule, typeof i11.MatButtonModule, typeof i12.MatIconModule, typeof i13.AngularResizeEventModule, typeof i14.DbxRouterAnchorModule, typeof i15.NgxMapboxGLModule], [typeof i1.DbxMapboxMapDirective, typeof i2.DbxMapboxLayoutComponent, typeof i3.DbxMapboxLayoutDrawerComponent, typeof i4.DbxMapboxMenuComponent, typeof i5.DbxMapboxMarkerComponent, typeof i6.DbxMapboxMarkersComponent, typeof i7.DbxMapboxMapStoreInjectionBlockDirective]>;
|
|
22
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxMapboxModule>;
|
|
23
24
|
}
|
package/mapbox/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web/mapbox",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.5",
|
|
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.6.
|
|
9
|
-
"@dereekb/dbx-web": "9.6.
|
|
8
|
+
"@dereekb/util": "9.6.5",
|
|
9
|
+
"@dereekb/dbx-web": "9.6.5",
|
|
10
10
|
"ngx-mapbox-gl": "^9.1.0",
|
|
11
11
|
"mapbox-gl": "^2.9.2"
|
|
12
12
|
},
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.5",
|
|
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.6.
|
|
11
|
-
"@dereekb/dbx-core": "9.6.
|
|
10
|
+
"@dereekb/rxjs": "9.6.5",
|
|
11
|
+
"@dereekb/dbx-core": "9.6.5",
|
|
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",
|