ng2-bootstrap
Advanced tools
Comparing version 1.1.16-4 to 1.1.16-5
@@ -1,2 +0,2 @@ | ||
import { ElementRef, ComponentRef, Type, TemplateRef, EventEmitter } from '@angular/core'; | ||
import { ElementRef, ComponentRef, Type, TemplateRef, EventEmitter, Provider } from '@angular/core'; | ||
import { PositioningOptions } from '../positioning'; | ||
@@ -17,2 +17,3 @@ export interface ListenOptions { | ||
_componentRef: ComponentRef<T>; | ||
private _providers; | ||
private _componentFactory; | ||
@@ -47,3 +48,7 @@ private _elementRef; | ||
position(opts?: PositioningOptions): ComponentLoader<T>; | ||
show(content?: string | TemplateRef<any>, mixin?: any): ComponentRef<T>; | ||
provide(provider: Provider): ComponentLoader<T>; | ||
show(opts?: { | ||
content?: string | TemplateRef<any>; | ||
[key: string]: any; | ||
}): ComponentRef<T>; | ||
hide(): ComponentLoader<T>; | ||
@@ -50,0 +55,0 @@ toggle(): void; |
@@ -27,2 +27,3 @@ "use strict"; | ||
this.onHidden = new core_1.EventEmitter(); | ||
this._providers = []; | ||
this._ngZone = _ngZone; | ||
@@ -59,11 +60,17 @@ this._injector = _injector; | ||
}; | ||
ComponentLoader.prototype.show = function (content, mixin) { | ||
ComponentLoader.prototype.provide = function (provider) { | ||
this._providers.push(provider); | ||
return this; | ||
}; | ||
ComponentLoader.prototype.show = function (opts) { | ||
if (opts === void 0) { opts = {}; } | ||
this._subscribePositioning(); | ||
if (!this._componentRef) { | ||
this.onBeforeShow.emit(); | ||
this._contentRef = this._getContentRef(content); | ||
this._contentRef = this._getContentRef(opts.content); | ||
var injector = core_1.ReflectiveInjector.resolveAndCreate(this._providers, this._injector); | ||
this._componentRef = this._viewContainerRef | ||
.createComponent(this._componentFactory, 0, this._injector, this._contentRef.nodes); | ||
.createComponent(this._componentFactory, 0, injector, this._contentRef.nodes); | ||
this.instance = this._componentRef.instance; | ||
Object.assign(this._componentRef.instance, mixin || {}); | ||
Object.assign(this._componentRef.instance, opts); | ||
if (this.container === 'body' && typeof document !== 'undefined') { | ||
@@ -114,5 +121,2 @@ document.querySelector(this.container) | ||
var _this = this; | ||
if (this._unregisterListenersFn) { | ||
this._unregisterListenersFn(); | ||
} | ||
this.triggers = listenOpts.triggers || this.triggers; | ||
@@ -119,0 +123,0 @@ listenOpts.target = listenOpts.target || this._elementRef; |
@@ -18,5 +18,3 @@ export declare class Ng2BootstrapModule { | ||
export * from './typeahead'; | ||
export * from './utils/position'; | ||
export * from './utils/common'; | ||
export * from './utils/ng2-bootstrap-config'; | ||
export { ComponentsHelper } from './utils/components-helper.service'; | ||
export * from './utils/decorators'; |
@@ -53,5 +53,3 @@ "use strict"; | ||
__export(require('./typeahead')); | ||
__export(require('./utils/position')); | ||
__export(require('./utils/ng2-bootstrap-config')); | ||
var components_helper_service_1 = require('./utils/components-helper.service'); | ||
exports.ComponentsHelper = components_helper_service_1.ComponentsHelper; | ||
__export(require('./utils/decorators')); |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"Ng2BootstrapModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","module":"./accordion/accordion.module","name":"AccordionModule"},{"__symbolic":"reference","module":"./alert/alert.module","name":"AlertModule"},{"__symbolic":"reference","module":"./buttons/buttons.module","name":"ButtonsModule"},{"__symbolic":"reference","module":"./carousel/carousel.module","name":"CarouselModule"},{"__symbolic":"reference","module":"./collapse/collapse.module","name":"CollapseModule"},{"__symbolic":"reference","module":"./datepicker/datepicker.module","name":"DatepickerModule"},{"__symbolic":"reference","module":"./dropdown/dropdown.module","name":"DropdownModule"},{"__symbolic":"reference","module":"./modal/modal.module","name":"ModalModule"},{"__symbolic":"reference","module":"./pagination/pagination.module","name":"PaginationModule"},{"__symbolic":"reference","module":"./progressbar/progressbar.module","name":"ProgressbarModule"},{"__symbolic":"reference","module":"./rating/rating.module","name":"RatingModule"},{"__symbolic":"reference","module":"./tabs/tabs.module","name":"TabsModule"},{"__symbolic":"reference","module":"./timepicker/timepicker.module","name":"TimepickerModule"},{"__symbolic":"reference","module":"./tooltip/tooltip.module","name":"TooltipModule"},{"__symbolic":"reference","module":"./typeahead/typeahead.module","name":"TypeaheadModule"}]}]}]}},"exports":[{"from":"./accordion"},{"from":"./alert"},{"from":"./buttons"},{"from":"./carousel"},{"from":"./collapse"},{"from":"./datepicker"},{"from":"./modal"},{"from":"./dropdown"},{"from":"./pagination"},{"from":"./progressbar"},{"from":"./rating"},{"from":"./tabs"},{"from":"./timepicker"},{"from":"./tooltip"},{"from":"./typeahead"},{"from":"./utils/position"},{"from":"./utils/common"},{"from":"./utils/ng2-bootstrap-config"},{"from":"./utils/components-helper.service","export":["ComponentsHelper"]}]} | ||
{"__symbolic":"module","version":1,"metadata":{"Ng2BootstrapModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","module":"./accordion/accordion.module","name":"AccordionModule"},{"__symbolic":"reference","module":"./alert/alert.module","name":"AlertModule"},{"__symbolic":"reference","module":"./buttons/buttons.module","name":"ButtonsModule"},{"__symbolic":"reference","module":"./carousel/carousel.module","name":"CarouselModule"},{"__symbolic":"reference","module":"./collapse/collapse.module","name":"CollapseModule"},{"__symbolic":"reference","module":"./datepicker/datepicker.module","name":"DatepickerModule"},{"__symbolic":"reference","module":"./dropdown/dropdown.module","name":"DropdownModule"},{"__symbolic":"reference","module":"./modal/modal.module","name":"ModalModule"},{"__symbolic":"reference","module":"./pagination/pagination.module","name":"PaginationModule"},{"__symbolic":"reference","module":"./progressbar/progressbar.module","name":"ProgressbarModule"},{"__symbolic":"reference","module":"./rating/rating.module","name":"RatingModule"},{"__symbolic":"reference","module":"./tabs/tabs.module","name":"TabsModule"},{"__symbolic":"reference","module":"./timepicker/timepicker.module","name":"TimepickerModule"},{"__symbolic":"reference","module":"./tooltip/tooltip.module","name":"TooltipModule"},{"__symbolic":"reference","module":"./typeahead/typeahead.module","name":"TypeaheadModule"}]}]}]}},"exports":[{"from":"./accordion"},{"from":"./alert"},{"from":"./buttons"},{"from":"./carousel"},{"from":"./collapse"},{"from":"./datepicker"},{"from":"./modal"},{"from":"./dropdown"},{"from":"./pagination"},{"from":"./progressbar"},{"from":"./rating"},{"from":"./tabs"},{"from":"./timepicker"},{"from":"./tooltip"},{"from":"./typeahead"},{"from":"./utils/ng2-bootstrap-config"},{"from":"./utils/decorators"}]} |
@@ -178,3 +178,3 @@ /* tslint:disable:max-file-line-count */ | ||
.to('body') | ||
.show(null, { isAnimated: false }); | ||
.show({ isAnimated: false }); | ||
this.backdrop = this._backdrop._componentRef; | ||
@@ -181,0 +181,0 @@ if (this.isAnimated) { |
{ | ||
"main": "bundles/ng2-bootstrap.umd.js", | ||
"version": "1.1.16-4", | ||
"version": "1.1.16-5", | ||
"description": "angular2 bootstrap components", | ||
@@ -32,4 +32,4 @@ "module": "index.js", | ||
}, | ||
"_id": "ng2-bootstrap@1.1.16-4", | ||
"_id": "ng2-bootstrap@1.1.16-5", | ||
"devDependencies": {} | ||
} |
import { ElementRef, OnInit, Renderer, EventEmitter } from '@angular/core'; | ||
import { ControlValueAccessor } from '@angular/forms'; | ||
import { KeyAttribute } from '../utils/common'; | ||
import { PageChangedEvent } from './pagination.component'; | ||
import { PaginationConfig } from './pagination.config'; | ||
export declare const PAGER_CONTROL_VALUE_ACCESSOR: any; | ||
export declare class PagerComponent implements ControlValueAccessor, OnInit, KeyAttribute { | ||
export declare class PagerComponent implements ControlValueAccessor, OnInit { | ||
config: any; | ||
@@ -9,0 +8,0 @@ align: boolean; |
import { ElementRef, EventEmitter, OnInit, Renderer } from '@angular/core'; | ||
import { ControlValueAccessor } from '@angular/forms'; | ||
import { KeyAttribute } from '../utils/common'; | ||
import { PaginationConfig } from './pagination.config'; | ||
@@ -10,3 +9,3 @@ export interface PageChangedEvent { | ||
export declare const PAGINATION_CONTROL_VALUE_ACCESSOR: any; | ||
export declare class PaginationComponent implements ControlValueAccessor, OnInit, KeyAttribute { | ||
export declare class PaginationComponent implements ControlValueAccessor, OnInit { | ||
config: any; | ||
@@ -13,0 +12,0 @@ align: boolean; |
import { AfterViewInit } from '@angular/core'; | ||
import { TooltipConfig } from './tooltip.config'; | ||
export declare class TooltipContainerComponent implements AfterViewInit { | ||
@@ -7,3 +8,4 @@ classMap: any; | ||
animation: boolean; | ||
constructor(config: TooltipConfig); | ||
ngAfterViewInit(): void; | ||
} |
"use strict"; | ||
var core_1 = require('@angular/core'); | ||
var tooltip_config_1 = require('./tooltip.config'); | ||
var TooltipContainerComponent = (function () { | ||
function TooltipContainerComponent() { | ||
function TooltipContainerComponent(config) { | ||
Object.assign(this, config); | ||
} | ||
@@ -23,3 +25,6 @@ TooltipContainerComponent.prototype.ngAfterViewInit = function () { | ||
// tslint:disable-next-line | ||
host: { '[class]': '"tooltip in tooltip-" + placement + " " + placement', role: 'tooltip' }, | ||
host: { | ||
'[class]': '"tooltip in tooltip-" + placement + " " + placement', | ||
role: 'tooltip' | ||
}, | ||
template: "\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\"><ng-content></ng-content></div>\n " | ||
@@ -29,5 +34,7 @@ },] }, | ||
/** @nocollapse */ | ||
TooltipContainerComponent.ctorParameters = []; | ||
TooltipContainerComponent.ctorParameters = [ | ||
{ type: tooltip_config_1.TooltipConfig, }, | ||
]; | ||
return TooltipContainerComponent; | ||
}()); | ||
exports.TooltipContainerComponent = TooltipContainerComponent; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"TooltipContainerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"bs-tooltip-container","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"host":{"[class]":"\"tooltip in tooltip-\" + placement + \" \" + placement","role":"tooltip"},"template":"\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\"><ng-content></ng-content></div>\n "}]}],"members":{"ngAfterViewInit":[{"__symbolic":"method"}]}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"TooltipContainerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"bs-tooltip-container","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"host":{"[class]":"\"tooltip in tooltip-\" + placement + \" \" + placement","role":"tooltip"},"template":"\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\"><ng-content></ng-content></div>\n "}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./tooltip.config","name":"TooltipConfig"}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}}}} |
@@ -9,2 +9,3 @@ import { TemplateRef, ViewContainerRef, EventEmitter, Renderer, ElementRef, OnInit, OnDestroy } from '@angular/core'; | ||
tooltip: string | TemplateRef<any>; | ||
tooltipChange: EventEmitter<string | TemplateRef<any>>; | ||
/** | ||
@@ -70,5 +71,18 @@ * Title of a popover. | ||
ngOnInit(): void; | ||
/** | ||
* Toggles an element’s tooltip. This is considered a “manual” triggering of | ||
* the popover. | ||
*/ | ||
toggle(): void; | ||
/** | ||
* Opens an element’s tooltip. This is considered a “manual” triggering of | ||
* the popover. | ||
*/ | ||
show(): void; | ||
/** | ||
* Closes an element’s tooltip. This is considered a “manual” triggering of | ||
* the popover. | ||
*/ | ||
hide(): void; | ||
ngOnDestroy(): void; | ||
} |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -6,5 +15,7 @@ var tooltip_container_component_1 = require('./tooltip-container.component'); | ||
var component_loader_1 = require('../component-loader'); | ||
var decorators_1 = require('../utils/decorators'); | ||
var TooltipDirective = (function () { | ||
// tslint:disable-next-line | ||
function TooltipDirective(_viewContainerRef, _renderer, _elementRef, cis, config) { | ||
this.tooltipChange = new core_1.EventEmitter(); | ||
/** @deprecated */ | ||
@@ -18,3 +29,4 @@ this._animation = true; | ||
this._tooltip = cis | ||
.createLoader(_elementRef, _viewContainerRef, _renderer); | ||
.createLoader(_elementRef, _viewContainerRef, _renderer) | ||
.provide({ provide: tooltip_config_1.TooltipConfig, useValue: config }); | ||
Object.assign(this, config); | ||
@@ -135,6 +147,25 @@ this.onShown = this._tooltip.onShown; | ||
}); | ||
this.tooltipChange.subscribe(function (value) { | ||
if (!value) { | ||
_this._tooltip.hide(); | ||
} | ||
}); | ||
}; | ||
/** | ||
* Toggles an element’s tooltip. This is considered a “manual” triggering of | ||
* the popover. | ||
*/ | ||
TooltipDirective.prototype.toggle = function () { | ||
if (this.isOpen) { | ||
return this.hide(); | ||
} | ||
this.show(); | ||
}; | ||
/** | ||
* Opens an element’s tooltip. This is considered a “manual” triggering of | ||
* the popover. | ||
*/ | ||
TooltipDirective.prototype.show = function () { | ||
var _this = this; | ||
if (this._tooltip.isShown || this.isDisabled || this._delayTimeoutId) { | ||
if (this.isOpen || this.isDisabled || this._delayTimeoutId || !this.tooltip) { | ||
return; | ||
@@ -146,3 +177,4 @@ } | ||
.position({ attachment: _this.placement }) | ||
.show(_this.tooltip, { | ||
.show({ | ||
content: _this.tooltip, | ||
placement: _this.placement, | ||
@@ -158,2 +190,6 @@ title: _this.tooltipTitle | ||
}; | ||
/** | ||
* Closes an element’s tooltip. This is considered a “manual” triggering of | ||
* the popover. | ||
*/ | ||
TooltipDirective.prototype.hide = function () { | ||
@@ -192,2 +228,3 @@ var _this = this; | ||
'tooltip': [{ type: core_1.Input },], | ||
'tooltipChange': [{ type: core_1.Output },], | ||
'tooltipTitle': [{ type: core_1.Input },], | ||
@@ -214,4 +251,8 @@ 'placement': [{ type: core_1.Input },], | ||
}; | ||
__decorate([ | ||
decorators_1.OnChange(), | ||
__metadata('design:type', Object) | ||
], TooltipDirective.prototype, "tooltip", void 0); | ||
return TooltipDirective; | ||
}()); | ||
exports.TooltipDirective = TooltipDirective; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"TooltipDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[tooltip], [tooltipHtml]","exportAs":"bs-tooltip"}]}],"members":{"tooltip":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tooltipTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onShown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onHidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"htmlContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipHtml"]}]}],"_placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipPlacement"]}]}],"_isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipIsOpen"]}]}],"_enable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipEnable"]}]}],"_appendToBody":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipAppendToBody"]}]}],"_animation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipAnimation"]}]}],"_popupClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipClass"]}]}],"_tooltipContext":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipContext"]}]}],"_delay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipPopupDelay"]}]}],"_fadeDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipFadeDuration"]}]}],"_tooltipTrigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipTrigger"]}]}],"tooltipStateChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../component-loader","name":"ComponentLoaderFactory"},{"__symbolic":"reference","module":"./tooltip.config","name":"TooltipConfig"}]}],"ngOnInit":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"TooltipDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[tooltip], [tooltipHtml]","exportAs":"bs-tooltip"}]}],"members":{"tooltip":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../utils/decorators","name":"OnChange"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tooltipChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"tooltipTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onShown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onHidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"htmlContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipHtml"]}]}],"_placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipPlacement"]}]}],"_isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipIsOpen"]}]}],"_enable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipEnable"]}]}],"_appendToBody":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipAppendToBody"]}]}],"_animation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipAnimation"]}]}],"_popupClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipClass"]}]}],"_tooltipContext":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipContext"]}]}],"_delay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipPopupDelay"]}]}],"_fadeDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipFadeDuration"]}]}],"_tooltipTrigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipTrigger"]}]}],"tooltipStateChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../component-loader","name":"ComponentLoaderFactory"},{"__symbolic":"reference","module":"./tooltip.config","name":"TooltipConfig"}]}],"ngOnInit":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}} |
@@ -135,3 +135,3 @@ "use strict"; | ||
.attach(typeahead_container_component_1.TypeaheadContainerComponent) | ||
.show(null, { | ||
.show({ | ||
typeaheadRef: this, | ||
@@ -138,0 +138,0 @@ placement: this.placement, |
@@ -17,3 +17,3 @@ "use strict"; | ||
} | ||
return (this._theme || Ng2BootstrapTheme.BS3); | ||
return this._theme; | ||
}, | ||
@@ -26,4 +26,5 @@ set: function (v) { | ||
}); | ||
Ng2BootstrapConfig._theme = Ng2BootstrapTheme.BS3; | ||
return Ng2BootstrapConfig; | ||
}()); | ||
exports.Ng2BootstrapConfig = Ng2BootstrapConfig; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
6
1
484832
275
8326