@yelon/bis 18.1.3 → 18.1.4

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.
@@ -144,8 +144,8 @@ export class YunzaiHeaderNotifyComponent {
144
144
  ngOnDestroy() {
145
145
  this.subs.forEach(a => a.unsubscribe());
146
146
  }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiHeaderNotifyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
148
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.6", type: YunzaiHeaderNotifyComponent, isStandalone: true, selector: "yunzai-header-notify", ngImport: i0, template: `
147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiHeaderNotifyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
148
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.6", type: YunzaiHeaderNotifyComponent, isStandalone: true, selector: "yunzai-header-notify", ngImport: i0, template: `
149
149
  <notice-icon
150
150
  [data]="data"
151
151
  [count]="count"
@@ -157,7 +157,7 @@ export class YunzaiHeaderNotifyComponent {
157
157
  />
158
158
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: NoticeIconModule }, { kind: "component", type: i1.NoticeIconComponent, selector: "notice-icon", inputs: ["data", "count", "loading", "popoverVisible", "btnClass", "btnIconClass", "centered"], outputs: ["select", "clear", "popoverVisibleChange"], exportAs: ["noticeIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
159
159
  }
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiHeaderNotifyComponent, decorators: [{
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiHeaderNotifyComponent, decorators: [{
161
161
  type: Component,
162
162
  args: [{
163
163
  selector: `yunzai-header-notify`,
@@ -48,8 +48,8 @@ export class YunzaiHeaderUserComponent {
48
48
  this.msg.error('该菜单没有配置链接!');
49
49
  }
50
50
  }
51
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiHeaderUserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.6", type: YunzaiHeaderUserComponent, isStandalone: true, selector: "yunzai-header-user", ngImport: i0, template: `
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiHeaderUserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.6", type: YunzaiHeaderUserComponent, isStandalone: true, selector: "yunzai-header-user", ngImport: i0, template: `
53
53
  <div
54
54
  class="yunzai-default__nav-item d-flex align-items-center px-sm"
55
55
  data-event-id="_nav_user"
@@ -79,7 +79,7 @@ export class YunzaiHeaderUserComponent {
79
79
  </nz-dropdown-menu>
80
80
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i1.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "directive", type: i2.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i4.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "ngmodule", type: RouterModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
81
81
  }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiHeaderUserComponent, decorators: [{
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiHeaderUserComponent, decorators: [{
83
83
  type: Component,
84
84
  args: [{
85
85
  selector: `yunzai-header-user`,
@@ -20,8 +20,8 @@ const COMPONENTS = [
20
20
  YunzaiHeaderUserComponent
21
21
  ];
22
22
  export class YunzaiWidgetsModule {
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
24
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: YunzaiWidgetsModule, imports: [NzAvatarModule,
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
24
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.6", ngImport: i0, type: YunzaiWidgetsModule, imports: [NzAvatarModule,
25
25
  RouterModule,
26
26
  NoticeIconModule,
27
27
  NzDropDownModule,
@@ -36,14 +36,14 @@ export class YunzaiWidgetsModule {
36
36
  YunzaiHeaderNotifyComponent,
37
37
  YunzaiHeaderI18nComponent,
38
38
  YunzaiHeaderUserComponent] }); }
39
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiWidgetsModule, imports: [NzAvatarModule,
39
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiWidgetsModule, imports: [NzAvatarModule,
40
40
  RouterModule,
41
41
  NoticeIconModule,
42
42
  NzDropDownModule,
43
43
  CommonModule,
44
44
  NzIconModule, COMPONENTS] }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiWidgetsModule, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiWidgetsModule, decorators: [{
47
47
  type: NgModule,
48
48
  args: [{
49
49
  imports: [
package/fesm2022/bis.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgModule, importProvidersFrom, makeEnvironmentProviders, inject, APP_INITIALIZER, Injector, Injectable, Inject, Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
+ import { NgModule, importProvidersFrom, makeEnvironmentProviders, inject, APP_INITIALIZER, Injector, Injectable, Inject, Component, Input } from '@angular/core';
3
3
  import { YunzaiLayoutModule } from '@yelon/bis/layout';
4
4
  import { YunzaiWidgetsModule } from '@yelon/bis/yunzai-widgets';
5
5
  import * as i2 from '@angular/router';
@@ -20,13 +20,15 @@ import { NzI18nModule } from 'ng-zorro-antd/i18n';
20
20
  import * as i3 from 'ng-zorro-antd/icon';
21
21
  import { NzIconModule } from 'ng-zorro-antd/icon';
22
22
  import * as i1$1 from 'ng-zorro-antd/menu';
23
+ import * as i4 from 'ng-zorro-antd/avatar';
24
+ import { NzAvatarModule } from 'ng-zorro-antd/avatar';
23
25
 
24
26
  class BisModule {
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
26
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: BisModule, imports: [YunzaiLayoutModule, YunzaiWidgetsModule], exports: [YunzaiLayoutModule, YunzaiWidgetsModule] }); }
27
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BisModule, imports: [YunzaiLayoutModule, YunzaiWidgetsModule, YunzaiLayoutModule, YunzaiWidgetsModule] }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: BisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
28
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.6", ngImport: i0, type: BisModule, imports: [YunzaiLayoutModule, YunzaiWidgetsModule], exports: [YunzaiLayoutModule, YunzaiWidgetsModule] }); }
29
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: BisModule, imports: [YunzaiLayoutModule, YunzaiWidgetsModule, YunzaiLayoutModule, YunzaiWidgetsModule] }); }
28
30
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: BisModule, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: BisModule, decorators: [{
30
32
  type: NgModule,
31
33
  args: [{
32
34
  imports: [YunzaiLayoutModule, YunzaiWidgetsModule],
@@ -364,10 +366,10 @@ class YunzaiStartupService {
364
366
  }));
365
367
  }
366
368
  }
367
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiStartupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
368
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiStartupService }); }
369
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiStartupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
370
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiStartupService }); }
369
371
  }
370
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiStartupService, decorators: [{
372
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiStartupService, decorators: [{
371
373
  type: Injectable
372
374
  }] });
373
375
  function mapYzSideToYelonMenu(menus) {
@@ -479,10 +481,10 @@ class YunzaiAnalysisAddonGuardService {
479
481
  }
480
482
  });
481
483
  }
482
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiAnalysisAddonGuardService, deps: [{ token: i1.YunzaiConfigService }, { token: i1.PathToRegexpService }, { token: WINDOW }, { token: YA_SERVICE_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
483
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiAnalysisAddonGuardService, providedIn: 'root' }); }
484
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiAnalysisAddonGuardService, deps: [{ token: i1.YunzaiConfigService }, { token: i1.PathToRegexpService }, { token: WINDOW }, { token: YA_SERVICE_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
485
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiAnalysisAddonGuardService, providedIn: 'root' }); }
484
486
  }
485
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiAnalysisAddonGuardService, decorators: [{
487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiAnalysisAddonGuardService, decorators: [{
486
488
  type: Injectable,
487
489
  args: [{
488
490
  providedIn: 'root'
@@ -569,10 +571,10 @@ class ActGuardService {
569
571
  }
570
572
  });
571
573
  }
572
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ActGuardService, deps: [{ token: i1.YunzaiConfigService }, { token: i1.PathToRegexpService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
573
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ActGuardService, providedIn: 'root' }); }
574
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: ActGuardService, deps: [{ token: i1.YunzaiConfigService }, { token: i1.PathToRegexpService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
575
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: ActGuardService, providedIn: 'root' }); }
574
576
  }
575
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ActGuardService, decorators: [{
577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: ActGuardService, decorators: [{
576
578
  type: Injectable,
577
579
  args: [{ providedIn: 'root' }]
578
580
  }], ctorParameters: () => [{ type: i1.YunzaiConfigService }, { type: i1.PathToRegexpService }, { type: i2.Router }] });
@@ -623,8 +625,8 @@ class YunzaiLayoutWebsite01Component {
623
625
  if (url)
624
626
  this.win.location.href = url;
625
627
  }
626
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiLayoutWebsite01Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
627
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.6", type: YunzaiLayoutWebsite01Component, isStandalone: true, selector: "yunzai-layout-website-01", inputs: { logoSrc: "logoSrc", logoAlt: "logoAlt", slogan: "slogan", contentTpl: "contentTpl" }, ngImport: i0, template: `
628
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutWebsite01Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
629
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.6", type: YunzaiLayoutWebsite01Component, isStandalone: true, selector: "yunzai-layout-website-01", inputs: { logoSrc: "logoSrc", logoAlt: "logoAlt", slogan: "slogan", contentTpl: "contentTpl" }, ngImport: i0, template: `
628
630
  <div class="yz-layout-website-01">
629
631
  <div class="yz-layout-website-01-nav__user">
630
632
  @if (isLogin) {
@@ -671,9 +673,9 @@ class YunzaiLayoutWebsite01Component {
671
673
  <router-outlet />
672
674
  </main>
673
675
  </div>
674
- `, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzI18nModule }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i2$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
676
+ `, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzI18nModule }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i2$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
675
677
  }
676
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: YunzaiLayoutWebsite01Component, decorators: [{
678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutWebsite01Component, decorators: [{
677
679
  type: Component,
678
680
  args: [{
679
681
  selector: 'yunzai-layout-website-01',
@@ -725,7 +727,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
725
727
  </main>
726
728
  </div>
727
729
  `,
728
- changeDetection: ChangeDetectionStrategy.OnPush,
729
730
  standalone: true,
730
731
  imports: [RouterOutlet, I18nPipe, NzI18nModule, NgFor, NgIf, NzDropDownModule, NzIconModule, NgTemplateOutlet]
731
732
  }]
@@ -739,9 +740,197 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
739
740
  type: Input
740
741
  }] } });
741
742
 
743
+ class YunzaiLayoutWebsite02Component {
744
+ constructor() {
745
+ this.logoAlt = 'logo';
746
+ this.userMenuShow = false;
747
+ this.tokenService = inject(YA_SERVICE_TOKEN);
748
+ this.configService = inject(YunzaiConfigService);
749
+ this.startupSrv = inject(YunzaiStartupService);
750
+ this.win = inject(WINDOW);
751
+ }
752
+ get _logoSrc() {
753
+ return this.logoSrc;
754
+ }
755
+ get _logoAlt() {
756
+ return this.logoAlt || 'logo';
757
+ }
758
+ get _userMenuShow() {
759
+ return this.userMenuShow || false;
760
+ }
761
+ get _slogan() {
762
+ return this.slogan;
763
+ }
764
+ get _contentTpl() {
765
+ return this.contentTpl;
766
+ }
767
+ get _username() {
768
+ const [_, getUser] = useLocalStorageUser();
769
+ return getUser()?.realname || '';
770
+ }
771
+ get _avatar() {
772
+ const [_, getUser] = useLocalStorageUser();
773
+ const baseUrl = this.configService.get('bis')?.baseUrl || '/backstage';
774
+ const avatarUrl = getUser()?.avatarId ? `${baseUrl}/filecenter/file/${getUser()?.avatarId}` : undefined;
775
+ return avatarUrl;
776
+ }
777
+ get isLogin() {
778
+ const [_, getUser] = useLocalStorageUser();
779
+ return !!this.tokenService.get()?.access_token && !!getUser();
780
+ }
781
+ get _links() {
782
+ const [_, getProjectInfo] = useLocalStorageProjectInfo();
783
+ return getProjectInfo()?.profileList || [];
784
+ }
785
+ login() {
786
+ this.startupSrv.load({ force: true }).subscribe(() => { });
787
+ }
788
+ logout() {
789
+ const baseUrl = this.configService.get('bis')?.baseUrl || '/backstage';
790
+ this.win.location.href = `${baseUrl}/cas-proxy/app/logout`;
791
+ }
792
+ to(url) {
793
+ if (url)
794
+ this.win.location.href = url;
795
+ }
796
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutWebsite02Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
797
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.6", type: YunzaiLayoutWebsite02Component, isStandalone: true, selector: "yunzai-layout-website-02", inputs: { logoSrc: "logoSrc", logoAlt: "logoAlt", userMenuShow: "userMenuShow", slogan: "slogan", contentTpl: "contentTpl" }, ngImport: i0, template: `
798
+ <div class="yz-layout-website-02">
799
+ <header class="yz-layout-website-02-nav">
800
+ <div class="yz-layout-website-02-inner-content">
801
+ @if (_logoSrc) {
802
+ <img [alt]="_logoAlt" class="yz-layout-website-02-nav__logo" [src]="_logoSrc" />
803
+ } @else {
804
+ <div class="yz-layout-website-02-nav__logo__full">LOGO</div>
805
+ }
806
+
807
+ <div class="yz-layout-website-02-nav__content">
808
+ <ng-template *ngTemplateOutlet="_contentTpl" />
809
+ </div>
810
+
811
+ <div class="yz-layout-website-02-nav-right">
812
+ <div class="yz-layout-website-02-nav__slogan">
813
+ <ng-template *ngTemplateOutlet="_slogan" />
814
+ </div>
815
+ @if (isLogin) {
816
+ <a
817
+ class="yz-layout-website-02-link"
818
+ nz-dropdown
819
+ [nzDropdownMenu]="menu"
820
+ [nzDisabled]="!_userMenuShow"
821
+ [nzPlacement]="'bottomRight'"
822
+ >
823
+ <nz-avatar nzIcon="user" [nzSrc]="_avatar" /><b>欢迎访问:{{ _username }}</b>
824
+ <span nz-icon nzType="down" *ngIf="_userMenuShow"></span>
825
+ </a>
826
+ <nz-dropdown-menu #menu="nzDropdownMenu">
827
+ <ul nz-menu nzSelectable>
828
+ @for (link of _links; track $index) {
829
+ <li nz-menu-item class="yz-layout-website-02-link__li" (click)="to(link.url)">{{ link.name }}</li>
830
+ }
831
+ <li nz-menu-item nzDanger class="yz-layout-website-02-link__li" (click)="logout()">{{
832
+ 'menu.account.logout' | i18n
833
+ }}</li>
834
+ </ul>
835
+ </nz-dropdown-menu>
836
+ } @else {
837
+ <a class="yz-layout-website-02-link" (click)="login()">
838
+ <span nz-icon nzType="login" nzTheme="outline"></span>{{ 'app.login.login' | i18n }}</a
839
+ >
840
+ }
841
+ </div>
842
+ </div>
843
+ </header>
844
+ <main class="yz-layout-website-02-container">
845
+ <router-outlet />
846
+ </main>
847
+ </div>
848
+ `, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzI18nModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i2$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i4.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }] }); }
849
+ }
850
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutWebsite02Component, decorators: [{
851
+ type: Component,
852
+ args: [{
853
+ selector: 'yunzai-layout-website-02',
854
+ template: `
855
+ <div class="yz-layout-website-02">
856
+ <header class="yz-layout-website-02-nav">
857
+ <div class="yz-layout-website-02-inner-content">
858
+ @if (_logoSrc) {
859
+ <img [alt]="_logoAlt" class="yz-layout-website-02-nav__logo" [src]="_logoSrc" />
860
+ } @else {
861
+ <div class="yz-layout-website-02-nav__logo__full">LOGO</div>
862
+ }
863
+
864
+ <div class="yz-layout-website-02-nav__content">
865
+ <ng-template *ngTemplateOutlet="_contentTpl" />
866
+ </div>
867
+
868
+ <div class="yz-layout-website-02-nav-right">
869
+ <div class="yz-layout-website-02-nav__slogan">
870
+ <ng-template *ngTemplateOutlet="_slogan" />
871
+ </div>
872
+ @if (isLogin) {
873
+ <a
874
+ class="yz-layout-website-02-link"
875
+ nz-dropdown
876
+ [nzDropdownMenu]="menu"
877
+ [nzDisabled]="!_userMenuShow"
878
+ [nzPlacement]="'bottomRight'"
879
+ >
880
+ <nz-avatar nzIcon="user" [nzSrc]="_avatar" /><b>欢迎访问:{{ _username }}</b>
881
+ <span nz-icon nzType="down" *ngIf="_userMenuShow"></span>
882
+ </a>
883
+ <nz-dropdown-menu #menu="nzDropdownMenu">
884
+ <ul nz-menu nzSelectable>
885
+ @for (link of _links; track $index) {
886
+ <li nz-menu-item class="yz-layout-website-02-link__li" (click)="to(link.url)">{{ link.name }}</li>
887
+ }
888
+ <li nz-menu-item nzDanger class="yz-layout-website-02-link__li" (click)="logout()">{{
889
+ 'menu.account.logout' | i18n
890
+ }}</li>
891
+ </ul>
892
+ </nz-dropdown-menu>
893
+ } @else {
894
+ <a class="yz-layout-website-02-link" (click)="login()">
895
+ <span nz-icon nzType="login" nzTheme="outline"></span>{{ 'app.login.login' | i18n }}</a
896
+ >
897
+ }
898
+ </div>
899
+ </div>
900
+ </header>
901
+ <main class="yz-layout-website-02-container">
902
+ <router-outlet />
903
+ </main>
904
+ </div>
905
+ `,
906
+ standalone: true,
907
+ imports: [
908
+ RouterOutlet,
909
+ I18nPipe,
910
+ NzI18nModule,
911
+ NgFor,
912
+ NgIf,
913
+ NzDropDownModule,
914
+ NzIconModule,
915
+ NgTemplateOutlet,
916
+ NzAvatarModule
917
+ ]
918
+ }]
919
+ }], propDecorators: { logoSrc: [{
920
+ type: Input
921
+ }], logoAlt: [{
922
+ type: Input
923
+ }], userMenuShow: [{
924
+ type: Input
925
+ }], slogan: [{
926
+ type: Input
927
+ }], contentTpl: [{
928
+ type: Input
929
+ }] } });
930
+
742
931
  /**
743
932
  * Generated bundle index. Do not edit.
744
933
  */
745
934
 
746
- export { ActGuardService, BisModule, CODEMESSAGE, YunzaiAnalysisAddonGuardService, YunzaiLayoutWebsite01Component, YunzaiStartupService, actGuardCanActive, actGuardCanActiveChild, analysisAddonCanActive, analysisAddonCanActiveChild, checkStatus, generateAbility, getAdditionalHeaders, goTo, mapYzSideToYelonMenu, provideYunzaiBindAuthRefresh, provideYunzaiBis, provideYunzaiStartup, toLogin, tryRefreshToken, yunzaiDefaultInterceptor };
935
+ export { ActGuardService, BisModule, CODEMESSAGE, YunzaiAnalysisAddonGuardService, YunzaiLayoutWebsite01Component, YunzaiLayoutWebsite02Component, YunzaiStartupService, actGuardCanActive, actGuardCanActiveChild, analysisAddonCanActive, analysisAddonCanActiveChild, checkStatus, generateAbility, getAdditionalHeaders, goTo, mapYzSideToYelonMenu, provideYunzaiBindAuthRefresh, provideYunzaiBis, provideYunzaiStartup, toLogin, tryRefreshToken, yunzaiDefaultInterceptor };
747
936
  //# sourceMappingURL=bis.mjs.map