Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spelling error fixed for AvailbleBSPositions #6556

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/ngx-bootstrap-docs/src/ng-api-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3202,7 +3202,7 @@ export const ngdoc: any = {
"inputs": [
{
"name": "placement",
"type": "AvailbleBSPositions",
"type": "AvailableBSPositions",
"description": ""
},
{
Expand Down Expand Up @@ -3295,7 +3295,7 @@ export const ngdoc: any = {
{
"name": "placement",
"defaultValue": "top",
"type": "AvailbleBSPositions",
"type": "AvailableBSPositions",
"description": "<p>Placement of a popover. Accepts: &quot;top&quot;, &quot;bottom&quot;, &quot;left&quot;, &quot;right&quot;</p>\n"
},
{
Expand Down Expand Up @@ -4267,7 +4267,7 @@ export const ngdoc: any = {
{
"name": "placement",
"defaultValue": "top",
"type": "AvailbleBSPositions",
"type": "AvailableBSPositions",
"description": "<p>Placement of a tooltip. Accepts: &quot;top&quot;, &quot;bottom&quot;, &quot;left&quot;, &quot;right&quot;</p>\n"
},
{
Expand Down Expand Up @@ -4319,7 +4319,7 @@ export const ngdoc: any = {
},
{
"name": "tooltipPlacement",
"type": "AvailbleBSPositions",
"type": "AvailableBSPositions",
"description": ""
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/popover/popover-container.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Input, Component } from '@angular/core';
import { PopoverConfig } from './popover.config';
import { getBsVer, IBsVersion } from 'ngx-bootstrap/utils';
import { PlacementForBs5, checkMargins, AvailbleBSPositions } from 'ngx-bootstrap/positioning';
import { PlacementForBs5, checkMargins, AvailableBSPositions } from 'ngx-bootstrap/positioning';

@Component({
selector: 'popover-container',
Expand Down Expand Up @@ -30,7 +30,7 @@ import { PlacementForBs5, checkMargins, AvailbleBSPositions } from 'ngx-bootstra
templateUrl: './popover-container.component.html'
})
export class PopoverContainerComponent {
@Input() set placement(value: AvailbleBSPositions) {
@Input() set placement(value: AvailableBSPositions) {
if (!this._bsVersions.isBs5) {
this._placement = value;
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/popover/popover.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
import { PopoverConfig } from './popover.config';
import { ComponentLoader, ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
import { PopoverContainerComponent } from './popover-container.component';
import { PositioningService, AvailbleBSPositions } from 'ngx-bootstrap/positioning';
import { PositioningService, AvailableBSPositions } from 'ngx-bootstrap/positioning';
import { timer } from 'rxjs';
import { parseTriggers, Trigger } from 'ngx-bootstrap/utils';

Expand Down Expand Up @@ -39,7 +39,7 @@ export class PopoverDirective implements OnInit, OnDestroy {
/**
* Placement of a popover. Accepts: "top", "bottom", "left", "right"
*/
@Input() placement: AvailbleBSPositions = 'top';
@Input() placement: AvailableBSPositions = 'top';
/**
* Close popover on outside click
*/
Expand Down
2 changes: 1 addition & 1 deletion src/positioning/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ export enum PlacementForBs5 {
'start top' = 'start top',
}

export type AvailbleBSPositions = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top left' | 'top right' | 'right top' | 'right bottom' | 'bottom right' | 'bottom left' | 'left bottom' | 'left top' | 'start' | 'end' | 'top start' | 'top end' | 'end top' | 'end bottom' | 'bottom end' | 'bottom start' | 'start bottom' | 'start top';
export type AvailableBSPositions = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top left' | 'top right' | 'right top' | 'right bottom' | 'bottom right' | 'bottom left' | 'left bottom' | 'left top' | 'start' | 'end' | 'top start' | 'top end' | 'end top' | 'end bottom' | 'bottom end' | 'bottom start' | 'start bottom' | 'start top';

2 changes: 1 addition & 1 deletion src/positioning/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { positionElements, Positioning } from './ng-positioning';
export { PositioningService, PositioningOptions } from './positioning.service';
export { AvailbleBSPositions, PlacementForBs5 } from './models';
export { AvailableBSPositions, PlacementForBs5 } from './models';
export { checkMargins } from './utils/checkMargin';
4 changes: 2 additions & 2 deletions src/positioning/utils/checkMargin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getBsVer } from 'ngx-bootstrap/utils';
import { AvailbleBSPositions } from '../models';
import { AvailableBSPositions } from '../models';

const availablePositions = {
top: ['top', 'top start', 'top end'],
Expand All @@ -8,7 +8,7 @@ const availablePositions = {
end: ['end', 'end top', 'end bottom']
};

export function checkPopoverMargin(placement: AvailbleBSPositions, checkPosition: 'top' | 'bottom' | 'start' | 'end'): boolean {
export function checkPopoverMargin(placement: AvailableBSPositions, checkPosition: 'top' | 'bottom' | 'start' | 'end'): boolean {
if (!getBsVer().isBs5) {
return false;
}
Expand Down
6 changes: 3 additions & 3 deletions src/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { OnChange, warnOnce, parseTriggers, Trigger } from 'ngx-bootstrap/utils'
import { PositioningService } from 'ngx-bootstrap/positioning';

import { timer, Subscription } from 'rxjs';
import { AvailbleBSPositions } from 'ngx-bootstrap/positioning';
import { AvailableBSPositions } from 'ngx-bootstrap/positioning';

let id = 0;

Expand All @@ -44,7 +44,7 @@ export class TooltipDirective implements OnInit, OnDestroy {
/**
* Placement of a tooltip. Accepts: "top", "bottom", "left", "right"
*/
@Input() placement: AvailbleBSPositions = 'top';
@Input() placement: AvailableBSPositions = 'top';
/**
* Specifies events that should trigger. Supports a space separated list of
* event names.
Expand Down Expand Up @@ -104,7 +104,7 @@ export class TooltipDirective implements OnInit, OnDestroy {
/** @deprecated - please use `placement` instead */
// eslint-disable-next-line @angular-eslint/no-input-rename
@Input('tooltipPlacement')
set _placement(value: AvailbleBSPositions) {
set _placement(value: AvailableBSPositions) {
warnOnce('tooltipPlacement was deprecated, please use `placement` instead');
this.placement = value;
}
Expand Down