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