UNPKG

ngx-bootstrap

Version:
76 lines 5.55 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { ChangeDetectionStrategy, Input, Component } from '@angular/core'; import { PopoverConfig } from './popover.config'; import { isBs3 } from 'ngx-bootstrap/utils'; export class PopoverContainerComponent { /** * @param {?} config */ constructor(config) { Object.assign(this, config); } /** * @return {?} */ get isBs3() { return isBs3(); } } PopoverContainerComponent.decorators = [ { type: Component, args: [{ selector: 'popover-container', changeDetection: ChangeDetectionStrategy.OnPush, // tslint:disable-next-line host: { '[attr.id]': 'popoverId', '[class]': '"popover in popover-" + placement + " " + "bs-popover-" + placement + " " + placement + " " + containerClass', '[class.show]': '!isBs3', '[class.bs3]': 'isBs3', role: 'tooltip', style: 'display:block;' }, template: "<div class=\"popover-arrow arrow\"></div>\n<h3 class=\"popover-title popover-header\" *ngIf=\"title\">{{ title }}</h3>\n<div class=\"popover-content popover-body\">\n <ng-content></ng-content>\n</div>\n", styles: [` :host.bs3.popover-top { margin-bottom: 10px; } :host.bs3.popover.top>.arrow { margin-left: -2px; } :host.bs3.popover.top { margin-bottom: 10px; } :host.popover.bottom>.arrow { margin-left: -4px; } :host.bs3.bs-popover-left { margin-right: .5rem; } :host.bs3.bs-popover-right .arrow, :host.bs3.bs-popover-left .arrow{ margin: .3rem 0; } `] }] } ]; /** @nocollapse */ PopoverContainerComponent.ctorParameters = () => [ { type: PopoverConfig } ]; PopoverContainerComponent.propDecorators = { placement: [{ type: Input }], title: [{ type: Input }] }; if (false) { /** @type {?} */ PopoverContainerComponent.prototype.placement; /** @type {?} */ PopoverContainerComponent.prototype.title; /** @type {?} */ PopoverContainerComponent.prototype.containerClass; /** @type {?} */ PopoverContainerComponent.prototype.popoverId; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9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