@dereekb/dbx-web 13.43.0 → 14.0.1
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/eslint/index.esm.js +65 -7
- package/eslint/package.json +9 -9
- package/eslint/src/lib/require-action-error-handler.rule.d.ts +13 -1
- package/fesm2022/dereekb-dbx-web-calendar.mjs +14 -13
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-docs.mjs +30 -32
- package/fesm2022/dereekb-dbx-web-docs.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +122 -100
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-style-demo.mjs +90 -91
- package/fesm2022/dereekb-dbx-web-style-demo.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +149 -157
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +2798 -2683
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/style/_config.scss +1 -6
- package/lib/style/_mixin.scss +1 -1
- package/lib/style/_style-demo.scss +9 -9
- package/package.json +20 -20
- package/types/dereekb-dbx-web-mapbox.d.ts +1 -5
- package/types/dereekb-dbx-web.d.ts +121 -321
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable,
|
|
2
|
+
import { inject, Injectable, Component, Directive, Optional, SkipSelf, Injector, output, viewChild, ElementRef, input, signal, effect, computed, NgModule, provideAppInitializer, 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';
|
|
@@ -60,10 +60,10 @@ class DbxMapboxService {
|
|
|
60
60
|
center: latLngPoint(this.defaultCenter)
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
64
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
64
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxService });
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxService, decorators: [{
|
|
67
67
|
type: Injectable
|
|
68
68
|
}] });
|
|
69
69
|
|
|
@@ -597,7 +597,17 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
597
597
|
setMinimumVirtualViewportSize = this.updater((state, minimumVirtualViewportSize) => ({ ...state, minimumVirtualViewportSize }));
|
|
598
598
|
setUseVirtualBound = this.updater((state, useVirtualBound) => ({ ...state, useVirtualBound }));
|
|
599
599
|
setBoundRefreshSettings = this.updater((state, boundRefreshSettings) => ({ ...state, boundRefreshSettings: { ...state.boundRefreshSettings, ...boundRefreshSettings } }));
|
|
600
|
-
_setMapService = this.updater((state, mapService) => ({
|
|
600
|
+
_setMapService = this.updater((state, mapService) => ({
|
|
601
|
+
mapService,
|
|
602
|
+
moveState: 'init',
|
|
603
|
+
lifecycleState: 'init',
|
|
604
|
+
zoomState: 'init',
|
|
605
|
+
rotateState: 'init',
|
|
606
|
+
retainContent: state.retainContent,
|
|
607
|
+
drawerContent: state.retainContent ? state.drawerContent : undefined,
|
|
608
|
+
useVirtualBound: state.useVirtualBound,
|
|
609
|
+
boundRefreshSettings: state.boundRefreshSettings
|
|
610
|
+
}));
|
|
601
611
|
_setLifecycleState = this.updater((state, lifecycleState) => ({ ...state, lifecycleState }));
|
|
602
612
|
_setMoveState = this.updater((state, moveState) => ({ ...state, moveState }));
|
|
603
613
|
_setZoomState = this.updater((state, zoomState) => ({ ...state, zoomState }));
|
|
@@ -609,10 +619,10 @@ class DbxMapboxMapStore extends ComponentStore {
|
|
|
609
619
|
_setError = this.updater((state, error) => ({ ...state, error }));
|
|
610
620
|
clearDrawerContent = this.updater((state) => setDrawerContent(state, undefined));
|
|
611
621
|
setDrawerContent = this.updater(setDrawerContent);
|
|
612
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
613
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
622
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
623
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStore });
|
|
614
624
|
}
|
|
615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStore, decorators: [{
|
|
616
626
|
type: Injectable
|
|
617
627
|
}], ctorParameters: () => [] });
|
|
618
628
|
function setDrawerContent(state, drawerContent) {
|
|
@@ -644,10 +654,10 @@ class DbxMapboxChangeService {
|
|
|
644
654
|
this._applyChanges.complete();
|
|
645
655
|
this._applyChangesSub.destroy();
|
|
646
656
|
}
|
|
647
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
648
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
657
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxChangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
658
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxChangeService, providedIn: null });
|
|
649
659
|
}
|
|
650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxChangeService, decorators: [{
|
|
651
661
|
type: Injectable,
|
|
652
662
|
args: [{
|
|
653
663
|
providedIn: null
|
|
@@ -668,10 +678,10 @@ class DbxMapboxInjectionStore extends ComponentStore {
|
|
|
668
678
|
// MARK: State Changes
|
|
669
679
|
addInjectionConfig = this.updater(updateDbxMapboxMapInjectionStoreStateWithInjectionConfig);
|
|
670
680
|
removeInjectionConfigWithKey = this.updater(updateDbxMapboxMapInjectionStoreStateWithRemovedKey);
|
|
671
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
672
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
682
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStore });
|
|
673
683
|
}
|
|
674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStore, decorators: [{
|
|
675
685
|
type: Injectable
|
|
676
686
|
}], ctorParameters: () => [] });
|
|
677
687
|
/**
|
|
@@ -708,21 +718,19 @@ function updateDbxMapboxMapInjectionStoreStateWithRemovedKey(state, key) {
|
|
|
708
718
|
class DbxMapboxInjectionComponent {
|
|
709
719
|
dbxMapboxMapKeyInjectionStore = inject(DbxMapboxInjectionStore);
|
|
710
720
|
entriesSignal = toSignal(this.dbxMapboxMapKeyInjectionStore.allInjectionConfigs$);
|
|
711
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
712
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
721
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
722
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxMapboxInjectionComponent, isStandalone: true, selector: "dbx-mapbox-injection", ngImport: i0, template: `
|
|
713
723
|
<dbx-injection-array [entries]="entriesSignal()"></dbx-injection-array>
|
|
714
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionArrayComponent, selector: "dbx-injection-array", inputs: ["entries"] }]
|
|
724
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionArrayComponent, selector: "dbx-injection-array", inputs: ["entries"] }] });
|
|
715
725
|
}
|
|
716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionComponent, decorators: [{
|
|
717
727
|
type: Component,
|
|
718
728
|
args: [{
|
|
719
729
|
selector: 'dbx-mapbox-injection',
|
|
720
730
|
template: `
|
|
721
731
|
<dbx-injection-array [entries]="entriesSignal()"></dbx-injection-array>
|
|
722
732
|
`,
|
|
723
|
-
imports: [DbxInjectionArrayComponent]
|
|
724
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
725
|
-
standalone: true
|
|
733
|
+
imports: [DbxInjectionArrayComponent]
|
|
726
734
|
}]
|
|
727
735
|
}] });
|
|
728
736
|
|
|
@@ -731,22 +739,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
731
739
|
*/
|
|
732
740
|
class DbxMapboxInjectionStoreProviderBlock {
|
|
733
741
|
dbxMapboxInjectionStore = inject(DbxMapboxInjectionStore, { skipSelf: true });
|
|
734
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
735
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
742
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
743
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock });
|
|
736
744
|
}
|
|
737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock, decorators: [{
|
|
738
746
|
type: Injectable
|
|
739
747
|
}] });
|
|
740
748
|
class DbxMapboxInjectionStoreInjectionBlockDirective {
|
|
741
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
742
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
749
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStoreInjectionBlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
750
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: DbxMapboxInjectionStoreInjectionBlockDirective, isStandalone: true, selector: "[dbxMapboxInjectionStoreParentBlocker]", providers: [DbxMapboxInjectionStoreProviderBlock], ngImport: i0 });
|
|
743
751
|
}
|
|
744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxInjectionStoreInjectionBlockDirective, decorators: [{
|
|
745
753
|
type: Directive,
|
|
746
754
|
args: [{
|
|
747
755
|
selector: '[dbxMapboxInjectionStoreParentBlocker]',
|
|
748
|
-
providers: [DbxMapboxInjectionStoreProviderBlock]
|
|
749
|
-
standalone: true
|
|
756
|
+
providers: [DbxMapboxInjectionStoreProviderBlock]
|
|
750
757
|
}]
|
|
751
758
|
}] });
|
|
752
759
|
/**
|
|
@@ -788,8 +795,8 @@ class DbxMapboxMapDirective {
|
|
|
788
795
|
this.dbxMapboxMapStore.setMapService(this.mapService);
|
|
789
796
|
}
|
|
790
797
|
}
|
|
791
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
792
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
798
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
799
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: DbxMapboxMapDirective, isStandalone: true, selector: "[dbxMapboxMap]", providers: [
|
|
793
800
|
{
|
|
794
801
|
provide: MAP_COMPONENT_INITIALIZATION_OPTIONS,
|
|
795
802
|
useFactory: (dbxMapboxService) => dbxMapboxService.initializationOptions(),
|
|
@@ -797,7 +804,7 @@ class DbxMapboxMapDirective {
|
|
|
797
804
|
}
|
|
798
805
|
], ngImport: i0 });
|
|
799
806
|
}
|
|
800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapDirective, decorators: [{
|
|
801
808
|
type: Directive,
|
|
802
809
|
args: [{
|
|
803
810
|
selector: '[dbxMapboxMap]',
|
|
@@ -807,8 +814,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
807
814
|
useFactory: (dbxMapboxService) => dbxMapboxService.initializationOptions(),
|
|
808
815
|
deps: [DbxMapboxService]
|
|
809
816
|
}
|
|
810
|
-
]
|
|
811
|
-
standalone: true
|
|
817
|
+
]
|
|
812
818
|
}]
|
|
813
819
|
}], ctorParameters: () => [] });
|
|
814
820
|
|
|
@@ -818,14 +824,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
818
824
|
class DbxMapboxLayoutDrawerComponent {
|
|
819
825
|
dbxMapboxMapStore = inject(DbxMapboxMapStore);
|
|
820
826
|
drawerConfigSignal = toSignal(this.dbxMapboxMapStore.drawerContent$);
|
|
821
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
822
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
827
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxLayoutDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
828
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxMapboxLayoutDrawerComponent, isStandalone: true, selector: "dbx-mapbox-layout-drawer", host: { classAttribute: "dbx-mapbox-layout-drawer" }, ngImport: i0, template: "<div>\n <dbx-injection [config]=\"drawerConfigSignal()\"></dbx-injection>\n</div>\n", dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
823
829
|
}
|
|
824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxLayoutDrawerComponent, decorators: [{
|
|
825
831
|
type: Component,
|
|
826
832
|
args: [{ selector: 'dbx-mapbox-layout-drawer', host: {
|
|
827
833
|
class: 'dbx-mapbox-layout-drawer'
|
|
828
|
-
}, imports: [DbxInjectionComponent],
|
|
834
|
+
}, imports: [DbxInjectionComponent], template: "<div>\n <dbx-injection [config]=\"drawerConfigSignal()\"></dbx-injection>\n</div>\n" }]
|
|
829
835
|
}] });
|
|
830
836
|
|
|
831
837
|
/**
|
|
@@ -841,31 +847,39 @@ class DbxMapboxLayoutComponent {
|
|
|
841
847
|
_viewResized = completeOnDestroy(new Subject());
|
|
842
848
|
_refreshContentMargins = completeOnDestroy(new Subject());
|
|
843
849
|
drawerOpenedChange = output();
|
|
844
|
-
drawerContainer = viewChild.required(MatDrawerContainer
|
|
845
|
-
|
|
846
|
-
|
|
850
|
+
drawerContainer = viewChild.required(MatDrawerContainer, /* @ts-ignore */
|
|
851
|
+
...(ngDevMode ? [{ debugName: "drawerContainer" }] : /* istanbul ignore next */ []));
|
|
852
|
+
drawerContainerElement = viewChild.required(MatDrawerContainer, { ...(ngDevMode ? { debugName: "drawerContainerElement" } : /* istanbul ignore next */ {}), read: (ElementRef) });
|
|
853
|
+
drawerContent = viewChild.required('drawerContent', /* @ts-ignore */
|
|
854
|
+
...(ngDevMode ? [{ debugName: "drawerContent" }] : /* istanbul ignore next */ []));
|
|
847
855
|
side = input('right', { ...(ngDevMode ? { debugName: "side" } : /* istanbul ignore next */ {}), transform: (x) => x || 'right' });
|
|
848
856
|
mode = input('side', { ...(ngDevMode ? { debugName: "mode" } : /* istanbul ignore next */ {}), transform: (x) => x || 'side' });
|
|
849
857
|
/**
|
|
850
858
|
* Forces the drawer to assume the drawer has content if true, or assume it has no content if false.
|
|
851
859
|
*/
|
|
852
|
-
forceHasDrawerContent = input(undefined,
|
|
860
|
+
forceHasDrawerContent = input(undefined, /* @ts-ignore */
|
|
861
|
+
...(ngDevMode ? [{ debugName: "forceHasDrawerContent" }] : /* istanbul ignore next */ []));
|
|
853
862
|
drawerButtonColor = input('default', { ...(ngDevMode ? { debugName: "drawerButtonColor" } : /* istanbul ignore next */ {}), transform: (x) => x ?? 'default' });
|
|
854
|
-
openDrawer = input(undefined,
|
|
855
|
-
|
|
863
|
+
openDrawer = input(undefined, /* @ts-ignore */
|
|
864
|
+
...(ngDevMode ? [{ debugName: "openDrawer" }] : /* istanbul ignore next */ [])); // input open/close drawer config
|
|
865
|
+
isDrawerOpenSignal = signal(undefined, /* @ts-ignore */
|
|
866
|
+
...(ngDevMode ? [{ debugName: "isDrawerOpenSignal" }] : /* istanbul ignore next */ [])); // Signal to toggle the drawer
|
|
856
867
|
_openDrawerEffect = effect(() => {
|
|
857
868
|
this.isDrawerOpenSignal.set(this.openDrawer());
|
|
858
|
-
},
|
|
869
|
+
}, /* @ts-ignore */
|
|
870
|
+
...(ngDevMode ? [{ debugName: "_openDrawerEffect" }] : /* istanbul ignore next */ []));
|
|
859
871
|
storeHasDrawerContent = toSignal(this.dbxMapboxMapStore.hasDrawerContent$);
|
|
860
872
|
drawerHasContentSignal = computed(() => {
|
|
861
873
|
const storeHasDrawerContent = this.storeHasDrawerContent();
|
|
862
874
|
return this.forceHasDrawerContent() ?? storeHasDrawerContent;
|
|
863
|
-
},
|
|
875
|
+
}, /* @ts-ignore */
|
|
876
|
+
...(ngDevMode ? [{ debugName: "drawerHasContentSignal" }] : /* istanbul ignore next */ []));
|
|
864
877
|
refreshContentMargins$ = this._refreshContentMargins;
|
|
865
878
|
isOpenAndHasContentSignal = computed(() => {
|
|
866
879
|
const isDrawerOpen = this.isDrawerOpenSignal();
|
|
867
880
|
return this.drawerHasContentSignal() && isDrawerOpen;
|
|
868
|
-
},
|
|
881
|
+
}, /* @ts-ignore */
|
|
882
|
+
...(ngDevMode ? [{ debugName: "isOpenAndHasContentSignal" }] : /* istanbul ignore next */ []));
|
|
869
883
|
viewResized$ = this._viewResized.asObservable();
|
|
870
884
|
side$ = toObservable(this.side);
|
|
871
885
|
mode$ = toObservable(this.mode);
|
|
@@ -873,13 +887,15 @@ class DbxMapboxLayoutComponent {
|
|
|
873
887
|
isOpenAndHasContent$ = toObservable(this.isOpenAndHasContentSignal);
|
|
874
888
|
positionSignal = computed(() => {
|
|
875
889
|
return this.side() === 'right' ? 'end' : 'start';
|
|
876
|
-
},
|
|
890
|
+
}, /* @ts-ignore */
|
|
891
|
+
...(ngDevMode ? [{ debugName: "positionSignal" }] : /* istanbul ignore next */ []));
|
|
877
892
|
drawerClassesSignal = computed(() => {
|
|
878
893
|
const side = this.side();
|
|
879
894
|
const hasContent = this.drawerHasContentSignal();
|
|
880
895
|
const isOpen = this.isDrawerOpenSignal(); // NOTE: isOpenAndHasContentSignal is not used here
|
|
881
896
|
return (hasContent ? 'has-drawer-content' : 'no-drawer-content') + ` ${side}-drawer ` + (isOpen ? 'open-drawer' : '');
|
|
882
|
-
},
|
|
897
|
+
}, /* @ts-ignore */
|
|
898
|
+
...(ngDevMode ? [{ debugName: "drawerClassesSignal" }] : /* istanbul ignore next */ []));
|
|
883
899
|
buttonIconSignal = computed(() => {
|
|
884
900
|
const side = this.side();
|
|
885
901
|
const opened = this.isDrawerOpenSignal(); // NOTE: isOpenAndHasContentSignal is not used here
|
|
@@ -888,7 +904,8 @@ class DbxMapboxLayoutComponent {
|
|
|
888
904
|
icons = icons.reverse();
|
|
889
905
|
}
|
|
890
906
|
return opened ? icons[0] : icons[1];
|
|
891
|
-
},
|
|
907
|
+
}, /* @ts-ignore */
|
|
908
|
+
...(ngDevMode ? [{ debugName: "buttonIconSignal" }] : /* istanbul ignore next */ []));
|
|
892
909
|
_reszieSyncSub = cleanSubscription();
|
|
893
910
|
_toggleSyncSub = cleanSubscription();
|
|
894
911
|
ngOnInit() {
|
|
@@ -958,12 +975,12 @@ class DbxMapboxLayoutComponent {
|
|
|
958
975
|
open ??= !this.isDrawerOpenSignal();
|
|
959
976
|
this.isDrawerOpenSignal.set(open);
|
|
960
977
|
}
|
|
961
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
962
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
978
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
979
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.4", type: DbxMapboxLayoutComponent, isStandalone: true, selector: "dbx-mapbox-layout", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, forceHasDrawerContent: { classPropertyName: "forceHasDrawerContent", publicName: "forceHasDrawerContent", isSignal: true, isRequired: false, transformFunction: null }, drawerButtonColor: { classPropertyName: "drawerButtonColor", publicName: "drawerButtonColor", isSignal: true, isRequired: false, transformFunction: null }, openDrawer: { classPropertyName: "openDrawer", publicName: "openDrawer", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { drawerOpenedChange: "drawerOpenedChange" }, host: { properties: { "style.--mat-sidenav-container-width": "dbxMapboxService.drawerWidth" } }, viewQueries: [{ propertyName: "drawerContainer", first: true, predicate: MatDrawerContainer, descendants: true, isSignal: true }, { propertyName: "drawerContainerElement", first: true, predicate: MatDrawerContainer, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "drawerContent", first: true, predicate: ["drawerContent"], descendants: true, isSignal: true }], ngImport: i0, template: "<mat-drawer-container #containerElement class=\"dbx-mapbox-layout-container\" [ngClass]=\"drawerClassesSignal()\" [hasBackdrop]=\"false\">\n <mat-drawer class=\"dbx-mapbox-layout-drawer\" #drawer (openedChange)=\"drawerOpened($event)\" [opened]=\"isOpenAndHasContentSignal()\" [mode]=\"mode()\" [position]=\"positionSignal()\">\n <div class=\"dbx-mapbox-layout-drawer-content\" [ngClass]=\"drawerClassesSignal()\">\n <ng-content select=\"[drawer]\"></ng-content>\n <dbx-mapbox-layout-drawer></dbx-mapbox-layout-drawer>\n </div>\n </mat-drawer>\n <mat-drawer-content #content class=\"dbx-mapbox-layout-content\" (dbxResized)=\"viewResized($event)\">\n <button mat-icon-button (click)=\"toggleDrawer()\" class=\"dbx-mapbox-layout-drawer-button\" [dbxColor]=\"drawerButtonColor()\">\n <mat-icon>{{ buttonIconSignal() }}</mat-icon>\n </button>\n <ng-content></ng-content>\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".dbx-mapbox-layout-container{height:100%;max-width:100%}.dbx-mapbox-layout-container .mat-drawer-container{height:100%}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer{max-width:calc(100% - var(--dbx-mapbox-min-width-var, 33px))}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer-content{height:100%;width:100%;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{position:absolute;z-index:2;top:40%;border:none;display:flex;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button{padding-left:0}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button ::ng-deep>.mat-mdc-button-persistent-ripple{border-radius:unset}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button.dbx-color{color:var(--dbx-color-current, transparent);background:color-mix(in srgb,var(--dbx-bg-color-current, transparent) var(--dbx-color-bg-tone, 100%),transparent)}.left-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{left:0;border-radius:0 20px 20px 0}.right-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{right:0;border-radius:20px 0 0 20px}.has-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.has-drawer-content.open-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.no-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:0px}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button mat-icon{padding-left:8px}\n"], dependencies: [{ kind: "directive", type: DbxResizedDirective, selector: "[dbxResized]", outputs: ["dbxResized"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: DbxMapboxLayoutDrawerComponent, selector: "dbx-mapbox-layout-drawer" }, { kind: "component", type: MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: MatDrawerContent, selector: "mat-drawer-content" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: DbxColorDirective, selector: "[dbxColor]", inputs: ["dbxColor", "dbxColorTone"], outputs: ["dbxColorChange", "dbxColorToneChange"] }] });
|
|
963
980
|
}
|
|
964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxLayoutComponent, decorators: [{
|
|
965
982
|
type: Component,
|
|
966
|
-
args: [{ selector: 'dbx-mapbox-layout', imports: [DbxResizedDirective, NgClass, DbxMapboxLayoutDrawerComponent, MatDrawer, MatDrawerContainer, MatDrawerContent, MatIconModule, MatIconButton, DbxColorDirective],
|
|
983
|
+
args: [{ selector: 'dbx-mapbox-layout', imports: [DbxResizedDirective, NgClass, DbxMapboxLayoutDrawerComponent, MatDrawer, MatDrawerContainer, MatDrawerContent, MatIconModule, MatIconButton, DbxColorDirective], host: {
|
|
967
984
|
'[style.--mat-sidenav-container-width]': 'dbxMapboxService.drawerWidth'
|
|
968
985
|
}, template: "<mat-drawer-container #containerElement class=\"dbx-mapbox-layout-container\" [ngClass]=\"drawerClassesSignal()\" [hasBackdrop]=\"false\">\n <mat-drawer class=\"dbx-mapbox-layout-drawer\" #drawer (openedChange)=\"drawerOpened($event)\" [opened]=\"isOpenAndHasContentSignal()\" [mode]=\"mode()\" [position]=\"positionSignal()\">\n <div class=\"dbx-mapbox-layout-drawer-content\" [ngClass]=\"drawerClassesSignal()\">\n <ng-content select=\"[drawer]\"></ng-content>\n <dbx-mapbox-layout-drawer></dbx-mapbox-layout-drawer>\n </div>\n </mat-drawer>\n <mat-drawer-content #content class=\"dbx-mapbox-layout-content\" (dbxResized)=\"viewResized($event)\">\n <button mat-icon-button (click)=\"toggleDrawer()\" class=\"dbx-mapbox-layout-drawer-button\" [dbxColor]=\"drawerButtonColor()\">\n <mat-icon>{{ buttonIconSignal() }}</mat-icon>\n </button>\n <ng-content></ng-content>\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".dbx-mapbox-layout-container{height:100%;max-width:100%}.dbx-mapbox-layout-container .mat-drawer-container{height:100%}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer{max-width:calc(100% - var(--dbx-mapbox-min-width-var, 33px))}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer-content{height:100%;width:100%;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{position:absolute;z-index:2;top:40%;border:none;display:flex;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button{padding-left:0}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button ::ng-deep>.mat-mdc-button-persistent-ripple{border-radius:unset}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button.mat-mdc-icon-button.dbx-color{color:var(--dbx-color-current, transparent);background:color-mix(in srgb,var(--dbx-bg-color-current, transparent) var(--dbx-color-bg-tone, 100%),transparent)}.left-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{left:0;border-radius:0 20px 20px 0}.right-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{right:0;border-radius:20px 0 0 20px}.has-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.has-drawer-content.open-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.no-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:0px}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button mat-icon{padding-left:8px}\n"] }]
|
|
969
986
|
}], propDecorators: { drawerOpenedChange: [{ type: i0.Output, args: ["drawerOpenedChange"] }], drawerContainer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatDrawerContainer), { isSignal: true }] }], drawerContainerElement: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatDrawerContainer), { ...{ read: (ElementRef) }, isSignal: true }] }], drawerContent: [{ type: i0.ViewChild, args: ['drawerContent', { isSignal: true }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], forceHasDrawerContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceHasDrawerContent", required: false }] }], drawerButtonColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerButtonColor", required: false }] }], openDrawer: [{ type: i0.Input, args: [{ isSignal: true, alias: "openDrawer", required: false }] }] } });
|
|
@@ -977,8 +994,10 @@ class DbxMapboxMenuComponent {
|
|
|
977
994
|
dbxMapboxMapStore = inject(DbxMapboxMapStore);
|
|
978
995
|
matMenuTrigger = inject(MatMenuTrigger, { host: true });
|
|
979
996
|
active = input(true, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: isNotFalse });
|
|
980
|
-
openCloseSignal = signal(undefined,
|
|
981
|
-
|
|
997
|
+
openCloseSignal = signal(undefined, /* @ts-ignore */
|
|
998
|
+
...(ngDevMode ? [{ debugName: "openCloseSignal" }] : /* istanbul ignore next */ []));
|
|
999
|
+
posSignal = signal({ x: `0`, y: `0` }, /* @ts-ignore */
|
|
1000
|
+
...(ngDevMode ? [{ debugName: "posSignal" }] : /* istanbul ignore next */ []));
|
|
982
1001
|
_openCloseEffect = effect(() => {
|
|
983
1002
|
const openOrClose = this.openCloseSignal();
|
|
984
1003
|
switch (openOrClose) {
|
|
@@ -991,7 +1010,8 @@ class DbxMapboxMenuComponent {
|
|
|
991
1010
|
default:
|
|
992
1011
|
break;
|
|
993
1012
|
}
|
|
994
|
-
},
|
|
1013
|
+
}, /* @ts-ignore */
|
|
1014
|
+
...(ngDevMode ? [{ debugName: "_openCloseEffect" }] : /* istanbul ignore next */ []));
|
|
995
1015
|
active$ = toObservable(this.active);
|
|
996
1016
|
_sub = cleanSubscription();
|
|
997
1017
|
_menuCloseSub = cleanSubscription();
|
|
@@ -1029,10 +1049,10 @@ class DbxMapboxMenuComponent {
|
|
|
1029
1049
|
}
|
|
1030
1050
|
});
|
|
1031
1051
|
}
|
|
1032
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1033
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1052
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1053
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: DbxMapboxMenuComponent, isStandalone: true, selector: "dbx-mapbox-menu", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.top": "posSignal().y", "style.left": "posSignal().x" }, styleAttribute: "visibility: hidden; position: fixed" }, ngImport: i0, template: '', isInline: true });
|
|
1034
1054
|
}
|
|
1035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMenuComponent, decorators: [{
|
|
1036
1056
|
type: Component,
|
|
1037
1057
|
args: [{
|
|
1038
1058
|
selector: 'dbx-mapbox-menu',
|
|
@@ -1041,9 +1061,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1041
1061
|
style: 'visibility: hidden; position: fixed',
|
|
1042
1062
|
'[style.top]': 'posSignal().y',
|
|
1043
1063
|
'[style.left]': 'posSignal().x'
|
|
1044
|
-
}
|
|
1045
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1046
|
-
standalone: true
|
|
1064
|
+
}
|
|
1047
1065
|
}]
|
|
1048
1066
|
}], ctorParameters: () => [], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }] } });
|
|
1049
1067
|
|
|
@@ -1052,22 +1070,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1052
1070
|
*/
|
|
1053
1071
|
class DbxMapboxMapStoreProviderBlock {
|
|
1054
1072
|
dbxMapboxMapStore = inject(DbxMapboxMapStore, { skipSelf: true });
|
|
1055
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1056
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1073
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStoreProviderBlock, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1074
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStoreProviderBlock });
|
|
1057
1075
|
}
|
|
1058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStoreProviderBlock, decorators: [{
|
|
1059
1077
|
type: Injectable
|
|
1060
1078
|
}] });
|
|
1061
1079
|
class DbxMapboxMapStoreInjectionBlockDirective {
|
|
1062
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1063
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1080
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStoreInjectionBlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1081
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: DbxMapboxMapStoreInjectionBlockDirective, isStandalone: true, selector: "[dbxMapboxStoreParentBlocker]", providers: [DbxMapboxMapStoreProviderBlock], ngImport: i0 });
|
|
1064
1082
|
}
|
|
1065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMapStoreInjectionBlockDirective, decorators: [{
|
|
1066
1084
|
type: Directive,
|
|
1067
1085
|
args: [{
|
|
1068
1086
|
selector: '[dbxMapboxStoreParentBlocker]',
|
|
1069
|
-
providers: [DbxMapboxMapStoreProviderBlock]
|
|
1070
|
-
standalone: true
|
|
1087
|
+
providers: [DbxMapboxMapStoreProviderBlock]
|
|
1071
1088
|
}]
|
|
1072
1089
|
}] });
|
|
1073
1090
|
/**
|
|
@@ -1099,12 +1116,15 @@ function provideMapboxStoreIfParentIsUnavailable() {
|
|
|
1099
1116
|
class DbxMapboxMarkerComponent {
|
|
1100
1117
|
_dbxMapboxChangeService = inject(DbxMapboxChangeService, { optional: true });
|
|
1101
1118
|
static _latLngPoint = latLngPointFunction({ wrap: true });
|
|
1102
|
-
marker = input.required(
|
|
1119
|
+
marker = input.required(/* @ts-ignore */
|
|
1120
|
+
...(ngDevMode ? [{ debugName: "marker" }] : /* istanbul ignore next */ []));
|
|
1103
1121
|
latLngSignal = computed(() => {
|
|
1104
1122
|
const marker = this.marker();
|
|
1105
1123
|
return marker?.latLng ? DbxMapboxMarkerComponent._latLngPoint(marker.latLng) : undefined;
|
|
1106
|
-
},
|
|
1107
|
-
|
|
1124
|
+
}, /* @ts-ignore */
|
|
1125
|
+
...(ngDevMode ? [{ debugName: "latLngSignal" }] : /* istanbul ignore next */ []));
|
|
1126
|
+
presentationSignal = computed(() => this.marker()?.presentation ?? 'normal', /* @ts-ignore */
|
|
1127
|
+
...(ngDevMode ? [{ debugName: "presentationSignal" }] : /* istanbul ignore next */ []));
|
|
1108
1128
|
styleSignal = computed(() => {
|
|
1109
1129
|
const marker = this.marker();
|
|
1110
1130
|
let width = 0;
|
|
@@ -1154,7 +1174,8 @@ class DbxMapboxMarkerComponent {
|
|
|
1154
1174
|
style['font-size'] = width + 'px';
|
|
1155
1175
|
}
|
|
1156
1176
|
return style;
|
|
1157
|
-
},
|
|
1177
|
+
}, /* @ts-ignore */
|
|
1178
|
+
...(ngDevMode ? [{ debugName: "styleSignal" }] : /* istanbul ignore next */ []));
|
|
1158
1179
|
presentationCssClassSignal = computed(() => {
|
|
1159
1180
|
const marker = this.marker();
|
|
1160
1181
|
const presentation = this.presentationSignal();
|
|
@@ -1178,12 +1199,13 @@ class DbxMapboxMarkerComponent {
|
|
|
1178
1199
|
pushItemOrArrayItemsIntoArray(cssClasses, markerClasses);
|
|
1179
1200
|
}
|
|
1180
1201
|
return spaceSeparatedCssClasses(cssClasses);
|
|
1181
|
-
},
|
|
1202
|
+
}, /* @ts-ignore */
|
|
1203
|
+
...(ngDevMode ? [{ debugName: "presentationCssClassSignal" }] : /* istanbul ignore next */ []));
|
|
1182
1204
|
ngOnDestroy() {
|
|
1183
1205
|
this._dbxMapboxChangeService?.emitMarkerDestroyed();
|
|
1184
1206
|
}
|
|
1185
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1186
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1207
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1208
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxMapboxMarkerComponent, isStandalone: true, selector: "dbx-mapbox-marker", inputs: { marker: { classPropertyName: "marker", publicName: "marker", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
1187
1209
|
<mgl-marker [lngLat]="latLngSignal()">
|
|
1188
1210
|
<dbx-anchor [anchor]="marker()?.anchor">
|
|
1189
1211
|
<div class="dbx-mapbox-marker" [ngClass]="presentationCssClassSignal()">
|
|
@@ -1198,9 +1220,9 @@ class DbxMapboxMarkerComponent {
|
|
|
1198
1220
|
</div>
|
|
1199
1221
|
</dbx-anchor>
|
|
1200
1222
|
</mgl-marker>
|
|
1201
|
-
`, isInline: true, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip{flex-direction:row;font-size:1em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-icon-content{width:18px;height:18px;font-size:18px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-label{padding-left:3px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-icon-content{padding:0!important;width:16px;height:16px;font-size:16px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content{display:none}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content .dbx-mapbox-marker-label{padding-left:0}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-label{padding-left:4px}\n"], dependencies: [{ kind: "component", type: MarkerComponent, selector: "mgl-marker", inputs: ["offset", "anchor", "clickTolerance", "feature", "lngLat", "draggable", "popupShown", "className", "zIndex", "pitchAlignment", "rotationAlignment"], outputs: ["markerDragStart", "markerDragEnd", "markerDrag"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }]
|
|
1223
|
+
`, isInline: true, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip{flex-direction:row;font-size:1em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-icon-content{width:18px;height:18px;font-size:18px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-label{padding-left:3px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-icon-content{padding:0!important;width:16px;height:16px;font-size:16px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content{display:none}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content .dbx-mapbox-marker-label{padding-left:0}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-label{padding-left:4px}\n"], dependencies: [{ kind: "component", type: MarkerComponent, selector: "mgl-marker", inputs: ["offset", "anchor", "clickTolerance", "feature", "lngLat", "draggable", "popupShown", "className", "zIndex", "pitchAlignment", "rotationAlignment"], outputs: ["markerDragStart", "markerDragEnd", "markerDrag"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1202
1224
|
}
|
|
1203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMarkerComponent, decorators: [{
|
|
1204
1226
|
type: Component,
|
|
1205
1227
|
args: [{ selector: 'dbx-mapbox-marker', template: `
|
|
1206
1228
|
<mgl-marker [lngLat]="latLngSignal()">
|
|
@@ -1217,31 +1239,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1217
1239
|
</div>
|
|
1218
1240
|
</dbx-anchor>
|
|
1219
1241
|
</mgl-marker>
|
|
1220
|
-
`, imports: [MarkerComponent, DbxAnchorComponent, MatIconModule, NgStyle, NgClass],
|
|
1242
|
+
`, imports: [MarkerComponent, DbxAnchorComponent, MatIconModule, NgStyle, NgClass], styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip{flex-direction:row;font-size:1em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-icon-content{width:18px;height:18px;font-size:18px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-label{padding-left:3px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-icon-content{padding:0!important;width:16px;height:16px;font-size:16px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content{display:none}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content .dbx-mapbox-marker-label{padding-left:0}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-label{padding-left:4px}\n"] }]
|
|
1221
1243
|
}], propDecorators: { marker: [{ type: i0.Input, args: [{ isSignal: true, alias: "marker", required: true }] }] } });
|
|
1222
1244
|
|
|
1223
1245
|
/**
|
|
1224
1246
|
* Component used to render a set of DbxMapboxMarker values from the input data and marker factory.
|
|
1225
1247
|
*/
|
|
1226
1248
|
class DbxMapboxMarkersComponent {
|
|
1227
|
-
data = input.required(
|
|
1228
|
-
|
|
1249
|
+
data = input.required(/* @ts-ignore */
|
|
1250
|
+
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
1251
|
+
markerFactory = input.required(/* @ts-ignore */
|
|
1252
|
+
...(ngDevMode ? [{ debugName: "markerFactory" }] : /* istanbul ignore next */ []));
|
|
1229
1253
|
markersSignal = computed(() => {
|
|
1230
1254
|
const data = this.data();
|
|
1231
1255
|
const markerFactory = this.markerFactory();
|
|
1232
1256
|
return data?.length && markerFactory ? data.map(markerFactory) : [];
|
|
1233
|
-
},
|
|
1257
|
+
}, /* @ts-ignore */
|
|
1258
|
+
...(ngDevMode ? [{ debugName: "markersSignal" }] : /* istanbul ignore next */ []));
|
|
1234
1259
|
trackMarkerById(index, marker) {
|
|
1235
1260
|
return marker.id ?? `__MID__${index}_`;
|
|
1236
1261
|
}
|
|
1237
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1238
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1262
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMarkersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1263
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxMapboxMarkersComponent, isStandalone: true, selector: "dbx-mapbox-markers", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, markerFactory: { classPropertyName: "markerFactory", publicName: "markerFactory", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
1239
1264
|
@for (marker of markersSignal(); track trackMarkerById($index, marker)) {
|
|
1240
1265
|
<dbx-mapbox-marker [marker]="marker"></dbx-mapbox-marker>
|
|
1241
1266
|
}
|
|
1242
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxMapboxMarkerComponent, selector: "dbx-mapbox-marker", inputs: ["marker"] }]
|
|
1267
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxMapboxMarkerComponent, selector: "dbx-mapbox-marker", inputs: ["marker"] }] });
|
|
1243
1268
|
}
|
|
1244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxMarkersComponent, decorators: [{
|
|
1245
1270
|
type: Component,
|
|
1246
1271
|
args: [{
|
|
1247
1272
|
selector: 'dbx-mapbox-markers',
|
|
@@ -1250,9 +1275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1250
1275
|
<dbx-mapbox-marker [marker]="marker"></dbx-mapbox-marker>
|
|
1251
1276
|
}
|
|
1252
1277
|
`,
|
|
1253
|
-
imports: [DbxMapboxMarkerComponent]
|
|
1254
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1255
|
-
standalone: true
|
|
1278
|
+
imports: [DbxMapboxMarkerComponent]
|
|
1256
1279
|
}]
|
|
1257
1280
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], markerFactory: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerFactory", required: true }] }] } });
|
|
1258
1281
|
|
|
@@ -1272,14 +1295,13 @@ class DbxMapboxLayoutVirtualResizeSyncComponent {
|
|
|
1272
1295
|
constructor() {
|
|
1273
1296
|
cleanSubscription(this.dbxMapboxLayoutComponent.dbxMapboxMapStore.setMinimumVirtualViewportSize(this.resizedVector$));
|
|
1274
1297
|
}
|
|
1275
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1276
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxLayoutVirtualResizeSyncComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1299
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: DbxMapboxLayoutVirtualResizeSyncComponent, isStandalone: true, selector: "[dbxMapboxLayoutVirtualResizeSync]", ngImport: i0 });
|
|
1277
1300
|
}
|
|
1278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxLayoutVirtualResizeSyncComponent, decorators: [{
|
|
1279
1302
|
type: Directive,
|
|
1280
1303
|
args: [{
|
|
1281
|
-
selector: '[dbxMapboxLayoutVirtualResizeSync]'
|
|
1282
|
-
standalone: true
|
|
1304
|
+
selector: '[dbxMapboxLayoutVirtualResizeSync]'
|
|
1283
1305
|
}]
|
|
1284
1306
|
}], ctorParameters: () => [] });
|
|
1285
1307
|
|
|
@@ -1299,8 +1321,8 @@ const importsAndExports = [
|
|
|
1299
1321
|
MarkerComponent
|
|
1300
1322
|
];
|
|
1301
1323
|
class DbxMapboxModule {
|
|
1302
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1303
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1324
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1325
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxModule, imports: [
|
|
1304
1326
|
//
|
|
1305
1327
|
DbxMapboxLayoutVirtualResizeSyncComponent,
|
|
1306
1328
|
DbxMapboxMapDirective,
|
|
@@ -1327,7 +1349,7 @@ class DbxMapboxModule {
|
|
|
1327
1349
|
// ngx-mapbox-gl
|
|
1328
1350
|
MapComponent,
|
|
1329
1351
|
MarkerComponent] });
|
|
1330
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1352
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxModule, imports: [DbxMapboxLayoutComponent,
|
|
1331
1353
|
DbxMapboxLayoutDrawerComponent,
|
|
1332
1354
|
DbxMapboxInjectionComponent,
|
|
1333
1355
|
DbxMapboxMarkerComponent,
|
|
@@ -1336,7 +1358,7 @@ class DbxMapboxModule {
|
|
|
1336
1358
|
MapComponent,
|
|
1337
1359
|
MarkerComponent] });
|
|
1338
1360
|
}
|
|
1339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxMapboxModule, decorators: [{
|
|
1340
1362
|
type: NgModule,
|
|
1341
1363
|
args: [{
|
|
1342
1364
|
imports: importsAndExports,
|