@coreui/angular 2.11.3 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +4 -4
  2. package/bundles/coreui-angular.umd.js +993 -798
  3. package/bundles/coreui-angular.umd.js.map +1 -1
  4. package/coreui-angular.d.ts +1 -19
  5. package/esm2015/coreui-angular.js +1 -20
  6. package/esm2015/lib/aside/app-aside.component.js +24 -18
  7. package/esm2015/lib/aside/app-aside.module.js +24 -16
  8. package/esm2015/lib/breadcrumb/app-breadcrumb.component.js +37 -26
  9. package/esm2015/lib/breadcrumb/app-breadcrumb.module.js +13 -8
  10. package/esm2015/lib/breadcrumb/app-breadcrumb.service.js +10 -12
  11. package/esm2015/lib/breadcrumb/cui-breadcrumb.component.js +21 -18
  12. package/esm2015/lib/footer/app-footer.component.js +20 -16
  13. package/esm2015/lib/footer/app-footer.module.js +13 -8
  14. package/esm2015/lib/header/app-header.component.js +57 -33
  15. package/esm2015/lib/header/app-header.module.js +27 -17
  16. package/esm2015/lib/shared/index.js +2 -4
  17. package/esm2015/lib/shared/layout/layout.directive.js +106 -89
  18. package/esm2015/lib/shared/layout/layout.module.js +50 -29
  19. package/esm2015/lib/shared/public_api.js +5 -0
  20. package/esm2015/lib/shared/replace.js +2 -1
  21. package/esm2015/lib/shared/toggle-classes.js +11 -11
  22. package/esm2015/lib/sidebar/app-sidebar-footer.component.js +14 -11
  23. package/esm2015/lib/sidebar/app-sidebar-form.component.js +14 -11
  24. package/esm2015/lib/sidebar/app-sidebar-header.component.js +14 -11
  25. package/esm2015/lib/sidebar/app-sidebar-minimizer.component.js +23 -16
  26. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.js +10 -6
  27. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.js +13 -11
  28. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.js +10 -6
  29. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.js +11 -10
  30. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.js +118 -18
  31. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.js +25 -17
  32. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.js +46 -31
  33. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.js +10 -6
  34. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.js +15 -15
  35. package/esm2015/lib/sidebar/app-sidebar-nav.component.js +23 -16
  36. package/esm2015/lib/sidebar/app-sidebar-nav.directive.js +22 -21
  37. package/esm2015/lib/sidebar/app-sidebar-nav.js +1 -1
  38. package/esm2015/lib/sidebar/app-sidebar-nav.service.js +14 -10
  39. package/esm2015/lib/sidebar/app-sidebar.component.js +31 -23
  40. package/esm2015/lib/sidebar/app-sidebar.module.js +94 -56
  41. package/esm2015/lib/sidebar/app-sidebar.service.js +9 -8
  42. package/esm2015/lib/sidebar/public_api.js +11 -1
  43. package/fesm2015/coreui-angular.js +1021 -776
  44. package/fesm2015/coreui-angular.js.map +1 -1
  45. package/lib/aside/app-aside.component.d.ts +7 -4
  46. package/lib/aside/app-aside.module.d.ts +7 -0
  47. package/lib/breadcrumb/app-breadcrumb.component.d.ts +7 -3
  48. package/lib/breadcrumb/app-breadcrumb.module.d.ts +8 -0
  49. package/lib/breadcrumb/app-breadcrumb.service.d.ts +3 -0
  50. package/lib/breadcrumb/cui-breadcrumb.component.d.ts +7 -3
  51. package/lib/footer/app-footer.component.d.ts +5 -2
  52. package/lib/footer/app-footer.module.d.ts +6 -0
  53. package/lib/header/app-header.component.d.ts +8 -5
  54. package/lib/header/app-header.module.d.ts +8 -0
  55. package/lib/shared/index.d.ts +1 -3
  56. package/lib/shared/layout/layout.directive.d.ts +20 -5
  57. package/lib/shared/layout/layout.module.d.ts +6 -0
  58. package/lib/shared/public_api.d.ts +4 -0
  59. package/lib/shared/toggle-classes.d.ts +6 -3
  60. package/lib/sidebar/app-sidebar-footer.component.d.ts +3 -0
  61. package/lib/sidebar/app-sidebar-form.component.d.ts +3 -0
  62. package/lib/sidebar/app-sidebar-header.component.d.ts +3 -0
  63. package/lib/sidebar/app-sidebar-minimizer.component.d.ts +3 -0
  64. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.d.ts +3 -0
  65. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.d.ts +4 -1
  66. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.d.ts +3 -0
  67. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.d.ts +3 -0
  68. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.d.ts +10 -0
  69. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.d.ts +3 -0
  70. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.d.ts +7 -2
  71. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.d.ts +3 -0
  72. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.d.ts +3 -0
  73. package/lib/sidebar/app-sidebar-nav.component.d.ts +3 -0
  74. package/lib/sidebar/app-sidebar-nav.d.ts +2 -1
  75. package/lib/sidebar/app-sidebar-nav.directive.d.ts +5 -0
  76. package/lib/sidebar/app-sidebar-nav.service.d.ts +10 -5
  77. package/lib/sidebar/app-sidebar.component.d.ts +9 -6
  78. package/lib/sidebar/app-sidebar.module.d.ts +23 -0
  79. package/lib/sidebar/app-sidebar.service.d.ts +3 -0
  80. package/lib/sidebar/public_api.d.ts +3 -0
  81. package/package.json +6 -7
  82. package/bundles/coreui-angular.umd.min.js +0 -2
  83. package/bundles/coreui-angular.umd.min.js.map +0 -1
  84. package/coreui-angular.metadata.json +0 -1
  85. package/esm2015/lib/shared/layout/index.js +0 -2
  86. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-dropdown.component.js +0 -35
  87. package/lib/shared/layout/index.d.ts +0 -1
  88. package/lib/sidebar/app-sidebar-nav/app-sidebar-nav-dropdown.component.d.ts +0 -7
@@ -1,12 +1,15 @@
1
1
  import { OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class AppFooterComponent implements OnInit, OnDestroy {
3
4
  private document;
4
5
  private renderer;
5
- fixed: boolean;
6
+ fixed?: boolean;
6
7
  private readonly fixedClass;
7
8
  appFooterClass: boolean;
8
9
  constructor(document: any, renderer: Renderer2);
9
10
  ngOnInit(): void;
10
11
  ngOnDestroy(): void;
11
- isFixed(fixed?: boolean): void;
12
+ isFixed(fixed?: boolean | undefined): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppFooterComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppFooterComponent, "app-footer, cui-footer", never, { "fixed": "fixed"; }, {}, never, ["*"]>;
12
15
  }
@@ -1,2 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./app-footer.component";
3
+ import * as i2 from "@angular/common";
1
4
  export declare class AppFooterModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppFooterModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppFooterModule, [typeof i1.AppFooterComponent], [typeof i2.CommonModule], [typeof i1.AppFooterComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppFooterModule>;
2
8
  }
@@ -1,13 +1,14 @@
1
1
  import { OnInit, OnDestroy, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class AppHeaderComponent implements OnInit, OnDestroy {
3
4
  private document;
4
5
  private renderer;
5
- fixed: boolean;
6
+ fixed?: boolean;
6
7
  navbarBrand: any;
7
8
  navbarBrandFull: any;
8
9
  navbarBrandMinimized: any;
9
10
  navbarBrandText: any;
10
- navbarBrandHref: '';
11
+ navbarBrandHref: string;
11
12
  navbarBrandRouterLink: any[] | string;
12
13
  sidebarToggler: string | boolean;
13
14
  mobileSidebarToggler: boolean;
@@ -25,7 +26,9 @@ export declare class AppHeaderComponent implements OnInit, OnDestroy {
25
26
  constructor(document: any, renderer: Renderer2);
26
27
  ngOnInit(): void;
27
28
  ngOnDestroy(): void;
28
- isFixed(fixed?: boolean): void;
29
- setToggerBreakpointClass(breakpoint?: string): string;
30
- setToggerMobileBreakpointClass(breakpoint?: string): string;
29
+ isFixed(fixed?: boolean | undefined): void;
30
+ setTogglerBreakpointClass(breakpoint?: string): string;
31
+ setTogglerMobileBreakpointClass(breakpoint?: string): string;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppHeaderComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppHeaderComponent, "app-header, cui-header", never, { "fixed": "fixed"; "navbarBrand": "navbarBrand"; "navbarBrandFull": "navbarBrandFull"; "navbarBrandMinimized": "navbarBrandMinimized"; "navbarBrandText": "navbarBrandText"; "navbarBrandHref": "navbarBrandHref"; "navbarBrandRouterLink": "navbarBrandRouterLink"; "sidebarToggler": "sidebarToggler"; "mobileSidebarToggler": "mobileSidebarToggler"; "asideMenuToggler": "asideMenuToggler"; "mobileAsideMenuToggler": "mobileAsideMenuToggler"; }, {}, never, ["*"]>;
31
34
  }
@@ -1,2 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./app-header.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/router";
5
+ import * as i4 from "../shared/layout/layout.module";
1
6
  export declare class AppHeaderModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppHeaderModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppHeaderModule, [typeof i1.AppHeaderComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.LayoutModule], [typeof i1.AppHeaderComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppHeaderModule>;
2
10
  }
@@ -1,3 +1 @@
1
- export * from './classes';
2
- export * from './layout/index';
3
- export * from './replace';
1
+ export * from './public_api';
@@ -1,27 +1,34 @@
1
1
  import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
2
  import { ClassToggler } from '../toggle-classes';
3
+ import * as i0 from "@angular/core";
3
4
  /**
4
5
  * Allows the sidebar to be toggled via click.
5
6
  */
6
7
  export declare class SidebarToggleDirective implements OnInit {
7
8
  private classToggler;
8
- breakpoint: string;
9
- bp: any;
9
+ breakpoint: string | boolean;
10
+ bp: string | boolean;
10
11
  constructor(classToggler: ClassToggler);
11
12
  ngOnInit(): void;
12
13
  toggleOpen($event: any): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarToggleDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarToggleDirective, "[appSidebarToggler]", never, { "breakpoint": "appSidebarToggler"; }, {}, never>;
13
16
  }
14
17
  export declare class SidebarMinimizeDirective {
15
18
  private document;
16
19
  private renderer;
17
20
  constructor(document: any, renderer: Renderer2);
18
21
  toggleOpen($event: any): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMinimizeDirective, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMinimizeDirective, "[appSidebarMinimizer]", never, {}, {}, never>;
19
24
  }
20
25
  export declare class MobileSidebarToggleDirective {
21
26
  private document;
22
27
  private renderer;
23
28
  constructor(document: any, renderer: Renderer2);
24
29
  toggleOpen($event: any): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<MobileSidebarToggleDirective, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MobileSidebarToggleDirective, "[appMobileSidebarToggler]", never, {}, {}, never>;
25
32
  }
26
33
  /**
27
34
  * Allows the off-canvas sidebar to be closed via click.
@@ -31,28 +38,34 @@ export declare class SidebarOffCanvasCloseDirective {
31
38
  private renderer;
32
39
  constructor(document: any, renderer: Renderer2);
33
40
  toggleOpen($event: any): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarOffCanvasCloseDirective, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarOffCanvasCloseDirective, "[appSidebarClose]", never, {}, {}, never>;
34
43
  }
35
44
  export declare class BrandMinimizeDirective {
36
45
  private document;
37
46
  private renderer;
38
47
  constructor(document: any, renderer: Renderer2);
39
48
  toggleOpen($event: any): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<BrandMinimizeDirective, never>;
50
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BrandMinimizeDirective, "[appBrandMinimizer]", never, {}, {}, never>;
40
51
  }
41
52
  /**
42
53
  * Allows the aside to be toggled via click.
43
54
  */
44
55
  export declare class AsideToggleDirective implements OnInit {
45
56
  private classToggler;
46
- breakpoint: string;
47
- bp: any;
57
+ breakpoint: string | boolean;
58
+ bp: string | boolean;
48
59
  constructor(classToggler: ClassToggler);
49
60
  ngOnInit(): void;
50
61
  toggleOpen($event: any): void;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsideToggleDirective, never>;
63
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AsideToggleDirective, "[appAsideMenuToggler]", never, { "breakpoint": "appAsideMenuToggler"; }, {}, never>;
51
64
  }
52
65
  export declare class HtmlAttributesDirective implements OnInit {
53
66
  private renderer;
54
67
  private el;
55
- appHtmlAttr: {
68
+ appHtmlAttr?: {
56
69
  [key: string]: string;
57
70
  };
58
71
  constructor(renderer: Renderer2, el: ElementRef);
@@ -60,4 +73,6 @@ export declare class HtmlAttributesDirective implements OnInit {
60
73
  private setStyle;
61
74
  private addClass;
62
75
  private setAttrib;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<HtmlAttributesDirective, never>;
77
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HtmlAttributesDirective, "[appHtmlAttr]", never, { "appHtmlAttr": "appHtmlAttr"; }, {}, never>;
63
78
  }
@@ -1,2 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./layout.directive";
3
+ import * as i2 from "@angular/common";
1
4
  export declare class LayoutModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, [typeof i1.AsideToggleDirective, typeof i1.BrandMinimizeDirective, typeof i1.MobileSidebarToggleDirective, typeof i1.SidebarToggleDirective, typeof i1.SidebarMinimizeDirective, typeof i1.SidebarOffCanvasCloseDirective, typeof i1.HtmlAttributesDirective], [typeof i2.CommonModule], [typeof i1.AsideToggleDirective, typeof i1.BrandMinimizeDirective, typeof i1.MobileSidebarToggleDirective, typeof i1.SidebarToggleDirective, typeof i1.SidebarMinimizeDirective, typeof i1.SidebarOffCanvasCloseDirective, typeof i1.HtmlAttributesDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
2
8
  }
@@ -0,0 +1,4 @@
1
+ export { AsideToggleDirective, BrandMinimizeDirective, MobileSidebarToggleDirective, SidebarMinimizeDirective, SidebarToggleDirective, SidebarOffCanvasCloseDirective, HtmlAttributesDirective } from './layout/layout.directive';
2
+ export { LayoutModule } from './layout/layout.module';
3
+ export * from './classes';
4
+ export * from './replace';
@@ -1,9 +1,12 @@
1
1
  import { Renderer2 } from '@angular/core';
2
- export declare const ToggleClasses: (Toggle: any, ClassNames: any) => void;
2
+ import * as i0 from "@angular/core";
3
+ export declare const ToggleClasses: (Toggle: string, ClassNames: string[]) => void;
3
4
  export declare class ClassToggler {
4
5
  private document;
5
6
  private renderer;
6
7
  constructor(document: any, renderer: Renderer2);
7
- removeClasses(NewClassNames: any): boolean;
8
- toggleClasses(Toggle: any, ClassNames: any): void;
8
+ removeClasses(NewClassNames: string[]): boolean;
9
+ toggleClasses(Toggle: string, ClassNames: string[]): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClassToggler, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<ClassToggler>;
9
12
  }
@@ -1,4 +1,7 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class AppSidebarFooterComponent {
2
3
  sidebarFooterClass: boolean;
3
4
  constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarFooterComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarFooterComponent, "app-sidebar-footer, cui-sidebar-footer", never, {}, {}, never, ["*"]>;
4
7
  }
@@ -1,4 +1,7 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class AppSidebarFormComponent {
2
3
  sidebarFormClass: boolean;
3
4
  constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarFormComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarFormComponent, "app-sidebar-form, cui-sidebar-form", never, {}, {}, never, ["*"]>;
4
7
  }
@@ -1,4 +1,7 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class AppSidebarHeaderComponent {
2
3
  sidebarHeaderClass: boolean;
3
4
  constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarHeaderComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarHeaderComponent, "app-sidebar-header, cui-sidebar-header", never, {}, {}, never, ["*"]>;
4
7
  }
@@ -1,8 +1,11 @@
1
1
  import { AppSidebarService } from './app-sidebar.service';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class AppSidebarMinimizerComponent {
3
4
  private sidebarService;
4
5
  role: string;
5
6
  sidebarMinimizerClass: boolean;
6
7
  toggleOpen($event: any): void;
7
8
  constructor(sidebarService: AppSidebarService);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarMinimizerComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarMinimizerComponent, "app-sidebar-minimizer, cui-sidebar-minimizer", never, { "role": "role"; }, {}, never, never>;
8
11
  }
@@ -1,4 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class AppSidebarNavBadgePipe implements PipeTransform {
3
4
  transform(item: any, args?: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavBadgePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<AppSidebarNavBadgePipe, "appSidebarNavBadge">;
4
7
  }
@@ -1,7 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { INavData } from '../app-sidebar-nav';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class AppSidebarNavDividerComponent implements OnInit {
4
- item: INavData;
5
+ item?: INavData;
5
6
  constructor();
6
7
  ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavDividerComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavDividerComponent, "app-sidebar-nav-divider, cui-sidebar-nav-divider", never, { "item": "item"; }, {}, never, never>;
7
10
  }
@@ -1,4 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class AppSidebarNavIconPipe implements PipeTransform {
3
4
  transform(item: any, args?: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavIconPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<AppSidebarNavIconPipe, "appSidebarNavIcon">;
4
7
  }
@@ -1,7 +1,10 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { SidebarNavHelper } from '../app-sidebar-nav.service';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class AppSidebarNavItemClassPipe implements PipeTransform {
4
5
  helper: SidebarNavHelper;
5
6
  constructor(helper: SidebarNavHelper);
6
7
  transform(item: any, ...args: any[]): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavItemClassPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<AppSidebarNavItemClassPipe, "appSidebarNavItemClass">;
7
10
  }
@@ -2,6 +2,7 @@ import { Renderer2 } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { SidebarNavHelper } from '../app-sidebar-nav.service';
4
4
  import { INavData } from '../app-sidebar-nav';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class AppSidebarNavItemsComponent {
6
7
  private document;
7
8
  private renderer;
@@ -12,4 +13,13 @@ export declare class AppSidebarNavItemsComponent {
12
13
  get items(): INavData[];
13
14
  constructor(document: any, renderer: Renderer2, router: Router, helper: SidebarNavHelper);
14
15
  hideMobile(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavItemsComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavItemsComponent, "app-sidebar-nav-items, cui-sidebar-nav-items", never, { "items": "items"; }, {}, never, never>;
18
+ }
19
+ export declare class AppSidebarNavDropdownComponent {
20
+ helper: SidebarNavHelper;
21
+ item: INavData;
22
+ constructor(helper: SidebarNavHelper);
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavDropdownComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavDropdownComponent, "app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown", never, { "item": "item"; }, {}, never, never>;
15
25
  }
@@ -1,6 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { SidebarNavHelper } from '../app-sidebar-nav.service';
3
3
  import { INavData } from '../app-sidebar-nav';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class AppSidebarNavLabelComponent implements OnInit {
5
6
  helper: SidebarNavHelper;
6
7
  item: INavData;
@@ -13,4 +14,6 @@ export declare class AppSidebarNavLabelComponent implements OnInit {
13
14
  active: boolean;
14
15
  };
15
16
  getLabelIconClass(): {};
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavLabelComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavLabelComponent, "app-sidebar-nav-label, cui-sidebar-nav-label", never, { "item": "item"; }, {}, never, never>;
16
19
  }
@@ -2,12 +2,15 @@ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { SidebarNavHelper } from '../app-sidebar-nav.service';
4
4
  import { INavData } from '../app-sidebar-nav';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class AppSidebarNavLinkContentComponent implements OnInit, OnDestroy {
6
7
  helper: SidebarNavHelper;
7
8
  item: INavData;
8
9
  constructor(helper: SidebarNavHelper);
9
10
  ngOnInit(): void;
10
11
  ngOnDestroy(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavLinkContentComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavLinkContentComponent, "app-sidebar-nav-link-content, cui-sidebar-nav-link-content", never, { "item": "item"; }, {}, never, never>;
11
14
  }
12
15
  export declare class AppSidebarNavLinkComponent implements OnInit, OnDestroy {
13
16
  router: Router;
@@ -24,8 +27,10 @@ export declare class AppSidebarNavLinkComponent implements OnInit, OnDestroy {
24
27
  constructor(router: Router);
25
28
  ngOnInit(): void;
26
29
  ngOnDestroy(): void;
27
- getLinkType(): "disabled" | "link" | "external";
28
- isDisabled(): boolean;
30
+ getLinkType(): "link" | "disabled" | "external";
31
+ isDisabled(): true | null;
29
32
  isExternalLink(): boolean;
30
33
  linkClicked(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavLinkComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavLinkComponent, "app-sidebar-nav-link, cui-sidebar-nav-link", never, { "item": "item"; }, { "linkClick": "linkClick"; }, never, never>;
31
36
  }
@@ -1,4 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class AppSidebarNavLinkPipe implements PipeTransform {
3
4
  transform(item: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavLinkPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<AppSidebarNavLinkPipe, "appSidebarNavLink">;
4
7
  }
@@ -1,5 +1,6 @@
1
1
  import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
2
  import { INavData } from '../app-sidebar-nav';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class AppSidebarNavTitleComponent implements OnInit {
4
5
  private el;
5
6
  private renderer;
@@ -10,4 +11,6 @@ export declare class AppSidebarNavTitleComponent implements OnInit {
10
11
  private setStyle;
11
12
  private addClass;
12
13
  private setAttrib;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavTitleComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavTitleComponent, "app-sidebar-nav-title, cui-sidebar-nav-title", never, { "item": "item"; }, {}, never, never>;
13
16
  }
@@ -1,6 +1,7 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { INavData } from './app-sidebar-nav';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class AppSidebarNavComponent implements OnChanges {
5
6
  router: Router;
6
7
  navItems: INavData[];
@@ -9,4 +10,6 @@ export declare class AppSidebarNavComponent implements OnChanges {
9
10
  navItemsArray: INavData[];
10
11
  constructor(router: Router);
11
12
  ngOnChanges(changes: SimpleChanges): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarNavComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarNavComponent, "app-sidebar-nav, cui-sidebar-nav", never, { "navItems": "navItems"; "role": "role"; }, {}, never, never>;
12
15
  }
@@ -1,3 +1,4 @@
1
+ import { IsActiveMatchOptions } from '@angular/router';
1
2
  export interface INavAttributes {
2
3
  [propName: string]: any;
3
4
  }
@@ -28,7 +29,7 @@ export interface INavLinkProps {
28
29
  };
29
30
  routerLinkActiveOptions?: {
30
31
  exact: boolean;
31
- };
32
+ } | IsActiveMatchOptions;
32
33
  routerLinkActive?: string | string[];
33
34
  }
34
35
  export interface INavData {
@@ -1,8 +1,11 @@
1
1
  import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class NavDropdownDirective {
3
4
  private el;
4
5
  constructor(el: ElementRef);
5
6
  toggle(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavDropdownDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NavDropdownDirective, "[appNavDropdown]", never, {}, {}, never>;
6
9
  }
7
10
  /**
8
11
  * Allows the dropdown to be toggled via click.
@@ -11,4 +14,6 @@ export declare class NavDropdownToggleDirective {
11
14
  private dropdown;
12
15
  constructor(dropdown: NavDropdownDirective);
13
16
  toggleOpen($event: any): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavDropdownToggleDirective, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NavDropdownToggleDirective, "[appNavDropdownToggle]", never, {}, {}, never>;
14
19
  }
@@ -1,16 +1,21 @@
1
1
  import { INavData } from './app-sidebar-nav';
2
+ import * as i0 from "@angular/core";
2
3
  export declare abstract class SidebarNavService {
3
4
  /**
4
5
  * Returns a sidebar-nav items config NavData
5
6
  */
6
7
  abstract getSidebarNavItemsConfig(): INavData[];
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarNavService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<SidebarNavService>;
7
10
  }
8
11
  export declare class SidebarNavHelper {
9
- itemType(item: any): "label" | "link" | "title" | "divider" | "dropdown" | "empty";
10
- isActive(router: any, item: any): any;
11
- hasBadge: (item: any) => boolean;
12
- hasIcon: (item: any) => boolean;
13
- getIconClass(item: any): {
12
+ itemType(item: INavData): "link" | "label" | "title" | "divider" | "dropdown" | "empty";
13
+ isActive(router: any, item: INavData): any;
14
+ hasBadge: (item: INavData) => boolean;
15
+ hasIcon: (item: INavData) => boolean;
16
+ getIconClass(item: INavData): {
14
17
  'nav-icon': boolean;
15
18
  };
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarNavHelper, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<SidebarNavHelper>;
16
21
  }
@@ -1,15 +1,16 @@
1
1
  import { EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
2
  import { AppSidebarService } from './app-sidebar.service';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class AppSidebarComponent implements OnInit, OnDestroy {
4
5
  private document;
5
6
  private renderer;
6
7
  private sidebarService;
7
8
  private subscriptionEvents;
8
9
  private _minimized;
9
- compact: boolean;
10
+ compact?: boolean;
10
11
  display: any;
11
- fixed: boolean;
12
- offCanvas: boolean;
12
+ fixed?: boolean;
13
+ offCanvas?: boolean;
13
14
  get minimized(): boolean;
14
15
  set minimized(value: boolean);
15
16
  /**
@@ -21,10 +22,12 @@ export declare class AppSidebarComponent implements OnInit, OnDestroy {
21
22
  constructor(document: any, renderer: Renderer2, sidebarService: AppSidebarService);
22
23
  ngOnInit(): void;
23
24
  ngOnDestroy(): void;
24
- isCompact(compact?: boolean): void;
25
- isFixed(fixed?: boolean): void;
25
+ isCompact(compact?: boolean | undefined): void;
26
+ isFixed(fixed?: boolean | undefined): void;
26
27
  toggleMinimized(): void;
27
- isOffCanvas(offCanvas?: boolean): void;
28
+ isOffCanvas(offCanvas?: boolean | undefined): void;
28
29
  displayBreakpoint(display?: any): void;
29
30
  private _updateMinimized;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarComponent, "app-sidebar, cui-sidebar", never, { "compact": "compact"; "display": "display"; "fixed": "fixed"; "offCanvas": "offCanvas"; "minimized": "minimized"; }, { "minimizedChange": "minimizedChange"; }, never, ["*"]>;
30
33
  }
@@ -1,2 +1,25 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./app-sidebar-footer.component";
3
+ import * as i2 from "./app-sidebar-form.component";
4
+ import * as i3 from "./app-sidebar-header.component";
5
+ import * as i4 from "./app-sidebar-minimizer.component";
6
+ import * as i5 from "./app-sidebar.component";
7
+ import * as i6 from "./app-sidebar-nav/app-sidebar-nav-items.component";
8
+ import * as i7 from "./app-sidebar-nav.component";
9
+ import * as i8 from "./app-sidebar-nav/app-sidebar-nav-divider.component";
10
+ import * as i9 from "./app-sidebar-nav/app-sidebar-nav-link.component";
11
+ import * as i10 from "./app-sidebar-nav/app-sidebar-nav-title.component";
12
+ import * as i11 from "./app-sidebar-nav.directive";
13
+ import * as i12 from "./app-sidebar-nav/app-sidebar-nav-label.component";
14
+ import * as i13 from "./app-sidebar-nav/app-sidebar-nav-icon.pipe";
15
+ import * as i14 from "./app-sidebar-nav/app-sidebar-nav-badge.pipe";
16
+ import * as i15 from "./app-sidebar-nav/app-sidebar-nav-link.pipe";
17
+ import * as i16 from "./app-sidebar-nav/app-sidebar-nav-item-class.pipe";
18
+ import * as i17 from "@angular/common";
19
+ import * as i18 from "@angular/router";
20
+ import * as i19 from "../shared/layout/layout.module";
1
21
  export declare class AppSidebarModule {
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarModule, never>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppSidebarModule, [typeof i1.AppSidebarFooterComponent, typeof i2.AppSidebarFormComponent, typeof i3.AppSidebarHeaderComponent, typeof i4.AppSidebarMinimizerComponent, typeof i4.AppSidebarMinimizerComponent, typeof i5.AppSidebarComponent, typeof i6.AppSidebarNavItemsComponent, typeof i7.AppSidebarNavComponent, typeof i8.AppSidebarNavDividerComponent, typeof i6.AppSidebarNavDropdownComponent, typeof i9.AppSidebarNavLinkComponent, typeof i9.AppSidebarNavLinkContentComponent, typeof i10.AppSidebarNavTitleComponent, typeof i11.NavDropdownDirective, typeof i11.NavDropdownToggleDirective, typeof i12.AppSidebarNavLabelComponent, typeof i13.AppSidebarNavIconPipe, typeof i14.AppSidebarNavBadgePipe, typeof i15.AppSidebarNavLinkPipe, typeof i16.AppSidebarNavItemClassPipe], [typeof i17.CommonModule, typeof i18.RouterModule, typeof i19.LayoutModule], [typeof i1.AppSidebarFooterComponent, typeof i2.AppSidebarFormComponent, typeof i3.AppSidebarHeaderComponent, typeof i4.AppSidebarMinimizerComponent, typeof i5.AppSidebarComponent, typeof i7.AppSidebarNavComponent]>;
24
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppSidebarModule>;
2
25
  }
@@ -1,3 +1,4 @@
1
+ import * as i0 from "@angular/core";
1
2
  export interface ISidebarAction {
2
3
  minimize?: boolean | 'toggle';
3
4
  }
@@ -6,4 +7,6 @@ export declare class AppSidebarService {
6
7
  events$: import("rxjs").Observable<ISidebarAction>;
7
8
  constructor();
8
9
  toggle(action: ISidebarAction): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppSidebarService>;
9
12
  }
@@ -4,3 +4,6 @@ export { AppSidebarNavComponent } from './app-sidebar-nav.component';
4
4
  export { AppSidebarMinimizerComponent } from './app-sidebar-minimizer.component';
5
5
  export { SidebarNavHelper } from './app-sidebar-nav.service';
6
6
  export { AppSidebarModule } from './app-sidebar.module';
7
+ export { AppSidebarFooterComponent } from './app-sidebar-footer.component';
8
+ export { AppSidebarFormComponent } from './app-sidebar-form.component';
9
+ export { AppSidebarHeaderComponent } from './app-sidebar-header.component';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coreui/angular",
3
- "version": "2.11.3",
4
- "description": "CoreUI Angular 11 Bootstrap 4 components",
3
+ "version": "2.12.0",
4
+ "description": "CoreUI Angular 12 Bootstrap 4 components",
5
5
  "license": "MIT",
6
6
  "homepage": "https://coreui.io/angular",
7
7
  "author": {
@@ -17,12 +17,12 @@
17
17
  }
18
18
  ],
19
19
  "dependencies": {
20
- "tslib": "^2.0.0"
20
+ "tslib": "^2.3.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@angular/common": "^11.0.0",
24
- "@angular/core": "^11.0.0",
25
- "@angular/router": "^11.0.0"
23
+ "@angular/common": "^12.0.0",
24
+ "@angular/core": "^12.0.0",
25
+ "@angular/router": "^12.0.0"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
@@ -37,6 +37,5 @@
37
37
  "esm2015": "esm2015/coreui-angular.js",
38
38
  "fesm2015": "fesm2015/coreui-angular.js",
39
39
  "typings": "coreui-angular.d.ts",
40
- "metadata": "coreui-angular.metadata.json",
41
40
  "sideEffects": false
42
41
  }