diff --git a/src/framework/theme/components/cdk/overlay/overlay-position.ts b/src/framework/theme/components/cdk/overlay/overlay-position.ts index 2d14a61fd8..c0be69d5a6 100644 --- a/src/framework/theme/components/cdk/overlay/overlay-position.ts +++ b/src/framework/theme/components/cdk/overlay/overlay-position.ts @@ -20,6 +20,7 @@ import { NbGlobalLogicalPosition } from './position-helper'; import { GlobalPositionStrategy } from '@angular/cdk/overlay'; +export type NbAdjustmentValues = 'noop' | 'clockwise' | 'counterclockwise' | 'vertical' | 'horizontal'; export enum NbAdjustment { NOOP = 'noop', CLOCKWISE = 'clockwise', diff --git a/src/framework/theme/components/popover/popover.directive.ts b/src/framework/theme/components/popover/popover.directive.ts index 64092035d7..ae3d375ddd 100644 --- a/src/framework/theme/components/popover/popover.directive.ts +++ b/src/framework/theme/components/popover/popover.directive.ts @@ -18,7 +18,7 @@ import { import { NbDynamicOverlay, NbDynamicOverlayController } from '../cdk/overlay/dynamic/dynamic-overlay'; import { NbDynamicOverlayHandler } from '../cdk/overlay/dynamic/dynamic-overlay-handler'; -import { NbAdjustment, NbPosition, NbPositionValues } from '../cdk/overlay/overlay-position'; +import { NbAdjustment, NbPosition, NbPositionValues, NbAdjustmentValues } from '../cdk/overlay/overlay-position'; import { NbOverlayContent } from '../cdk/overlay/overlay-service'; import { NbTrigger, NbTriggerValues } from '../cdk/overlay/overlay-trigger'; import { NbPopoverComponent } from './popover.component'; @@ -161,6 +161,7 @@ export class NbPopoverDirective implements NbDynamicOverlayController, OnChanges this._adjustment = value; } protected _adjustment: NbAdjustment = NbAdjustment.CLOCKWISE; + static ngAcceptInputType_adjustment: NbAdjustmentValues; /** * Describes when the container will be shown. diff --git a/src/framework/theme/components/tooltip/tooltip.directive.ts b/src/framework/theme/components/tooltip/tooltip.directive.ts index 884d81c675..ad1ad508af 100644 --- a/src/framework/theme/components/tooltip/tooltip.directive.ts +++ b/src/framework/theme/components/tooltip/tooltip.directive.ts @@ -19,7 +19,7 @@ import { skip, takeUntil } from 'rxjs/operators'; import { Subject } from 'rxjs'; import { NbComponentStatus } from '../component-status'; -import { NbAdjustment, NbPosition, NbPositionValues } from '../cdk/overlay/overlay-position'; +import { NbAdjustment, NbPosition, NbPositionValues, NbAdjustmentValues } from '../cdk/overlay/overlay-position'; import { NbTrigger } from '../cdk/overlay/overlay-trigger'; import { NbDynamicOverlay } from '../cdk/overlay/dynamic/dynamic-overlay'; import { NbDynamicOverlayHandler } from '../cdk/overlay/dynamic/dynamic-overlay-handler'; @@ -111,6 +111,7 @@ export class NbTooltipDirective implements OnInit, OnChanges, AfterViewInit, OnD this._adjustment = value; } protected _adjustment: NbAdjustment = NbAdjustment.CLOCKWISE; + static ngAcceptInputType_adjustment: NbAdjustmentValues; @Input('nbTooltipClass') tooltipClass: string = '';