@dereekb/dbx-web 9.23.18 → 9.23.19

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 (40) hide show
  1. package/calendar/package.json +2 -2
  2. package/esm2020/lib/layout/text/address.component.mjs +6 -5
  3. package/esm2020/lib/router/layout/anchor/anchor.component.mjs +15 -3
  4. package/esm2020/mapbox/lib/index.mjs +4 -1
  5. package/esm2020/mapbox/lib/mapbox.injection.component.mjs +32 -0
  6. package/esm2020/mapbox/lib/mapbox.injection.store.mjs +39 -0
  7. package/esm2020/mapbox/lib/mapbox.injection.store.provide.mjs +52 -0
  8. package/esm2020/mapbox/lib/mapbox.marker.component.mjs +5 -5
  9. package/esm2020/mapbox/lib/mapbox.marker.mjs +1 -1
  10. package/esm2020/mapbox/lib/mapbox.module.mjs +5 -1
  11. package/fesm2015/dereekb-dbx-web-mapbox.mjs +121 -8
  12. package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  13. package/fesm2015/dereekb-dbx-web.mjs +20 -5
  14. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  15. package/fesm2020/dereekb-dbx-web-mapbox.mjs +117 -7
  16. package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  17. package/fesm2020/dereekb-dbx-web.mjs +18 -5
  18. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  19. package/lib/router/layout/anchor/anchor.component.d.ts +2 -0
  20. package/mapbox/esm2020/lib/index.mjs +4 -1
  21. package/mapbox/esm2020/lib/mapbox.injection.component.mjs +32 -0
  22. package/mapbox/esm2020/lib/mapbox.injection.store.mjs +39 -0
  23. package/mapbox/esm2020/lib/mapbox.injection.store.provide.mjs +52 -0
  24. package/mapbox/esm2020/lib/mapbox.marker.component.mjs +5 -5
  25. package/mapbox/esm2020/lib/mapbox.marker.mjs +1 -1
  26. package/mapbox/esm2020/lib/mapbox.module.mjs +5 -1
  27. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +121 -8
  28. package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
  29. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +117 -7
  30. package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
  31. package/mapbox/lib/index.d.ts +3 -0
  32. package/mapbox/lib/mapbox.injection.component.d.ts +16 -0
  33. package/mapbox/lib/mapbox.injection.store.d.ts +45 -0
  34. package/mapbox/lib/mapbox.injection.store.provide.d.ts +24 -0
  35. package/mapbox/lib/mapbox.marker.component.d.ts +3 -2
  36. package/mapbox/lib/mapbox.marker.d.ts +3 -2
  37. package/mapbox/lib/mapbox.module.d.ts +14 -13
  38. package/mapbox/package.json +3 -3
  39. package/package.json +3 -3
  40. package/table/package.json +3 -3
@@ -1,5 +1,8 @@
1
1
  export * from './mapbox.cdref.service';
2
2
  export * from './mapbox.change.service';
3
+ export * from './mapbox.injection.component';
4
+ export * from './mapbox.injection.store.provide';
5
+ export * from './mapbox.injection.store';
3
6
  export * from './mapbox.module';
4
7
  export * from './mapbox.layout.component';
5
8
  export * from './mapbox.layout.drawer.component';
@@ -0,0 +1,16 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Injector } from '@angular/core';
3
+ import { DbxInjectionArrayEntry } from '@dereekb/dbx-core';
4
+ import { DbxMapboxInjectionStore } from './mapbox.injection.store';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Injects the components configured in the DbxMapboxInjectionStore into the view.
8
+ */
9
+ export declare class DbxMapboxInjectionComponent {
10
+ readonly dbxMapboxMapKeyInjectionStore: DbxMapboxInjectionStore;
11
+ readonly injector: Injector;
12
+ readonly entries$: Observable<DbxInjectionArrayEntry[]>;
13
+ constructor(dbxMapboxMapKeyInjectionStore: DbxMapboxInjectionStore, injector: Injector);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxInjectionComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxMapboxInjectionComponent, "dbx-mapbox-injection", never, {}, {}, never, never, false>;
16
+ }
@@ -0,0 +1,45 @@
1
+ import { Observable } from 'rxjs';
2
+ import { OnDestroy } from '@angular/core';
3
+ import { DbxInjectionComponentConfigWithoutInjector } from '@dereekb/dbx-core';
4
+ import { ComponentStore } from '@ngrx/component-store';
5
+ import { ObservableOrValueGetter } from '@dereekb/rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare type DbxMapboxInjectionKey = string;
8
+ export interface DbxMapboxInjectionConfig {
9
+ /**
10
+ * Unique key that identifies this config specifically.
11
+ *
12
+ * Keys should all be unique. The system does not expect duplicate keys. Modifications to injectionConfig should occur through the observable value.
13
+ */
14
+ readonly key: DbxMapboxInjectionKey;
15
+ /**
16
+ * Arbitrary injection type. Is used for filtering on configurations.
17
+ */
18
+ readonly type?: string;
19
+ /**
20
+ * Injection configuration. The injector is disallowed, as the parent injector must include the mapbox component.
21
+ */
22
+ readonly injectionConfig: ObservableOrValueGetter<DbxInjectionComponentConfigWithoutInjector>;
23
+ }
24
+ export interface DbxMapboxMapInjectionStoreState {
25
+ /**
26
+ * Current map of injection keys and configurations.
27
+ */
28
+ readonly map: Map<DbxMapboxInjectionKey, DbxMapboxInjectionConfig>;
29
+ }
30
+ /**
31
+ * Store used for storing injectable content into the map.
32
+ */
33
+ export declare class DbxMapboxInjectionStore extends ComponentStore<DbxMapboxMapInjectionStoreState> implements OnDestroy {
34
+ constructor();
35
+ readonly map$: Observable<Map<DbxMapboxInjectionKey, DbxMapboxInjectionConfig>>;
36
+ readonly allInjectionConfigs$: Observable<DbxMapboxInjectionConfig[]>;
37
+ readonly addInjectionConfig: (observableOrValue: DbxMapboxInjectionConfig | Observable<DbxMapboxInjectionConfig>) => import("rxjs").Subscription;
38
+ readonly removeInjectionConfigWithKey: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxInjectionStore, never>;
40
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxMapboxInjectionStore>;
41
+ }
42
+ export declare function updateDbxMapboxMapInjectionStoreStateWithInjectionConfig(state: DbxMapboxMapInjectionStoreState, config: DbxMapboxInjectionConfig): {
43
+ map: Map<string, DbxMapboxInjectionConfig>;
44
+ };
45
+ export declare function updateDbxMapboxMapInjectionStoreStateWithRemovedKey(state: DbxMapboxMapInjectionStoreState, key: DbxMapboxInjectionKey): DbxMapboxMapInjectionStoreState;
@@ -0,0 +1,24 @@
1
+ import { Provider } from '@angular/core';
2
+ import { DbxMapboxInjectionStore } from './mapbox.injection.store';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Token used by provideMapboxInjectionStoreIfDoesNotExist() to prevent injecting a parent DbxMapboxInjectionStore into the child view.
6
+ */
7
+ export declare class DbxMapboxInjectionStoreProviderBlock {
8
+ readonly dbxMapboxInjectionStore: DbxMapboxInjectionStore;
9
+ constructor(dbxMapboxInjectionStore: DbxMapboxInjectionStore);
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxInjectionStoreProviderBlock, [{ skipSelf: true; }]>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxMapboxInjectionStoreProviderBlock>;
12
+ }
13
+ export declare class DbxMapboxInjectionStoreInjectionBlockDirective {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxInjectionStoreInjectionBlockDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxMapboxInjectionStoreInjectionBlockDirective, "[dbxMapboxInjectionStoreParentBlocker]", never, {}, {}, never, never, false>;
16
+ }
17
+ /**
18
+ * Creates a Provider that initializes a new DbxMapboxInjectionStore if a parent does not exist.
19
+ *
20
+ * If a DbxMapboxInjectionStoreInjectionBlock is available in the context, and references the same dbxMapboxInjectionStore that is attempting to be injected, a new DbxMapboxInjectionStore is created.
21
+ *
22
+ * @returns
23
+ */
24
+ export declare function provideMapboxInjectionStoreIfParentIsUnavailable(): Provider;
@@ -1,4 +1,5 @@
1
1
  import { OnDestroy } from '@angular/core';
2
+ import { Maybe } from '@dereekb/util';
2
3
  import { DbxMapboxChangeService } from './mapbox.change.service';
3
4
  import { DbxMapboxMarker } from './mapbox.marker';
4
5
  import * as i0 from "@angular/core";
@@ -7,8 +8,8 @@ export declare class DbxMapboxMarkerComponent implements OnDestroy {
7
8
  private static _latLngPoint;
8
9
  private _marker;
9
10
  constructor(_dbxMapboxChangeService?: DbxMapboxChangeService | undefined);
10
- get marker(): DbxMapboxMarker;
11
- set marker(marker: DbxMapboxMarker);
11
+ get marker(): Maybe<DbxMapboxMarker>;
12
+ set marker(marker: Maybe<DbxMapboxMarker>);
12
13
  get latLng(): import("@dereekb/util").LatLngPoint | undefined;
13
14
  get anchor(): import("../../../../../dist/packages/dbx-core").ClickableAnchor | undefined;
14
15
  get label(): string | undefined;
@@ -11,7 +11,7 @@ export declare type DbxMapboxMarkerSize = 'small' | 'medium' | 'large' | 'tall'
11
11
  * - chip: "dbx-chip"-like presentation
12
12
  */
13
13
  export declare type DbxMapboxMarkerPresentation = 'normal' | 'chip' | 'chip-small';
14
- export declare type DbxMapboxMarker = UniqueModel & LatLngInputRef & {
14
+ export interface DbxMapboxMarkerDisplayConfig {
15
15
  /**
16
16
  * Presentation style. Defaults to "normal"
17
17
  */
@@ -44,7 +44,8 @@ export declare type DbxMapboxMarker = UniqueModel & LatLngInputRef & {
44
44
  * Additional content styling
45
45
  */
46
46
  style?: object;
47
- };
47
+ }
48
+ export declare type DbxMapboxMarker = UniqueModel & LatLngInputRef & DbxMapboxMarkerDisplayConfig;
48
49
  /**
49
50
  * MapFunction that converts the input data to a DbxMapboxMarker.
50
51
  */
@@ -4,21 +4,22 @@ import * as i0 from "@angular/core";
4
4
  import * as i1 from "./mapbox.store.map.directive";
5
5
  import * as i2 from "./mapbox.layout.component";
6
6
  import * as i3 from "./mapbox.layout.drawer.component";
7
- import * as i4 from "./mapbox.menu.component";
8
- import * as i5 from "./mapbox.marker.component";
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";
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";
19
20
  export declare class DbxMapboxModule {
20
21
  static forRoot(config: DbxMapboxConfig): ModuleWithProviders<DbxMapboxModule>;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxMapboxModule, never>;
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]>;
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]>;
23
24
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxMapboxModule>;
24
25
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/mapbox",
3
- "version": "9.23.18",
3
+ "version": "9.23.19",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.1.0",
6
6
  "@angular/core": "^14.1.0",
7
- "@dereekb/dbx-core": "9.23.18",
8
- "@dereekb/dbx-web": "9.23.18",
7
+ "@dereekb/dbx-core": "9.23.19",
8
+ "@dereekb/dbx-web": "9.23.19",
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.18",
3
+ "version": "9.23.19",
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.18",
11
- "@dereekb/dbx-core": "9.23.18",
10
+ "@dereekb/rxjs": "9.23.19",
11
+ "@dereekb/dbx-core": "9.23.19",
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.18",
3
+ "version": "9.23.19",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0",
7
- "@dereekb/dbx-core": "9.23.18",
7
+ "@dereekb/dbx-core": "9.23.19",
8
8
  "@angular/material": "^14.2.0",
9
9
  "@angular/forms": "^14.2.0",
10
- "@dereekb/dbx-web": "9.23.18"
10
+ "@dereekb/dbx-web": "9.23.19"
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.3.0"