@yelon/bis 15.0.0-beta.2 → 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/fesm2020/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$4 from '@yelon/util';
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$3 from '@yelon/cache';
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 i12 from 'ng-zorro-antd/avatar';
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';
@@ -1546,6 +1546,118 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
1546
1546
  type: Input
1547
1547
  }] } });
1548
1548
 
1549
+ const BUSINESS_DEFAULT_CONFIG = {
1550
+ baseUrl: '/backstage',
1551
+ systemCode: 'portal',
1552
+ loginForm: null,
1553
+ refreshTokenEnabled: true,
1554
+ refreshTokenType: 're-request'
1555
+ };
1556
+ function mergeBisConfig(srv) {
1557
+ return srv.merge('bis', BUSINESS_DEFAULT_CONFIG);
1558
+ }
1559
+
1560
+ class YunzaiUserComponent {
1561
+ constructor(injector, msg, tokenService,
1562
+ // @ts-ignore
1563
+ configService, cacheService) {
1564
+ this.injector = injector;
1565
+ this.msg = msg;
1566
+ this.tokenService = tokenService;
1567
+ this.configService = configService;
1568
+ this.cacheService = cacheService;
1569
+ this.icon = '';
1570
+ this.username = '';
1571
+ this.menus = [];
1572
+ this.config = mergeBisConfig(configService);
1573
+ }
1574
+ ngOnInit() {
1575
+ const projectInfo = this.cacheService.get('_yz_project_info', { mode: 'none' });
1576
+ const user = this.cacheService.get('_yz_user', { mode: 'none' });
1577
+ this.username = user.realname ? user.realname : '未命名';
1578
+ this.icon = user.avatarId
1579
+ ? `${this.config.baseUrl}/filecenter/file/${user.avatarId}`
1580
+ : `./assets/tmp/img/avatar.jpg`;
1581
+ this.menus = projectInfo.profileList;
1582
+ }
1583
+ logout() {
1584
+ localStorage.clear();
1585
+ this.tokenService.clear();
1586
+ this.injector.get(WINDOW).location.href = `${this.config.baseUrl}/cas-proxy/app/logout`;
1587
+ }
1588
+ to(href) {
1589
+ if (href) {
1590
+ this.injector.get(WINDOW).open(href);
1591
+ }
1592
+ else {
1593
+ this.msg.error('该菜单没有配置链接!');
1594
+ }
1595
+ }
1596
+ }
1597
+ 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 });
1598
+ YunzaiUserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: YunzaiUserComponent, selector: "yunzai-user", ngImport: i0, template: `
1599
+ <div
1600
+ class="yunzai-default__nav-item d-flex align-items-center px-sm"
1601
+ nz-dropdown
1602
+ nzPlacement="bottomRight"
1603
+ [nzDropdownMenu]="userMenu"
1604
+ >
1605
+ <div class="yz-user-name">
1606
+ <nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
1607
+ {{ username }}
1608
+ </div>
1609
+ </div>
1610
+ <nz-dropdown-menu #userMenu="nzDropdownMenu">
1611
+ <div nz-menu class="width-sm">
1612
+ <div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
1613
+ <i nz-icon [nzType]="m.icon" class="mr-sm"></i>
1614
+ {{ m.name | i18n }}
1615
+ </div>
1616
+ <li nz-menu-divider></li>
1617
+ <div nz-menu-item (click)="logout()">
1618
+ <i nz-icon nzType="logout" class="mr-sm"></i>
1619
+ {{ 'menu.account.logout' | i18n }}
1620
+ </div>
1621
+ </div>
1622
+ </nz-dropdown-menu>
1623
+ `, 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 });
1624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiUserComponent, decorators: [{
1625
+ type: Component,
1626
+ args: [{
1627
+ selector: 'yunzai-user',
1628
+ template: `
1629
+ <div
1630
+ class="yunzai-default__nav-item d-flex align-items-center px-sm"
1631
+ nz-dropdown
1632
+ nzPlacement="bottomRight"
1633
+ [nzDropdownMenu]="userMenu"
1634
+ >
1635
+ <div class="yz-user-name">
1636
+ <nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
1637
+ {{ username }}
1638
+ </div>
1639
+ </div>
1640
+ <nz-dropdown-menu #userMenu="nzDropdownMenu">
1641
+ <div nz-menu class="width-sm">
1642
+ <div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
1643
+ <i nz-icon [nzType]="m.icon" class="mr-sm"></i>
1644
+ {{ m.name | i18n }}
1645
+ </div>
1646
+ <li nz-menu-divider></li>
1647
+ <div nz-menu-item (click)="logout()">
1648
+ <i nz-icon nzType="logout" class="mr-sm"></i>
1649
+ {{ 'menu.account.logout' | i18n }}
1650
+ </div>
1651
+ </div>
1652
+ </nz-dropdown-menu>
1653
+ `,
1654
+ changeDetection: ChangeDetectionStrategy.OnPush
1655
+ }]
1656
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$1.NzMessageService }, { type: undefined, decorators: [{
1657
+ type: Inject,
1658
+ args: [YA_SERVICE_TOKEN]
1659
+ }] }, { type: i1$3.YunzaiConfigService }, { type: i1$4.CacheService }]; } });
1660
+
1549
1661
  var TopicType;
1550
1662
  (function (TopicType) {
1551
1663
  TopicType[TopicType["FULL"] = 0] = "FULL";
@@ -1661,7 +1773,7 @@ class LayoutNavApplicationComponent {
1661
1773
  this.state.destroy$.complete();
1662
1774
  }
1663
1775
  }
1664
- LayoutNavApplicationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavApplicationComponent, deps: [{ token: i1$3.CacheService }, { token: YunzaiI18NService }, { token: i1$2._HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1776
+ 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 });
1665
1777
  LayoutNavApplicationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: LayoutNavApplicationComponent, selector: "layout-nav-application", ngImport: i0, template: `
1666
1778
  <!-- template start-->
1667
1779
  <ng-template #search>
@@ -1727,7 +1839,7 @@ LayoutNavApplicationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
1727
1839
  </div>
1728
1840
  </div>
1729
1841
  <!-- header end-->
1730
- `, 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" }] });
1842
+ `, 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" }] });
1731
1843
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavApplicationComponent, decorators: [{
1732
1844
  type: Component,
1733
1845
  args: [{
@@ -1799,7 +1911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
1799
1911
  <!-- header end-->
1800
1912
  `
1801
1913
  }]
1802
- }], ctorParameters: function () { return [{ type: i1$3.CacheService }, { type: YunzaiI18NService }, { type: i1$2._HttpClient }, { type: i0.Injector }]; } });
1914
+ }], ctorParameters: function () { return [{ type: i1$4.CacheService }, { type: YunzaiI18NService }, { type: i1$2._HttpClient }, { type: i0.Injector }]; } });
1803
1915
 
1804
1916
  class LayoutNavGroupComponent {
1805
1917
  constructor(inject, cacheService, http) {
@@ -1843,7 +1955,7 @@ class LayoutNavGroupComponent {
1843
1955
  this.state.destroy$.complete();
1844
1956
  }
1845
1957
  }
1846
- LayoutNavGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LayoutNavGroupComponent, deps: [{ token: i0.Injector }, { token: i1$3.CacheService }, { token: i1$2._HttpClient }], target: i0.ɵɵFactoryTarget.Component });
1958
+ 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 });
1847
1959
  LayoutNavGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: LayoutNavGroupComponent, selector: "layout-nav-group", ngImport: i0, template: `
1848
1960
  <div class="yz-application-group">
1849
1961
  <nz-tabset>
@@ -1907,7 +2019,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
1907
2019
  </div>
1908
2020
  `
1909
2021
  }]
1910
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$3.CacheService }, { type: i1$2._HttpClient }]; } });
2022
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$4.CacheService }, { type: i1$2._HttpClient }]; } });
1911
2023
 
1912
2024
  class LayoutNavTileComponent {
1913
2025
  constructor() { }
@@ -1922,7 +2034,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
1922
2034
  }]
1923
2035
  }], ctorParameters: function () { return []; } });
1924
2036
 
1925
- class YzLayoutBasicComponent {
2037
+ class YunzaiLayoutBasicComponent {
1926
2038
  get options() {
1927
2039
  return this.state.options;
1928
2040
  }
@@ -1987,7 +2099,7 @@ class YzLayoutBasicComponent {
1987
2099
  }
1988
2100
  initAside() {
1989
2101
  const aside = this.cacheService.get('_yz_current', { mode: 'none' });
1990
- this.state.aside = aside;
2102
+ this.state.aside = { ...aside };
1991
2103
  }
1992
2104
  initLogo() {
1993
2105
  const projectInfo = this.cacheService.get('_yz_project_info', { mode: 'none' });
@@ -2035,8 +2147,8 @@ class YzLayoutBasicComponent {
2035
2147
  this.state.destroy$.complete();
2036
2148
  }
2037
2149
  }
2038
- YzLayoutBasicComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YzLayoutBasicComponent, deps: [{ token: LayoutDisplayService }, { token: i1$3.CacheService }, { token: i3$3.StompService }, { token: i4$3.Router }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component });
2039
- YzLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: YzLayoutBasicComponent, selector: "yz-layout-basic", ngImport: i0, template: `<layout-default
2150
+ 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 });
2151
+ YunzaiLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: YunzaiLayoutBasicComponent, selector: "yz-layout-basic", ngImport: i0, template: `<layout-default
2040
2152
  [options]="options"
2041
2153
  [asideUser]="asideUserTpl"
2042
2154
  [content]="displayReusetab ? contentTpl : noneTpl"
@@ -2094,6 +2206,9 @@ YzLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
2094
2206
  </div>
2095
2207
  </nz-dropdown-menu>
2096
2208
  </layout-default-header-item>
2209
+ <layout-default-header-item direction="right">
2210
+ <yunzai-user></yunzai-user>
2211
+ </layout-default-header-item>
2097
2212
  <!-- setting end -->
2098
2213
  </layout-default>
2099
2214
  <ng-template #asideUserTpl>
@@ -2116,8 +2231,8 @@ YzLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
2116
2231
  </ng-template>
2117
2232
  <ng-template #noneTpl>
2118
2233
  <router-outlet></router-outlet>
2119
- </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: i12.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: 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" }] });
2120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YzLayoutBasicComponent, decorators: [{
2234
+ </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" }] });
2235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
2121
2236
  type: Component,
2122
2237
  args: [{
2123
2238
  selector: `yz-layout-basic`,
@@ -2179,6 +2294,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
2179
2294
  </div>
2180
2295
  </nz-dropdown-menu>
2181
2296
  </layout-default-header-item>
2297
+ <layout-default-header-item direction="right">
2298
+ <yunzai-user></yunzai-user>
2299
+ </layout-default-header-item>
2182
2300
  <!-- setting end -->
2183
2301
  </layout-default>
2184
2302
  <ng-template #asideUserTpl>
@@ -2203,123 +2321,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
2203
2321
  <router-outlet></router-outlet>
2204
2322
  </ng-template> `
2205
2323
  }]
2206
- }], ctorParameters: function () { return [{ type: LayoutDisplayService }, { type: i1$3.CacheService }, { type: i3$3.StompService }, { type: i4$3.Router }, { type: undefined, decorators: [{
2324
+ }], ctorParameters: function () { return [{ type: LayoutDisplayService }, { type: i1$4.CacheService }, { type: i3$3.StompService }, { type: i4$3.Router }, { type: undefined, decorators: [{
2207
2325
  type: Inject,
2208
2326
  args: [WINDOW]
2209
2327
  }] }]; } });
2210
2328
 
2211
- const BUSINESS_DEFAULT_CONFIG = {
2212
- baseUrl: '/backstage',
2213
- systemCode: 'portal',
2214
- loginForm: null,
2215
- refreshTokenEnabled: true,
2216
- refreshTokenType: 're-request'
2217
- };
2218
- function mergeBisConfig(srv) {
2219
- return srv.merge('bis', BUSINESS_DEFAULT_CONFIG);
2220
- }
2221
-
2222
- class YunzaiUserComponent {
2223
- constructor(injector, msg, tokenService,
2224
- // @ts-ignore
2225
- configService, cacheService) {
2226
- this.injector = injector;
2227
- this.msg = msg;
2228
- this.tokenService = tokenService;
2229
- this.configService = configService;
2230
- this.cacheService = cacheService;
2231
- this.icon = '';
2232
- this.username = '';
2233
- this.menus = [];
2234
- this.config = mergeBisConfig(configService);
2235
- }
2236
- ngOnInit() {
2237
- const projectInfo = this.cacheService.get('_yz_project_info', { mode: 'none' });
2238
- const user = this.cacheService.get('_yz_user', { mode: 'none' });
2239
- this.username = user.realname ? user.realname : '未命名';
2240
- this.icon = user.avatarId
2241
- ? `${this.config.baseUrl}/filecenter/file/${user.avatarId}`
2242
- : `./assets/tmp/img/avatar.jpg`;
2243
- this.menus = projectInfo.profileList;
2244
- }
2245
- logout() {
2246
- localStorage.clear();
2247
- this.tokenService.clear();
2248
- this.injector.get(WINDOW).location.href = `${this.config.baseUrl}/cas-proxy/app/logout`;
2249
- }
2250
- to(href) {
2251
- if (href) {
2252
- this.injector.get(WINDOW).open(href);
2253
- }
2254
- else {
2255
- this.msg.error('该菜单没有配置链接!');
2256
- }
2257
- }
2258
- }
2259
- 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 });
2260
- YunzaiUserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: YunzaiUserComponent, selector: "yunzai-user", ngImport: i0, template: `
2261
- <div
2262
- class="yunzai-default__nav-item d-flex align-items-center px-sm"
2263
- nz-dropdown
2264
- nzPlacement="bottomRight"
2265
- [nzDropdownMenu]="userMenu"
2266
- >
2267
- <div class="yz-user-name">
2268
- <nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
2269
- {{ username }}
2270
- </div>
2271
- </div>
2272
- <nz-dropdown-menu #userMenu="nzDropdownMenu">
2273
- <div nz-menu class="width-sm">
2274
- <div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
2275
- <i nz-icon [nzType]="m.icon" class="mr-sm"></i>
2276
- {{ m.name | i18n }}
2277
- </div>
2278
- <li nz-menu-divider></li>
2279
- <div nz-menu-item (click)="logout()">
2280
- <i nz-icon nzType="logout" class="mr-sm"></i>
2281
- {{ 'menu.account.logout' | i18n }}
2282
- </div>
2283
- </div>
2284
- </nz-dropdown-menu>
2285
- `, 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 });
2286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiUserComponent, decorators: [{
2287
- type: Component,
2288
- args: [{
2289
- selector: 'yunzai-user',
2290
- template: `
2291
- <div
2292
- class="yunzai-default__nav-item d-flex align-items-center px-sm"
2293
- nz-dropdown
2294
- nzPlacement="bottomRight"
2295
- [nzDropdownMenu]="userMenu"
2296
- >
2297
- <div class="yz-user-name">
2298
- <nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
2299
- {{ username }}
2300
- </div>
2301
- </div>
2302
- <nz-dropdown-menu #userMenu="nzDropdownMenu">
2303
- <div nz-menu class="width-sm">
2304
- <div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
2305
- <i nz-icon [nzType]="m.icon" class="mr-sm"></i>
2306
- {{ m.name | i18n }}
2307
- </div>
2308
- <li nz-menu-divider></li>
2309
- <div nz-menu-item (click)="logout()">
2310
- <i nz-icon nzType="logout" class="mr-sm"></i>
2311
- {{ 'menu.account.logout' | i18n }}
2312
- </div>
2313
- </div>
2314
- </nz-dropdown-menu>
2315
- `,
2316
- changeDetection: ChangeDetectionStrategy.OnPush
2317
- }]
2318
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$1.NzMessageService }, { type: undefined, decorators: [{
2319
- type: Inject,
2320
- args: [YA_SERVICE_TOKEN]
2321
- }] }, { type: i1$4.YunzaiConfigService }, { type: i1$3.CacheService }]; } });
2322
-
2323
2329
  class ActGuard {
2324
2330
  constructor(configService, cacheService, pathToRegexp, router) {
2325
2331
  this.configService = configService;
@@ -2411,14 +2417,14 @@ class ActGuard {
2411
2417
  });
2412
2418
  }
2413
2419
  }
2414
- ActGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ActGuard, deps: [{ token: i1$4.YunzaiConfigService }, { token: i1$3.CacheService }, { token: i1$4.PathToRegexpService }, { token: i4$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2420
+ 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 });
2415
2421
  ActGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ActGuard, providedIn: 'root' });
2416
2422
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ActGuard, decorators: [{
2417
2423
  type: Injectable,
2418
2424
  args: [{
2419
2425
  providedIn: 'root'
2420
2426
  }]
2421
- }], ctorParameters: function () { return [{ type: i1$4.YunzaiConfigService }, { type: i1$3.CacheService }, { type: i1$4.PathToRegexpService }, { type: i4$3.Router }]; } });
2427
+ }], ctorParameters: function () { return [{ type: i1$3.YunzaiConfigService }, { type: i1$4.CacheService }, { type: i1$3.PathToRegexpService }, { type: i4$3.Router }]; } });
2422
2428
 
2423
2429
  class YunzaiAuthService {
2424
2430
  constructor(injector) {
@@ -2767,11 +2773,11 @@ const WIDGETS = [
2767
2773
  YunzaiUserComponent
2768
2774
  ];
2769
2775
  const LAYOUT_NAV_COMPONENTS = [LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent];
2770
- const COMPONENTS = [YzLayoutBasicComponent];
2776
+ const COMPONENTS = [YunzaiLayoutBasicComponent];
2771
2777
  class YunzaiLayoutModule {
2772
2778
  }
2773
2779
  YunzaiLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2774
- YunzaiLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutModule, declarations: [YzLayoutBasicComponent, YunzaiClearStorageComponent,
2780
+ YunzaiLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: YunzaiLayoutModule, declarations: [YunzaiLayoutBasicComponent, YunzaiClearStorageComponent,
2775
2781
  YunzaiFullScreenComponent,
2776
2782
  YunzaiI18NComponent,
2777
2783
  YunzaiNotifyComponent,
@@ -2782,7 +2788,7 @@ YunzaiLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
2782
2788
  RouterModule,
2783
2789
  ReactiveFormsModule,
2784
2790
  YunzaiSharedYelonModule,
2785
- YunzaiSharedZorroModule], exports: [YzLayoutBasicComponent, YunzaiClearStorageComponent,
2791
+ YunzaiSharedZorroModule], exports: [YunzaiLayoutBasicComponent, YunzaiClearStorageComponent,
2786
2792
  YunzaiFullScreenComponent,
2787
2793
  YunzaiI18NComponent,
2788
2794
  YunzaiNotifyComponent,
@@ -2890,8 +2896,8 @@ class YunzaiStartupService {
2890
2896
  // cache current
2891
2897
  this.cacheService.set('_yz_current', {
2892
2898
  name: currentMenu.text,
2893
- intro: currentMenu.intro,
2894
- icon: currentMenu.appIconUrl
2899
+ intro: currentMenu.intro || '',
2900
+ icon: currentMenu.appIconUrl || './assets/tmp/img/avatar.jpg'
2895
2901
  });
2896
2902
  // cache displayIndex
2897
2903
  const attributes = currentMenu.attribute;
@@ -2910,7 +2916,7 @@ class YunzaiStartupService {
2910
2916
  }
2911
2917
  }
2912
2918
  }
2913
- 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$3.CacheService }, { token: i1$4.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2919
+ 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 });
2914
2920
  YunzaiStartupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiStartupService });
2915
2921
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: YunzaiStartupService, decorators: [{
2916
2922
  type: Injectable
@@ -2920,7 +2926,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
2920
2926
  }] }, { type: undefined, decorators: [{
2921
2927
  type: Inject,
2922
2928
  args: [WINDOW]
2923
- }] }, { type: i1$2.SettingsService }, { type: i3$4.ACLService }, { type: i1$2.TitleService }, { type: YunzaiAuthService }, { type: i1$3.CacheService }, { type: i1$4.YunzaiConfigService }]; } });
2929
+ }] }, { type: i1$2.SettingsService }, { type: i3$4.ACLService }, { type: i1$2.TitleService }, { type: YunzaiAuthService }, { type: i1$4.CacheService }, { type: i1$3.YunzaiConfigService }]; } });
2924
2930
  function mapYzSideToYelonMenu(menus) {
2925
2931
  menus.forEach(menu => {
2926
2932
  menu.badgeDot = menu.badge_dot || null;
@@ -2969,5 +2975,5 @@ const YUNZAI_APPINIT_PROVIDES = [
2969
2975
  * Generated bundle index. Do not edit.
2970
2976
  */
2971
2977
 
2972
- 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 YzI18nService, YzLayoutBasicComponent, YunzaiStartupService as YzStartupService, YunzaiStartupServiceFactory as YzStartupServiceFactory, generateAbility, mapYzSideToYelonMenu, mergeBisConfig };
2978
+ 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 };
2973
2979
  //# sourceMappingURL=bis.mjs.map