New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@boxmeglobal/omisell-ui-lib

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boxmeglobal/omisell-ui-lib - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

boxmeglobal-omisell-ui-lib.metadata.json

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"OmisellTabsetModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"exports":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4}]}]}],"members":{}},"TabComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"omisell-tab","template":"<div class=\"tab-control\" [class.active]=\"tabActivateService.activeId == tabID\" (click)=\"active()\">\n <div class=\"tab-title\">{{ title }}</div>\n</div>\n","styles":[""]}]}],"members":{"tabcontent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":19,"character":3},"arguments":[{"__symbolic":"reference","name":"TabContentDirective"},{"static":false}]}]}],"tabID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"active":[{"__symbolic":"method"}]}},"TabContentDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[omisell-tabcontent]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"TabsetComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"omisell-tabset","providers":[{"__symbolic":"reference","name":"ɵa"}],"template":"<div class=\"control-wrapper d-flex w-100\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"tab-content\" *ngIf=\"tabActivateService.activeTemplate\">\n <ng-container *ngTemplateOutlet=\"tabActivateService.activeTemplate\"></ng-container>\n</div>\n","styles":[""]}]}],"members":{"tabs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":22,"character":3},"arguments":[{"__symbolic":"reference","name":"TabComponent"},{"descendants":false}]}]}],"tabIdDefault":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3},"arguments":["tabIdDefault"]}]}],"changeTab":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3},"arguments":["changeTab"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"OmisellSwitchModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"OmisellSwitchComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4}],"exports":[{"__symbolic":"reference","name":"OmisellSwitchComponent"}]}]}],"members":{}},"OmisellSwitchComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"omisell-switch","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":6,"character":17},"member":"None"},"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":9,"character":15},"useExisting":{"__symbolic":"reference","name":"OmisellSwitchComponent"},"multi":true}],"template":"<div class=\"ui-switch\" [class.ui-switch--checked]=\"isActive\">\n <span class=\"ui-switch__inner\"></span>\n</div>\n"}]}],"members":{"onChangeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":21,"character":3},"arguments":["onChange"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":24,"character":3},"arguments":["click"]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"setTabActive":[{"__symbolic":"method"}],"addTab":[{"__symbolic":"method"}]}}},"origins":{"OmisellTabsetModule":"./omisell-tabset/omisell-tabset.module","TabComponent":"./omisell-tabset/tab/tab.component","TabContentDirective":"./omisell-tabset/tab/tab.component","TabsetComponent":"./omisell-tabset/tabset/tabset.component","OmisellSwitchModule":"./omisell-switch/omisell-switch.module","OmisellSwitchComponent":"./omisell-switch/omisell-switch.component","ɵa":"./omisell-tabset/tab-activate.service"},"importAs":"@boxmeglobal/omisell-ui-lib"}
{"__symbolic":"module","version":4,"metadata":{"OmisellTabsetModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"exports":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4}]}]}],"members":{}},"TabComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"omisell-tab","template":"<div class=\"tab-control\" [class.active]=\"tabActivateService.activeId == tabID\" (click)=\"active()\">\n <div class=\"tab-title\">{{ title }}</div>\n</div>\n","styles":[""]}]}],"members":{"tabcontent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":19,"character":3},"arguments":[{"__symbolic":"reference","name":"TabContentDirective"},{"static":false}]}]}],"tabID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"active":[{"__symbolic":"method"}]}},"TabContentDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[omisell-tabcontent]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"TabsetComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"omisell-tabset","providers":[{"__symbolic":"reference","name":"ɵa"}],"template":"<div class=\"control-wrapper d-flex w-100\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"tab-content\" *ngIf=\"tabActivateService.activeTemplate\">\n <ng-container *ngTemplateOutlet=\"tabActivateService.activeTemplate\"></ng-container>\n</div>\n","styles":[""]}]}],"members":{"tabs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":23,"character":3},"arguments":[{"__symbolic":"reference","name":"TabComponent"},{"descendants":false}]}]}],"tabIdDefault":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3},"arguments":["tabIdDefault"]}]}],"changeTab":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3},"arguments":["changeTab"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"OmisellSwitchModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"OmisellSwitchComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4}],"exports":[{"__symbolic":"reference","name":"OmisellSwitchComponent"}]}]}],"members":{}},"OmisellSwitchComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"omisell-switch","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":6,"character":17},"member":"None"},"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":9,"character":15},"useExisting":{"__symbolic":"reference","name":"OmisellSwitchComponent"},"multi":true}],"template":"<div class=\"ui-switch\" [class.ui-switch--checked]=\"isActive\">\n <span class=\"ui-switch__inner\"></span>\n</div>\n"}]}],"members":{"onChangeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":21,"character":3},"arguments":["onChange"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":24,"character":3},"arguments":["click"]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"setTabActive":[{"__symbolic":"method"}],"addTab":[{"__symbolic":"method"}]}}},"origins":{"OmisellTabsetModule":"./omisell-tabset/omisell-tabset.module","TabComponent":"./omisell-tabset/tab/tab.component","TabContentDirective":"./omisell-tabset/tab/tab.component","TabsetComponent":"./omisell-tabset/tabset/tabset.component","OmisellSwitchModule":"./omisell-switch/omisell-switch.module","OmisellSwitchComponent":"./omisell-switch/omisell-switch.component","ɵa":"./omisell-tabset/tab-activate.service"},"importAs":"@boxmeglobal/omisell-ui-lib"}

@@ -431,4 +431,16 @@ (function (global, factory) {

}
};
/**
* @return {?}
*/
TabsetComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
var _this = this;
this.tabs.changes
.pipe(operators.takeUntil(this.destroy$))
.pipe(operators.filter((/**
* @return {?}
*/
function () { return !_this.tabIdDefault && _this.tabs.length > 0; })), operators.take(1))
.subscribe((/**

@@ -438,7 +450,5 @@ * @return {?}

function () {
if (!_this.tabIdDefault && _this.tabs.length > 0) {
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -445,0 +455,0 @@ };

@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@boxmeglobal/omisell-ui-lib/omisell-tabset",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],e):e(((t=t||self).boxmeglobal=t.boxmeglobal||{},t.boxmeglobal["omisell-ui-lib"]=t.boxmeglobal["omisell-ui-lib"]||{},t.boxmeglobal["omisell-ui-lib"]["omisell-tabset"]={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators)}(this,(function(t,e,n,i,a){"use strict";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};var o=function(){function t(){this.listTab=[],this.activeTabChange=new i.Subject}return Object.defineProperty(t.prototype,"activeId",{get:function(){return this._activeId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTemplate",{get:function(){var t=this,e=this.listTab.find((function(e){return e.id==t._activeId}));return e&&e.template||null},enumerable:!0,configurable:!0}),t.prototype.setTabActive=function(t){this._activeId&&this.activeTabChange.next(t),this._activeId=t},t.prototype.addTab=function(t){this.listTab.find((function(e){return e.id==t.id}))||this.listTab.push(r({},t))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var s=function(){function t(t){this._templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[omisell-tabcontent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}();var c=function(){function t(t){this.tabActivateService=t}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this.tabActivateService.addTab({id:this.tabID,template:this.tabcontent&&this.tabcontent._templateRef||null})},t.prototype.active=function(){this.tabActivateService.setTabActive(this.tabID)},t.decorators=[{type:e.Component,args:[{selector:"omisell-tab",template:'<div class="tab-control" [class.active]="tabActivateService.activeId == tabID" (click)="active()">\n <div class="tab-title">{{ title }}</div>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:o}]},t.propDecorators={tabcontent:[{type:e.ContentChild,args:[s,{static:!1}]}],tabID:[{type:e.Input}],title:[{type:e.Input}]},t}();var l=function(){function t(t){this.tabActivateService=t,this.destroy$=new i.Subject,this.changeTab=new e.EventEmitter(!1)}return t.prototype.ngOnInit=function(){var t=this;this.tabActivateService.activeTabChange.pipe(a.takeUntil(this.destroy$)).subscribe((function(e){return t.changeTab.emit(e)})),this.tabIdDefault&&this.tabActivateService.setTabActive(this.tabIdDefault),this.tabs.changes.pipe(a.takeUntil(this.destroy$)).subscribe((function(){if(!t.tabIdDefault&&t.tabs.length>0){var e=t.tabs.first;t.tabActivateService.setTabActive(e.tabID)}}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.destroy$.unsubscribe()},t.decorators=[{type:e.Component,args:[{selector:"omisell-tabset",template:'<div class="control-wrapper d-flex w-100">\n <ng-content></ng-content>\n</div>\n\n<div class="tab-content" *ngIf="tabActivateService.activeTemplate">\n <ng-container *ngTemplateOutlet="tabActivateService.activeTemplate"></ng-container>\n</div>\n',providers:[o],styles:[""]}]}],t.ctorParameters=function(){return[{type:o}]},t.propDecorators={tabs:[{type:e.ContentChildren,args:[c,{descendants:!1}]}],tabIdDefault:[{type:e.Input,args:["tabIdDefault"]}],changeTab:[{type:e.Output,args:["changeTab"]}]},t}();var u=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[c,l,s],exports:[c,l,s],imports:[n.CommonModule]}]}],t}();t.OmisellTabsetModule=u,t.TabComponent=c,t.TabContentDirective=s,t.TabsetComponent=l,t.ɵa=o,Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};var o=function(){function t(){this.listTab=[],this.activeTabChange=new i.Subject}return Object.defineProperty(t.prototype,"activeId",{get:function(){return this._activeId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTemplate",{get:function(){var t=this,e=this.listTab.find((function(e){return e.id==t._activeId}));return e&&e.template||null},enumerable:!0,configurable:!0}),t.prototype.setTabActive=function(t){this._activeId&&this.activeTabChange.next(t),this._activeId=t},t.prototype.addTab=function(t){this.listTab.find((function(e){return e.id==t.id}))||this.listTab.push(r({},t))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var c=function(){function t(t){this._templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[omisell-tabcontent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}();var s=function(){function t(t){this.tabActivateService=t}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this.tabActivateService.addTab({id:this.tabID,template:this.tabcontent&&this.tabcontent._templateRef||null})},t.prototype.active=function(){this.tabActivateService.setTabActive(this.tabID)},t.decorators=[{type:e.Component,args:[{selector:"omisell-tab",template:'<div class="tab-control" [class.active]="tabActivateService.activeId == tabID" (click)="active()">\n <div class="tab-title">{{ title }}</div>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:o}]},t.propDecorators={tabcontent:[{type:e.ContentChild,args:[c,{static:!1}]}],tabID:[{type:e.Input}],title:[{type:e.Input}]},t}();var l=function(){function t(t){this.tabActivateService=t,this.destroy$=new i.Subject,this.changeTab=new e.EventEmitter(!1)}return t.prototype.ngOnInit=function(){var t=this;this.tabActivateService.activeTabChange.pipe(a.takeUntil(this.destroy$)).subscribe((function(e){return t.changeTab.emit(e)})),this.tabIdDefault&&this.tabActivateService.setTabActive(this.tabIdDefault)},t.prototype.ngAfterContentInit=function(){var t=this;this.tabs.changes.pipe(a.filter((function(){return!t.tabIdDefault&&t.tabs.length>0})),a.take(1)).subscribe((function(){var e=t.tabs.first;t.tabActivateService.setTabActive(e.tabID)}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.destroy$.unsubscribe()},t.decorators=[{type:e.Component,args:[{selector:"omisell-tabset",template:'<div class="control-wrapper d-flex w-100">\n <ng-content></ng-content>\n</div>\n\n<div class="tab-content" *ngIf="tabActivateService.activeTemplate">\n <ng-container *ngTemplateOutlet="tabActivateService.activeTemplate"></ng-container>\n</div>\n',providers:[o],styles:[""]}]}],t.ctorParameters=function(){return[{type:o}]},t.propDecorators={tabs:[{type:e.ContentChildren,args:[s,{descendants:!1}]}],tabIdDefault:[{type:e.Input,args:["tabIdDefault"]}],changeTab:[{type:e.Output,args:["changeTab"]}]},t}();var u=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[s,l,c],exports:[s,l,c],imports:[n.CommonModule]}]}],t}();t.OmisellTabsetModule=u,t.TabComponent=s,t.TabContentDirective=c,t.TabsetComponent=l,t.ɵa=o,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=boxmeglobal-omisell-ui-lib-omisell-tabset.umd.min.js.map

@@ -431,4 +431,16 @@ (function (global, factory) {

}
};
/**
* @return {?}
*/
TabsetComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
var _this = this;
this.tabs.changes
.pipe(operators.takeUntil(this.destroy$))
.pipe(operators.filter((/**
* @return {?}
*/
function () { return !_this.tabIdDefault && _this.tabs.length > 0; })), operators.take(1))
.subscribe((/**

@@ -438,7 +450,5 @@ * @return {?}

function () {
if (!_this.tabIdDefault && _this.tabs.length > 0) {
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -445,0 +455,0 @@ };

@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/forms")):"function"==typeof define&&define.amd?define("@boxmeglobal/omisell-ui-lib",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","@angular/forms"],e):e(((t=t||self).boxmeglobal=t.boxmeglobal||{},t.boxmeglobal["omisell-ui-lib"]={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators,t.ng.forms)}(this,(function(t,e,n,i,o,r){"use strict";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var s=function(){function t(){this.listTab=[],this.activeTabChange=new i.Subject}return Object.defineProperty(t.prototype,"activeId",{get:function(){return this._activeId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTemplate",{get:function(){var t=this,e=this.listTab.find((function(e){return e.id==t._activeId}));return e&&e.template||null},enumerable:!0,configurable:!0}),t.prototype.setTabActive=function(t){this._activeId&&this.activeTabChange.next(t),this._activeId=t},t.prototype.addTab=function(t){this.listTab.find((function(e){return e.id==t.id}))||this.listTab.push(a({},t))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var c=function(){function t(t){this._templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[omisell-tabcontent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}();var u=function(){function t(t){this.tabActivateService=t}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this.tabActivateService.addTab({id:this.tabID,template:this.tabcontent&&this.tabcontent._templateRef||null})},t.prototype.active=function(){this.tabActivateService.setTabActive(this.tabID)},t.decorators=[{type:e.Component,args:[{selector:"omisell-tab",template:'<div class="tab-control" [class.active]="tabActivateService.activeId == tabID" (click)="active()">\n <div class="tab-title">{{ title }}</div>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:s}]},t.propDecorators={tabcontent:[{type:e.ContentChild,args:[c,{static:!1}]}],tabID:[{type:e.Input}],title:[{type:e.Input}]},t}();var l=function(){function t(t){this.tabActivateService=t,this.destroy$=new i.Subject,this.changeTab=new e.EventEmitter(!1)}return t.prototype.ngOnInit=function(){var t=this;this.tabActivateService.activeTabChange.pipe(o.takeUntil(this.destroy$)).subscribe((function(e){return t.changeTab.emit(e)})),this.tabIdDefault&&this.tabActivateService.setTabActive(this.tabIdDefault),this.tabs.changes.pipe(o.takeUntil(this.destroy$)).subscribe((function(){if(!t.tabIdDefault&&t.tabs.length>0){var e=t.tabs.first;t.tabActivateService.setTabActive(e.tabID)}}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.destroy$.unsubscribe()},t.decorators=[{type:e.Component,args:[{selector:"omisell-tabset",template:'<div class="control-wrapper d-flex w-100">\n <ng-content></ng-content>\n</div>\n\n<div class="tab-content" *ngIf="tabActivateService.activeTemplate">\n <ng-container *ngTemplateOutlet="tabActivateService.activeTemplate"></ng-container>\n</div>\n',providers:[s],styles:[""]}]}],t.ctorParameters=function(){return[{type:s}]},t.propDecorators={tabs:[{type:e.ContentChildren,args:[u,{descendants:!1}]}],tabIdDefault:[{type:e.Input,args:["tabIdDefault"]}],changeTab:[{type:e.Output,args:["changeTab"]}]},t}();var p=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[u,l,c],exports:[u,l,c],imports:[n.CommonModule]}]}],t}(),b=function(){function t(){this.isActive=!1,this._onChangeFn=function(t){},this._onTouchedFn=function(){},this.onChangeEvent=new e.EventEmitter(!0)}return t.prototype.onClick=function(){this.isActive=!this.isActive,this._onTouchedFn(),this.onChangeEvent.emit(this.isActive),this._onChangeFn(this.isActive)},t.prototype.ngOnInit=function(){},t.prototype.registerOnChange=function(t){this._onChangeFn=t},t.prototype.writeValue=function(t){this.isActive=!!t},t.prototype.registerOnTouched=function(t){this._onTouchedFn=t},t.prototype.setDisabledState=function(t){},t.decorators=[{type:e.Component,args:[{selector:"omisell-switch",template:'<div class="ui-switch" [class.ui-switch--checked]="isActive">\n <span class="ui-switch__inner"></span>\n</div>\n',encapsulation:e.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return t})),multi:!0}]}]}],t.ctorParameters=function(){return[]},t.propDecorators={onChangeEvent:[{type:e.Output,args:["onChange"]}],onClick:[{type:e.HostListener,args:["click"]}]},t}();var f=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[b],imports:[n.CommonModule],exports:[b]}]}],t}();t.OmisellSwitchComponent=b,t.OmisellSwitchModule=f,t.OmisellTabsetModule=p,t.TabComponent=u,t.TabContentDirective=c,t.TabsetComponent=l,t.ɵa=s,Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var s=function(){function t(){this.listTab=[],this.activeTabChange=new i.Subject}return Object.defineProperty(t.prototype,"activeId",{get:function(){return this._activeId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTemplate",{get:function(){var t=this,e=this.listTab.find((function(e){return e.id==t._activeId}));return e&&e.template||null},enumerable:!0,configurable:!0}),t.prototype.setTabActive=function(t){this._activeId&&this.activeTabChange.next(t),this._activeId=t},t.prototype.addTab=function(t){this.listTab.find((function(e){return e.id==t.id}))||this.listTab.push(a({},t))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var c=function(){function t(t){this._templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[omisell-tabcontent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}();var u=function(){function t(t){this.tabActivateService=t}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this.tabActivateService.addTab({id:this.tabID,template:this.tabcontent&&this.tabcontent._templateRef||null})},t.prototype.active=function(){this.tabActivateService.setTabActive(this.tabID)},t.decorators=[{type:e.Component,args:[{selector:"omisell-tab",template:'<div class="tab-control" [class.active]="tabActivateService.activeId == tabID" (click)="active()">\n <div class="tab-title">{{ title }}</div>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:s}]},t.propDecorators={tabcontent:[{type:e.ContentChild,args:[c,{static:!1}]}],tabID:[{type:e.Input}],title:[{type:e.Input}]},t}();var l=function(){function t(t){this.tabActivateService=t,this.destroy$=new i.Subject,this.changeTab=new e.EventEmitter(!1)}return t.prototype.ngOnInit=function(){var t=this;this.tabActivateService.activeTabChange.pipe(o.takeUntil(this.destroy$)).subscribe((function(e){return t.changeTab.emit(e)})),this.tabIdDefault&&this.tabActivateService.setTabActive(this.tabIdDefault)},t.prototype.ngAfterContentInit=function(){var t=this;this.tabs.changes.pipe(o.filter((function(){return!t.tabIdDefault&&t.tabs.length>0})),o.take(1)).subscribe((function(){var e=t.tabs.first;t.tabActivateService.setTabActive(e.tabID)}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.destroy$.unsubscribe()},t.decorators=[{type:e.Component,args:[{selector:"omisell-tabset",template:'<div class="control-wrapper d-flex w-100">\n <ng-content></ng-content>\n</div>\n\n<div class="tab-content" *ngIf="tabActivateService.activeTemplate">\n <ng-container *ngTemplateOutlet="tabActivateService.activeTemplate"></ng-container>\n</div>\n',providers:[s],styles:[""]}]}],t.ctorParameters=function(){return[{type:s}]},t.propDecorators={tabs:[{type:e.ContentChildren,args:[u,{descendants:!1}]}],tabIdDefault:[{type:e.Input,args:["tabIdDefault"]}],changeTab:[{type:e.Output,args:["changeTab"]}]},t}();var p=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[u,l,c],exports:[u,l,c],imports:[n.CommonModule]}]}],t}(),b=function(){function t(){this.isActive=!1,this._onChangeFn=function(t){},this._onTouchedFn=function(){},this.onChangeEvent=new e.EventEmitter(!0)}return t.prototype.onClick=function(){this.isActive=!this.isActive,this._onTouchedFn(),this.onChangeEvent.emit(this.isActive),this._onChangeFn(this.isActive)},t.prototype.ngOnInit=function(){},t.prototype.registerOnChange=function(t){this._onChangeFn=t},t.prototype.writeValue=function(t){this.isActive=!!t},t.prototype.registerOnTouched=function(t){this._onTouchedFn=t},t.prototype.setDisabledState=function(t){},t.decorators=[{type:e.Component,args:[{selector:"omisell-switch",template:'<div class="ui-switch" [class.ui-switch--checked]="isActive">\n <span class="ui-switch__inner"></span>\n</div>\n',encapsulation:e.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return t})),multi:!0}]}]}],t.ctorParameters=function(){return[]},t.propDecorators={onChangeEvent:[{type:e.Output,args:["onChange"]}],onClick:[{type:e.HostListener,args:["click"]}]},t}();var f=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[b],imports:[n.CommonModule],exports:[b]}]}],t}();t.OmisellSwitchComponent=b,t.OmisellSwitchModule=f,t.OmisellTabsetModule=p,t.TabComponent=u,t.TabContentDirective=c,t.TabsetComponent=l,t.ɵa=s,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=boxmeglobal-omisell-ui-lib.umd.min.js.map

@@ -9,3 +9,3 @@ /**

import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { filter, take, takeUntil } from 'rxjs/operators';
import { TabComponent } from '../tab/tab.component';

@@ -35,4 +35,12 @@ export class TabsetComponent {

}
}
/**
* @return {?}
*/
ngAfterContentInit() {
this.tabs.changes
.pipe(takeUntil(this.destroy$))
.pipe(filter((/**
* @return {?}
*/
() => !this.tabIdDefault && this.tabs.length > 0)), take(1))
.subscribe((/**

@@ -42,7 +50,5 @@ * @return {?}

() => {
if (!this.tabIdDefault && this.tabs.length > 0) {
/** @type {?} */
const firstTab = this.tabs.first;
this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
const firstTab = this.tabs.first;
this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -93,2 +99,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bib3htZWdsb2JhbC9vbWlzZWxsLXVpLWxpYi9vbWlzZWxsLXRhYnNldC8iLCJzb3VyY2VzIjpbInRhYnNldC90YWJzZXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFBRSxlQUFlLEVBQzFCLFlBQVksRUFBRSxLQUFLLEVBRW5CLE1BQU0sRUFBRSxTQUFTLEVBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxrQkFBa0IsRUFBUyxNQUFNLHlCQUF5QixDQUFDO0FBQ3BFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLG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FrZVVudGlsKHRoaXMuZGVzdHJveSQpKVxuICAgICAgLnN1YnNjcmliZSh0YWJJZCA9PiB0aGlzLmNoYW5nZVRhYi5lbWl0KHRhYklkKSlcblxuICAgIGlmICh0aGlzLnRhYklkRGVmYXVsdCkge1xuICAgICAgdGhpcy50YWJBY3RpdmF0ZVNlcnZpY2Uuc2V0VGFiQWN0aXZlKHRoaXMudGFiSWREZWZhdWx0KVxuICAgIH1cblxuICAgIHRoaXMudGFicy5jaGFuZ2VzXG4gICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95JCkpXG4gICAgICAuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgaWYoIXRoaXMudGFiSWREZWZhdWx0ICYmIHRoaXMudGFicy5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgY29uc3QgZmlyc3RUYWI6IFRhYkNvbXBvbmVudCA9IHRoaXMudGFicy5maXJzdFxuICAgICAgICAgIHRoaXMudGFiQWN0aXZhdGVTZXJ2aWNlLnNldFRhYkFjdGl2ZShmaXJzdFRhYi50YWJJRClcbiAgICAgICAgfVxuICAgICAgfSlcbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuZGVzdHJveSQubmV4dCgpXG4gICAgdGhpcy5kZXN0cm95JC5jb21wbGV0ZSgpXG4gICAgdGhpcy5kZXN0cm95JC51bnN1YnNjcmliZSgpXG4gIH1cbn1cbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bib3htZWdsb2JhbC9vbWlzZWxsLXVpLWxpYi9vbWlzZWxsLXRhYnNldC8iLCJzb3VyY2VzIjpbInRhYnNldC90YWJzZXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUVMLFNBQVMsRUFBRSxlQUFlLEVB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5uZXh0KClcbiAgICB0aGlzLmRlc3Ryb3kkLmNvbXBsZXRlKClcbiAgICB0aGlzLmRlc3Ryb3kkLnVuc3Vic2NyaWJlKClcbiAgfVxufVxuIl19

@@ -9,3 +9,3 @@ /**

import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { filter, take, takeUntil } from 'rxjs/operators';
import { TabComponent } from '../tab/tab.component';

@@ -36,4 +36,16 @@ var TabsetComponent = /** @class */ (function () {

}
};
/**
* @return {?}
*/
TabsetComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
var _this = this;
this.tabs.changes
.pipe(takeUntil(this.destroy$))
.pipe(filter((/**
* @return {?}
*/
function () { return !_this.tabIdDefault && _this.tabs.length > 0; })), take(1))
.subscribe((/**

@@ -43,7 +55,5 @@ * @return {?}

function () {
if (!_this.tabIdDefault && _this.tabs.length > 0) {
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -99,2 +109,2 @@ };

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bib3htZWdsb2JhbC9vbWlzZWxsLXVpLWxpYi9vbWlzZWxsLXRhYnNldC8iLCJzb3VyY2VzIjpbInRhYnNldC90YWJzZXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFBRSxlQUFlLEVBQzFCLFlBQVksRUFBRSxLQUFLLEVBRW5CLE1BQU0sRUFBRSxTQUFTLEVBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxrQkFBa0IsRUFBUyxNQUFNLHlCQUF5QixDQUFDO0FBQ3BFLE9BQU8sRU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ZVNlcnZpY2U6IFRhYkFjdGl2YXRlU2VydmljZVxuICApIHtcbiAgfVxuXG4gIG5nT25Jbml0KCkge1xuICAgIHRoaXMudGFiQWN0aXZhdGVTZXJ2aWNlLmFjdGl2ZVRhYkNoYW5nZVxuICAgICAgLnBpcGUodGFrZVVudGlsKHRoaXMuZGVzdHJveSQpKVxuICAgICAgLnN1YnNjcmliZSh0YWJJZCA9PiB0aGlzLmNoYW5nZVRhYi5lbWl0KHRhYklkKSlcblxuICAgIGlmICh0aGlzLnRhYklkRGVmYXVsdCkge1xuICAgICAgdGhpcy50YWJBY3RpdmF0ZVNlcnZpY2Uuc2V0VGFiQWN0aXZlKHRoaXMudGFiSWREZWZhdWx0KVxuICAgIH1cblxuICAgIHRoaXMudGFicy5jaGFuZ2VzXG4gICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95JCkpXG4gICAgICAuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgaWYoIXRoaXMudGFiSWREZWZhdWx0ICYmIHRoaXMudGFicy5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgY29uc3QgZmlyc3RUYWI6IFRhYkNvbXBvbmVudCA9IHRoaXMudGFicy5maXJzdFxuICAgICAgICAgIHRoaXMudGFiQWN0aXZhdGVTZXJ2aWNlLnNldFRhYkFjdGl2ZShmaXJzdFRhYi50YWJJRClcbiAgICAgICAgfVxuICAgICAgfSlcbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuZGVzdHJveSQubmV4dCgpXG4gICAgdGhpcy5kZXN0cm95JC5jb21wbGV0ZSgpXG4gICAgdGhpcy5kZXN0cm95JC51bnN1YnNjcmliZSgpXG4gIH1cbn1cbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bib3htZWdsb2JhbC9vbWlzZWxsLXVpLWxpYi9vb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biAgICAgICAgdGFrZSgxKSxcbiAgICAgIClcbiAgICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICAgIGNvbnN0IGZpcnN0VGFiOiBUYWJDb21wb25lbnQgPSB0aGlzLnRhYnMuZmlyc3RcbiAgICAgICAgICB0aGlzLnRhYkFjdGl2YXRlU2VydmljZS5zZXRUYWJBY3RpdmUoZmlyc3RUYWIudGFiSUQpXG4gICAgICAgIH0pXG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICB0aGlzLmRlc3Ryb3kkLm5leHQoKVxuICAgIHRoaXMuZGVzdHJveSQuY29tcGxldGUoKVxuICAgIHRoaXMuZGVzdHJveSQudW5zdWJzY3JpYmUoKVxuICB9XG59XG4iXX0=
import { Injectable, Directive, TemplateRef, Component, ContentChild, Input, EventEmitter, ContentChildren, Output, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { takeUntil, filter, take } from 'rxjs/operators';

@@ -187,4 +187,12 @@ /**

}
}
/**
* @return {?}
*/
ngAfterContentInit() {
this.tabs.changes
.pipe(takeUntil(this.destroy$))
.pipe(filter((/**
* @return {?}
*/
() => !this.tabIdDefault && this.tabs.length > 0)), take(1))
.subscribe((/**

@@ -194,7 +202,5 @@ * @return {?}

() => {
if (!this.tabIdDefault && this.tabs.length > 0) {
/** @type {?} */
const firstTab = this.tabs.first;
this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
const firstTab = this.tabs.first;
this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -201,0 +207,0 @@ }

import { Injectable, Directive, TemplateRef, Component, ContentChild, Input, EventEmitter, ContentChildren, Output, NgModule, ViewEncapsulation, forwardRef, HostListener } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { takeUntil, filter, take } from 'rxjs/operators';
import { NG_VALUE_ACCESSOR } from '@angular/forms';

@@ -188,4 +188,12 @@

}
}
/**
* @return {?}
*/
ngAfterContentInit() {
this.tabs.changes
.pipe(takeUntil(this.destroy$))
.pipe(filter((/**
* @return {?}
*/
() => !this.tabIdDefault && this.tabs.length > 0)), take(1))
.subscribe((/**

@@ -195,7 +203,5 @@ * @return {?}

() => {
if (!this.tabIdDefault && this.tabs.length > 0) {
/** @type {?} */
const firstTab = this.tabs.first;
this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
const firstTab = this.tabs.first;
this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -202,0 +208,0 @@ }

@@ -5,3 +5,3 @@ import { Injectable, Directive, TemplateRef, Component, ContentChild, Input, EventEmitter, ContentChildren, Output, NgModule } from '@angular/core';

import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { takeUntil, filter, take } from 'rxjs/operators';

@@ -213,4 +213,16 @@ /**

}
};
/**
* @return {?}
*/
TabsetComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
var _this = this;
this.tabs.changes
.pipe(takeUntil(this.destroy$))
.pipe(filter((/**
* @return {?}
*/
function () { return !_this.tabIdDefault && _this.tabs.length > 0; })), take(1))
.subscribe((/**

@@ -220,7 +232,5 @@ * @return {?}

function () {
if (!_this.tabIdDefault && _this.tabs.length > 0) {
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -227,0 +237,0 @@ };

@@ -5,3 +5,3 @@ import { Injectable, Directive, TemplateRef, Component, ContentChild, Input, EventEmitter, ContentChildren, Output, NgModule, ViewEncapsulation, forwardRef, HostListener } from '@angular/core';

import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { takeUntil, filter, take } from 'rxjs/operators';
import { NG_VALUE_ACCESSOR } from '@angular/forms';

@@ -214,4 +214,16 @@

}
};
/**
* @return {?}
*/
TabsetComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
var _this = this;
this.tabs.changes
.pipe(takeUntil(this.destroy$))
.pipe(filter((/**
* @return {?}
*/
function () { return !_this.tabIdDefault && _this.tabs.length > 0; })), take(1))
.subscribe((/**

@@ -221,7 +233,5 @@ * @return {?}

function () {
if (!_this.tabIdDefault && _this.tabs.length > 0) {
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}
/** @type {?} */
var firstTab = _this.tabs.first;
_this.tabActivateService.setTabActive(firstTab.tabID);
}));

@@ -228,0 +238,0 @@ };

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"OmisellTabsetModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"exports":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4}]}]}],"members":{}},"TabComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"omisell-tab","template":"<div class=\"tab-control\" [class.active]=\"tabActivateService.activeId == tabID\" (click)=\"active()\">\n <div class=\"tab-title\">{{ title }}</div>\n</div>\n","styles":[""]}]}],"members":{"tabcontent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":19,"character":3},"arguments":[{"__symbolic":"reference","name":"TabContentDirective"},{"static":false}]}]}],"tabID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"active":[{"__symbolic":"method"}]}},"TabContentDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[omisell-tabcontent]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"TabsetComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"omisell-tabset","providers":[{"__symbolic":"reference","name":"ɵa"}],"template":"<div class=\"control-wrapper d-flex w-100\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"tab-content\" *ngIf=\"tabActivateService.activeTemplate\">\n <ng-container *ngTemplateOutlet=\"tabActivateService.activeTemplate\"></ng-container>\n</div>\n","styles":[""]}]}],"members":{"tabs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":22,"character":3},"arguments":[{"__symbolic":"reference","name":"TabComponent"},{"descendants":false}]}]}],"tabIdDefault":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3},"arguments":["tabIdDefault"]}]}],"changeTab":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3},"arguments":["changeTab"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"setTabActive":[{"__symbolic":"method"}],"addTab":[{"__symbolic":"method"}]}}},"origins":{"OmisellTabsetModule":"./omisell-tabset.module","TabComponent":"./tab/tab.component","TabContentDirective":"./tab/tab.component","TabsetComponent":"./tabset/tabset.component","ɵa":"./tab-activate.service"},"importAs":"@boxmeglobal/omisell-ui-lib/omisell-tabset"}
{"__symbolic":"module","version":4,"metadata":{"OmisellTabsetModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"exports":[{"__symbolic":"reference","name":"TabComponent"},{"__symbolic":"reference","name":"TabsetComponent"},{"__symbolic":"reference","name":"TabContentDirective"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4}]}]}],"members":{}},"TabComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"omisell-tab","template":"<div class=\"tab-control\" [class.active]=\"tabActivateService.activeId == tabID\" (click)=\"active()\">\n <div class=\"tab-title\">{{ title }}</div>\n</div>\n","styles":[""]}]}],"members":{"tabcontent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":19,"character":3},"arguments":[{"__symbolic":"reference","name":"TabContentDirective"},{"static":false}]}]}],"tabID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"active":[{"__symbolic":"method"}]}},"TabContentDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[omisell-tabcontent]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"TabsetComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"omisell-tabset","providers":[{"__symbolic":"reference","name":"ɵa"}],"template":"<div class=\"control-wrapper d-flex w-100\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"tab-content\" *ngIf=\"tabActivateService.activeTemplate\">\n <ng-container *ngTemplateOutlet=\"tabActivateService.activeTemplate\"></ng-container>\n</div>\n","styles":[""]}]}],"members":{"tabs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":23,"character":3},"arguments":[{"__symbolic":"reference","name":"TabComponent"},{"descendants":false}]}]}],"tabIdDefault":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3},"arguments":["tabIdDefault"]}]}],"changeTab":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3},"arguments":["changeTab"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"setTabActive":[{"__symbolic":"method"}],"addTab":[{"__symbolic":"method"}]}}},"origins":{"OmisellTabsetModule":"./omisell-tabset.module","TabComponent":"./tab/tab.component","TabContentDirective":"./tab/tab.component","TabsetComponent":"./tabset/tabset.component","ɵa":"./tab-activate.service"},"importAs":"@boxmeglobal/omisell-ui-lib/omisell-tabset"}

@@ -1,6 +0,6 @@

import { EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
import { AfterContentInit, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
import { TabActivateService, TabID } from '../tab-activate.service';
import { Subject } from 'rxjs';
import { TabComponent } from '../tab/tab.component';
export declare class TabsetComponent implements OnInit, OnDestroy {
export declare class TabsetComponent implements OnInit, OnDestroy, AfterContentInit {
tabActivateService: TabActivateService;

@@ -16,3 +16,4 @@ destroy$: Subject<void>;

ngOnInit(): void;
ngAfterContentInit(): void;
ngOnDestroy(): void;
}
{
"name": "@boxmeglobal/omisell-ui-lib",
"version": "0.0.5",
"version": "0.0.6",
"author": {

@@ -5,0 +5,0 @@ "name": "Hung Cung"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc