@yelon/bis 15.0.0-beta.1-6d209ae5 → 15.0.0-beta.3
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/esm2020/src/layout-basic/layout-basic.component.mjs +19 -11
- package/esm2020/src/yunzai-i18n.service.mjs +2 -2
- package/esm2020/src/yunzai-startup.service.mjs +3 -3
- package/fesm2015/bis.mjs +147 -141
- package/fesm2015/bis.mjs.map +1 -1
- package/fesm2020/bis.mjs +145 -139
- package/fesm2020/bis.mjs.map +1 -1
- package/package.json +11 -11
- package/src/layout-basic/layout-basic.component.d.ts +4 -3
- package/src/yunzai-i18n.service.d.ts +1 -1
- package/src/yunzai-layout.module.d.ts +1 -1
package/fesm2015/bis.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { AccountBookTwoTone, AccountBookFill, AccountBookOutline, AlertTwoTone,
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injectable, Component, ChangeDetectionStrategy, HostListener, Inject, Input, Optional, NgModule, APP_INITIALIZER } from '@angular/core';
|
|
4
4
|
import { BehaviorSubject, Subject, tap, forkJoin, map, takeUntil, of, mergeMap, mergeAll, throwError, filter, take, switchMap, catchError } from 'rxjs';
|
|
5
|
-
import * as i1$
|
|
5
|
+
import * as i1$3 from '@yelon/util';
|
|
6
6
|
import { getUrlParam, resizeWindow, WINDOW, log as log$1, deepCopy, YunzaiConfigService } from '@yelon/util';
|
|
7
|
-
import * as i1$
|
|
7
|
+
import * as i1$4 from '@yelon/cache';
|
|
8
8
|
import { CacheService } from '@yelon/cache';
|
|
9
9
|
import * as i3$3 from '@yelon/socket';
|
|
10
10
|
import * as i4$3 from '@angular/router';
|
|
@@ -17,7 +17,7 @@ import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
|
|
17
17
|
import * as i6 from 'ng-zorro-antd/menu';
|
|
18
18
|
import * as i7 from 'ng-zorro-antd/dropdown';
|
|
19
19
|
import * as i8 from 'ng-zorro-antd/icon';
|
|
20
|
-
import * as
|
|
20
|
+
import * as i9 from 'ng-zorro-antd/avatar';
|
|
21
21
|
import * as i1 from 'ng-zorro-antd/modal';
|
|
22
22
|
import * as i1$1 from 'ng-zorro-antd/message';
|
|
23
23
|
import * as i1$2 from '@yelon/theme';
|
|
@@ -40,12 +40,12 @@ import * as i4$2 from '@yelon/abc/notice-icon';
|
|
|
40
40
|
import { YUNZAI_THEME_BTN_KEYS } from '@yelon/theme/theme-btn';
|
|
41
41
|
import * as i3$2 from '@angular/cdk/bidi';
|
|
42
42
|
import * as i8$1 from 'ng-zorro-antd/tooltip';
|
|
43
|
+
import { YA_SERVICE_TOKEN, ALLOW_ANONYMOUS } from '@yelon/auth';
|
|
43
44
|
import * as i5 from '@angular/forms';
|
|
44
45
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
45
46
|
import * as i7$1 from 'ng-zorro-antd/grid';
|
|
46
|
-
import * as i9 from 'ng-zorro-antd/input';
|
|
47
|
+
import * as i9$1 from 'ng-zorro-antd/input';
|
|
47
48
|
import * as i8$2 from 'ng-zorro-antd/tabs';
|
|
48
|
-
import { YA_SERVICE_TOKEN, ALLOW_ANONYMOUS } from '@yelon/auth';
|
|
49
49
|
import { HttpErrorResponse, HttpResponse, HttpResponseBase, HttpClientModule } from '@angular/common/http';
|
|
50
50
|
import { NzNotificationService } from 'ng-zorro-antd/notification';
|
|
51
51
|
import { YunzaiSharedYelonModule, YunzaiSharedZorroModule } from '@yelon/bcs';
|
|
@@ -1537,6 +1537,120 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
1537
1537
|
type: Input
|
|
1538
1538
|
}] } });
|
|
1539
1539
|
|
|
1540
|
+
const BUSINESS_DEFAULT_CONFIG = {
|
|
1541
|
+
baseUrl: '/backstage',
|
|
1542
|
+
systemCode: 'portal',
|
|
1543
|
+
loginForm: null,
|
|
1544
|
+
refreshTokenEnabled: true,
|
|
1545
|
+
refreshTokenType: 're-request'
|
|
1546
|
+
};
|
|
1547
|
+
function mergeBisConfig(srv) {
|
|
1548
|
+
return srv.merge('bis', BUSINESS_DEFAULT_CONFIG);
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
class YunzaiUserComponent {
|
|
1552
|
+
constructor(injector, msg, tokenService,
|
|
1553
|
+
// @ts-ignore
|
|
1554
|
+
configService, cacheService) {
|
|
1555
|
+
this.injector = injector;
|
|
1556
|
+
this.msg = msg;
|
|
1557
|
+
this.tokenService = tokenService;
|
|
1558
|
+
this.configService = configService;
|
|
1559
|
+
this.cacheService = cacheService;
|
|
1560
|
+
this.icon = '';
|
|
1561
|
+
this.username = '';
|
|
1562
|
+
this.menus = [];
|
|
1563
|
+
this.config = mergeBisConfig(configService);
|
|
1564
|
+
}
|
|
1565
|
+
ngOnInit() {
|
|
1566
|
+
const projectInfo = this.cacheService.get('_yz_project_info', { mode: 'none' });
|
|
1567
|
+
const user = this.cacheService.get('_yz_user', { mode: 'none' });
|
|
1568
|
+
this.username = user.realname ? user.realname : '未命名';
|
|
1569
|
+
this.icon = user.avatarId
|
|
1570
|
+
? `${this.config.baseUrl}/filecenter/file/${user.avatarId}`
|
|
1571
|
+
: `./assets/tmp/img/avatar.jpg`;
|
|
1572
|
+
this.menus = projectInfo.profileList;
|
|
1573
|
+
}
|
|
1574
|
+
logout() {
|
|
1575
|
+
localStorage.clear();
|
|
1576
|
+
this.tokenService.clear();
|
|
1577
|
+
this.injector.get(WINDOW).location.href = `${this.config.baseUrl}/cas-proxy/app/logout`;
|
|
1578
|
+
}
|
|
1579
|
+
to(href) {
|
|
1580
|
+
if (href) {
|
|
1581
|
+
this.injector.get(WINDOW).open(href);
|
|
1582
|
+
}
|
|
1583
|
+
else {
|
|
1584
|
+
this.msg.error('该菜单没有配置链接!');
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
YunzaiUserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiUserComponent, deps: [{ token: i0.Injector }, { token: i1$1.NzMessageService }, { token: YA_SERVICE_TOKEN }, { token: i1$3.YunzaiConfigService }, { token: i1$4.CacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1589
|
+
YunzaiUserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: YunzaiUserComponent, selector: "yunzai-user", ngImport: i0, template: `
|
|
1590
|
+
<div
|
|
1591
|
+
class="yunzai-default__nav-item d-flex align-items-center px-sm"
|
|
1592
|
+
nz-dropdown
|
|
1593
|
+
nzPlacement="bottomRight"
|
|
1594
|
+
[nzDropdownMenu]="userMenu"
|
|
1595
|
+
>
|
|
1596
|
+
<div class="yz-user-name">
|
|
1597
|
+
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
|
|
1598
|
+
{{ username }}
|
|
1599
|
+
</div>
|
|
1600
|
+
</div>
|
|
1601
|
+
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
1602
|
+
<div nz-menu class="width-sm">
|
|
1603
|
+
<div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
|
|
1604
|
+
<i nz-icon [nzType]="m.icon" class="mr-sm"></i>
|
|
1605
|
+
{{ m.name | i18n }}
|
|
1606
|
+
</div>
|
|
1607
|
+
<li nz-menu-divider></li>
|
|
1608
|
+
<div nz-menu-item (click)="logout()">
|
|
1609
|
+
<i nz-icon nzType="logout" class="mr-sm"></i>
|
|
1610
|
+
{{ 'menu.account.logout' | i18n }}
|
|
1611
|
+
</div>
|
|
1612
|
+
</div>
|
|
1613
|
+
</nz-dropdown-menu>
|
|
1614
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i6.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "directive", type: i7.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i7.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i9.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiUserComponent, decorators: [{
|
|
1616
|
+
type: Component,
|
|
1617
|
+
args: [{
|
|
1618
|
+
selector: 'yunzai-user',
|
|
1619
|
+
template: `
|
|
1620
|
+
<div
|
|
1621
|
+
class="yunzai-default__nav-item d-flex align-items-center px-sm"
|
|
1622
|
+
nz-dropdown
|
|
1623
|
+
nzPlacement="bottomRight"
|
|
1624
|
+
[nzDropdownMenu]="userMenu"
|
|
1625
|
+
>
|
|
1626
|
+
<div class="yz-user-name">
|
|
1627
|
+
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
|
|
1628
|
+
{{ username }}
|
|
1629
|
+
</div>
|
|
1630
|
+
</div>
|
|
1631
|
+
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
1632
|
+
<div nz-menu class="width-sm">
|
|
1633
|
+
<div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
|
|
1634
|
+
<i nz-icon [nzType]="m.icon" class="mr-sm"></i>
|
|
1635
|
+
{{ m.name | i18n }}
|
|
1636
|
+
</div>
|
|
1637
|
+
<li nz-menu-divider></li>
|
|
1638
|
+
<div nz-menu-item (click)="logout()">
|
|
1639
|
+
<i nz-icon nzType="logout" class="mr-sm"></i>
|
|
1640
|
+
{{ 'menu.account.logout' | i18n }}
|
|
1641
|
+
</div>
|
|
1642
|
+
</div>
|
|
1643
|
+
</nz-dropdown-menu>
|
|
1644
|
+
`,
|
|
1645
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1646
|
+
}]
|
|
1647
|
+
}], ctorParameters: function () {
|
|
1648
|
+
return [{ type: i0.Injector }, { type: i1$1.NzMessageService }, { type: undefined, decorators: [{
|
|
1649
|
+
type: Inject,
|
|
1650
|
+
args: [YA_SERVICE_TOKEN]
|
|
1651
|
+
}] }, { type: i1$3.YunzaiConfigService }, { type: i1$4.CacheService }];
|
|
1652
|
+
} });
|
|
1653
|
+
|
|
1540
1654
|
var TopicType;
|
|
1541
1655
|
(function (TopicType) {
|
|
1542
1656
|
TopicType[TopicType["FULL"] = 0] = "FULL";
|
|
@@ -1652,7 +1766,7 @@ class LayoutNavApplicationComponent {
|
|
|
1652
1766
|
this.state.destroy$.complete();
|
|
1653
1767
|
}
|
|
1654
1768
|
}
|
|
1655
|
-
LayoutNavApplicationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavApplicationComponent, deps: [{ token: i1$
|
|
1769
|
+
LayoutNavApplicationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavApplicationComponent, deps: [{ token: i1$4.CacheService }, { token: YunzaiI18NService }, { token: i1$2._HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1656
1770
|
LayoutNavApplicationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: LayoutNavApplicationComponent, selector: "layout-nav-application", ngImport: i0, template: `
|
|
1657
1771
|
<!-- template start-->
|
|
1658
1772
|
<ng-template #search>
|
|
@@ -1718,7 +1832,7 @@ LayoutNavApplicationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
|
|
|
1718
1832
|
</div>
|
|
1719
1833
|
</div>
|
|
1720
1834
|
<!-- header end-->
|
|
1721
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i7$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i7$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i9.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i9.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] });
|
|
1835
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i7$1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i7$1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i9$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i9$1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i9$1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] });
|
|
1722
1836
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavApplicationComponent, decorators: [{
|
|
1723
1837
|
type: Component,
|
|
1724
1838
|
args: [{
|
|
@@ -1790,7 +1904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
1790
1904
|
<!-- header end-->
|
|
1791
1905
|
`
|
|
1792
1906
|
}]
|
|
1793
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1907
|
+
}], ctorParameters: function () { return [{ type: i1$4.CacheService }, { type: YunzaiI18NService }, { type: i1$2._HttpClient }, { type: i0.Injector }]; } });
|
|
1794
1908
|
|
|
1795
1909
|
class LayoutNavGroupComponent {
|
|
1796
1910
|
constructor(inject, cacheService, http) {
|
|
@@ -1834,7 +1948,7 @@ class LayoutNavGroupComponent {
|
|
|
1834
1948
|
this.state.destroy$.complete();
|
|
1835
1949
|
}
|
|
1836
1950
|
}
|
|
1837
|
-
LayoutNavGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavGroupComponent, deps: [{ token: i0.Injector }, { token: i1$
|
|
1951
|
+
LayoutNavGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavGroupComponent, deps: [{ token: i0.Injector }, { token: i1$4.CacheService }, { token: i1$2._HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
1838
1952
|
LayoutNavGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: LayoutNavGroupComponent, selector: "layout-nav-group", ngImport: i0, template: `
|
|
1839
1953
|
<div class="yz-application-group">
|
|
1840
1954
|
<nz-tabset>
|
|
@@ -1898,7 +2012,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
1898
2012
|
</div>
|
|
1899
2013
|
`
|
|
1900
2014
|
}]
|
|
1901
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$
|
|
2015
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$4.CacheService }, { type: i1$2._HttpClient }]; } });
|
|
1902
2016
|
|
|
1903
2017
|
class LayoutNavTileComponent {
|
|
1904
2018
|
constructor() { }
|
|
@@ -1913,7 +2027,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
1913
2027
|
}]
|
|
1914
2028
|
}], ctorParameters: function () { return []; } });
|
|
1915
2029
|
|
|
1916
|
-
class
|
|
2030
|
+
class YunzaiLayoutBasicComponent {
|
|
1917
2031
|
get options() {
|
|
1918
2032
|
return this.state.options;
|
|
1919
2033
|
}
|
|
@@ -1972,7 +2086,7 @@ class YzLayoutBasicComponent {
|
|
|
1972
2086
|
}
|
|
1973
2087
|
initAside() {
|
|
1974
2088
|
const aside = this.cacheService.get('_yz_current', { mode: 'none' });
|
|
1975
|
-
this.state.aside = aside;
|
|
2089
|
+
this.state.aside = Object.assign({}, aside);
|
|
1976
2090
|
}
|
|
1977
2091
|
initLogo() {
|
|
1978
2092
|
const projectInfo = this.cacheService.get('_yz_project_info', { mode: 'none' });
|
|
@@ -2021,8 +2135,8 @@ class YzLayoutBasicComponent {
|
|
|
2021
2135
|
this.state.destroy$.complete();
|
|
2022
2136
|
}
|
|
2023
2137
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
2138
|
+
YunzaiLayoutBasicComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutBasicComponent, deps: [{ token: LayoutDisplayService }, { token: i1$4.CacheService }, { token: i3$3.StompService }, { token: i4$3.Router }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component });
|
|
2139
|
+
YunzaiLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: YunzaiLayoutBasicComponent, selector: "yz-layout-basic", ngImport: i0, template: `<layout-default
|
|
2026
2140
|
[options]="options"
|
|
2027
2141
|
[asideUser]="asideUserTpl"
|
|
2028
2142
|
[content]="displayReusetab ? contentTpl : noneTpl"
|
|
@@ -2080,6 +2194,9 @@ YzLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
2080
2194
|
</div>
|
|
2081
2195
|
</nz-dropdown-menu>
|
|
2082
2196
|
</layout-default-header-item>
|
|
2197
|
+
<layout-default-header-item direction="right">
|
|
2198
|
+
<yunzai-user></yunzai-user>
|
|
2199
|
+
</layout-default-header-item>
|
|
2083
2200
|
<!-- setting end -->
|
|
2084
2201
|
</layout-default>
|
|
2085
2202
|
<ng-template #asideUserTpl>
|
|
@@ -2102,8 +2219,8 @@ YzLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
2102
2219
|
</ng-template>
|
|
2103
2220
|
<ng-template #noneTpl>
|
|
2104
2221
|
<router-outlet></router-outlet>
|
|
2105
|
-
</ng-template> `, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i4$3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i4$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: ["mode", "i18n", "debug", "max", "tabMaxWidth", "excludes", "allowClose", "keepingScroll", "storageState", "keepingScrollContainer", "customContextMenu", "tabBarExtraContent", "tabBarGutter", "tabBarStyle", "tabType", "routeParamMatchMode", "disabled", "titleRender", "canClose"], outputs: ["change", "close"], exportAs: ["reuseTab"] }, { kind: "component", type: i7$2.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "asideBottom", "nav", "content", "customError"], exportAs: ["layoutDefault"] }, { kind: "component", type: i7$2.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { kind: "directive", type: i7$2.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i7.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i7.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type:
|
|
2106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type:
|
|
2222
|
+
</ng-template> `, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i4$3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i4$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: ["mode", "i18n", "debug", "max", "tabMaxWidth", "excludes", "allowClose", "keepingScroll", "storageState", "keepingScrollContainer", "customContextMenu", "tabBarExtraContent", "tabBarGutter", "tabBarStyle", "tabType", "routeParamMatchMode", "disabled", "titleRender", "canClose"], outputs: ["change", "close"], exportAs: ["reuseTab"] }, { kind: "component", type: i7$2.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "asideBottom", "nav", "content", "customError"], exportAs: ["layoutDefault"] }, { kind: "component", type: i7$2.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { kind: "directive", type: i7$2.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i7.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i7.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i9.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "component", type: YunzaiClearStorageComponent, selector: "yunzai-clearstorage" }, { kind: "component", type: YunzaiFullScreenComponent, selector: "yunzai-fullscreen" }, { kind: "component", type: YunzaiI18NComponent, selector: "yunzai-i18n", inputs: ["showLangText"] }, { kind: "component", type: YunzaiNotifyComponent, selector: "yunzai-notify" }, { kind: "component", type: YunzaiThemBtnComponent, selector: "yunzai-theme-btn", inputs: ["types", "devTips", "deployUrl"] }, { kind: "component", type: YunzaiUserComponent, selector: "yunzai-user" }, { kind: "component", type: LayoutNavApplicationComponent, selector: "layout-nav-application" }, { kind: "component", type: LayoutNavGroupComponent, selector: "layout-nav-group" }, { kind: "component", type: LayoutNavTileComponent, selector: "layout-nav-tile" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] });
|
|
2223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
|
|
2107
2224
|
type: Component,
|
|
2108
2225
|
args: [{
|
|
2109
2226
|
selector: `yz-layout-basic`,
|
|
@@ -2165,6 +2282,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
2165
2282
|
</div>
|
|
2166
2283
|
</nz-dropdown-menu>
|
|
2167
2284
|
</layout-default-header-item>
|
|
2285
|
+
<layout-default-header-item direction="right">
|
|
2286
|
+
<yunzai-user></yunzai-user>
|
|
2287
|
+
</layout-default-header-item>
|
|
2168
2288
|
<!-- setting end -->
|
|
2169
2289
|
</layout-default>
|
|
2170
2290
|
<ng-template #asideUserTpl>
|
|
@@ -2190,126 +2310,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
2190
2310
|
</ng-template> `
|
|
2191
2311
|
}]
|
|
2192
2312
|
}], ctorParameters: function () {
|
|
2193
|
-
return [{ type: LayoutDisplayService }, { type: i1$
|
|
2313
|
+
return [{ type: LayoutDisplayService }, { type: i1$4.CacheService }, { type: i3$3.StompService }, { type: i4$3.Router }, { type: undefined, decorators: [{
|
|
2194
2314
|
type: Inject,
|
|
2195
2315
|
args: [WINDOW]
|
|
2196
2316
|
}] }];
|
|
2197
2317
|
} });
|
|
2198
2318
|
|
|
2199
|
-
const BUSINESS_DEFAULT_CONFIG = {
|
|
2200
|
-
baseUrl: '/backstage',
|
|
2201
|
-
systemCode: 'portal',
|
|
2202
|
-
loginForm: null,
|
|
2203
|
-
refreshTokenEnabled: true,
|
|
2204
|
-
refreshTokenType: 're-request'
|
|
2205
|
-
};
|
|
2206
|
-
function mergeBisConfig(srv) {
|
|
2207
|
-
return srv.merge('bis', BUSINESS_DEFAULT_CONFIG);
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
|
-
class YunzaiUserComponent {
|
|
2211
|
-
constructor(injector, msg, tokenService,
|
|
2212
|
-
// @ts-ignore
|
|
2213
|
-
configService, cacheService) {
|
|
2214
|
-
this.injector = injector;
|
|
2215
|
-
this.msg = msg;
|
|
2216
|
-
this.tokenService = tokenService;
|
|
2217
|
-
this.configService = configService;
|
|
2218
|
-
this.cacheService = cacheService;
|
|
2219
|
-
this.icon = '';
|
|
2220
|
-
this.username = '';
|
|
2221
|
-
this.menus = [];
|
|
2222
|
-
this.config = mergeBisConfig(configService);
|
|
2223
|
-
}
|
|
2224
|
-
ngOnInit() {
|
|
2225
|
-
const projectInfo = this.cacheService.get('_yz_project_info', { mode: 'none' });
|
|
2226
|
-
const user = this.cacheService.get('_yz_user', { mode: 'none' });
|
|
2227
|
-
this.username = user.realname ? user.realname : '未命名';
|
|
2228
|
-
this.icon = user.avatarId
|
|
2229
|
-
? `${this.config.baseUrl}/filecenter/file/${user.avatarId}`
|
|
2230
|
-
: `./assets/tmp/img/avatar.jpg`;
|
|
2231
|
-
this.menus = projectInfo.profileList;
|
|
2232
|
-
}
|
|
2233
|
-
logout() {
|
|
2234
|
-
localStorage.clear();
|
|
2235
|
-
this.tokenService.clear();
|
|
2236
|
-
this.injector.get(WINDOW).location.href = `${this.config.baseUrl}/cas-proxy/app/logout`;
|
|
2237
|
-
}
|
|
2238
|
-
to(href) {
|
|
2239
|
-
if (href) {
|
|
2240
|
-
this.injector.get(WINDOW).open(href);
|
|
2241
|
-
}
|
|
2242
|
-
else {
|
|
2243
|
-
this.msg.error('该菜单没有配置链接!');
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
}
|
|
2247
|
-
YunzaiUserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiUserComponent, deps: [{ token: i0.Injector }, { token: i1$1.NzMessageService }, { token: YA_SERVICE_TOKEN }, { token: i1$4.YunzaiConfigService }, { token: i1$3.CacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2248
|
-
YunzaiUserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: YunzaiUserComponent, selector: "yunzai-user", ngImport: i0, template: `
|
|
2249
|
-
<div
|
|
2250
|
-
class="yunzai-default__nav-item d-flex align-items-center px-sm"
|
|
2251
|
-
nz-dropdown
|
|
2252
|
-
nzPlacement="bottomRight"
|
|
2253
|
-
[nzDropdownMenu]="userMenu"
|
|
2254
|
-
>
|
|
2255
|
-
<div class="yz-user-name">
|
|
2256
|
-
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
|
|
2257
|
-
{{ username }}
|
|
2258
|
-
</div>
|
|
2259
|
-
</div>
|
|
2260
|
-
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
2261
|
-
<div nz-menu class="width-sm">
|
|
2262
|
-
<div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
|
|
2263
|
-
<i nz-icon [nzType]="m.icon" class="mr-sm"></i>
|
|
2264
|
-
{{ m.name | i18n }}
|
|
2265
|
-
</div>
|
|
2266
|
-
<li nz-menu-divider></li>
|
|
2267
|
-
<div nz-menu-item (click)="logout()">
|
|
2268
|
-
<i nz-icon nzType="logout" class="mr-sm"></i>
|
|
2269
|
-
{{ 'menu.account.logout' | i18n }}
|
|
2270
|
-
</div>
|
|
2271
|
-
</div>
|
|
2272
|
-
</nz-dropdown-menu>
|
|
2273
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i6.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "directive", type: i7.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i7.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i12.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiUserComponent, decorators: [{
|
|
2275
|
-
type: Component,
|
|
2276
|
-
args: [{
|
|
2277
|
-
selector: 'yunzai-user',
|
|
2278
|
-
template: `
|
|
2279
|
-
<div
|
|
2280
|
-
class="yunzai-default__nav-item d-flex align-items-center px-sm"
|
|
2281
|
-
nz-dropdown
|
|
2282
|
-
nzPlacement="bottomRight"
|
|
2283
|
-
[nzDropdownMenu]="userMenu"
|
|
2284
|
-
>
|
|
2285
|
-
<div class="yz-user-name">
|
|
2286
|
-
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
|
|
2287
|
-
{{ username }}
|
|
2288
|
-
</div>
|
|
2289
|
-
</div>
|
|
2290
|
-
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
2291
|
-
<div nz-menu class="width-sm">
|
|
2292
|
-
<div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
|
|
2293
|
-
<i nz-icon [nzType]="m.icon" class="mr-sm"></i>
|
|
2294
|
-
{{ m.name | i18n }}
|
|
2295
|
-
</div>
|
|
2296
|
-
<li nz-menu-divider></li>
|
|
2297
|
-
<div nz-menu-item (click)="logout()">
|
|
2298
|
-
<i nz-icon nzType="logout" class="mr-sm"></i>
|
|
2299
|
-
{{ 'menu.account.logout' | i18n }}
|
|
2300
|
-
</div>
|
|
2301
|
-
</div>
|
|
2302
|
-
</nz-dropdown-menu>
|
|
2303
|
-
`,
|
|
2304
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2305
|
-
}]
|
|
2306
|
-
}], ctorParameters: function () {
|
|
2307
|
-
return [{ type: i0.Injector }, { type: i1$1.NzMessageService }, { type: undefined, decorators: [{
|
|
2308
|
-
type: Inject,
|
|
2309
|
-
args: [YA_SERVICE_TOKEN]
|
|
2310
|
-
}] }, { type: i1$4.YunzaiConfigService }, { type: i1$3.CacheService }];
|
|
2311
|
-
} });
|
|
2312
|
-
|
|
2313
2319
|
class ActGuard {
|
|
2314
2320
|
constructor(configService, cacheService, pathToRegexp, router) {
|
|
2315
2321
|
this.configService = configService;
|
|
@@ -2401,14 +2407,14 @@ class ActGuard {
|
|
|
2401
2407
|
});
|
|
2402
2408
|
}
|
|
2403
2409
|
}
|
|
2404
|
-
ActGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ActGuard, deps: [{ token: i1$
|
|
2410
|
+
ActGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ActGuard, deps: [{ token: i1$3.YunzaiConfigService }, { token: i1$4.CacheService }, { token: i1$3.PathToRegexpService }, { token: i4$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2405
2411
|
ActGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ActGuard, providedIn: 'root' });
|
|
2406
2412
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ActGuard, decorators: [{
|
|
2407
2413
|
type: Injectable,
|
|
2408
2414
|
args: [{
|
|
2409
2415
|
providedIn: 'root'
|
|
2410
2416
|
}]
|
|
2411
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2417
|
+
}], ctorParameters: function () { return [{ type: i1$3.YunzaiConfigService }, { type: i1$4.CacheService }, { type: i1$3.PathToRegexpService }, { type: i4$3.Router }]; } });
|
|
2412
2418
|
|
|
2413
2419
|
class YunzaiAuthService {
|
|
2414
2420
|
constructor(injector) {
|
|
@@ -2759,11 +2765,11 @@ const WIDGETS = [
|
|
|
2759
2765
|
YunzaiUserComponent
|
|
2760
2766
|
];
|
|
2761
2767
|
const LAYOUT_NAV_COMPONENTS = [LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent];
|
|
2762
|
-
const COMPONENTS = [
|
|
2768
|
+
const COMPONENTS = [YunzaiLayoutBasicComponent];
|
|
2763
2769
|
class YunzaiLayoutModule {
|
|
2764
2770
|
}
|
|
2765
2771
|
YunzaiLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2766
|
-
YunzaiLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutModule, declarations: [
|
|
2772
|
+
YunzaiLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutModule, declarations: [YunzaiLayoutBasicComponent, YunzaiClearStorageComponent,
|
|
2767
2773
|
YunzaiFullScreenComponent,
|
|
2768
2774
|
YunzaiI18NComponent,
|
|
2769
2775
|
YunzaiNotifyComponent,
|
|
@@ -2774,7 +2780,7 @@ YunzaiLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
2774
2780
|
RouterModule,
|
|
2775
2781
|
ReactiveFormsModule,
|
|
2776
2782
|
YunzaiSharedYelonModule,
|
|
2777
|
-
YunzaiSharedZorroModule], exports: [
|
|
2783
|
+
YunzaiSharedZorroModule], exports: [YunzaiLayoutBasicComponent, YunzaiClearStorageComponent,
|
|
2778
2784
|
YunzaiFullScreenComponent,
|
|
2779
2785
|
YunzaiI18NComponent,
|
|
2780
2786
|
YunzaiNotifyComponent,
|
|
@@ -2880,8 +2886,8 @@ class YunzaiStartupService {
|
|
|
2880
2886
|
// cache current
|
|
2881
2887
|
this.cacheService.set('_yz_current', {
|
|
2882
2888
|
name: currentMenu.text,
|
|
2883
|
-
intro: currentMenu.intro,
|
|
2884
|
-
icon: currentMenu.appIconUrl
|
|
2889
|
+
intro: currentMenu.intro || '',
|
|
2890
|
+
icon: currentMenu.appIconUrl || './assets/tmp/img/avatar.jpg'
|
|
2885
2891
|
});
|
|
2886
2892
|
// cache displayIndex
|
|
2887
2893
|
const attributes = currentMenu.attribute;
|
|
@@ -2900,7 +2906,7 @@ class YunzaiStartupService {
|
|
|
2900
2906
|
}
|
|
2901
2907
|
}
|
|
2902
2908
|
}
|
|
2903
|
-
YunzaiStartupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiStartupService, deps: [{ token: i8.NzIconService }, { token: i1$2.MenuService }, { token: YUNZAI_I18N_TOKEN }, { token: WINDOW }, { token: i1$2.SettingsService }, { token: i3$4.ACLService }, { token: i1$2.TitleService }, { token: YunzaiAuthService }, { token: i1$
|
|
2909
|
+
YunzaiStartupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiStartupService, deps: [{ token: i8.NzIconService }, { token: i1$2.MenuService }, { token: YUNZAI_I18N_TOKEN }, { token: WINDOW }, { token: i1$2.SettingsService }, { token: i3$4.ACLService }, { token: i1$2.TitleService }, { token: YunzaiAuthService }, { token: i1$4.CacheService }, { token: i1$3.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2904
2910
|
YunzaiStartupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiStartupService });
|
|
2905
2911
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiStartupService, decorators: [{
|
|
2906
2912
|
type: Injectable
|
|
@@ -2911,7 +2917,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
2911
2917
|
}] }, { type: undefined, decorators: [{
|
|
2912
2918
|
type: Inject,
|
|
2913
2919
|
args: [WINDOW]
|
|
2914
|
-
}] }, { type: i1$2.SettingsService }, { type: i3$4.ACLService }, { type: i1$2.TitleService }, { type: YunzaiAuthService }, { type: i1$
|
|
2920
|
+
}] }, { type: i1$2.SettingsService }, { type: i3$4.ACLService }, { type: i1$2.TitleService }, { type: YunzaiAuthService }, { type: i1$4.CacheService }, { type: i1$3.YunzaiConfigService }];
|
|
2915
2921
|
} });
|
|
2916
2922
|
function mapYzSideToYelonMenu(menus) {
|
|
2917
2923
|
menus.forEach(menu => {
|
|
@@ -2961,5 +2967,5 @@ const YUNZAI_APPINIT_PROVIDES = [
|
|
|
2961
2967
|
* Generated bundle index. Do not edit.
|
|
2962
2968
|
*/
|
|
2963
2969
|
|
|
2964
|
-
export { ActGuard, BUSINESS_DEFAULT_CONFIG, ICONS, LayoutDisplayService, LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent, NavType, TopicType, YUNZAI_APPINIT_PROVIDES, YUNZAI_APPINIT_PROVIDES as YZ_APPINIT_PROVIDES, YunzaiAuthService, YunzaiClearStorageComponent, YunzaiDefaultInterceptor, YunzaiFullScreenComponent, YunzaiI18NComponent, YunzaiI18NService, YunzaiLayoutModule, YunzaiNotifyComponent, YunzaiStartupService, YunzaiStartupServiceFactory, YunzaiThemBtnComponent, YunzaiUserComponent, YunzaiAuthService as YzAuthService, YunzaiDefaultInterceptor as YzDefaultInterceptor, YunzaiI18NService as
|
|
2970
|
+
export { ActGuard, BUSINESS_DEFAULT_CONFIG, ICONS, LayoutDisplayService, LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent, NavType, TopicType, YUNZAI_APPINIT_PROVIDES, YUNZAI_APPINIT_PROVIDES as YZ_APPINIT_PROVIDES, YunzaiAuthService, YunzaiClearStorageComponent, YunzaiDefaultInterceptor, YunzaiFullScreenComponent, YunzaiI18NComponent, YunzaiI18NService, YunzaiLayoutBasicComponent, YunzaiLayoutModule, YunzaiNotifyComponent, YunzaiStartupService, YunzaiStartupServiceFactory, YunzaiThemBtnComponent, YunzaiUserComponent, YunzaiAuthService as YzAuthService, YunzaiDefaultInterceptor as YzDefaultInterceptor, YunzaiI18NService as YzI18NService, YunzaiLayoutBasicComponent as YzLayoutBasicComponent, YunzaiStartupService as YzStartupService, YunzaiStartupServiceFactory as YzStartupServiceFactory, generateAbility, mapYzSideToYelonMenu, mergeBisConfig };
|
|
2965
2971
|
//# sourceMappingURL=bis.mjs.map
|