@delon/theme 16.2.0 → 16.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compact.css +4 -1
- package/compact.min.css +1 -1
- package/dark.css +4 -1
- package/dark.min.css +1 -1
- package/default.css +4 -1
- package/default.min.css +1 -1
- package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +3 -3
- package/esm2022/layout-default/layout-header-item.component.mjs +6 -6
- package/esm2022/layout-default/layout-header.component.mjs +17 -21
- package/esm2022/layout-default/layout-nav.component.mjs +15 -15
- package/esm2022/layout-default/layout-top-menu-item.mjs +5 -5
- package/esm2022/layout-default/layout.component.mjs +21 -26
- package/esm2022/layout-default/layout.module.mjs +4 -4
- package/esm2022/layout-default/layout.service.mjs +3 -3
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +5 -5
- package/esm2022/setting-drawer/setting-drawer.component.mjs +9 -12
- package/esm2022/setting-drawer/setting-drawer.module.mjs +4 -4
- package/esm2022/src/locale/locale.module.mjs +4 -4
- package/esm2022/src/locale/locale.service.mjs +3 -3
- package/esm2022/src/pipes/date/date.pipe.mjs +3 -3
- package/esm2022/src/pipes/keys/keys.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/html.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/url.pipe.mjs +3 -3
- package/esm2022/src/pipes/yn/yn.pipe.mjs +3 -3
- package/esm2022/src/services/drawer/drawer.helper.mjs +3 -3
- package/esm2022/src/services/http/http.client.mjs +3 -3
- package/esm2022/src/services/http/http.decorator.mjs +3 -3
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +3 -3
- package/esm2022/src/services/i18n/i18n.mjs +6 -6
- package/esm2022/src/services/i18n/i18n.pipe.mjs +3 -3
- package/esm2022/src/services/menu/menu.service.mjs +3 -3
- package/esm2022/src/services/modal/modal.helper.mjs +3 -3
- package/esm2022/src/services/responsive/responsive.mjs +3 -3
- package/esm2022/src/services/rtl/rtl.service.mjs +3 -3
- package/esm2022/src/services/settings/settings.service.mjs +3 -3
- package/esm2022/src/services/title/title.service.mjs +11 -12
- package/esm2022/src/theme.module.mjs +4 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +12 -12
- package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
- package/fesm2022/layout-default.mjs +65 -75
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +16 -19
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +15 -15
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +73 -74
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/layout-header.component.d.ts +2 -3
- package/layout-default/layout.component.d.ts +2 -4
- package/package.json +3 -3
- package/setting-drawer/setting-drawer.component.d.ts +3 -4
- package/src/services/title/title.service.d.ts +1 -1
- package/system/antd/_table.less +4 -1
- package/theme-btn/theme-btn.component.d.ts +5 -4
|
@@ -2,10 +2,11 @@ import { __decorate } from 'tslib';
|
|
|
2
2
|
import * as i5 from '@angular/common';
|
|
3
3
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Component, ViewChild, Input, Injectable, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, Optional, Output, ContentChildren, Directive, NgModule } from '@angular/core';
|
|
5
|
+
import { Component, ViewChild, Input, Injectable, inject, DestroyRef, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, Inject, Optional, Output, ContentChildren, Directive, NgModule } from '@angular/core';
|
|
6
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
7
|
import * as i2 from '@angular/router';
|
|
7
8
|
import { NavigationEnd, RouteConfigLoadStart, NavigationError, NavigationCancel, RouteConfigLoadEnd, RouterModule } from '@angular/router';
|
|
8
|
-
import { BehaviorSubject,
|
|
9
|
+
import { BehaviorSubject, filter } from 'rxjs';
|
|
9
10
|
import { updateHostClass } from '@delon/util/browser';
|
|
10
11
|
import { InputBoolean, InputNumber, ZoneOutside } from '@delon/util/decorator';
|
|
11
12
|
import * as i2$1 from 'ng-zorro-antd/message';
|
|
@@ -28,20 +29,20 @@ class LayoutDefaultHeaderItemComponent {
|
|
|
28
29
|
this.hidden = 'none';
|
|
29
30
|
this.direction = 'right';
|
|
30
31
|
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultHeaderItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: { hidden: "hidden", direction: "direction" }, viewQueries: [{ propertyName: "host", first: true, predicate: ["host"], descendants: true, static: true }], ngImport: i0, template: `
|
|
33
34
|
<ng-template #host>
|
|
34
|
-
<ng-content
|
|
35
|
+
<ng-content />
|
|
35
36
|
</ng-template>
|
|
36
37
|
`, isInline: true }); }
|
|
37
38
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultHeaderItemComponent, decorators: [{
|
|
39
40
|
type: Component,
|
|
40
41
|
args: [{
|
|
41
42
|
selector: 'layout-default-header-item',
|
|
42
43
|
template: `
|
|
43
44
|
<ng-template #host>
|
|
44
|
-
<ng-content
|
|
45
|
+
<ng-content />
|
|
45
46
|
</ng-template>
|
|
46
47
|
`
|
|
47
48
|
}]
|
|
@@ -107,10 +108,10 @@ class LayoutDefaultService {
|
|
|
107
108
|
this.settings.setLayout('collapsed', status != null ? status : !this.settings.layout.collapsed);
|
|
108
109
|
this.notify();
|
|
109
110
|
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
111
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultService, deps: [{ token: i1.SettingsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
112
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultService, providedIn: 'root' }); }
|
|
112
113
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultService, decorators: [{
|
|
114
115
|
type: Injectable,
|
|
115
116
|
args: [{ providedIn: 'root' }]
|
|
116
117
|
}], ctorParameters: function () { return [{ type: i1.SettingsService }]; } });
|
|
@@ -135,7 +136,7 @@ class LayoutDefaultNavComponent {
|
|
|
135
136
|
this.doc = doc;
|
|
136
137
|
this.win = win;
|
|
137
138
|
this.directionality = directionality;
|
|
138
|
-
this.destroy$ =
|
|
139
|
+
this.destroy$ = inject(DestroyRef);
|
|
139
140
|
this.dir = 'ltr';
|
|
140
141
|
this.list = [];
|
|
141
142
|
this.disabledAcl = false;
|
|
@@ -272,9 +273,9 @@ class LayoutDefaultNavComponent {
|
|
|
272
273
|
this.menuSrv.open(menuSrv.find({ url, recursive: recursivePath }));
|
|
273
274
|
}
|
|
274
275
|
ngOnInit() {
|
|
275
|
-
const { doc, router,
|
|
276
|
+
const { doc, router, menuSrv, settings, cdr } = this;
|
|
276
277
|
this.bodyEl = doc.querySelector('body');
|
|
277
|
-
menuSrv.change.pipe(
|
|
278
|
+
menuSrv.change.pipe(takeUntilDestroyed(this.destroy$)).subscribe(data => {
|
|
278
279
|
menuSrv.visit(data, (i, _p, depth) => {
|
|
279
280
|
i._text = this.sanitizer.bypassSecurityTrustHtml(i.text);
|
|
280
281
|
i._needIcon = depth <= this.maxLevelIcon && !!i.icon;
|
|
@@ -295,7 +296,7 @@ class LayoutDefaultNavComponent {
|
|
|
295
296
|
this.list = data.filter((w) => w._hidden !== true);
|
|
296
297
|
cdr.detectChanges();
|
|
297
298
|
});
|
|
298
|
-
router.events.pipe(
|
|
299
|
+
router.events.pipe(takeUntilDestroyed(this.destroy$)).subscribe(e => {
|
|
299
300
|
if (e instanceof NavigationEnd) {
|
|
300
301
|
this.openByUrl(e.urlAfterRedirects);
|
|
301
302
|
this.underPad();
|
|
@@ -303,12 +304,13 @@ class LayoutDefaultNavComponent {
|
|
|
303
304
|
}
|
|
304
305
|
});
|
|
305
306
|
settings.notify
|
|
306
|
-
.pipe(
|
|
307
|
+
.pipe(takeUntilDestroyed(this.destroy$), filter(t => t.type === 'layout' && t.name === 'collapsed'))
|
|
307
308
|
.subscribe(() => this.clearFloating());
|
|
308
309
|
this.underPad();
|
|
309
310
|
this.dir = this.directionality.value;
|
|
310
|
-
this.directionality.change?.pipe(
|
|
311
|
+
this.directionality.change?.pipe(takeUntilDestroyed(this.destroy$)).subscribe((direction) => {
|
|
311
312
|
this.dir = direction;
|
|
313
|
+
this.cdr.detectChanges();
|
|
312
314
|
});
|
|
313
315
|
this.openByUrl(router.url);
|
|
314
316
|
this.ngZone.runOutsideAngular(() => this.genFloating());
|
|
@@ -327,8 +329,6 @@ class LayoutDefaultNavComponent {
|
|
|
327
329
|
inFn(ls);
|
|
328
330
|
}
|
|
329
331
|
ngOnDestroy() {
|
|
330
|
-
this.destroy$.next();
|
|
331
|
-
this.destroy$.complete();
|
|
332
332
|
this.clearFloating();
|
|
333
333
|
}
|
|
334
334
|
// #region Under pad
|
|
@@ -343,8 +343,8 @@ class LayoutDefaultNavComponent {
|
|
|
343
343
|
openAside(status) {
|
|
344
344
|
this.settings.setLayout('collapsed', status);
|
|
345
345
|
}
|
|
346
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
347
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.
|
|
346
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultNavComponent, deps: [{ token: i1.MenuService }, { token: i1.SettingsService }, { token: i2.Router }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i3.DomSanitizer }, { token: DOCUMENT }, { token: WINDOW }, { token: i4.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
347
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: LayoutDefaultNavComponent, selector: "layout-default-nav", inputs: { disabledAcl: "disabledAcl", autoCloseUnderPad: "autoCloseUnderPad", recursivePath: "recursivePath", openStrictly: "openStrictly", maxLevelIcon: "maxLevelIcon" }, outputs: { select: "select" }, host: { listeners: { "click": "_click()", "document:click": "closeSubMenu()" }, properties: { "class.d-block": "true" } }, ngImport: i0, template: "<ng-template #icon let-i>\n <ng-container *ngIf=\"i\" [ngSwitch]=\"i.type\">\n <i\n *ngSwitchCase=\"'icon'\"\n class=\"sidebar-nav__item-icon\"\n nz-icon\n [nzType]=\"i.value\"\n [nzTheme]=\"i.theme\"\n [nzSpin]=\"i.spin\"\n [nzTwotoneColor]=\"i.twoToneColor\"\n [nzIconfont]=\"i.iconfont\"\n [nzRotate]=\"i.rotate\"\n ></i>\n <i *ngSwitchCase=\"'iconfont'\" class=\"sidebar-nav__item-icon\" nz-icon [nzIconfont]=\"i.iconfont\"></i>\n <img *ngSwitchCase=\"'img'\" [src]=\"i.value\" class=\"sidebar-nav__item-icon sidebar-nav__item-img\" />\n <span *ngSwitchCase=\"'svg'\" class=\"sidebar-nav__item-icon sidebar-nav__item-svg\" [innerHTML]=\"i.value\"></span>\n <i *ngSwitchDefault class=\"sidebar-nav__item-icon {{ i.value }}\"></i>\n </ng-container>\n</ng-template>\n<ng-template #tree let-ls>\n <ng-container *ngFor=\"let i of ls\">\n <li\n *ngIf=\"i._hidden !== true\"\n class=\"sidebar-nav__item\"\n [class.sidebar-nav__selected]=\"i._selected\"\n [class.sidebar-nav__open]=\"i.open\"\n >\n <!-- link -->\n <a\n *ngIf=\"i.children.length === 0\"\n (click)=\"to(i)\"\n [attr.data-id]=\"i._id\"\n class=\"sidebar-nav__item-link\"\n [ngClass]=\"{ 'sidebar-nav__item-disabled': i.disabled }\"\n (mouseenter)=\"closeSubMenu()\"\n >\n <ng-container *ngIf=\"i._needIcon\">\n <ng-container *ngIf=\"!collapsed\">\n <ng-template [ngTemplateOutlet]=\"icon\" [ngTemplateOutletContext]=\"{ $implicit: i.icon }\" />\n </ng-container>\n <span *ngIf=\"collapsed\" nz-tooltip nzTooltipPlacement=\"right\" [nzTooltipTitle]=\"i.text\">\n <ng-template [ngTemplateOutlet]=\"icon\" [ngTemplateOutletContext]=\"{ $implicit: i.icon }\" />\n </span>\n </ng-container>\n <span class=\"sidebar-nav__item-text\" [innerHTML]=\"i._text\" [attr.title]=\"i.text\"></span>\n </a>\n <!-- has children link -->\n <a\n *ngIf=\"i.children.length > 0\"\n (click)=\"toggleOpen(i)\"\n (mouseenter)=\"showSubMenu($event, i)\"\n class=\"sidebar-nav__item-link\"\n >\n <ng-template [ngTemplateOutlet]=\"icon\" [ngTemplateOutletContext]=\"{ $implicit: i.icon }\" />\n <span class=\"sidebar-nav__item-text\" [innerHTML]=\"i._text\" [attr.title]=\"i.text\"></span>\n <i class=\"sidebar-nav__sub-arrow\"></i>\n </a>\n <!-- badge -->\n <nz-badge *ngIf=\"i.badge\" [nzCount]=\"i.badge\" [nzDot]=\"i.badgeDot\" nzStandalone [nzOverflowCount]=\"9\" />\n <ul *ngIf=\"i.children.length > 0\" class=\"sidebar-nav sidebar-nav__sub sidebar-nav__depth{{ i._depth }}\">\n <ng-template [ngTemplateOutlet]=\"tree\" [ngTemplateOutletContext]=\"{ $implicit: i.children }\" />\n </ul>\n </li>\n </ng-container>\n</ng-template>\n<ul class=\"sidebar-nav\">\n <ng-container *ngFor=\"let group of list\">\n <li class=\"sidebar-nav__item sidebar-nav__group-title\" *ngIf=\"group.group\">\n <span [innerHTML]=\"group._text\"></span>\n </li>\n <ng-template [ngTemplateOutlet]=\"tree\" [ngTemplateOutletContext]=\"{ $implicit: group.children }\" />\n </ng-container>\n</ul>\n", dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i5.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i5.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i6.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i8.NzBadgeComponent, selector: "nz-badge", inputs: ["nzShowZero", "nzShowDot", "nzStandalone", "nzDot", "nzOverflowCount", "nzColor", "nzStyle", "nzText", "nzTitle", "nzStatus", "nzCount", "nzOffset", "nzSize"], exportAs: ["nzBadge"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
348
348
|
}
|
|
349
349
|
__decorate([
|
|
350
350
|
InputBoolean()
|
|
@@ -364,13 +364,13 @@ __decorate([
|
|
|
364
364
|
__decorate([
|
|
365
365
|
ZoneOutside()
|
|
366
366
|
], LayoutDefaultNavComponent.prototype, "showSubMenu", null);
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultNavComponent, decorators: [{
|
|
368
368
|
type: Component,
|
|
369
369
|
args: [{ selector: 'layout-default-nav', host: {
|
|
370
370
|
'(click)': '_click()',
|
|
371
371
|
'(document:click)': 'closeSubMenu()',
|
|
372
372
|
'[class.d-block]': `true`
|
|
373
|
-
}, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-template #icon let-i>\n <ng-container *ngIf=\"i\" [ngSwitch]=\"i.type\">\n <i\n *ngSwitchCase=\"'icon'\"\n class=\"sidebar-nav__item-icon\"\n nz-icon\n [nzType]=\"i.value\"\n [nzTheme]=\"i.theme\"\n [nzSpin]=\"i.spin\"\n [nzTwotoneColor]=\"i.twoToneColor\"\n [nzIconfont]=\"i.iconfont\"\n [nzRotate]=\"i.rotate\"\n ></i>\n <i *ngSwitchCase=\"'iconfont'\" class=\"sidebar-nav__item-icon\" nz-icon [nzIconfont]=\"i.iconfont\"></i>\n <img *ngSwitchCase=\"'img'\" [src]=\"i.value\" class=\"sidebar-nav__item-icon sidebar-nav__item-img\" />\n <span *ngSwitchCase=\"'svg'\" class=\"sidebar-nav__item-icon sidebar-nav__item-svg\" [innerHTML]=\"i.value\"></span>\n <i *ngSwitchDefault class=\"sidebar-nav__item-icon {{ i.value }}\"></i>\n </ng-container>\n</ng-template>\n<ng-template #tree let-ls>\n <ng-container *ngFor=\"let i of ls\">\n <li\n *ngIf=\"i._hidden !== true\"\n class=\"sidebar-nav__item\"\n [class.sidebar-nav__selected]=\"i._selected\"\n [class.sidebar-nav__open]=\"i.open\"\n >\n <!-- link -->\n <a\n *ngIf=\"i.children.length === 0\"\n (click)=\"to(i)\"\n [attr.data-id]=\"i._id\"\n class=\"sidebar-nav__item-link\"\n [ngClass]=\"{ 'sidebar-nav__item-disabled': i.disabled }\"\n (mouseenter)=\"closeSubMenu()\"\n >\n <ng-container *ngIf=\"i._needIcon\">\n <ng-container *ngIf=\"!collapsed\">\n <ng-template [ngTemplateOutlet]=\"icon\" [ngTemplateOutletContext]=\"{ $implicit: i.icon }\"
|
|
373
|
+
}, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-template #icon let-i>\n <ng-container *ngIf=\"i\" [ngSwitch]=\"i.type\">\n <i\n *ngSwitchCase=\"'icon'\"\n class=\"sidebar-nav__item-icon\"\n nz-icon\n [nzType]=\"i.value\"\n [nzTheme]=\"i.theme\"\n [nzSpin]=\"i.spin\"\n [nzTwotoneColor]=\"i.twoToneColor\"\n [nzIconfont]=\"i.iconfont\"\n [nzRotate]=\"i.rotate\"\n ></i>\n <i *ngSwitchCase=\"'iconfont'\" class=\"sidebar-nav__item-icon\" nz-icon [nzIconfont]=\"i.iconfont\"></i>\n <img *ngSwitchCase=\"'img'\" [src]=\"i.value\" class=\"sidebar-nav__item-icon sidebar-nav__item-img\" />\n <span *ngSwitchCase=\"'svg'\" class=\"sidebar-nav__item-icon sidebar-nav__item-svg\" [innerHTML]=\"i.value\"></span>\n <i *ngSwitchDefault class=\"sidebar-nav__item-icon {{ i.value }}\"></i>\n </ng-container>\n</ng-template>\n<ng-template #tree let-ls>\n <ng-container *ngFor=\"let i of ls\">\n <li\n *ngIf=\"i._hidden !== true\"\n class=\"sidebar-nav__item\"\n [class.sidebar-nav__selected]=\"i._selected\"\n [class.sidebar-nav__open]=\"i.open\"\n >\n <!-- link -->\n <a\n *ngIf=\"i.children.length === 0\"\n (click)=\"to(i)\"\n [attr.data-id]=\"i._id\"\n class=\"sidebar-nav__item-link\"\n [ngClass]=\"{ 'sidebar-nav__item-disabled': i.disabled }\"\n (mouseenter)=\"closeSubMenu()\"\n >\n <ng-container *ngIf=\"i._needIcon\">\n <ng-container *ngIf=\"!collapsed\">\n <ng-template [ngTemplateOutlet]=\"icon\" [ngTemplateOutletContext]=\"{ $implicit: i.icon }\" />\n </ng-container>\n <span *ngIf=\"collapsed\" nz-tooltip nzTooltipPlacement=\"right\" [nzTooltipTitle]=\"i.text\">\n <ng-template [ngTemplateOutlet]=\"icon\" [ngTemplateOutletContext]=\"{ $implicit: i.icon }\" />\n </span>\n </ng-container>\n <span class=\"sidebar-nav__item-text\" [innerHTML]=\"i._text\" [attr.title]=\"i.text\"></span>\n </a>\n <!-- has children link -->\n <a\n *ngIf=\"i.children.length > 0\"\n (click)=\"toggleOpen(i)\"\n (mouseenter)=\"showSubMenu($event, i)\"\n class=\"sidebar-nav__item-link\"\n >\n <ng-template [ngTemplateOutlet]=\"icon\" [ngTemplateOutletContext]=\"{ $implicit: i.icon }\" />\n <span class=\"sidebar-nav__item-text\" [innerHTML]=\"i._text\" [attr.title]=\"i.text\"></span>\n <i class=\"sidebar-nav__sub-arrow\"></i>\n </a>\n <!-- badge -->\n <nz-badge *ngIf=\"i.badge\" [nzCount]=\"i.badge\" [nzDot]=\"i.badgeDot\" nzStandalone [nzOverflowCount]=\"9\" />\n <ul *ngIf=\"i.children.length > 0\" class=\"sidebar-nav sidebar-nav__sub sidebar-nav__depth{{ i._depth }}\">\n <ng-template [ngTemplateOutlet]=\"tree\" [ngTemplateOutletContext]=\"{ $implicit: i.children }\" />\n </ul>\n </li>\n </ng-container>\n</ng-template>\n<ul class=\"sidebar-nav\">\n <ng-container *ngFor=\"let group of list\">\n <li class=\"sidebar-nav__item sidebar-nav__group-title\" *ngIf=\"group.group\">\n <span [innerHTML]=\"group._text\"></span>\n </li>\n <ng-template [ngTemplateOutlet]=\"tree\" [ngTemplateOutletContext]=\"{ $implicit: group.children }\" />\n </ng-container>\n</ul>\n" }]
|
|
374
374
|
}], ctorParameters: function () { return [{ type: i1.MenuService }, { type: i1.SettingsService }, { type: i2.Router }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i3.DomSanitizer }, { type: undefined, decorators: [{
|
|
375
375
|
type: Inject,
|
|
376
376
|
args: [DOCUMENT]
|
|
@@ -410,7 +410,7 @@ class LayoutDefaultHeaderComponent {
|
|
|
410
410
|
this.srv = srv;
|
|
411
411
|
this.settings = settings;
|
|
412
412
|
this.cdr = cdr;
|
|
413
|
-
this.destroy$ =
|
|
413
|
+
this.destroy$ = inject(DestroyRef);
|
|
414
414
|
this.left = [];
|
|
415
415
|
this.middle = [];
|
|
416
416
|
this.right = [];
|
|
@@ -423,22 +423,18 @@ class LayoutDefaultHeaderComponent {
|
|
|
423
423
|
this.cdr.detectChanges();
|
|
424
424
|
}
|
|
425
425
|
ngAfterViewInit() {
|
|
426
|
-
this.items.changes.pipe(
|
|
427
|
-
this.srv.options$.pipe(
|
|
426
|
+
this.items.changes.pipe(takeUntilDestroyed(this.destroy$)).subscribe(() => this.refresh());
|
|
427
|
+
this.srv.options$.pipe(takeUntilDestroyed(this.destroy$)).subscribe(() => this.cdr.detectChanges());
|
|
428
428
|
this.refresh();
|
|
429
429
|
}
|
|
430
430
|
toggleCollapsed() {
|
|
431
431
|
this.srv.toggleCollapsed();
|
|
432
432
|
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
this.destroy$.complete();
|
|
436
|
-
}
|
|
437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: LayoutDefaultHeaderComponent, deps: [{ token: LayoutDefaultService }, { token: i1.SettingsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
438
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: LayoutDefaultHeaderComponent, selector: "layout-default-header", inputs: { items: "items" }, host: { properties: { "class.alain-default__header": "true" } }, ngImport: i0, template: `
|
|
433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultHeaderComponent, deps: [{ token: LayoutDefaultService }, { token: i1.SettingsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
434
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: LayoutDefaultHeaderComponent, selector: "layout-default-header", inputs: { items: "items" }, host: { properties: { "class.alain-default__header": "true" } }, ngImport: i0, template: `
|
|
439
435
|
<ng-template #render let-ls>
|
|
440
436
|
<li *ngFor="let i of ls" [class.hidden-mobile]="i.hidden === 'mobile'" [class.hidden-pc]="i.hidden === 'pc'">
|
|
441
|
-
<ng-container *ngTemplateOutlet="i.host"
|
|
437
|
+
<ng-container *ngTemplateOutlet="i.host" />
|
|
442
438
|
</li>
|
|
443
439
|
</ng-template>
|
|
444
440
|
<div class="alain-default__header-logo" [style.width.px]="opt.logoFixWidth">
|
|
@@ -456,25 +452,25 @@ class LayoutDefaultHeaderComponent {
|
|
|
456
452
|
<span nz-icon [nzType]="collapsedIcon"></span>
|
|
457
453
|
</div>
|
|
458
454
|
</li>
|
|
459
|
-
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: left }"
|
|
455
|
+
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: left }" />
|
|
460
456
|
</ul>
|
|
461
457
|
<div *ngIf="middle.length > 0" class="alain-default__nav alain-default__nav-middle">
|
|
462
|
-
<ng-container *ngTemplateOutlet="middle[0].host"
|
|
458
|
+
<ng-container *ngTemplateOutlet="middle[0].host" />
|
|
463
459
|
</div>
|
|
464
460
|
<ul class="alain-default__nav">
|
|
465
|
-
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: right }"
|
|
461
|
+
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: right }" />
|
|
466
462
|
</ul>
|
|
467
463
|
</div>
|
|
468
464
|
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
469
465
|
}
|
|
470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultHeaderComponent, decorators: [{
|
|
471
467
|
type: Component,
|
|
472
468
|
args: [{
|
|
473
469
|
selector: 'layout-default-header',
|
|
474
470
|
template: `
|
|
475
471
|
<ng-template #render let-ls>
|
|
476
472
|
<li *ngFor="let i of ls" [class.hidden-mobile]="i.hidden === 'mobile'" [class.hidden-pc]="i.hidden === 'pc'">
|
|
477
|
-
<ng-container *ngTemplateOutlet="i.host"
|
|
473
|
+
<ng-container *ngTemplateOutlet="i.host" />
|
|
478
474
|
</li>
|
|
479
475
|
</ng-template>
|
|
480
476
|
<div class="alain-default__header-logo" [style.width.px]="opt.logoFixWidth">
|
|
@@ -492,13 +488,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
492
488
|
<span nz-icon [nzType]="collapsedIcon"></span>
|
|
493
489
|
</div>
|
|
494
490
|
</li>
|
|
495
|
-
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: left }"
|
|
491
|
+
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: left }" />
|
|
496
492
|
</ul>
|
|
497
493
|
<div *ngIf="middle.length > 0" class="alain-default__nav alain-default__nav-middle">
|
|
498
|
-
<ng-container *ngTemplateOutlet="middle[0].host"
|
|
494
|
+
<ng-container *ngTemplateOutlet="middle[0].host" />
|
|
499
495
|
</div>
|
|
500
496
|
<ul class="alain-default__nav">
|
|
501
|
-
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: right }"
|
|
497
|
+
<ng-template [ngTemplateOutlet]="render" [ngTemplateOutletContext]="{ $implicit: right }" />
|
|
502
498
|
</ul>
|
|
503
499
|
</div>
|
|
504
500
|
`,
|
|
@@ -545,14 +541,12 @@ class LayoutDefaultComponent {
|
|
|
545
541
|
this.content = null;
|
|
546
542
|
this.fetchingStrictly = false;
|
|
547
543
|
this.fetching = false;
|
|
548
|
-
this.destroy$ = new Subject();
|
|
549
544
|
this.isFetching = false;
|
|
550
|
-
const { destroy$ } = this;
|
|
551
545
|
router.events
|
|
552
|
-
.pipe(
|
|
546
|
+
.pipe(takeUntilDestroyed(), filter(() => !this.fetchingStrictly))
|
|
553
547
|
.subscribe(ev => this.processEv(ev));
|
|
554
|
-
this.srv.options$.pipe(
|
|
555
|
-
this.settings.notify.pipe(
|
|
548
|
+
this.srv.options$.pipe(takeUntilDestroyed()).subscribe(() => this.setClass());
|
|
549
|
+
this.settings.notify.pipe(takeUntilDestroyed()).subscribe(() => this.setClass());
|
|
556
550
|
}
|
|
557
551
|
processEv(ev) {
|
|
558
552
|
if (!this.isFetching && ev instanceof RouteConfigLoadStart) {
|
|
@@ -587,20 +581,16 @@ class LayoutDefaultComponent {
|
|
|
587
581
|
});
|
|
588
582
|
doc.body.classList[layout.colorWeak ? 'add' : 'remove']('color-weak');
|
|
589
583
|
}
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
this.destroy$.complete();
|
|
593
|
-
}
|
|
594
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: LayoutDefaultComponent, deps: [{ token: i2.Router }, { token: i2$1.NzMessageService }, { token: i1.SettingsService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DOCUMENT }, { token: LayoutDefaultService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
595
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: LayoutDefaultComponent, selector: "layout-default", inputs: { options: "options", asideUser: "asideUser", asideBottom: "asideBottom", nav: "nav", content: "content", customError: "customError", fetchingStrictly: "fetchingStrictly", fetching: "fetching" }, queries: [{ propertyName: "headerItems", predicate: LayoutDefaultHeaderItemComponent }], exportAs: ["layoutDefault"], ngImport: i0, template: `
|
|
584
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultComponent, deps: [{ token: i2.Router }, { token: i2$1.NzMessageService }, { token: i1.SettingsService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DOCUMENT }, { token: LayoutDefaultService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
585
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: LayoutDefaultComponent, selector: "layout-default", inputs: { options: "options", asideUser: "asideUser", asideBottom: "asideBottom", nav: "nav", content: "content", customError: "customError", fetchingStrictly: "fetchingStrictly", fetching: "fetching" }, queries: [{ propertyName: "headerItems", predicate: LayoutDefaultHeaderItemComponent }], exportAs: ["layoutDefault"], ngImport: i0, template: `
|
|
596
586
|
<div class="alain-default__progress-bar" *ngIf="showFetching"></div>
|
|
597
|
-
<layout-default-header *ngIf="!opt.hideHeader" [items]="headerItems"
|
|
587
|
+
<layout-default-header *ngIf="!opt.hideHeader" [items]="headerItems" />
|
|
598
588
|
<div *ngIf="!opt.hideAside" class="alain-default__aside">
|
|
599
589
|
<div class="alain-default__aside-wrap">
|
|
600
590
|
<div class="alain-default__aside-inner">
|
|
601
|
-
<ng-container *ngTemplateOutlet="asideUser"
|
|
602
|
-
<ng-container *ngTemplateOutlet="nav"
|
|
603
|
-
<layout-default-nav *ngIf="!nav"
|
|
591
|
+
<ng-container *ngTemplateOutlet="asideUser" />
|
|
592
|
+
<ng-container *ngTemplateOutlet="nav" />
|
|
593
|
+
<layout-default-nav *ngIf="!nav" />
|
|
604
594
|
</div>
|
|
605
595
|
<div *ngIf="opt.showSiderCollapse" class="alain-default__aside-link">
|
|
606
596
|
<ng-container *ngIf="asideBottom === null; else asideBottom">
|
|
@@ -612,8 +602,8 @@ class LayoutDefaultComponent {
|
|
|
612
602
|
</div>
|
|
613
603
|
</div>
|
|
614
604
|
<section class="alain-default__content">
|
|
615
|
-
<ng-container *ngTemplateOutlet="content"
|
|
616
|
-
<ng-content
|
|
605
|
+
<ng-container *ngTemplateOutlet="content" />
|
|
606
|
+
<ng-content />
|
|
617
607
|
</section>
|
|
618
608
|
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: LayoutDefaultNavComponent, selector: "layout-default-nav", inputs: ["disabledAcl", "autoCloseUnderPad", "recursivePath", "openStrictly", "maxLevelIcon"], outputs: ["select"] }, { kind: "component", type: LayoutDefaultHeaderComponent, selector: "layout-default-header", inputs: ["items"] }] }); }
|
|
619
609
|
}
|
|
@@ -623,20 +613,20 @@ __decorate([
|
|
|
623
613
|
__decorate([
|
|
624
614
|
InputBoolean()
|
|
625
615
|
], LayoutDefaultComponent.prototype, "fetching", void 0);
|
|
626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultComponent, decorators: [{
|
|
627
617
|
type: Component,
|
|
628
618
|
args: [{
|
|
629
619
|
selector: 'layout-default',
|
|
630
620
|
exportAs: 'layoutDefault',
|
|
631
621
|
template: `
|
|
632
622
|
<div class="alain-default__progress-bar" *ngIf="showFetching"></div>
|
|
633
|
-
<layout-default-header *ngIf="!opt.hideHeader" [items]="headerItems"
|
|
623
|
+
<layout-default-header *ngIf="!opt.hideHeader" [items]="headerItems" />
|
|
634
624
|
<div *ngIf="!opt.hideAside" class="alain-default__aside">
|
|
635
625
|
<div class="alain-default__aside-wrap">
|
|
636
626
|
<div class="alain-default__aside-inner">
|
|
637
|
-
<ng-container *ngTemplateOutlet="asideUser"
|
|
638
|
-
<ng-container *ngTemplateOutlet="nav"
|
|
639
|
-
<layout-default-nav *ngIf="!nav"
|
|
627
|
+
<ng-container *ngTemplateOutlet="asideUser" />
|
|
628
|
+
<ng-container *ngTemplateOutlet="nav" />
|
|
629
|
+
<layout-default-nav *ngIf="!nav" />
|
|
640
630
|
</div>
|
|
641
631
|
<div *ngIf="opt.showSiderCollapse" class="alain-default__aside-link">
|
|
642
632
|
<ng-container *ngIf="asideBottom === null; else asideBottom">
|
|
@@ -648,8 +638,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
648
638
|
</div>
|
|
649
639
|
</div>
|
|
650
640
|
<section class="alain-default__content">
|
|
651
|
-
<ng-container *ngTemplateOutlet="content"
|
|
652
|
-
<ng-content
|
|
641
|
+
<ng-container *ngTemplateOutlet="content" />
|
|
642
|
+
<ng-content />
|
|
653
643
|
</section>
|
|
654
644
|
`
|
|
655
645
|
}]
|
|
@@ -678,10 +668,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
678
668
|
}] } });
|
|
679
669
|
|
|
680
670
|
class LayoutDefaultHeaderItemTriggerDirective {
|
|
681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
682
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultHeaderItemTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
672
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.8", type: LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]", host: { properties: { "class.alain-default__nav-item": "true" } }, ngImport: i0 }); }
|
|
683
673
|
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultHeaderItemTriggerDirective, decorators: [{
|
|
685
675
|
type: Directive,
|
|
686
676
|
args: [{
|
|
687
677
|
selector: '[layout-default-header-item-trigger]',
|
|
@@ -696,8 +686,8 @@ class LayoutDefaultTopMenuItemComponent {
|
|
|
696
686
|
this.selected = false;
|
|
697
687
|
this.disabled = false;
|
|
698
688
|
}
|
|
699
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
700
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.
|
|
689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultTopMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
690
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: LayoutDefaultTopMenuItemComponent, selector: "layout-default-top-menu-item", inputs: { selected: "selected", disabled: "disabled" }, host: { properties: { "class.alain-default__nav-item": "true", "class.alain-default__top-menu-item": "true", "class.alain-default__top-menu-item-selected": "selected", "class.alain-default__top-menu-item-disabled": "disabled" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
701
691
|
}
|
|
702
692
|
__decorate([
|
|
703
693
|
InputBoolean()
|
|
@@ -705,11 +695,11 @@ __decorate([
|
|
|
705
695
|
__decorate([
|
|
706
696
|
InputBoolean()
|
|
707
697
|
], LayoutDefaultTopMenuItemComponent.prototype, "disabled", void 0);
|
|
708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultTopMenuItemComponent, decorators: [{
|
|
709
699
|
type: Component,
|
|
710
700
|
args: [{
|
|
711
701
|
selector: 'layout-default-top-menu-item',
|
|
712
|
-
template: `<ng-content
|
|
702
|
+
template: `<ng-content />`,
|
|
713
703
|
host: {
|
|
714
704
|
'[class.alain-default__nav-item]': `true`,
|
|
715
705
|
'[class.alain-default__top-menu-item]': `true`,
|
|
@@ -735,8 +725,8 @@ const COMPONENTS = [
|
|
|
735
725
|
LayoutDefaultTopMenuItemComponent
|
|
736
726
|
];
|
|
737
727
|
class LayoutDefaultModule {
|
|
738
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
739
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
729
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultModule, declarations: [LayoutDefaultComponent,
|
|
740
730
|
LayoutDefaultNavComponent,
|
|
741
731
|
LayoutDefaultHeaderComponent,
|
|
742
732
|
LayoutDefaultHeaderItemComponent,
|
|
@@ -754,7 +744,7 @@ class LayoutDefaultModule {
|
|
|
754
744
|
LayoutDefaultHeaderItemComponent,
|
|
755
745
|
LayoutDefaultHeaderItemTriggerDirective,
|
|
756
746
|
LayoutDefaultTopMenuItemComponent] }); }
|
|
757
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
747
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultModule, imports: [CommonModule,
|
|
758
748
|
RouterModule,
|
|
759
749
|
NzToolTipModule,
|
|
760
750
|
NzIconModule,
|
|
@@ -763,7 +753,7 @@ class LayoutDefaultModule {
|
|
|
763
753
|
NzMessageModule,
|
|
764
754
|
NzBadgeModule] }); }
|
|
765
755
|
}
|
|
766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutDefaultModule, decorators: [{
|
|
767
757
|
type: NgModule,
|
|
768
758
|
args: [{
|
|
769
759
|
imports: [
|