@coreui/angular 2.12.0 → 2.13.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 (63) hide show
  1. package/README.md +4 -4
  2. package/{esm2015/coreui-angular.js → esm2020/coreui-angular.mjs} +0 -0
  3. package/{esm2015/lib/aside/app-aside.component.js → esm2020/lib/aside/app-aside.component.mjs} +4 -4
  4. package/{esm2015/lib/aside/app-aside.module.js → esm2020/lib/aside/app-aside.module.mjs} +5 -5
  5. package/{esm2015/lib/aside/index.js → esm2020/lib/aside/index.mjs} +0 -0
  6. package/{esm2015/lib/aside/public_api.js → esm2020/lib/aside/public_api.mjs} +0 -0
  7. package/{esm2015/lib/breadcrumb/app-breadcrumb.component.js → esm2020/lib/breadcrumb/app-breadcrumb.component.mjs} +5 -5
  8. package/{esm2015/lib/breadcrumb/app-breadcrumb.module.js → esm2020/lib/breadcrumb/app-breadcrumb.module.mjs} +5 -5
  9. package/{esm2015/lib/breadcrumb/app-breadcrumb.service.js → esm2020/lib/breadcrumb/app-breadcrumb.service.mjs} +4 -4
  10. package/esm2020/lib/breadcrumb/cui-breadcrumb.component.mjs +38 -0
  11. package/{esm2015/lib/breadcrumb/index.js → esm2020/lib/breadcrumb/index.mjs} +0 -0
  12. package/{esm2015/lib/breadcrumb/public_api.js → esm2020/lib/breadcrumb/public_api.mjs} +0 -0
  13. package/{esm2015/lib/footer/app-footer.component.js → esm2020/lib/footer/app-footer.component.mjs} +4 -4
  14. package/{esm2015/lib/footer/app-footer.module.js → esm2020/lib/footer/app-footer.module.mjs} +5 -5
  15. package/{esm2015/lib/footer/index.js → esm2020/lib/footer/index.mjs} +0 -0
  16. package/{esm2015/lib/footer/public_api.js → esm2020/lib/footer/public_api.mjs} +0 -0
  17. package/esm2020/lib/header/app-header.component.mjs +97 -0
  18. package/{esm2015/lib/header/app-header.module.js → esm2020/lib/header/app-header.module.mjs} +5 -5
  19. package/{esm2015/lib/header/index.js → esm2020/lib/header/index.mjs} +0 -0
  20. package/{esm2015/lib/header/public_api.js → esm2020/lib/header/public_api.mjs} +0 -0
  21. package/{esm2015/lib/shared/classes.js → esm2020/lib/shared/classes.mjs} +0 -0
  22. package/{esm2015/lib/shared/index.js → esm2020/lib/shared/index.mjs} +0 -0
  23. package/{esm2015/lib/shared/layout/layout.directive.js → esm2020/lib/shared/layout/layout.directive.mjs} +22 -22
  24. package/{esm2015/lib/shared/layout/layout.module.js → esm2020/lib/shared/layout/layout.module.mjs} +5 -5
  25. package/{esm2015/lib/shared/public_api.js → esm2020/lib/shared/public_api.mjs} +0 -0
  26. package/{esm2015/lib/shared/replace.js → esm2020/lib/shared/replace.mjs} +0 -0
  27. package/{esm2015/lib/shared/toggle-classes.js → esm2020/lib/shared/toggle-classes.mjs} +4 -4
  28. package/{esm2015/lib/sidebar/app-sidebar-footer.component.js → esm2020/lib/sidebar/app-sidebar-footer.component.mjs} +4 -4
  29. package/{esm2015/lib/sidebar/app-sidebar-form.component.js → esm2020/lib/sidebar/app-sidebar-form.component.mjs} +4 -4
  30. package/{esm2015/lib/sidebar/app-sidebar-header.component.js → esm2020/lib/sidebar/app-sidebar-header.component.mjs} +4 -4
  31. package/{esm2015/lib/sidebar/app-sidebar-minimizer.component.js → esm2020/lib/sidebar/app-sidebar-minimizer.component.mjs} +4 -4
  32. package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.mjs} +4 -4
  33. package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.mjs} +4 -4
  34. package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.mjs} +4 -4
  35. package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.mjs} +4 -4
  36. package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.mjs} +9 -9
  37. package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.mjs +44 -0
  38. package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.mjs +97 -0
  39. package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.mjs} +4 -4
  40. package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.mjs} +4 -4
  41. package/esm2020/lib/sidebar/app-sidebar-nav.component.mjs +33 -0
  42. package/{esm2015/lib/sidebar/app-sidebar-nav.directive.js → esm2020/lib/sidebar/app-sidebar-nav.directive.mjs} +7 -7
  43. package/{esm2015/lib/sidebar/app-sidebar-nav.js → esm2020/lib/sidebar/app-sidebar-nav.mjs} +0 -0
  44. package/{esm2015/lib/sidebar/app-sidebar-nav.service.js → esm2020/lib/sidebar/app-sidebar-nav.service.mjs} +7 -7
  45. package/{esm2015/lib/sidebar/app-sidebar.component.js → esm2020/lib/sidebar/app-sidebar.component.mjs} +4 -4
  46. package/{esm2015/lib/sidebar/app-sidebar.module.js → esm2020/lib/sidebar/app-sidebar.module.mjs} +5 -5
  47. package/{esm2015/lib/sidebar/app-sidebar.service.js → esm2020/lib/sidebar/app-sidebar.service.mjs} +4 -4
  48. package/{esm2015/lib/sidebar/index.js → esm2020/lib/sidebar/index.mjs} +0 -0
  49. package/{esm2015/lib/sidebar/public_api.js → esm2020/lib/sidebar/public_api.mjs} +0 -0
  50. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  51. package/fesm2015/coreui-angular.mjs +1680 -0
  52. package/fesm2015/coreui-angular.mjs.map +1 -0
  53. package/{fesm2015/coreui-angular.js → fesm2020/coreui-angular.mjs} +144 -162
  54. package/fesm2020/coreui-angular.mjs.map +1 -0
  55. package/package.json +23 -10
  56. package/bundles/coreui-angular.umd.js +0 -2015
  57. package/bundles/coreui-angular.umd.js.map +0 -1
  58. package/esm2015/lib/breadcrumb/cui-breadcrumb.component.js +0 -42
  59. package/esm2015/lib/header/app-header.component.js +0 -100
  60. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.js +0 -48
  61. package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.js +0 -101
  62. package/esm2015/lib/sidebar/app-sidebar-nav.component.js +0 -36
  63. package/fesm2015/coreui-angular.js.map +0 -1
@@ -0,0 +1,1680 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Inject, Directive, Input, HostListener, NgModule, Component, HostBinding, EventEmitter, Output, Pipe } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { DOCUMENT, CommonModule } from '@angular/common';
5
+ import * as i1 from '@angular/router';
6
+ import { NavigationEnd, RouterModule } from '@angular/router';
7
+ import { BehaviorSubject } from 'rxjs';
8
+ import { filter } from 'rxjs/operators';
9
+
10
+ const sidebarCssClasses = [
11
+ 'sidebar-show',
12
+ 'sidebar-sm-show',
13
+ 'sidebar-md-show',
14
+ 'sidebar-lg-show',
15
+ 'sidebar-xl-show'
16
+ ];
17
+ const asideMenuCssClasses = [
18
+ 'aside-menu-show',
19
+ 'aside-menu-sm-show',
20
+ 'aside-menu-md-show',
21
+ 'aside-menu-lg-show',
22
+ 'aside-menu-xl-show'
23
+ ];
24
+
25
+ const RemoveClasses = (NewClassNames) => {
26
+ const MatchClasses = NewClassNames.map((Class) => document.body.classList.contains(Class));
27
+ return MatchClasses.indexOf(true) !== -1;
28
+ };
29
+ const ToggleClasses = (Toggle, ClassNames) => {
30
+ const Level = ClassNames.indexOf(Toggle);
31
+ const NewClassNames = ClassNames.slice(0, Level + 1);
32
+ if (RemoveClasses(NewClassNames)) {
33
+ NewClassNames.map((Class) => document.body.classList.remove(Class));
34
+ }
35
+ else {
36
+ document.body.classList.add(Toggle);
37
+ }
38
+ };
39
+ class ClassToggler {
40
+ constructor(document, renderer) {
41
+ this.document = document;
42
+ this.renderer = renderer;
43
+ }
44
+ removeClasses(NewClassNames) {
45
+ const MatchClasses = NewClassNames.map((Class) => this.document.body.classList.contains(Class));
46
+ return MatchClasses.indexOf(true) !== -1;
47
+ }
48
+ toggleClasses(Toggle, ClassNames) {
49
+ const Level = ClassNames.indexOf(Toggle);
50
+ const NewClassNames = ClassNames.slice(0, Level + 1);
51
+ if (this.removeClasses(NewClassNames)) {
52
+ NewClassNames.map((Class) => this.renderer.removeClass(this.document.body, Class));
53
+ }
54
+ else {
55
+ this.renderer.addClass(this.document.body, Toggle);
56
+ }
57
+ }
58
+ }
59
+ ClassToggler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ClassToggler, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Injectable });
60
+ ClassToggler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ClassToggler });
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ClassToggler, decorators: [{
62
+ type: Injectable
63
+ }], ctorParameters: function () {
64
+ return [{ type: undefined, decorators: [{
65
+ type: Inject,
66
+ args: [DOCUMENT]
67
+ }] }, { type: i0.Renderer2 }];
68
+ } });
69
+
70
+ /**
71
+ * Allows the sidebar to be toggled via click.
72
+ */
73
+ class SidebarToggleDirective {
74
+ constructor(classToggler) {
75
+ this.classToggler = classToggler;
76
+ this.breakpoint = false;
77
+ }
78
+ ngOnInit() {
79
+ this.bp = this.breakpoint;
80
+ }
81
+ toggleOpen($event) {
82
+ $event.preventDefault();
83
+ const cssClass = this.bp ? `sidebar-${this.bp}-show` : sidebarCssClasses[0];
84
+ this.classToggler.toggleClasses(cssClass, sidebarCssClasses);
85
+ }
86
+ }
87
+ SidebarToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarToggleDirective, deps: [{ token: ClassToggler }], target: i0.ɵɵFactoryTarget.Directive });
88
+ SidebarToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: SidebarToggleDirective, selector: "[appSidebarToggler]", inputs: { breakpoint: ["appSidebarToggler", "breakpoint"] }, host: { listeners: { "click": "toggleOpen($event)" } }, providers: [ClassToggler], ngImport: i0 });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarToggleDirective, decorators: [{
90
+ type: Directive,
91
+ args: [{
92
+ selector: '[appSidebarToggler]',
93
+ providers: [ClassToggler]
94
+ }]
95
+ }], ctorParameters: function () { return [{ type: ClassToggler }]; }, propDecorators: { breakpoint: [{
96
+ type: Input,
97
+ args: ['appSidebarToggler']
98
+ }], toggleOpen: [{
99
+ type: HostListener,
100
+ args: ['click', ['$event']]
101
+ }] } });
102
+ class SidebarMinimizeDirective {
103
+ constructor(document, renderer) {
104
+ this.document = document;
105
+ this.renderer = renderer;
106
+ }
107
+ toggleOpen($event) {
108
+ $event.preventDefault();
109
+ const body = this.document.body;
110
+ body.classList.contains('sidebar-minimized') ?
111
+ this.renderer.removeClass(body, 'sidebar-minimized') :
112
+ this.renderer.addClass(body, 'sidebar-minimized');
113
+ }
114
+ }
115
+ SidebarMinimizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarMinimizeDirective, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
116
+ SidebarMinimizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: SidebarMinimizeDirective, selector: "[appSidebarMinimizer]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0 });
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarMinimizeDirective, decorators: [{
118
+ type: Directive,
119
+ args: [{
120
+ selector: '[appSidebarMinimizer]'
121
+ }]
122
+ }], ctorParameters: function () {
123
+ return [{ type: undefined, decorators: [{
124
+ type: Inject,
125
+ args: [DOCUMENT]
126
+ }] }, { type: i0.Renderer2 }];
127
+ }, propDecorators: { toggleOpen: [{
128
+ type: HostListener,
129
+ args: ['click', ['$event']]
130
+ }] } });
131
+ class MobileSidebarToggleDirective {
132
+ constructor(document, renderer) {
133
+ this.document = document;
134
+ this.renderer = renderer;
135
+ }
136
+ toggleOpen($event) {
137
+ $event.preventDefault();
138
+ const body = this.document.body;
139
+ body.classList.contains('sidebar-show') ?
140
+ this.renderer.removeClass(body, 'sidebar-show') :
141
+ this.renderer.addClass(body, 'sidebar-show');
142
+ }
143
+ }
144
+ MobileSidebarToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MobileSidebarToggleDirective, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
145
+ MobileSidebarToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: MobileSidebarToggleDirective, selector: "[appMobileSidebarToggler]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0 });
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MobileSidebarToggleDirective, decorators: [{
147
+ type: Directive,
148
+ args: [{
149
+ selector: '[appMobileSidebarToggler]'
150
+ }]
151
+ }], ctorParameters: function () {
152
+ return [{ type: undefined, decorators: [{
153
+ type: Inject,
154
+ args: [DOCUMENT]
155
+ }] }, { type: i0.Renderer2 }];
156
+ }, propDecorators: { toggleOpen: [{
157
+ type: HostListener,
158
+ args: ['click', ['$event']]
159
+ }] } });
160
+ /**
161
+ * Allows the off-canvas sidebar to be closed via click.
162
+ */
163
+ class SidebarOffCanvasCloseDirective {
164
+ constructor(document, renderer) {
165
+ this.document = document;
166
+ this.renderer = renderer;
167
+ }
168
+ toggleOpen($event) {
169
+ $event.preventDefault();
170
+ const body = this.document.body;
171
+ if (body.classList.contains('sidebar-off-canvas')) {
172
+ body.classList.contains('sidebar-show') ?
173
+ this.renderer.removeClass(body, 'sidebar-show') :
174
+ this.renderer.addClass(body, 'sidebar-show');
175
+ }
176
+ }
177
+ }
178
+ SidebarOffCanvasCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarOffCanvasCloseDirective, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
179
+ SidebarOffCanvasCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: SidebarOffCanvasCloseDirective, selector: "[appSidebarClose]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0 });
180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarOffCanvasCloseDirective, decorators: [{
181
+ type: Directive,
182
+ args: [{
183
+ selector: '[appSidebarClose]'
184
+ }]
185
+ }], ctorParameters: function () {
186
+ return [{ type: undefined, decorators: [{
187
+ type: Inject,
188
+ args: [DOCUMENT]
189
+ }] }, { type: i0.Renderer2 }];
190
+ }, propDecorators: { toggleOpen: [{
191
+ type: HostListener,
192
+ args: ['click', ['$event']]
193
+ }] } });
194
+ class BrandMinimizeDirective {
195
+ constructor(document, renderer) {
196
+ this.document = document;
197
+ this.renderer = renderer;
198
+ }
199
+ toggleOpen($event) {
200
+ $event.preventDefault();
201
+ const body = this.document.body;
202
+ body.classList.contains('brand-minimized') ?
203
+ this.renderer.removeClass(body, 'brand-minimized') :
204
+ this.renderer.addClass(body, 'brand-minimized');
205
+ }
206
+ }
207
+ BrandMinimizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BrandMinimizeDirective, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
208
+ BrandMinimizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: BrandMinimizeDirective, selector: "[appBrandMinimizer]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0 });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BrandMinimizeDirective, decorators: [{
210
+ type: Directive,
211
+ args: [{
212
+ selector: '[appBrandMinimizer]'
213
+ }]
214
+ }], ctorParameters: function () {
215
+ return [{ type: undefined, decorators: [{
216
+ type: Inject,
217
+ args: [DOCUMENT]
218
+ }] }, { type: i0.Renderer2 }];
219
+ }, propDecorators: { toggleOpen: [{
220
+ type: HostListener,
221
+ args: ['click', ['$event']]
222
+ }] } });
223
+ /**
224
+ * Allows the aside to be toggled via click.
225
+ */
226
+ class AsideToggleDirective {
227
+ constructor(classToggler) {
228
+ this.classToggler = classToggler;
229
+ this.breakpoint = false;
230
+ }
231
+ ngOnInit() {
232
+ this.bp = this.breakpoint;
233
+ }
234
+ toggleOpen($event) {
235
+ $event.preventDefault();
236
+ const cssClass = this.bp ? `aside-menu-${this.bp}-show` : asideMenuCssClasses[0];
237
+ this.classToggler.toggleClasses(cssClass, asideMenuCssClasses);
238
+ }
239
+ }
240
+ AsideToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AsideToggleDirective, deps: [{ token: ClassToggler }], target: i0.ɵɵFactoryTarget.Directive });
241
+ AsideToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: AsideToggleDirective, selector: "[appAsideMenuToggler]", inputs: { breakpoint: ["appAsideMenuToggler", "breakpoint"] }, host: { listeners: { "click": "toggleOpen($event)" } }, providers: [ClassToggler], ngImport: i0 });
242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AsideToggleDirective, decorators: [{
243
+ type: Directive,
244
+ args: [{
245
+ selector: '[appAsideMenuToggler]',
246
+ providers: [ClassToggler]
247
+ }]
248
+ }], ctorParameters: function () { return [{ type: ClassToggler }]; }, propDecorators: { breakpoint: [{
249
+ type: Input,
250
+ args: ['appAsideMenuToggler']
251
+ }], toggleOpen: [{
252
+ type: HostListener,
253
+ args: ['click', ['$event']]
254
+ }] } });
255
+ class HtmlAttributesDirective {
256
+ constructor(renderer, el) {
257
+ this.renderer = renderer;
258
+ this.el = el;
259
+ this.appHtmlAttr = {};
260
+ }
261
+ ngOnInit() {
262
+ const attribs = this.appHtmlAttr;
263
+ for (const attr in attribs) {
264
+ if (attr === 'style' && typeof (attribs[attr]) === 'object') {
265
+ this.setStyle(attribs[attr]);
266
+ }
267
+ else if (attr === 'class') {
268
+ this.addClass(attribs[attr]);
269
+ }
270
+ else {
271
+ this.setAttrib(attr, attribs[attr]);
272
+ }
273
+ }
274
+ }
275
+ setStyle(styles) {
276
+ for (const style in styles) {
277
+ if (style) {
278
+ this.renderer.setStyle(this.el.nativeElement, style, styles[style]);
279
+ }
280
+ }
281
+ }
282
+ addClass(classes) {
283
+ const classArray = (Array.isArray(classes) ? classes : classes.split(' '));
284
+ classArray.filter((element) => element.length > 0).forEach(element => {
285
+ this.renderer.addClass(this.el.nativeElement, element);
286
+ });
287
+ }
288
+ setAttrib(key, value) {
289
+ value !== null ?
290
+ this.renderer.setAttribute(this.el.nativeElement, key, value) :
291
+ this.renderer.removeAttribute(this.el.nativeElement, key);
292
+ }
293
+ }
294
+ HtmlAttributesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HtmlAttributesDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
295
+ HtmlAttributesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: { appHtmlAttr: "appHtmlAttr" }, ngImport: i0 });
296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HtmlAttributesDirective, decorators: [{
297
+ type: Directive,
298
+ args: [{
299
+ selector: '[appHtmlAttr]'
300
+ }]
301
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { appHtmlAttr: [{
302
+ type: Input
303
+ }] } });
304
+
305
+ class LayoutModule {
306
+ }
307
+ LayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
308
+ LayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: LayoutModule, declarations: [AsideToggleDirective,
309
+ BrandMinimizeDirective,
310
+ MobileSidebarToggleDirective,
311
+ SidebarToggleDirective,
312
+ SidebarMinimizeDirective,
313
+ SidebarOffCanvasCloseDirective,
314
+ HtmlAttributesDirective], imports: [CommonModule], exports: [AsideToggleDirective,
315
+ BrandMinimizeDirective,
316
+ MobileSidebarToggleDirective,
317
+ SidebarToggleDirective,
318
+ SidebarMinimizeDirective,
319
+ SidebarOffCanvasCloseDirective,
320
+ HtmlAttributesDirective] });
321
+ LayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: LayoutModule, providers: [
322
+ ClassToggler
323
+ ], imports: [[
324
+ CommonModule
325
+ ]] });
326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: LayoutModule, decorators: [{
327
+ type: NgModule,
328
+ args: [{
329
+ imports: [
330
+ CommonModule
331
+ ],
332
+ exports: [
333
+ AsideToggleDirective,
334
+ BrandMinimizeDirective,
335
+ MobileSidebarToggleDirective,
336
+ SidebarToggleDirective,
337
+ SidebarMinimizeDirective,
338
+ SidebarOffCanvasCloseDirective,
339
+ HtmlAttributesDirective
340
+ ],
341
+ declarations: [
342
+ AsideToggleDirective,
343
+ BrandMinimizeDirective,
344
+ MobileSidebarToggleDirective,
345
+ SidebarToggleDirective,
346
+ SidebarMinimizeDirective,
347
+ SidebarOffCanvasCloseDirective,
348
+ HtmlAttributesDirective
349
+ ],
350
+ providers: [
351
+ ClassToggler
352
+ ]
353
+ }]
354
+ }] });
355
+
356
+ function Replace(el) {
357
+ const nativeElement = el.nativeElement;
358
+ // @ts-ignore
359
+ const parentElement = nativeElement.parentElement;
360
+ // move all children out of the element
361
+ while (nativeElement.firstChild) {
362
+ parentElement.insertBefore(nativeElement.firstChild, nativeElement);
363
+ }
364
+ // remove the empty element(the host)
365
+ parentElement.removeChild(nativeElement);
366
+ }
367
+
368
+ class AppAsideComponent {
369
+ constructor(document, renderer) {
370
+ this.document = document;
371
+ this.renderer = renderer;
372
+ this.fixedClass = 'aside-menu-fixed';
373
+ this.asideMenuClass = true;
374
+ }
375
+ ngOnInit() {
376
+ this.isFixed(this.fixed);
377
+ this.isOffCanvas(this.offCanvas);
378
+ this.displayBreakpoint(this.display);
379
+ }
380
+ ngOnDestroy() {
381
+ this.renderer.removeClass(this.document.body, this.fixedClass);
382
+ }
383
+ isFixed(fixed = this.fixed) {
384
+ if (fixed) {
385
+ this.renderer.addClass(this.document.body, this.fixedClass);
386
+ }
387
+ }
388
+ isOffCanvas(offCanvas = this.offCanvas) {
389
+ if (offCanvas) {
390
+ this.renderer.addClass(this.document.body, 'aside-menu-off-canvas');
391
+ }
392
+ }
393
+ displayBreakpoint(display = this.display) {
394
+ if (display !== false) {
395
+ const cssClass = this.display ? `aside-menu-${this.display}-show` : asideMenuCssClasses[0];
396
+ this.renderer.addClass(this.document.body, cssClass);
397
+ }
398
+ }
399
+ }
400
+ AppAsideComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppAsideComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
401
+ AppAsideComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppAsideComponent, selector: "app-aside, cui-aside", inputs: { display: "display", fixed: "fixed", offCanvas: "offCanvas" }, host: { properties: { "class.aside-menu": "this.asideMenuClass" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppAsideComponent, decorators: [{
403
+ type: Component,
404
+ args: [{
405
+ selector: 'app-aside, cui-aside',
406
+ template: `<ng-content></ng-content>`
407
+ }]
408
+ }], ctorParameters: function () {
409
+ return [{ type: undefined, decorators: [{
410
+ type: Inject,
411
+ args: [DOCUMENT]
412
+ }] }, { type: i0.Renderer2 }];
413
+ }, propDecorators: { display: [{
414
+ type: Input
415
+ }], fixed: [{
416
+ type: Input
417
+ }], offCanvas: [{
418
+ type: Input
419
+ }], asideMenuClass: [{
420
+ type: HostBinding,
421
+ args: ['class.aside-menu']
422
+ }] } });
423
+
424
+ class AppAsideModule {
425
+ }
426
+ AppAsideModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppAsideModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
427
+ AppAsideModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppAsideModule, declarations: [AppAsideComponent], imports: [CommonModule,
428
+ LayoutModule], exports: [AppAsideComponent] });
429
+ AppAsideModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppAsideModule, imports: [[
430
+ CommonModule,
431
+ LayoutModule
432
+ ]] });
433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppAsideModule, decorators: [{
434
+ type: NgModule,
435
+ args: [{
436
+ imports: [
437
+ CommonModule,
438
+ LayoutModule
439
+ ],
440
+ exports: [
441
+ AppAsideComponent
442
+ ],
443
+ declarations: [
444
+ AppAsideComponent
445
+ ]
446
+ }]
447
+ }] });
448
+
449
+ class AppBreadcrumbService {
450
+ constructor(router, route) {
451
+ this.router = router;
452
+ this.route = route;
453
+ this.breadcrumbSubject = new BehaviorSubject(new Array());
454
+ this.breadcrumbs = this.breadcrumbSubject.asObservable();
455
+ this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe((event) => {
456
+ const breadcrumbs = [];
457
+ let currentRoute = this.route.root;
458
+ let url = '';
459
+ do {
460
+ const childrenRoutes = currentRoute.children;
461
+ currentRoute = null;
462
+ // tslint:disable-next-line:no-shadowed-variable
463
+ childrenRoutes.forEach(route => {
464
+ if (route.outlet === 'primary') {
465
+ const routeSnapshot = route.snapshot;
466
+ url += '/' + routeSnapshot.url.map(segment => segment.path).join('/');
467
+ breadcrumbs.push({
468
+ label: route.snapshot.data,
469
+ url
470
+ });
471
+ currentRoute = route;
472
+ }
473
+ });
474
+ } while (currentRoute);
475
+ this.breadcrumbSubject.next(Object.assign([], breadcrumbs));
476
+ return breadcrumbs;
477
+ });
478
+ }
479
+ }
480
+ AppBreadcrumbService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbService, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
481
+ AppBreadcrumbService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbService, providedIn: 'root' });
482
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbService, decorators: [{
483
+ type: Injectable,
484
+ args: [{
485
+ providedIn: 'root'
486
+ }]
487
+ }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }]; } });
488
+
489
+ class AppBreadcrumbComponent {
490
+ constructor(document, renderer, service, el) {
491
+ this.document = document;
492
+ this.renderer = renderer;
493
+ this.service = service;
494
+ this.el = el;
495
+ this.fixedClass = 'breadcrumb-fixed';
496
+ }
497
+ ngOnInit() {
498
+ Replace(this.el);
499
+ this.isFixed(this.fixed);
500
+ this.breadcrumbs = this.service.breadcrumbs;
501
+ }
502
+ ngOnDestroy() {
503
+ this.renderer.removeClass(this.document.body, this.fixedClass);
504
+ }
505
+ isFixed(fixed = this.fixed) {
506
+ if (fixed) {
507
+ this.renderer.addClass(this.document.body, this.fixedClass);
508
+ }
509
+ }
510
+ }
511
+ AppBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: AppBreadcrumbService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
512
+ AppBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppBreadcrumbComponent, selector: "app-breadcrumb", inputs: { fixed: "fixed" }, ngImport: i0, template: `
513
+ <ng-template ngFor let-breadcrumb [ngForOf]="breadcrumbs | async" let-last = last>
514
+ <li class="breadcrumb-item"
515
+ *ngIf="breadcrumb.label.title && (breadcrumb.url.slice(-1) == '/' || last)"
516
+ [ngClass]="{active: last}">
517
+ <a *ngIf="!last" [routerLink]="breadcrumb.url">{{breadcrumb.label.title}}</a>
518
+ <span *ngIf="last" [routerLink]="breadcrumb.url">{{breadcrumb.label.title}}</span>
519
+ </li>
520
+ </ng-template>
521
+ `, isInline: true, directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "async": i2.AsyncPipe } });
522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbComponent, decorators: [{
523
+ type: Component,
524
+ args: [{
525
+ selector: 'app-breadcrumb',
526
+ template: `
527
+ <ng-template ngFor let-breadcrumb [ngForOf]="breadcrumbs | async" let-last = last>
528
+ <li class="breadcrumb-item"
529
+ *ngIf="breadcrumb.label.title && (breadcrumb.url.slice(-1) == '/' || last)"
530
+ [ngClass]="{active: last}">
531
+ <a *ngIf="!last" [routerLink]="breadcrumb.url">{{breadcrumb.label.title}}</a>
532
+ <span *ngIf="last" [routerLink]="breadcrumb.url">{{breadcrumb.label.title}}</span>
533
+ </li>
534
+ </ng-template>
535
+ `
536
+ }]
537
+ }], ctorParameters: function () {
538
+ return [{ type: undefined, decorators: [{
539
+ type: Inject,
540
+ args: [DOCUMENT]
541
+ }] }, { type: i0.Renderer2 }, { type: AppBreadcrumbService }, { type: i0.ElementRef }];
542
+ }, propDecorators: { fixed: [{
543
+ type: Input
544
+ }] } });
545
+
546
+ class CuiBreadcrumbComponent {
547
+ constructor(document, renderer, service) {
548
+ this.document = document;
549
+ this.renderer = renderer;
550
+ this.service = service;
551
+ this.fixedClass = 'breadcrumb-fixed';
552
+ }
553
+ ngOnInit() {
554
+ this.isFixed(this.fixed);
555
+ this.breadcrumbs = this.service.breadcrumbs;
556
+ }
557
+ ngOnDestroy() {
558
+ this.renderer.removeClass(this.document.body, this.fixedClass);
559
+ }
560
+ isFixed(fixed = this.fixed) {
561
+ if (fixed) {
562
+ this.renderer.addClass(this.document.body, this.fixedClass);
563
+ }
564
+ }
565
+ }
566
+ CuiBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CuiBreadcrumbComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: AppBreadcrumbService }], target: i0.ɵɵFactoryTarget.Component });
567
+ CuiBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: CuiBreadcrumbComponent, selector: "cui-breadcrumb", inputs: { fixed: "fixed" }, ngImport: i0, template: "<ol class=\"breadcrumb\">\r\n <ng-template ngFor let-breadcrumb [ngForOf]=\"breadcrumbs | async\" let-last = last>\r\n <li class=\"breadcrumb-item\"\r\n *ngIf=\"breadcrumb.label.title && (breadcrumb.url.slice(-1) == '/' || last)\"\r\n [ngClass]=\"{active: last}\">\r\n <a *ngIf=\"!last\" [routerLink]=\"breadcrumb.url\">{{breadcrumb.label.title}}</a>\r\n <span *ngIf=\"last\" [routerLink]=\"breadcrumb.url\">{{breadcrumb.label.title}}</span>\r\n </li>\r\n </ng-template>\r\n <ng-content></ng-content>\r\n</ol>\r\n", directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "async": i2.AsyncPipe } });
568
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CuiBreadcrumbComponent, decorators: [{
569
+ type: Component,
570
+ args: [{ selector: 'cui-breadcrumb', template: "<ol class=\"breadcrumb\">\r\n <ng-template ngFor let-breadcrumb [ngForOf]=\"breadcrumbs | async\" let-last = last>\r\n <li class=\"breadcrumb-item\"\r\n *ngIf=\"breadcrumb.label.title && (breadcrumb.url.slice(-1) == '/' || last)\"\r\n [ngClass]=\"{active: last}\">\r\n <a *ngIf=\"!last\" [routerLink]=\"breadcrumb.url\">{{breadcrumb.label.title}}</a>\r\n <span *ngIf=\"last\" [routerLink]=\"breadcrumb.url\">{{breadcrumb.label.title}}</span>\r\n </li>\r\n </ng-template>\r\n <ng-content></ng-content>\r\n</ol>\r\n" }]
571
+ }], ctorParameters: function () {
572
+ return [{ type: undefined, decorators: [{
573
+ type: Inject,
574
+ args: [DOCUMENT]
575
+ }] }, { type: i0.Renderer2 }, { type: AppBreadcrumbService }];
576
+ }, propDecorators: { fixed: [{
577
+ type: Input
578
+ }] } });
579
+
580
+ // @dynamic
581
+ class AppBreadcrumbModule {
582
+ static forRoot(config) {
583
+ return {
584
+ ngModule: AppBreadcrumbModule,
585
+ providers: [
586
+ AppBreadcrumbService
587
+ ]
588
+ };
589
+ }
590
+ }
591
+ AppBreadcrumbModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
592
+ AppBreadcrumbModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbModule, declarations: [AppBreadcrumbComponent, CuiBreadcrumbComponent], imports: [CommonModule, RouterModule], exports: [AppBreadcrumbComponent, CuiBreadcrumbComponent] });
593
+ AppBreadcrumbModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbModule, imports: [[CommonModule, RouterModule]] });
594
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppBreadcrumbModule, decorators: [{
595
+ type: NgModule,
596
+ args: [{
597
+ imports: [CommonModule, RouterModule],
598
+ exports: [AppBreadcrumbComponent, CuiBreadcrumbComponent],
599
+ declarations: [AppBreadcrumbComponent, CuiBreadcrumbComponent]
600
+ }]
601
+ }] });
602
+
603
+ class AppFooterComponent {
604
+ constructor(document, renderer) {
605
+ this.document = document;
606
+ this.renderer = renderer;
607
+ this.fixedClass = 'footer-fixed';
608
+ this.appFooterClass = true;
609
+ }
610
+ ngOnInit() {
611
+ this.isFixed(this.fixed);
612
+ }
613
+ ngOnDestroy() {
614
+ this.renderer.removeClass(this.document.body, this.fixedClass);
615
+ }
616
+ isFixed(fixed = this.fixed) {
617
+ if (fixed) {
618
+ this.renderer.addClass(this.document.body, this.fixedClass);
619
+ }
620
+ }
621
+ }
622
+ AppFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppFooterComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
623
+ AppFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppFooterComponent, selector: "app-footer, cui-footer", inputs: { fixed: "fixed" }, host: { properties: { "class.app-footer": "this.appFooterClass" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppFooterComponent, decorators: [{
625
+ type: Component,
626
+ args: [{
627
+ selector: 'app-footer, cui-footer',
628
+ template: `<ng-content></ng-content>`
629
+ }]
630
+ }], ctorParameters: function () {
631
+ return [{ type: undefined, decorators: [{
632
+ type: Inject,
633
+ args: [DOCUMENT]
634
+ }] }, { type: i0.Renderer2 }];
635
+ }, propDecorators: { fixed: [{
636
+ type: Input
637
+ }], appFooterClass: [{
638
+ type: HostBinding,
639
+ args: ['class.app-footer']
640
+ }] } });
641
+
642
+ class AppFooterModule {
643
+ }
644
+ AppFooterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppFooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
645
+ AppFooterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppFooterModule, declarations: [AppFooterComponent], imports: [CommonModule], exports: [AppFooterComponent] });
646
+ AppFooterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppFooterModule, imports: [[CommonModule]] });
647
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppFooterModule, decorators: [{
648
+ type: NgModule,
649
+ args: [{
650
+ imports: [CommonModule],
651
+ exports: [AppFooterComponent],
652
+ declarations: [AppFooterComponent]
653
+ }]
654
+ }] });
655
+
656
+ class AppHeaderComponent {
657
+ constructor(document, renderer) {
658
+ this.document = document;
659
+ this.renderer = renderer;
660
+ this.navbarBrandText = { icon: '🅲', text: '🅲 CoreUI' };
661
+ this.navbarBrandHref = ''; // deprecated, use navbarBrandRouterLink instead
662
+ this.navbarBrandRouterLink = '';
663
+ this.sidebarToggler = 'lg';
664
+ this.mobileSidebarToggler = true;
665
+ this.asideMenuToggler = 'lg';
666
+ this.mobileAsideMenuToggler = true;
667
+ this.fixedClass = 'header-fixed';
668
+ this.appHeaderClass = true;
669
+ this.navbarClass = true;
670
+ this.breakpoints = ['xl', 'lg', 'md', 'sm', 'xs'];
671
+ this.sidebarTogglerClass = 'd-none d-md-block';
672
+ this.sidebarTogglerMobileClass = 'd-lg-none';
673
+ this.asideTogglerClass = 'd-none d-md-block';
674
+ this.asideTogglerMobileClass = 'd-lg-none';
675
+ }
676
+ ngOnInit() {
677
+ this.isFixed(this.fixed);
678
+ this.navbarBrandImg = Boolean(this.navbarBrand || this.navbarBrandFull || this.navbarBrandMinimized);
679
+ this.navbarBrandRouterLink = this.navbarBrandRouterLink[0] ? this.navbarBrandRouterLink : this.navbarBrandHref;
680
+ this.sidebarTogglerClass = this.setTogglerBreakpointClass(this.sidebarToggler);
681
+ this.sidebarTogglerMobileClass = this.setTogglerMobileBreakpointClass(this.sidebarToggler);
682
+ this.asideTogglerClass = this.setTogglerBreakpointClass(this.asideMenuToggler);
683
+ this.asideTogglerMobileClass = this.setTogglerMobileBreakpointClass(this.asideMenuToggler);
684
+ }
685
+ ngOnDestroy() {
686
+ this.renderer.removeClass(this.document.body, this.fixedClass);
687
+ }
688
+ isFixed(fixed = this.fixed) {
689
+ if (fixed) {
690
+ this.renderer.addClass(this.document.body, this.fixedClass);
691
+ }
692
+ }
693
+ setTogglerBreakpointClass(breakpoint = 'md') {
694
+ let togglerClass = 'd-none d-md-block';
695
+ if (this.breakpoints.includes(breakpoint)) {
696
+ const breakpointIndex = this.breakpoints.indexOf(breakpoint);
697
+ togglerClass = `d-none d-${breakpoint}-block`;
698
+ }
699
+ return togglerClass;
700
+ }
701
+ setTogglerMobileBreakpointClass(breakpoint = 'lg') {
702
+ let togglerClass = 'd-lg-none';
703
+ if (this.breakpoints.includes(breakpoint)) {
704
+ togglerClass = `d-${breakpoint}-none`;
705
+ }
706
+ return togglerClass;
707
+ }
708
+ }
709
+ AppHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppHeaderComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
710
+ AppHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppHeaderComponent, selector: "app-header, cui-header", inputs: { fixed: "fixed", navbarBrand: "navbarBrand", navbarBrandFull: "navbarBrandFull", navbarBrandMinimized: "navbarBrandMinimized", navbarBrandText: "navbarBrandText", navbarBrandHref: "navbarBrandHref", navbarBrandRouterLink: "navbarBrandRouterLink", sidebarToggler: "sidebarToggler", mobileSidebarToggler: "mobileSidebarToggler", asideMenuToggler: "asideMenuToggler", mobileAsideMenuToggler: "mobileAsideMenuToggler" }, host: { properties: { "class.app-header": "this.appHeaderClass", "class.navbar": "this.navbarClass" } }, ngImport: i0, template: "<ng-template [ngIf]=\"mobileSidebarToggler != false\">\r\n <button class=\"navbar-toggler {{sidebarTogglerMobileClass}}\" type=\"button\" appSidebarToggler>\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<a class=\"navbar-brand\" [routerLink]=\"navbarBrandRouterLink\">\r\n <ng-template [ngIf]=\"navbarBrandImg\">\r\n <img *ngIf=\"navbarBrand\"\r\n [appHtmlAttr]=\"navbarBrand\"\r\n [ngClass]=\"'navbar-brand'\">\r\n <img *ngIf=\"navbarBrandFull\"\r\n [appHtmlAttr]=\"navbarBrandFull\"\r\n [ngClass]=\"'navbar-brand-full'\">\r\n <img *ngIf=\"navbarBrandMinimized\"\r\n [appHtmlAttr]=\"navbarBrandMinimized\"\r\n [ngClass]=\"'navbar-brand-minimized'\">\r\n </ng-template>\r\n <ng-template [ngIf]=\"!navbarBrandImg\">\r\n <div class=\"navbar-brand-full\" [innerHTML]=\"navbarBrandText.text\"></div>\r\n <div class=\"navbar-brand-minimized\" [innerHTML]=\"navbarBrandText.icon\"></div>\r\n </ng-template>\r\n</a>\r\n<ng-template [ngIf]=\"sidebarToggler != false\">\r\n <button class=\"navbar-toggler {{sidebarTogglerClass}}\" type=\"button\" [appSidebarToggler]=\"sidebarToggler\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<ng-content></ng-content>\r\n<ng-template [ngIf]=\"asideMenuToggler != false\">\r\n <button class=\"navbar-toggler {{asideTogglerClass}}\" type=\"button\" [appAsideMenuToggler]=\"asideMenuToggler\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<ng-template [ngIf]=\"mobileAsideMenuToggler != false\">\r\n <button class=\"navbar-toggler {{asideTogglerMobileClass}}\" type=\"button\" appAsideMenuToggler>\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SidebarToggleDirective, selector: "[appSidebarToggler]", inputs: ["appSidebarToggler"] }, { type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: AsideToggleDirective, selector: "[appAsideMenuToggler]", inputs: ["appAsideMenuToggler"] }] });
711
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppHeaderComponent, decorators: [{
712
+ type: Component,
713
+ args: [{ selector: 'app-header, cui-header', template: "<ng-template [ngIf]=\"mobileSidebarToggler != false\">\r\n <button class=\"navbar-toggler {{sidebarTogglerMobileClass}}\" type=\"button\" appSidebarToggler>\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<a class=\"navbar-brand\" [routerLink]=\"navbarBrandRouterLink\">\r\n <ng-template [ngIf]=\"navbarBrandImg\">\r\n <img *ngIf=\"navbarBrand\"\r\n [appHtmlAttr]=\"navbarBrand\"\r\n [ngClass]=\"'navbar-brand'\">\r\n <img *ngIf=\"navbarBrandFull\"\r\n [appHtmlAttr]=\"navbarBrandFull\"\r\n [ngClass]=\"'navbar-brand-full'\">\r\n <img *ngIf=\"navbarBrandMinimized\"\r\n [appHtmlAttr]=\"navbarBrandMinimized\"\r\n [ngClass]=\"'navbar-brand-minimized'\">\r\n </ng-template>\r\n <ng-template [ngIf]=\"!navbarBrandImg\">\r\n <div class=\"navbar-brand-full\" [innerHTML]=\"navbarBrandText.text\"></div>\r\n <div class=\"navbar-brand-minimized\" [innerHTML]=\"navbarBrandText.icon\"></div>\r\n </ng-template>\r\n</a>\r\n<ng-template [ngIf]=\"sidebarToggler != false\">\r\n <button class=\"navbar-toggler {{sidebarTogglerClass}}\" type=\"button\" [appSidebarToggler]=\"sidebarToggler\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<ng-content></ng-content>\r\n<ng-template [ngIf]=\"asideMenuToggler != false\">\r\n <button class=\"navbar-toggler {{asideTogglerClass}}\" type=\"button\" [appAsideMenuToggler]=\"asideMenuToggler\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<ng-template [ngIf]=\"mobileAsideMenuToggler != false\">\r\n <button class=\"navbar-toggler {{asideTogglerMobileClass}}\" type=\"button\" appAsideMenuToggler>\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n" }]
714
+ }], ctorParameters: function () {
715
+ return [{ type: undefined, decorators: [{
716
+ type: Inject,
717
+ args: [DOCUMENT]
718
+ }] }, { type: i0.Renderer2 }];
719
+ }, propDecorators: { fixed: [{
720
+ type: Input
721
+ }], navbarBrand: [{
722
+ type: Input
723
+ }], navbarBrandFull: [{
724
+ type: Input
725
+ }], navbarBrandMinimized: [{
726
+ type: Input
727
+ }], navbarBrandText: [{
728
+ type: Input
729
+ }], navbarBrandHref: [{
730
+ type: Input
731
+ }], navbarBrandRouterLink: [{
732
+ type: Input
733
+ }], sidebarToggler: [{
734
+ type: Input
735
+ }], mobileSidebarToggler: [{
736
+ type: Input
737
+ }], asideMenuToggler: [{
738
+ type: Input
739
+ }], mobileAsideMenuToggler: [{
740
+ type: Input
741
+ }], appHeaderClass: [{
742
+ type: HostBinding,
743
+ args: ['class.app-header']
744
+ }], navbarClass: [{
745
+ type: HostBinding,
746
+ args: ['class.navbar']
747
+ }] } });
748
+
749
+ class AppHeaderModule {
750
+ }
751
+ AppHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
752
+ AppHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppHeaderModule, declarations: [AppHeaderComponent], imports: [CommonModule,
753
+ RouterModule,
754
+ LayoutModule], exports: [AppHeaderComponent] });
755
+ AppHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppHeaderModule, imports: [[
756
+ CommonModule,
757
+ RouterModule,
758
+ LayoutModule
759
+ ]] });
760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppHeaderModule, decorators: [{
761
+ type: NgModule,
762
+ args: [{
763
+ imports: [
764
+ CommonModule,
765
+ RouterModule,
766
+ LayoutModule
767
+ ],
768
+ exports: [
769
+ AppHeaderComponent,
770
+ ],
771
+ declarations: [
772
+ AppHeaderComponent
773
+ ]
774
+ }]
775
+ }] });
776
+
777
+ class AppSidebarService {
778
+ constructor() {
779
+ this.events = new BehaviorSubject({});
780
+ this.events$ = this.events.asObservable();
781
+ }
782
+ toggle(action) {
783
+ this.events.next(action);
784
+ }
785
+ }
786
+ AppSidebarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
787
+ AppSidebarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarService, providedIn: 'root' });
788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarService, decorators: [{
789
+ type: Injectable,
790
+ args: [{
791
+ providedIn: 'root'
792
+ }]
793
+ }], ctorParameters: function () { return []; } });
794
+
795
+ class AppSidebarComponent {
796
+ constructor(document, renderer, sidebarService) {
797
+ this.document = document;
798
+ this.renderer = renderer;
799
+ this.sidebarService = sidebarService;
800
+ this._minimized = false;
801
+ /**
802
+ * Emits whenever the minimized state of the sidebar changes.
803
+ * Primarily used to facilitate two-way binding.
804
+ */
805
+ this.minimizedChange = new EventEmitter();
806
+ this.sidebarClass = true;
807
+ }
808
+ get minimized() {
809
+ return this._minimized;
810
+ }
811
+ set minimized(value) {
812
+ // only update / emit events when the value changes
813
+ if (this._minimized !== value) {
814
+ this._minimized = value;
815
+ this._updateMinimized(value);
816
+ this.minimizedChange.emit(value);
817
+ this.sidebarService.toggle({ minimize: value });
818
+ }
819
+ }
820
+ ngOnInit() {
821
+ this.displayBreakpoint(this.display);
822
+ this.isCompact(this.compact);
823
+ this.isFixed(this.fixed);
824
+ this.isOffCanvas(this.offCanvas);
825
+ this.sidebarService.toggle({ minimize: this.minimized });
826
+ this.subscriptionEvents = this.sidebarService.events$.subscribe(action => {
827
+ if (action.minimize !== undefined) {
828
+ action.minimize === 'toggle' ? this.toggleMinimized() : this.minimized = !!action.minimize;
829
+ }
830
+ });
831
+ }
832
+ ngOnDestroy() {
833
+ this.subscriptionEvents.unsubscribe();
834
+ this.minimizedChange.complete();
835
+ this.renderer.removeClass(this.document.body, 'sidebar-fixed');
836
+ this._updateMinimized(false);
837
+ }
838
+ isCompact(compact = this.compact) {
839
+ if (compact) {
840
+ this.renderer.addClass(this.document.body, 'sidebar-compact');
841
+ }
842
+ }
843
+ isFixed(fixed = this.fixed) {
844
+ if (fixed) {
845
+ this.renderer.addClass(this.document.body, 'sidebar-fixed');
846
+ }
847
+ }
848
+ toggleMinimized() {
849
+ this.minimized = !this._minimized;
850
+ }
851
+ isOffCanvas(offCanvas = this.offCanvas) {
852
+ if (offCanvas) {
853
+ this.renderer.addClass(this.document.body, 'sidebar-off-canvas');
854
+ }
855
+ }
856
+ displayBreakpoint(display = this.display) {
857
+ if (display !== false) {
858
+ const cssClass = display ? `sidebar-${display}-show` : sidebarCssClasses[0];
859
+ this.renderer.addClass(this.document.body, cssClass);
860
+ }
861
+ }
862
+ _updateMinimized(minimized) {
863
+ const body = this.document.body;
864
+ if (minimized) {
865
+ this.renderer.addClass(body, 'sidebar-minimized');
866
+ this.renderer.addClass(body, 'brand-minimized');
867
+ }
868
+ else {
869
+ this.renderer.removeClass(body, 'sidebar-minimized');
870
+ this.renderer.removeClass(body, 'brand-minimized');
871
+ }
872
+ }
873
+ }
874
+ AppSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: AppSidebarService }], target: i0.ɵɵFactoryTarget.Component });
875
+ AppSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarComponent, selector: "app-sidebar, cui-sidebar", inputs: { compact: "compact", display: "display", fixed: "fixed", offCanvas: "offCanvas", minimized: "minimized" }, outputs: { minimizedChange: "minimizedChange" }, host: { properties: { "class.sidebar": "this.sidebarClass" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarComponent, decorators: [{
877
+ type: Component,
878
+ args: [{
879
+ selector: 'app-sidebar, cui-sidebar',
880
+ template: `<ng-content></ng-content>`
881
+ }]
882
+ }], ctorParameters: function () {
883
+ return [{ type: undefined, decorators: [{
884
+ type: Inject,
885
+ args: [DOCUMENT]
886
+ }] }, { type: i0.Renderer2 }, { type: AppSidebarService }];
887
+ }, propDecorators: { compact: [{
888
+ type: Input
889
+ }], display: [{
890
+ type: Input
891
+ }], fixed: [{
892
+ type: Input
893
+ }], offCanvas: [{
894
+ type: Input
895
+ }], minimized: [{
896
+ type: Input
897
+ }], minimizedChange: [{
898
+ type: Output
899
+ }], sidebarClass: [{
900
+ type: HostBinding,
901
+ args: ['class.sidebar']
902
+ }] } });
903
+
904
+ class SidebarNavService {
905
+ }
906
+ SidebarNavService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarNavService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
907
+ SidebarNavService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarNavService });
908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarNavService, decorators: [{
909
+ type: Injectable
910
+ }] });
911
+ class SidebarNavHelper {
912
+ constructor() {
913
+ this.hasBadge = (item) => Boolean(item.badge);
914
+ this.hasIcon = (item) => Boolean(item.icon);
915
+ }
916
+ itemType(item) {
917
+ if (item.divider) {
918
+ return 'divider';
919
+ }
920
+ else if (item.title) {
921
+ return 'title';
922
+ }
923
+ else if (item.children) {
924
+ return 'dropdown';
925
+ }
926
+ else if (item.label) {
927
+ return 'label';
928
+ }
929
+ else if (!Object.keys(item).length) {
930
+ return 'empty';
931
+ }
932
+ return 'link';
933
+ }
934
+ isActive(router, item) {
935
+ return router.isActive(item.url, false);
936
+ }
937
+ getIconClass(item) {
938
+ const classes = {
939
+ 'nav-icon': true
940
+ };
941
+ if (this.hasIcon(item)) {
942
+ const icon = item.icon;
943
+ // @ts-ignore
944
+ classes[icon] = this.hasIcon(item);
945
+ }
946
+ return classes;
947
+ }
948
+ }
949
+ SidebarNavHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarNavHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
950
+ SidebarNavHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarNavHelper });
951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SidebarNavHelper, decorators: [{
952
+ type: Injectable
953
+ }] });
954
+
955
+ class AppSidebarNavDividerComponent {
956
+ constructor() { }
957
+ ngOnInit() { }
958
+ }
959
+ AppSidebarNavDividerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
960
+ AppSidebarNavDividerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavDividerComponent, selector: "app-sidebar-nav-divider, cui-sidebar-nav-divider", inputs: { item: "item" }, ngImport: i0, template: ``, isInline: true });
961
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavDividerComponent, decorators: [{
962
+ type: Component,
963
+ args: [{
964
+ selector: 'app-sidebar-nav-divider, cui-sidebar-nav-divider',
965
+ template: ``
966
+ }]
967
+ }], ctorParameters: function () { return []; }, propDecorators: { item: [{
968
+ type: Input
969
+ }] } });
970
+
971
+ class AppSidebarNavTitleComponent {
972
+ constructor(el, renderer) {
973
+ this.el = el;
974
+ this.renderer = renderer;
975
+ this.item = {};
976
+ }
977
+ ngOnInit() {
978
+ const nativeElement = this.el.nativeElement;
979
+ const name = this.renderer.createText(this.item.name);
980
+ if (this.item.class) {
981
+ const classes = this.item.class;
982
+ this.renderer.addClass(nativeElement, classes);
983
+ }
984
+ if (this.item.wrapper) {
985
+ const wrapper = this.renderer.createElement(this.item.wrapper.element);
986
+ this.addAttribs(this.item.wrapper.attributes, wrapper);
987
+ this.renderer.appendChild(wrapper, name);
988
+ this.renderer.appendChild(nativeElement, wrapper);
989
+ }
990
+ else {
991
+ this.renderer.appendChild(nativeElement, name);
992
+ }
993
+ }
994
+ addAttribs(attribs, element) {
995
+ if (attribs) {
996
+ for (const attr in attribs) {
997
+ if (attr === 'style' && typeof (attribs[attr]) === 'object') {
998
+ this.setStyle(attribs[attr], element);
999
+ }
1000
+ else if (attr === 'class') {
1001
+ this.addClass(attribs[attr], element);
1002
+ }
1003
+ else {
1004
+ this.setAttrib(attr, attribs[attr], element);
1005
+ }
1006
+ }
1007
+ }
1008
+ }
1009
+ setStyle(styles, el) {
1010
+ for (const style in styles) {
1011
+ this.renderer.setStyle(el, style, styles[style]);
1012
+ }
1013
+ }
1014
+ addClass(classes, el) {
1015
+ const classArray = (Array.isArray(classes) ? classes : classes.split(' '));
1016
+ classArray.filter((element) => element.length > 0).forEach(element => {
1017
+ this.renderer.addClass(el, element);
1018
+ });
1019
+ }
1020
+ setAttrib(key, value, el) {
1021
+ this.renderer.setAttribute(el, key, value);
1022
+ }
1023
+ }
1024
+ AppSidebarNavTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavTitleComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1025
+ AppSidebarNavTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavTitleComponent, selector: "app-sidebar-nav-title, cui-sidebar-nav-title", inputs: { item: "item" }, ngImport: i0, template: '', isInline: true });
1026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavTitleComponent, decorators: [{
1027
+ type: Component,
1028
+ args: [{
1029
+ selector: 'app-sidebar-nav-title, cui-sidebar-nav-title',
1030
+ template: '',
1031
+ }]
1032
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { item: [{
1033
+ type: Input
1034
+ }] } });
1035
+
1036
+ class AppSidebarNavBadgePipe {
1037
+ transform(item, args) {
1038
+ const classes = {
1039
+ badge: true
1040
+ };
1041
+ const variant = `badge-${item.badge.variant}`;
1042
+ classes[variant] = !!item.badge.variant;
1043
+ classes[item.badge.class] = !!item.badge.class;
1044
+ return classes;
1045
+ }
1046
+ }
1047
+ AppSidebarNavBadgePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavBadgePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1048
+ AppSidebarNavBadgePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavBadgePipe, name: "appSidebarNavBadge" });
1049
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavBadgePipe, decorators: [{
1050
+ type: Pipe,
1051
+ args: [{
1052
+ name: 'appSidebarNavBadge'
1053
+ }]
1054
+ }] });
1055
+
1056
+ class AppSidebarNavLabelComponent {
1057
+ constructor(helper) {
1058
+ this.helper = helper;
1059
+ this.item = {};
1060
+ this.classes = {
1061
+ 'nav-label': true,
1062
+ active: true
1063
+ };
1064
+ this.iconClasses = {};
1065
+ }
1066
+ ngOnInit() {
1067
+ this.iconClasses = this.helper.getIconClass(this.item);
1068
+ }
1069
+ getItemClass() {
1070
+ const itemClass = this.item.class;
1071
+ // @ts-ignore
1072
+ this.classes[itemClass] = !!itemClass;
1073
+ return this.classes;
1074
+ }
1075
+ getLabelIconClass() {
1076
+ var _a, _b, _c;
1077
+ const variant = `text-${(_a = this.item.label) === null || _a === void 0 ? void 0 : _a.variant}`;
1078
+ // @ts-ignore
1079
+ this.iconClasses[variant] = !!((_b = this.item.label) === null || _b === void 0 ? void 0 : _b.variant);
1080
+ const labelClass = (_c = this.item.label) === null || _c === void 0 ? void 0 : _c.class;
1081
+ // @ts-ignore
1082
+ this.iconClasses[labelClass] = !!labelClass;
1083
+ return this.iconClasses;
1084
+ }
1085
+ }
1086
+ AppSidebarNavLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLabelComponent, deps: [{ token: SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Component });
1087
+ AppSidebarNavLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavLabelComponent, selector: "app-sidebar-nav-label, cui-sidebar-nav-label", inputs: { item: "item" }, ngImport: i0, template: "<a [ngClass]=\"getItemClass()\"\r\n href=\"{{item.url}}\"\r\n [appHtmlAttr]=\"item.attributes\">\r\n <i *ngIf=\"helper.hasIcon(item)\" [ngClass]=\"getLabelIconClass()\"></i>\r\n <ng-container>{{item.name}}</ng-container>\r\n <span *ngIf=\"helper.hasBadge(item)\" [ngClass]=\"item | appSidebarNavBadge\">{{ item.badge?.text }}</span>\r\n</a>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "appSidebarNavBadge": AppSidebarNavBadgePipe } });
1088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLabelComponent, decorators: [{
1089
+ type: Component,
1090
+ args: [{ selector: 'app-sidebar-nav-label, cui-sidebar-nav-label', template: "<a [ngClass]=\"getItemClass()\"\r\n href=\"{{item.url}}\"\r\n [appHtmlAttr]=\"item.attributes\">\r\n <i *ngIf=\"helper.hasIcon(item)\" [ngClass]=\"getLabelIconClass()\"></i>\r\n <ng-container>{{item.name}}</ng-container>\r\n <span *ngIf=\"helper.hasBadge(item)\" [ngClass]=\"item | appSidebarNavBadge\">{{ item.badge?.text }}</span>\r\n</a>\r\n" }]
1091
+ }], ctorParameters: function () { return [{ type: SidebarNavHelper }]; }, propDecorators: { item: [{
1092
+ type: Input
1093
+ }] } });
1094
+
1095
+ class AppSidebarNavIconPipe {
1096
+ transform(item, args) {
1097
+ const classes = {
1098
+ 'nav-icon': true
1099
+ };
1100
+ const icon = item.icon;
1101
+ classes[icon] = !!item.icon;
1102
+ return classes;
1103
+ }
1104
+ }
1105
+ AppSidebarNavIconPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavIconPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1106
+ AppSidebarNavIconPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavIconPipe, name: "appSidebarNavIcon" });
1107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavIconPipe, decorators: [{
1108
+ type: Pipe,
1109
+ args: [{
1110
+ name: 'appSidebarNavIcon'
1111
+ }]
1112
+ }] });
1113
+
1114
+ class AppSidebarNavLinkPipe {
1115
+ transform(item) {
1116
+ const classes = { 'nav-link': true };
1117
+ const disabled = item.attributes && item.attributes.disabled;
1118
+ classes['disabled'] = disabled;
1119
+ classes['btn-link'] = disabled;
1120
+ classes[`nav-link-${item.variant}`] = !!item.variant;
1121
+ return classes;
1122
+ }
1123
+ }
1124
+ AppSidebarNavLinkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLinkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1125
+ AppSidebarNavLinkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLinkPipe, name: "appSidebarNavLink" });
1126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLinkPipe, decorators: [{
1127
+ type: Pipe,
1128
+ args: [{
1129
+ name: 'appSidebarNavLink'
1130
+ }]
1131
+ }] });
1132
+
1133
+ class AppSidebarNavLinkContentComponent {
1134
+ constructor(helper) {
1135
+ this.helper = helper;
1136
+ this.item = {};
1137
+ }
1138
+ ngOnInit() { }
1139
+ ngOnDestroy() { }
1140
+ }
1141
+ AppSidebarNavLinkContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLinkContentComponent, deps: [{ token: SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Component });
1142
+ AppSidebarNavLinkContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavLinkContentComponent, selector: "app-sidebar-nav-link-content, cui-sidebar-nav-link-content", inputs: { item: "item" }, providers: [SidebarNavHelper], ngImport: i0, template: `
1143
+ <ng-container *ngIf="true">
1144
+ <i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
1145
+ <ng-container>{{item?.name}}</ng-container>
1146
+ <span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item?.badge?.text }}</span>
1147
+ </ng-container>
1148
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "appSidebarNavIcon": AppSidebarNavIconPipe, "appSidebarNavBadge": AppSidebarNavBadgePipe } });
1149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLinkContentComponent, decorators: [{
1150
+ type: Component,
1151
+ args: [{
1152
+ selector: 'app-sidebar-nav-link-content, cui-sidebar-nav-link-content',
1153
+ template: `
1154
+ <ng-container *ngIf="true">
1155
+ <i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
1156
+ <ng-container>{{item?.name}}</ng-container>
1157
+ <span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item?.badge?.text }}</span>
1158
+ </ng-container>
1159
+ `,
1160
+ providers: [SidebarNavHelper]
1161
+ }]
1162
+ }], ctorParameters: function () { return [{ type: SidebarNavHelper }]; }, propDecorators: { item: [{
1163
+ type: Input
1164
+ }] } });
1165
+ class AppSidebarNavLinkComponent {
1166
+ constructor(router) {
1167
+ this.router = router;
1168
+ this.linkClick = new EventEmitter();
1169
+ this.navigationEndObservable = router.events.pipe(filter(event => {
1170
+ return event instanceof NavigationEnd;
1171
+ }));
1172
+ }
1173
+ set item(item) {
1174
+ this._Item = JSON.parse(JSON.stringify(item));
1175
+ }
1176
+ get item() {
1177
+ return this._Item;
1178
+ }
1179
+ ngOnInit() {
1180
+ // @ts-ignore
1181
+ this.url = typeof this.item.url === 'string' ? this.item.url : this.router.serializeUrl(this.router.createUrlTree(this.item.url));
1182
+ this.linkType = this.getLinkType();
1183
+ this.href = this.isDisabled() ? '' : (this.item.href || this.url);
1184
+ this.linkActive = this.router.url.split(/[?#(;]/)[0] === this.href.split(/[?#(;]/)[0];
1185
+ this.navSubscription = this.navigationEndObservable.subscribe(event => {
1186
+ const itemUrlArray = this.href.split(/[?#(;]/)[0].split('/');
1187
+ const urlArray = event.urlAfterRedirects.split(/[?#(;]/)[0].split('/');
1188
+ this.linkActive = itemUrlArray.every((value, index) => value === urlArray[index]);
1189
+ });
1190
+ }
1191
+ ngOnDestroy() {
1192
+ this.navSubscription.unsubscribe();
1193
+ }
1194
+ getLinkType() {
1195
+ return this.isDisabled() ? 'disabled' : this.isExternalLink() ? 'external' : 'link';
1196
+ }
1197
+ isDisabled() {
1198
+ return (this.item.attributes && this.item.attributes.disabled) ? true : null;
1199
+ }
1200
+ isExternalLink() {
1201
+ return !!this.item.href || this.url.substring(0, 4) === 'http';
1202
+ }
1203
+ linkClicked() {
1204
+ this.linkClick.emit();
1205
+ }
1206
+ }
1207
+ AppSidebarNavLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLinkComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
1208
+ AppSidebarNavLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavLinkComponent, selector: "app-sidebar-nav-link, cui-sidebar-nav-link", inputs: { item: "item" }, outputs: { linkClick: "linkClick" }, providers: [SidebarNavHelper], ngImport: i0, template: "<ng-container [ngSwitch]=\"linkType\">\r\n <a *ngSwitchCase=\"'disabled'\"\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n <a *ngSwitchCase=\"'external'\"\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [href]=\"href\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n (click)=\"linkClicked()\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n <a *ngSwitchDefault\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n [target]=\"item.attributes?.target\"\r\n [queryParams]=\"item.linkProps?.queryParams\"\r\n [fragment]=\"item.linkProps?.fragment\"\r\n [queryParamsHandling]=\"item.linkProps?.queryParamsHandling\"\r\n [preserveFragment]=\"!!item.linkProps?.preserveFragment\"\r\n [skipLocationChange]=\"!!item.linkProps?.skipLocationChange\"\r\n [replaceUrl]=\"!!item.linkProps?.replaceUrl\"\r\n [state]=\"item.linkProps?.state\"\r\n [routerLink]=\"item.url\"\r\n [routerLinkActive]=\"item.linkProps?.routerLinkActive || 'active'\"\r\n [routerLinkActiveOptions]=\"item.linkProps?.routerLinkActiveOptions ?? {exact: false}\"\r\n [class.active]=\"linkActive && !item.linkProps?.routerLinkActiveOptions\"\r\n (click)=\"linkClicked()\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n</ng-container>\r\n", components: [{ type: AppSidebarNavLinkContentComponent, selector: "app-sidebar-nav-link-content, cui-sidebar-nav-link-content", inputs: ["item"] }], directives: [{ type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], pipes: { "appSidebarNavLink": AppSidebarNavLinkPipe } });
1209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavLinkComponent, decorators: [{
1210
+ type: Component,
1211
+ args: [{ selector: 'app-sidebar-nav-link, cui-sidebar-nav-link', providers: [SidebarNavHelper], template: "<ng-container [ngSwitch]=\"linkType\">\r\n <a *ngSwitchCase=\"'disabled'\"\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n <a *ngSwitchCase=\"'external'\"\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [href]=\"href\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n (click)=\"linkClicked()\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n <a *ngSwitchDefault\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n [target]=\"item.attributes?.target\"\r\n [queryParams]=\"item.linkProps?.queryParams\"\r\n [fragment]=\"item.linkProps?.fragment\"\r\n [queryParamsHandling]=\"item.linkProps?.queryParamsHandling\"\r\n [preserveFragment]=\"!!item.linkProps?.preserveFragment\"\r\n [skipLocationChange]=\"!!item.linkProps?.skipLocationChange\"\r\n [replaceUrl]=\"!!item.linkProps?.replaceUrl\"\r\n [state]=\"item.linkProps?.state\"\r\n [routerLink]=\"item.url\"\r\n [routerLinkActive]=\"item.linkProps?.routerLinkActive || 'active'\"\r\n [routerLinkActiveOptions]=\"item.linkProps?.routerLinkActiveOptions ?? {exact: false}\"\r\n [class.active]=\"linkActive && !item.linkProps?.routerLinkActiveOptions\"\r\n (click)=\"linkClicked()\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n</ng-container>\r\n" }]
1212
+ }], ctorParameters: function () { return [{ type: i1.Router }]; }, propDecorators: { item: [{
1213
+ type: Input
1214
+ }], linkClick: [{
1215
+ type: Output
1216
+ }] } });
1217
+
1218
+ class NavDropdownDirective {
1219
+ constructor(el) {
1220
+ this.el = el;
1221
+ }
1222
+ toggle() {
1223
+ this.el.nativeElement.classList.toggle('open');
1224
+ }
1225
+ }
1226
+ NavDropdownDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: NavDropdownDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1227
+ NavDropdownDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: NavDropdownDirective, selector: "[appNavDropdown]", ngImport: i0 });
1228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: NavDropdownDirective, decorators: [{
1229
+ type: Directive,
1230
+ args: [{
1231
+ selector: '[appNavDropdown]'
1232
+ }]
1233
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1234
+ /**
1235
+ * Allows the dropdown to be toggled via click.
1236
+ */
1237
+ class NavDropdownToggleDirective {
1238
+ constructor(dropdown) {
1239
+ this.dropdown = dropdown;
1240
+ }
1241
+ toggleOpen($event) {
1242
+ $event.preventDefault();
1243
+ this.dropdown.toggle();
1244
+ }
1245
+ }
1246
+ NavDropdownToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: NavDropdownToggleDirective, deps: [{ token: NavDropdownDirective }], target: i0.ɵɵFactoryTarget.Directive });
1247
+ NavDropdownToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: NavDropdownToggleDirective, selector: "[appNavDropdownToggle]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0 });
1248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: NavDropdownToggleDirective, decorators: [{
1249
+ type: Directive,
1250
+ args: [{
1251
+ selector: '[appNavDropdownToggle]'
1252
+ }]
1253
+ }], ctorParameters: function () { return [{ type: NavDropdownDirective }]; }, propDecorators: { toggleOpen: [{
1254
+ type: HostListener,
1255
+ args: ['click', ['$event']]
1256
+ }] } });
1257
+
1258
+ class AppSidebarNavItemClassPipe {
1259
+ constructor(helper) {
1260
+ this.helper = helper;
1261
+ }
1262
+ transform(item, ...args) {
1263
+ const itemType = this.helper.itemType(item);
1264
+ let itemClass;
1265
+ if (['divider', 'title'].includes(itemType)) {
1266
+ itemClass = `nav-${itemType}`;
1267
+ }
1268
+ else if (itemType === 'dropdown') {
1269
+ itemClass = 'nav-item nav-dropdown';
1270
+ }
1271
+ else {
1272
+ itemClass = 'nav-item';
1273
+ }
1274
+ return item.class ? `${itemClass} ${item.class}` : itemClass;
1275
+ }
1276
+ }
1277
+ AppSidebarNavItemClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavItemClassPipe, deps: [{ token: SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Pipe });
1278
+ AppSidebarNavItemClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavItemClassPipe, name: "appSidebarNavItemClass" });
1279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavItemClassPipe, decorators: [{
1280
+ type: Pipe,
1281
+ args: [{
1282
+ name: 'appSidebarNavItemClass'
1283
+ }]
1284
+ }], ctorParameters: function () { return [{ type: SidebarNavHelper }]; } });
1285
+
1286
+ class AppSidebarNavItemsComponent {
1287
+ constructor(document, renderer, router, helper) {
1288
+ this.document = document;
1289
+ this.renderer = renderer;
1290
+ this.router = router;
1291
+ this.helper = helper;
1292
+ this._items = [];
1293
+ }
1294
+ set items(items) {
1295
+ this._items = [...items];
1296
+ }
1297
+ get items() {
1298
+ return this._items;
1299
+ }
1300
+ hideMobile() {
1301
+ if (this.document.body.classList.contains('sidebar-show')) {
1302
+ this.renderer.removeClass(this.document.body, 'sidebar-show');
1303
+ }
1304
+ }
1305
+ }
1306
+ AppSidebarNavItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavItemsComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: i1.Router }, { token: SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Component });
1307
+ AppSidebarNavItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: { items: "items" }, ngImport: i0, template: `
1308
+ <ng-container *ngFor="let item of items">
1309
+ <ng-container [ngSwitch]="helper.itemType(item)">
1310
+ <app-sidebar-nav-dropdown
1311
+ *ngSwitchCase="'dropdown'"
1312
+ [item]="item"
1313
+ [class.open]="helper.isActive(router, item)"
1314
+ [ngClass]="item | appSidebarNavItemClass"
1315
+ appNavDropdown
1316
+ routerLinkActive="open">
1317
+ </app-sidebar-nav-dropdown>
1318
+ <app-sidebar-nav-divider
1319
+ *ngSwitchCase="'divider'"
1320
+ [item]="item"
1321
+ [ngClass]="item | appSidebarNavItemClass"
1322
+ [appHtmlAttr]="item.attributes">
1323
+ </app-sidebar-nav-divider>
1324
+ <app-sidebar-nav-title
1325
+ *ngSwitchCase="'title'"
1326
+ [item]="item"
1327
+ [ngClass]="item | appSidebarNavItemClass"
1328
+ [appHtmlAttr]="item.attributes">
1329
+ </app-sidebar-nav-title>
1330
+ <app-sidebar-nav-label
1331
+ *ngSwitchCase="'label'"
1332
+ [item]="item"
1333
+ class="nav-item"
1334
+ [ngClass]="item | appSidebarNavItemClass">
1335
+ </app-sidebar-nav-label>
1336
+ <ng-container
1337
+ *ngSwitchCase="'empty'">
1338
+ </ng-container>
1339
+ <app-sidebar-nav-link
1340
+ *ngSwitchDefault
1341
+ [item]="item"
1342
+ class="nav-item"
1343
+ [ngClass]="item | appSidebarNavItemClass"
1344
+ (linkClick)="hideMobile()"
1345
+ >
1346
+ </app-sidebar-nav-link>
1347
+ </ng-container>
1348
+ </ng-container>
1349
+ `, isInline: true, components: [{ type: i0.forwardRef(function () { return AppSidebarNavDropdownComponent; }), selector: "app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown", inputs: ["item"] }, { type: i0.forwardRef(function () { return AppSidebarNavDividerComponent; }), selector: "app-sidebar-nav-divider, cui-sidebar-nav-divider", inputs: ["item"] }, { type: i0.forwardRef(function () { return AppSidebarNavTitleComponent; }), selector: "app-sidebar-nav-title, cui-sidebar-nav-title", inputs: ["item"] }, { type: i0.forwardRef(function () { return AppSidebarNavLabelComponent; }), selector: "app-sidebar-nav-label, cui-sidebar-nav-label", inputs: ["item"] }, { type: i0.forwardRef(function () { return AppSidebarNavLinkComponent; }), selector: "app-sidebar-nav-link, cui-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }], directives: [{ type: i0.forwardRef(function () { return i2.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0.forwardRef(function () { return i2.NgSwitch; }), selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i0.forwardRef(function () { return i2.NgSwitchCase; }), selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i0.forwardRef(function () { return NavDropdownDirective; }), selector: "[appNavDropdown]" }, { type: i0.forwardRef(function () { return i1.RouterLinkActive; }), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { type: i0.forwardRef(function () { return i2.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0.forwardRef(function () { return HtmlAttributesDirective; }), selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i0.forwardRef(function () { return i2.NgSwitchDefault; }), selector: "[ngSwitchDefault]" }], pipes: { "appSidebarNavItemClass": i0.forwardRef(function () { return AppSidebarNavItemClassPipe; }) } });
1350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavItemsComponent, decorators: [{
1351
+ type: Component,
1352
+ args: [{
1353
+ selector: 'app-sidebar-nav-items, cui-sidebar-nav-items',
1354
+ template: `
1355
+ <ng-container *ngFor="let item of items">
1356
+ <ng-container [ngSwitch]="helper.itemType(item)">
1357
+ <app-sidebar-nav-dropdown
1358
+ *ngSwitchCase="'dropdown'"
1359
+ [item]="item"
1360
+ [class.open]="helper.isActive(router, item)"
1361
+ [ngClass]="item | appSidebarNavItemClass"
1362
+ appNavDropdown
1363
+ routerLinkActive="open">
1364
+ </app-sidebar-nav-dropdown>
1365
+ <app-sidebar-nav-divider
1366
+ *ngSwitchCase="'divider'"
1367
+ [item]="item"
1368
+ [ngClass]="item | appSidebarNavItemClass"
1369
+ [appHtmlAttr]="item.attributes">
1370
+ </app-sidebar-nav-divider>
1371
+ <app-sidebar-nav-title
1372
+ *ngSwitchCase="'title'"
1373
+ [item]="item"
1374
+ [ngClass]="item | appSidebarNavItemClass"
1375
+ [appHtmlAttr]="item.attributes">
1376
+ </app-sidebar-nav-title>
1377
+ <app-sidebar-nav-label
1378
+ *ngSwitchCase="'label'"
1379
+ [item]="item"
1380
+ class="nav-item"
1381
+ [ngClass]="item | appSidebarNavItemClass">
1382
+ </app-sidebar-nav-label>
1383
+ <ng-container
1384
+ *ngSwitchCase="'empty'">
1385
+ </ng-container>
1386
+ <app-sidebar-nav-link
1387
+ *ngSwitchDefault
1388
+ [item]="item"
1389
+ class="nav-item"
1390
+ [ngClass]="item | appSidebarNavItemClass"
1391
+ (linkClick)="hideMobile()"
1392
+ >
1393
+ </app-sidebar-nav-link>
1394
+ </ng-container>
1395
+ </ng-container>
1396
+ `
1397
+ }]
1398
+ }], ctorParameters: function () {
1399
+ return [{ type: undefined, decorators: [{
1400
+ type: Inject,
1401
+ args: [DOCUMENT]
1402
+ }] }, { type: i0.Renderer2 }, { type: i1.Router }, { type: SidebarNavHelper }];
1403
+ }, propDecorators: { items: [{
1404
+ type: Input
1405
+ }] } });
1406
+ class AppSidebarNavDropdownComponent {
1407
+ constructor(helper) {
1408
+ this.helper = helper;
1409
+ this.item = {};
1410
+ }
1411
+ }
1412
+ AppSidebarNavDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavDropdownComponent, deps: [{ token: SidebarNavHelper }], target: i0.ɵɵFactoryTarget.Component });
1413
+ AppSidebarNavDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavDropdownComponent, selector: "app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown", inputs: { item: "item" }, providers: [SidebarNavHelper], ngImport: i0, template: `
1414
+ <a class="nav-link nav-dropdown-toggle"
1415
+ appNavDropdownToggle
1416
+ [appHtmlAttr]="item.attributes">
1417
+ <i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
1418
+ <ng-container>{{item.name}}</ng-container>
1419
+ <span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item.badge?.text }}</span>
1420
+ </a>
1421
+ <app-sidebar-nav-items
1422
+ class="nav-dropdown-items"
1423
+ [items]="item.children ?? []">
1424
+ </app-sidebar-nav-items>
1425
+ `, isInline: true, styles: [".nav-dropdown-toggle{cursor:pointer}\n", ".nav-dropdown-items{display:block}\n"], components: [{ type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: ["items"] }], directives: [{ type: NavDropdownToggleDirective, selector: "[appNavDropdownToggle]" }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "appSidebarNavIcon": AppSidebarNavIconPipe, "appSidebarNavBadge": AppSidebarNavBadgePipe } });
1426
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavDropdownComponent, decorators: [{
1427
+ type: Component,
1428
+ args: [{
1429
+ selector: 'app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown',
1430
+ template: `
1431
+ <a class="nav-link nav-dropdown-toggle"
1432
+ appNavDropdownToggle
1433
+ [appHtmlAttr]="item.attributes">
1434
+ <i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
1435
+ <ng-container>{{item.name}}</ng-container>
1436
+ <span *ngIf="helper.hasBadge(item)" [ngClass]="item | appSidebarNavBadge">{{ item.badge?.text }}</span>
1437
+ </a>
1438
+ <app-sidebar-nav-items
1439
+ class="nav-dropdown-items"
1440
+ [items]="item.children ?? []">
1441
+ </app-sidebar-nav-items>
1442
+ `,
1443
+ styles: [
1444
+ '.nav-dropdown-toggle { cursor: pointer; }',
1445
+ '.nav-dropdown-items { display: block; }'
1446
+ ],
1447
+ providers: [SidebarNavHelper]
1448
+ }]
1449
+ }], ctorParameters: function () { return [{ type: SidebarNavHelper }]; }, propDecorators: { item: [{
1450
+ type: Input
1451
+ }] } });
1452
+
1453
+ class AppSidebarNavComponent {
1454
+ constructor(router) {
1455
+ this.router = router;
1456
+ this.navItems = [];
1457
+ this.sidebarNavClass = true;
1458
+ this.role = 'nav';
1459
+ this.navItemsArray = [];
1460
+ }
1461
+ ngOnChanges(changes) {
1462
+ this.navItemsArray = Array.isArray(this.navItems) ? this.navItems.slice() : [];
1463
+ }
1464
+ }
1465
+ AppSidebarNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
1466
+ AppSidebarNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarNavComponent, selector: "app-sidebar-nav, cui-sidebar-nav", inputs: { navItems: "navItems", role: "role" }, host: { properties: { "class.sidebar-nav": "this.sidebarNavClass", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "<app-sidebar-nav-items\n class=\"nav\"\n [items]=\"navItemsArray\">\n</app-sidebar-nav-items>\n", components: [{ type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: ["items"] }] });
1467
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarNavComponent, decorators: [{
1468
+ type: Component,
1469
+ args: [{ selector: 'app-sidebar-nav, cui-sidebar-nav', template: "<app-sidebar-nav-items\n class=\"nav\"\n [items]=\"navItemsArray\">\n</app-sidebar-nav-items>\n" }]
1470
+ }], ctorParameters: function () { return [{ type: i1.Router }]; }, propDecorators: { navItems: [{
1471
+ type: Input
1472
+ }], sidebarNavClass: [{
1473
+ type: HostBinding,
1474
+ args: ['class.sidebar-nav']
1475
+ }], role: [{
1476
+ type: HostBinding,
1477
+ args: ['attr.role']
1478
+ }, {
1479
+ type: Input
1480
+ }] } });
1481
+
1482
+ class AppSidebarMinimizerComponent {
1483
+ constructor(sidebarService) {
1484
+ this.sidebarService = sidebarService;
1485
+ this.role = 'button';
1486
+ this.sidebarMinimizerClass = true;
1487
+ }
1488
+ toggleOpen($event) {
1489
+ $event.preventDefault();
1490
+ this.sidebarService.toggle({ minimize: 'toggle' });
1491
+ }
1492
+ }
1493
+ AppSidebarMinimizerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarMinimizerComponent, deps: [{ token: AppSidebarService }], target: i0.ɵɵFactoryTarget.Component });
1494
+ AppSidebarMinimizerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarMinimizerComponent, selector: "app-sidebar-minimizer, cui-sidebar-minimizer", inputs: { role: "role" }, host: { listeners: { "click": "toggleOpen($event)" }, properties: { "attr.role": "this.role", "class.sidebar-minimizer": "this.sidebarMinimizerClass" } }, ngImport: i0, template: ``, isInline: true });
1495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarMinimizerComponent, decorators: [{
1496
+ type: Component,
1497
+ args: [{
1498
+ selector: 'app-sidebar-minimizer, cui-sidebar-minimizer',
1499
+ template: ``
1500
+ }]
1501
+ }], ctorParameters: function () { return [{ type: AppSidebarService }]; }, propDecorators: { role: [{
1502
+ type: HostBinding,
1503
+ args: ['attr.role']
1504
+ }, {
1505
+ type: Input
1506
+ }], sidebarMinimizerClass: [{
1507
+ type: HostBinding,
1508
+ args: ['class.sidebar-minimizer']
1509
+ }], toggleOpen: [{
1510
+ type: HostListener,
1511
+ args: ['click', ['$event']]
1512
+ }] } });
1513
+
1514
+ class AppSidebarFooterComponent {
1515
+ constructor() {
1516
+ this.sidebarFooterClass = true;
1517
+ }
1518
+ }
1519
+ AppSidebarFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1520
+ AppSidebarFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarFooterComponent, selector: "app-sidebar-footer, cui-sidebar-footer", host: { properties: { "class.sidebar-footer": "this.sidebarFooterClass" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
1521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarFooterComponent, decorators: [{
1522
+ type: Component,
1523
+ args: [{
1524
+ selector: 'app-sidebar-footer, cui-sidebar-footer',
1525
+ template: `<ng-content></ng-content>`
1526
+ }]
1527
+ }], ctorParameters: function () { return []; }, propDecorators: { sidebarFooterClass: [{
1528
+ type: HostBinding,
1529
+ args: ['class.sidebar-footer']
1530
+ }] } });
1531
+
1532
+ class AppSidebarFormComponent {
1533
+ constructor() {
1534
+ this.sidebarFormClass = true;
1535
+ }
1536
+ }
1537
+ AppSidebarFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1538
+ AppSidebarFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarFormComponent, selector: "app-sidebar-form, cui-sidebar-form", host: { properties: { "class.sidebar-form": "this.sidebarFormClass" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
1539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarFormComponent, decorators: [{
1540
+ type: Component,
1541
+ args: [{
1542
+ selector: 'app-sidebar-form, cui-sidebar-form',
1543
+ template: `<ng-content></ng-content>`
1544
+ }]
1545
+ }], ctorParameters: function () { return []; }, propDecorators: { sidebarFormClass: [{
1546
+ type: HostBinding,
1547
+ args: ['class.sidebar-form']
1548
+ }] } });
1549
+
1550
+ class AppSidebarHeaderComponent {
1551
+ constructor() {
1552
+ this.sidebarHeaderClass = true;
1553
+ }
1554
+ }
1555
+ AppSidebarHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1556
+ AppSidebarHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: AppSidebarHeaderComponent, selector: "app-sidebar-header, cui-sidebar-header", host: { properties: { "class.sidebar-header": "this.sidebarHeaderClass" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
1557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarHeaderComponent, decorators: [{
1558
+ type: Component,
1559
+ args: [{
1560
+ selector: 'app-sidebar-header, cui-sidebar-header',
1561
+ template: `<ng-content></ng-content>`
1562
+ }]
1563
+ }], ctorParameters: function () { return []; }, propDecorators: { sidebarHeaderClass: [{
1564
+ type: HostBinding,
1565
+ args: ['class.sidebar-header']
1566
+ }] } });
1567
+
1568
+ class AppSidebarModule {
1569
+ }
1570
+ AppSidebarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1571
+ AppSidebarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarModule, declarations: [AppSidebarFooterComponent,
1572
+ AppSidebarFormComponent,
1573
+ AppSidebarHeaderComponent,
1574
+ AppSidebarMinimizerComponent,
1575
+ AppSidebarMinimizerComponent,
1576
+ AppSidebarComponent,
1577
+ AppSidebarNavItemsComponent,
1578
+ AppSidebarNavComponent,
1579
+ AppSidebarNavDividerComponent,
1580
+ AppSidebarNavDropdownComponent,
1581
+ AppSidebarNavLinkComponent,
1582
+ AppSidebarNavLinkContentComponent,
1583
+ AppSidebarNavTitleComponent,
1584
+ NavDropdownDirective,
1585
+ NavDropdownToggleDirective,
1586
+ AppSidebarNavLabelComponent,
1587
+ AppSidebarNavIconPipe,
1588
+ AppSidebarNavBadgePipe,
1589
+ AppSidebarNavLinkPipe,
1590
+ AppSidebarNavItemClassPipe], imports: [CommonModule,
1591
+ RouterModule,
1592
+ LayoutModule], exports: [AppSidebarFooterComponent,
1593
+ AppSidebarFormComponent,
1594
+ AppSidebarHeaderComponent,
1595
+ AppSidebarMinimizerComponent,
1596
+ AppSidebarComponent,
1597
+ // AppSidebarNavItemsComponent,
1598
+ AppSidebarNavComponent] });
1599
+ AppSidebarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarModule, providers: [
1600
+ SidebarNavHelper,
1601
+ AppSidebarService
1602
+ ], imports: [[
1603
+ CommonModule,
1604
+ RouterModule,
1605
+ LayoutModule
1606
+ ]] });
1607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppSidebarModule, decorators: [{
1608
+ type: NgModule,
1609
+ args: [{
1610
+ imports: [
1611
+ CommonModule,
1612
+ RouterModule,
1613
+ LayoutModule
1614
+ ],
1615
+ exports: [
1616
+ AppSidebarFooterComponent,
1617
+ AppSidebarFormComponent,
1618
+ AppSidebarHeaderComponent,
1619
+ AppSidebarMinimizerComponent,
1620
+ AppSidebarComponent,
1621
+ // AppSidebarNavItemsComponent,
1622
+ AppSidebarNavComponent,
1623
+ // AppSidebarNavDividerComponent,
1624
+ // AppSidebarNavDropdownComponent,
1625
+ // AppSidebarNavLabelComponent,
1626
+ // AppSidebarNavLinkComponent,
1627
+ // AppSidebarNavLinkContentComponent,
1628
+ // AppSidebarNavTitleComponent,
1629
+ // NavDropdownDirective,
1630
+ // NavDropdownToggleDirective,
1631
+ ],
1632
+ declarations: [
1633
+ AppSidebarFooterComponent,
1634
+ AppSidebarFormComponent,
1635
+ AppSidebarHeaderComponent,
1636
+ AppSidebarMinimizerComponent,
1637
+ AppSidebarMinimizerComponent,
1638
+ AppSidebarComponent,
1639
+ AppSidebarNavItemsComponent,
1640
+ AppSidebarNavComponent,
1641
+ AppSidebarNavDividerComponent,
1642
+ AppSidebarNavDropdownComponent,
1643
+ AppSidebarNavLinkComponent,
1644
+ AppSidebarNavLinkContentComponent,
1645
+ AppSidebarNavTitleComponent,
1646
+ NavDropdownDirective,
1647
+ NavDropdownToggleDirective,
1648
+ AppSidebarNavLabelComponent,
1649
+ AppSidebarNavIconPipe,
1650
+ AppSidebarNavBadgePipe,
1651
+ AppSidebarNavLinkPipe,
1652
+ AppSidebarNavItemClassPipe
1653
+ ],
1654
+ providers: [
1655
+ SidebarNavHelper,
1656
+ AppSidebarService
1657
+ ]
1658
+ }]
1659
+ }] });
1660
+
1661
+ // export { NavDropdownDirective, NavDropdownToggleDirective } from './app-sidebar-nav.directive';
1662
+ // export { AppSidebarNavDividerComponent } from './app-sidebar-nav/app-sidebar-nav-divider.component';
1663
+ // export { AppSidebarNavDropdownComponent } from './app-sidebar-nav/app-sidebar-nav-dropdown.component';
1664
+ // export { AppSidebarNavItemsComponent } from './app-sidebar-nav/app-sidebar-nav-items.component';
1665
+ // export { AppSidebarNavLinkComponent, AppSidebarNavLinkContentComponent } from './app-sidebar-nav/app-sidebar-nav-link.component';
1666
+ // export { AppSidebarNavTitleComponent } from './app-sidebar-nav/app-sidebar-nav-title.component';
1667
+ // export { AppSidebarNavLabelComponent } from './app-sidebar-nav/app-sidebar-nav-label.component';
1668
+
1669
+ /*
1670
+ * Public API Surface of @coreui/angular
1671
+ */
1672
+ // export * from './lib/shared/index';
1673
+ // export * from './lib/coreui.module';
1674
+
1675
+ /**
1676
+ * Generated bundle index. Do not edit.
1677
+ */
1678
+
1679
+ export { AppAsideComponent, AppAsideModule, AppBreadcrumbComponent, AppBreadcrumbModule, AppFooterComponent, AppFooterModule, AppHeaderComponent, AppHeaderModule, AppSidebarComponent, AppSidebarFooterComponent, AppSidebarFormComponent, AppSidebarHeaderComponent, AppSidebarMinimizerComponent, AppSidebarModule, AppSidebarNavComponent, CuiBreadcrumbComponent, SidebarNavHelper };
1680
+ //# sourceMappingURL=coreui-angular.mjs.map