@coreui/angular
Version:
CoreUI Angular Bootstrap 4 components
2 lines • 25.1 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs/index"),require("rxjs/operators"),require("@angular/core"),require("@angular/common"),require("@angular/router")):"function"==typeof define&&define.amd?define("@coreui/angular",["exports","rxjs/index","rxjs/operators","@angular/core","@angular/common","@angular/router"],t):t((e.coreui=e.coreui||{},e.coreui.angular={}),e.rxjs.index,e.rxjs.operators,e.ng.core,e.ng.common,e.ng.router)}(this,function(e,n,r,i,o,a){"use strict";var s=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],d=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],p=function(e,t){var n=t.indexOf(e),r=t.slice(0,n+1);-1!==r.map(function(e){return document.body.classList.contains(e)}).indexOf(!0)?r.map(function(e){return document.body.classList.remove(e)}):document.body.classList.add(e)},t=function(){function e(e,t){this.document=e,this.renderer=t}return e.prototype.removeClasses=function(e){var t=this;return-1!==e.map(function(e){return t.document.body.classList.contains(e)}).indexOf(!0)},e.prototype.toggleClasses=function(e,t){var n=this,r=t.indexOf(e),i=t.slice(0,r+1);this.removeClasses(i)?i.map(function(e){return n.renderer.removeClass(n.document.body,e)}):this.renderer.addClass(this.document.body,e)},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2}]},e}(),c=function(){function e(){}return e.prototype.ngOnInit=function(){this.bp=this.breakpoint},e.prototype.toggleOpen=function(e){var t;e.preventDefault(),t=this.bp?"sidebar-"+this.bp+"-show":s[0],p(t,s)},e.decorators=[{type:i.Directive,args:[{selector:"[appSidebarToggler]"}]}],e.ctorParameters=function(){return[]},e.propDecorators={breakpoint:[{type:i.Input,args:["appSidebarToggler"]}],toggleOpen:[{type:i.HostListener,args:["click",["$event"]]}]},e}(),l=function(){function e(e,t){this.document=e,this.renderer=t}return e.prototype.toggleOpen=function(e){e.preventDefault();var t=this.document.body;t.classList.contains("sidebar-minimized")?this.renderer.removeClass(t,"sidebar-minimized"):this.renderer.addClass(t,"sidebar-minimized")},e.decorators=[{type:i.Directive,args:[{selector:"[appSidebarMinimizer]"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2}]},e.propDecorators={toggleOpen:[{type:i.HostListener,args:["click",["$event"]]}]},e}(),u=function(){function e(e,t){this.document=e,this.renderer=t}return e.prototype.hasClass=function(e,t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)},e.prototype.toggleOpen=function(e){e.preventDefault();var t=this.document.body;t.classList.contains("sidebar-show")?this.renderer.removeClass(t,"sidebar-show"):this.renderer.addClass(t,"sidebar-show")},e.decorators=[{type:i.Directive,args:[{selector:"[appMobileSidebarToggler]"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2}]},e.propDecorators={toggleOpen:[{type:i.HostListener,args:["click",["$event"]]}]},e}(),g=function(){function e(e,t){this.document=e,this.renderer=t}return e.prototype.hasClass=function(e,t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)},e.prototype.toggleClass=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(this.hasClass(e,t)){for(;0<=n.indexOf(" "+t+" ");)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}else e.className+=" "+t},e.prototype.toggleOpen=function(e){e.preventDefault();var t=this.document.body;this.hasClass(t,"sidebar-off-canvas")&&(t.classList.contains("sidebar-show")?this.renderer.removeClass(t,"sidebar-show"):this.renderer.addClass(t,"sidebar-show"))},e.decorators=[{type:i.Directive,args:[{selector:"[appSidebarClose]"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2}]},e.propDecorators={toggleOpen:[{type:i.HostListener,args:["click",["$event"]]}]},e}(),f=function(){function e(e,t){this.document=e,this.renderer=t}return e.prototype.toggleOpen=function(e){e.preventDefault();var t=this.document.body;t.classList.contains("brand-minimized")?this.renderer.removeClass(t,"brand-minimized"):this.renderer.addClass(t,"brand-minimized")},e.decorators=[{type:i.Directive,args:[{selector:"[appBrandMinimizer]"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2}]},e.propDecorators={toggleOpen:[{type:i.HostListener,args:["click",["$event"]]}]},e}(),m=function(){function e(e){this.classToggler=e}return e.prototype.ngOnInit=function(){this.bp=this.breakpoint},e.prototype.toggleOpen=function(e){e.preventDefault();var t=this.bp?"aside-menu-"+this.bp+"-show":d[0];this.classToggler.toggleClasses(t,d)},e.decorators=[{type:i.Directive,args:[{selector:"[appAsideMenuToggler]",providers:[t]}]}],e.ctorParameters=function(){return[{type:t}]},e.propDecorators={breakpoint:[{type:i.Input,args:["appAsideMenuToggler"]}],toggleOpen:[{type:i.HostListener,args:["click",["$event"]]}]},e}(),h=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[o.CommonModule],exports:[m,f,u,c,l,g],declarations:[m,f,u,c,l,g],providers:[t]}]}],e}();function b(e){for(var t=e.nativeElement,n=t.parentElement;t.firstChild;)n.insertBefore(t.firstChild,t);n.removeChild(t)}var y=function(){function e(e,t,n){this.document=e,this.renderer=t,this.el=n}return e.prototype.ngOnInit=function(){b(this.el),this.isFixed(this.fixed),this.isOffCanvas(this.offCanvas),this.displayBreakpoint(this.display)},e.prototype.ngOnDestroy=function(){this.renderer.removeClass(this.document.body,"aside-menu-fixed")},e.prototype.isFixed=function(e){void 0===e&&(e=this.fixed),e&&this.renderer.addClass(this.document.body,"aside-menu-fixed")},e.prototype.isOffCanvas=function(e){void 0===e&&(e=this.offCanvas),e&&this.renderer.addClass(this.document.body,"aside-menu-off-canvas")},e.prototype.displayBreakpoint=function(e){if(void 0===e&&(e=this.display),!1!==e){var t=this.display?"aside-menu-"+this.display+"-show":d[0];this.renderer.addClass(this.document.body,t)}},e.decorators=[{type:i.Component,args:[{selector:"app-aside",template:'\n <aside class="aside-menu">\n <ng-content></ng-content>\n </aside>\n '}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2},{type:i.ElementRef}]},e.propDecorators={display:[{type:i.Input}],fixed:[{type:i.Input}],offCanvas:[{type:i.Input}]},e}(),v=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[o.CommonModule,h],exports:[y,h],declarations:[y]}]}],e}(),C=function(){function e(e,t){var o=this;this.router=e,this.route=t,this._breadcrumbs=new n.BehaviorSubject(new Array),this.breadcrumbs=this._breadcrumbs.asObservable(),this.router.events.pipe(r.filter(function(e){return e instanceof a.NavigationEnd})).subscribe(function(e){var n=[],r=o.route.root,i="";do{var t=r.children;r=null,t.forEach(function(e){if("primary"===e.outlet){var t=e.snapshot;i+="/"+t.url.map(function(e){return e.path}).join("/"),n.push({label:e.snapshot.data,url:i}),r=e}})}while(r);return o._breadcrumbs.next(Object.assign([],n)),n})}return e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:a.Router},{type:a.ActivatedRoute}]},e}(),I=function(){function e(e,t,n,r){this.document=e,this.renderer=t,this.service=n,this.el=r}return e.prototype.ngOnInit=function(){b(this.el),this.isFixed(this.fixed),this.breadcrumbs=this.service.breadcrumbs},e.prototype.ngOnDestroy=function(){this.renderer.removeClass(this.document.body,"breadcrumb-fixed")},e.prototype.isFixed=function(e){void 0===e&&(e=this.fixed),e&&this.renderer.addClass(this.document.body,"breadcrumb-fixed")},e.decorators=[{type:i.Component,args:[{selector:"app-breadcrumb",template:'\n <ng-template ngFor let-breadcrumb [ngForOf]="breadcrumbs | async" let-last = last>\n <li class="breadcrumb-item"\n *ngIf="breadcrumb.label.title && (breadcrumb.url.slice(-1) == \'/\' || last)"\n [ngClass]="{active: last}">\n <a *ngIf="!last" [routerLink]="breadcrumb.url">{{breadcrumb.label.title}}</a>\n <span *ngIf="last" [routerLink]="breadcrumb.url">{{breadcrumb.label.title}}</span>\n </li>\n </ng-template>\n '}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2},{type:C},{type:i.ElementRef}]},e.propDecorators={fixed:[{type:i.Input}]},e}(),x=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[C]}},t.decorators=[{type:i.NgModule,args:[{imports:[o.CommonModule,a.RouterModule],exports:[I],declarations:[I]}]}],t}(),k=function(){function e(e,t,n){this.document=e,this.renderer=t,this.el=n}return e.prototype.ngOnInit=function(){b(this.el),this.isFixed(this.fixed)},e.prototype.ngOnDestroy=function(){this.renderer.removeClass(this.document.body,"footer-fixed")},e.prototype.isFixed=function(e){void 0===e&&(e=this.fixed),e&&this.renderer.addClass(this.document.body,"footer-fixed")},e.decorators=[{type:i.Component,args:[{selector:"app-footer",template:'\n <ng-container class="app-footer"></ng-container>\n <footer class="app-footer">\n <ng-content></ng-content>\n </footer>\n '}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2},{type:i.ElementRef}]},e.propDecorators={fixed:[{type:i.Input}]},e}(),O=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[o.CommonModule],exports:[k],declarations:[k]}]}],e}(),D=function(){function e(e,t,n){this.document=e,this.renderer=t,this.el=n,this.navbarBrandText={icon:"🅲",text:"🅲 CoreUI"},this.navbarBrandHref=""}return e.prototype.ngOnInit=function(){b(this.el),this.isFixed(this.fixed),this.navbarBrandImg=Boolean(this.navbarBrand||this.navbarBrandFull||this.navbarBrandMinimized)},e.prototype.ngOnDestroy=function(){this.renderer.removeClass(this.document.body,"header-fixed")},e.prototype.isFixed=function(e){void 0===e&&(e=this.fixed),e&&this.renderer.addClass(this.document.body,"header-fixed")},e.prototype.imgSrc=function(e){return e.src?e.src:""},e.prototype.imgWidth=function(e){return e.width?e.width:"auto"},e.prototype.imgHeight=function(e){return e.height?e.height:"auto"},e.prototype.imgAlt=function(e){return e.alt?e.alt:""},e.prototype.breakpoint=function(e){return console.log(e),e||""},e.decorators=[{type:i.Component,args:[{selector:"app-header",template:'\n <header class="app-header navbar">\n <ng-template [ngIf]="mobileSidebarToggler != false">\n <button class="navbar-toggler d-lg-none" type="button" appSidebarToggler>\n <span class="navbar-toggler-icon"></span>\n </button>\n </ng-template>\n <a class="navbar-brand" [href]="navbarBrandHref">\n <ng-template [ngIf]="navbarBrandImg">\n <img *ngIf="navbarBrand"\n [src]="imgSrc(navbarBrand)"\n [attr.width]="imgWidth(navbarBrand)"\n [attr.height]="imgHeight(navbarBrand)"\n [attr.alt]="imgAlt(navbarBrand)"\n class="navbar-brand">\n <img *ngIf="navbarBrandFull"\n [src]="imgSrc(navbarBrandFull)"\n [attr.width]="imgWidth(navbarBrandFull)"\n [attr.height]="imgHeight(navbarBrandFull)"\n [attr.alt]="imgAlt(navbarBrandFull)"\n class="navbar-brand-full">\n <img *ngIf="navbarBrandMinimized"\n [src]="imgSrc(navbarBrandMinimized)"\n [attr.width]="imgWidth(navbarBrandMinimized)"\n [attr.height]="imgHeight(navbarBrandMinimized)"\n [attr.alt]="imgAlt(navbarBrandMinimized)"\n class="navbar-brand-minimized">\n </ng-template>\n <ng-template [ngIf]="!navbarBrandImg">\n <div class="navbar-brand-full" [innerHTML]="navbarBrandText.text"></div>\n <div class="navbar-brand-minimized" [innerHTML]="navbarBrandText.icon"></div>\n </ng-template>\n </a>\n <ng-template [ngIf]="sidebarToggler != false">\n <button class="navbar-toggler d-md-down-none" type="button" [appSidebarToggler]="sidebarToggler">\n <span class="navbar-toggler-icon"></span>\n </button>\n </ng-template>\n <ng-content></ng-content>\n <ng-template [ngIf]="asideMenuToggler != false">\n <button class="navbar-toggler d-md-down-none" type="button" [appAsideMenuToggler]="asideMenuToggler">\n <span class="navbar-toggler-icon"></span>\n </button>\n </ng-template>\n <ng-template [ngIf]="mobileAsideMenuToggler != false">\n <button class="navbar-toggler d-lg-none" type="button" appAsideMenuToggler>\n <span class="navbar-toggler-icon"></span>\n </button>\n </ng-template>\n </header>\n '}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2},{type:i.ElementRef}]},e.propDecorators={fixed:[{type:i.Input}],navbarBrand:[{type:i.Input}],navbarBrandFull:[{type:i.Input}],navbarBrandMinimized:[{type:i.Input}],navbarBrandText:[{type:i.Input}],navbarBrandHref:[{type:i.Input}],sidebarToggler:[{type:i.Input}],mobileSidebarToggler:[{type:i.Input}],asideMenuToggler:[{type:i.Input}],mobileAsideMenuToggler:[{type:i.Input}]},e}(),w=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[o.CommonModule,h],exports:[D,h],declarations:[D]}]}],e}(),M=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-footer",template:'\n <div class="sidebar-footer">\n <ng-content></ng-content>\n </div>'}]}],e.ctorParameters=function(){return[{type:i.ElementRef}]},e}(),B=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-form",template:'\n <form class="sidebar-form">\n <ng-content></ng-content>\n </form>\n '}]}],e.ctorParameters=function(){return[{type:i.ElementRef}]},e}(),T=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-header",template:'\n <div class="sidebar-header">\n <ng-content></ng-content>\n </div>\n '}]}],e.ctorParameters=function(){return[{type:i.ElementRef}]},e}(),E=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-minimizer",template:'\n <button class="sidebar-minimizer" type="button" appSidebarMinimizer appBrandMinimizer></button>\n '}]}],e.ctorParameters=function(){return[{type:i.ElementRef}]},e}(),R=function(){function e(e,t){this.document=e,this.renderer=t}return e.prototype.ngOnInit=function(){this.displayBreakpoint(this.display),this.isCompact(this.compact),this.isFixed(this.fixed),this.isMinimized(this.minimized),this.isOffCanvas(this.offCanvas)},e.prototype.ngOnDestroy=function(){this.renderer.removeClass(this.document.body,"sidebar-fixed")},e.prototype.isCompact=function(e){void 0===e&&(e=this.compact),e&&this.renderer.addClass(this.document.body,"sidebar-compact")},e.prototype.isFixed=function(e){void 0===e&&(e=this.fixed),e&&this.renderer.addClass(this.document.body,"sidebar-fixed")},e.prototype.isMinimized=function(e){void 0===e&&(e=this.minimized),e&&this.renderer.addClass(this.document.body,"sidebar-minimized")},e.prototype.isOffCanvas=function(e){void 0===e&&(e=this.offCanvas),e&&this.renderer.addClass(this.document.body,"sidebar-off-canvas")},e.prototype.fixedPosition=function(e){void 0===e&&(e=this.fixed),console.warn("deprecated fixedPosition(), use isFixed() instead"),e&&this.renderer.addClass(this.document.body,"sidebar-fixed")},e.prototype.displayBreakpoint=function(e){if(void 0===e&&(e=this.display),!1!==e){var t=e?"sidebar-"+e+"-show":s[0];this.renderer.addClass(this.document.body,t)}},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar",template:"<ng-content></ng-content>"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2}]},e.propDecorators={compact:[{type:i.Input}],display:[{type:i.Input}],fixed:[{type:i.Input}],minimized:[{type:i.Input}],offCanvas:[{type:i.Input}],"true":[{type:i.HostBinding,args:["class.sidebar"]}]},e}(),A=function(){function e(e){this.el=e}return e.prototype.toggle=function(){this.el.nativeElement.classList.toggle("open")},e.decorators=[{type:i.Directive,args:[{selector:"[appNavDropdown]"}]}],e.ctorParameters=function(){return[{type:i.ElementRef}]},e}(),L=function(){function e(e){this.dropdown=e}return e.prototype.toggleOpen=function(e){e.preventDefault(),this.dropdown.toggle()},e.decorators=[{type:i.Directive,args:[{selector:"[appNavDropdownToggle]"}]}],e.ctorParameters=function(){return[{type:A}]},e.propDecorators={toggleOpen:[{type:i.HostListener,args:["click",["$event"]]}]},e}(),N=function(){function e(e,t,n){this.document=e,this.renderer=t,this.el=n}return e.prototype.ngOnInit=function(){var e=this.appLinkAttributes;for(var t in e)"style"===t&&"object"==typeof e[t]?this.setStyle(e[t]):"class"===t?this.addClass(e[t]):this.setAttrib(t,e[t])},e.prototype.setStyle=function(e){for(var t in e)this.renderer.setStyle(this.el.nativeElement,t,e[t])},e.prototype.addClass=function(e){var t=this;(Array.isArray(e)?e:e.split(" ")).forEach(function(e){t.renderer.addClass(t.el.nativeElement,e)})},e.prototype.setAttrib=function(e,t){this.document.createAttribute(e).value=t,this.renderer.setAttribute(this.el.nativeElement,e,t)},e.decorators=[{type:i.Directive,args:[{selector:"[appLinkAttributes]"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2},{type:i.ElementRef}]},e.propDecorators={appLinkAttributes:[{type:i.Input}]},e}(),z=function(){function e(){this.role="nav"}return e.prototype.isDivider=function(e){return!!e.divider},e.prototype.isTitle=function(e){return!!e.title},e.prototype.ngOnChanges=function(e){this.navItemsArray=JSON.parse(JSON.stringify(this.navItems))},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-nav",template:'\n <ul class="nav">\n <ng-template ngFor let-navitem [ngForOf]="navItems">\n <li *ngIf="isDivider(navitem)" class="nav-divider"></li>\n <ng-template [ngIf]="isTitle(navitem)">\n <app-sidebar-nav-title [title]=\'navitem\'></app-sidebar-nav-title>\n </ng-template>\n <ng-template [ngIf]="!isDivider(navitem)&&!isTitle(navitem)">\n <app-sidebar-nav-item [item]=\'navitem\'></app-sidebar-nav-item>\n </ng-template>\n </ng-template>\n </ul>'}]}],e.ctorParameters=function(){return[]},e.propDecorators={navItems:[{type:i.Input}],"true":[{type:i.HostBinding,args:["class.sidebar-nav"]}],role:[{type:i.HostBinding,args:["attr.role"]}]},e}(),P=function(){function e(e,t){this.router=e,this.el=t}return e.prototype.hasClass=function(){return!!this.item["class"]},e.prototype.isDropdown=function(){return!!this.item.children},e.prototype.thisUrl=function(){return this.item.url},e.prototype.isActive=function(){return this.router.isActive(this.thisUrl(),!1)},e.prototype.ngOnInit=function(){b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-nav-item",template:"\n <li *ngIf=\"!isDropdown(); else dropdown\" [ngClass]=\"hasClass() ? 'nav-item ' + item.class : 'nav-item'\">\n <app-sidebar-nav-link [link]='item'></app-sidebar-nav-link>\n </li>\n <ng-template #dropdown>\n <li [ngClass]=\"hasClass() ? 'nav-item nav-dropdown ' + item.class : 'nav-item nav-dropdown'\"\n [class.open]=\"isActive()\"\n routerLinkActive=\"open\"\n appNavDropdown>\n <app-sidebar-nav-dropdown [link]='item'></app-sidebar-nav-dropdown>\n </li>\n </ng-template>\n "}]}],e.ctorParameters=function(){return[{type:a.Router},{type:i.ElementRef}]},e.propDecorators={item:[{type:i.Input}]},e}(),j=function(){function e(e,t,n,r){this.document=e,this.renderer=t,this.router=n,this.el=r}return e.prototype.getClasses=function(){var e=this.isDisabled(),t={"nav-link":!0,disabled:e,"btn-link":e};this.hasVariant()&&(t["nav-link-"+this.link.variant]=!0);return t},e.prototype.getLinkType=function(){return this.isDisabled()?"disabled":this.isExternalLink()?"external":""},e.prototype.hasVariant=function(){return!!this.link.variant},e.prototype.isBadge=function(){return!!this.link.badge},e.prototype.isDisabled=function(){return!(!this.link.attributes||!this.link.attributes.disabled)},e.prototype.isExternalLink=function(){return"http"===this.link.url.substring(0,4)},e.prototype.isIcon=function(){return!!this.link.icon},e.prototype.hideMobile=function(){this.document.body.classList.contains("sidebar-show")&&this.renderer.removeClass(this.document.body,"sidebar-show")},e.prototype.ngOnInit=function(){b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-nav-link",template:'\n <ng-container [ngSwitch]="getLinkType()">\n <a *ngSwitchCase="\'disabled\'"\n [attr.disabled]="true"\n [appLinkAttributes]="link.attributes"\n href=""\n [ngClass]="getClasses()">\n <i *ngIf="isIcon()" class="nav-icon {{ link.icon }}"></i>\n {{ link.name }}\n <span *ngIf="isBadge()" [ngClass]="\'badge badge-\' + link.badge.variant">{{ link.badge.text }}</span>\n </a>\n <a *ngSwitchCase="\'external\'" [ngClass]="getClasses()" href="{{link.url}}" [appLinkAttributes]="link.attributes">\n <i *ngIf="isIcon()" class="nav-icon {{ link.icon }}"></i>\n {{ link.name }}\n <span *ngIf="isBadge()" [ngClass]="\'badge badge-\' + link.badge.variant">{{ link.badge.text }}</span>\n </a>\n <a *ngSwitchDefault\n [ngClass]="getClasses()"\n [appLinkAttributes]="link.attributes"\n routerLinkActive="active"\n [routerLink]="[link.url]"\n (click)="hideMobile()">\n <i *ngIf="isIcon()" class="nav-icon {{ link.icon }}"></i>\n {{ link.name }}\n <span *ngIf="isBadge()" [ngClass]="\'badge badge-\' + link.badge.variant">{{ link.badge.text }}</span>\n </a>\n </ng-container>\n '}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:i.Inject,args:[o.DOCUMENT]}]},{type:i.Renderer2},{type:a.Router},{type:i.ElementRef}]},e.propDecorators={link:[{type:i.Input}]},e}(),F=function(){function e(e,t){this.router=e,this.el=t}return e.prototype.isBadge=function(){return!!this.link.badge},e.prototype.isIcon=function(){return!!this.link.icon},e.prototype.ngOnInit=function(){b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-nav-dropdown",template:'\n <a class="nav-link nav-dropdown-toggle" appNavDropdownToggle>\n <i *ngIf="isIcon()" class="nav-icon {{ link.icon }}"></i>\n {{ link.name }}\n <span *ngIf="isBadge()" [ngClass]="\'badge badge-\' + link.badge.variant">{{ link.badge.text }}</span>\n </a>\n <ul class="nav-dropdown-items">\n <ng-template ngFor let-child [ngForOf]="link.children">\n <app-sidebar-nav-item [item]=\'child\'></app-sidebar-nav-item>\n </ng-template>\n </ul>\n ',styles:[".nav-dropdown-toggle { cursor: pointer; }"]}]}],e.ctorParameters=function(){return[{type:a.Router},{type:i.ElementRef}]},e.propDecorators={link:[{type:i.Input}]},e}(),S=function(){function e(e,t){this.el=e,this.renderer=t}return e.prototype.ngOnInit=function(){var e=this.el.nativeElement,t=this.renderer.createElement("li"),n=this.renderer.createText(this.title.name);if(this.renderer.addClass(t,"nav-title"),this.title["class"]){var r=this.title["class"];this.renderer.addClass(t,r)}if(this.title.wrapper){var i=this.renderer.createElement(this.title.wrapper.element);this.renderer.appendChild(i,n),this.renderer.appendChild(t,i)}else this.renderer.appendChild(t,n);this.renderer.appendChild(e,t),b(this.el)},e.decorators=[{type:i.Component,args:[{selector:"app-sidebar-nav-title",template:""}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2}]},e.propDecorators={title:[{type:i.Input}]},e}(),H=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[o.CommonModule,a.RouterModule,h],exports:[M,B,T,E,R,z,F,P,j,S,A,L,N,h],declarations:[M,B,T,E,E,R,z,F,P,j,S,A,L,N]}]}],e}();e.AppAsideModule=v,e.AppBreadcrumbModule=x,e.AppFooterModule=O,e.AppHeaderModule=w,e.AppSidebarModule=H,e.ɵi=y,e.ɵj=I,e.ɵk=C,e.ɵl=k,e.ɵm=D,e.ɵg=m,e.ɵf=f,e.ɵd=u,e.ɵc=l,e.ɵe=g,e.ɵb=c,e.ɵa=h,e.ɵh=t,e.ɵn=M,e.ɵo=B,e.ɵp=T,e.ɵq=E,e.ɵv=z,e.ɵy=F,e.ɵw=P,e.ɵx=j,e.ɵz=S,e.ɵu=N,e.ɵs=A,e.ɵt=L,e.ɵr=R,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=coreui-angular.umd.min.js.map