1 | import { ChangeDetectionStrategy, Input, Component } from '@angular/core';
|
2 | import { PopoverConfig } from './popover.config';
|
3 | import { isBs3 } from '../utils/ng2-bootstrap-config';
|
4 | export var PopoverContainerComponent = (function () {
|
5 | function PopoverContainerComponent(config) {
|
6 | Object.assign(this, config);
|
7 | }
|
8 | Object.defineProperty(PopoverContainerComponent.prototype, "isBs3", {
|
9 | get: function () {
|
10 | return isBs3();
|
11 | },
|
12 | enumerable: true,
|
13 | configurable: true
|
14 | });
|
15 | PopoverContainerComponent.decorators = [
|
16 | { type: Component, args: [{
|
17 | selector: 'popover-container',
|
18 | changeDetection: ChangeDetectionStrategy.OnPush,
|
19 |
|
20 | host: {
|
21 | '[class]': '"popover in popover-" + placement + " " + placement',
|
22 | '[class.show]': '!isBs3',
|
23 | role: 'tooltip',
|
24 | style: 'display:block;'
|
25 | },
|
26 | template: "\n<div class=\"popover-arrow arrow\"></div>\n<h3 class=\"popover-title\" *ngIf=\"title\">{{title}}</h3><div class=\"popover-content\"><ng-content></ng-content></div>\n "
|
27 | },] },
|
28 | ];
|
29 |
|
30 | PopoverContainerComponent.ctorParameters = function () { return [
|
31 | { type: PopoverConfig, },
|
32 | ]; };
|
33 | PopoverContainerComponent.propDecorators = {
|
34 | 'placement': [{ type: Input },],
|
35 | 'title': [{ type: Input },],
|
36 | };
|
37 | return PopoverContainerComponent;
|
38 | }());
|
39 |
|
\ | No newline at end of file |