diff --git a/.gitignore b/.gitignore
index 1b28fd59..2ffaa8da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,9 @@
# Misc
-# package-lock.json
+package-lock.json
# Folders to ignore
-node_modules
+/dist
+/node_modules
/coverage
# IDEs and editors
diff --git a/dist/@coreui/angular/README.md b/dist/@coreui/angular/README.md
deleted file mode 100644
index c9c5aa7f..00000000
--- a/dist/@coreui/angular/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# [@coreui/angular](https://coreui.io/angular)
-
-[](https://github.com/coreui/coreui-angular)
-[][npm]
-[![NPM downloads][npm-download]][npm]
-[](https://github.com/coreui/coreui)
-[![npm package][npm-coreui-badge]][npm-coreui]
-[![NPM downloads][npm-coreui-download]][npm-coreui]
-
-
-[npm]: https://www.npmjs.com/package/@coreui/angular
-[npm-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square
-[npm-coreui]: https://www.npmjs.com/package/@coreui/coreui
-[npm-coreui-badge]: https://img.shields.io/npm/v/@coreui/coreui.png?style=flat-square
-[npm-coreui-download]: https://img.shields.io/npm/dm/@coreui/coreui.svg?style=flat-square
-
-> [@coreui/angular](https://coreui.io/angular) `v2` library project
-> for use with [CoreUI](https://coreui.io/angular/) `v2` Bootstrap Admin Template
-
-## Installation
-```
-npm install @coreui/angular
-```
-
-## Changelog
-
-See the GitHub [release history](https://github.com/coreui/coreui-angular/releases).
-
-## Contributing
-
-See [CONTRIBUTING.md](https://github.com/coreui/coreui-angular/blob/master/CONTRIBUTING.md).
diff --git a/dist/@coreui/angular/bundles/coreui-angular.umd.js b/dist/@coreui/angular/bundles/coreui-angular.umd.js
deleted file mode 100644
index c585e09f..00000000
--- a/dist/@coreui/angular/bundles/coreui-angular.umd.js
+++ /dev/null
@@ -1,1744 +0,0 @@
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/index'), require('rxjs/operators'), require('@angular/common'), require('@angular/core'), require('@angular/router')) :
- typeof define === 'function' && define.amd ? define('@coreui/angular', ['exports', 'rxjs/index', 'rxjs/operators', '@angular/common', '@angular/core', '@angular/router'], factory) :
- (factory((global.coreui = global.coreui || {}, global.coreui.angular = {}),global.rxjs.index,global.rxjs.operators,global.ng.common,global.ng.core,global.ng.router));
-}(this, (function (exports,index,operators,common,core,router) { 'use strict';
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var sidebarCssClasses = [
- 'sidebar-show',
- 'sidebar-sm-show',
- 'sidebar-md-show',
- 'sidebar-lg-show',
- 'sidebar-xl-show'
- ];
- /** @type {?} */
- var asideMenuCssClasses = [
- 'aside-menu-show',
- 'aside-menu-sm-show',
- 'aside-menu-md-show',
- 'aside-menu-lg-show',
- 'aside-menu-xl-show'
- ];
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var RemoveClasses = function (NewClassNames) {
- /** @type {?} */
- var MatchClasses = NewClassNames.map(function (Class) { return document.querySelector('body').classList.contains(Class); });
- return MatchClasses.indexOf(true) !== -1;
- };
- /** @type {?} */
- var ToggleClasses = function (Toggle, ClassNames) {
- /** @type {?} */
- var Level = ClassNames.indexOf(Toggle);
- /** @type {?} */
- var NewClassNames = ClassNames.slice(0, Level + 1);
- if (RemoveClasses(NewClassNames)) {
- NewClassNames.map(function (Class) { return document.querySelector('body').classList.remove(Class); });
- }
- else {
- document.querySelector('body').classList.add(Toggle);
- }
- };
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /**
- * Allows the sidebar to be toggled via click.
- */
- var SidebarToggleDirective = /** @class */ (function () {
- function SidebarToggleDirective() {
- }
- /**
- * @return {?}
- */
- SidebarToggleDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- this.bp = this.breakpoint;
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- SidebarToggleDirective.prototype.toggleOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- /** @type {?} */
- var cssClass;
- this.bp ? cssClass = "sidebar-" + this.bp + "-show" : cssClass = sidebarCssClasses[0];
- ToggleClasses(cssClass, sidebarCssClasses);
- };
- SidebarToggleDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appSidebarToggler]'
- },] }
- ];
- /** @nocollapse */
- SidebarToggleDirective.ctorParameters = function () { return []; };
- SidebarToggleDirective.propDecorators = {
- breakpoint: [{ type: core.Input, args: ['appSidebarToggler',] }],
- toggleOpen: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return SidebarToggleDirective;
- }());
- var SidebarMinimizeDirective = /** @class */ (function () {
- function SidebarMinimizeDirective() {
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- SidebarMinimizeDirective.prototype.toggleOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- document.querySelector('body').classList.toggle('sidebar-minimized');
- };
- SidebarMinimizeDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appSidebarMinimizer]'
- },] }
- ];
- /** @nocollapse */
- SidebarMinimizeDirective.ctorParameters = function () { return []; };
- SidebarMinimizeDirective.propDecorators = {
- toggleOpen: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return SidebarMinimizeDirective;
- }());
- var MobileSidebarToggleDirective = /** @class */ (function () {
- function MobileSidebarToggleDirective() {
- }
- // Check if element has class
- // Check if element has class
- /**
- * @private
- * @param {?} target
- * @param {?} elementClassName
- * @return {?}
- */
- MobileSidebarToggleDirective.prototype.hasClass =
- // Check if element has class
- /**
- * @private
- * @param {?} target
- * @param {?} elementClassName
- * @return {?}
- */
- function (target, elementClassName) {
- return new RegExp('(\\s|^)' + elementClassName + '(\\s|$)').test(target.className);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- MobileSidebarToggleDirective.prototype.toggleOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- document.querySelector('body').classList.toggle('sidebar-show');
- };
- MobileSidebarToggleDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appMobileSidebarToggler]'
- },] }
- ];
- /** @nocollapse */
- MobileSidebarToggleDirective.ctorParameters = function () { return []; };
- MobileSidebarToggleDirective.propDecorators = {
- toggleOpen: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return MobileSidebarToggleDirective;
- }());
- /**
- * Allows the off-canvas sidebar to be closed via click.
- */
- var SidebarOffCanvasCloseDirective = /** @class */ (function () {
- function SidebarOffCanvasCloseDirective() {
- }
- // Check if element has class
- // Check if element has class
- /**
- * @private
- * @param {?} target
- * @param {?} elementClassName
- * @return {?}
- */
- SidebarOffCanvasCloseDirective.prototype.hasClass =
- // Check if element has class
- /**
- * @private
- * @param {?} target
- * @param {?} elementClassName
- * @return {?}
- */
- function (target, elementClassName) {
- return new RegExp('(\\s|^)' + elementClassName + '(\\s|$)').test(target.className);
- };
- // Toggle element class
- // Toggle element class
- /**
- * @private
- * @param {?} elem
- * @param {?} elementClassName
- * @return {?}
- */
- SidebarOffCanvasCloseDirective.prototype.toggleClass =
- // Toggle element class
- /**
- * @private
- * @param {?} elem
- * @param {?} elementClassName
- * @return {?}
- */
- function (elem, elementClassName) {
- /** @type {?} */
- var newClass = ' ' + elem.className.replace(/[\t\r\n]/g, ' ') + ' ';
- if (this.hasClass(elem, elementClassName)) {
- while (newClass.indexOf(' ' + elementClassName + ' ') >= 0) {
- newClass = newClass.replace(' ' + elementClassName + ' ', ' ');
- }
- elem.className = newClass.replace(/^\s+|\s+$/g, '');
- }
- else {
- elem.className += ' ' + elementClassName;
- }
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- SidebarOffCanvasCloseDirective.prototype.toggleOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- if (this.hasClass(document.querySelector('body'), 'sidebar-off-canvas')) {
- this.toggleClass(document.querySelector('body'), 'sidebar-opened');
- }
- };
- SidebarOffCanvasCloseDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appSidebarClose]'
- },] }
- ];
- /** @nocollapse */
- SidebarOffCanvasCloseDirective.ctorParameters = function () { return []; };
- SidebarOffCanvasCloseDirective.propDecorators = {
- toggleOpen: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return SidebarOffCanvasCloseDirective;
- }());
- var BrandMinimizeDirective = /** @class */ (function () {
- function BrandMinimizeDirective() {
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- BrandMinimizeDirective.prototype.toggleOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- document.querySelector('body').classList.toggle('brand-minimized');
- };
- BrandMinimizeDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appBrandMinimizer]'
- },] }
- ];
- /** @nocollapse */
- BrandMinimizeDirective.ctorParameters = function () { return []; };
- BrandMinimizeDirective.propDecorators = {
- toggleOpen: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return BrandMinimizeDirective;
- }());
- /**
- * Allows the aside to be toggled via click.
- */
- var AsideToggleDirective = /** @class */ (function () {
- function AsideToggleDirective() {
- }
- /**
- * @return {?}
- */
- AsideToggleDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- this.bp = this.breakpoint;
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- AsideToggleDirective.prototype.toggleOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- /** @type {?} */
- var cssClass;
- this.bp ? cssClass = "aside-menu-" + this.bp + "-show" : cssClass = asideMenuCssClasses[0];
- ToggleClasses(cssClass, asideMenuCssClasses);
- };
- AsideToggleDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appAsideMenuToggler]',
- },] }
- ];
- /** @nocollapse */
- AsideToggleDirective.ctorParameters = function () { return []; };
- AsideToggleDirective.propDecorators = {
- breakpoint: [{ type: core.Input, args: ['appAsideMenuToggler',] }],
- toggleOpen: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return AsideToggleDirective;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var LayoutModule = /** @class */ (function () {
- function LayoutModule() {
- }
- LayoutModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [
- common.CommonModule
- ],
- exports: [
- AsideToggleDirective,
- BrandMinimizeDirective,
- MobileSidebarToggleDirective,
- SidebarToggleDirective,
- SidebarMinimizeDirective,
- SidebarOffCanvasCloseDirective
- ],
- declarations: [
- AsideToggleDirective,
- BrandMinimizeDirective,
- MobileSidebarToggleDirective,
- SidebarToggleDirective,
- SidebarMinimizeDirective,
- SidebarOffCanvasCloseDirective
- ]
- },] }
- ];
- return LayoutModule;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /**
- * @param {?} el
- * @return {?}
- */
- function Replace(el) {
- /** @type {?} */
- var nativeElement = el.nativeElement;
- /** @type {?} */
- var parentElement = nativeElement.parentElement;
- // move all children out of the element
- while (nativeElement.firstChild) {
- parentElement.insertBefore(nativeElement.firstChild, nativeElement);
- }
- // remove the empty element(the host)
- parentElement.removeChild(nativeElement);
- }
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppAsideComponent = /** @class */ (function () {
- function AppAsideComponent(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppAsideComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- this.isFixed(this.fixed);
- this.isOffCanvas(this.offCanvas);
- this.displayBreakpoint(this.display);
- };
- /**
- * @return {?}
- */
- AppAsideComponent.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- document.body.classList.remove('aside-menu-fixed');
- };
- /**
- * @param {?} fixed
- * @return {?}
- */
- AppAsideComponent.prototype.isFixed = /**
- * @param {?} fixed
- * @return {?}
- */
- function (fixed) {
- if (this.fixed) {
- document.querySelector('body').classList.add('aside-menu-fixed');
- }
- };
- /**
- * @param {?} offCanvas
- * @return {?}
- */
- AppAsideComponent.prototype.isOffCanvas = /**
- * @param {?} offCanvas
- * @return {?}
- */
- function (offCanvas) {
- if (this.offCanvas) {
- document.querySelector('body').classList.add('aside-menu-off-canvas');
- }
- };
- /**
- * @param {?} display
- * @return {?}
- */
- AppAsideComponent.prototype.displayBreakpoint = /**
- * @param {?} display
- * @return {?}
- */
- function (display) {
- if (this.display !== false) {
- /** @type {?} */
- var cssClass = void 0;
- this.display ? cssClass = "aside-menu-" + this.display + "-show" : cssClass = asideMenuCssClasses[0];
- document.querySelector('body').classList.add(cssClass);
- }
- };
- AppAsideComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-aside',
- template: "\n \n "
- }] }
- ];
- /** @nocollapse */
- AppAsideComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- AppAsideComponent.propDecorators = {
- display: [{ type: core.Input }],
- fixed: [{ type: core.Input }],
- offCanvas: [{ type: core.Input }]
- };
- return AppAsideComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppAsideModule = /** @class */ (function () {
- function AppAsideModule() {
- }
- AppAsideModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [
- common.CommonModule,
- LayoutModule
- ],
- exports: [
- AppAsideComponent,
- LayoutModule
- ],
- declarations: [
- AppAsideComponent
- ]
- },] }
- ];
- return AppAsideModule;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppBreadcrumbService = /** @class */ (function () {
- function AppBreadcrumbService(router$$1, route) {
- var _this = this;
- this.router = router$$1;
- this.route = route;
- this._breadcrumbs = new index.BehaviorSubject(new Array());
- this.breadcrumbs = this._breadcrumbs.asObservable();
- this.router.events.pipe(operators.filter(function (event) { return event instanceof router.NavigationEnd; })).subscribe(function (event) {
- /** @type {?} */
- var breadcrumbs = [];
- /** @type {?} */
- var currentRoute = _this.route.root;
- /** @type {?} */
- var url = '';
- do {
- /** @type {?} */
- var childrenRoutes = currentRoute.children;
- currentRoute = null;
- // tslint:disable-next-line:no-shadowed-variable
- childrenRoutes.forEach(function (route) {
- if (route.outlet === 'primary') {
- /** @type {?} */
- var routeSnapshot = route.snapshot;
- url += '/' + routeSnapshot.url.map(function (segment) { return segment.path; }).join('/');
- breadcrumbs.push({
- label: route.snapshot.data,
- url: url
- });
- currentRoute = route;
- }
- });
- } while (currentRoute);
- _this._breadcrumbs.next(Object.assign([], breadcrumbs));
- return breadcrumbs;
- });
- }
- AppBreadcrumbService.decorators = [
- { type: core.Injectable }
- ];
- /** @nocollapse */
- AppBreadcrumbService.ctorParameters = function () {
- return [
- { type: router.Router },
- { type: router.ActivatedRoute }
- ];
- };
- return AppBreadcrumbService;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppBreadcrumbComponent = /** @class */ (function () {
- function AppBreadcrumbComponent(service, el) {
- this.service = service;
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppBreadcrumbComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- this.isFixed(this.fixed);
- this.breadcrumbs = this.service.breadcrumbs;
- };
- /**
- * @return {?}
- */
- AppBreadcrumbComponent.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- document.body.classList.remove('breadcrumb-fixed');
- };
- /**
- * @param {?} fixed
- * @return {?}
- */
- AppBreadcrumbComponent.prototype.isFixed = /**
- * @param {?} fixed
- * @return {?}
- */
- function (fixed) {
- if (this.fixed) {
- document.querySelector('body').classList.add('breadcrumb-fixed');
- }
- };
- AppBreadcrumbComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-breadcrumb',
- template: "\n \n \n {{breadcrumb.label.title}}\n {{breadcrumb.label.title}}\n \n \n "
- }] }
- ];
- /** @nocollapse */
- AppBreadcrumbComponent.ctorParameters = function () {
- return [
- { type: AppBreadcrumbService },
- { type: core.ElementRef }
- ];
- };
- AppBreadcrumbComponent.propDecorators = {
- fixed: [{ type: core.Input }]
- };
- return AppBreadcrumbComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- // @dynamic
- var AppBreadcrumbModule = /** @class */ (function () {
- function AppBreadcrumbModule() {
- }
- /**
- * @param {?=} config
- * @return {?}
- */
- AppBreadcrumbModule.forRoot = /**
- * @param {?=} config
- * @return {?}
- */
- function (config) {
- return {
- ngModule: AppBreadcrumbModule,
- providers: [
- AppBreadcrumbService
- ]
- };
- };
- AppBreadcrumbModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [common.CommonModule, router.RouterModule],
- exports: [AppBreadcrumbComponent],
- declarations: [AppBreadcrumbComponent]
- },] }
- ];
- return AppBreadcrumbModule;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppFooterComponent = /** @class */ (function () {
- function AppFooterComponent(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppFooterComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- this.isFixed(this.fixed);
- };
- /**
- * @return {?}
- */
- AppFooterComponent.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- document.body.classList.remove('footer-fixed');
- };
- /**
- * @param {?} fixed
- * @return {?}
- */
- AppFooterComponent.prototype.isFixed = /**
- * @param {?} fixed
- * @return {?}
- */
- function (fixed) {
- if (this.fixed) {
- document.querySelector('body').classList.add('footer-fixed');
- }
- };
- AppFooterComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-footer',
- template: "\n \n "
- }] }
- ];
- /** @nocollapse */
- AppFooterComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- AppFooterComponent.propDecorators = {
- fixed: [{ type: core.Input }]
- };
- return AppFooterComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppFooterModule = /** @class */ (function () {
- function AppFooterModule() {
- }
- AppFooterModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [common.CommonModule],
- exports: [AppFooterComponent],
- declarations: [AppFooterComponent]
- },] }
- ];
- return AppFooterModule;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppHeaderComponent = /** @class */ (function () {
- function AppHeaderComponent(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppHeaderComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- this.isFixed(this.fixed);
- };
- /**
- * @return {?}
- */
- AppHeaderComponent.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- document.body.classList.remove('header-fixed');
- };
- /**
- * @param {?} fixed
- * @return {?}
- */
- AppHeaderComponent.prototype.isFixed = /**
- * @param {?} fixed
- * @return {?}
- */
- function (fixed) {
- if (this.fixed) {
- document.querySelector('body').classList.add('header-fixed');
- }
- };
- /**
- * @param {?} brand
- * @return {?}
- */
- AppHeaderComponent.prototype.imgSrc = /**
- * @param {?} brand
- * @return {?}
- */
- function (brand) {
- return brand.src ? brand.src : '';
- };
- /**
- * @param {?} brand
- * @return {?}
- */
- AppHeaderComponent.prototype.imgWidth = /**
- * @param {?} brand
- * @return {?}
- */
- function (brand) {
- return brand.width ? brand.width : 'auto';
- };
- /**
- * @param {?} brand
- * @return {?}
- */
- AppHeaderComponent.prototype.imgHeight = /**
- * @param {?} brand
- * @return {?}
- */
- function (brand) {
- return brand.height ? brand.height : 'auto';
- };
- /**
- * @param {?} brand
- * @return {?}
- */
- AppHeaderComponent.prototype.imgAlt = /**
- * @param {?} brand
- * @return {?}
- */
- function (brand) {
- return brand.alt ? brand.alt : '';
- };
- /**
- * @param {?} breakpoint
- * @return {?}
- */
- AppHeaderComponent.prototype.breakpoint = /**
- * @param {?} breakpoint
- * @return {?}
- */
- function (breakpoint) {
- console.log(breakpoint);
- return breakpoint ? breakpoint : '';
- };
- AppHeaderComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-header',
- template: "\n \n "
- }] }
- ];
- /** @nocollapse */
- AppHeaderComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- AppHeaderComponent.propDecorators = {
- fixed: [{ type: core.Input }],
- navbarBrand: [{ type: core.Input }],
- navbarBrandFull: [{ type: core.Input }],
- navbarBrandMinimized: [{ type: core.Input }],
- sidebarToggler: [{ type: core.Input }],
- mobileSidebarToggler: [{ type: core.Input }],
- asideMenuToggler: [{ type: core.Input }],
- mobileAsideMenuToggler: [{ type: core.Input }]
- };
- return AppHeaderComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppHeaderModule = /** @class */ (function () {
- function AppHeaderModule() {
- }
- AppHeaderModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [
- common.CommonModule,
- LayoutModule
- ],
- exports: [
- AppHeaderComponent,
- LayoutModule
- ],
- declarations: [
- AppHeaderComponent
- ]
- },] }
- ];
- return AppHeaderModule;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppSidebarFooterComponent = /** @class */ (function () {
- function AppSidebarFooterComponent(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppSidebarFooterComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- };
- AppSidebarFooterComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-footer',
- template: "\n
"
- }] }
- ];
- /** @nocollapse */
- AppSidebarFooterComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- return AppSidebarFooterComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppSidebarFormComponent = /** @class */ (function () {
- function AppSidebarFormComponent(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppSidebarFormComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- };
- AppSidebarFormComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-form',
- template: "\n \n "
- }] }
- ];
- /** @nocollapse */
- AppSidebarFormComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- return AppSidebarFormComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppSidebarHeaderComponent = /** @class */ (function () {
- function AppSidebarHeaderComponent(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppSidebarHeaderComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- };
- AppSidebarHeaderComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-header',
- template: "\n \n "
- }] }
- ];
- /** @nocollapse */
- AppSidebarHeaderComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- return AppSidebarHeaderComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppSidebarMinimizerComponent = /** @class */ (function () {
- function AppSidebarMinimizerComponent(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppSidebarMinimizerComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- };
- AppSidebarMinimizerComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-minimizer',
- template: "\n \n "
- }] }
- ];
- /** @nocollapse */
- AppSidebarMinimizerComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- return AppSidebarMinimizerComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppSidebarComponent = /** @class */ (function () {
- function AppSidebarComponent() {
- }
- /**
- * @return {?}
- */
- AppSidebarComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- this.displayBreakpoint(this.display);
- this.isCompact(this.compact);
- this.isFixed(this.fixed);
- this.isMinimized(this.minimized);
- this.isOffCanvas(this.offCanvas);
- };
- /**
- * @return {?}
- */
- AppSidebarComponent.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- document.body.classList.remove('sidebar-fixed');
- };
- /**
- * @param {?} compact
- * @return {?}
- */
- AppSidebarComponent.prototype.isCompact = /**
- * @param {?} compact
- * @return {?}
- */
- function (compact) {
- if (this.compact) {
- document.querySelector('body').classList.add('sidebar-compact');
- }
- };
- /**
- * @param {?} fixed
- * @return {?}
- */
- AppSidebarComponent.prototype.isFixed = /**
- * @param {?} fixed
- * @return {?}
- */
- function (fixed) {
- if (this.fixed) {
- document.querySelector('body').classList.add('sidebar-fixed');
- }
- };
- /**
- * @param {?} minimized
- * @return {?}
- */
- AppSidebarComponent.prototype.isMinimized = /**
- * @param {?} minimized
- * @return {?}
- */
- function (minimized) {
- if (this.minimized) {
- document.querySelector('body').classList.add('sidebar-minimized');
- }
- };
- /**
- * @param {?} offCanvas
- * @return {?}
- */
- AppSidebarComponent.prototype.isOffCanvas = /**
- * @param {?} offCanvas
- * @return {?}
- */
- function (offCanvas) {
- if (this.offCanvas) {
- document.querySelector('body').classList.add('sidebar-off-canvas');
- }
- };
- /**
- * @param {?} fixed
- * @return {?}
- */
- AppSidebarComponent.prototype.fixedPosition = /**
- * @param {?} fixed
- * @return {?}
- */
- function (fixed) {
- console.warn('fixedPosition() is deprecated, use isFixed() instead');
- if (this.fixed) {
- document.querySelector('body').classList.add('sidebar-fixed');
- }
- };
- /**
- * @param {?} display
- * @return {?}
- */
- AppSidebarComponent.prototype.displayBreakpoint = /**
- * @param {?} display
- * @return {?}
- */
- function (display) {
- if (this.display !== false) {
- /** @type {?} */
- var cssClass = void 0;
- this.display ? cssClass = "sidebar-" + this.display + "-show" : cssClass = sidebarCssClasses[0];
- document.querySelector('body').classList.add(cssClass);
- }
- };
- AppSidebarComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar',
- template: ""
- }] }
- ];
- /** @nocollapse */
- AppSidebarComponent.ctorParameters = function () { return []; };
- AppSidebarComponent.propDecorators = {
- compact: [{ type: core.Input }],
- display: [{ type: core.Input }],
- fixed: [{ type: core.Input }],
- minimized: [{ type: core.Input }],
- offCanvas: [{ type: core.Input }],
- true: [{ type: core.HostBinding, args: ['class.sidebar',] }]
- };
- return AppSidebarComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var NavDropdownDirective = /** @class */ (function () {
- function NavDropdownDirective(el) {
- this.el = el;
- }
- /**
- * @return {?}
- */
- NavDropdownDirective.prototype.toggle = /**
- * @return {?}
- */
- function () {
- this.el.nativeElement.classList.toggle('open');
- };
- NavDropdownDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appNavDropdown]'
- },] }
- ];
- /** @nocollapse */
- NavDropdownDirective.ctorParameters = function () {
- return [
- { type: core.ElementRef }
- ];
- };
- return NavDropdownDirective;
- }());
- /**
- * Allows the dropdown to be toggled via click.
- */
- var NavDropdownToggleDirective = /** @class */ (function () {
- function NavDropdownToggleDirective(dropdown) {
- this.dropdown = dropdown;
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- NavDropdownToggleDirective.prototype.toggleOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- this.dropdown.toggle();
- };
- NavDropdownToggleDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appNavDropdownToggle]'
- },] }
- ];
- /** @nocollapse */
- NavDropdownToggleDirective.ctorParameters = function () {
- return [
- { type: NavDropdownDirective }
- ];
- };
- NavDropdownToggleDirective.propDecorators = {
- toggleOpen: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return NavDropdownToggleDirective;
- }());
- var LinkAttributesDirective = /** @class */ (function () {
- function LinkAttributesDirective(renderer, el) {
- this.renderer = renderer;
- this.el = el;
- }
- /**
- * @return {?}
- */
- LinkAttributesDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var attribs = this.appLinkAttributes;
- for (var attr in attribs) {
- if (attr === 'style' && typeof (attribs[attr]) === 'object') {
- this.setStyle(attribs[attr]);
- }
- else if (attr === 'class') {
- this.addClass(attribs[attr]);
- }
- else {
- this.setAttrib(attr, attribs[attr]);
- }
- }
- };
- /**
- * @private
- * @param {?} styles
- * @return {?}
- */
- LinkAttributesDirective.prototype.setStyle = /**
- * @private
- * @param {?} styles
- * @return {?}
- */
- function (styles) {
- for (var style in styles) {
- this.renderer.setStyle(this.el.nativeElement, style, styles[style]);
- }
- };
- /**
- * @private
- * @param {?} classes
- * @return {?}
- */
- LinkAttributesDirective.prototype.addClass = /**
- * @private
- * @param {?} classes
- * @return {?}
- */
- function (classes) {
- var _this = this;
- /** @type {?} */
- var classArray = Array.isArray(classes) ? classes : classes.split(' ');
- classArray.forEach(function (element) {
- _this.renderer.addClass(_this.el.nativeElement, element);
- });
- };
- /**
- * @private
- * @param {?} key
- * @param {?} value
- * @return {?}
- */
- LinkAttributesDirective.prototype.setAttrib = /**
- * @private
- * @param {?} key
- * @param {?} value
- * @return {?}
- */
- function (key, value) {
- /** @type {?} */
- var newAttr = document.createAttribute(key);
- newAttr.value = value;
- this.renderer.setAttribute(this.el.nativeElement, key, value);
- };
- LinkAttributesDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[appLinkAttributes]'
- },] }
- ];
- /** @nocollapse */
- LinkAttributesDirective.ctorParameters = function () {
- return [
- { type: core.Renderer2 },
- { type: core.ElementRef }
- ];
- };
- LinkAttributesDirective.propDecorators = {
- appLinkAttributes: [{ type: core.Input }]
- };
- return LinkAttributesDirective;
- }());
- var AppSidebarNavComponent = /** @class */ (function () {
- function AppSidebarNavComponent() {
- this.role = 'nav';
- }
- /**
- * @param {?} item
- * @return {?}
- */
- AppSidebarNavComponent.prototype.isDivider = /**
- * @param {?} item
- * @return {?}
- */
- function (item) {
- return item.divider ? true : false;
- };
- /**
- * @param {?} item
- * @return {?}
- */
- AppSidebarNavComponent.prototype.isTitle = /**
- * @param {?} item
- * @return {?}
- */
- function (item) {
- return item.title ? true : false;
- };
- AppSidebarNavComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-nav',
- template: "\n \n \n \n \n \n \n \n \n \n \n
"
- }] }
- ];
- /** @nocollapse */
- AppSidebarNavComponent.ctorParameters = function () { return []; };
- AppSidebarNavComponent.propDecorators = {
- navItems: [{ type: core.Input }],
- true: [{ type: core.HostBinding, args: ['class.sidebar-nav',] }],
- role: [{ type: core.HostBinding, args: ['attr.role',] }]
- };
- return AppSidebarNavComponent;
- }());
- var AppSidebarNavItemComponent = /** @class */ (function () {
- function AppSidebarNavItemComponent(router$$1, el) {
- this.router = router$$1;
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppSidebarNavItemComponent.prototype.hasClass = /**
- * @return {?}
- */
- function () {
- return this.item.class ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavItemComponent.prototype.isDropdown = /**
- * @return {?}
- */
- function () {
- return this.item.children ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavItemComponent.prototype.thisUrl = /**
- * @return {?}
- */
- function () {
- return this.item.url;
- };
- /**
- * @return {?}
- */
- AppSidebarNavItemComponent.prototype.isActive = /**
- * @return {?}
- */
- function () {
- return this.router.isActive(this.thisUrl(), false);
- };
- /**
- * @return {?}
- */
- AppSidebarNavItemComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- };
- AppSidebarNavItemComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-nav-item',
- template: "\n \n \n \n \n \n \n \n \n "
- }] }
- ];
- /** @nocollapse */
- AppSidebarNavItemComponent.ctorParameters = function () {
- return [
- { type: router.Router },
- { type: core.ElementRef }
- ];
- };
- AppSidebarNavItemComponent.propDecorators = {
- item: [{ type: core.Input }]
- };
- return AppSidebarNavItemComponent;
- }());
- var AppSidebarNavLinkComponent = /** @class */ (function () {
- function AppSidebarNavLinkComponent(router$$1, el) {
- this.router = router$$1;
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.getClasses = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var disabled = this.isDisabled();
- /** @type {?} */
- var classes = {
- 'nav-link': true,
- 'disabled': disabled,
- 'btn-link': disabled
- };
- if (this.hasVariant()) {
- /** @type {?} */
- var variant = "nav-link-" + this.link.variant;
- classes[variant] = true;
- }
- return classes;
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.getLinkType = /**
- * @return {?}
- */
- function () {
- return this.isDisabled() ? 'disabled' : this.isExternalLink() ? 'external' : '';
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.hasVariant = /**
- * @return {?}
- */
- function () {
- return this.link.variant ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.isBadge = /**
- * @return {?}
- */
- function () {
- return this.link.badge ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.isDisabled = /**
- * @return {?}
- */
- function () {
- return this.link.attributes && this.link.attributes.disabled ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.isExternalLink = /**
- * @return {?}
- */
- function () {
- return this.link.url.substring(0, 4) === 'http' ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.isIcon = /**
- * @return {?}
- */
- function () {
- return this.link.icon ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.hideMobile = /**
- * @return {?}
- */
- function () {
- if (document.body.classList.contains('sidebar-show')) {
- document.body.classList.toggle('sidebar-show');
- }
- };
- /**
- * @return {?}
- */
- AppSidebarNavLinkComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- };
- AppSidebarNavLinkComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-nav-link',
- template: "\n \n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n "
- }] }
- ];
- /** @nocollapse */
- AppSidebarNavLinkComponent.ctorParameters = function () {
- return [
- { type: router.Router },
- { type: core.ElementRef }
- ];
- };
- AppSidebarNavLinkComponent.propDecorators = {
- link: [{ type: core.Input }]
- };
- return AppSidebarNavLinkComponent;
- }());
- var AppSidebarNavDropdownComponent = /** @class */ (function () {
- function AppSidebarNavDropdownComponent(router$$1, el) {
- this.router = router$$1;
- this.el = el;
- }
- /**
- * @return {?}
- */
- AppSidebarNavDropdownComponent.prototype.isBadge = /**
- * @return {?}
- */
- function () {
- return this.link.badge ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavDropdownComponent.prototype.isIcon = /**
- * @return {?}
- */
- function () {
- return this.link.icon ? true : false;
- };
- /**
- * @return {?}
- */
- AppSidebarNavDropdownComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- Replace(this.el);
- };
- AppSidebarNavDropdownComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-nav-dropdown',
- template: "\n \n \n {{ link.name }}\n {{ link.badge.text }}\n \n \n ",
- styles: ['.nav-dropdown-toggle { cursor: pointer; }']
- }] }
- ];
- /** @nocollapse */
- AppSidebarNavDropdownComponent.ctorParameters = function () {
- return [
- { type: router.Router },
- { type: core.ElementRef }
- ];
- };
- AppSidebarNavDropdownComponent.propDecorators = {
- link: [{ type: core.Input }]
- };
- return AppSidebarNavDropdownComponent;
- }());
- var AppSidebarNavTitleComponent = /** @class */ (function () {
- function AppSidebarNavTitleComponent(el, renderer) {
- this.el = el;
- this.renderer = renderer;
- }
- /**
- * @return {?}
- */
- AppSidebarNavTitleComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var nativeElement = this.el.nativeElement;
- /** @type {?} */
- var li = this.renderer.createElement('li');
- /** @type {?} */
- var name = this.renderer.createText(this.title.name);
- this.renderer.addClass(li, 'nav-title');
- if (this.title.class) {
- /** @type {?} */
- var classes = this.title.class;
- this.renderer.addClass(li, classes);
- }
- if (this.title.wrapper) {
- /** @type {?} */
- var wrapper = this.renderer.createElement(this.title.wrapper.element);
- this.renderer.appendChild(wrapper, name);
- this.renderer.appendChild(li, wrapper);
- }
- else {
- this.renderer.appendChild(li, name);
- }
- this.renderer.appendChild(nativeElement, li);
- Replace(this.el);
- };
- AppSidebarNavTitleComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'app-sidebar-nav-title',
- template: ''
- }] }
- ];
- /** @nocollapse */
- AppSidebarNavTitleComponent.ctorParameters = function () {
- return [
- { type: core.ElementRef },
- { type: core.Renderer2 }
- ];
- };
- AppSidebarNavTitleComponent.propDecorators = {
- title: [{ type: core.Input }]
- };
- return AppSidebarNavTitleComponent;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AppSidebarModule = /** @class */ (function () {
- function AppSidebarModule() {
- }
- AppSidebarModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [
- common.CommonModule,
- router.RouterModule,
- LayoutModule
- ],
- exports: [
- AppSidebarFooterComponent,
- AppSidebarFormComponent,
- AppSidebarHeaderComponent,
- AppSidebarMinimizerComponent,
- AppSidebarComponent,
- AppSidebarNavComponent,
- AppSidebarNavDropdownComponent,
- AppSidebarNavItemComponent,
- AppSidebarNavLinkComponent,
- AppSidebarNavTitleComponent,
- NavDropdownDirective,
- NavDropdownToggleDirective,
- LinkAttributesDirective,
- LayoutModule
- ],
- declarations: [
- AppSidebarFooterComponent,
- AppSidebarFormComponent,
- AppSidebarHeaderComponent,
- AppSidebarMinimizerComponent,
- AppSidebarMinimizerComponent,
- AppSidebarComponent,
- AppSidebarNavComponent,
- AppSidebarNavDropdownComponent,
- AppSidebarNavItemComponent,
- AppSidebarNavLinkComponent,
- AppSidebarNavTitleComponent,
- NavDropdownDirective,
- NavDropdownToggleDirective,
- LinkAttributesDirective
- ]
- },] }
- ];
- return AppSidebarModule;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
-
- exports.AppAsideModule = AppAsideModule;
- exports.AppBreadcrumbModule = AppBreadcrumbModule;
- exports.AppFooterModule = AppFooterModule;
- exports.AppHeaderModule = AppHeaderModule;
- exports.AppSidebarModule = AppSidebarModule;
- exports.ɵh = AppAsideComponent;
- exports.ɵi = AppBreadcrumbComponent;
- exports.ɵj = AppBreadcrumbService;
- exports.ɵk = AppFooterComponent;
- exports.ɵl = AppHeaderComponent;
- exports.ɵg = AsideToggleDirective;
- exports.ɵf = BrandMinimizeDirective;
- exports.ɵd = MobileSidebarToggleDirective;
- exports.ɵc = SidebarMinimizeDirective;
- exports.ɵe = SidebarOffCanvasCloseDirective;
- exports.ɵb = SidebarToggleDirective;
- exports.ɵa = LayoutModule;
- exports.ɵm = AppSidebarFooterComponent;
- exports.ɵn = AppSidebarFormComponent;
- exports.ɵo = AppSidebarHeaderComponent;
- exports.ɵp = AppSidebarMinimizerComponent;
- exports.ɵu = AppSidebarNavComponent;
- exports.ɵx = AppSidebarNavDropdownComponent;
- exports.ɵv = AppSidebarNavItemComponent;
- exports.ɵw = AppSidebarNavLinkComponent;
- exports.ɵy = AppSidebarNavTitleComponent;
- exports.ɵt = LinkAttributesDirective;
- exports.ɵr = NavDropdownDirective;
- exports.ɵs = NavDropdownToggleDirective;
- exports.ɵq = AppSidebarComponent;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
-})));
-
-//# sourceMappingURL=coreui-angular.umd.js.map
\ No newline at end of file
diff --git a/dist/@coreui/angular/bundles/coreui-angular.umd.js.map b/dist/@coreui/angular/bundles/coreui-angular.umd.js.map
deleted file mode 100644
index a07fbad6..00000000
--- a/dist/@coreui/angular/bundles/coreui-angular.umd.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"coreui-angular.umd.js.map","sources":["ng://@coreui/angular/lib/shared/classes.ts","ng://@coreui/angular/lib/shared/toggle-classes.ts","ng://@coreui/angular/lib/shared/layout/layout.directive.ts","ng://@coreui/angular/lib/shared/layout/layout.module.ts","ng://@coreui/angular/lib/shared/replace.ts","ng://@coreui/angular/lib/aside/app-aside.component.ts","ng://@coreui/angular/lib/aside/app-aside.module.ts","ng://@coreui/angular/lib/breadcrumb/app-breadcrumb.service.ts","ng://@coreui/angular/lib/breadcrumb/app-breadcrumb.component.ts","ng://@coreui/angular/lib/breadcrumb/app-breadcrumb.module.ts","ng://@coreui/angular/lib/footer/app-footer.component.ts","ng://@coreui/angular/lib/footer/app-footer.module.ts","ng://@coreui/angular/lib/header/app-header.component.ts","ng://@coreui/angular/lib/header/app-header.module.ts","ng://@coreui/angular/lib/sidebar/app-sidebar-footer.component.ts","ng://@coreui/angular/lib/sidebar/app-sidebar-form.component.ts","ng://@coreui/angular/lib/sidebar/app-sidebar-header.component.ts","ng://@coreui/angular/lib/sidebar/app-sidebar-minimizer.component.ts","ng://@coreui/angular/lib/sidebar/app-sidebar.component.ts","ng://@coreui/angular/lib/sidebar/app-sidebar-nav.component.ts","ng://@coreui/angular/lib/sidebar/app-sidebar.module.ts"],"sourcesContent":["export const sidebarCssClasses: Array = [\r\n 'sidebar-show',\r\n 'sidebar-sm-show',\r\n 'sidebar-md-show',\r\n 'sidebar-lg-show',\r\n 'sidebar-xl-show'\r\n];\r\n\r\nexport const asideMenuCssClasses: Array = [\r\n 'aside-menu-show',\r\n 'aside-menu-sm-show',\r\n 'aside-menu-md-show',\r\n 'aside-menu-lg-show',\r\n 'aside-menu-xl-show'\r\n];\r\n","const RemoveClasses = (NewClassNames) => {\r\n const MatchClasses = NewClassNames.map((Class) => document.querySelector('body').classList.contains(Class));\r\n return MatchClasses.indexOf(true) !== -1;\r\n};\r\n\r\nexport const ToggleClasses = (Toggle, ClassNames) => {\r\n const Level = ClassNames.indexOf(Toggle);\r\n const NewClassNames = ClassNames.slice(0, Level + 1);\r\n\r\n if (RemoveClasses(NewClassNames)) {\r\n NewClassNames.map((Class) => document.querySelector('body').classList.remove(Class));\r\n } else {\r\n document.querySelector('body').classList.add(Toggle);\r\n }\r\n};\r\n","import { Directive, HostListener, Input, ElementRef, OnInit } from '@angular/core';\r\nimport { sidebarCssClasses, asideMenuCssClasses } from './../classes';\r\nimport { ToggleClasses } from './../toggle-classes';\r\n\r\n/**\r\n* Allows the sidebar to be toggled via click.\r\n*/\r\n@Directive({\r\n selector: '[appSidebarToggler]'\r\n})\r\nexport class SidebarToggleDirective implements OnInit {\r\n @Input('appSidebarToggler') breakpoint: string;\r\n public bp;\r\n constructor() {}\r\n ngOnInit(): void {\r\n this.bp = this.breakpoint;\r\n }\r\n @HostListener('click', ['$event'])\r\n toggleOpen($event: any) {\r\n $event.preventDefault();\r\n let cssClass;\r\n this.bp ? cssClass = `sidebar-${this.bp}-show` : cssClass = sidebarCssClasses[0];\r\n ToggleClasses(cssClass, sidebarCssClasses);\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[appSidebarMinimizer]'\r\n})\r\nexport class SidebarMinimizeDirective {\r\n constructor() { }\r\n\r\n @HostListener('click', ['$event'])\r\n toggleOpen($event: any) {\r\n $event.preventDefault();\r\n document.querySelector('body').classList.toggle('sidebar-minimized');\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[appMobileSidebarToggler]'\r\n})\r\nexport class MobileSidebarToggleDirective {\r\n constructor() { }\r\n\r\n // Check if element has class\r\n private hasClass(target: any, elementClassName: string) {\r\n return new RegExp('(\\\\s|^)' + elementClassName + '(\\\\s|$)').test(target.className);\r\n }\r\n\r\n @HostListener('click', ['$event'])\r\n toggleOpen($event: any) {\r\n $event.preventDefault();\r\n document.querySelector('body').classList.toggle('sidebar-show');\r\n }\r\n}\r\n\r\n/**\r\n* Allows the off-canvas sidebar to be closed via click.\r\n*/\r\n@Directive({\r\n selector: '[appSidebarClose]'\r\n})\r\nexport class SidebarOffCanvasCloseDirective {\r\n constructor() { }\r\n\r\n // Check if element has class\r\n private hasClass(target: any, elementClassName: string) {\r\n return new RegExp('(\\\\s|^)' + elementClassName + '(\\\\s|$)').test(target.className);\r\n }\r\n\r\n // Toggle element class\r\n private toggleClass(elem: any, elementClassName: string) {\r\n let newClass = ' ' + elem.className.replace( /[\\t\\r\\n]/g, ' ' ) + ' ';\r\n if (this.hasClass(elem, elementClassName)) {\r\n while (newClass.indexOf(' ' + elementClassName + ' ') >= 0 ) {\r\n newClass = newClass.replace( ' ' + elementClassName + ' ' , ' ' );\r\n }\r\n elem.className = newClass.replace(/^\\s+|\\s+$/g, '');\r\n } else {\r\n elem.className += ' ' + elementClassName;\r\n }\r\n }\r\n\r\n @HostListener('click', ['$event'])\r\n toggleOpen($event: any) {\r\n $event.preventDefault();\r\n\r\n if (this.hasClass(document.querySelector('body'), 'sidebar-off-canvas')) {\r\n this.toggleClass(document.querySelector('body'), 'sidebar-opened');\r\n }\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[appBrandMinimizer]'\r\n})\r\nexport class BrandMinimizeDirective {\r\n constructor() { }\r\n\r\n @HostListener('click', ['$event'])\r\n toggleOpen($event: any) {\r\n $event.preventDefault();\r\n document.querySelector('body').classList.toggle('brand-minimized');\r\n }\r\n}\r\n\r\n\r\n/**\r\n* Allows the aside to be toggled via click.\r\n*/\r\n@Directive({\r\n selector: '[appAsideMenuToggler]',\r\n})\r\nexport class AsideToggleDirective implements OnInit {\r\n @Input('appAsideMenuToggler') breakpoint: string;\r\n public bp;\r\n constructor() {}\r\n ngOnInit(): void {\r\n this.bp = this.breakpoint;\r\n }\r\n @HostListener('click', ['$event'])\r\n toggleOpen($event: any) {\r\n $event.preventDefault();\r\n let cssClass;\r\n this.bp ? cssClass = `aside-menu-${this.bp}-show` : cssClass = asideMenuCssClasses[0];\r\n ToggleClasses(cssClass, asideMenuCssClasses);\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule} from '@angular/core';\r\nimport {\r\n AsideToggleDirective,\r\n BrandMinimizeDirective,\r\n MobileSidebarToggleDirective,\r\n SidebarToggleDirective,\r\n SidebarMinimizeDirective,\r\n SidebarOffCanvasCloseDirective\r\n} from './layout.directive';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule\r\n ],\r\n exports: [\r\n AsideToggleDirective,\r\n BrandMinimizeDirective,\r\n MobileSidebarToggleDirective,\r\n SidebarToggleDirective,\r\n SidebarMinimizeDirective,\r\n SidebarOffCanvasCloseDirective\r\n ],\r\n declarations: [\r\n AsideToggleDirective,\r\n BrandMinimizeDirective,\r\n MobileSidebarToggleDirective,\r\n SidebarToggleDirective,\r\n SidebarMinimizeDirective,\r\n SidebarOffCanvasCloseDirective\r\n ]\r\n})\r\nexport class LayoutModule { }\r\n","export function Replace(el: any): any {\r\n const nativeElement: HTMLElement = el.nativeElement;\r\n const parentElement: HTMLElement = nativeElement.parentElement;\r\n // move all children out of the element\r\n while (nativeElement.firstChild) {\r\n parentElement.insertBefore(nativeElement.firstChild, nativeElement);\r\n }\r\n // remove the empty element(the host)\r\n parentElement.removeChild(nativeElement);\r\n}\r\n","import { Component, ElementRef, Input, OnInit, OnDestroy } from '@angular/core';\nimport { asideMenuCssClasses, Replace } from './../shared/index';\n\n@Component({\n selector: 'app-aside',\n template: `\n \n `\n})\nexport class AppAsideComponent implements OnInit, OnDestroy {\n @Input() display: any;\n @Input() fixed: boolean;\n @Input() offCanvas: boolean;\n\n constructor(private el: ElementRef) {}\n\n ngOnInit(): void {\n Replace(this.el);\n this.isFixed(this.fixed);\n this.isOffCanvas(this.offCanvas);\n this.displayBreakpoint(this.display);\n }\n\n ngOnDestroy(): void {\n document.body.classList.remove('aside-menu-fixed');\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","import { CommonModule} from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { LayoutModule } from './../shared/layout/layout.module';\r\n\r\nimport { AppAsideComponent } from './app-aside.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n LayoutModule\r\n ],\r\n exports: [\r\n AppAsideComponent,\r\n LayoutModule\r\n ],\r\n declarations: [\r\n AppAsideComponent\r\n ]\r\n})\r\nexport class AppAsideModule {}\r\n","import { Injectable, Injector } from '@angular/core';\r\nimport { Router, ActivatedRoute, NavigationEnd } from '@angular/router';\r\nimport { BehaviorSubject, Observable } from 'rxjs/index';\r\nimport { filter } from 'rxjs/operators';\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