diff --git a/dist/aside/app-aside.component.js.map b/dist/aside/app-aside.component.js.map index ed8b0163..6b0fe0c7 100644 --- a/dist/aside/app-aside.component.js.map +++ b/dist/aside/app-aside.component.js.map @@ -1 +1 @@ -{"version":3,"file":"app-aside.component.js","sourceRoot":"","sources":["../../src/aside/app-aside.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAezD,2BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAI;IAEtC,oCAAQ,GAAR;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACtC;IAED,mCAAO,GAAP,UAAQ,KAAc;QACpB,IAAI,IAAI,CAAC,KAAK,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;SAAE;KACtF;IAED,uCAAW,GAAX,UAAY,SAAkB;QAC5B,IAAI,IAAI,CAAC,SAAS,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;SAAE;KAC/F;IAED,6CAAiB,GAAjB,UAAkB,OAAY;QAC5B,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,EAAG;YAC3B,IAAI,QAAQ,SAAA,CAAC;YACb,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,gBAAc,IAAI,CAAC,OAAO,UAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;YAChG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACxD;KACF;;gBAnCF,SAAS,SAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,uFAIT;iBACF;;;;gBAVmB,UAAU;;;4BAY3B,KAAK;0BACL,KAAK;8BACL,KAAK;;4BAdR;;SAWa,iBAAiB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { asideMenuCssClasses, Replace } from './../shared';\n\n@Component({\n selector: 'app-aside',\n template: `\n \n `\n})\nexport class AppAsideComponent implements OnInit {\n @Input() display: any;\n @Input() fixed: boolean;\n @Input() offCanvas: boolean;\n\n constructor(private el: ElementRef) {}\n\n ngOnInit() {\n Replace(this.el);\n this.isFixed(this.fixed);\n this.displayBreakpoint(this.display);\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('aside-menu-fixed'); }\n }\n\n isOffCanvas(offCanvas: boolean): void {\n if (this.offCanvas) { document.querySelector('body').classList.add('aside-menu-off-canvas'); }\n }\n\n displayBreakpoint(display: any): void {\n if (this.display !== false ) {\n let cssClass;\n this.display ? cssClass = `aside-menu-${this.display}-show` : cssClass = asideMenuCssClasses[0];\n document.querySelector('body').classList.add(cssClass);\n }\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-aside.component.js","sourceRoot":"","sources":["../../src/aside/app-aside.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAezD,2BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAI;IAEtC,oCAAQ,GAAR;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACtC;IAED,mCAAO,GAAP,UAAQ,KAAc;QACpB,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;SAAE;KACtF;IAED,uCAAW,GAAX,UAAY,SAAkB;QAC5B,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;YAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;SAAE;KAC/F;IAED,6CAAiB,GAAjB,UAAkB,OAAY;QAC5B,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,KAAK,KAAM,CAAC,CAAC,CAAC;YAC5B,IAAI,QAAQ,SAAA,CAAC;YACb,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,gBAAc,IAAI,CAAC,OAAO,UAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;YAChG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACxD;KACF;;gBAnCF,SAAS,SAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,uFAIT;iBACF;;;;gBAVmB,UAAU;;;4BAY3B,KAAK;0BACL,KAAK;8BACL,KAAK;;4BAdR;;SAWa,iBAAiB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { asideMenuCssClasses, Replace } from './../shared';\n\n@Component({\n selector: 'app-aside',\n template: `\n \n `\n})\nexport class AppAsideComponent implements OnInit {\n @Input() display: any;\n @Input() fixed: boolean;\n @Input() offCanvas: boolean;\n\n constructor(private el: ElementRef) {}\n\n ngOnInit() {\n Replace(this.el);\n this.isFixed(this.fixed);\n this.displayBreakpoint(this.display);\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('aside-menu-fixed'); }\n }\n\n isOffCanvas(offCanvas: boolean): void {\n if (this.offCanvas) { document.querySelector('body').classList.add('aside-menu-off-canvas'); }\n }\n\n displayBreakpoint(display: any): void {\n if (this.display !== false ) {\n let cssClass;\n this.display ? cssClass = `aside-menu-${this.display}-show` : cssClass = asideMenuCssClasses[0];\n document.querySelector('body').classList.add(cssClass);\n }\n }\n}\n"]} \ No newline at end of file diff --git a/dist/breadcrumb/app-breadcrumb.component.js.map b/dist/breadcrumb/app-breadcrumb.component.js.map index 99cdb26b..6d422cd5 100644 --- a/dist/breadcrumb/app-breadcrumb.component.js.map +++ b/dist/breadcrumb/app-breadcrumb.component.js.map @@ -1 +1 @@ -{"version":3,"file":"app-breadcrumb.component.js","sourceRoot":"","sources":["../../src/breadcrumb/app-breadcrumb.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAW,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;;IAmB9D,gCAAmB,OAA6B,EAAS,EAAc;QAApD,YAAO,GAAP,OAAO,CAAsB;QAAS,OAAE,GAAF,EAAE,CAAY;KAAK;IAErE,yCAAQ,GAAf;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;KAC7C;IAED,wCAAO,GAAP,UAAQ,KAAc;QACpB,IAAI,IAAI,CAAC,KAAK,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;SAAE;KACtF;;gBA3BF,SAAS,SAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,meAST;iBACF;;;;gBAdQ,oBAAoB;gBAFT,UAAU;;;0BAkB3B,KAAK;;iCAlBR;;SAiBa,sBAAsB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { Replace } from './../shared';\nimport { AppBreadcrumbService } from './app-breadcrumb.service';\n\n@Component({\n selector: 'app-breadcrumb',\n template: `\n \n
  • \n {{breadcrumb.label.title}}\n {{breadcrumb.label.title}}\n
  • \n
    \n `\n})\nexport class AppBreadcrumbComponent implements OnInit {\n @Input() fixed: boolean;\n public breadcrumbs;\n\n constructor(public service: AppBreadcrumbService, public el: ElementRef) { }\n\n public ngOnInit(): void {\n Replace(this.el);\n this.isFixed(this.fixed);\n this.breadcrumbs = this.service.breadcrumbs;\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('breadcrumb-fixed'); }\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-breadcrumb.component.js","sourceRoot":"","sources":["../../src/breadcrumb/app-breadcrumb.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAW,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;;IAmB9D,gCAAmB,OAA6B,EAAS,EAAc;QAApD,YAAO,GAAP,OAAO,CAAsB;QAAS,OAAE,GAAF,EAAE,CAAY;KAAK;IAErE,yCAAQ,GAAf;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;KAC7C;IAED,wCAAO,GAAP,UAAQ,KAAc;QACpB,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;SAAE;KACtF;;gBA3BF,SAAS,SAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,meAST;iBACF;;;;gBAdQ,oBAAoB;gBAFT,UAAU;;;0BAkB3B,KAAK;;iCAlBR;;SAiBa,sBAAsB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { Replace } from './../shared';\nimport { AppBreadcrumbService } from './app-breadcrumb.service';\n\n@Component({\n selector: 'app-breadcrumb',\n template: `\n \n
  • \n {{breadcrumb.label.title}}\n {{breadcrumb.label.title}}\n
  • \n
    \n `\n})\nexport class AppBreadcrumbComponent implements OnInit {\n @Input() fixed: boolean;\n public breadcrumbs;\n\n constructor(public service: AppBreadcrumbService, public el: ElementRef) { }\n\n public ngOnInit(): void {\n Replace(this.el);\n this.isFixed(this.fixed);\n this.breadcrumbs = this.service.breadcrumbs;\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('breadcrumb-fixed'); }\n }\n}\n"]} \ No newline at end of file diff --git a/dist/breadcrumb/app-breadcrumb.module.js b/dist/breadcrumb/app-breadcrumb.module.js index 9456556f..f0a7697f 100644 --- a/dist/breadcrumb/app-breadcrumb.module.js +++ b/dist/breadcrumb/app-breadcrumb.module.js @@ -1,7 +1,6 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; -// App Breadcrumb Component import { AppBreadcrumbService } from './app-breadcrumb.service'; import { AppBreadcrumbComponent } from './app-breadcrumb.component'; var AppBreadcrumbModule = /** @class */ (function () { diff --git a/dist/breadcrumb/app-breadcrumb.module.js.map b/dist/breadcrumb/app-breadcrumb.module.js.map index fe2a2ce7..21ceaf5d 100644 --- a/dist/breadcrumb/app-breadcrumb.module.js.map +++ b/dist/breadcrumb/app-breadcrumb.module.js.map @@ -1 +1 @@ -{"version":3,"file":"app-breadcrumb.module.js","sourceRoot":"","sources":["../../src/breadcrumb/app-breadcrumb.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,AADA,2BAA2B;OACpB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;;;;IAQ3D,2BAAO,GAAd,UAAe,MAAY;QACzB,OAAO;YACL,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE;gBACT,oBAAoB;aACrB;SACF,CAAC;KACH;;gBAbF,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAE,YAAY,EAAE,YAAY,CAAE;oBACvC,OAAO,EAAE,CAAE,sBAAsB,CAAE;oBACnC,YAAY,EAAE,CAAE,sBAAsB,CAAE;iBACzC;;8BAZD;;SAaa,mBAAmB","sourcesContent":["import { CommonModule} from '@angular/common';\nimport { NgModule, ModuleWithProviders} from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n// App Breadcrumb Component\nimport { AppBreadcrumbService } from './app-breadcrumb.service';\nimport { AppBreadcrumbComponent } from './app-breadcrumb.component';\n\n@NgModule({\n imports: [ CommonModule, RouterModule ],\n exports: [ AppBreadcrumbComponent ],\n declarations: [ AppBreadcrumbComponent ]\n})\nexport class AppBreadcrumbModule {\n static forRoot(config?: any): ModuleWithProviders {\n return {\n ngModule: AppBreadcrumbModule,\n providers: [\n AppBreadcrumbService\n ]\n };\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-breadcrumb.module.js","sourceRoot":"","sources":["../../src/breadcrumb/app-breadcrumb.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;;;;IAQ3D,2BAAO,GAAd,UAAe,MAAY;QACzB,MAAM,CAAC;YACL,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE;gBACT,oBAAoB;aACrB;SACF,CAAC;KACH;;gBAbF,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAE,YAAY,EAAE,YAAY,CAAE;oBACvC,OAAO,EAAE,CAAE,sBAAsB,CAAE;oBACnC,YAAY,EAAE,CAAE,sBAAsB,CAAE;iBACzC;;8BAZD;;SAaa,mBAAmB","sourcesContent":["import { CommonModule} from '@angular/common';\nimport { NgModule, ModuleWithProviders} from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n// App Breadcrumb Component\nimport { AppBreadcrumbService } from './app-breadcrumb.service';\nimport { AppBreadcrumbComponent } from './app-breadcrumb.component';\n\n@NgModule({\n imports: [ CommonModule, RouterModule ],\n exports: [ AppBreadcrumbComponent ],\n declarations: [ AppBreadcrumbComponent ]\n})\nexport class AppBreadcrumbModule {\n static forRoot(config?: any): ModuleWithProviders {\n return {\n ngModule: AppBreadcrumbModule,\n providers: [\n AppBreadcrumbService\n ]\n };\n }\n}\n"]} \ No newline at end of file diff --git a/dist/breadcrumb/app-breadcrumb.service.js b/dist/breadcrumb/app-breadcrumb.service.js index 356e1a69..3338bf9c 100644 --- a/dist/breadcrumb/app-breadcrumb.service.js +++ b/dist/breadcrumb/app-breadcrumb.service.js @@ -20,10 +20,12 @@ var AppBreadcrumbService = /** @class */ (function () { if (route.outlet === 'primary') { var routeSnapshot = route.snapshot; url += '/' + routeSnapshot.url.map(function (segment) { return segment.path; }).join('/'); - breadcrumbs.push({ - label: route.snapshot.data, - url: url - }); + if (route.routeConfig.data && route.routeConfig.data.title) { + breadcrumbs.push({ + label: route.snapshot.data, + url: url + }); + } currentRoute = route; } }); diff --git a/dist/breadcrumb/app-breadcrumb.service.js.map b/dist/breadcrumb/app-breadcrumb.service.js.map index 0d9985cd..6ba5c238 100644 --- a/dist/breadcrumb/app-breadcrumb.service.js.map +++ b/dist/breadcrumb/app-breadcrumb.service.js.map @@ -1 +1 @@ -{"version":3,"file":"app-breadcrumb.service.js","sourceRoot":"","sources":["../../src/breadcrumb/app-breadcrumb.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAc,MAAM,MAAM,CAAC;AACnD,OAAO,0BAA0B,CAAC;;IAShC,8BAAoB,MAAc,EAAU,KAAqB;QAAjE,iBA+BC;QA/BmB,WAAM,GAAN,MAAM,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAgB;QAE/D,IAAI,CAAC,YAAY,GAAG,IAAI,eAAe,CAAW,IAAI,KAAK,EAAU,CAAC,CAAC;QAEvE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;QAEpD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,YAAY,aAAa,EAA9B,CAA8B,CAAC,CAAC,SAAS,CAAC,UAAC,KAAK;YACjF,IAAM,WAAW,GAAG,EAAE,CAAC;YACvB,IAAI,YAAY,GAAG,KAAI,CAAC,KAAK,CAAC,IAAI,EAClC,GAAG,GAAG,EAAE,CAAC;YACT,GAAG;gBACD,IAAM,cAAc,GAAG,YAAY,CAAC,QAAQ,CAAC;gBAC7C,YAAY,GAAG,IAAI,CAAC;;gBAEpB,cAAc,CAAC,OAAO,CAAC,UAAA,KAAK;oBAC1B,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE;wBAC9B,IAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC;wBACrC,GAAG,IAAI,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,UAAA,OAAO,IAAI,OAAA,OAAO,CAAC,IAAI,EAAZ,CAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;wBACtE,WAAW,CAAC,IAAI,CAAC;4BACf,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;4BAC1B,GAAG,EAAI,GAAG;yBACX,CAAC,CAAC;wBACH,YAAY,GAAG,KAAK,CAAC;qBACtB;iBACF,CAAC,CAAC;aACJ,QAAQ,YAAY,EAAE;YAEvB,KAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;YAEvD,OAAO,WAAW,CAAC;SACpB,CAAC,CAAC;KACJ;;gBAtCF,UAAU;;;;gBAJF,MAAM;gBAAE,cAAc;;+BAD/B;;SAMa,oBAAoB","sourcesContent":["import { Injectable, Injector } from '@angular/core';\r\nimport { Router, ActivatedRoute, NavigationEnd } from '@angular/router';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\nimport 'rxjs/add/operator/filter';\r\n\r\n@Injectable()\r\nexport class AppBreadcrumbService {\r\n\r\n breadcrumbs: Observable>;\r\n\r\n private _breadcrumbs: BehaviorSubject>;\r\n\r\n constructor(private router: Router, private route: ActivatedRoute) {\r\n\r\n this._breadcrumbs = new BehaviorSubject(new Array());\r\n\r\n this.breadcrumbs = this._breadcrumbs.asObservable();\r\n\r\n this.router.events.filter(event => event instanceof NavigationEnd).subscribe((event) => {\r\n const breadcrumbs = [];\r\n let currentRoute = this.route.root,\r\n url = '';\r\n do {\r\n const childrenRoutes = currentRoute.children;\r\n currentRoute = null;\r\n // tslint:disable-next-line:no-shadowed-variable\r\n childrenRoutes.forEach(route => {\r\n if (route.outlet === 'primary') {\r\n const routeSnapshot = route.snapshot;\r\n url += '/' + routeSnapshot.url.map(segment => segment.path).join('/');\r\n breadcrumbs.push({\r\n label: route.snapshot.data,\r\n url: url\r\n });\r\n currentRoute = route;\r\n }\r\n });\r\n } while (currentRoute);\r\n\r\n this._breadcrumbs.next(Object.assign([], breadcrumbs));\r\n\r\n return breadcrumbs;\r\n });\r\n }\r\n}\r\n"]} \ No newline at end of file +{"version":3,"file":"app-breadcrumb.service.js","sourceRoot":"","sources":["../../src/breadcrumb/app-breadcrumb.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAc,MAAM,MAAM,CAAC;AACnD,OAAO,0BAA0B,CAAC;;IAShC,8BAAoB,MAAc,EAAU,KAAqB;QAAjE,iBAiCC;QAjCmB,WAAM,GAAN,MAAM,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAgB;QAE/D,IAAI,CAAC,YAAY,GAAG,IAAI,eAAe,CAAW,IAAI,KAAK,EAAU,CAAC,CAAC;QAEvE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;QAEpD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,YAAY,aAAa,EAA9B,CAA8B,CAAC,CAAC,SAAS,CAAC,UAAC,KAAK;YACjF,IAAM,WAAW,GAAG,EAAE,CAAC;YACvB,IAAI,YAAY,GAAG,KAAI,CAAC,KAAK,CAAC,IAAI,EAClC,GAAG,GAAG,EAAE,CAAC;YACT,GAAG,CAAC;gBACF,IAAM,cAAc,GAAG,YAAY,CAAC,QAAQ,CAAC;gBAC7C,YAAY,GAAG,IAAI,CAAC;;gBAEpB,cAAc,CAAC,OAAO,CAAC,UAAA,KAAK;oBAC1B,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC;wBAC/B,IAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC;wBACrC,GAAG,IAAI,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,UAAA,OAAO,IAAI,OAAA,OAAO,CAAC,IAAI,EAAZ,CAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;wBACtE,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;4BAC3D,WAAW,CAAC,IAAI,CAAC;gCACf,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;gCAC1B,GAAG,EAAI,GAAG;6BACX,CAAC,CAAC;yBACJ;wBACD,YAAY,GAAG,KAAK,CAAC;qBACtB;iBACF,CAAC,CAAC;aACJ,QAAQ,YAAY,EAAE;YAEvB,KAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;YAEvD,MAAM,CAAC,WAAW,CAAC;SACpB,CAAC,CAAC;KACJ;;gBAxCF,UAAU;;;;gBAJF,MAAM;gBAAE,cAAc;;+BAD/B;;SAMa,oBAAoB","sourcesContent":["import { Injectable, Injector } from '@angular/core';\r\nimport { Router, ActivatedRoute, NavigationEnd } from '@angular/router';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\nimport 'rxjs/add/operator/filter';\r\n\r\n@Injectable()\r\nexport class AppBreadcrumbService {\r\n\r\n breadcrumbs: Observable>;\r\n\r\n private _breadcrumbs: BehaviorSubject>;\r\n\r\n constructor(private router: Router, private route: ActivatedRoute) {\r\n\r\n this._breadcrumbs = new BehaviorSubject(new Array());\r\n\r\n this.breadcrumbs = this._breadcrumbs.asObservable();\r\n\r\n this.router.events.filter(event => event instanceof NavigationEnd).subscribe((event) => {\r\n const breadcrumbs = [];\r\n let currentRoute = this.route.root,\r\n url = '';\r\n do {\r\n const childrenRoutes = currentRoute.children;\r\n currentRoute = null;\r\n // tslint:disable-next-line:no-shadowed-variable\r\n childrenRoutes.forEach(route => {\r\n if (route.outlet === 'primary') {\r\n const routeSnapshot = route.snapshot;\r\n url += '/' + routeSnapshot.url.map(segment => segment.path).join('/');\r\n if (route.routeConfig.data && route.routeConfig.data.title) {\r\n breadcrumbs.push({\r\n label: route.snapshot.data,\r\n url: url\r\n });\r\n }\r\n currentRoute = route;\r\n }\r\n });\r\n } while (currentRoute);\r\n\r\n this._breadcrumbs.next(Object.assign([], breadcrumbs));\r\n\r\n return breadcrumbs;\r\n });\r\n }\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/footer/app-footer.component.js.map b/dist/footer/app-footer.component.js.map index 9c534484..f10f591d 100644 --- a/dist/footer/app-footer.component.js.map +++ b/dist/footer/app-footer.component.js.map @@ -1 +1 @@ -{"version":3,"file":"app-footer.component.js","sourceRoot":"","sources":["../../src/footer/app-footer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAW,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAapC,4BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAI;IAEtC,qCAAQ,GAAR;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC1B;IAED,oCAAO,GAAP,UAAQ,KAAc;QACpB,IAAI,IAAI,CAAC,KAAK,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;SAAE;KAClF;;gBApBF,SAAS,SAAC;oBACT,QAAQ,EAAE,YAAY;oBACtB,QAAQ,EAAE,yFAIT;iBACF;;;;gBAVmB,UAAU;;;0BAY3B,KAAK;;6BAZR;;SAWa,kBAAkB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { Replace } from './../shared';\n\n@Component({\n selector: 'app-footer',\n template: `\n
    \n \n
    \n `\n})\nexport class AppFooterComponent implements OnInit {\n @Input() fixed: boolean;\n\n constructor(private el: ElementRef) {}\n\n ngOnInit() {\n Replace(this.el);\n this.isFixed(this.fixed);\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('footer-fixed'); }\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-footer.component.js","sourceRoot":"","sources":["../../src/footer/app-footer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAW,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAapC,4BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAI;IAEtC,qCAAQ,GAAR;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC1B;IAED,oCAAO,GAAP,UAAQ,KAAc;QACpB,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;SAAE;KAClF;;gBApBF,SAAS,SAAC;oBACT,QAAQ,EAAE,YAAY;oBACtB,QAAQ,EAAE,yFAIT;iBACF;;;;gBAVmB,UAAU;;;0BAY3B,KAAK;;6BAZR;;SAWa,kBAAkB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { Replace } from './../shared';\n\n@Component({\n selector: 'app-footer',\n template: `\n
    \n \n
    \n `\n})\nexport class AppFooterComponent implements OnInit {\n @Input() fixed: boolean;\n\n constructor(private el: ElementRef) {}\n\n ngOnInit() {\n Replace(this.el);\n this.isFixed(this.fixed);\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('footer-fixed'); }\n }\n}\n"]} \ No newline at end of file diff --git a/dist/header/app-header.component.js.map b/dist/header/app-header.component.js.map index ce260642..a39540fc 100644 --- a/dist/header/app-header.component.js.map +++ b/dist/header/app-header.component.js.map @@ -1 +1 @@ -{"version":3,"file":"app-header.component.js","sourceRoot":"","sources":["../../src/header/app-header.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAkEpC,4BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAI;IAEtC,qCAAQ,GAAR;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC1B;IAED,oCAAO,GAAP,UAAQ,KAAc;QACpB,IAAI,IAAI,CAAC,KAAK,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;SAAE;KAClF;IAED,mCAAM,GAAN,UAAO,KAAU;QACf,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;KACnC;IAED,qCAAQ,GAAR,UAAS,KAAU;QACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;KAC3C;IAED,sCAAS,GAAT,UAAU,KAAU;QAClB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;KAC7C;IAED,mCAAM,GAAN,UAAO,KAAU;QACf,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;KACnC;IAED,uCAAU,GAAV,UAAW,UAAe;QACxB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACxB,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;KACrC;;gBA9FF,SAAS,SAAC;oBACT,QAAQ,EAAE,YAAY;oBACtB,QAAQ,EAAE,6rEA8CT;iBACF;;;;gBApDmB,UAAU;;;0BAuD3B,KAAK;gCAEL,KAAK;oCACL,KAAK;yCACL,KAAK;mCAEL,KAAK;yCACL,KAAK;qCAEL,KAAK;2CACL,KAAK;;6BAjER;;SAqDa,kBAAkB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { Replace } from './../shared';\n\n@Component({\n selector: 'app-header',\n template: `\n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n `\n})\nexport class AppHeaderComponent implements OnInit {\n\n @Input() fixed: boolean;\n\n @Input() navbarBrand: any;\n @Input() navbarBrandFull: any;\n @Input() navbarBrandMinimized: any;\n\n @Input() sidebarToggler: any;\n @Input() mobileSidebarToggler: any;\n\n @Input() asideMenuToggler: any;\n @Input() mobileAsideMenuToggler: any;\n\n constructor(private el: ElementRef) {}\n\n ngOnInit() {\n Replace(this.el);\n this.isFixed(this.fixed);\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('header-fixed'); }\n }\n\n imgSrc(brand: any): void {\n return brand.src ? brand.src : '';\n }\n\n imgWidth(brand: any): void {\n return brand.width ? brand.width : 'auto';\n }\n\n imgHeight(brand: any): void {\n return brand.height ? brand.height : 'auto';\n }\n\n imgAlt(brand: any): void {\n return brand.alt ? brand.alt : '';\n }\n\n breakpoint(breakpoint: any): void {\n console.log(breakpoint);\n return breakpoint ? breakpoint : '';\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-header.component.js","sourceRoot":"","sources":["../../src/header/app-header.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAkEpC,4BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAI;IAEtC,qCAAQ,GAAR;QACE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC1B;IAED,oCAAO,GAAP,UAAQ,KAAc;QACpB,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;SAAE;KAClF;IAED,mCAAM,GAAN,UAAO,KAAU;QACf,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;KACnC;IAED,qCAAQ,GAAR,UAAS,KAAU;QACjB,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;KAC3C;IAED,sCAAS,GAAT,UAAU,KAAU;QAClB,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;KAC7C;IAED,mCAAM,GAAN,UAAO,KAAU;QACf,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;KACnC;IAED,uCAAU,GAAV,UAAW,UAAe;QACxB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;KACrC;;gBA9FF,SAAS,SAAC;oBACT,QAAQ,EAAE,YAAY;oBACtB,QAAQ,EAAE,6rEA8CT;iBACF;;;;gBApDmB,UAAU;;;0BAuD3B,KAAK;gCAEL,KAAK;oCACL,KAAK;yCACL,KAAK;mCAEL,KAAK;yCACL,KAAK;qCAEL,KAAK;2CACL,KAAK;;6BAjER;;SAqDa,kBAAkB","sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { Replace } from './../shared';\n\n@Component({\n selector: 'app-header',\n template: `\n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n `\n})\nexport class AppHeaderComponent implements OnInit {\n\n @Input() fixed: boolean;\n\n @Input() navbarBrand: any;\n @Input() navbarBrandFull: any;\n @Input() navbarBrandMinimized: any;\n\n @Input() sidebarToggler: any;\n @Input() mobileSidebarToggler: any;\n\n @Input() asideMenuToggler: any;\n @Input() mobileAsideMenuToggler: any;\n\n constructor(private el: ElementRef) {}\n\n ngOnInit() {\n Replace(this.el);\n this.isFixed(this.fixed);\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('header-fixed'); }\n }\n\n imgSrc(brand: any): void {\n return brand.src ? brand.src : '';\n }\n\n imgWidth(brand: any): void {\n return brand.width ? brand.width : 'auto';\n }\n\n imgHeight(brand: any): void {\n return brand.height ? brand.height : 'auto';\n }\n\n imgAlt(brand: any): void {\n return brand.alt ? brand.alt : '';\n }\n\n breakpoint(breakpoint: any): void {\n console.log(breakpoint);\n return breakpoint ? breakpoint : '';\n }\n}\n"]} \ No newline at end of file diff --git a/dist/shared/layout/layout.directive.js.map b/dist/shared/layout/layout.directive.js.map index 5cc331ae..6782bc4f 100644 --- a/dist/shared/layout/layout.directive.js.map +++ b/dist/shared/layout/layout.directive.js.map @@ -1 +1 @@ -{"version":3,"file":"layout.directive.js","sourceRoot":"","sources":["../../../src/shared/layout/layout.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAsB,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;;;;;IAWlD;KAAgB;IAChB,yCAAQ,GAAR;QACE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;KAC3B;IAED,2CAAU,aAAC,MAAW;QACpB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,IAAI,QAAQ,CAAC;QACb,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,aAAW,IAAI,CAAC,EAAE,UAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;QACjF,aAAa,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;;;gBAf9C,SAAS,SAAC;oBACT,QAAQ,EAAE,qBAAqB;iBAChC;;;;;+BAEE,KAAK,SAAC,mBAAmB;+BAMzB,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;iCAjBnC;;SAUa,sBAAsB;;IAoBjC;KAAiB;IAGjB,6CAAU,aAAC,MAAW;QACpB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;;;gBATxE,SAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;iBAClC;;;;;+BAIE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,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;;;gBAfhD,SAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;iBAClC;;;;;+BAEE,KAAK,SAAC,qBAAqB;+BAM3B,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;+BAzHnC;;SAkHa,oBAAoB","sourcesContent":["import { Directive, HostListener, Input, ElementRef, OnInit } from '@angular/core';\nimport { sidebarCssClasses, asideMenuCssClasses } from './../classes';\nimport { ToggleClasses } from './../toggle-classes';\n\n/**\n* Allows the sidebar to be toggled via click.\n*/\n@Directive({\n selector: '[appSidebarToggler]'\n})\nexport class SidebarToggleDirective implements OnInit {\n @Input('appSidebarToggler') breakpoint: string;\n public bp;\n constructor() {}\n ngOnInit(): void {\n this.bp = this.breakpoint;\n }\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n let cssClass;\n this.bp ? cssClass = `sidebar-${this.bp}-show` : cssClass = sidebarCssClasses[0];\n ToggleClasses(cssClass, sidebarCssClasses);\n }\n}\n\n@Directive({\n selector: '[appSidebarMinimizer]'\n})\nexport class SidebarMinimizeDirective {\n constructor() { }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n document.querySelector('body').classList.toggle('sidebar-minimized');\n }\n}\n\n@Directive({\n selector: '[appMobileSidebarToggler]'\n})\nexport class MobileSidebarToggleDirective {\n constructor() { }\n\n // Check if element has class\n private hasClass(target: any, elementClassName: string) {\n return new RegExp('(\\\\s|^)' + elementClassName + '(\\\\s|$)').test(target.className);\n }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n document.querySelector('body').classList.toggle('sidebar-mobile-show');\n }\n}\n\n/**\n* Allows the off-canvas sidebar to be closed via click.\n*/\n@Directive({\n selector: '[appSidebarClose]'\n})\nexport class SidebarOffCanvasCloseDirective {\n constructor() { }\n\n // Check if element has class\n private hasClass(target: any, elementClassName: string) {\n return new RegExp('(\\\\s|^)' + elementClassName + '(\\\\s|$)').test(target.className);\n }\n\n // Toggle element class\n private toggleClass(elem: any, elementClassName: string) {\n let newClass = ' ' + elem.className.replace( /[\\t\\r\\n]/g, ' ' ) + ' ';\n if (this.hasClass(elem, elementClassName)) {\n while (newClass.indexOf(' ' + elementClassName + ' ') >= 0 ) {\n newClass = newClass.replace( ' ' + elementClassName + ' ' , ' ' );\n }\n elem.className = newClass.replace(/^\\s+|\\s+$/g, '');\n } else {\n elem.className += ' ' + elementClassName;\n }\n }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n\n if (this.hasClass(document.querySelector('body'), 'sidebar-off-canvas')) {\n this.toggleClass(document.querySelector('body'), 'sidebar-opened');\n }\n }\n}\n\n@Directive({\n selector: '[appBrandMinimizer]'\n})\nexport class BrandMinimizeDirective {\n constructor() { }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n document.querySelector('body').classList.toggle('brand-minimized');\n }\n}\n\n\n/**\n* Allows the aside to be toggled via click.\n*/\n@Directive({\n selector: '[appAsideMenuToggler]',\n})\nexport class AsideToggleDirective implements OnInit {\n @Input('appAsideMenuToggler') breakpoint: string;\n public bp;\n constructor() {}\n ngOnInit(): void {\n this.bp = this.breakpoint;\n }\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n let cssClass;\n this.bp ? cssClass = `aside-menu-${this.bp}-show` : cssClass = asideMenuCssClasses[0];\n ToggleClasses(cssClass, asideMenuCssClasses);\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"layout.directive.js","sourceRoot":"","sources":["../../../src/shared/layout/layout.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAsB,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,C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,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC;SACpE;;;gBA9BJ,SAAS,SAAC;oBACT,QAAQ,EAAE,mBAAmB;iBAC9B;;;;;+BAsBE,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;yCApFnC;;SA+Da,8BAA8B;;IAmCzC;KAAiB;IAGjB,2CAAU,aAAC,MAAW;QACpB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;;;gBATtE,SAAS,SAAC;oBACT,QAAQ,EAAE,qBAAqB;iBAChC;;;;;+BAIE,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;iCApGnC;;SAiGa,sBAAsB;;;;;IAoBjC;KAAgB;IAChB,uCAAQ,GAAR;QACE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;KAC3B;IAED,yCAAU,aAAC,MAAW;QACpB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,IAAI,QAAQ,CAAC;QACb,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,gBAAc,IAAI,CAAC,EAAE,UAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;QACtF,aAAa,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;;;gBAfhD,SAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;iBAClC;;;;;+BAEE,KAAK,SAAC,qBAAqB;+BAM3B,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;+BAzHnC;;SAkHa,oBAAoB","sourcesContent":["import { Directive, HostListener, Input, ElementRef, OnInit } from '@angular/core';\nimport { sidebarCssClasses, asideMenuCssClasses } from './../classes';\nimport { ToggleClasses } from './../toggle-classes';\n\n/**\n* Allows the sidebar to be toggled via click.\n*/\n@Directive({\n selector: '[appSidebarToggler]'\n})\nexport class SidebarToggleDirective implements OnInit {\n @Input('appSidebarToggler') breakpoint: string;\n public bp;\n constructor() {}\n ngOnInit(): void {\n this.bp = this.breakpoint;\n }\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n let cssClass;\n this.bp ? cssClass = `sidebar-${this.bp}-show` : cssClass = sidebarCssClasses[0];\n ToggleClasses(cssClass, sidebarCssClasses);\n }\n}\n\n@Directive({\n selector: '[appSidebarMinimizer]'\n})\nexport class SidebarMinimizeDirective {\n constructor() { }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n document.querySelector('body').classList.toggle('sidebar-minimized');\n }\n}\n\n@Directive({\n selector: '[appMobileSidebarToggler]'\n})\nexport class MobileSidebarToggleDirective {\n constructor() { }\n\n // Check if element has class\n private hasClass(target: any, elementClassName: string) {\n return new RegExp('(\\\\s|^)' + elementClassName + '(\\\\s|$)').test(target.className);\n }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n document.querySelector('body').classList.toggle('sidebar-mobile-show');\n }\n}\n\n/**\n* Allows the off-canvas sidebar to be closed via click.\n*/\n@Directive({\n selector: '[appSidebarClose]'\n})\nexport class SidebarOffCanvasCloseDirective {\n constructor() { }\n\n // Check if element has class\n private hasClass(target: any, elementClassName: string) {\n return new RegExp('(\\\\s|^)' + elementClassName + '(\\\\s|$)').test(target.className);\n }\n\n // Toggle element class\n private toggleClass(elem: any, elementClassName: string) {\n let newClass = ' ' + elem.className.replace( /[\\t\\r\\n]/g, ' ' ) + ' ';\n if (this.hasClass(elem, elementClassName)) {\n while (newClass.indexOf(' ' + elementClassName + ' ') >= 0 ) {\n newClass = newClass.replace( ' ' + elementClassName + ' ' , ' ' );\n }\n elem.className = newClass.replace(/^\\s+|\\s+$/g, '');\n } else {\n elem.className += ' ' + elementClassName;\n }\n }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n\n if (this.hasClass(document.querySelector('body'), 'sidebar-off-canvas')) {\n this.toggleClass(document.querySelector('body'), 'sidebar-opened');\n }\n }\n}\n\n@Directive({\n selector: '[appBrandMinimizer]'\n})\nexport class BrandMinimizeDirective {\n constructor() { }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n document.querySelector('body').classList.toggle('brand-minimized');\n }\n}\n\n\n/**\n* Allows the aside to be toggled via click.\n*/\n@Directive({\n selector: '[appAsideMenuToggler]',\n})\nexport class AsideToggleDirective implements OnInit {\n @Input('appAsideMenuToggler') breakpoint: string;\n public bp;\n constructor() {}\n ngOnInit(): void {\n this.bp = this.breakpoint;\n }\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n let cssClass;\n this.bp ? cssClass = `aside-menu-${this.bp}-show` : cssClass = asideMenuCssClasses[0];\n ToggleClasses(cssClass, asideMenuCssClasses);\n }\n}\n"]} \ No newline at end of file diff --git a/dist/shared/replace.js b/dist/shared/replace.js index 6fdcf1a0..6266e283 100644 --- a/dist/shared/replace.js +++ b/dist/shared/replace.js @@ -2,7 +2,6 @@ export function Replace(el) { var nativeElement = el.nativeElement; var parentElement = nativeElement.parentElement; // move all children out of the element - // move all children out of the element while (nativeElement.firstChild) { parentElement.insertBefore(nativeElement.firstChild, nativeElement); } diff --git a/dist/shared/replace.js.map b/dist/shared/replace.js.map index 0a171b21..e35020e3 100644 --- a/dist/shared/replace.js.map +++ b/dist/shared/replace.js.map @@ -1 +1 @@ -{"version":3,"file":"replace.js","sourceRoot":"","sources":["../../src/shared/replace.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,EAAO;IAC7B,IAAM,aAAa,GAAgB,EAAE,CAAC,aAAa,CAAC;IACpD,IAAM,aAAa,GAAgB,aAAa,CAAC,aAAa,CAAC;;IAE/D,AADA,uCAAuC;WAChC,aAAa,CAAC,UAAU,EAAE;QAC/B,aAAa,CAAC,YAAY,CAAC,aAAa,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;KACrE;;IAED,aAAa,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;CAC1C","sourcesContent":["export function Replace(el: any): any {\n const nativeElement: HTMLElement = el.nativeElement;\n const parentElement: HTMLElement = nativeElement.parentElement;\n // move all children out of the element\n while (nativeElement.firstChild) {\n parentElement.insertBefore(nativeElement.firstChild, nativeElement);\n }\n // remove the empty element(the host)\n parentElement.removeChild(nativeElement);\n}\n"]} \ No newline at end of file +{"version":3,"file":"replace.js","sourceRoot":"","sources":["../../src/shared/replace.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,EAAO;IAC7B,IAAM,aAAa,GAAgB,EAAE,CAAC,aAAa,CAAC;IACpD,IAAM,aAAa,GAAgB,aAAa,CAAC,aAAa,CAAC;;IAE/D,OAAO,aAAa,CAAC,UAAU,EAAE,CAAC;QAChC,aAAa,CAAC,YAAY,CAAC,aAAa,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;KACrE;;IAED,aAAa,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;CAC1C","sourcesContent":["export function Replace(el: any): any {\n const nativeElement: HTMLElement = el.nativeElement;\n const parentElement: HTMLElement = nativeElement.parentElement;\n // move all children out of the element\n while (nativeElement.firstChild) {\n parentElement.insertBefore(nativeElement.firstChild, nativeElement);\n }\n // remove the empty element(the host)\n parentElement.removeChild(nativeElement);\n}\n"]} \ No newline at end of file diff --git a/dist/shared/toggle-classes.js.map b/dist/shared/toggle-classes.js.map index 7f3137b8..36bdd58f 100644 --- a/dist/shared/toggle-classes.js.map +++ b/dist/shared/toggle-classes.js.map @@ -1 +1 @@ -{"version":3,"file":"toggle-classes.js","sourceRoot":"","sources":["../../src/shared/toggle-classes.ts"],"names":[],"mappings":"AAAA,IAAM,aAAa,GAAG,UAAC,aAAa;IAClC,IAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAxD,CAAwD,CAAC,CAAC;IAC5G,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;CAC1C,CAAC;;AAEF,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,MAAM,EAAE,UAAU;IAC9C,IAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,IAAM,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAErD,IAAI,aAAa,CAAC,aAAa,CAAC,EAAE;QAChC,aAAa,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAtD,CAAsD,CAAC,CAAC;KACtF;SAAM;QACL,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACtD;CACF,CAAC","sourcesContent":["const RemoveClasses = (NewClassNames) => {\n const MatchClasses = NewClassNames.map((Class) => document.querySelector('body').classList.contains(Class));\n return MatchClasses.indexOf(true) !== -1;\n};\n\nexport const ToggleClasses = (Toggle, ClassNames) => {\n const Level = ClassNames.indexOf(Toggle);\n const NewClassNames = ClassNames.slice(0, Level + 1);\n\n if (RemoveClasses(NewClassNames)) {\n NewClassNames.map((Class) => document.querySelector('body').classList.remove(Class));\n } else {\n document.querySelector('body').classList.add(Toggle);\n }\n};\n"]} \ No newline at end of file +{"version":3,"file":"toggle-classes.js","sourceRoot":"","sources":["../../src/shared/toggle-classes.ts"],"names":[],"mappings":"AAAA,IAAM,aAAa,GAAG,UAAC,aAAa;IAClC,IAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAxD,CAAwD,CAAC,CAAC;IAC5G,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;CAC1C,CAAC;;AAEF,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,MAAM,EAAE,UAAU;IAC9C,IAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,IAAM,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAErD,EAAE,CAAC,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACjC,aAAa,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAtD,CAAsD,CAAC,CAAC;KACtF;IAAC,IAAI,CAAC,CAAC;QACN,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACtD;CACF,CAAC","sourcesContent":["const RemoveClasses = (NewClassNames) => {\n const MatchClasses = NewClassNames.map((Class) => document.querySelector('body').classList.contains(Class));\n return MatchClasses.indexOf(true) !== -1;\n};\n\nexport const ToggleClasses = (Toggle, ClassNames) => {\n const Level = ClassNames.indexOf(Toggle);\n const NewClassNames = ClassNames.slice(0, Level + 1);\n\n if (RemoveClasses(NewClassNames)) {\n NewClassNames.map((Class) => document.querySelector('body').classList.remove(Class));\n } else {\n document.querySelector('body').classList.add(Toggle);\n }\n};\n"]} \ No newline at end of file diff --git a/dist/sidebar/app-sidebar-nav.component.d.ts b/dist/sidebar/app-sidebar-nav.component.d.ts index 773ebab5..de636add 100644 --- a/dist/sidebar/app-sidebar-nav.component.d.ts +++ b/dist/sidebar/app-sidebar-nav.component.d.ts @@ -18,6 +18,11 @@ export declare class AppSidebarNavComponent { role: string; isDivider(item: any): boolean; isTitle(item: any): boolean; + isNavItem(item: any): boolean; + constructor(); +} +export declare class AppSidebarNavDividerComponent { + divider: any; constructor(); } import { Router } from '@angular/router'; @@ -33,7 +38,6 @@ export declare class AppSidebarNavItemComponent implements OnInit { ngOnInit(): void; } export declare class AppSidebarNavLinkComponent implements OnInit { - private router; private el; link: any; hasVariant(): boolean; @@ -41,16 +45,15 @@ export declare class AppSidebarNavLinkComponent implements OnInit { isExternalLink(): boolean; isIcon(): boolean; hideMobile(): void; - constructor(router: Router, el: ElementRef); + constructor(el: ElementRef); ngOnInit(): void; } export declare class AppSidebarNavDropdownComponent implements OnInit { - private router; private el; link: any; - isBadge(): boolean; - isIcon(): boolean; - constructor(router: Router, el: ElementRef); + hasBadge(): boolean; + hasIcon(): boolean; + constructor(el: ElementRef); ngOnInit(): void; } export declare class AppSidebarNavTitleComponent implements OnInit { @@ -58,5 +61,6 @@ export declare class AppSidebarNavTitleComponent implements OnInit { private renderer; title: any; constructor(el: ElementRef, renderer: Renderer2); + hasClass(): boolean; ngOnInit(): void; } diff --git a/dist/sidebar/app-sidebar-nav.component.js b/dist/sidebar/app-sidebar-nav.component.js index e71b1e66..a8b50da6 100644 --- a/dist/sidebar/app-sidebar-nav.component.js +++ b/dist/sidebar/app-sidebar-nav.component.js @@ -55,10 +55,13 @@ var AppSidebarNavComponent = /** @class */ (function () { AppSidebarNavComponent.prototype.isTitle = function (item) { return item.title ? true : false; }; + AppSidebarNavComponent.prototype.isNavItem = function (item) { + return !this.isDivider(item) && !this.isTitle(item); + }; AppSidebarNavComponent.decorators = [ { type: Component, args: [{ selector: 'app-sidebar-nav', - template: "\n
      \n \n
    • \n \n \n \n \n \n \n
      \n
    " + template: "\n
      \n \n \n \n \n \n \n \n \n \n \n \n
    " },] }, ]; /** @nocollapse */ @@ -71,6 +74,23 @@ var AppSidebarNavComponent = /** @class */ (function () { return AppSidebarNavComponent; }()); export { AppSidebarNavComponent }; +var AppSidebarNavDividerComponent = /** @class */ (function () { + function AppSidebarNavDividerComponent() { + } + AppSidebarNavDividerComponent.decorators = [ + { type: Component, args: [{ + selector: 'app-sidebar-nav-divider', + template: "
  • " + },] }, + ]; + /** @nocollapse */ + AppSidebarNavDividerComponent.ctorParameters = function () { return []; }; + AppSidebarNavDividerComponent.propDecorators = { + "divider": [{ type: Input },], + }; + return AppSidebarNavDividerComponent; +}()); +export { AppSidebarNavDividerComponent }; import { Router } from '@angular/router'; var AppSidebarNavItemComponent = /** @class */ (function () { function AppSidebarNavItemComponent(router, el) { @@ -90,12 +110,12 @@ var AppSidebarNavItemComponent = /** @class */ (function () { return this.router.isActive(this.thisUrl(), false); }; AppSidebarNavItemComponent.prototype.ngOnInit = function () { - Replace(this.el); + // Replace(this.el); }; AppSidebarNavItemComponent.decorators = [ { type: Component, args: [{ selector: 'app-sidebar-nav-item', - template: "\n
  • \n \n
  • \n \n
  • \n \n
  • \n
    \n " + template: "\n
  • \n \n
  • \n
  • \n \n
  • \n " },] }, ]; /** @nocollapse */ @@ -110,8 +130,7 @@ var AppSidebarNavItemComponent = /** @class */ (function () { }()); export { AppSidebarNavItemComponent }; var AppSidebarNavLinkComponent = /** @class */ (function () { - function AppSidebarNavLinkComponent(router, el) { - this.router = router; + function AppSidebarNavLinkComponent(el) { this.el = el; } AppSidebarNavLinkComponent.prototype.hasVariant = function () { @@ -132,7 +151,7 @@ var AppSidebarNavLinkComponent = /** @class */ (function () { } }; AppSidebarNavLinkComponent.prototype.ngOnInit = function () { - Replace(this.el); + // Replace(this.el); }; AppSidebarNavLinkComponent.decorators = [ { type: Component, args: [{ @@ -142,7 +161,6 @@ var AppSidebarNavLinkComponent = /** @class */ (function () { ]; /** @nocollapse */ AppSidebarNavLinkComponent.ctorParameters = function () { return [ - { type: Router, }, { type: ElementRef, }, ]; }; AppSidebarNavLinkComponent.propDecorators = { @@ -152,29 +170,28 @@ var AppSidebarNavLinkComponent = /** @class */ (function () { }()); export { AppSidebarNavLinkComponent }; var AppSidebarNavDropdownComponent = /** @class */ (function () { - function AppSidebarNavDropdownComponent(router, el) { - this.router = router; + function AppSidebarNavDropdownComponent(el) { this.el = el; } - AppSidebarNavDropdownComponent.prototype.isBadge = function () { + AppSidebarNavDropdownComponent.prototype.hasBadge = function () { return this.link.badge ? true : false; }; - AppSidebarNavDropdownComponent.prototype.isIcon = function () { + AppSidebarNavDropdownComponent.prototype.hasIcon = function () { return this.link.icon ? true : false; }; AppSidebarNavDropdownComponent.prototype.ngOnInit = function () { + console.log(this.el); Replace(this.el); }; AppSidebarNavDropdownComponent.decorators = [ { type: Component, args: [{ selector: 'app-sidebar-nav-dropdown', - template: "\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n
      \n \n \n \n
    \n ", + template: "\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n
      \n \n \n \n
    \n ", styles: ['.nav-dropdown-toggle { cursor: pointer; }'] },] }, ]; /** @nocollapse */ AppSidebarNavDropdownComponent.ctorParameters = function () { return [ - { type: Router, }, { type: ElementRef, }, ]; }; AppSidebarNavDropdownComponent.propDecorators = { @@ -188,12 +205,15 @@ var AppSidebarNavTitleComponent = /** @class */ (function () { this.el = el; this.renderer = renderer; } + AppSidebarNavTitleComponent.prototype.hasClass = function () { + return this.title.class ? true : false; + }; AppSidebarNavTitleComponent.prototype.ngOnInit = function () { var nativeElement = this.el.nativeElement; var li = this.renderer.createElement('li'); var name = this.renderer.createText(this.title.name); this.renderer.addClass(li, 'nav-title'); - if (this.title.class) { + if (this.hasClass()) { var classes = this.title.class; this.renderer.addClass(li, classes); } @@ -206,11 +226,12 @@ var AppSidebarNavTitleComponent = /** @class */ (function () { this.renderer.appendChild(li, name); } this.renderer.appendChild(nativeElement, li); - Replace(this.el); + // Replace(this.el); }; AppSidebarNavTitleComponent.decorators = [ { type: Component, args: [{ selector: 'app-sidebar-nav-title', + // template: '
  • {{title.name}}
  • ' template: '' },] }, ]; diff --git a/dist/sidebar/app-sidebar-nav.component.js.map b/dist/sidebar/app-sidebar-nav.component.js.map index d94cd830..b4f8f23e 100644 --- a/dist/sidebar/app-sidebar-nav.component.js.map +++ b/dist/sidebar/app-sidebar-nav.component.js.map @@ -1 +1 @@ -{"version":3,"file":"app-sidebar-nav.component.js","sourceRoot":"","sources":["../../src/sidebar/app-sidebar-nav.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAU,SAAS,EAAqB,MAAM,eAAe,CAAC;AACzI,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAOpC,8BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAK;IAEvC,qCAAM,GAAN;QACE,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KAChD;;gBATF,SAAS,SAAC;oBACT,QAAQ,EAAE,kBAAkB;iBAC7B;;;;gBAL8B,UAAU;;+BAAzC;;SAMa,oBAAoB;;;;;IAgB/B,oCAAoB,QAA8B;QAA9B,aAAQ,GAAR,QAAQ,CAAsB;KAAI;IAGtD,+CAAU,aAAC,MAAW;QACpB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;gBAT1B,SAAS,SAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;;;gBAdY,oBAAoB;;;+BAkB9B,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;qCAxBnC;;SAqBa,0BAA0B;;IAuCrC;oBAViC,KAAK;KAUrB;IARV,0CAAS,GAAhB,UAAiB,IAAI;QACnB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;KACpC;IAEM,wCAAO,GA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,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;SACxC;aAAM;YACL,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SACrC;QACD,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC7C,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAClB;;gBA/BF,SAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,EAAE;iBACb;;;;gBAtM8B,UAAU;gBAA4C,SAAS;;;0BAwM3F,KAAK;;sCAxMR;;SAuMa,2BAA2B","sourcesContent":["import { Component, Directive, ElementRef, HostBinding, HostListener, Input, OnInit, Renderer2, ViewEncapsulation } from '@angular/core';\nimport { Replace } from './../shared';\n\n@Directive({\n selector: '[appNavDropdown]'\n})\nexport class NavDropdownDirective {\n\n constructor(private el: ElementRef) { }\n\n toggle() {\n this.el.nativeElement.classList.toggle('open');\n }\n}\n\n/**\n* Allows the dropdown to be toggled via click.\n*/\n@Directive({\n selector: '[appNavDropdownToggle]'\n})\nexport class NavDropdownToggleDirective {\n constructor(private dropdown: NavDropdownDirective) {}\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n this.dropdown.toggle();\n }\n}\n\n@Component({\n selector: 'app-sidebar-nav',\n template: `\n
      \n \n
    • \n \n \n \n \n \n \n
      \n
    `\n})\nexport class AppSidebarNavComponent {\n @Input() navItems: any;\n\n @HostBinding('class.sidebar-nav') true;\n @HostBinding('attr.role') role = 'nav';\n\n public isDivider(item) {\n return item.divider ? true : false;\n }\n\n public isTitle(item) {\n return item.title ? true : false;\n }\n\n constructor() { }\n}\n\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'app-sidebar-nav-item',\n template: `\n
  • \n \n
  • \n \n
  • \n \n
  • \n
    \n `\n})\nexport class AppSidebarNavItemComponent implements OnInit {\n @Input() item: any;\n\n public hasClass() {\n return this.item.class ? true : false;\n }\n\n public isDropdown() {\n return this.item.children ? true : false;\n }\n\n public thisUrl() {\n return this.item.url;\n }\n\n public isActive() {\n return this.router.isActive(this.thisUrl(), false);\n }\n\n constructor( private router: Router, private el: ElementRef ) { }\n\n ngOnInit() {\n Replace(this.el);\n }\n\n}\n\n@Component({\n selector: 'app-sidebar-nav-link',\n template: `\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n `\n})\nexport class AppSidebarNavLinkComponent implements OnInit {\n @Input() link: any;\n\n public hasVariant() {\n return this.link.variant ? true : false;\n }\n\n public isBadge() {\n return this.link.badge ? true : false;\n }\n\n public isExternalLink() {\n return this.link.url.substring(0, 4) === 'http' ? true : false;\n }\n\n public isIcon() {\n return this.link.icon ? true : false;\n }\n\n public hideMobile() {\n if (document.body.classList.contains('sidebar-mobile-show')) {\n document.body.classList.toggle('sidebar-mobile-show');\n }\n }\n\n constructor( private router: Router, private el: ElementRef ) { }\n\n ngOnInit() {\n Replace(this.el);\n }\n}\n\n@Component({\n selector: 'app-sidebar-nav-dropdown',\n template: `\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n
      \n \n \n \n
    \n `,\n styles: ['.nav-dropdown-toggle { cursor: pointer; }']\n})\nexport class AppSidebarNavDropdownComponent implements OnInit {\n @Input() link: any;\n\n public isBadge() {\n return this.link.badge ? true : false;\n }\n\n public isIcon() {\n return this.link.icon ? true : false;\n }\n\n constructor( private router: Router, private el: ElementRef ) { }\n\n ngOnInit() {\n Replace(this.el);\n }\n}\n\n@Component({\n selector: 'app-sidebar-nav-title',\n template: ''\n})\nexport class AppSidebarNavTitleComponent implements OnInit {\n @Input() title: any;\n\n constructor(private el: ElementRef, private renderer: Renderer2) { }\n\n ngOnInit() {\n const nativeElement: HTMLElement = this.el.nativeElement;\n const li = this.renderer.createElement('li');\n const name = this.renderer.createText(this.title.name);\n\n this.renderer.addClass(li, 'nav-title');\n\n if ( this.title.class ) {\n const classes = this.title.class;\n this.renderer.addClass(li, classes);\n }\n\n if ( this.title.wrapper ) {\n const wrapper = this.renderer.createElement(this.title.wrapper.element);\n\n this.renderer.appendChild(wrapper, name);\n this.renderer.appendChild(li, wrapper);\n } else {\n this.renderer.appendChild(li, name);\n }\n this.renderer.appendChild(nativeElement, li);\n Replace(this.el);\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-sidebar-nav.component.js","sourceRoot":"","sources":["../../src/sidebar/app-sidebar-nav.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAC1D,SAAS,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;IAOpC,8BAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAK;IAEvC,qCAAM,GAAN;QACE,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KAChD;;gBATF,SAAS,SAAC;oBACT,QAAQ,EAAE,kBAAkB;iBAC7B;;;;gBAPuB,UAAU;;+BADlC;;SASa,oBAAoB;;;;;IAgB/B,oCAAoB,QAA8B;QAA9B,aAAQ,GAAR,QAAQ,CAAsB;KAAK;IAGvD,+CAAU,aAAC,MAAW;QACpB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;gBAT1B,SAAS,SAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;;;gBAdY,oBAAoB;;;+BAkB9B,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;qCA3BnC;;SAwBa,0BAA0B;;IA8CrC;oBAdiC,KAAK;KAcrB;IAZV,0CAAS,GAAhB,UAAiB,IAAI;QACnB,MAAM,CAAC,IAAI,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,WAAW,CAAC,CAAC;QAExC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACpB,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;YACjC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;SACrC;QAED,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACvB,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAExE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACzC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;SACxC;QAAC,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SACrC;QACD,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;;KAE9C;;gBApCF,SAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;;oBAEjC,QAAQ,EAAE,EAAE;iBACb;;;;gBAzNuB,UAAU;gBACxB,SAAS;;;0BA0NhB,KAAK;;sCA5NR;;SA2Na,2BAA2B","sourcesContent":["import {\n Component, Directive, ElementRef, HostBinding, HostListener, Input,\n OnInit, Renderer2\n} from '@angular/core';\nimport { Replace } from './../shared';\n\n@Directive({\n selector: '[appNavDropdown]'\n})\nexport class NavDropdownDirective {\n\n constructor(private el: ElementRef) { }\n\n toggle() {\n this.el.nativeElement.classList.toggle('open');\n }\n}\n\n/**\n* Allows the dropdown to be toggled via click.\n*/\n@Directive({\n selector: '[appNavDropdownToggle]'\n})\nexport class NavDropdownToggleDirective {\n constructor(private dropdown: NavDropdownDirective) { }\n\n @HostListener('click', ['$event'])\n toggleOpen($event: any) {\n $event.preventDefault();\n this.dropdown.toggle();\n }\n}\n\n@Component({\n selector: 'app-sidebar-nav',\n template: `\n
      \n \n \n \n \n \n \n \n \n \n \n \n
    `\n})\nexport class AppSidebarNavComponent {\n\n @Input() navItems: any;\n\n @HostBinding('class.sidebar-nav') true;\n @HostBinding('attr.role') role = 'nav';\n\n public isDivider(item) {\n return item.divider ? true : false;\n }\n\n public isTitle(item) {\n return item.title ? true : false;\n }\n\n public isNavItem(item) {\n return !this.isDivider(item) && !this.isTitle(item);\n }\n\n constructor() { }\n}\n\n@Component({\n selector: 'app-sidebar-nav-divider',\n template: `
  • `\n})\nexport class AppSidebarNavDividerComponent {\n @Input() divider: any;\n\n constructor() { }\n}\n\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'app-sidebar-nav-item',\n template: `\n
  • \n \n
  • \n
  • \n \n
  • \n `\n})\nexport class AppSidebarNavItemComponent implements OnInit {\n @Input() item: any;\n\n public hasClass() {\n return this.item.class ? true : false;\n }\n\n public isDropdown() {\n return this.item.children ? true : false;\n }\n\n public thisUrl() {\n return this.item.url;\n }\n\n public isActive() {\n return this.router.isActive(this.thisUrl(), false);\n }\n\n constructor(private router: Router, private el: ElementRef) { }\n\n ngOnInit() {\n // Replace(this.el);\n }\n\n}\n\n@Component({\n selector: 'app-sidebar-nav-link',\n template: `\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n `\n})\nexport class AppSidebarNavLinkComponent implements OnInit {\n @Input() link: any;\n\n public hasVariant() {\n return this.link.variant ? true : false;\n }\n\n public isBadge() {\n return this.link.badge ? true : false;\n }\n\n public isExternalLink() {\n return this.link.url.substring(0, 4) === 'http' ? true : false;\n }\n\n public isIcon() {\n return this.link.icon ? true : false;\n }\n\n public hideMobile() {\n if (document.body.classList.contains('sidebar-mobile-show')) {\n document.body.classList.toggle('sidebar-mobile-show');\n }\n }\n\n constructor(private el: ElementRef) { }\n\n ngOnInit() {\n // Replace(this.el);\n }\n}\n\n@Component({\n selector: 'app-sidebar-nav-dropdown',\n template: `\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n
      \n \n \n \n
    \n `,\n styles: ['.nav-dropdown-toggle { cursor: pointer; }']\n})\nexport class AppSidebarNavDropdownComponent implements OnInit {\n @Input() link: any;\n\n public hasBadge() {\n return this.link.badge ? true : false;\n }\n\n public hasIcon() {\n return this.link.icon ? true : false;\n }\n\n constructor(private el: ElementRef) { }\n\n ngOnInit() {\n console.log(this.el);\n Replace(this.el);\n }\n}\n\n@Component({\n selector: 'app-sidebar-nav-title',\n // template: '
  • {{title.name}}
  • '\n template: ''\n})\nexport class AppSidebarNavTitleComponent implements OnInit {\n @Input() title: any;\n\n constructor(private el: ElementRef, private renderer: Renderer2) { }\n\n hasClass() {\n return this.title.class ? true : false;\n }\n\n ngOnInit() {\n const nativeElement: HTMLElement = this.el.nativeElement;\n const li = this.renderer.createElement('li');\n const name = this.renderer.createText(this.title.name);\n\n this.renderer.addClass(li, 'nav-title');\n\n if (this.hasClass()) {\n const classes = this.title.class;\n this.renderer.addClass(li, classes);\n }\n\n if (this.title.wrapper) {\n const wrapper = this.renderer.createElement(this.title.wrapper.element);\n\n this.renderer.appendChild(wrapper, name);\n this.renderer.appendChild(li, wrapper);\n } else {\n this.renderer.appendChild(li, name);\n }\n this.renderer.appendChild(nativeElement, li);\n // Replace(this.el);\n }\n}\n"]} \ No newline at end of file diff --git a/dist/sidebar/app-sidebar-nav.component.metadata.json b/dist/sidebar/app-sidebar-nav.component.metadata.json index 7b3408c9..0e06a056 100644 --- a/dist/sidebar/app-sidebar-nav.component.metadata.json +++ b/dist/sidebar/app-sidebar-nav.component.metadata.json @@ -1 +1 @@ -[{"__symbolic":"module","version":4,"metadata":{"NavDropdownDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[appNavDropdown]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":8,"character":26}]}],"toggle":[{"__symbolic":"method"}]}},"NavDropdownToggleDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":18,"character":1},"arguments":[{"selector":"[appNavDropdownToggle]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NavDropdownDirective"}]}],"toggleOpen":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":24,"character":3},"arguments":["click",["$event"]]}]}]}},"AppSidebarNavComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":31,"character":1},"arguments":[{"selector":"app-sidebar-nav","template":"\n
      \n \n
    • \n \n \n \n \n \n \n
      \n
    "}]}],"members":{"navItems":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"true":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":49,"character":3},"arguments":["class.sidebar-nav"]}]}],"role":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":50,"character":3},"arguments":["attr.role"]}]}],"isDivider":[{"__symbolic":"method"}],"isTitle":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor"}]}},"AppSidebarNavItemComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":65,"character":1},"arguments":[{"selector":"app-sidebar-nav-item","template":"\n
  • \n \n
  • \n \n
  • \n \n
  • \n
    \n "}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":82,"character":3}}]}],"hasClass":[{"__symbolic":"method"}],"isDropdown":[{"__symbolic":"method"}],"thisUrl":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":100,"character":31},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":8,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}]}},"AppSidebarNavLinkComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":108,"character":1},"arguments":[{"selector":"app-sidebar-nav-link","template":"\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n "}]}],"members":{"link":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":130,"character":3}}]}],"hasVariant":[{"__symbolic":"method"}],"isBadge":[{"__symbolic":"method"}],"isExternalLink":[{"__symbolic":"method"}],"isIcon":[{"__symbolic":"method"}],"hideMobile":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":100,"character":31},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":8,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}]}},"AppSidebarNavDropdownComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":161,"character":1},"arguments":[{"selector":"app-sidebar-nav-dropdown","template":"\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n
      \n \n \n \n
    \n ","styles":[".nav-dropdown-toggle { cursor: pointer; }"]}]}],"members":{"link":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":178,"character":3}}]}],"isBadge":[{"__symbolic":"method"}],"isIcon":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":100,"character":31},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":8,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}]}},"AppSidebarNavTitleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":195,"character":1},"arguments":[{"selector":"app-sidebar-nav-title","template":""}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":200,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":8,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":202,"character":56}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file +[{"__symbolic":"module","version":4,"metadata":{"NavDropdownDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"[appNavDropdown]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":11,"character":26}]}],"toggle":[{"__symbolic":"method"}]}},"NavDropdownToggleDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":21,"character":1},"arguments":[{"selector":"[appNavDropdownToggle]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NavDropdownDirective"}]}],"toggleOpen":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":27,"character":3},"arguments":["click",["$event"]]}]}]}},"AppSidebarNavComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":34,"character":1},"arguments":[{"selector":"app-sidebar-nav","template":"\n
      \n \n \n \n \n \n \n \n \n \n \n \n
    "}]}],"members":{"navItems":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"true":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":55,"character":3},"arguments":["class.sidebar-nav"]}]}],"role":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":56,"character":3},"arguments":["attr.role"]}]}],"isDivider":[{"__symbolic":"method"}],"isTitle":[{"__symbolic":"method"}],"isNavItem":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor"}]}},"AppSidebarNavDividerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":73,"character":1},"arguments":[{"selector":"app-sidebar-nav-divider","template":"
  • "}]}],"members":{"divider":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":78,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}]}},"AppSidebarNavItemComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":85,"character":1},"arguments":[{"selector":"app-sidebar-nav-item","template":"\n
  • \n \n
  • \n
  • \n \n
  • \n "}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":100,"character":3}}]}],"hasClass":[{"__symbolic":"method"}],"isDropdown":[{"__symbolic":"method"}],"thisUrl":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":118,"character":30},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":11,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}]}},"AppSidebarNavLinkComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":126,"character":1},"arguments":[{"selector":"app-sidebar-nav-link","template":"\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n "}]}],"members":{"link":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":148,"character":3}}]}],"hasVariant":[{"__symbolic":"method"}],"isBadge":[{"__symbolic":"method"}],"isExternalLink":[{"__symbolic":"method"}],"isIcon":[{"__symbolic":"method"}],"hideMobile":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":11,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}]}},"AppSidebarNavDropdownComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":179,"character":1},"arguments":[{"selector":"app-sidebar-nav-dropdown","template":"\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n
      \n \n \n \n
    \n ","styles":[".nav-dropdown-toggle { cursor: pointer; }"]}]}],"members":{"link":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":196,"character":3}}]}],"hasBadge":[{"__symbolic":"method"}],"hasIcon":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":11,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}]}},"AppSidebarNavTitleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":214,"character":1},"arguments":[{"selector":"app-sidebar-nav-title","template":""}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":220,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":11,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":222,"character":56}]}],"hasClass":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/sidebar/app-sidebar.component.d.ts b/dist/sidebar/app-sidebar.component.d.ts index 3baf0ecc..44f8a41c 100644 --- a/dist/sidebar/app-sidebar.component.d.ts +++ b/dist/sidebar/app-sidebar.component.d.ts @@ -3,6 +3,7 @@ export declare class AppSidebarComponent implements OnInit { compact: boolean; display: any; fixed: boolean; + float: boolean; minimized: boolean; offCanvas: boolean; true: any; @@ -10,6 +11,7 @@ export declare class AppSidebarComponent implements OnInit { ngOnInit(): void; isCompact(compact: boolean): void; isFixed(fixed: boolean): void; + isFloat(float: boolean): void; isMinimized(minimized: boolean): void; isOffCanvas(offCanvas: boolean): void; fixedPosition(fixed: boolean): void; diff --git a/dist/sidebar/app-sidebar.component.js b/dist/sidebar/app-sidebar.component.js index 40f2e540..98373fbd 100644 --- a/dist/sidebar/app-sidebar.component.js +++ b/dist/sidebar/app-sidebar.component.js @@ -7,6 +7,7 @@ var AppSidebarComponent = /** @class */ (function () { this.displayBreakpoint(this.display); this.isCompact(this.compact); this.isFixed(this.fixed); + this.isFloat(this.float); this.isMinimized(this.minimized); this.isOffCanvas(this.offCanvas); }; @@ -20,6 +21,11 @@ var AppSidebarComponent = /** @class */ (function () { document.querySelector('body').classList.add('sidebar-fixed'); } }; + AppSidebarComponent.prototype.isFloat = function (float) { + if (this.float) { + document.querySelector('body').classList.add('sidebar-float'); + } + }; AppSidebarComponent.prototype.isMinimized = function (minimized) { if (this.minimized) { document.querySelector('body').classList.add('sidebar-minimized'); @@ -54,6 +60,7 @@ var AppSidebarComponent = /** @class */ (function () { "compact": [{ type: Input },], "display": [{ type: Input },], "fixed": [{ type: Input },], + "float": [{ type: Input },], "minimized": [{ type: Input },], "offCanvas": [{ type: Input },], "true": [{ type: HostBinding, args: ['class.sidebar',] },], diff --git a/dist/sidebar/app-sidebar.component.js.map b/dist/sidebar/app-sidebar.component.js.map index 2d8277f4..a818a03a 100644 --- a/dist/sidebar/app-sidebar.component.js.map +++ b/dist/sidebar/app-sidebar.component.js.map @@ -1 +1 @@ -{"version":3,"file":"app-sidebar.component.js","sourceRoot":"","sources":["../../src/sidebar/app-sidebar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAU,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;;IAe9C;KAAgB;IAEhB,sCAAQ,GAAR;QACE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAClC;IAED,uCAAS,GAAT,UAAU,OAAgB;QACxB,IAAI,IAAI,CAAC,OAAO,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;SAAE;KACvF;IAED,qCAAO,GAAP,UAAQ,KAAc;QACpB,IAAI,IAAI,CAAC,KAAK,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;SAAE;KACnF;IAED,yCAAW,GAAX,UAAY,SAAkB;QAC5B,IAAI,IAAI,CAAC,SAAS,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;SAAE;KAC3F;IAED,yCAAW,GAAX,UAAY,SAAkB;QAC5B,IAAI,IAAI,CAAC,SAAS,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;SAAE;KAC5F;IAED,2CAAa,GAAb,UAAc,KAAc;QAC1B,IAAI,IAAI,CAAC,KAAK,EAAE;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;SAAE;KACnF;IAED,+CAAiB,GAAjB,UAAkB,OAAY;QAC5B,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,EAAG;YAC3B,IAAI,QAAQ,SAAA,CAAC;YACb,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,aAAW,IAAI,CAAC,OAAO,UAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;YAC3F,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACxD;KACF;;gBAjDF,SAAS,SAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,QAAQ,EAAE,2BAA2B;iBACtC;;;;;4BAEE,KAAK;4BACL,KAAK;0BACL,KAAK;8BACL,KAAK;8BACL,KAAK;yBAEL,WAAW,SAAC,eAAe;;8BAd9B;;SAOa,mBAAmB","sourcesContent":["import { Component, Input, HostBinding, OnInit } from '@angular/core';\nimport { sidebarCssClasses } from './../shared';\n\n@Component({\n selector: 'app-sidebar',\n template: ``\n})\nexport class AppSidebarComponent implements OnInit {\n @Input() compact: boolean;\n @Input() display: any;\n @Input() fixed: boolean;\n @Input() minimized: boolean;\n @Input() offCanvas: boolean;\n\n @HostBinding('class.sidebar') true;\n\n constructor() {}\n\n ngOnInit() {\n this.displayBreakpoint(this.display);\n this.isCompact(this.compact);\n this.isFixed(this.fixed);\n this.isMinimized(this.minimized);\n this.isOffCanvas(this.offCanvas);\n }\n\n isCompact(compact: boolean): void {\n if (this.compact) { document.querySelector('body').classList.add('sidebar-compact'); }\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('sidebar-fixed'); }\n }\n\n isMinimized(minimized: boolean): void {\n if (this.minimized) { document.querySelector('body').classList.add('sidebar-minimized'); }\n }\n\n isOffCanvas(offCanvas: boolean): void {\n if (this.offCanvas) { document.querySelector('body').classList.add('sidebar-off-canvas'); }\n }\n\n fixedPosition(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('sidebar-fixed'); }\n }\n\n displayBreakpoint(display: any): void {\n if (this.display !== false ) {\n let cssClass;\n this.display ? cssClass = `sidebar-${this.display}-show` : cssClass = sidebarCssClasses[0];\n document.querySelector('body').classList.add(cssClass);\n }\n }\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-sidebar.component.js","sourceRoot":"","sources":["../../src/sidebar/app-sidebar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAU,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;;IAgB9C;KAAiB;IAEjB,sCAAQ,GAAR;QACE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,WAAW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AAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;SAAE;KACnF;IAED,+CAAiB,GAAjB,UAAkB,OAAY;QAC5B,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC;YAC3B,IAAI,QAAQ,SAAA,CAAC;YACb,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,aAAW,IAAI,CAAC,OAAO,UAAO,CAAC,CAAC,CAAC,QAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;YAC3F,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACxD;KACF;;gBAvDF,SAAS,SAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,QAAQ,EAAE,2BAA2B;iBACtC;;;;;4BAEE,KAAK;4BACL,KAAK;0BACL,KAAK;0BACL,KAAK;8BACL,KAAK;8BACL,KAAK;yBAEL,WAAW,SAAC,eAAe;;8BAf9B;;SAOa,mBAAmB","sourcesContent":["import { Component, Input, HostBinding, OnInit } from '@angular/core';\nimport { sidebarCssClasses } from './../shared';\n\n@Component({\n selector: 'app-sidebar',\n template: ``\n})\nexport class AppSidebarComponent implements OnInit {\n @Input() compact: boolean;\n @Input() display: any;\n @Input() fixed: boolean;\n @Input() float: boolean;\n @Input() minimized: boolean;\n @Input() offCanvas: boolean;\n\n @HostBinding('class.sidebar') true;\n\n constructor() { }\n\n ngOnInit() {\n this.displayBreakpoint(this.display);\n this.isCompact(this.compact);\n this.isFixed(this.fixed);\n this.isFloat(this.float);\n this.isMinimized(this.minimized);\n this.isOffCanvas(this.offCanvas);\n }\n\n isCompact(compact: boolean): void {\n if (this.compact) { document.querySelector('body').classList.add('sidebar-compact'); }\n }\n\n isFixed(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('sidebar-fixed'); }\n }\n\n isFloat(float: boolean): void {\n if (this.float) { document.querySelector('body').classList.add('sidebar-float'); }\n }\n\n isMinimized(minimized: boolean): void {\n if (this.minimized) { document.querySelector('body').classList.add('sidebar-minimized'); }\n }\n\n isOffCanvas(offCanvas: boolean): void {\n if (this.offCanvas) { document.querySelector('body').classList.add('sidebar-off-canvas'); }\n }\n\n fixedPosition(fixed: boolean): void {\n if (this.fixed) { document.querySelector('body').classList.add('sidebar-fixed'); }\n }\n\n displayBreakpoint(display: any): void {\n if (this.display !== false) {\n let cssClass;\n this.display ? cssClass = `sidebar-${this.display}-show` : cssClass = sidebarCssClasses[0];\n document.querySelector('body').classList.add(cssClass);\n }\n }\n}\n"]} \ No newline at end of file diff --git a/dist/sidebar/app-sidebar.component.metadata.json b/dist/sidebar/app-sidebar.component.metadata.json index 0e099309..fbde67b9 100644 --- a/dist/sidebar/app-sidebar.component.metadata.json +++ b/dist/sidebar/app-sidebar.component.metadata.json @@ -1 +1 @@ -[{"__symbolic":"module","version":4,"metadata":{"AppSidebarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"app-sidebar","template":""}]}],"members":{"compact":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"fixed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"minimized":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"offCanvas":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"true":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":14,"character":3},"arguments":["class.sidebar"]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"isCompact":[{"__symbolic":"method"}],"isFixed":[{"__symbolic":"method"}],"isMinimized":[{"__symbolic":"method"}],"isOffCanvas":[{"__symbolic":"method"}],"fixedPosition":[{"__symbolic":"method"}],"displayBreakpoint":[{"__symbolic":"method"}]}}}}] \ No newline at end of file +[{"__symbolic":"module","version":4,"metadata":{"AppSidebarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"app-sidebar","template":""}]}],"members":{"compact":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"fixed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"float":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"minimized":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"offCanvas":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"true":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":15,"character":3},"arguments":["class.sidebar"]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"isCompact":[{"__symbolic":"method"}],"isFixed":[{"__symbolic":"method"}],"isFloat":[{"__symbolic":"method"}],"isMinimized":[{"__symbolic":"method"}],"isOffCanvas":[{"__symbolic":"method"}],"fixedPosition":[{"__symbolic":"method"}],"displayBreakpoint":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/sidebar/app-sidebar.module.js b/dist/sidebar/app-sidebar.module.js index 72961cb5..eb0a16ea 100644 --- a/dist/sidebar/app-sidebar.module.js +++ b/dist/sidebar/app-sidebar.module.js @@ -2,13 +2,12 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { LayoutModule } from './../shared'; -// App Sidebar Component import { AppSidebarFooterComponent } from './app-sidebar-footer.component'; import { AppSidebarFormComponent } from './app-sidebar-form.component'; import { AppSidebarHeaderComponent } from './app-sidebar-header.component'; import { AppSidebarMinimizerComponent } from './app-sidebar-minimizer.component'; import { AppSidebarComponent } from './app-sidebar.component'; -import { AppSidebarNavComponent, AppSidebarNavDropdownComponent, AppSidebarNavItemComponent, AppSidebarNavLinkComponent, AppSidebarNavTitleComponent, NavDropdownDirective, NavDropdownToggleDirective } from './app-sidebar-nav.component'; +import { AppSidebarNavComponent, AppSidebarNavDropdownComponent, AppSidebarNavDividerComponent, AppSidebarNavItemComponent, AppSidebarNavLinkComponent, AppSidebarNavTitleComponent, NavDropdownDirective, NavDropdownToggleDirective } from './app-sidebar-nav.component'; var AppSidebarModule = /** @class */ (function () { function AppSidebarModule() { } @@ -28,6 +27,7 @@ var AppSidebarModule = /** @class */ (function () { AppSidebarNavComponent, AppSidebarNavDropdownComponent, AppSidebarNavItemComponent, + AppSidebarNavDividerComponent, AppSidebarNavLinkComponent, AppSidebarNavTitleComponent, NavDropdownDirective, @@ -43,6 +43,7 @@ var AppSidebarModule = /** @class */ (function () { AppSidebarComponent, AppSidebarNavComponent, AppSidebarNavDropdownComponent, + AppSidebarNavDividerComponent, AppSidebarNavItemComponent, AppSidebarNavLinkComponent, AppSidebarNavTitleComponent, diff --git a/dist/sidebar/app-sidebar.module.js.map b/dist/sidebar/app-sidebar.module.js.map index 0f72a1ed..0ac7b7ae 100644 --- a/dist/sidebar/app-sidebar.module.js.map +++ b/dist/sidebar/app-sidebar.module.js.map @@ -1 +1 @@ -{"version":3,"file":"app-sidebar.module.js","sourceRoot":"","sources":["../../src/sidebar/app-sidebar.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,AADA,wBAAwB;OACjB,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;;;;;gBAEpC,QAAQ,SAAC;oBACR,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBACZ,YAAY;qBACb;oBACD,OAAO,EAAE;wBACP,yBAAyB;wBACzB,uBAAuB;wBACvB,yBAAyB;wBACzB,4BAA4B;wBAC5B,mBAAmB;wBACnB,sBAAsB;wBACtB,8BAA8B;wBAC9B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,2BAA2B;wBAC3B,oBAAoB;wBACpB,0BAA0B;wBAC1B,YAAY;qBACb;oBACD,YAAY,EAAE;wBACZ,yBAAyB;wBACzB,uBAAuB;wBACvB,yBAAyB;wBACzB,4BAA4B;wBAC5B,4BAA4B;wBAC5B,mBAAmB;wBACnB,sBAAsB;wBACtB,8BAA8B;wBAC9B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,2BAA2B;wBAC3B,oBAAoB;wBACpB,0BAA0B;qBAC3B;iBACF;;2BA1DD;;SA2Da,gBAAgB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule} from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { HttpClientModule } from '@angular/common/http';\nimport { LayoutModule } from './../shared';\n\n// App Sidebar Component\nimport { AppSidebarFooterComponent } from './app-sidebar-footer.component';\nimport { AppSidebarFormComponent } from './app-sidebar-form.component';\nimport { AppSidebarHeaderComponent } from './app-sidebar-header.component';\nimport { AppSidebarMinimizerComponent } from './app-sidebar-minimizer.component';\nimport { AppSidebarComponent } from './app-sidebar.component';\nimport {\n AppSidebarNavComponent,\n AppSidebarNavDropdownComponent,\n AppSidebarNavItemComponent,\n AppSidebarNavLinkComponent,\n AppSidebarNavTitleComponent,\n NavDropdownDirective,\n NavDropdownToggleDirective\n} from './app-sidebar-nav.component';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule,\n LayoutModule\n ],\n exports: [\n AppSidebarFooterComponent,\n AppSidebarFormComponent,\n AppSidebarHeaderComponent,\n AppSidebarMinimizerComponent,\n AppSidebarComponent,\n AppSidebarNavComponent,\n AppSidebarNavDropdownComponent,\n AppSidebarNavItemComponent,\n AppSidebarNavLinkComponent,\n AppSidebarNavTitleComponent,\n NavDropdownDirective,\n NavDropdownToggleDirective,\n LayoutModule\n ],\n declarations: [\n AppSidebarFooterComponent,\n AppSidebarFormComponent,\n AppSidebarHeaderComponent,\n AppSidebarMinimizerComponent,\n AppSidebarMinimizerComponent,\n AppSidebarComponent,\n AppSidebarNavComponent,\n AppSidebarNavDropdownComponent,\n AppSidebarNavItemComponent,\n AppSidebarNavLinkComponent,\n AppSidebarNavTitleComponent,\n NavDropdownDirective,\n NavDropdownToggleDirective\n ]\n})\nexport class AppSidebarModule { }\n"]} \ No newline at end of file +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1B,0BAA0B;wBAC1B,2BAA2B;wBAC3B,oBAAoB;wBACpB,0BAA0B;qBAC3B;iBACF;;2BA7DD;;SA8Da,gBAAgB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { HttpClientModule } from '@angular/common/http';\nimport { LayoutModule } from './../shared';\n\n// App Sidebar Component\nimport { AppSidebarFooterComponent } from './app-sidebar-footer.component';\nimport { AppSidebarFormComponent } from './app-sidebar-form.component';\nimport { AppSidebarHeaderComponent } from './app-sidebar-header.component';\nimport { AppSidebarMinimizerComponent } from './app-sidebar-minimizer.component';\nimport { AppSidebarComponent } from './app-sidebar.component';\nimport {\n AppSidebarNavComponent,\n AppSidebarNavDropdownComponent,\n AppSidebarNavDividerComponent,\n AppSidebarNavItemComponent,\n AppSidebarNavLinkComponent,\n AppSidebarNavTitleComponent,\n NavDropdownDirective,\n NavDropdownToggleDirective\n} from './app-sidebar-nav.component';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule,\n LayoutModule\n ],\n exports: [\n AppSidebarFooterComponent,\n AppSidebarFormComponent,\n AppSidebarHeaderComponent,\n AppSidebarMinimizerComponent,\n AppSidebarComponent,\n AppSidebarNavComponent,\n AppSidebarNavDropdownComponent,\n AppSidebarNavItemComponent,\n AppSidebarNavDividerComponent,\n AppSidebarNavLinkComponent,\n AppSidebarNavTitleComponent,\n NavDropdownDirective,\n NavDropdownToggleDirective,\n LayoutModule\n ],\n declarations: [\n AppSidebarFooterComponent,\n AppSidebarFormComponent,\n AppSidebarHeaderComponent,\n AppSidebarMinimizerComponent,\n AppSidebarMinimizerComponent,\n AppSidebarComponent,\n AppSidebarNavComponent,\n AppSidebarNavDropdownComponent,\n AppSidebarNavDividerComponent,\n AppSidebarNavItemComponent,\n AppSidebarNavLinkComponent,\n AppSidebarNavTitleComponent,\n NavDropdownDirective,\n NavDropdownToggleDirective\n ]\n})\nexport class AppSidebarModule { }\n"]} \ No newline at end of file diff --git a/dist/sidebar/app-sidebar.module.metadata.json b/dist/sidebar/app-sidebar.module.metadata.json index cf76cbcf..4591acbb 100644 --- a/dist/sidebar/app-sidebar.module.metadata.json +++ b/dist/sidebar/app-sidebar.module.metadata.json @@ -1 +1 @@ -[{"__symbolic":"module","version":4,"metadata":{"AppSidebarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":25,"character":4},{"__symbolic":"reference","module":"./../shared","name":"LayoutModule","line":26,"character":4}],"exports":[{"__symbolic":"reference","module":"./app-sidebar-footer.component","name":"AppSidebarFooterComponent","line":29,"character":4},{"__symbolic":"reference","module":"./app-sidebar-form.component","name":"AppSidebarFormComponent","line":30,"character":4},{"__symbolic":"reference","module":"./app-sidebar-header.component","name":"AppSidebarHeaderComponent","line":31,"character":4},{"__symbolic":"reference","module":"./app-sidebar-minimizer.component","name":"AppSidebarMinimizerComponent","line":32,"character":4},{"__symbolic":"reference","module":"./app-sidebar.component","name":"AppSidebarComponent","line":33,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavComponent","line":34,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavDropdownComponent","line":35,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavItemComponent","line":36,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavLinkComponent","line":37,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavTitleComponent","line":38,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownDirective","line":39,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownToggleDirective","line":40,"character":4},{"__symbolic":"reference","module":"./../shared","name":"LayoutModule","line":41,"character":4}],"declarations":[{"__symbolic":"reference","module":"./app-sidebar-footer.component","name":"AppSidebarFooterComponent","line":44,"character":4},{"__symbolic":"reference","module":"./app-sidebar-form.component","name":"AppSidebarFormComponent","line":45,"character":4},{"__symbolic":"reference","module":"./app-sidebar-header.component","name":"AppSidebarHeaderComponent","line":46,"character":4},{"__symbolic":"reference","module":"./app-sidebar-minimizer.component","name":"AppSidebarMinimizerComponent","line":47,"character":4},{"__symbolic":"reference","module":"./app-sidebar-minimizer.component","name":"AppSidebarMinimizerComponent","line":48,"character":4},{"__symbolic":"reference","module":"./app-sidebar.component","name":"AppSidebarComponent","line":49,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavComponent","line":50,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavDropdownComponent","line":51,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavItemComponent","line":52,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavLinkComponent","line":53,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavTitleComponent","line":54,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownDirective","line":55,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownToggleDirective","line":56,"character":4}]}]}]}}}] \ No newline at end of file +[{"__symbolic":"module","version":4,"metadata":{"AppSidebarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":23,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":26,"character":4},{"__symbolic":"reference","module":"./../shared","name":"LayoutModule","line":27,"character":4}],"exports":[{"__symbolic":"reference","module":"./app-sidebar-footer.component","name":"AppSidebarFooterComponent","line":30,"character":4},{"__symbolic":"reference","module":"./app-sidebar-form.component","name":"AppSidebarFormComponent","line":31,"character":4},{"__symbolic":"reference","module":"./app-sidebar-header.component","name":"AppSidebarHeaderComponent","line":32,"character":4},{"__symbolic":"reference","module":"./app-sidebar-minimizer.component","name":"AppSidebarMinimizerComponent","line":33,"character":4},{"__symbolic":"reference","module":"./app-sidebar.component","name":"AppSidebarComponent","line":34,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavComponent","line":35,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavDropdownComponent","line":36,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavItemComponent","line":37,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavDividerComponent","line":38,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavLinkComponent","line":39,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavTitleComponent","line":40,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownDirective","line":41,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownToggleDirective","line":42,"character":4},{"__symbolic":"reference","module":"./../shared","name":"LayoutModule","line":43,"character":4}],"declarations":[{"__symbolic":"reference","module":"./app-sidebar-footer.component","name":"AppSidebarFooterComponent","line":46,"character":4},{"__symbolic":"reference","module":"./app-sidebar-form.component","name":"AppSidebarFormComponent","line":47,"character":4},{"__symbolic":"reference","module":"./app-sidebar-header.component","name":"AppSidebarHeaderComponent","line":48,"character":4},{"__symbolic":"reference","module":"./app-sidebar-minimizer.component","name":"AppSidebarMinimizerComponent","line":49,"character":4},{"__symbolic":"reference","module":"./app-sidebar-minimizer.component","name":"AppSidebarMinimizerComponent","line":50,"character":4},{"__symbolic":"reference","module":"./app-sidebar.component","name":"AppSidebarComponent","line":51,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavComponent","line":52,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavDropdownComponent","line":53,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavDividerComponent","line":54,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavItemComponent","line":55,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavLinkComponent","line":56,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"AppSidebarNavTitleComponent","line":57,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownDirective","line":58,"character":4},{"__symbolic":"reference","module":"./app-sidebar-nav.component","name":"NavDropdownToggleDirective","line":59,"character":4}]}]}]}}}] \ No newline at end of file diff --git a/dist/sidebar/app-sidebar.module.ngfactory.js.map b/dist/sidebar/app-sidebar.module.ngfactory.js.map index 0ff72ebf..3d82eba5 100644 --- a/dist/sidebar/app-sidebar.module.ngfactory.js.map +++ b/dist/sidebar/app-sidebar.module.ngfactory.js.map @@ -1 +1 @@ -{"version":3,"file":"app-sidebar.module.ngfactory.js","sourceRoot":"","sources":["../../src/sidebar/app-sidebar.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './app-sidebar.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/router';\nimport * as i4 from '../shared/layout/layout.directive';\nimport * as i5 from './app-sidebar-footer.component';\nimport * as i6 from './app-sidebar-form.component';\nimport * as i7 from './app-sidebar-header.component';\nimport * as i8 from './app-sidebar-minimizer.component';\nimport * as i9 from './app-sidebar.component';\nimport * as i10 from './app-sidebar-nav.component';\nimport * as i11 from '../shared/layout/layout.module';\nexport const AppSidebarModuleNgFactory:i0.NgModuleFactory = (null as any);\nvar _decl0_0:i2.NgClass = ((null as any));\nvar _decl0_1:i2.NgComponentOutlet = ((null as any));\nvar _decl0_2:i2.NgForOf = ((null as any));\nvar _decl0_3:i2.NgIf = ((null as any));\nvar _decl0_4:i2.NgTemplateOutlet = ((null as any));\nvar _decl0_5:i2.NgStyle = ((null as any));\nvar _decl0_6:i2.NgSwitch = ((null as any));\nvar _decl0_7:i2.NgSwitchCase = ((null as any));\nvar _decl0_8:i2.NgSwitchDefault = ((null as any));\nvar _decl0_9:i2.NgPlural = ((null as any));\nvar _decl0_10:i2.NgPluralCase = ((null as any));\nvar _decl0_11:i3.RouterOutlet = ((null as any));\nvar _decl0_12:i3.RouterLink = ((null as any));\nvar _decl0_13:i3.RouterLinkWithHref = ((null as any));\nvar _decl0_14:i3.RouterLinkActive = ((null as any));\nvar _decl0_15:i4.AsideToggleDirective = ((null as any));\nvar _decl0_16:i4.BrandMinimizeDirective = ((null as any));\nvar _decl0_17:i4.MobileSidebarToggleDirective = ((null as any));\nvar _decl0_18:i4.SidebarToggleDirective = ((null as any));\nvar _decl0_19:i4.SidebarMinimizeDirective = ((null as any));\nvar _decl0_20:i4.SidebarOffCanvasCloseDirective = ((null as any));\nvar _decl0_21:i5.AppSidebarFooterComponent = ((null as any));\nvar _decl0_22:i6.AppSidebarFormComponent = ((null as any));\nvar _decl0_23:i7.AppSidebarHeaderComponent = ((null as any));\nvar _decl0_24:i8.AppSidebarMinimizerComponent = ((null as any));\nvar _decl0_25:i9.AppSidebarComponent = ((null as any));\nvar _decl0_26:i10.AppSidebarNavComponent = ((null as any));\nvar _decl0_27:i10.AppSidebarNavDropdownComponent = ((null as any));\nvar _decl0_28:i10.AppSidebarNavItemComponent = ((null as any));\nvar _decl0_29:i10.AppSidebarNavLinkComponent = ((null as any));\nvar _decl0_30:i10.AppSidebarNavTitleComponent = ((null as any));\nvar _decl0_31:i10.NavDropdownDirective = ((null as any));\nvar _decl0_32:i10.NavDropdownToggleDirective = ((null as any));\nvar _decl0_33:i2.AsyncPipe = ((null as any));\nvar _decl0_34:i2.UpperCasePipe = ((null as any));\nvar _decl0_35:i2.LowerCasePipe = ((null as any));\nvar _decl0_36:i2.JsonPipe = ((null as any));\nvar _decl0_37:i2.SlicePipe = ((null as any));\nvar _decl0_38:i2.DecimalPipe = ((null as any));\nvar _decl0_39:i2.PercentPipe = ((null as any));\nvar _decl0_40:i2.TitleCasePipe = ((null as any));\nvar _decl0_41:i2.CurrencyPipe = ((null as any));\nvar _decl0_42:i2.DatePipe = ((null as any));\nvar _decl0_43:i2.I18nPluralPipe = ((null as any));\nvar _decl0_44:i2.I18nSelectPipe = ((null as any));\nvar _decl0_45:i2.CommonModule = ((null as any));\nvar _decl0_46:i3.RouterModule = ((null as any));\nvar _decl0_48:i11.LayoutModule = ((null as any));\nvar _decl0_49:i0.TemplateRef = ((null as any));\nvar _decl0_50:i0.ElementRef = ((null as any));\nfunction _View_AppSidebarFooterComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarFooterComponent_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarFormComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarFormComponent_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarHeaderComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarHeaderComponent_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarMinimizerComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarMinimizerComponent_4_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((_decl0_16.toggleOpen(_any)) !== false);\n const pd_1:any = ((_decl0_19.toggleOpen(_any)) !== false);\n}\nfunction _View_AppSidebarComponent_Host_5_0():void {\n var _any:any = (null as any);\n const currVal_0:any = true;\n currVal_0;\n}\nfunction _View_AppSidebarComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavComponent_Host_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = true;\n currVal_0;\n const currVal_1:any = _decl0_26.role;\n currVal_1;\n}\nfunction _View_AppSidebarNavComponent_6_2():void {\n if (_decl0_26.isDivider(_any)) { var _any:any = (null as any); }\n}\nfunction _View_AppSidebarNavComponent_6_3():void {\n if (_decl0_26.isTitle(_any)) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavComponent_6_4():void {\n if ((!_decl0_26.isDivider(_any) && !_decl0_26.isTitle(_any))) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavComponent_6_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_26.isDivider(_any);\n currVal_0;\n const currVal_1:any = _decl0_26.isTitle(_any);\n currVal_1;\n const currVal_2:any = (!_decl0_26.isDivider(_any) && !_decl0_26.isTitle(_any));\n currVal_2;\n}\nfunction _View_AppSidebarNavComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_26.navItems;\n currVal_0;\n}\nfunction _View_AppSidebarNavDropdownComponent_Host_7_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavDropdownComponent_7_1():void {\n if (_decl0_27.isIcon()) {\n var _any:any = (null as any);\n const currVal_0:any = i0.ɵinlineInterpolate(1,'nav-icon ',_decl0_27.link.icon,\n '');\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavDropdownComponent_7_2():void {\n if (_decl0_27.isBadge()) {\n var _any:any = (null as any);\n const currVal_0:any = ('badge badge-' + _decl0_27.link.badge.variant);\n currVal_0;\n const currVal_1:any = _decl0_27.link.badge.text;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavDropdownComponent_7_3():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AppSidebarNavDropdownComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_27.isIcon();\n currVal_0;\n const currVal_1:any = _decl0_27.link.name;\n currVal_1;\n const currVal_2:any = _decl0_27.isBadge();\n currVal_2;\n const currVal_3:any = _decl0_27.link.children;\n currVal_3;\n const pd_4:any = ((_decl0_32.toggleOpen(_any)) !== false);\n}\nfunction _View_AppSidebarNavItemComponent_Host_8_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavItemComponent_8_1():void {\n if (!_decl0_28.isDropdown()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_28.hasClass()? ('nav-item ' + _decl0_28.item.class): 'nav-item');\n currVal_0;\n const currVal_1:any = _decl0_28.item;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavItemComponent_8_2():void {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_28.hasClass()? ('nav-item nav-dropdown ' + _decl0_28.item.class): 'nav-item nav-dropdown');\n currVal_0;\n const currVal_1:any = 'open';\n currVal_1;\n const currVal_2:any = _decl0_28.isActive();\n currVal_2;\n const currVal_3:any = _decl0_28.item;\n currVal_3;\n}\nfunction _View_AppSidebarNavItemComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = !_decl0_28.isDropdown();\n currVal_0;\n const currVal_1:any = _decl0_49;\n currVal_1;\n}\nfunction _View_AppSidebarNavLinkComponent_Host_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavLinkComponent_9_2():void {\n if ((!_decl0_29.isExternalLink() && _decl0_29.isIcon())) {\n var _any:any = (null as any);\n const currVal_0:any = i0.ɵinlineInterpolate(1,'nav-icon ',_decl0_29.link.icon,\n '');\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_9_3():void {\n if ((!_decl0_29.isExternalLink() && _decl0_29.isBadge())) {\n var _any:any = (null as any);\n const currVal_0:any = ('badge badge-' + _decl0_29.link.badge.variant);\n currVal_0;\n const currVal_1:any = _decl0_29.link.badge.text;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_9_1():void {\n if (!_decl0_29.isExternalLink()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_29.hasVariant()? ('nav-link nav-link-' + _decl0_29.link.variant): 'nav-link');\n currVal_0;\n const currVal_1:any = [_decl0_29.link.url];\n currVal_1;\n const currVal_2:any = _decl0_13.target;\n currVal_2;\n const currVal_3:any = _decl0_13.href;\n currVal_3;\n const currVal_4:any = 'active';\n currVal_4;\n const currVal_5:any = _decl0_29.isIcon();\n currVal_5;\n const currVal_6:any = _decl0_29.link.name;\n currVal_6;\n const currVal_7:any = _decl0_29.isBadge();\n currVal_7;\n const pd_8:any = ((_decl0_13.onClick(_any.button,_any.ctrlKey,_any.metaKey,\n _any.shiftKey)) !== false);\n const pd_9:any = ((_decl0_29.hideMobile()) !== false);\n }\n}\nfunction _View_AppSidebarNavLinkComponent_9_5():void {\n if (_decl0_29.isIcon()) {\n var _any:any = (null as any);\n const currVal_0:any = i0.ɵinlineInterpolate(1,'nav-icon ',_decl0_29.link.icon,\n '');\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_9_6():void {\n if (_decl0_29.isBadge()) {\n var _any:any = (null as any);\n const currVal_0:any = ('badge badge-' + _decl0_29.link.badge.variant);\n currVal_0;\n const currVal_1:any = _decl0_29.link.badge.text;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_9_4():void {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_29.hasVariant()? ('nav-link nav-link-' + _decl0_29.link.variant): 'nav-link');\n currVal_0;\n const currVal_1:any = i0.ɵinlineInterpolate(1,'',_decl0_29.link.url,'');\n currVal_1;\n const currVal_2:any = _decl0_29.isIcon();\n currVal_2;\n const currVal_3:any = _decl0_29.link.name;\n currVal_3;\n const currVal_4:any = _decl0_29.isBadge();\n currVal_4;\n}\nfunction _View_AppSidebarNavLinkComponent_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = !_decl0_29.isExternalLink();\n currVal_0;\n const currVal_1:any = _decl0_49;\n currVal_1;\n}\nfunction _View_AppSidebarNavTitleComponent_Host_10_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavTitleComponent_10_0():void {\n var _any:any = (null as any);\n}\n"]} \ No newline at end of file +{"version":3,"file":"app-sidebar.module.ngfactory.js","sourceRoot":"","sources":["../../src/sidebar/app-sidebar.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './app-sidebar.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/router';\nimport * as i4 from '../shared/layout/layout.directive';\nimport * as i5 from './app-sidebar-footer.component';\nimport * as i6 from './app-sidebar-form.component';\nimport * as i7 from './app-sidebar-header.component';\nimport * as i8 from './app-sidebar-minimizer.component';\nimport * as i9 from './app-sidebar.component';\nimport * as i10 from './app-sidebar-nav.component';\nimport * as i11 from '../shared/layout/layout.module';\nexport const AppSidebarModuleNgFactory:i0.NgModuleFactory = (null as any);\nvar _decl0_0:i2.NgClass = ((null as any));\nvar _decl0_1:i2.NgComponentOutlet = ((null as any));\nvar _decl0_2:i2.NgForOf = ((null as any));\nvar _decl0_3:i2.NgIf = ((null as any));\nvar _decl0_4:i2.NgTemplateOutlet = ((null as any));\nvar _decl0_5:i2.NgStyle = ((null as any));\nvar _decl0_6:i2.NgSwitch = ((null as any));\nvar _decl0_7:i2.NgSwitchCase = ((null as any));\nvar _decl0_8:i2.NgSwitchDefault = ((null as any));\nvar _decl0_9:i2.NgPlural = ((null as any));\nvar _decl0_10:i2.NgPluralCase = ((null as any));\nvar _decl0_11:i3.RouterOutlet = ((null as any));\nvar _decl0_12:i3.RouterLink = ((null as any));\nvar _decl0_13:i3.RouterLinkWithHref = ((null as any));\nvar _decl0_14:i3.RouterLinkActive = ((null as any));\nvar _decl0_15:i4.AsideToggleDirective = ((null as any));\nvar _decl0_16:i4.BrandMinimizeDirective = ((null as any));\nvar _decl0_17:i4.MobileSidebarToggleDirective = ((null as any));\nvar _decl0_18:i4.SidebarToggleDirective = ((null as any));\nvar _decl0_19:i4.SidebarMinimizeDirective = ((null as any));\nvar _decl0_20:i4.SidebarOffCanvasCloseDirective = ((null as any));\nvar _decl0_21:i5.AppSidebarFooterComponent = ((null as any));\nvar _decl0_22:i6.AppSidebarFormComponent = ((null as any));\nvar _decl0_23:i7.AppSidebarHeaderComponent = ((null as any));\nvar _decl0_24:i8.AppSidebarMinimizerComponent = ((null as any));\nvar _decl0_25:i9.AppSidebarComponent = ((null as any));\nvar _decl0_26:i10.AppSidebarNavComponent = ((null as any));\nvar _decl0_27:i10.AppSidebarNavDropdownComponent = ((null as any));\nvar _decl0_28:i10.AppSidebarNavDividerComponent = ((null as any));\nvar _decl0_29:i10.AppSidebarNavItemComponent = ((null as any));\nvar _decl0_30:i10.AppSidebarNavLinkComponent = ((null as any));\nvar _decl0_31:i10.AppSidebarNavTitleComponent = ((null as any));\nvar _decl0_32:i10.NavDropdownDirective = ((null as any));\nvar _decl0_33:i10.NavDropdownToggleDirective = ((null as any));\nvar _decl0_34:i2.AsyncPipe = ((null as any));\nvar _decl0_35:i2.UpperCasePipe = ((null as any));\nvar _decl0_36:i2.LowerCasePipe = ((null as any));\nvar _decl0_37:i2.JsonPipe = ((null as any));\nvar _decl0_38:i2.SlicePipe = ((null as any));\nvar _decl0_39:i2.DecimalPipe = ((null as any));\nvar _decl0_40:i2.PercentPipe = ((null as any));\nvar _decl0_41:i2.TitleCasePipe = ((null as any));\nvar _decl0_42:i2.CurrencyPipe = ((null as any));\nvar _decl0_43:i2.DatePipe = ((null as any));\nvar _decl0_44:i2.I18nPluralPipe = ((null as any));\nvar _decl0_45:i2.I18nSelectPipe = ((null as any));\nvar _decl0_46:i2.CommonModule = ((null as any));\nvar _decl0_47:i3.RouterModule = ((null as any));\nvar _decl0_49:i11.LayoutModule = ((null as any));\nvar _decl0_50:i0.TemplateRef = ((null as any));\nvar _decl0_51:i0.ElementRef = ((null as any));\nfunction _View_AppSidebarFooterComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarFooterComponent_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarFormComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarFormComponent_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarHeaderComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarHeaderComponent_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarMinimizerComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarMinimizerComponent_4_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((_decl0_16.toggleOpen(_any)) !== false);\n const pd_1:any = ((_decl0_19.toggleOpen(_any)) !== false);\n}\nfunction _View_AppSidebarComponent_Host_5_0():void {\n var _any:any = (null as any);\n const currVal_0:any = true;\n currVal_0;\n}\nfunction _View_AppSidebarComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavComponent_Host_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = true;\n currVal_0;\n const currVal_1:any = _decl0_26.role;\n currVal_1;\n}\nfunction _View_AppSidebarNavComponent_6_2():void {\n if (_decl0_26.isDivider(_any)) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavComponent_6_3():void {\n if (_decl0_26.isTitle(_any)) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavComponent_6_4():void {\n if (_decl0_26.isNavItem(_any)) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavComponent_6_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_26.isDivider(_any);\n currVal_0;\n const currVal_1:any = _decl0_26.isTitle(_any);\n currVal_1;\n const currVal_2:any = _decl0_26.isNavItem(_any);\n currVal_2;\n}\nfunction _View_AppSidebarNavComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_26.navItems;\n currVal_0;\n}\nfunction _View_AppSidebarNavDropdownComponent_Host_7_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavDropdownComponent_7_1():void {\n if (_decl0_27.hasIcon()) {\n var _any:any = (null as any);\n const currVal_0:any = i0.ɵinlineInterpolate(1,'nav-icon ',_decl0_27.link.icon,\n '');\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavDropdownComponent_7_2():void {\n if (_decl0_27.hasBadge()) {\n var _any:any = (null as any);\n const currVal_0:any = ('badge badge-' + _decl0_27.link.badge.variant);\n currVal_0;\n const currVal_1:any = _decl0_27.link.badge.text;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavDropdownComponent_7_3():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AppSidebarNavDropdownComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_27.hasIcon();\n currVal_0;\n const currVal_1:any = _decl0_27.link.name;\n currVal_1;\n const currVal_2:any = _decl0_27.hasBadge();\n currVal_2;\n const currVal_3:any = _decl0_27.link.children;\n currVal_3;\n const pd_4:any = ((_decl0_33.toggleOpen(_any)) !== false);\n}\nfunction _View_AppSidebarNavDividerComponent_Host_8_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavDividerComponent_8_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavItemComponent_Host_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavItemComponent_9_1():void {\n if (!_decl0_29.isDropdown()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_29.hasClass()? ('nav-item ' + _decl0_29.item.class): 'nav-item');\n currVal_0;\n const currVal_1:any = _decl0_29.item;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavItemComponent_9_2():void {\n if (_decl0_29.isDropdown()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_29.hasClass()? ('nav-item nav-dropdown ' + _decl0_29.item.class): 'nav-item nav-dropdown');\n currVal_0;\n const currVal_1:any = 'open';\n currVal_1;\n const currVal_2:any = _decl0_29.isActive();\n currVal_2;\n const currVal_3:any = _decl0_29.item;\n currVal_3;\n }\n}\nfunction _View_AppSidebarNavItemComponent_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = !_decl0_29.isDropdown();\n currVal_0;\n const currVal_1:any = _decl0_29.isDropdown();\n currVal_1;\n}\nfunction _View_AppSidebarNavLinkComponent_Host_10_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavLinkComponent_10_2():void {\n if ((!_decl0_30.isExternalLink() && _decl0_30.isIcon())) {\n var _any:any = (null as any);\n const currVal_0:any = i0.ɵinlineInterpolate(1,'nav-icon ',_decl0_30.link.icon,\n '');\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_10_3():void {\n if ((!_decl0_30.isExternalLink() && _decl0_30.isBadge())) {\n var _any:any = (null as any);\n const currVal_0:any = ('badge badge-' + _decl0_30.link.badge.variant);\n currVal_0;\n const currVal_1:any = _decl0_30.link.badge.text;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_10_1():void {\n if (!_decl0_30.isExternalLink()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_30.hasVariant()? ('nav-link nav-link-' + _decl0_30.link.variant): 'nav-link');\n currVal_0;\n const currVal_1:any = [_decl0_30.link.url];\n currVal_1;\n const currVal_2:any = _decl0_13.target;\n currVal_2;\n const currVal_3:any = _decl0_13.href;\n currVal_3;\n const currVal_4:any = 'active';\n currVal_4;\n const currVal_5:any = _decl0_30.isIcon();\n currVal_5;\n const currVal_6:any = _decl0_30.link.name;\n currVal_6;\n const currVal_7:any = _decl0_30.isBadge();\n currVal_7;\n const pd_8:any = ((_decl0_13.onClick(_any.button,_any.ctrlKey,_any.metaKey,\n _any.shiftKey)) !== false);\n const pd_9:any = ((_decl0_30.hideMobile()) !== false);\n }\n}\nfunction _View_AppSidebarNavLinkComponent_10_5():void {\n if (_decl0_30.isIcon()) {\n var _any:any = (null as any);\n const currVal_0:any = i0.ɵinlineInterpolate(1,'nav-icon ',_decl0_30.link.icon,\n '');\n currVal_0;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_10_6():void {\n if (_decl0_30.isBadge()) {\n var _any:any = (null as any);\n const currVal_0:any = ('badge badge-' + _decl0_30.link.badge.variant);\n currVal_0;\n const currVal_1:any = _decl0_30.link.badge.text;\n currVal_1;\n }\n}\nfunction _View_AppSidebarNavLinkComponent_10_4():void {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_30.hasVariant()? ('nav-link nav-link-' + _decl0_30.link.variant): 'nav-link');\n currVal_0;\n const currVal_1:any = i0.ɵinlineInterpolate(1,'',_decl0_30.link.url,'');\n currVal_1;\n const currVal_2:any = _decl0_30.isIcon();\n currVal_2;\n const currVal_3:any = _decl0_30.link.name;\n currVal_3;\n const currVal_4:any = _decl0_30.isBadge();\n currVal_4;\n}\nfunction _View_AppSidebarNavLinkComponent_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = !_decl0_30.isExternalLink();\n currVal_0;\n const currVal_1:any = _decl0_50;\n currVal_1;\n}\nfunction _View_AppSidebarNavTitleComponent_Host_11_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AppSidebarNavTitleComponent_11_0():void {\n var _any:any = (null as any);\n}\n"]} \ No newline at end of file diff --git a/package.json b/package.json index c963bd70..7fb4f1dd 100644 --- a/package.json +++ b/package.json @@ -36,4 +36,4 @@ "dist/", "src/" ] -} +} \ No newline at end of file diff --git a/src/breadcrumb/app-breadcrumb.service.ts b/src/breadcrumb/app-breadcrumb.service.ts index 870bdf57..74d10edf 100644 --- a/src/breadcrumb/app-breadcrumb.service.ts +++ b/src/breadcrumb/app-breadcrumb.service.ts @@ -28,10 +28,12 @@ export class AppBreadcrumbService { if (route.outlet === 'primary') { const routeSnapshot = route.snapshot; url += '/' + routeSnapshot.url.map(segment => segment.path).join('/'); - breadcrumbs.push({ - label: route.snapshot.data, - url: url - }); + if (route.routeConfig.data && route.routeConfig.data.title) { + breadcrumbs.push({ + label: route.snapshot.data, + url: url + }); + } currentRoute = route; } }); diff --git a/src/sidebar/app-sidebar-nav.component.ts b/src/sidebar/app-sidebar-nav.component.ts index 481057e6..f054bc1f 100644 --- a/src/sidebar/app-sidebar-nav.component.ts +++ b/src/sidebar/app-sidebar-nav.component.ts @@ -1,4 +1,7 @@ -import { Component, Directive, ElementRef, HostBinding, HostListener, Input, OnInit, Renderer2, ViewEncapsulation } from '@angular/core'; +import { + Component, Directive, ElementRef, HostBinding, HostListener, Input, + OnInit, Renderer2 +} from '@angular/core'; import { Replace } from './../shared'; @Directive({ @@ -20,7 +23,7 @@ export class NavDropdownDirective { selector: '[appNavDropdownToggle]' }) export class NavDropdownToggleDirective { - constructor(private dropdown: NavDropdownDirective) {} + constructor(private dropdown: NavDropdownDirective) { } @HostListener('click', ['$event']) toggleOpen($event: any) { @@ -34,17 +37,20 @@ export class NavDropdownToggleDirective { template: ` ` }) export class AppSidebarNavComponent { + @Input() navItems: any; @HostBinding('class.sidebar-nav') true; @@ -58,6 +64,20 @@ export class AppSidebarNavComponent { return item.title ? true : false; } + public isNavItem(item) { + return !this.isDivider(item) && !this.isTitle(item); + } + + constructor() { } +} + +@Component({ + selector: 'app-sidebar-nav-divider', + template: `` +}) +export class AppSidebarNavDividerComponent { + @Input() divider: any; + constructor() { } } @@ -66,17 +86,15 @@ import { Router } from '@angular/router'; @Component({ selector: 'app-sidebar-nav-item', template: ` -
  • +
  • - -
  • - -
  • -
    +
  • + +
  • ` }) export class AppSidebarNavItemComponent implements OnInit { @@ -98,10 +116,10 @@ export class AppSidebarNavItemComponent implements OnInit { return this.router.isActive(this.thisUrl(), false); } - constructor( private router: Router, private el: ElementRef ) { } + constructor(private router: Router, private el: ElementRef) { } ngOnInit() { - Replace(this.el); + // Replace(this.el); } } @@ -152,10 +170,10 @@ export class AppSidebarNavLinkComponent implements OnInit { } } - constructor( private router: Router, private el: ElementRef ) { } + constructor(private el: ElementRef) { } ngOnInit() { - Replace(this.el); + // Replace(this.el); } } @@ -163,9 +181,9 @@ export class AppSidebarNavLinkComponent implements OnInit { selector: 'app-sidebar-nav-dropdown', template: ` - + {{ link.name }} - {{ link.badge.text }} + {{ link.badge.text }}