@coreui/angular 2.12.0 → 2.13.2
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 +4 -4
- package/{esm2015/coreui-angular.js → esm2020/coreui-angular.mjs} +0 -0
- package/{esm2015/lib/aside/app-aside.component.js → esm2020/lib/aside/app-aside.component.mjs} +3 -3
- package/{esm2015/lib/aside/app-aside.module.js → esm2020/lib/aside/app-aside.module.mjs} +4 -4
- package/{esm2015/lib/aside/index.js → esm2020/lib/aside/index.mjs} +0 -0
- package/{esm2015/lib/aside/public_api.js → esm2020/lib/aside/public_api.mjs} +0 -0
- package/{esm2015/lib/breadcrumb/app-breadcrumb.component.js → esm2020/lib/breadcrumb/app-breadcrumb.component.mjs} +4 -4
- package/{esm2015/lib/breadcrumb/app-breadcrumb.module.js → esm2020/lib/breadcrumb/app-breadcrumb.module.mjs} +4 -4
- package/{esm2015/lib/breadcrumb/app-breadcrumb.service.js → esm2020/lib/breadcrumb/app-breadcrumb.service.mjs} +3 -3
- package/{esm2015/lib/breadcrumb/cui-breadcrumb.component.js → esm2020/lib/breadcrumb/cui-breadcrumb.component.mjs} +5 -9
- package/{esm2015/lib/breadcrumb/index.js → esm2020/lib/breadcrumb/index.mjs} +0 -0
- package/{esm2015/lib/breadcrumb/public_api.js → esm2020/lib/breadcrumb/public_api.mjs} +0 -0
- package/{esm2015/lib/footer/app-footer.component.js → esm2020/lib/footer/app-footer.component.mjs} +3 -3
- package/{esm2015/lib/footer/app-footer.module.js → esm2020/lib/footer/app-footer.module.mjs} +4 -4
- package/{esm2015/lib/footer/index.js → esm2020/lib/footer/index.mjs} +0 -0
- package/{esm2015/lib/footer/public_api.js → esm2020/lib/footer/public_api.mjs} +0 -0
- package/{esm2015/lib/header/app-header.component.js → esm2020/lib/header/app-header.component.mjs} +5 -8
- package/{esm2015/lib/header/app-header.module.js → esm2020/lib/header/app-header.module.mjs} +4 -4
- package/{esm2015/lib/header/index.js → esm2020/lib/header/index.mjs} +0 -0
- package/{esm2015/lib/header/public_api.js → esm2020/lib/header/public_api.mjs} +0 -0
- package/{esm2015/lib/shared/classes.js → esm2020/lib/shared/classes.mjs} +0 -0
- package/{esm2015/lib/shared/index.js → esm2020/lib/shared/index.mjs} +0 -0
- package/{esm2015/lib/shared/layout/layout.directive.js → esm2020/lib/shared/layout/layout.directive.mjs} +21 -21
- package/{esm2015/lib/shared/layout/layout.module.js → esm2020/lib/shared/layout/layout.module.mjs} +4 -4
- package/{esm2015/lib/shared/public_api.js → esm2020/lib/shared/public_api.mjs} +0 -0
- package/{esm2015/lib/shared/replace.js → esm2020/lib/shared/replace.mjs} +0 -0
- package/{esm2015/lib/shared/toggle-classes.js → esm2020/lib/shared/toggle-classes.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-footer.component.js → esm2020/lib/sidebar/app-sidebar-footer.component.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-form.component.js → esm2020/lib/sidebar/app-sidebar-form.component.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-header.component.js → esm2020/lib/sidebar/app-sidebar-header.component.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-minimizer.component.js → esm2020/lib/sidebar/app-sidebar-minimizer.component.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-badge.pipe.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-icon.pipe.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-item-class.pipe.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.mjs} +9 -9
- package/esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.mjs +44 -0
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.mjs} +8 -12
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.pipe.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.js → esm2020/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar-nav.component.js → esm2020/lib/sidebar/app-sidebar-nav.component.mjs} +5 -8
- package/{esm2015/lib/sidebar/app-sidebar-nav.directive.js → esm2020/lib/sidebar/app-sidebar-nav.directive.mjs} +6 -6
- package/{esm2015/lib/sidebar/app-sidebar-nav.js → esm2020/lib/sidebar/app-sidebar-nav.mjs} +0 -0
- package/{esm2015/lib/sidebar/app-sidebar-nav.service.js → esm2020/lib/sidebar/app-sidebar-nav.service.mjs} +6 -6
- package/{esm2015/lib/sidebar/app-sidebar.component.js → esm2020/lib/sidebar/app-sidebar.component.mjs} +3 -3
- package/{esm2015/lib/sidebar/app-sidebar.module.js → esm2020/lib/sidebar/app-sidebar.module.mjs} +4 -4
- package/{esm2015/lib/sidebar/app-sidebar.service.js → esm2020/lib/sidebar/app-sidebar.service.mjs} +3 -3
- package/{esm2015/lib/sidebar/index.js → esm2020/lib/sidebar/index.mjs} +0 -0
- package/{esm2015/lib/sidebar/public_api.js → esm2020/lib/sidebar/public_api.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/coreui-angular.mjs +1680 -0
- package/fesm2015/coreui-angular.mjs.map +1 -0
- package/{fesm2015/coreui-angular.js → fesm2020/coreui-angular.mjs} +144 -162
- package/fesm2020/coreui-angular.mjs.map +1 -0
- package/package.json +23 -10
- package/bundles/coreui-angular.umd.js +0 -2015
- package/bundles/coreui-angular.umd.js.map +0 -1
- package/esm2015/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.js +0 -48
- package/fesm2015/coreui-angular.js.map +0 -1
|
@@ -1,2015 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coreui/angular', ['exports', '@angular/core', '@angular/common', '@angular/router', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coreui = global.coreui || {}, global.coreui.angular = {}), global.ng.core, global.ng.common, global.ng.router, global.rxjs, global.rxjs.operators));
|
|
5
|
-
})(this, (function (exports, i0, i2, i1, rxjs, operators) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
-
|
|
29
|
-
var sidebarCssClasses = [
|
|
30
|
-
'sidebar-show',
|
|
31
|
-
'sidebar-sm-show',
|
|
32
|
-
'sidebar-md-show',
|
|
33
|
-
'sidebar-lg-show',
|
|
34
|
-
'sidebar-xl-show'
|
|
35
|
-
];
|
|
36
|
-
var asideMenuCssClasses = [
|
|
37
|
-
'aside-menu-show',
|
|
38
|
-
'aside-menu-sm-show',
|
|
39
|
-
'aside-menu-md-show',
|
|
40
|
-
'aside-menu-lg-show',
|
|
41
|
-
'aside-menu-xl-show'
|
|
42
|
-
];
|
|
43
|
-
|
|
44
|
-
var RemoveClasses = function (NewClassNames) {
|
|
45
|
-
var MatchClasses = NewClassNames.map(function (Class) { return document.body.classList.contains(Class); });
|
|
46
|
-
return MatchClasses.indexOf(true) !== -1;
|
|
47
|
-
};
|
|
48
|
-
var ToggleClasses = function (Toggle, ClassNames) {
|
|
49
|
-
var Level = ClassNames.indexOf(Toggle);
|
|
50
|
-
var NewClassNames = ClassNames.slice(0, Level + 1);
|
|
51
|
-
if (RemoveClasses(NewClassNames)) {
|
|
52
|
-
NewClassNames.map(function (Class) { return document.body.classList.remove(Class); });
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
document.body.classList.add(Toggle);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
var ClassToggler = /** @class */ (function () {
|
|
59
|
-
function ClassToggler(document, renderer) {
|
|
60
|
-
this.document = document;
|
|
61
|
-
this.renderer = renderer;
|
|
62
|
-
}
|
|
63
|
-
ClassToggler.prototype.removeClasses = function (NewClassNames) {
|
|
64
|
-
var _this = this;
|
|
65
|
-
var MatchClasses = NewClassNames.map(function (Class) { return _this.document.body.classList.contains(Class); });
|
|
66
|
-
return MatchClasses.indexOf(true) !== -1;
|
|
67
|
-
};
|
|
68
|
-
ClassToggler.prototype.toggleClasses = function (Toggle, ClassNames) {
|
|
69
|
-
var _this = this;
|
|
70
|
-
var Level = ClassNames.indexOf(Toggle);
|
|
71
|
-
var NewClassNames = ClassNames.slice(0, Level + 1);
|
|
72
|
-
if (this.removeClasses(NewClassNames)) {
|
|
73
|
-
NewClassNames.map(function (Class) { return _this.renderer.removeClass(_this.document.body, Class); });
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
this.renderer.addClass(this.document.body, Toggle);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
return ClassToggler;
|
|
80
|
-
}());
|
|
81
|
-
ClassToggler.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClassToggler, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
82
|
-
ClassToggler.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClassToggler });
|
|
83
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClassToggler, decorators: [{
|
|
84
|
-
type: i0.Injectable
|
|
85
|
-
}], ctorParameters: function () {
|
|
86
|
-
return [{ type: undefined, decorators: [{
|
|
87
|
-
type: i0.Inject,
|
|
88
|
-
args: [i2.DOCUMENT]
|
|
89
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
90
|
-
} });
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Allows the sidebar to be toggled via click.
|
|
94
|
-
*/
|
|
95
|
-
var SidebarToggleDirective = /** @class */ (function () {
|
|
96
|
-
function SidebarToggleDirective(classToggler) {
|
|
97
|
-
this.classToggler = classToggler;
|
|
98
|
-
this.breakpoint = false;
|
|
99
|
-
}
|
|
100
|
-
SidebarToggleDirective.prototype.ngOnInit = function () {
|
|
101
|
-
this.bp = this.breakpoint;
|
|
102
|
-
};
|
|
103
|
-
SidebarToggleDirective.prototype.toggleOpen = function ($event) {
|
|
104
|
-
$event.preventDefault();
|
|
105
|
-
var cssClass = this.bp ? "sidebar-" + this.bp + "-show" : sidebarCssClasses[0];
|
|
106
|
-
this.classToggler.toggleClasses(cssClass, sidebarCssClasses);
|
|
107
|
-
};
|
|
108
|
-
return SidebarToggleDirective;
|
|
109
|
-
}());
|
|
110
|
-
SidebarToggleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarToggleDirective, deps: [{ token: ClassToggler }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
111
|
-
SidebarToggleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SidebarToggleDirective, selector: "[appSidebarToggler]", inputs: { breakpoint: ["appSidebarToggler", "breakpoint"] }, host: { listeners: { "click": "toggleOpen($event)" } }, providers: [ClassToggler], ngImport: i0__namespace });
|
|
112
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarToggleDirective, decorators: [{
|
|
113
|
-
type: i0.Directive,
|
|
114
|
-
args: [{
|
|
115
|
-
selector: '[appSidebarToggler]',
|
|
116
|
-
providers: [ClassToggler]
|
|
117
|
-
}]
|
|
118
|
-
}], ctorParameters: function () { return [{ type: ClassToggler }]; }, propDecorators: { breakpoint: [{
|
|
119
|
-
type: i0.Input,
|
|
120
|
-
args: ['appSidebarToggler']
|
|
121
|
-
}], toggleOpen: [{
|
|
122
|
-
type: i0.HostListener,
|
|
123
|
-
args: ['click', ['$event']]
|
|
124
|
-
}] } });
|
|
125
|
-
var SidebarMinimizeDirective = /** @class */ (function () {
|
|
126
|
-
function SidebarMinimizeDirective(document, renderer) {
|
|
127
|
-
this.document = document;
|
|
128
|
-
this.renderer = renderer;
|
|
129
|
-
}
|
|
130
|
-
SidebarMinimizeDirective.prototype.toggleOpen = function ($event) {
|
|
131
|
-
$event.preventDefault();
|
|
132
|
-
var body = this.document.body;
|
|
133
|
-
body.classList.contains('sidebar-minimized') ?
|
|
134
|
-
this.renderer.removeClass(body, 'sidebar-minimized') :
|
|
135
|
-
this.renderer.addClass(body, 'sidebar-minimized');
|
|
136
|
-
};
|
|
137
|
-
return SidebarMinimizeDirective;
|
|
138
|
-
}());
|
|
139
|
-
SidebarMinimizeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarMinimizeDirective, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
140
|
-
SidebarMinimizeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SidebarMinimizeDirective, selector: "[appSidebarMinimizer]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0__namespace });
|
|
141
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarMinimizeDirective, decorators: [{
|
|
142
|
-
type: i0.Directive,
|
|
143
|
-
args: [{
|
|
144
|
-
selector: '[appSidebarMinimizer]'
|
|
145
|
-
}]
|
|
146
|
-
}], ctorParameters: function () {
|
|
147
|
-
return [{ type: undefined, decorators: [{
|
|
148
|
-
type: i0.Inject,
|
|
149
|
-
args: [i2.DOCUMENT]
|
|
150
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
151
|
-
}, propDecorators: { toggleOpen: [{
|
|
152
|
-
type: i0.HostListener,
|
|
153
|
-
args: ['click', ['$event']]
|
|
154
|
-
}] } });
|
|
155
|
-
var MobileSidebarToggleDirective = /** @class */ (function () {
|
|
156
|
-
function MobileSidebarToggleDirective(document, renderer) {
|
|
157
|
-
this.document = document;
|
|
158
|
-
this.renderer = renderer;
|
|
159
|
-
}
|
|
160
|
-
MobileSidebarToggleDirective.prototype.toggleOpen = function ($event) {
|
|
161
|
-
$event.preventDefault();
|
|
162
|
-
var body = this.document.body;
|
|
163
|
-
body.classList.contains('sidebar-show') ?
|
|
164
|
-
this.renderer.removeClass(body, 'sidebar-show') :
|
|
165
|
-
this.renderer.addClass(body, 'sidebar-show');
|
|
166
|
-
};
|
|
167
|
-
return MobileSidebarToggleDirective;
|
|
168
|
-
}());
|
|
169
|
-
MobileSidebarToggleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MobileSidebarToggleDirective, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
170
|
-
MobileSidebarToggleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MobileSidebarToggleDirective, selector: "[appMobileSidebarToggler]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0__namespace });
|
|
171
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MobileSidebarToggleDirective, decorators: [{
|
|
172
|
-
type: i0.Directive,
|
|
173
|
-
args: [{
|
|
174
|
-
selector: '[appMobileSidebarToggler]'
|
|
175
|
-
}]
|
|
176
|
-
}], ctorParameters: function () {
|
|
177
|
-
return [{ type: undefined, decorators: [{
|
|
178
|
-
type: i0.Inject,
|
|
179
|
-
args: [i2.DOCUMENT]
|
|
180
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
181
|
-
}, propDecorators: { toggleOpen: [{
|
|
182
|
-
type: i0.HostListener,
|
|
183
|
-
args: ['click', ['$event']]
|
|
184
|
-
}] } });
|
|
185
|
-
/**
|
|
186
|
-
* Allows the off-canvas sidebar to be closed via click.
|
|
187
|
-
*/
|
|
188
|
-
var SidebarOffCanvasCloseDirective = /** @class */ (function () {
|
|
189
|
-
function SidebarOffCanvasCloseDirective(document, renderer) {
|
|
190
|
-
this.document = document;
|
|
191
|
-
this.renderer = renderer;
|
|
192
|
-
}
|
|
193
|
-
SidebarOffCanvasCloseDirective.prototype.toggleOpen = function ($event) {
|
|
194
|
-
$event.preventDefault();
|
|
195
|
-
var body = this.document.body;
|
|
196
|
-
if (body.classList.contains('sidebar-off-canvas')) {
|
|
197
|
-
body.classList.contains('sidebar-show') ?
|
|
198
|
-
this.renderer.removeClass(body, 'sidebar-show') :
|
|
199
|
-
this.renderer.addClass(body, 'sidebar-show');
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
return SidebarOffCanvasCloseDirective;
|
|
203
|
-
}());
|
|
204
|
-
SidebarOffCanvasCloseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarOffCanvasCloseDirective, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
205
|
-
SidebarOffCanvasCloseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SidebarOffCanvasCloseDirective, selector: "[appSidebarClose]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0__namespace });
|
|
206
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarOffCanvasCloseDirective, decorators: [{
|
|
207
|
-
type: i0.Directive,
|
|
208
|
-
args: [{
|
|
209
|
-
selector: '[appSidebarClose]'
|
|
210
|
-
}]
|
|
211
|
-
}], ctorParameters: function () {
|
|
212
|
-
return [{ type: undefined, decorators: [{
|
|
213
|
-
type: i0.Inject,
|
|
214
|
-
args: [i2.DOCUMENT]
|
|
215
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
216
|
-
}, propDecorators: { toggleOpen: [{
|
|
217
|
-
type: i0.HostListener,
|
|
218
|
-
args: ['click', ['$event']]
|
|
219
|
-
}] } });
|
|
220
|
-
var BrandMinimizeDirective = /** @class */ (function () {
|
|
221
|
-
function BrandMinimizeDirective(document, renderer) {
|
|
222
|
-
this.document = document;
|
|
223
|
-
this.renderer = renderer;
|
|
224
|
-
}
|
|
225
|
-
BrandMinimizeDirective.prototype.toggleOpen = function ($event) {
|
|
226
|
-
$event.preventDefault();
|
|
227
|
-
var body = this.document.body;
|
|
228
|
-
body.classList.contains('brand-minimized') ?
|
|
229
|
-
this.renderer.removeClass(body, 'brand-minimized') :
|
|
230
|
-
this.renderer.addClass(body, 'brand-minimized');
|
|
231
|
-
};
|
|
232
|
-
return BrandMinimizeDirective;
|
|
233
|
-
}());
|
|
234
|
-
BrandMinimizeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BrandMinimizeDirective, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
235
|
-
BrandMinimizeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BrandMinimizeDirective, selector: "[appBrandMinimizer]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0__namespace });
|
|
236
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BrandMinimizeDirective, decorators: [{
|
|
237
|
-
type: i0.Directive,
|
|
238
|
-
args: [{
|
|
239
|
-
selector: '[appBrandMinimizer]'
|
|
240
|
-
}]
|
|
241
|
-
}], ctorParameters: function () {
|
|
242
|
-
return [{ type: undefined, decorators: [{
|
|
243
|
-
type: i0.Inject,
|
|
244
|
-
args: [i2.DOCUMENT]
|
|
245
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
246
|
-
}, propDecorators: { toggleOpen: [{
|
|
247
|
-
type: i0.HostListener,
|
|
248
|
-
args: ['click', ['$event']]
|
|
249
|
-
}] } });
|
|
250
|
-
/**
|
|
251
|
-
* Allows the aside to be toggled via click.
|
|
252
|
-
*/
|
|
253
|
-
var AsideToggleDirective = /** @class */ (function () {
|
|
254
|
-
function AsideToggleDirective(classToggler) {
|
|
255
|
-
this.classToggler = classToggler;
|
|
256
|
-
this.breakpoint = false;
|
|
257
|
-
}
|
|
258
|
-
AsideToggleDirective.prototype.ngOnInit = function () {
|
|
259
|
-
this.bp = this.breakpoint;
|
|
260
|
-
};
|
|
261
|
-
AsideToggleDirective.prototype.toggleOpen = function ($event) {
|
|
262
|
-
$event.preventDefault();
|
|
263
|
-
var cssClass = this.bp ? "aside-menu-" + this.bp + "-show" : asideMenuCssClasses[0];
|
|
264
|
-
this.classToggler.toggleClasses(cssClass, asideMenuCssClasses);
|
|
265
|
-
};
|
|
266
|
-
return AsideToggleDirective;
|
|
267
|
-
}());
|
|
268
|
-
AsideToggleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AsideToggleDirective, deps: [{ token: ClassToggler }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
269
|
-
AsideToggleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: AsideToggleDirective, selector: "[appAsideMenuToggler]", inputs: { breakpoint: ["appAsideMenuToggler", "breakpoint"] }, host: { listeners: { "click": "toggleOpen($event)" } }, providers: [ClassToggler], ngImport: i0__namespace });
|
|
270
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AsideToggleDirective, decorators: [{
|
|
271
|
-
type: i0.Directive,
|
|
272
|
-
args: [{
|
|
273
|
-
selector: '[appAsideMenuToggler]',
|
|
274
|
-
providers: [ClassToggler]
|
|
275
|
-
}]
|
|
276
|
-
}], ctorParameters: function () { return [{ type: ClassToggler }]; }, propDecorators: { breakpoint: [{
|
|
277
|
-
type: i0.Input,
|
|
278
|
-
args: ['appAsideMenuToggler']
|
|
279
|
-
}], toggleOpen: [{
|
|
280
|
-
type: i0.HostListener,
|
|
281
|
-
args: ['click', ['$event']]
|
|
282
|
-
}] } });
|
|
283
|
-
var HtmlAttributesDirective = /** @class */ (function () {
|
|
284
|
-
function HtmlAttributesDirective(renderer, el) {
|
|
285
|
-
this.renderer = renderer;
|
|
286
|
-
this.el = el;
|
|
287
|
-
this.appHtmlAttr = {};
|
|
288
|
-
}
|
|
289
|
-
HtmlAttributesDirective.prototype.ngOnInit = function () {
|
|
290
|
-
var attribs = this.appHtmlAttr;
|
|
291
|
-
for (var attr in attribs) {
|
|
292
|
-
if (attr === 'style' && typeof (attribs[attr]) === 'object') {
|
|
293
|
-
this.setStyle(attribs[attr]);
|
|
294
|
-
}
|
|
295
|
-
else if (attr === 'class') {
|
|
296
|
-
this.addClass(attribs[attr]);
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
this.setAttrib(attr, attribs[attr]);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
HtmlAttributesDirective.prototype.setStyle = function (styles) {
|
|
304
|
-
for (var style in styles) {
|
|
305
|
-
if (style) {
|
|
306
|
-
this.renderer.setStyle(this.el.nativeElement, style, styles[style]);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
HtmlAttributesDirective.prototype.addClass = function (classes) {
|
|
311
|
-
var _this = this;
|
|
312
|
-
var classArray = (Array.isArray(classes) ? classes : classes.split(' '));
|
|
313
|
-
classArray.filter(function (element) { return element.length > 0; }).forEach(function (element) {
|
|
314
|
-
_this.renderer.addClass(_this.el.nativeElement, element);
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
HtmlAttributesDirective.prototype.setAttrib = function (key, value) {
|
|
318
|
-
value !== null ?
|
|
319
|
-
this.renderer.setAttribute(this.el.nativeElement, key, value) :
|
|
320
|
-
this.renderer.removeAttribute(this.el.nativeElement, key);
|
|
321
|
-
};
|
|
322
|
-
return HtmlAttributesDirective;
|
|
323
|
-
}());
|
|
324
|
-
HtmlAttributesDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HtmlAttributesDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
325
|
-
HtmlAttributesDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: { appHtmlAttr: "appHtmlAttr" }, ngImport: i0__namespace });
|
|
326
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HtmlAttributesDirective, decorators: [{
|
|
327
|
-
type: i0.Directive,
|
|
328
|
-
args: [{
|
|
329
|
-
selector: '[appHtmlAttr]'
|
|
330
|
-
}]
|
|
331
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }]; }, propDecorators: { appHtmlAttr: [{
|
|
332
|
-
type: i0.Input
|
|
333
|
-
}] } });
|
|
334
|
-
|
|
335
|
-
var LayoutModule = /** @class */ (function () {
|
|
336
|
-
function LayoutModule() {
|
|
337
|
-
}
|
|
338
|
-
return LayoutModule;
|
|
339
|
-
}());
|
|
340
|
-
LayoutModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
341
|
-
LayoutModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutModule, declarations: [AsideToggleDirective,
|
|
342
|
-
BrandMinimizeDirective,
|
|
343
|
-
MobileSidebarToggleDirective,
|
|
344
|
-
SidebarToggleDirective,
|
|
345
|
-
SidebarMinimizeDirective,
|
|
346
|
-
SidebarOffCanvasCloseDirective,
|
|
347
|
-
HtmlAttributesDirective], imports: [i2.CommonModule], exports: [AsideToggleDirective,
|
|
348
|
-
BrandMinimizeDirective,
|
|
349
|
-
MobileSidebarToggleDirective,
|
|
350
|
-
SidebarToggleDirective,
|
|
351
|
-
SidebarMinimizeDirective,
|
|
352
|
-
SidebarOffCanvasCloseDirective,
|
|
353
|
-
HtmlAttributesDirective] });
|
|
354
|
-
LayoutModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutModule, providers: [
|
|
355
|
-
ClassToggler
|
|
356
|
-
], imports: [[
|
|
357
|
-
i2.CommonModule
|
|
358
|
-
]] });
|
|
359
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutModule, decorators: [{
|
|
360
|
-
type: i0.NgModule,
|
|
361
|
-
args: [{
|
|
362
|
-
imports: [
|
|
363
|
-
i2.CommonModule
|
|
364
|
-
],
|
|
365
|
-
exports: [
|
|
366
|
-
AsideToggleDirective,
|
|
367
|
-
BrandMinimizeDirective,
|
|
368
|
-
MobileSidebarToggleDirective,
|
|
369
|
-
SidebarToggleDirective,
|
|
370
|
-
SidebarMinimizeDirective,
|
|
371
|
-
SidebarOffCanvasCloseDirective,
|
|
372
|
-
HtmlAttributesDirective
|
|
373
|
-
],
|
|
374
|
-
declarations: [
|
|
375
|
-
AsideToggleDirective,
|
|
376
|
-
BrandMinimizeDirective,
|
|
377
|
-
MobileSidebarToggleDirective,
|
|
378
|
-
SidebarToggleDirective,
|
|
379
|
-
SidebarMinimizeDirective,
|
|
380
|
-
SidebarOffCanvasCloseDirective,
|
|
381
|
-
HtmlAttributesDirective
|
|
382
|
-
],
|
|
383
|
-
providers: [
|
|
384
|
-
ClassToggler
|
|
385
|
-
]
|
|
386
|
-
}]
|
|
387
|
-
}] });
|
|
388
|
-
|
|
389
|
-
function Replace(el) {
|
|
390
|
-
var nativeElement = el.nativeElement;
|
|
391
|
-
// @ts-ignore
|
|
392
|
-
var parentElement = nativeElement.parentElement;
|
|
393
|
-
// move all children out of the element
|
|
394
|
-
while (nativeElement.firstChild) {
|
|
395
|
-
parentElement.insertBefore(nativeElement.firstChild, nativeElement);
|
|
396
|
-
}
|
|
397
|
-
// remove the empty element(the host)
|
|
398
|
-
parentElement.removeChild(nativeElement);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
var AppAsideComponent = /** @class */ (function () {
|
|
402
|
-
function AppAsideComponent(document, renderer) {
|
|
403
|
-
this.document = document;
|
|
404
|
-
this.renderer = renderer;
|
|
405
|
-
this.fixedClass = 'aside-menu-fixed';
|
|
406
|
-
this.asideMenuClass = true;
|
|
407
|
-
}
|
|
408
|
-
AppAsideComponent.prototype.ngOnInit = function () {
|
|
409
|
-
this.isFixed(this.fixed);
|
|
410
|
-
this.isOffCanvas(this.offCanvas);
|
|
411
|
-
this.displayBreakpoint(this.display);
|
|
412
|
-
};
|
|
413
|
-
AppAsideComponent.prototype.ngOnDestroy = function () {
|
|
414
|
-
this.renderer.removeClass(this.document.body, this.fixedClass);
|
|
415
|
-
};
|
|
416
|
-
AppAsideComponent.prototype.isFixed = function (fixed) {
|
|
417
|
-
if (fixed === void 0) { fixed = this.fixed; }
|
|
418
|
-
if (fixed) {
|
|
419
|
-
this.renderer.addClass(this.document.body, this.fixedClass);
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
|
-
AppAsideComponent.prototype.isOffCanvas = function (offCanvas) {
|
|
423
|
-
if (offCanvas === void 0) { offCanvas = this.offCanvas; }
|
|
424
|
-
if (offCanvas) {
|
|
425
|
-
this.renderer.addClass(this.document.body, 'aside-menu-off-canvas');
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
AppAsideComponent.prototype.displayBreakpoint = function (display) {
|
|
429
|
-
if (display === void 0) { display = this.display; }
|
|
430
|
-
if (display !== false) {
|
|
431
|
-
var cssClass = this.display ? "aside-menu-" + this.display + "-show" : asideMenuCssClasses[0];
|
|
432
|
-
this.renderer.addClass(this.document.body, cssClass);
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
return AppAsideComponent;
|
|
436
|
-
}());
|
|
437
|
-
AppAsideComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppAsideComponent, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
438
|
-
AppAsideComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppAsideComponent, selector: "app-aside, cui-aside", inputs: { display: "display", fixed: "fixed", offCanvas: "offCanvas" }, host: { properties: { "class.aside-menu": "this.asideMenuClass" } }, ngImport: i0__namespace, template: "<ng-content></ng-content>", isInline: true });
|
|
439
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppAsideComponent, decorators: [{
|
|
440
|
-
type: i0.Component,
|
|
441
|
-
args: [{
|
|
442
|
-
selector: 'app-aside, cui-aside',
|
|
443
|
-
template: "<ng-content></ng-content>"
|
|
444
|
-
}]
|
|
445
|
-
}], ctorParameters: function () {
|
|
446
|
-
return [{ type: undefined, decorators: [{
|
|
447
|
-
type: i0.Inject,
|
|
448
|
-
args: [i2.DOCUMENT]
|
|
449
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
450
|
-
}, propDecorators: { display: [{
|
|
451
|
-
type: i0.Input
|
|
452
|
-
}], fixed: [{
|
|
453
|
-
type: i0.Input
|
|
454
|
-
}], offCanvas: [{
|
|
455
|
-
type: i0.Input
|
|
456
|
-
}], asideMenuClass: [{
|
|
457
|
-
type: i0.HostBinding,
|
|
458
|
-
args: ['class.aside-menu']
|
|
459
|
-
}] } });
|
|
460
|
-
|
|
461
|
-
var AppAsideModule = /** @class */ (function () {
|
|
462
|
-
function AppAsideModule() {
|
|
463
|
-
}
|
|
464
|
-
return AppAsideModule;
|
|
465
|
-
}());
|
|
466
|
-
AppAsideModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppAsideModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
467
|
-
AppAsideModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppAsideModule, declarations: [AppAsideComponent], imports: [i2.CommonModule,
|
|
468
|
-
LayoutModule], exports: [AppAsideComponent] });
|
|
469
|
-
AppAsideModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppAsideModule, imports: [[
|
|
470
|
-
i2.CommonModule,
|
|
471
|
-
LayoutModule
|
|
472
|
-
]] });
|
|
473
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppAsideModule, decorators: [{
|
|
474
|
-
type: i0.NgModule,
|
|
475
|
-
args: [{
|
|
476
|
-
imports: [
|
|
477
|
-
i2.CommonModule,
|
|
478
|
-
LayoutModule
|
|
479
|
-
],
|
|
480
|
-
exports: [
|
|
481
|
-
AppAsideComponent
|
|
482
|
-
],
|
|
483
|
-
declarations: [
|
|
484
|
-
AppAsideComponent
|
|
485
|
-
]
|
|
486
|
-
}]
|
|
487
|
-
}] });
|
|
488
|
-
|
|
489
|
-
var AppBreadcrumbService = /** @class */ (function () {
|
|
490
|
-
function AppBreadcrumbService(router, route) {
|
|
491
|
-
var _this = this;
|
|
492
|
-
this.router = router;
|
|
493
|
-
this.route = route;
|
|
494
|
-
this.breadcrumbSubject = new rxjs.BehaviorSubject(new Array());
|
|
495
|
-
this.breadcrumbs = this.breadcrumbSubject.asObservable();
|
|
496
|
-
this.router.events.pipe(operators.filter(function (event) { return event instanceof i1.NavigationEnd; })).subscribe(function (event) {
|
|
497
|
-
var breadcrumbs = [];
|
|
498
|
-
var currentRoute = _this.route.root;
|
|
499
|
-
var url = '';
|
|
500
|
-
do {
|
|
501
|
-
var childrenRoutes = currentRoute.children;
|
|
502
|
-
currentRoute = null;
|
|
503
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
504
|
-
childrenRoutes.forEach(function (route) {
|
|
505
|
-
if (route.outlet === 'primary') {
|
|
506
|
-
var routeSnapshot = route.snapshot;
|
|
507
|
-
url += '/' + routeSnapshot.url.map(function (segment) { return segment.path; }).join('/');
|
|
508
|
-
breadcrumbs.push({
|
|
509
|
-
label: route.snapshot.data,
|
|
510
|
-
url: url
|
|
511
|
-
});
|
|
512
|
-
currentRoute = route;
|
|
513
|
-
}
|
|
514
|
-
});
|
|
515
|
-
} while (currentRoute);
|
|
516
|
-
_this.breadcrumbSubject.next(Object.assign([], breadcrumbs));
|
|
517
|
-
return breadcrumbs;
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
return AppBreadcrumbService;
|
|
521
|
-
}());
|
|
522
|
-
AppBreadcrumbService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbService, deps: [{ token: i1__namespace.Router }, { token: i1__namespace.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
523
|
-
AppBreadcrumbService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbService, providedIn: 'root' });
|
|
524
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbService, decorators: [{
|
|
525
|
-
type: i0.Injectable,
|
|
526
|
-
args: [{
|
|
527
|
-
providedIn: 'root'
|
|
528
|
-
}]
|
|
529
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.Router }, { type: i1__namespace.ActivatedRoute }]; } });
|
|
530
|
-
|
|
531
|
-
var AppBreadcrumbComponent = /** @class */ (function () {
|
|
532
|
-
function AppBreadcrumbComponent(document, renderer, service, el) {
|
|
533
|
-
this.document = document;
|
|
534
|
-
this.renderer = renderer;
|
|
535
|
-
this.service = service;
|
|
536
|
-
this.el = el;
|
|
537
|
-
this.fixedClass = 'breadcrumb-fixed';
|
|
538
|
-
}
|
|
539
|
-
AppBreadcrumbComponent.prototype.ngOnInit = function () {
|
|
540
|
-
Replace(this.el);
|
|
541
|
-
this.isFixed(this.fixed);
|
|
542
|
-
this.breadcrumbs = this.service.breadcrumbs;
|
|
543
|
-
};
|
|
544
|
-
AppBreadcrumbComponent.prototype.ngOnDestroy = function () {
|
|
545
|
-
this.renderer.removeClass(this.document.body, this.fixedClass);
|
|
546
|
-
};
|
|
547
|
-
AppBreadcrumbComponent.prototype.isFixed = function (fixed) {
|
|
548
|
-
if (fixed === void 0) { fixed = this.fixed; }
|
|
549
|
-
if (fixed) {
|
|
550
|
-
this.renderer.addClass(this.document.body, this.fixedClass);
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
return AppBreadcrumbComponent;
|
|
554
|
-
}());
|
|
555
|
-
AppBreadcrumbComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbComponent, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }, { token: AppBreadcrumbService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
556
|
-
AppBreadcrumbComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppBreadcrumbComponent, selector: "app-breadcrumb", inputs: { fixed: "fixed" }, ngImport: i0__namespace, template: "\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 ", isInline: true, directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "async": i2__namespace.AsyncPipe } });
|
|
557
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbComponent, decorators: [{
|
|
558
|
-
type: i0.Component,
|
|
559
|
-
args: [{
|
|
560
|
-
selector: 'app-breadcrumb',
|
|
561
|
-
template: "\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 "
|
|
562
|
-
}]
|
|
563
|
-
}], ctorParameters: function () {
|
|
564
|
-
return [{ type: undefined, decorators: [{
|
|
565
|
-
type: i0.Inject,
|
|
566
|
-
args: [i2.DOCUMENT]
|
|
567
|
-
}] }, { type: i0__namespace.Renderer2 }, { type: AppBreadcrumbService }, { type: i0__namespace.ElementRef }];
|
|
568
|
-
}, propDecorators: { fixed: [{
|
|
569
|
-
type: i0.Input
|
|
570
|
-
}] } });
|
|
571
|
-
|
|
572
|
-
var CuiBreadcrumbComponent = /** @class */ (function () {
|
|
573
|
-
function CuiBreadcrumbComponent(document, renderer, service) {
|
|
574
|
-
this.document = document;
|
|
575
|
-
this.renderer = renderer;
|
|
576
|
-
this.service = service;
|
|
577
|
-
this.fixedClass = 'breadcrumb-fixed';
|
|
578
|
-
}
|
|
579
|
-
CuiBreadcrumbComponent.prototype.ngOnInit = function () {
|
|
580
|
-
this.isFixed(this.fixed);
|
|
581
|
-
this.breadcrumbs = this.service.breadcrumbs;
|
|
582
|
-
};
|
|
583
|
-
CuiBreadcrumbComponent.prototype.ngOnDestroy = function () {
|
|
584
|
-
this.renderer.removeClass(this.document.body, this.fixedClass);
|
|
585
|
-
};
|
|
586
|
-
CuiBreadcrumbComponent.prototype.isFixed = function (fixed) {
|
|
587
|
-
if (fixed === void 0) { fixed = this.fixed; }
|
|
588
|
-
if (fixed) {
|
|
589
|
-
this.renderer.addClass(this.document.body, this.fixedClass);
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
return CuiBreadcrumbComponent;
|
|
593
|
-
}());
|
|
594
|
-
CuiBreadcrumbComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CuiBreadcrumbComponent, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }, { token: AppBreadcrumbService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
595
|
-
CuiBreadcrumbComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CuiBreadcrumbComponent, selector: "cui-breadcrumb", inputs: { fixed: "fixed" }, ngImport: i0__namespace, template: "<ol class=\"breadcrumb\">\r\n <ng-template ngFor let-breadcrumb [ngForOf]=\"breadcrumbs | async\" let-last = last>\r\n <li class=\"breadcrumb-item\"\r\n *ngIf=\"breadcrumb.label.title && (breadcrumb.url.slice(-1) == '/' || last)\"\r\n [ngClass]=\"{active: last}\">\r\n <a *ngIf=\"!last\" [routerLink]=\"breadcrumb.url\">{{breadcrumb.label.title}}</a>\r\n <span *ngIf=\"last\" [routerLink]=\"breadcrumb.url\">{{breadcrumb.label.title}}</span>\r\n </li>\r\n </ng-template>\r\n <ng-content></ng-content>\r\n</ol>\r\n", directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "async": i2__namespace.AsyncPipe } });
|
|
596
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CuiBreadcrumbComponent, decorators: [{
|
|
597
|
-
type: i0.Component,
|
|
598
|
-
args: [{
|
|
599
|
-
// tslint:disable-next-line:component-selector
|
|
600
|
-
selector: 'cui-breadcrumb',
|
|
601
|
-
templateUrl: './cui-breadcrumb.component.html'
|
|
602
|
-
}]
|
|
603
|
-
}], ctorParameters: function () {
|
|
604
|
-
return [{ type: undefined, decorators: [{
|
|
605
|
-
type: i0.Inject,
|
|
606
|
-
args: [i2.DOCUMENT]
|
|
607
|
-
}] }, { type: i0__namespace.Renderer2 }, { type: AppBreadcrumbService }];
|
|
608
|
-
}, propDecorators: { fixed: [{
|
|
609
|
-
type: i0.Input
|
|
610
|
-
}] } });
|
|
611
|
-
|
|
612
|
-
// @dynamic
|
|
613
|
-
var AppBreadcrumbModule = /** @class */ (function () {
|
|
614
|
-
function AppBreadcrumbModule() {
|
|
615
|
-
}
|
|
616
|
-
AppBreadcrumbModule.forRoot = function (config) {
|
|
617
|
-
return {
|
|
618
|
-
ngModule: AppBreadcrumbModule,
|
|
619
|
-
providers: [
|
|
620
|
-
AppBreadcrumbService
|
|
621
|
-
]
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
return AppBreadcrumbModule;
|
|
625
|
-
}());
|
|
626
|
-
AppBreadcrumbModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
627
|
-
AppBreadcrumbModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbModule, declarations: [AppBreadcrumbComponent, CuiBreadcrumbComponent], imports: [i2.CommonModule, i1.RouterModule], exports: [AppBreadcrumbComponent, CuiBreadcrumbComponent] });
|
|
628
|
-
AppBreadcrumbModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbModule, imports: [[i2.CommonModule, i1.RouterModule]] });
|
|
629
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppBreadcrumbModule, decorators: [{
|
|
630
|
-
type: i0.NgModule,
|
|
631
|
-
args: [{
|
|
632
|
-
imports: [i2.CommonModule, i1.RouterModule],
|
|
633
|
-
exports: [AppBreadcrumbComponent, CuiBreadcrumbComponent],
|
|
634
|
-
declarations: [AppBreadcrumbComponent, CuiBreadcrumbComponent]
|
|
635
|
-
}]
|
|
636
|
-
}] });
|
|
637
|
-
|
|
638
|
-
var AppFooterComponent = /** @class */ (function () {
|
|
639
|
-
function AppFooterComponent(document, renderer) {
|
|
640
|
-
this.document = document;
|
|
641
|
-
this.renderer = renderer;
|
|
642
|
-
this.fixedClass = 'footer-fixed';
|
|
643
|
-
this.appFooterClass = true;
|
|
644
|
-
}
|
|
645
|
-
AppFooterComponent.prototype.ngOnInit = function () {
|
|
646
|
-
this.isFixed(this.fixed);
|
|
647
|
-
};
|
|
648
|
-
AppFooterComponent.prototype.ngOnDestroy = function () {
|
|
649
|
-
this.renderer.removeClass(this.document.body, this.fixedClass);
|
|
650
|
-
};
|
|
651
|
-
AppFooterComponent.prototype.isFixed = function (fixed) {
|
|
652
|
-
if (fixed === void 0) { fixed = this.fixed; }
|
|
653
|
-
if (fixed) {
|
|
654
|
-
this.renderer.addClass(this.document.body, this.fixedClass);
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
return AppFooterComponent;
|
|
658
|
-
}());
|
|
659
|
-
AppFooterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppFooterComponent, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
660
|
-
AppFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppFooterComponent, selector: "app-footer, cui-footer", inputs: { fixed: "fixed" }, host: { properties: { "class.app-footer": "this.appFooterClass" } }, ngImport: i0__namespace, template: "<ng-content></ng-content>", isInline: true });
|
|
661
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppFooterComponent, decorators: [{
|
|
662
|
-
type: i0.Component,
|
|
663
|
-
args: [{
|
|
664
|
-
selector: 'app-footer, cui-footer',
|
|
665
|
-
template: "<ng-content></ng-content>"
|
|
666
|
-
}]
|
|
667
|
-
}], ctorParameters: function () {
|
|
668
|
-
return [{ type: undefined, decorators: [{
|
|
669
|
-
type: i0.Inject,
|
|
670
|
-
args: [i2.DOCUMENT]
|
|
671
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
672
|
-
}, propDecorators: { fixed: [{
|
|
673
|
-
type: i0.Input
|
|
674
|
-
}], appFooterClass: [{
|
|
675
|
-
type: i0.HostBinding,
|
|
676
|
-
args: ['class.app-footer']
|
|
677
|
-
}] } });
|
|
678
|
-
|
|
679
|
-
var AppFooterModule = /** @class */ (function () {
|
|
680
|
-
function AppFooterModule() {
|
|
681
|
-
}
|
|
682
|
-
return AppFooterModule;
|
|
683
|
-
}());
|
|
684
|
-
AppFooterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppFooterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
685
|
-
AppFooterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppFooterModule, declarations: [AppFooterComponent], imports: [i2.CommonModule], exports: [AppFooterComponent] });
|
|
686
|
-
AppFooterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppFooterModule, imports: [[i2.CommonModule]] });
|
|
687
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppFooterModule, decorators: [{
|
|
688
|
-
type: i0.NgModule,
|
|
689
|
-
args: [{
|
|
690
|
-
imports: [i2.CommonModule],
|
|
691
|
-
exports: [AppFooterComponent],
|
|
692
|
-
declarations: [AppFooterComponent]
|
|
693
|
-
}]
|
|
694
|
-
}] });
|
|
695
|
-
|
|
696
|
-
var AppHeaderComponent = /** @class */ (function () {
|
|
697
|
-
function AppHeaderComponent(document, renderer) {
|
|
698
|
-
this.document = document;
|
|
699
|
-
this.renderer = renderer;
|
|
700
|
-
this.navbarBrandText = { icon: '🅲', text: '🅲 CoreUI' };
|
|
701
|
-
this.navbarBrandHref = ''; // deprecated, use navbarBrandRouterLink instead
|
|
702
|
-
this.navbarBrandRouterLink = '';
|
|
703
|
-
this.sidebarToggler = 'lg';
|
|
704
|
-
this.mobileSidebarToggler = true;
|
|
705
|
-
this.asideMenuToggler = 'lg';
|
|
706
|
-
this.mobileAsideMenuToggler = true;
|
|
707
|
-
this.fixedClass = 'header-fixed';
|
|
708
|
-
this.appHeaderClass = true;
|
|
709
|
-
this.navbarClass = true;
|
|
710
|
-
this.breakpoints = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
711
|
-
this.sidebarTogglerClass = 'd-none d-md-block';
|
|
712
|
-
this.sidebarTogglerMobileClass = 'd-lg-none';
|
|
713
|
-
this.asideTogglerClass = 'd-none d-md-block';
|
|
714
|
-
this.asideTogglerMobileClass = 'd-lg-none';
|
|
715
|
-
}
|
|
716
|
-
AppHeaderComponent.prototype.ngOnInit = function () {
|
|
717
|
-
this.isFixed(this.fixed);
|
|
718
|
-
this.navbarBrandImg = Boolean(this.navbarBrand || this.navbarBrandFull || this.navbarBrandMinimized);
|
|
719
|
-
this.navbarBrandRouterLink = this.navbarBrandRouterLink[0] ? this.navbarBrandRouterLink : this.navbarBrandHref;
|
|
720
|
-
this.sidebarTogglerClass = this.setTogglerBreakpointClass(this.sidebarToggler);
|
|
721
|
-
this.sidebarTogglerMobileClass = this.setTogglerMobileBreakpointClass(this.sidebarToggler);
|
|
722
|
-
this.asideTogglerClass = this.setTogglerBreakpointClass(this.asideMenuToggler);
|
|
723
|
-
this.asideTogglerMobileClass = this.setTogglerMobileBreakpointClass(this.asideMenuToggler);
|
|
724
|
-
};
|
|
725
|
-
AppHeaderComponent.prototype.ngOnDestroy = function () {
|
|
726
|
-
this.renderer.removeClass(this.document.body, this.fixedClass);
|
|
727
|
-
};
|
|
728
|
-
AppHeaderComponent.prototype.isFixed = function (fixed) {
|
|
729
|
-
if (fixed === void 0) { fixed = this.fixed; }
|
|
730
|
-
if (fixed) {
|
|
731
|
-
this.renderer.addClass(this.document.body, this.fixedClass);
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
|
-
AppHeaderComponent.prototype.setTogglerBreakpointClass = function (breakpoint) {
|
|
735
|
-
if (breakpoint === void 0) { breakpoint = 'md'; }
|
|
736
|
-
var togglerClass = 'd-none d-md-block';
|
|
737
|
-
if (this.breakpoints.includes(breakpoint)) {
|
|
738
|
-
var breakpointIndex = this.breakpoints.indexOf(breakpoint);
|
|
739
|
-
togglerClass = "d-none d-" + breakpoint + "-block";
|
|
740
|
-
}
|
|
741
|
-
return togglerClass;
|
|
742
|
-
};
|
|
743
|
-
AppHeaderComponent.prototype.setTogglerMobileBreakpointClass = function (breakpoint) {
|
|
744
|
-
if (breakpoint === void 0) { breakpoint = 'lg'; }
|
|
745
|
-
var togglerClass = 'd-lg-none';
|
|
746
|
-
if (this.breakpoints.includes(breakpoint)) {
|
|
747
|
-
togglerClass = "d-" + breakpoint + "-none";
|
|
748
|
-
}
|
|
749
|
-
return togglerClass;
|
|
750
|
-
};
|
|
751
|
-
return AppHeaderComponent;
|
|
752
|
-
}());
|
|
753
|
-
AppHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppHeaderComponent, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
754
|
-
AppHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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__namespace, template: "<ng-template [ngIf]=\"mobileSidebarToggler != false\">\r\n <button class=\"navbar-toggler {{sidebarTogglerMobileClass}}\" type=\"button\" appSidebarToggler>\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<a class=\"navbar-brand\" [routerLink]=\"navbarBrandRouterLink\">\r\n <ng-template [ngIf]=\"navbarBrandImg\">\r\n <img *ngIf=\"navbarBrand\"\r\n [appHtmlAttr]=\"navbarBrand\"\r\n [ngClass]=\"'navbar-brand'\">\r\n <img *ngIf=\"navbarBrandFull\"\r\n [appHtmlAttr]=\"navbarBrandFull\"\r\n [ngClass]=\"'navbar-brand-full'\">\r\n <img *ngIf=\"navbarBrandMinimized\"\r\n [appHtmlAttr]=\"navbarBrandMinimized\"\r\n [ngClass]=\"'navbar-brand-minimized'\">\r\n </ng-template>\r\n <ng-template [ngIf]=\"!navbarBrandImg\">\r\n <div class=\"navbar-brand-full\" [innerHTML]=\"navbarBrandText.text\"></div>\r\n <div class=\"navbar-brand-minimized\" [innerHTML]=\"navbarBrandText.icon\"></div>\r\n </ng-template>\r\n</a>\r\n<ng-template [ngIf]=\"sidebarToggler != false\">\r\n <button class=\"navbar-toggler {{sidebarTogglerClass}}\" type=\"button\" [appSidebarToggler]=\"sidebarToggler\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<ng-content></ng-content>\r\n<ng-template [ngIf]=\"asideMenuToggler != false\">\r\n <button class=\"navbar-toggler {{asideTogglerClass}}\" type=\"button\" [appAsideMenuToggler]=\"asideMenuToggler\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n<ng-template [ngIf]=\"mobileAsideMenuToggler != false\">\r\n <button class=\"navbar-toggler {{asideTogglerMobileClass}}\" type=\"button\" appAsideMenuToggler>\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n</ng-template>\r\n", directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SidebarToggleDirective, selector: "[appSidebarToggler]", inputs: ["appSidebarToggler"] }, { type: i1__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: AsideToggleDirective, selector: "[appAsideMenuToggler]", inputs: ["appAsideMenuToggler"] }] });
|
|
755
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppHeaderComponent, decorators: [{
|
|
756
|
-
type: i0.Component,
|
|
757
|
-
args: [{
|
|
758
|
-
selector: 'app-header, cui-header',
|
|
759
|
-
templateUrl: './app-header.component.html'
|
|
760
|
-
}]
|
|
761
|
-
}], ctorParameters: function () {
|
|
762
|
-
return [{ type: undefined, decorators: [{
|
|
763
|
-
type: i0.Inject,
|
|
764
|
-
args: [i2.DOCUMENT]
|
|
765
|
-
}] }, { type: i0__namespace.Renderer2 }];
|
|
766
|
-
}, propDecorators: { fixed: [{
|
|
767
|
-
type: i0.Input
|
|
768
|
-
}], navbarBrand: [{
|
|
769
|
-
type: i0.Input
|
|
770
|
-
}], navbarBrandFull: [{
|
|
771
|
-
type: i0.Input
|
|
772
|
-
}], navbarBrandMinimized: [{
|
|
773
|
-
type: i0.Input
|
|
774
|
-
}], navbarBrandText: [{
|
|
775
|
-
type: i0.Input
|
|
776
|
-
}], navbarBrandHref: [{
|
|
777
|
-
type: i0.Input
|
|
778
|
-
}], navbarBrandRouterLink: [{
|
|
779
|
-
type: i0.Input
|
|
780
|
-
}], sidebarToggler: [{
|
|
781
|
-
type: i0.Input
|
|
782
|
-
}], mobileSidebarToggler: [{
|
|
783
|
-
type: i0.Input
|
|
784
|
-
}], asideMenuToggler: [{
|
|
785
|
-
type: i0.Input
|
|
786
|
-
}], mobileAsideMenuToggler: [{
|
|
787
|
-
type: i0.Input
|
|
788
|
-
}], appHeaderClass: [{
|
|
789
|
-
type: i0.HostBinding,
|
|
790
|
-
args: ['class.app-header']
|
|
791
|
-
}], navbarClass: [{
|
|
792
|
-
type: i0.HostBinding,
|
|
793
|
-
args: ['class.navbar']
|
|
794
|
-
}] } });
|
|
795
|
-
|
|
796
|
-
var AppHeaderModule = /** @class */ (function () {
|
|
797
|
-
function AppHeaderModule() {
|
|
798
|
-
}
|
|
799
|
-
return AppHeaderModule;
|
|
800
|
-
}());
|
|
801
|
-
AppHeaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppHeaderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
802
|
-
AppHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppHeaderModule, declarations: [AppHeaderComponent], imports: [i2.CommonModule,
|
|
803
|
-
i1.RouterModule,
|
|
804
|
-
LayoutModule], exports: [AppHeaderComponent] });
|
|
805
|
-
AppHeaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppHeaderModule, imports: [[
|
|
806
|
-
i2.CommonModule,
|
|
807
|
-
i1.RouterModule,
|
|
808
|
-
LayoutModule
|
|
809
|
-
]] });
|
|
810
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppHeaderModule, decorators: [{
|
|
811
|
-
type: i0.NgModule,
|
|
812
|
-
args: [{
|
|
813
|
-
imports: [
|
|
814
|
-
i2.CommonModule,
|
|
815
|
-
i1.RouterModule,
|
|
816
|
-
LayoutModule
|
|
817
|
-
],
|
|
818
|
-
exports: [
|
|
819
|
-
AppHeaderComponent,
|
|
820
|
-
],
|
|
821
|
-
declarations: [
|
|
822
|
-
AppHeaderComponent
|
|
823
|
-
]
|
|
824
|
-
}]
|
|
825
|
-
}] });
|
|
826
|
-
|
|
827
|
-
var AppSidebarService = /** @class */ (function () {
|
|
828
|
-
function AppSidebarService() {
|
|
829
|
-
this.events = new rxjs.BehaviorSubject({});
|
|
830
|
-
this.events$ = this.events.asObservable();
|
|
831
|
-
}
|
|
832
|
-
AppSidebarService.prototype.toggle = function (action) {
|
|
833
|
-
this.events.next(action);
|
|
834
|
-
};
|
|
835
|
-
return AppSidebarService;
|
|
836
|
-
}());
|
|
837
|
-
AppSidebarService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
838
|
-
AppSidebarService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarService, providedIn: 'root' });
|
|
839
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarService, decorators: [{
|
|
840
|
-
type: i0.Injectable,
|
|
841
|
-
args: [{
|
|
842
|
-
providedIn: 'root'
|
|
843
|
-
}]
|
|
844
|
-
}], ctorParameters: function () { return []; } });
|
|
845
|
-
|
|
846
|
-
var AppSidebarComponent = /** @class */ (function () {
|
|
847
|
-
function AppSidebarComponent(document, renderer, sidebarService) {
|
|
848
|
-
this.document = document;
|
|
849
|
-
this.renderer = renderer;
|
|
850
|
-
this.sidebarService = sidebarService;
|
|
851
|
-
this._minimized = false;
|
|
852
|
-
/**
|
|
853
|
-
* Emits whenever the minimized state of the sidebar changes.
|
|
854
|
-
* Primarily used to facilitate two-way binding.
|
|
855
|
-
*/
|
|
856
|
-
this.minimizedChange = new i0.EventEmitter();
|
|
857
|
-
this.sidebarClass = true;
|
|
858
|
-
}
|
|
859
|
-
Object.defineProperty(AppSidebarComponent.prototype, "minimized", {
|
|
860
|
-
get: function () {
|
|
861
|
-
return this._minimized;
|
|
862
|
-
},
|
|
863
|
-
set: function (value) {
|
|
864
|
-
// only update / emit events when the value changes
|
|
865
|
-
if (this._minimized !== value) {
|
|
866
|
-
this._minimized = value;
|
|
867
|
-
this._updateMinimized(value);
|
|
868
|
-
this.minimizedChange.emit(value);
|
|
869
|
-
this.sidebarService.toggle({ minimize: value });
|
|
870
|
-
}
|
|
871
|
-
},
|
|
872
|
-
enumerable: false,
|
|
873
|
-
configurable: true
|
|
874
|
-
});
|
|
875
|
-
AppSidebarComponent.prototype.ngOnInit = function () {
|
|
876
|
-
var _this = this;
|
|
877
|
-
this.displayBreakpoint(this.display);
|
|
878
|
-
this.isCompact(this.compact);
|
|
879
|
-
this.isFixed(this.fixed);
|
|
880
|
-
this.isOffCanvas(this.offCanvas);
|
|
881
|
-
this.sidebarService.toggle({ minimize: this.minimized });
|
|
882
|
-
this.subscriptionEvents = this.sidebarService.events$.subscribe(function (action) {
|
|
883
|
-
if (action.minimize !== undefined) {
|
|
884
|
-
action.minimize === 'toggle' ? _this.toggleMinimized() : _this.minimized = !!action.minimize;
|
|
885
|
-
}
|
|
886
|
-
});
|
|
887
|
-
};
|
|
888
|
-
AppSidebarComponent.prototype.ngOnDestroy = function () {
|
|
889
|
-
this.subscriptionEvents.unsubscribe();
|
|
890
|
-
this.minimizedChange.complete();
|
|
891
|
-
this.renderer.removeClass(this.document.body, 'sidebar-fixed');
|
|
892
|
-
this._updateMinimized(false);
|
|
893
|
-
};
|
|
894
|
-
AppSidebarComponent.prototype.isCompact = function (compact) {
|
|
895
|
-
if (compact === void 0) { compact = this.compact; }
|
|
896
|
-
if (compact) {
|
|
897
|
-
this.renderer.addClass(this.document.body, 'sidebar-compact');
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
AppSidebarComponent.prototype.isFixed = function (fixed) {
|
|
901
|
-
if (fixed === void 0) { fixed = this.fixed; }
|
|
902
|
-
if (fixed) {
|
|
903
|
-
this.renderer.addClass(this.document.body, 'sidebar-fixed');
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
|
-
AppSidebarComponent.prototype.toggleMinimized = function () {
|
|
907
|
-
this.minimized = !this._minimized;
|
|
908
|
-
};
|
|
909
|
-
AppSidebarComponent.prototype.isOffCanvas = function (offCanvas) {
|
|
910
|
-
if (offCanvas === void 0) { offCanvas = this.offCanvas; }
|
|
911
|
-
if (offCanvas) {
|
|
912
|
-
this.renderer.addClass(this.document.body, 'sidebar-off-canvas');
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
|
-
AppSidebarComponent.prototype.displayBreakpoint = function (display) {
|
|
916
|
-
if (display === void 0) { display = this.display; }
|
|
917
|
-
if (display !== false) {
|
|
918
|
-
var cssClass = display ? "sidebar-" + display + "-show" : sidebarCssClasses[0];
|
|
919
|
-
this.renderer.addClass(this.document.body, cssClass);
|
|
920
|
-
}
|
|
921
|
-
};
|
|
922
|
-
AppSidebarComponent.prototype._updateMinimized = function (minimized) {
|
|
923
|
-
var body = this.document.body;
|
|
924
|
-
if (minimized) {
|
|
925
|
-
this.renderer.addClass(body, 'sidebar-minimized');
|
|
926
|
-
this.renderer.addClass(body, 'brand-minimized');
|
|
927
|
-
}
|
|
928
|
-
else {
|
|
929
|
-
this.renderer.removeClass(body, 'sidebar-minimized');
|
|
930
|
-
this.renderer.removeClass(body, 'brand-minimized');
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
|
-
return AppSidebarComponent;
|
|
934
|
-
}());
|
|
935
|
-
AppSidebarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarComponent, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }, { token: AppSidebarService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
936
|
-
AppSidebarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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__namespace, template: "<ng-content></ng-content>", isInline: true });
|
|
937
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarComponent, decorators: [{
|
|
938
|
-
type: i0.Component,
|
|
939
|
-
args: [{
|
|
940
|
-
selector: 'app-sidebar, cui-sidebar',
|
|
941
|
-
template: "<ng-content></ng-content>"
|
|
942
|
-
}]
|
|
943
|
-
}], ctorParameters: function () {
|
|
944
|
-
return [{ type: undefined, decorators: [{
|
|
945
|
-
type: i0.Inject,
|
|
946
|
-
args: [i2.DOCUMENT]
|
|
947
|
-
}] }, { type: i0__namespace.Renderer2 }, { type: AppSidebarService }];
|
|
948
|
-
}, propDecorators: { compact: [{
|
|
949
|
-
type: i0.Input
|
|
950
|
-
}], display: [{
|
|
951
|
-
type: i0.Input
|
|
952
|
-
}], fixed: [{
|
|
953
|
-
type: i0.Input
|
|
954
|
-
}], offCanvas: [{
|
|
955
|
-
type: i0.Input
|
|
956
|
-
}], minimized: [{
|
|
957
|
-
type: i0.Input
|
|
958
|
-
}], minimizedChange: [{
|
|
959
|
-
type: i0.Output
|
|
960
|
-
}], sidebarClass: [{
|
|
961
|
-
type: i0.HostBinding,
|
|
962
|
-
args: ['class.sidebar']
|
|
963
|
-
}] } });
|
|
964
|
-
|
|
965
|
-
/*! *****************************************************************************
|
|
966
|
-
Copyright (c) Microsoft Corporation.
|
|
967
|
-
|
|
968
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
969
|
-
purpose with or without fee is hereby granted.
|
|
970
|
-
|
|
971
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
972
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
973
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
974
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
975
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
976
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
977
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
978
|
-
***************************************************************************** */
|
|
979
|
-
/* global Reflect, Promise */
|
|
980
|
-
var extendStatics = function (d, b) {
|
|
981
|
-
extendStatics = Object.setPrototypeOf ||
|
|
982
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
983
|
-
function (d, b) { for (var p in b)
|
|
984
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
985
|
-
d[p] = b[p]; };
|
|
986
|
-
return extendStatics(d, b);
|
|
987
|
-
};
|
|
988
|
-
function __extends(d, b) {
|
|
989
|
-
if (typeof b !== "function" && b !== null)
|
|
990
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
991
|
-
extendStatics(d, b);
|
|
992
|
-
function __() { this.constructor = d; }
|
|
993
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
994
|
-
}
|
|
995
|
-
var __assign = function () {
|
|
996
|
-
__assign = Object.assign || function __assign(t) {
|
|
997
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
998
|
-
s = arguments[i];
|
|
999
|
-
for (var p in s)
|
|
1000
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1001
|
-
t[p] = s[p];
|
|
1002
|
-
}
|
|
1003
|
-
return t;
|
|
1004
|
-
};
|
|
1005
|
-
return __assign.apply(this, arguments);
|
|
1006
|
-
};
|
|
1007
|
-
function __rest(s, e) {
|
|
1008
|
-
var t = {};
|
|
1009
|
-
for (var p in s)
|
|
1010
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1011
|
-
t[p] = s[p];
|
|
1012
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1013
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1014
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1015
|
-
t[p[i]] = s[p[i]];
|
|
1016
|
-
}
|
|
1017
|
-
return t;
|
|
1018
|
-
}
|
|
1019
|
-
function __decorate(decorators, target, key, desc) {
|
|
1020
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1021
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1022
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
1023
|
-
else
|
|
1024
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1025
|
-
if (d = decorators[i])
|
|
1026
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1027
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1028
|
-
}
|
|
1029
|
-
function __param(paramIndex, decorator) {
|
|
1030
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
1031
|
-
}
|
|
1032
|
-
function __metadata(metadataKey, metadataValue) {
|
|
1033
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1034
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
1035
|
-
}
|
|
1036
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1037
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1038
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1039
|
-
function fulfilled(value) { try {
|
|
1040
|
-
step(generator.next(value));
|
|
1041
|
-
}
|
|
1042
|
-
catch (e) {
|
|
1043
|
-
reject(e);
|
|
1044
|
-
} }
|
|
1045
|
-
function rejected(value) { try {
|
|
1046
|
-
step(generator["throw"](value));
|
|
1047
|
-
}
|
|
1048
|
-
catch (e) {
|
|
1049
|
-
reject(e);
|
|
1050
|
-
} }
|
|
1051
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1052
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
function __generator(thisArg, body) {
|
|
1056
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
1057
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
1058
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
1059
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
1060
|
-
function step(op) {
|
|
1061
|
-
if (f)
|
|
1062
|
-
throw new TypeError("Generator is already executing.");
|
|
1063
|
-
while (_)
|
|
1064
|
-
try {
|
|
1065
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
1066
|
-
return t;
|
|
1067
|
-
if (y = 0, t)
|
|
1068
|
-
op = [op[0] & 2, t.value];
|
|
1069
|
-
switch (op[0]) {
|
|
1070
|
-
case 0:
|
|
1071
|
-
case 1:
|
|
1072
|
-
t = op;
|
|
1073
|
-
break;
|
|
1074
|
-
case 4:
|
|
1075
|
-
_.label++;
|
|
1076
|
-
return { value: op[1], done: false };
|
|
1077
|
-
case 5:
|
|
1078
|
-
_.label++;
|
|
1079
|
-
y = op[1];
|
|
1080
|
-
op = [0];
|
|
1081
|
-
continue;
|
|
1082
|
-
case 7:
|
|
1083
|
-
op = _.ops.pop();
|
|
1084
|
-
_.trys.pop();
|
|
1085
|
-
continue;
|
|
1086
|
-
default:
|
|
1087
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1088
|
-
_ = 0;
|
|
1089
|
-
continue;
|
|
1090
|
-
}
|
|
1091
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
1092
|
-
_.label = op[1];
|
|
1093
|
-
break;
|
|
1094
|
-
}
|
|
1095
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
1096
|
-
_.label = t[1];
|
|
1097
|
-
t = op;
|
|
1098
|
-
break;
|
|
1099
|
-
}
|
|
1100
|
-
if (t && _.label < t[2]) {
|
|
1101
|
-
_.label = t[2];
|
|
1102
|
-
_.ops.push(op);
|
|
1103
|
-
break;
|
|
1104
|
-
}
|
|
1105
|
-
if (t[2])
|
|
1106
|
-
_.ops.pop();
|
|
1107
|
-
_.trys.pop();
|
|
1108
|
-
continue;
|
|
1109
|
-
}
|
|
1110
|
-
op = body.call(thisArg, _);
|
|
1111
|
-
}
|
|
1112
|
-
catch (e) {
|
|
1113
|
-
op = [6, e];
|
|
1114
|
-
y = 0;
|
|
1115
|
-
}
|
|
1116
|
-
finally {
|
|
1117
|
-
f = t = 0;
|
|
1118
|
-
}
|
|
1119
|
-
if (op[0] & 5)
|
|
1120
|
-
throw op[1];
|
|
1121
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
1125
|
-
if (k2 === undefined)
|
|
1126
|
-
k2 = k;
|
|
1127
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
1128
|
-
}) : (function (o, m, k, k2) {
|
|
1129
|
-
if (k2 === undefined)
|
|
1130
|
-
k2 = k;
|
|
1131
|
-
o[k2] = m[k];
|
|
1132
|
-
});
|
|
1133
|
-
function __exportStar(m, o) {
|
|
1134
|
-
for (var p in m)
|
|
1135
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
1136
|
-
__createBinding(o, m, p);
|
|
1137
|
-
}
|
|
1138
|
-
function __values(o) {
|
|
1139
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1140
|
-
if (m)
|
|
1141
|
-
return m.call(o);
|
|
1142
|
-
if (o && typeof o.length === "number")
|
|
1143
|
-
return {
|
|
1144
|
-
next: function () {
|
|
1145
|
-
if (o && i >= o.length)
|
|
1146
|
-
o = void 0;
|
|
1147
|
-
return { value: o && o[i++], done: !o };
|
|
1148
|
-
}
|
|
1149
|
-
};
|
|
1150
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1151
|
-
}
|
|
1152
|
-
function __read(o, n) {
|
|
1153
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1154
|
-
if (!m)
|
|
1155
|
-
return o;
|
|
1156
|
-
var i = m.call(o), r, ar = [], e;
|
|
1157
|
-
try {
|
|
1158
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
1159
|
-
ar.push(r.value);
|
|
1160
|
-
}
|
|
1161
|
-
catch (error) {
|
|
1162
|
-
e = { error: error };
|
|
1163
|
-
}
|
|
1164
|
-
finally {
|
|
1165
|
-
try {
|
|
1166
|
-
if (r && !r.done && (m = i["return"]))
|
|
1167
|
-
m.call(i);
|
|
1168
|
-
}
|
|
1169
|
-
finally {
|
|
1170
|
-
if (e)
|
|
1171
|
-
throw e.error;
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
return ar;
|
|
1175
|
-
}
|
|
1176
|
-
/** @deprecated */
|
|
1177
|
-
function __spread() {
|
|
1178
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1179
|
-
ar = ar.concat(__read(arguments[i]));
|
|
1180
|
-
return ar;
|
|
1181
|
-
}
|
|
1182
|
-
/** @deprecated */
|
|
1183
|
-
function __spreadArrays() {
|
|
1184
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
1185
|
-
s += arguments[i].length;
|
|
1186
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
1187
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
1188
|
-
r[k] = a[j];
|
|
1189
|
-
return r;
|
|
1190
|
-
}
|
|
1191
|
-
function __spreadArray(to, from, pack) {
|
|
1192
|
-
if (pack || arguments.length === 2)
|
|
1193
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1194
|
-
if (ar || !(i in from)) {
|
|
1195
|
-
if (!ar)
|
|
1196
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
1197
|
-
ar[i] = from[i];
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1201
|
-
}
|
|
1202
|
-
function __await(v) {
|
|
1203
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
1204
|
-
}
|
|
1205
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1206
|
-
if (!Symbol.asyncIterator)
|
|
1207
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1208
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
1209
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
1210
|
-
function verb(n) { if (g[n])
|
|
1211
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
1212
|
-
function resume(n, v) { try {
|
|
1213
|
-
step(g[n](v));
|
|
1214
|
-
}
|
|
1215
|
-
catch (e) {
|
|
1216
|
-
settle(q[0][3], e);
|
|
1217
|
-
} }
|
|
1218
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
1219
|
-
function fulfill(value) { resume("next", value); }
|
|
1220
|
-
function reject(value) { resume("throw", value); }
|
|
1221
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
1222
|
-
resume(q[0][0], q[0][1]); }
|
|
1223
|
-
}
|
|
1224
|
-
function __asyncDelegator(o) {
|
|
1225
|
-
var i, p;
|
|
1226
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
1227
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
1228
|
-
}
|
|
1229
|
-
function __asyncValues(o) {
|
|
1230
|
-
if (!Symbol.asyncIterator)
|
|
1231
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1232
|
-
var m = o[Symbol.asyncIterator], i;
|
|
1233
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
1234
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
1235
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
1236
|
-
}
|
|
1237
|
-
function __makeTemplateObject(cooked, raw) {
|
|
1238
|
-
if (Object.defineProperty) {
|
|
1239
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
1240
|
-
}
|
|
1241
|
-
else {
|
|
1242
|
-
cooked.raw = raw;
|
|
1243
|
-
}
|
|
1244
|
-
return cooked;
|
|
1245
|
-
}
|
|
1246
|
-
;
|
|
1247
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
1248
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1249
|
-
}) : function (o, v) {
|
|
1250
|
-
o["default"] = v;
|
|
1251
|
-
};
|
|
1252
|
-
function __importStar(mod) {
|
|
1253
|
-
if (mod && mod.__esModule)
|
|
1254
|
-
return mod;
|
|
1255
|
-
var result = {};
|
|
1256
|
-
if (mod != null)
|
|
1257
|
-
for (var k in mod)
|
|
1258
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
1259
|
-
__createBinding(result, mod, k);
|
|
1260
|
-
__setModuleDefault(result, mod);
|
|
1261
|
-
return result;
|
|
1262
|
-
}
|
|
1263
|
-
function __importDefault(mod) {
|
|
1264
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
1265
|
-
}
|
|
1266
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
1267
|
-
if (kind === "a" && !f)
|
|
1268
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
1269
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1270
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1271
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1272
|
-
}
|
|
1273
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
1274
|
-
if (kind === "m")
|
|
1275
|
-
throw new TypeError("Private method is not writable");
|
|
1276
|
-
if (kind === "a" && !f)
|
|
1277
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
1278
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1279
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1280
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
var SidebarNavService = /** @class */ (function () {
|
|
1284
|
-
function SidebarNavService() {
|
|
1285
|
-
}
|
|
1286
|
-
return SidebarNavService;
|
|
1287
|
-
}());
|
|
1288
|
-
SidebarNavService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarNavService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1289
|
-
SidebarNavService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarNavService });
|
|
1290
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarNavService, decorators: [{
|
|
1291
|
-
type: i0.Injectable
|
|
1292
|
-
}] });
|
|
1293
|
-
var SidebarNavHelper = /** @class */ (function () {
|
|
1294
|
-
function SidebarNavHelper() {
|
|
1295
|
-
this.hasBadge = function (item) { return Boolean(item.badge); };
|
|
1296
|
-
this.hasIcon = function (item) { return Boolean(item.icon); };
|
|
1297
|
-
}
|
|
1298
|
-
SidebarNavHelper.prototype.itemType = function (item) {
|
|
1299
|
-
if (item.divider) {
|
|
1300
|
-
return 'divider';
|
|
1301
|
-
}
|
|
1302
|
-
else if (item.title) {
|
|
1303
|
-
return 'title';
|
|
1304
|
-
}
|
|
1305
|
-
else if (item.children) {
|
|
1306
|
-
return 'dropdown';
|
|
1307
|
-
}
|
|
1308
|
-
else if (item.label) {
|
|
1309
|
-
return 'label';
|
|
1310
|
-
}
|
|
1311
|
-
else if (!Object.keys(item).length) {
|
|
1312
|
-
return 'empty';
|
|
1313
|
-
}
|
|
1314
|
-
return 'link';
|
|
1315
|
-
};
|
|
1316
|
-
SidebarNavHelper.prototype.isActive = function (router, item) {
|
|
1317
|
-
return router.isActive(item.url, false);
|
|
1318
|
-
};
|
|
1319
|
-
SidebarNavHelper.prototype.getIconClass = function (item) {
|
|
1320
|
-
var classes = {
|
|
1321
|
-
'nav-icon': true
|
|
1322
|
-
};
|
|
1323
|
-
if (this.hasIcon(item)) {
|
|
1324
|
-
var icon = item.icon;
|
|
1325
|
-
// @ts-ignore
|
|
1326
|
-
classes[icon] = this.hasIcon(item);
|
|
1327
|
-
}
|
|
1328
|
-
return classes;
|
|
1329
|
-
};
|
|
1330
|
-
return SidebarNavHelper;
|
|
1331
|
-
}());
|
|
1332
|
-
SidebarNavHelper.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarNavHelper, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1333
|
-
SidebarNavHelper.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarNavHelper });
|
|
1334
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SidebarNavHelper, decorators: [{
|
|
1335
|
-
type: i0.Injectable
|
|
1336
|
-
}] });
|
|
1337
|
-
|
|
1338
|
-
var AppSidebarNavDividerComponent = /** @class */ (function () {
|
|
1339
|
-
function AppSidebarNavDividerComponent() {
|
|
1340
|
-
}
|
|
1341
|
-
AppSidebarNavDividerComponent.prototype.ngOnInit = function () { };
|
|
1342
|
-
return AppSidebarNavDividerComponent;
|
|
1343
|
-
}());
|
|
1344
|
-
AppSidebarNavDividerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavDividerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1345
|
-
AppSidebarNavDividerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarNavDividerComponent, selector: "app-sidebar-nav-divider, cui-sidebar-nav-divider", inputs: { item: "item" }, ngImport: i0__namespace, template: "", isInline: true });
|
|
1346
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavDividerComponent, decorators: [{
|
|
1347
|
-
type: i0.Component,
|
|
1348
|
-
args: [{
|
|
1349
|
-
selector: 'app-sidebar-nav-divider, cui-sidebar-nav-divider',
|
|
1350
|
-
template: ""
|
|
1351
|
-
}]
|
|
1352
|
-
}], ctorParameters: function () { return []; }, propDecorators: { item: [{
|
|
1353
|
-
type: i0.Input
|
|
1354
|
-
}] } });
|
|
1355
|
-
|
|
1356
|
-
var AppSidebarNavTitleComponent = /** @class */ (function () {
|
|
1357
|
-
function AppSidebarNavTitleComponent(el, renderer) {
|
|
1358
|
-
this.el = el;
|
|
1359
|
-
this.renderer = renderer;
|
|
1360
|
-
this.item = {};
|
|
1361
|
-
}
|
|
1362
|
-
AppSidebarNavTitleComponent.prototype.ngOnInit = function () {
|
|
1363
|
-
var nativeElement = this.el.nativeElement;
|
|
1364
|
-
var name = this.renderer.createText(this.item.name);
|
|
1365
|
-
if (this.item.class) {
|
|
1366
|
-
var classes = this.item.class;
|
|
1367
|
-
this.renderer.addClass(nativeElement, classes);
|
|
1368
|
-
}
|
|
1369
|
-
if (this.item.wrapper) {
|
|
1370
|
-
var wrapper = this.renderer.createElement(this.item.wrapper.element);
|
|
1371
|
-
this.addAttribs(this.item.wrapper.attributes, wrapper);
|
|
1372
|
-
this.renderer.appendChild(wrapper, name);
|
|
1373
|
-
this.renderer.appendChild(nativeElement, wrapper);
|
|
1374
|
-
}
|
|
1375
|
-
else {
|
|
1376
|
-
this.renderer.appendChild(nativeElement, name);
|
|
1377
|
-
}
|
|
1378
|
-
};
|
|
1379
|
-
AppSidebarNavTitleComponent.prototype.addAttribs = function (attribs, element) {
|
|
1380
|
-
if (attribs) {
|
|
1381
|
-
for (var attr in attribs) {
|
|
1382
|
-
if (attr === 'style' && typeof (attribs[attr]) === 'object') {
|
|
1383
|
-
this.setStyle(attribs[attr], element);
|
|
1384
|
-
}
|
|
1385
|
-
else if (attr === 'class') {
|
|
1386
|
-
this.addClass(attribs[attr], element);
|
|
1387
|
-
}
|
|
1388
|
-
else {
|
|
1389
|
-
this.setAttrib(attr, attribs[attr], element);
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
};
|
|
1394
|
-
AppSidebarNavTitleComponent.prototype.setStyle = function (styles, el) {
|
|
1395
|
-
for (var style in styles) {
|
|
1396
|
-
this.renderer.setStyle(el, style, styles[style]);
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
AppSidebarNavTitleComponent.prototype.addClass = function (classes, el) {
|
|
1400
|
-
var _this = this;
|
|
1401
|
-
var classArray = (Array.isArray(classes) ? classes : classes.split(' '));
|
|
1402
|
-
classArray.filter(function (element) { return element.length > 0; }).forEach(function (element) {
|
|
1403
|
-
_this.renderer.addClass(el, element);
|
|
1404
|
-
});
|
|
1405
|
-
};
|
|
1406
|
-
AppSidebarNavTitleComponent.prototype.setAttrib = function (key, value, el) {
|
|
1407
|
-
this.renderer.setAttribute(el, key, value);
|
|
1408
|
-
};
|
|
1409
|
-
return AppSidebarNavTitleComponent;
|
|
1410
|
-
}());
|
|
1411
|
-
AppSidebarNavTitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavTitleComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1412
|
-
AppSidebarNavTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarNavTitleComponent, selector: "app-sidebar-nav-title, cui-sidebar-nav-title", inputs: { item: "item" }, ngImport: i0__namespace, template: '', isInline: true });
|
|
1413
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavTitleComponent, decorators: [{
|
|
1414
|
-
type: i0.Component,
|
|
1415
|
-
args: [{
|
|
1416
|
-
selector: 'app-sidebar-nav-title, cui-sidebar-nav-title',
|
|
1417
|
-
template: '',
|
|
1418
|
-
}]
|
|
1419
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { item: [{
|
|
1420
|
-
type: i0.Input
|
|
1421
|
-
}] } });
|
|
1422
|
-
|
|
1423
|
-
var AppSidebarNavBadgePipe = /** @class */ (function () {
|
|
1424
|
-
function AppSidebarNavBadgePipe() {
|
|
1425
|
-
}
|
|
1426
|
-
AppSidebarNavBadgePipe.prototype.transform = function (item, args) {
|
|
1427
|
-
var classes = {
|
|
1428
|
-
badge: true
|
|
1429
|
-
};
|
|
1430
|
-
var variant = "badge-" + item.badge.variant;
|
|
1431
|
-
classes[variant] = !!item.badge.variant;
|
|
1432
|
-
classes[item.badge.class] = !!item.badge.class;
|
|
1433
|
-
return classes;
|
|
1434
|
-
};
|
|
1435
|
-
return AppSidebarNavBadgePipe;
|
|
1436
|
-
}());
|
|
1437
|
-
AppSidebarNavBadgePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavBadgePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1438
|
-
AppSidebarNavBadgePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavBadgePipe, name: "appSidebarNavBadge" });
|
|
1439
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavBadgePipe, decorators: [{
|
|
1440
|
-
type: i0.Pipe,
|
|
1441
|
-
args: [{
|
|
1442
|
-
name: 'appSidebarNavBadge'
|
|
1443
|
-
}]
|
|
1444
|
-
}] });
|
|
1445
|
-
|
|
1446
|
-
var AppSidebarNavLabelComponent = /** @class */ (function () {
|
|
1447
|
-
function AppSidebarNavLabelComponent(helper) {
|
|
1448
|
-
this.helper = helper;
|
|
1449
|
-
this.item = {};
|
|
1450
|
-
this.classes = {
|
|
1451
|
-
'nav-label': true,
|
|
1452
|
-
active: true
|
|
1453
|
-
};
|
|
1454
|
-
this.iconClasses = {};
|
|
1455
|
-
}
|
|
1456
|
-
AppSidebarNavLabelComponent.prototype.ngOnInit = function () {
|
|
1457
|
-
this.iconClasses = this.helper.getIconClass(this.item);
|
|
1458
|
-
};
|
|
1459
|
-
AppSidebarNavLabelComponent.prototype.getItemClass = function () {
|
|
1460
|
-
var itemClass = this.item.class;
|
|
1461
|
-
// @ts-ignore
|
|
1462
|
-
this.classes[itemClass] = !!itemClass;
|
|
1463
|
-
return this.classes;
|
|
1464
|
-
};
|
|
1465
|
-
AppSidebarNavLabelComponent.prototype.getLabelIconClass = function () {
|
|
1466
|
-
var _a, _b, _c;
|
|
1467
|
-
var variant = "text-" + ((_a = this.item.label) === null || _a === void 0 ? void 0 : _a.variant);
|
|
1468
|
-
// @ts-ignore
|
|
1469
|
-
this.iconClasses[variant] = !!((_b = this.item.label) === null || _b === void 0 ? void 0 : _b.variant);
|
|
1470
|
-
var labelClass = (_c = this.item.label) === null || _c === void 0 ? void 0 : _c.class;
|
|
1471
|
-
// @ts-ignore
|
|
1472
|
-
this.iconClasses[labelClass] = !!labelClass;
|
|
1473
|
-
return this.iconClasses;
|
|
1474
|
-
};
|
|
1475
|
-
return AppSidebarNavLabelComponent;
|
|
1476
|
-
}());
|
|
1477
|
-
AppSidebarNavLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLabelComponent, deps: [{ token: SidebarNavHelper }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1478
|
-
AppSidebarNavLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarNavLabelComponent, selector: "app-sidebar-nav-label, cui-sidebar-nav-label", inputs: { item: "item" }, ngImport: i0__namespace, template: "<a [ngClass]=\"getItemClass()\"\r\n href=\"{{item.url}}\"\r\n [appHtmlAttr]=\"item.attributes\">\r\n <i *ngIf=\"helper.hasIcon(item)\" [ngClass]=\"getLabelIconClass()\"></i>\r\n <ng-container>{{item.name}}</ng-container>\r\n <span *ngIf=\"helper.hasBadge(item)\" [ngClass]=\"item | appSidebarNavBadge\">{{ item.badge?.text }}</span>\r\n</a>\r\n", directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "appSidebarNavBadge": AppSidebarNavBadgePipe } });
|
|
1479
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLabelComponent, decorators: [{
|
|
1480
|
-
type: i0.Component,
|
|
1481
|
-
args: [{
|
|
1482
|
-
selector: 'app-sidebar-nav-label, cui-sidebar-nav-label',
|
|
1483
|
-
templateUrl: './app-sidebar-nav-label.component.html'
|
|
1484
|
-
}]
|
|
1485
|
-
}], ctorParameters: function () { return [{ type: SidebarNavHelper }]; }, propDecorators: { item: [{
|
|
1486
|
-
type: i0.Input
|
|
1487
|
-
}] } });
|
|
1488
|
-
|
|
1489
|
-
var AppSidebarNavIconPipe = /** @class */ (function () {
|
|
1490
|
-
function AppSidebarNavIconPipe() {
|
|
1491
|
-
}
|
|
1492
|
-
AppSidebarNavIconPipe.prototype.transform = function (item, args) {
|
|
1493
|
-
var classes = {
|
|
1494
|
-
'nav-icon': true
|
|
1495
|
-
};
|
|
1496
|
-
var icon = item.icon;
|
|
1497
|
-
classes[icon] = !!item.icon;
|
|
1498
|
-
return classes;
|
|
1499
|
-
};
|
|
1500
|
-
return AppSidebarNavIconPipe;
|
|
1501
|
-
}());
|
|
1502
|
-
AppSidebarNavIconPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavIconPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1503
|
-
AppSidebarNavIconPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavIconPipe, name: "appSidebarNavIcon" });
|
|
1504
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavIconPipe, decorators: [{
|
|
1505
|
-
type: i0.Pipe,
|
|
1506
|
-
args: [{
|
|
1507
|
-
name: 'appSidebarNavIcon'
|
|
1508
|
-
}]
|
|
1509
|
-
}] });
|
|
1510
|
-
|
|
1511
|
-
var AppSidebarNavLinkPipe = /** @class */ (function () {
|
|
1512
|
-
function AppSidebarNavLinkPipe() {
|
|
1513
|
-
}
|
|
1514
|
-
AppSidebarNavLinkPipe.prototype.transform = function (item) {
|
|
1515
|
-
var classes = { 'nav-link': true };
|
|
1516
|
-
var disabled = item.attributes && item.attributes.disabled;
|
|
1517
|
-
classes['disabled'] = disabled;
|
|
1518
|
-
classes['btn-link'] = disabled;
|
|
1519
|
-
classes["nav-link-" + item.variant] = !!item.variant;
|
|
1520
|
-
return classes;
|
|
1521
|
-
};
|
|
1522
|
-
return AppSidebarNavLinkPipe;
|
|
1523
|
-
}());
|
|
1524
|
-
AppSidebarNavLinkPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLinkPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1525
|
-
AppSidebarNavLinkPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLinkPipe, name: "appSidebarNavLink" });
|
|
1526
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLinkPipe, decorators: [{
|
|
1527
|
-
type: i0.Pipe,
|
|
1528
|
-
args: [{
|
|
1529
|
-
name: 'appSidebarNavLink'
|
|
1530
|
-
}]
|
|
1531
|
-
}] });
|
|
1532
|
-
|
|
1533
|
-
var AppSidebarNavLinkContentComponent = /** @class */ (function () {
|
|
1534
|
-
function AppSidebarNavLinkContentComponent(helper) {
|
|
1535
|
-
this.helper = helper;
|
|
1536
|
-
this.item = {};
|
|
1537
|
-
}
|
|
1538
|
-
AppSidebarNavLinkContentComponent.prototype.ngOnInit = function () { };
|
|
1539
|
-
AppSidebarNavLinkContentComponent.prototype.ngOnDestroy = function () { };
|
|
1540
|
-
return AppSidebarNavLinkContentComponent;
|
|
1541
|
-
}());
|
|
1542
|
-
AppSidebarNavLinkContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLinkContentComponent, deps: [{ token: SidebarNavHelper }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1543
|
-
AppSidebarNavLinkContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarNavLinkContentComponent, selector: "app-sidebar-nav-link-content, cui-sidebar-nav-link-content", inputs: { item: "item" }, providers: [SidebarNavHelper], ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"true\">\n <i *ngIf=\"helper.hasIcon(item)\" [ngClass]=\"item | appSidebarNavIcon\"></i>\n <ng-container>{{item?.name}}</ng-container>\n <span *ngIf=\"helper.hasBadge(item)\" [ngClass]=\"item | appSidebarNavBadge\">{{ item?.badge?.text }}</span>\n </ng-container>\n ", isInline: true, directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "appSidebarNavIcon": AppSidebarNavIconPipe, "appSidebarNavBadge": AppSidebarNavBadgePipe } });
|
|
1544
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLinkContentComponent, decorators: [{
|
|
1545
|
-
type: i0.Component,
|
|
1546
|
-
args: [{
|
|
1547
|
-
selector: 'app-sidebar-nav-link-content, cui-sidebar-nav-link-content',
|
|
1548
|
-
template: "\n <ng-container *ngIf=\"true\">\n <i *ngIf=\"helper.hasIcon(item)\" [ngClass]=\"item | appSidebarNavIcon\"></i>\n <ng-container>{{item?.name}}</ng-container>\n <span *ngIf=\"helper.hasBadge(item)\" [ngClass]=\"item | appSidebarNavBadge\">{{ item?.badge?.text }}</span>\n </ng-container>\n ",
|
|
1549
|
-
providers: [SidebarNavHelper]
|
|
1550
|
-
}]
|
|
1551
|
-
}], ctorParameters: function () { return [{ type: SidebarNavHelper }]; }, propDecorators: { item: [{
|
|
1552
|
-
type: i0.Input
|
|
1553
|
-
}] } });
|
|
1554
|
-
var AppSidebarNavLinkComponent = /** @class */ (function () {
|
|
1555
|
-
function AppSidebarNavLinkComponent(router) {
|
|
1556
|
-
this.router = router;
|
|
1557
|
-
this.linkClick = new i0.EventEmitter();
|
|
1558
|
-
this.navigationEndObservable = router.events.pipe(operators.filter(function (event) {
|
|
1559
|
-
return event instanceof i1.NavigationEnd;
|
|
1560
|
-
}));
|
|
1561
|
-
}
|
|
1562
|
-
Object.defineProperty(AppSidebarNavLinkComponent.prototype, "item", {
|
|
1563
|
-
get: function () {
|
|
1564
|
-
return this._Item;
|
|
1565
|
-
},
|
|
1566
|
-
set: function (item) {
|
|
1567
|
-
this._Item = JSON.parse(JSON.stringify(item));
|
|
1568
|
-
},
|
|
1569
|
-
enumerable: false,
|
|
1570
|
-
configurable: true
|
|
1571
|
-
});
|
|
1572
|
-
AppSidebarNavLinkComponent.prototype.ngOnInit = function () {
|
|
1573
|
-
var _this = this;
|
|
1574
|
-
// @ts-ignore
|
|
1575
|
-
this.url = typeof this.item.url === 'string' ? this.item.url : this.router.serializeUrl(this.router.createUrlTree(this.item.url));
|
|
1576
|
-
this.linkType = this.getLinkType();
|
|
1577
|
-
this.href = this.isDisabled() ? '' : (this.item.href || this.url);
|
|
1578
|
-
this.linkActive = this.router.url.split(/[?#(;]/)[0] === this.href.split(/[?#(;]/)[0];
|
|
1579
|
-
this.navSubscription = this.navigationEndObservable.subscribe(function (event) {
|
|
1580
|
-
var itemUrlArray = _this.href.split(/[?#(;]/)[0].split('/');
|
|
1581
|
-
var urlArray = event.urlAfterRedirects.split(/[?#(;]/)[0].split('/');
|
|
1582
|
-
_this.linkActive = itemUrlArray.every(function (value, index) { return value === urlArray[index]; });
|
|
1583
|
-
});
|
|
1584
|
-
};
|
|
1585
|
-
AppSidebarNavLinkComponent.prototype.ngOnDestroy = function () {
|
|
1586
|
-
this.navSubscription.unsubscribe();
|
|
1587
|
-
};
|
|
1588
|
-
AppSidebarNavLinkComponent.prototype.getLinkType = function () {
|
|
1589
|
-
return this.isDisabled() ? 'disabled' : this.isExternalLink() ? 'external' : 'link';
|
|
1590
|
-
};
|
|
1591
|
-
AppSidebarNavLinkComponent.prototype.isDisabled = function () {
|
|
1592
|
-
return (this.item.attributes && this.item.attributes.disabled) ? true : null;
|
|
1593
|
-
};
|
|
1594
|
-
AppSidebarNavLinkComponent.prototype.isExternalLink = function () {
|
|
1595
|
-
return !!this.item.href || this.url.substring(0, 4) === 'http';
|
|
1596
|
-
};
|
|
1597
|
-
AppSidebarNavLinkComponent.prototype.linkClicked = function () {
|
|
1598
|
-
this.linkClick.emit();
|
|
1599
|
-
};
|
|
1600
|
-
return AppSidebarNavLinkComponent;
|
|
1601
|
-
}());
|
|
1602
|
-
AppSidebarNavLinkComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLinkComponent, deps: [{ token: i1__namespace.Router }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1603
|
-
AppSidebarNavLinkComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarNavLinkComponent, selector: "app-sidebar-nav-link, cui-sidebar-nav-link", inputs: { item: "item" }, outputs: { linkClick: "linkClick" }, providers: [SidebarNavHelper], ngImport: i0__namespace, template: "<ng-container [ngSwitch]=\"linkType\">\r\n <a *ngSwitchCase=\"'disabled'\"\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n <a *ngSwitchCase=\"'external'\"\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [href]=\"href\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n (click)=\"linkClicked()\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n <a *ngSwitchDefault\r\n [ngClass]=\"item | appSidebarNavLink\"\r\n [appHtmlAttr]=\"item.attributes\"\r\n [target]=\"item.attributes?.target\"\r\n [queryParams]=\"item.linkProps?.queryParams\"\r\n [fragment]=\"item.linkProps?.fragment\"\r\n [queryParamsHandling]=\"item.linkProps?.queryParamsHandling\"\r\n [preserveFragment]=\"!!item.linkProps?.preserveFragment\"\r\n [skipLocationChange]=\"!!item.linkProps?.skipLocationChange\"\r\n [replaceUrl]=\"!!item.linkProps?.replaceUrl\"\r\n [state]=\"item.linkProps?.state\"\r\n [routerLink]=\"item.url\"\r\n [routerLinkActive]=\"item.linkProps?.routerLinkActive || 'active'\"\r\n [routerLinkActiveOptions]=\"item.linkProps?.routerLinkActiveOptions ?? {exact: false}\"\r\n [class.active]=\"linkActive && !item.linkProps?.routerLinkActiveOptions\"\r\n (click)=\"linkClicked()\"\r\n >\r\n <app-sidebar-nav-link-content [item]=\"item\"></app-sidebar-nav-link-content>\r\n </a>\r\n</ng-container>\r\n", components: [{ type: AppSidebarNavLinkContentComponent, selector: "app-sidebar-nav-link-content, cui-sidebar-nav-link-content", inputs: ["item"] }], directives: [{ type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }], pipes: { "appSidebarNavLink": AppSidebarNavLinkPipe } });
|
|
1604
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavLinkComponent, decorators: [{
|
|
1605
|
-
type: i0.Component,
|
|
1606
|
-
args: [{
|
|
1607
|
-
selector: 'app-sidebar-nav-link, cui-sidebar-nav-link',
|
|
1608
|
-
templateUrl: './app-sidebar-nav-link.component.html',
|
|
1609
|
-
providers: [SidebarNavHelper]
|
|
1610
|
-
}]
|
|
1611
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.Router }]; }, propDecorators: { item: [{
|
|
1612
|
-
type: i0.Input
|
|
1613
|
-
}], linkClick: [{
|
|
1614
|
-
type: i0.Output
|
|
1615
|
-
}] } });
|
|
1616
|
-
|
|
1617
|
-
var NavDropdownDirective = /** @class */ (function () {
|
|
1618
|
-
function NavDropdownDirective(el) {
|
|
1619
|
-
this.el = el;
|
|
1620
|
-
}
|
|
1621
|
-
NavDropdownDirective.prototype.toggle = function () {
|
|
1622
|
-
this.el.nativeElement.classList.toggle('open');
|
|
1623
|
-
};
|
|
1624
|
-
return NavDropdownDirective;
|
|
1625
|
-
}());
|
|
1626
|
-
NavDropdownDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NavDropdownDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1627
|
-
NavDropdownDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: NavDropdownDirective, selector: "[appNavDropdown]", ngImport: i0__namespace });
|
|
1628
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NavDropdownDirective, decorators: [{
|
|
1629
|
-
type: i0.Directive,
|
|
1630
|
-
args: [{
|
|
1631
|
-
selector: '[appNavDropdown]'
|
|
1632
|
-
}]
|
|
1633
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; } });
|
|
1634
|
-
/**
|
|
1635
|
-
* Allows the dropdown to be toggled via click.
|
|
1636
|
-
*/
|
|
1637
|
-
var NavDropdownToggleDirective = /** @class */ (function () {
|
|
1638
|
-
function NavDropdownToggleDirective(dropdown) {
|
|
1639
|
-
this.dropdown = dropdown;
|
|
1640
|
-
}
|
|
1641
|
-
NavDropdownToggleDirective.prototype.toggleOpen = function ($event) {
|
|
1642
|
-
$event.preventDefault();
|
|
1643
|
-
this.dropdown.toggle();
|
|
1644
|
-
};
|
|
1645
|
-
return NavDropdownToggleDirective;
|
|
1646
|
-
}());
|
|
1647
|
-
NavDropdownToggleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NavDropdownToggleDirective, deps: [{ token: NavDropdownDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1648
|
-
NavDropdownToggleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: NavDropdownToggleDirective, selector: "[appNavDropdownToggle]", host: { listeners: { "click": "toggleOpen($event)" } }, ngImport: i0__namespace });
|
|
1649
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NavDropdownToggleDirective, decorators: [{
|
|
1650
|
-
type: i0.Directive,
|
|
1651
|
-
args: [{
|
|
1652
|
-
selector: '[appNavDropdownToggle]'
|
|
1653
|
-
}]
|
|
1654
|
-
}], ctorParameters: function () { return [{ type: NavDropdownDirective }]; }, propDecorators: { toggleOpen: [{
|
|
1655
|
-
type: i0.HostListener,
|
|
1656
|
-
args: ['click', ['$event']]
|
|
1657
|
-
}] } });
|
|
1658
|
-
|
|
1659
|
-
var AppSidebarNavItemClassPipe = /** @class */ (function () {
|
|
1660
|
-
function AppSidebarNavItemClassPipe(helper) {
|
|
1661
|
-
this.helper = helper;
|
|
1662
|
-
}
|
|
1663
|
-
AppSidebarNavItemClassPipe.prototype.transform = function (item) {
|
|
1664
|
-
var args = [];
|
|
1665
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1666
|
-
args[_i - 1] = arguments[_i];
|
|
1667
|
-
}
|
|
1668
|
-
var itemType = this.helper.itemType(item);
|
|
1669
|
-
var itemClass;
|
|
1670
|
-
if (['divider', 'title'].includes(itemType)) {
|
|
1671
|
-
itemClass = "nav-" + itemType;
|
|
1672
|
-
}
|
|
1673
|
-
else if (itemType === 'dropdown') {
|
|
1674
|
-
itemClass = 'nav-item nav-dropdown';
|
|
1675
|
-
}
|
|
1676
|
-
else {
|
|
1677
|
-
itemClass = 'nav-item';
|
|
1678
|
-
}
|
|
1679
|
-
return item.class ? itemClass + " " + item.class : itemClass;
|
|
1680
|
-
};
|
|
1681
|
-
return AppSidebarNavItemClassPipe;
|
|
1682
|
-
}());
|
|
1683
|
-
AppSidebarNavItemClassPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavItemClassPipe, deps: [{ token: SidebarNavHelper }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1684
|
-
AppSidebarNavItemClassPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavItemClassPipe, name: "appSidebarNavItemClass" });
|
|
1685
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavItemClassPipe, decorators: [{
|
|
1686
|
-
type: i0.Pipe,
|
|
1687
|
-
args: [{
|
|
1688
|
-
name: 'appSidebarNavItemClass'
|
|
1689
|
-
}]
|
|
1690
|
-
}], ctorParameters: function () { return [{ type: SidebarNavHelper }]; } });
|
|
1691
|
-
|
|
1692
|
-
var AppSidebarNavItemsComponent = /** @class */ (function () {
|
|
1693
|
-
function AppSidebarNavItemsComponent(document, renderer, router, helper) {
|
|
1694
|
-
this.document = document;
|
|
1695
|
-
this.renderer = renderer;
|
|
1696
|
-
this.router = router;
|
|
1697
|
-
this.helper = helper;
|
|
1698
|
-
this._items = [];
|
|
1699
|
-
}
|
|
1700
|
-
Object.defineProperty(AppSidebarNavItemsComponent.prototype, "items", {
|
|
1701
|
-
get: function () {
|
|
1702
|
-
return this._items;
|
|
1703
|
-
},
|
|
1704
|
-
set: function (items) {
|
|
1705
|
-
this._items = __spreadArray([], __read(items));
|
|
1706
|
-
},
|
|
1707
|
-
enumerable: false,
|
|
1708
|
-
configurable: true
|
|
1709
|
-
});
|
|
1710
|
-
AppSidebarNavItemsComponent.prototype.hideMobile = function () {
|
|
1711
|
-
if (this.document.body.classList.contains('sidebar-show')) {
|
|
1712
|
-
this.renderer.removeClass(this.document.body, 'sidebar-show');
|
|
1713
|
-
}
|
|
1714
|
-
};
|
|
1715
|
-
return AppSidebarNavItemsComponent;
|
|
1716
|
-
}());
|
|
1717
|
-
AppSidebarNavItemsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavItemsComponent, deps: [{ token: i2.DOCUMENT }, { token: i0__namespace.Renderer2 }, { token: i1__namespace.Router }, { token: SidebarNavHelper }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1718
|
-
AppSidebarNavItemsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: { items: "items" }, ngImport: i0__namespace, template: "\n <ng-container *ngFor=\"let item of items\">\n <ng-container [ngSwitch]=\"helper.itemType(item)\">\n <app-sidebar-nav-dropdown\n *ngSwitchCase=\"'dropdown'\"\n [item]=\"item\"\n [class.open]=\"helper.isActive(router, item)\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n appNavDropdown\n routerLinkActive=\"open\">\n </app-sidebar-nav-dropdown>\n <app-sidebar-nav-divider\n *ngSwitchCase=\"'divider'\"\n [item]=\"item\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n [appHtmlAttr]=\"item.attributes\">\n </app-sidebar-nav-divider>\n <app-sidebar-nav-title\n *ngSwitchCase=\"'title'\"\n [item]=\"item\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n [appHtmlAttr]=\"item.attributes\">\n </app-sidebar-nav-title>\n <app-sidebar-nav-label\n *ngSwitchCase=\"'label'\"\n [item]=\"item\"\n class=\"nav-item\"\n [ngClass]=\"item | appSidebarNavItemClass\">\n </app-sidebar-nav-label>\n <ng-container\n *ngSwitchCase=\"'empty'\">\n </ng-container>\n <app-sidebar-nav-link\n *ngSwitchDefault\n [item]=\"item\"\n class=\"nav-item\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n (linkClick)=\"hideMobile()\"\n >\n </app-sidebar-nav-link>\n </ng-container>\n </ng-container>\n ", isInline: true, components: [{ type: i0__namespace.forwardRef(function () { return AppSidebarNavDropdownComponent; }), selector: "app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown", inputs: ["item"] }, { type: i0__namespace.forwardRef(function () { return AppSidebarNavDividerComponent; }), selector: "app-sidebar-nav-divider, cui-sidebar-nav-divider", inputs: ["item"] }, { type: i0__namespace.forwardRef(function () { return AppSidebarNavTitleComponent; }), selector: "app-sidebar-nav-title, cui-sidebar-nav-title", inputs: ["item"] }, { type: i0__namespace.forwardRef(function () { return AppSidebarNavLabelComponent; }), selector: "app-sidebar-nav-label, cui-sidebar-nav-label", inputs: ["item"] }, { type: i0__namespace.forwardRef(function () { return AppSidebarNavLinkComponent; }), selector: "app-sidebar-nav-link, cui-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }], directives: [{ type: i0__namespace.forwardRef(function () { return i2__namespace.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0__namespace.forwardRef(function () { return i2__namespace.NgSwitch; }), selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i0__namespace.forwardRef(function () { return i2__namespace.NgSwitchCase; }), selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i0__namespace.forwardRef(function () { return NavDropdownDirective; }), selector: "[appNavDropdown]" }, { type: i0__namespace.forwardRef(function () { return i1__namespace.RouterLinkActive; }), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i0__namespace.forwardRef(function () { return i2__namespace.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0__namespace.forwardRef(function () { return HtmlAttributesDirective; }), selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i0__namespace.forwardRef(function () { return i2__namespace.NgSwitchDefault; }), selector: "[ngSwitchDefault]" }], pipes: { "appSidebarNavItemClass": i0__namespace.forwardRef(function () { return AppSidebarNavItemClassPipe; }) } });
|
|
1719
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavItemsComponent, decorators: [{
|
|
1720
|
-
type: i0.Component,
|
|
1721
|
-
args: [{
|
|
1722
|
-
selector: 'app-sidebar-nav-items, cui-sidebar-nav-items',
|
|
1723
|
-
template: "\n <ng-container *ngFor=\"let item of items\">\n <ng-container [ngSwitch]=\"helper.itemType(item)\">\n <app-sidebar-nav-dropdown\n *ngSwitchCase=\"'dropdown'\"\n [item]=\"item\"\n [class.open]=\"helper.isActive(router, item)\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n appNavDropdown\n routerLinkActive=\"open\">\n </app-sidebar-nav-dropdown>\n <app-sidebar-nav-divider\n *ngSwitchCase=\"'divider'\"\n [item]=\"item\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n [appHtmlAttr]=\"item.attributes\">\n </app-sidebar-nav-divider>\n <app-sidebar-nav-title\n *ngSwitchCase=\"'title'\"\n [item]=\"item\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n [appHtmlAttr]=\"item.attributes\">\n </app-sidebar-nav-title>\n <app-sidebar-nav-label\n *ngSwitchCase=\"'label'\"\n [item]=\"item\"\n class=\"nav-item\"\n [ngClass]=\"item | appSidebarNavItemClass\">\n </app-sidebar-nav-label>\n <ng-container\n *ngSwitchCase=\"'empty'\">\n </ng-container>\n <app-sidebar-nav-link\n *ngSwitchDefault\n [item]=\"item\"\n class=\"nav-item\"\n [ngClass]=\"item | appSidebarNavItemClass\"\n (linkClick)=\"hideMobile()\"\n >\n </app-sidebar-nav-link>\n </ng-container>\n </ng-container>\n "
|
|
1724
|
-
}]
|
|
1725
|
-
}], ctorParameters: function () {
|
|
1726
|
-
return [{ type: undefined, decorators: [{
|
|
1727
|
-
type: i0.Inject,
|
|
1728
|
-
args: [i2.DOCUMENT]
|
|
1729
|
-
}] }, { type: i0__namespace.Renderer2 }, { type: i1__namespace.Router }, { type: SidebarNavHelper }];
|
|
1730
|
-
}, propDecorators: { items: [{
|
|
1731
|
-
type: i0.Input
|
|
1732
|
-
}] } });
|
|
1733
|
-
var AppSidebarNavDropdownComponent = /** @class */ (function () {
|
|
1734
|
-
function AppSidebarNavDropdownComponent(helper) {
|
|
1735
|
-
this.helper = helper;
|
|
1736
|
-
this.item = {};
|
|
1737
|
-
}
|
|
1738
|
-
return AppSidebarNavDropdownComponent;
|
|
1739
|
-
}());
|
|
1740
|
-
AppSidebarNavDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavDropdownComponent, deps: [{ token: SidebarNavHelper }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1741
|
-
AppSidebarNavDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarNavDropdownComponent, selector: "app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown", inputs: { item: "item" }, providers: [SidebarNavHelper], ngImport: i0__namespace, template: "\n <a class=\"nav-link nav-dropdown-toggle\"\n appNavDropdownToggle\n [appHtmlAttr]=\"item.attributes\">\n <i *ngIf=\"helper.hasIcon(item)\" [ngClass]=\"item | appSidebarNavIcon\"></i>\n <ng-container>{{item.name}}</ng-container>\n <span *ngIf=\"helper.hasBadge(item)\" [ngClass]=\"item | appSidebarNavBadge\">{{ item.badge?.text }}</span>\n </a>\n <app-sidebar-nav-items\n class=\"nav-dropdown-items\"\n [items]=\"item.children ?? []\">\n </app-sidebar-nav-items>\n ", isInline: true, styles: [".nav-dropdown-toggle { cursor: pointer; }", ".nav-dropdown-items { display: block; }"], components: [{ type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: ["items"] }], directives: [{ type: NavDropdownToggleDirective, selector: "[appNavDropdownToggle]" }, { type: HtmlAttributesDirective, selector: "[appHtmlAttr]", inputs: ["appHtmlAttr"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "appSidebarNavIcon": AppSidebarNavIconPipe, "appSidebarNavBadge": AppSidebarNavBadgePipe } });
|
|
1742
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavDropdownComponent, decorators: [{
|
|
1743
|
-
type: i0.Component,
|
|
1744
|
-
args: [{
|
|
1745
|
-
selector: 'app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown',
|
|
1746
|
-
template: "\n <a class=\"nav-link nav-dropdown-toggle\"\n appNavDropdownToggle\n [appHtmlAttr]=\"item.attributes\">\n <i *ngIf=\"helper.hasIcon(item)\" [ngClass]=\"item | appSidebarNavIcon\"></i>\n <ng-container>{{item.name}}</ng-container>\n <span *ngIf=\"helper.hasBadge(item)\" [ngClass]=\"item | appSidebarNavBadge\">{{ item.badge?.text }}</span>\n </a>\n <app-sidebar-nav-items\n class=\"nav-dropdown-items\"\n [items]=\"item.children ?? []\">\n </app-sidebar-nav-items>\n ",
|
|
1747
|
-
styles: [
|
|
1748
|
-
'.nav-dropdown-toggle { cursor: pointer; }',
|
|
1749
|
-
'.nav-dropdown-items { display: block; }'
|
|
1750
|
-
],
|
|
1751
|
-
providers: [SidebarNavHelper]
|
|
1752
|
-
}]
|
|
1753
|
-
}], ctorParameters: function () { return [{ type: SidebarNavHelper }]; }, propDecorators: { item: [{
|
|
1754
|
-
type: i0.Input
|
|
1755
|
-
}] } });
|
|
1756
|
-
|
|
1757
|
-
var AppSidebarNavComponent = /** @class */ (function () {
|
|
1758
|
-
function AppSidebarNavComponent(router) {
|
|
1759
|
-
this.router = router;
|
|
1760
|
-
this.navItems = [];
|
|
1761
|
-
this.sidebarNavClass = true;
|
|
1762
|
-
this.role = 'nav';
|
|
1763
|
-
this.navItemsArray = [];
|
|
1764
|
-
}
|
|
1765
|
-
AppSidebarNavComponent.prototype.ngOnChanges = function (changes) {
|
|
1766
|
-
this.navItemsArray = Array.isArray(this.navItems) ? this.navItems.slice() : [];
|
|
1767
|
-
};
|
|
1768
|
-
return AppSidebarNavComponent;
|
|
1769
|
-
}());
|
|
1770
|
-
AppSidebarNavComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavComponent, deps: [{ token: i1__namespace.Router }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1771
|
-
AppSidebarNavComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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__namespace, template: "<app-sidebar-nav-items\n class=\"nav\"\n [items]=\"navItemsArray\">\n</app-sidebar-nav-items>\n", components: [{ type: AppSidebarNavItemsComponent, selector: "app-sidebar-nav-items, cui-sidebar-nav-items", inputs: ["items"] }] });
|
|
1772
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarNavComponent, decorators: [{
|
|
1773
|
-
type: i0.Component,
|
|
1774
|
-
args: [{
|
|
1775
|
-
selector: 'app-sidebar-nav, cui-sidebar-nav',
|
|
1776
|
-
templateUrl: './app-sidebar-nav.component.html'
|
|
1777
|
-
}]
|
|
1778
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.Router }]; }, propDecorators: { navItems: [{
|
|
1779
|
-
type: i0.Input
|
|
1780
|
-
}], sidebarNavClass: [{
|
|
1781
|
-
type: i0.HostBinding,
|
|
1782
|
-
args: ['class.sidebar-nav']
|
|
1783
|
-
}], role: [{
|
|
1784
|
-
type: i0.HostBinding,
|
|
1785
|
-
args: ['attr.role']
|
|
1786
|
-
}, {
|
|
1787
|
-
type: i0.Input
|
|
1788
|
-
}] } });
|
|
1789
|
-
|
|
1790
|
-
var AppSidebarMinimizerComponent = /** @class */ (function () {
|
|
1791
|
-
function AppSidebarMinimizerComponent(sidebarService) {
|
|
1792
|
-
this.sidebarService = sidebarService;
|
|
1793
|
-
this.role = 'button';
|
|
1794
|
-
this.sidebarMinimizerClass = true;
|
|
1795
|
-
}
|
|
1796
|
-
AppSidebarMinimizerComponent.prototype.toggleOpen = function ($event) {
|
|
1797
|
-
$event.preventDefault();
|
|
1798
|
-
this.sidebarService.toggle({ minimize: 'toggle' });
|
|
1799
|
-
};
|
|
1800
|
-
return AppSidebarMinimizerComponent;
|
|
1801
|
-
}());
|
|
1802
|
-
AppSidebarMinimizerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarMinimizerComponent, deps: [{ token: AppSidebarService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1803
|
-
AppSidebarMinimizerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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__namespace, template: "", isInline: true });
|
|
1804
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarMinimizerComponent, decorators: [{
|
|
1805
|
-
type: i0.Component,
|
|
1806
|
-
args: [{
|
|
1807
|
-
selector: 'app-sidebar-minimizer, cui-sidebar-minimizer',
|
|
1808
|
-
template: ""
|
|
1809
|
-
}]
|
|
1810
|
-
}], ctorParameters: function () { return [{ type: AppSidebarService }]; }, propDecorators: { role: [{
|
|
1811
|
-
type: i0.HostBinding,
|
|
1812
|
-
args: ['attr.role']
|
|
1813
|
-
}, {
|
|
1814
|
-
type: i0.Input
|
|
1815
|
-
}], sidebarMinimizerClass: [{
|
|
1816
|
-
type: i0.HostBinding,
|
|
1817
|
-
args: ['class.sidebar-minimizer']
|
|
1818
|
-
}], toggleOpen: [{
|
|
1819
|
-
type: i0.HostListener,
|
|
1820
|
-
args: ['click', ['$event']]
|
|
1821
|
-
}] } });
|
|
1822
|
-
|
|
1823
|
-
var AppSidebarFooterComponent = /** @class */ (function () {
|
|
1824
|
-
function AppSidebarFooterComponent() {
|
|
1825
|
-
this.sidebarFooterClass = true;
|
|
1826
|
-
}
|
|
1827
|
-
return AppSidebarFooterComponent;
|
|
1828
|
-
}());
|
|
1829
|
-
AppSidebarFooterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarFooterComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1830
|
-
AppSidebarFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarFooterComponent, selector: "app-sidebar-footer, cui-sidebar-footer", host: { properties: { "class.sidebar-footer": "this.sidebarFooterClass" } }, ngImport: i0__namespace, template: "<ng-content></ng-content>", isInline: true });
|
|
1831
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarFooterComponent, decorators: [{
|
|
1832
|
-
type: i0.Component,
|
|
1833
|
-
args: [{
|
|
1834
|
-
selector: 'app-sidebar-footer, cui-sidebar-footer',
|
|
1835
|
-
template: "<ng-content></ng-content>"
|
|
1836
|
-
}]
|
|
1837
|
-
}], ctorParameters: function () { return []; }, propDecorators: { sidebarFooterClass: [{
|
|
1838
|
-
type: i0.HostBinding,
|
|
1839
|
-
args: ['class.sidebar-footer']
|
|
1840
|
-
}] } });
|
|
1841
|
-
|
|
1842
|
-
var AppSidebarFormComponent = /** @class */ (function () {
|
|
1843
|
-
function AppSidebarFormComponent() {
|
|
1844
|
-
this.sidebarFormClass = true;
|
|
1845
|
-
}
|
|
1846
|
-
return AppSidebarFormComponent;
|
|
1847
|
-
}());
|
|
1848
|
-
AppSidebarFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarFormComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1849
|
-
AppSidebarFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarFormComponent, selector: "app-sidebar-form, cui-sidebar-form", host: { properties: { "class.sidebar-form": "this.sidebarFormClass" } }, ngImport: i0__namespace, template: "<ng-content></ng-content>", isInline: true });
|
|
1850
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarFormComponent, decorators: [{
|
|
1851
|
-
type: i0.Component,
|
|
1852
|
-
args: [{
|
|
1853
|
-
selector: 'app-sidebar-form, cui-sidebar-form',
|
|
1854
|
-
template: "<ng-content></ng-content>"
|
|
1855
|
-
}]
|
|
1856
|
-
}], ctorParameters: function () { return []; }, propDecorators: { sidebarFormClass: [{
|
|
1857
|
-
type: i0.HostBinding,
|
|
1858
|
-
args: ['class.sidebar-form']
|
|
1859
|
-
}] } });
|
|
1860
|
-
|
|
1861
|
-
var AppSidebarHeaderComponent = /** @class */ (function () {
|
|
1862
|
-
function AppSidebarHeaderComponent() {
|
|
1863
|
-
this.sidebarHeaderClass = true;
|
|
1864
|
-
}
|
|
1865
|
-
return AppSidebarHeaderComponent;
|
|
1866
|
-
}());
|
|
1867
|
-
AppSidebarHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1868
|
-
AppSidebarHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppSidebarHeaderComponent, selector: "app-sidebar-header, cui-sidebar-header", host: { properties: { "class.sidebar-header": "this.sidebarHeaderClass" } }, ngImport: i0__namespace, template: "<ng-content></ng-content>", isInline: true });
|
|
1869
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarHeaderComponent, decorators: [{
|
|
1870
|
-
type: i0.Component,
|
|
1871
|
-
args: [{
|
|
1872
|
-
selector: 'app-sidebar-header, cui-sidebar-header',
|
|
1873
|
-
template: "<ng-content></ng-content>"
|
|
1874
|
-
}]
|
|
1875
|
-
}], ctorParameters: function () { return []; }, propDecorators: { sidebarHeaderClass: [{
|
|
1876
|
-
type: i0.HostBinding,
|
|
1877
|
-
args: ['class.sidebar-header']
|
|
1878
|
-
}] } });
|
|
1879
|
-
|
|
1880
|
-
var AppSidebarModule = /** @class */ (function () {
|
|
1881
|
-
function AppSidebarModule() {
|
|
1882
|
-
}
|
|
1883
|
-
return AppSidebarModule;
|
|
1884
|
-
}());
|
|
1885
|
-
AppSidebarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1886
|
-
AppSidebarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarModule, declarations: [AppSidebarFooterComponent,
|
|
1887
|
-
AppSidebarFormComponent,
|
|
1888
|
-
AppSidebarHeaderComponent,
|
|
1889
|
-
AppSidebarMinimizerComponent,
|
|
1890
|
-
AppSidebarMinimizerComponent,
|
|
1891
|
-
AppSidebarComponent,
|
|
1892
|
-
AppSidebarNavItemsComponent,
|
|
1893
|
-
AppSidebarNavComponent,
|
|
1894
|
-
AppSidebarNavDividerComponent,
|
|
1895
|
-
AppSidebarNavDropdownComponent,
|
|
1896
|
-
AppSidebarNavLinkComponent,
|
|
1897
|
-
AppSidebarNavLinkContentComponent,
|
|
1898
|
-
AppSidebarNavTitleComponent,
|
|
1899
|
-
NavDropdownDirective,
|
|
1900
|
-
NavDropdownToggleDirective,
|
|
1901
|
-
AppSidebarNavLabelComponent,
|
|
1902
|
-
AppSidebarNavIconPipe,
|
|
1903
|
-
AppSidebarNavBadgePipe,
|
|
1904
|
-
AppSidebarNavLinkPipe,
|
|
1905
|
-
AppSidebarNavItemClassPipe], imports: [i2.CommonModule,
|
|
1906
|
-
i1.RouterModule,
|
|
1907
|
-
LayoutModule], exports: [AppSidebarFooterComponent,
|
|
1908
|
-
AppSidebarFormComponent,
|
|
1909
|
-
AppSidebarHeaderComponent,
|
|
1910
|
-
AppSidebarMinimizerComponent,
|
|
1911
|
-
AppSidebarComponent,
|
|
1912
|
-
// AppSidebarNavItemsComponent,
|
|
1913
|
-
AppSidebarNavComponent] });
|
|
1914
|
-
AppSidebarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarModule, providers: [
|
|
1915
|
-
SidebarNavHelper,
|
|
1916
|
-
AppSidebarService
|
|
1917
|
-
], imports: [[
|
|
1918
|
-
i2.CommonModule,
|
|
1919
|
-
i1.RouterModule,
|
|
1920
|
-
LayoutModule
|
|
1921
|
-
]] });
|
|
1922
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppSidebarModule, decorators: [{
|
|
1923
|
-
type: i0.NgModule,
|
|
1924
|
-
args: [{
|
|
1925
|
-
imports: [
|
|
1926
|
-
i2.CommonModule,
|
|
1927
|
-
i1.RouterModule,
|
|
1928
|
-
LayoutModule
|
|
1929
|
-
],
|
|
1930
|
-
exports: [
|
|
1931
|
-
AppSidebarFooterComponent,
|
|
1932
|
-
AppSidebarFormComponent,
|
|
1933
|
-
AppSidebarHeaderComponent,
|
|
1934
|
-
AppSidebarMinimizerComponent,
|
|
1935
|
-
AppSidebarComponent,
|
|
1936
|
-
// AppSidebarNavItemsComponent,
|
|
1937
|
-
AppSidebarNavComponent,
|
|
1938
|
-
// AppSidebarNavDividerComponent,
|
|
1939
|
-
// AppSidebarNavDropdownComponent,
|
|
1940
|
-
// AppSidebarNavLabelComponent,
|
|
1941
|
-
// AppSidebarNavLinkComponent,
|
|
1942
|
-
// AppSidebarNavLinkContentComponent,
|
|
1943
|
-
// AppSidebarNavTitleComponent,
|
|
1944
|
-
// NavDropdownDirective,
|
|
1945
|
-
// NavDropdownToggleDirective,
|
|
1946
|
-
],
|
|
1947
|
-
declarations: [
|
|
1948
|
-
AppSidebarFooterComponent,
|
|
1949
|
-
AppSidebarFormComponent,
|
|
1950
|
-
AppSidebarHeaderComponent,
|
|
1951
|
-
AppSidebarMinimizerComponent,
|
|
1952
|
-
AppSidebarMinimizerComponent,
|
|
1953
|
-
AppSidebarComponent,
|
|
1954
|
-
AppSidebarNavItemsComponent,
|
|
1955
|
-
AppSidebarNavComponent,
|
|
1956
|
-
AppSidebarNavDividerComponent,
|
|
1957
|
-
AppSidebarNavDropdownComponent,
|
|
1958
|
-
AppSidebarNavLinkComponent,
|
|
1959
|
-
AppSidebarNavLinkContentComponent,
|
|
1960
|
-
AppSidebarNavTitleComponent,
|
|
1961
|
-
NavDropdownDirective,
|
|
1962
|
-
NavDropdownToggleDirective,
|
|
1963
|
-
AppSidebarNavLabelComponent,
|
|
1964
|
-
AppSidebarNavIconPipe,
|
|
1965
|
-
AppSidebarNavBadgePipe,
|
|
1966
|
-
AppSidebarNavLinkPipe,
|
|
1967
|
-
AppSidebarNavItemClassPipe
|
|
1968
|
-
],
|
|
1969
|
-
providers: [
|
|
1970
|
-
SidebarNavHelper,
|
|
1971
|
-
AppSidebarService
|
|
1972
|
-
]
|
|
1973
|
-
}]
|
|
1974
|
-
}] });
|
|
1975
|
-
|
|
1976
|
-
// export { NavDropdownDirective, NavDropdownToggleDirective } from './app-sidebar-nav.directive';
|
|
1977
|
-
// export { AppSidebarNavDividerComponent } from './app-sidebar-nav/app-sidebar-nav-divider.component';
|
|
1978
|
-
// export { AppSidebarNavDropdownComponent } from './app-sidebar-nav/app-sidebar-nav-dropdown.component';
|
|
1979
|
-
// export { AppSidebarNavItemsComponent } from './app-sidebar-nav/app-sidebar-nav-items.component';
|
|
1980
|
-
// export { AppSidebarNavLinkComponent, AppSidebarNavLinkContentComponent } from './app-sidebar-nav/app-sidebar-nav-link.component';
|
|
1981
|
-
// export { AppSidebarNavTitleComponent } from './app-sidebar-nav/app-sidebar-nav-title.component';
|
|
1982
|
-
// export { AppSidebarNavLabelComponent } from './app-sidebar-nav/app-sidebar-nav-label.component';
|
|
1983
|
-
|
|
1984
|
-
/*
|
|
1985
|
-
* Public API Surface of @coreui/angular
|
|
1986
|
-
*/
|
|
1987
|
-
// export * from './lib/shared/index';
|
|
1988
|
-
// export * from './lib/coreui.module';
|
|
1989
|
-
|
|
1990
|
-
/**
|
|
1991
|
-
* Generated bundle index. Do not edit.
|
|
1992
|
-
*/
|
|
1993
|
-
|
|
1994
|
-
exports.AppAsideComponent = AppAsideComponent;
|
|
1995
|
-
exports.AppAsideModule = AppAsideModule;
|
|
1996
|
-
exports.AppBreadcrumbComponent = AppBreadcrumbComponent;
|
|
1997
|
-
exports.AppBreadcrumbModule = AppBreadcrumbModule;
|
|
1998
|
-
exports.AppFooterComponent = AppFooterComponent;
|
|
1999
|
-
exports.AppFooterModule = AppFooterModule;
|
|
2000
|
-
exports.AppHeaderComponent = AppHeaderComponent;
|
|
2001
|
-
exports.AppHeaderModule = AppHeaderModule;
|
|
2002
|
-
exports.AppSidebarComponent = AppSidebarComponent;
|
|
2003
|
-
exports.AppSidebarFooterComponent = AppSidebarFooterComponent;
|
|
2004
|
-
exports.AppSidebarFormComponent = AppSidebarFormComponent;
|
|
2005
|
-
exports.AppSidebarHeaderComponent = AppSidebarHeaderComponent;
|
|
2006
|
-
exports.AppSidebarMinimizerComponent = AppSidebarMinimizerComponent;
|
|
2007
|
-
exports.AppSidebarModule = AppSidebarModule;
|
|
2008
|
-
exports.AppSidebarNavComponent = AppSidebarNavComponent;
|
|
2009
|
-
exports.CuiBreadcrumbComponent = CuiBreadcrumbComponent;
|
|
2010
|
-
exports.SidebarNavHelper = SidebarNavHelper;
|
|
2011
|
-
|
|
2012
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2013
|
-
|
|
2014
|
-
}));
|
|
2015
|
-
//# sourceMappingURL=coreui-angular.umd.js.map
|