@dereekb/dbx-web 13.6.16 → 13.7.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/fesm2022/dereekb-dbx-web-mapbox.mjs +13 -5
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +2276 -1553
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/interaction/_interaction.scss +3 -0
- package/lib/interaction/detach/_detach.scss +67 -0
- package/package.json +7 -6
- package/types/dereekb-dbx-web.d.ts +341 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable, ChangeDetectionStrategy, Component, Directive,
|
|
2
|
+
import { inject, Injectable, ChangeDetectionStrategy, Component, Directive, Optional, SkipSelf, Injector, output, viewChild, ElementRef, input, signal, effect, computed, NgModule, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { asObservable, cleanup, filterMaybe, onTrueToFalse, SubscriptionObject, distinctUntilMapHasDifferentKeys } from '@dereekb/rxjs';
|
|
4
4
|
import { distinctUntilChanged, switchMap, map, combineLatestWith, shareReplay, NEVER, defaultIfEmpty, tap, EMPTY, interval, of, first, combineLatest, filter, startWith, throttleTime, Subject, merge, delay } from 'rxjs';
|
|
5
5
|
import { latLngPoint, LAT_LONG_10M_PRECISION, latLngPointFunction, roundNumberToStepFunction, latLngBoundFunction, latLngBoundFromInput, filterUndefinedValues, diffLatLngBoundPoints, latLngBoundCenterPoint, addLatLngPoints, isSameLatLngPoint, isSameVector, vectorMinimumSizeResizeFunction, isSameLatLngBound, isDefaultLatLngPoint, swMostLatLngPoint, neMostLatLngPoint, latLngBoundWrapsMap, isWithinLatLngBoundFunction, overlapsLatLngBoundFunction, isNotFalse, DestroyFunctionObject, getValueFromGetter, pushItemOrArrayItemsIntoArray, spaceSeparatedCssClasses } from '@dereekb/util';
|
|
@@ -797,15 +797,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
797
797
|
function provideMapboxInjectionStoreIfParentIsUnavailable() {
|
|
798
798
|
return {
|
|
799
799
|
provide: DbxMapboxInjectionStore,
|
|
800
|
-
useFactory: (
|
|
800
|
+
useFactory: (dbxMapboxInjectionStoreInjectionBlock, dbxMapboxInjectionStore) => {
|
|
801
801
|
if (!dbxMapboxInjectionStore || (dbxMapboxInjectionStore && dbxMapboxInjectionStoreInjectionBlock?.dbxMapboxInjectionStore === dbxMapboxInjectionStore)) {
|
|
802
802
|
// create a new dbxMapboxInjectionStore to use
|
|
803
|
+
const parentInjector = inject(Injector);
|
|
803
804
|
const injector = Injector.create({ providers: [{ provide: DbxMapboxInjectionStore }], parent: parentInjector });
|
|
804
805
|
dbxMapboxInjectionStore = injector.get(DbxMapboxInjectionStore);
|
|
805
806
|
}
|
|
806
807
|
return dbxMapboxInjectionStore;
|
|
807
808
|
},
|
|
808
|
-
deps: [
|
|
809
|
+
deps: [
|
|
810
|
+
[new Optional(), DbxMapboxInjectionStoreProviderBlock],
|
|
811
|
+
[new Optional(), new SkipSelf(), DbxMapboxInjectionStore]
|
|
812
|
+
]
|
|
809
813
|
};
|
|
810
814
|
}
|
|
811
815
|
|
|
@@ -1123,15 +1127,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImpor
|
|
|
1123
1127
|
function provideMapboxStoreIfParentIsUnavailable() {
|
|
1124
1128
|
return {
|
|
1125
1129
|
provide: DbxMapboxMapStore,
|
|
1126
|
-
useFactory: (
|
|
1130
|
+
useFactory: (dbxMapboxMapStoreInjectionBlock, dbxMapboxMapStore) => {
|
|
1127
1131
|
if (!dbxMapboxMapStore || (dbxMapboxMapStore && dbxMapboxMapStoreInjectionBlock?.dbxMapboxMapStore === dbxMapboxMapStore)) {
|
|
1132
|
+
const parentInjector = inject(Injector);
|
|
1128
1133
|
// create a new dbxMapboxMapStore to use
|
|
1129
1134
|
const injector = Injector.create({ providers: [{ provide: DbxMapboxMapStore }], parent: parentInjector });
|
|
1130
1135
|
dbxMapboxMapStore = injector.get(DbxMapboxMapStore);
|
|
1131
1136
|
}
|
|
1132
1137
|
return dbxMapboxMapStore;
|
|
1133
1138
|
},
|
|
1134
|
-
deps: [
|
|
1139
|
+
deps: [
|
|
1140
|
+
[new Optional(), DbxMapboxMapStoreProviderBlock],
|
|
1141
|
+
[new Optional(), new SkipSelf(), DbxMapboxMapStore]
|
|
1142
|
+
]
|
|
1135
1143
|
};
|
|
1136
1144
|
}
|
|
1137
1145
|
|