diff --git a/src/app/components/api/overlayservice.ts b/src/app/components/api/overlayservice.ts new file mode 100644 index 00000000000..e875cf387df --- /dev/null +++ b/src/app/components/api/overlayservice.ts @@ -0,0 +1,17 @@ +import { Injectable } from '@angular/core'; +import { Subject } from 'rxjs'; +import { Message } from './message'; + +@Injectable({providedIn: 'root'}) +export class OverlayService { + + private clickSource = new Subject(); + + clickObservable = this.clickSource.asObservable(); + + add(event) { + if (event) { + this.clickSource.next(event); + } + } +} diff --git a/src/app/components/api/primengconfig.ts b/src/app/components/api/primengconfig.ts index 1f39451f173..3c8afc6fb45 100644 --- a/src/app/components/api/primengconfig.ts +++ b/src/app/components/api/primengconfig.ts @@ -79,10 +79,17 @@ export class PrimeNGConfig { emptyFilterMessage: 'No results found' } + zIndex = { + modal: 1100, + overlay: 1000, + menu: 1000, + tooltip: 1100 + } + private translationSource = new Subject(); - + translationObserver = this.translationSource.asObservable(); - + getTranslation(key: string) { return this.translation[key]; } @@ -91,4 +98,4 @@ export class PrimeNGConfig { this.translation = {...this.translation, ...value}; this.translationSource.next(this.translation); } -} \ No newline at end of file +} diff --git a/src/app/components/autocomplete/autocomplete.ts b/src/app/components/autocomplete/autocomplete.ts index de0e3411067..19de395b941 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -6,7 +6,7 @@ import {ButtonModule} from 'primeng/button'; import {RippleModule} from 'primeng/ripple'; import {SharedModule,PrimeTemplate, TranslationKeys, PrimeNGConfig} from 'primeng/api'; import {DomHandler, ConnectedOverlayScrollHandler} from 'primeng/dom'; -import {ObjectUtils, UniqueComponentId} from 'primeng/utils'; +import {ObjectUtils, UniqueComponentId, ZIndexUtils} from 'primeng/utils'; import {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms'; import {CdkVirtualScrollViewport, ScrollingModule} from '@angular/cdk/scrolling'; @@ -40,7 +40,7 @@ export const AUTOCOMPLETE_VALUE_ACCESSOR: any = {
+ [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)" (@overlayAnimation.done)="onOverlayAnimationEnd($event)">