@yelon/bis 20.0.1 → 20.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import * as i0 from '@angular/core';
4
4
  import { inject, Component, NgModule } from '@angular/core';
5
5
  import * as i1 from '@angular/forms';
6
6
  import { FormsModule } from '@angular/forms';
7
- import { YunzaiHttpI18NService, _HttpClient, I18nPipe } from '@yelon/theme';
7
+ import { _HttpClient, YunzaiHttpI18NService, I18nPipe } from '@yelon/theme';
8
8
  import * as i3$1 from 'ng-zorro-antd/dropdown';
9
9
  import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
10
10
  import { NzFormModule } from 'ng-zorro-antd/form';
@@ -28,7 +28,7 @@ import * as i1$1 from '@yelon/theme/layout-default';
28
28
  import { LayoutDisplayService, LayoutDefaultModule } from '@yelon/theme/layout-default';
29
29
  import * as i12 from '@yelon/theme/theme-btn';
30
30
  import { ThemeBtnModule } from '@yelon/theme/theme-btn';
31
- import { WINDOW, YUNZAI_CONFIG, useLocalStorageHeader, NavType, useLocalStorageProjectInfo, hasFavicon, setFavicon, useLocalStorageCurrent, useLocalStorageHeaderType, useLocalStorageDefaultRoute, log } from '@yelon/util';
31
+ import { YunzaiConfigService, WINDOW, useLocalStorageHeader, YUNZAI_CONFIG, NavType, useLocalStorageProjectInfo, hasFavicon, setFavicon, useLocalStorageCurrent, useLocalStorageHeaderType, useLocalStorageDefaultRoute, log } from '@yelon/util';
32
32
  import * as i7 from 'ng-zorro-antd/avatar';
33
33
  import { NzAvatarModule } from 'ng-zorro-antd/avatar';
34
34
  import * as i11 from 'ng-zorro-antd/descriptions';
@@ -38,36 +38,36 @@ import { NzModalModule } from 'ng-zorro-antd/modal';
38
38
  import * as i10 from 'ng-zorro-antd/skeleton';
39
39
  import { NzSkeletonModule } from 'ng-zorro-antd/skeleton';
40
40
  import { Subject, takeUntil } from 'rxjs';
41
+ import { mergeBisConfig } from '@yelon/bis/config';
41
42
  import * as i2$1 from 'ng-zorro-antd/menu';
42
43
 
43
44
  class YunzaiNavApplicationComponent {
44
- $destroy = new Subject();
45
+ config = mergeBisConfig(inject(YunzaiConfigService));
46
+ http = inject(_HttpClient);
47
+ win = inject(WINDOW);
48
+ i18n = inject(YunzaiHttpI18NService);
49
+ destroy$ = new Subject();
45
50
  state = {
46
51
  active: false,
47
- type: 'mine',
52
+ type: 'all',
48
53
  topic: undefined,
49
54
  topics: [],
50
55
  list: [],
51
56
  search: null
52
57
  };
53
58
  get showAllMenu() {
54
- if (this.bis.nav)
55
- return this.bis.nav.all;
59
+ if (this.config.nav)
60
+ return this.config.nav.all;
56
61
  return true;
57
62
  }
58
63
  get showMineMenu() {
59
- if (this.bis.nav)
60
- return this.bis.nav.mine;
64
+ if (this.config.nav)
65
+ return this.config.nav.mine;
61
66
  return true;
62
67
  }
63
- i18n = inject(YunzaiHttpI18NService);
64
- http = inject(_HttpClient);
65
- win = inject(WINDOW);
66
- conf = inject(YUNZAI_CONFIG);
67
- bis = this.conf.bis;
68
68
  ngOnInit() {
69
69
  this.fetchAllTopic();
70
- this.attachNav('mine');
70
+ this.attachNav('all');
71
71
  this.win.addEventListener('click', (event) => {
72
72
  const { target } = event;
73
73
  const btn = this.win.document.getElementById('navBtn');
@@ -135,7 +135,7 @@ class YunzaiNavApplicationComponent {
135
135
  appId: topic.key,
136
136
  createDate: new Date()
137
137
  })
138
- .pipe(takeUntil(this.$destroy))
138
+ .pipe(takeUntil(this.destroy$))
139
139
  .subscribe();
140
140
  }
141
141
  switch (topic.target) {
@@ -179,10 +179,10 @@ class YunzaiNavApplicationComponent {
179
179
  }
180
180
  }
181
181
  ngOnDestroy() {
182
- this.$destroy.complete();
182
+ this.destroy$.complete();
183
183
  }
184
184
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: YunzaiNavApplicationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
185
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: YunzaiNavApplicationComponent, isStandalone: true, selector: "yunzai-layout-nav-application", ngImport: i0, template: `
185
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: YunzaiNavApplicationComponent, isStandalone: true, selector: "yunzai-layout-nav-application", ngImport: i0, template: `
186
186
  <ng-template #search>
187
187
  <div nz-row class="yz-application-list-search">
188
188
  <nz-input-group [nzPrefix]="prefixTemplate">
@@ -195,56 +195,70 @@ class YunzaiNavApplicationComponent {
195
195
  </ng-template>
196
196
 
197
197
  <ng-template #ld>
198
- <div style="overflow: hidden;width: 100%; height: calc(100% - 58px)">
199
- <div class="yz-application-list">
200
- <ul>
201
- <li *ngFor="let topic of state.list">
198
+ <div class="yz-application-list">
199
+ <ul>
200
+ @for (topic of state.list; track topic) {
201
+ <li>
202
202
  <h5>{{ topic.name | i18n }}</h5>
203
- <a data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" href="javascript:;" *ngFor="let nav of topic.children" (click)="open(nav)">{{ nav.name | i18n }}</a>
203
+ @for (nav of topic.children; track nav) {
204
+ <a data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" href="javascript:;" (click)="open(nav)">{{ nav.name | i18n }}</a>
205
+ }
204
206
  </li>
205
- </ul>
206
- </div>
207
+ }
208
+ </ul>
207
209
  </div>
208
210
  </ng-template>
209
211
 
210
- <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{ 'mode.nav' | i18n }}</div>
212
+ <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{ 'mode.nav' | i18n }} </div>
211
213
 
212
- <div class="yz-application" id="navDropdown" *ngIf="state.active">
213
- <div class="yz-application-topic">
214
- <h2>{{ 'mode.nav' | i18n }}</h2>
215
- <dl>
216
- <dd *ngIf="showMineMenu" data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')">
217
- <b> {{ 'mode.nav.mine' | i18n }}</b>
218
- <nz-icon nzType="right" nzTheme="outline"></nz-icon>
219
- </dd>
220
- <dd data-event-id="_nav_topic" [attr.data-name]="nav.name | i18n" class="yz-application-text" *ngFor="let nav of state.topics" (click)="attachNav('other', nav)">
221
- <b>{{ nav.name | i18n }}</b>
222
- <nz-icon nzType="right" nzTheme="outline"></nz-icon>
223
- </dd>
224
- </dl>
214
+ <div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
215
+ <div nz-col [nzSpan]="3" class="yz-application-topic">
216
+ <div class="yz-application-topic-list">
217
+ @if (showAllMenu) {
218
+ <div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')">{{ 'mode.nav.all' | i18n }} </div>
219
+ }
220
+ @if (showMineMenu) {
221
+ <div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')">{{ 'mode.nav.mine' | i18n }} </div>
222
+ }
223
+ @for (nav of state.topics; track nav) {
224
+ <div data-event-id="_nav_topic" [attr.data-name]="nav.name | i18n" class="yz-application-text" (click)="attachNav('other', nav)">{{ nav.name | i18n }} </div>
225
+ }
226
+ </div>
225
227
  </div>
226
- <div [ngSwitch]="state.topic" class="yz-application-container">
227
- <ng-container *ngIf="state.type === 'mine'">
228
- <ng-template [ngTemplateOutlet]="search"></ng-template>
229
- <ng-template [ngTemplateOutlet]="ld"></ng-template>
230
- </ng-container>
231
- <div *ngIf="state.type === 'other'" style="overflow: hidden;width: 100%; height: 100%">
232
- <div class="yz-application-list">
233
- <div class="yz-application-list-item">
234
- <ul>
235
- <li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" *ngFor="let nav of state.list" (click)="open(nav)">
236
- <a href="javascript:;">
237
- <h4>{{ nav.name | i18n }}</h4>
238
- <p>{{ nav.intro | i18n }}</p>
239
- </a>
240
- </li>
241
- </ul>
228
+ <div nz-col [nzSpan]="21" class="yz-application-container">
229
+ @switch (state.type) {
230
+ @case ('all') {
231
+ <div>
232
+ <ng-template [ngTemplateOutlet]="search" />
233
+ <ng-template [ngTemplateOutlet]="ld" />
242
234
  </div>
243
- </div>
244
- </div>
235
+ }
236
+ @case ('mine') {
237
+ <div>
238
+ <ng-template [ngTemplateOutlet]="search" />
239
+ <ng-template [ngTemplateOutlet]="ld" />
240
+ </div>
241
+ }
242
+ @case ('other') {
243
+ <div class="yz-application-list yz-application-list-other">
244
+ <div class="yz-application-list-item">
245
+ <ul>
246
+ @for (nav of state.list; track nav) {
247
+ <li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
248
+ <a href="javascript:;">
249
+ <h4>{{ nav.name | i18n }}</h4>
250
+ <p>{{ nav.intro | i18n }}</p>
251
+ </a>
252
+ </li>
253
+ }
254
+ </ul>
255
+ </div>
256
+ </div>
257
+ }
258
+ }
245
259
  </div>
246
260
  </div>
247
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }] });
261
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.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: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }] });
248
262
  }
249
263
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: YunzaiNavApplicationComponent, decorators: [{
250
264
  type: Component,
@@ -263,53 +277,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
263
277
  </ng-template>
264
278
 
265
279
  <ng-template #ld>
266
- <div style="overflow: hidden;width: 100%; height: calc(100% - 58px)">
267
- <div class="yz-application-list">
268
- <ul>
269
- <li *ngFor="let topic of state.list">
280
+ <div class="yz-application-list">
281
+ <ul>
282
+ @for (topic of state.list; track topic) {
283
+ <li>
270
284
  <h5>{{ topic.name | i18n }}</h5>
271
- <a data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" href="javascript:;" *ngFor="let nav of topic.children" (click)="open(nav)">{{ nav.name | i18n }}</a>
285
+ @for (nav of topic.children; track nav) {
286
+ <a data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" href="javascript:;" (click)="open(nav)">{{ nav.name | i18n }}</a>
287
+ }
272
288
  </li>
273
- </ul>
274
- </div>
289
+ }
290
+ </ul>
275
291
  </div>
276
292
  </ng-template>
277
293
 
278
- <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{ 'mode.nav' | i18n }}</div>
294
+ <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{ 'mode.nav' | i18n }} </div>
279
295
 
280
- <div class="yz-application" id="navDropdown" *ngIf="state.active">
281
- <div class="yz-application-topic">
282
- <h2>{{ 'mode.nav' | i18n }}</h2>
283
- <dl>
284
- <dd *ngIf="showMineMenu" data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')">
285
- <b> {{ 'mode.nav.mine' | i18n }}</b>
286
- <nz-icon nzType="right" nzTheme="outline"></nz-icon>
287
- </dd>
288
- <dd data-event-id="_nav_topic" [attr.data-name]="nav.name | i18n" class="yz-application-text" *ngFor="let nav of state.topics" (click)="attachNav('other', nav)">
289
- <b>{{ nav.name | i18n }}</b>
290
- <nz-icon nzType="right" nzTheme="outline"></nz-icon>
291
- </dd>
292
- </dl>
296
+ <div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
297
+ <div nz-col [nzSpan]="3" class="yz-application-topic">
298
+ <div class="yz-application-topic-list">
299
+ @if (showAllMenu) {
300
+ <div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')">{{ 'mode.nav.all' | i18n }} </div>
301
+ }
302
+ @if (showMineMenu) {
303
+ <div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')">{{ 'mode.nav.mine' | i18n }} </div>
304
+ }
305
+ @for (nav of state.topics; track nav) {
306
+ <div data-event-id="_nav_topic" [attr.data-name]="nav.name | i18n" class="yz-application-text" (click)="attachNav('other', nav)">{{ nav.name | i18n }} </div>
307
+ }
308
+ </div>
293
309
  </div>
294
- <div [ngSwitch]="state.topic" class="yz-application-container">
295
- <ng-container *ngIf="state.type === 'mine'">
296
- <ng-template [ngTemplateOutlet]="search"></ng-template>
297
- <ng-template [ngTemplateOutlet]="ld"></ng-template>
298
- </ng-container>
299
- <div *ngIf="state.type === 'other'" style="overflow: hidden;width: 100%; height: 100%">
300
- <div class="yz-application-list">
301
- <div class="yz-application-list-item">
302
- <ul>
303
- <li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" *ngFor="let nav of state.list" (click)="open(nav)">
304
- <a href="javascript:;">
305
- <h4>{{ nav.name | i18n }}</h4>
306
- <p>{{ nav.intro | i18n }}</p>
307
- </a>
308
- </li>
309
- </ul>
310
+ <div nz-col [nzSpan]="21" class="yz-application-container">
311
+ @switch (state.type) {
312
+ @case ('all') {
313
+ <div>
314
+ <ng-template [ngTemplateOutlet]="search" />
315
+ <ng-template [ngTemplateOutlet]="ld" />
310
316
  </div>
311
- </div>
312
- </div>
317
+ }
318
+ @case ('mine') {
319
+ <div>
320
+ <ng-template [ngTemplateOutlet]="search" />
321
+ <ng-template [ngTemplateOutlet]="ld" />
322
+ </div>
323
+ }
324
+ @case ('other') {
325
+ <div class="yz-application-list yz-application-list-other">
326
+ <div class="yz-application-list-item">
327
+ <ul>
328
+ @for (nav of state.list; track nav) {
329
+ <li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
330
+ <a href="javascript:;">
331
+ <h4>{{ nav.name | i18n }}</h4>
332
+ <p>{{ nav.intro | i18n }}</p>
333
+ </a>
334
+ </li>
335
+ }
336
+ </ul>
337
+ </div>
338
+ </div>
339
+ }
340
+ }
313
341
  </div>
314
342
  </div>
315
343
  `,
@@ -318,11 +346,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
318
346
  }] });
319
347
 
320
348
  class YunzaiLayoutNavGroupComponent {
321
- $destroy = new Subject();
349
+ http = inject(_HttpClient);
350
+ destroy$ = new Subject();
351
+ win = inject(WINDOW);
322
352
  state = {
323
353
  topics: []
324
354
  };
325
- http = inject(_HttpClient);
326
355
  ngOnInit() {
327
356
  const [, getTopics] = useLocalStorageHeader();
328
357
  this.state.topics = getTopics() || [];
@@ -334,49 +363,64 @@ class YunzaiLayoutNavGroupComponent {
334
363
  appId: topic.key,
335
364
  createDate: new Date()
336
365
  })
337
- .pipe(takeUntil(this.$destroy))
366
+ .pipe(takeUntil(this.destroy$))
338
367
  .subscribe();
339
368
  }
340
369
  switch (topic.target) {
341
370
  case 'href':
342
- inject(WINDOW).location.href = topic.url;
371
+ this.win.location.href = topic.url;
343
372
  break;
344
373
  case 'blank':
345
- inject(WINDOW).open(topic.url);
374
+ this.win.open(topic.url);
346
375
  break;
347
376
  case 'target':
348
- inject(WINDOW).open(topic.url);
377
+ this.win.open(topic.url);
349
378
  break;
350
379
  default:
351
- inject(WINDOW).location.href = topic.url;
380
+ this.win.location.href = topic.url;
352
381
  break;
353
382
  }
354
383
  }
355
384
  ngOnDestroy() {
356
- this.$destroy.complete();
385
+ this.destroy$.complete();
357
386
  }
358
387
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: YunzaiLayoutNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
359
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: YunzaiLayoutNavGroupComponent, isStandalone: true, selector: "yunzai-layout-nav-group", ngImport: i0, template: `
388
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: YunzaiLayoutNavGroupComponent, isStandalone: true, selector: "yunzai-layout-nav-group", ngImport: i0, template: `
360
389
  <div class="yz-application-group">
361
390
  <nz-tabset>
362
- <nz-tab *ngFor="let menu of state.topics" [nzTitle]="groupTitleTpl">
363
- <ng-template #groupTitleTpl>
364
- <a data-event-id="_nav_topic" [attr.data-name]="menu.name | i18n" nz-dropdown [nzDropdownMenu]="menuTpl" [nzTrigger]="'click'" [nzOverlayClassName]="'yz-application-dropdown'">
365
- <nz-icon *ngIf="menu.icon" [nzType]="menu.icon" nzTheme="outline"></nz-icon>
366
- {{ menu.name | i18n }}
367
- <nz-icon *ngIf="menu.children && menu.children.length > 0" nz-icon nzType="down" nzTheme="outline"></nz-icon>
368
- </a>
369
- <nz-dropdown-menu #menuTpl="nzDropdownMenu">
370
- <ul nz-menu nzSelectable *ngIf="menu.children && menu.children.length > 0">
371
- <ng-container *ngFor="let item of menu.children">
372
- <li data-event-id="_nav_item" *ngIf="item.auth" [attr.data-name]="item.name | i18n" nz-menu-item (click)="open(item)">
373
- <nz-icon *ngIf="item.icon" [nzType]="item.icon" nzTheme="outline" style="margin-right: 4px;"></nz-icon>{{ item.name | i18n }}
374
- </li>
375
- </ng-container>
376
- </ul>
377
- </nz-dropdown-menu>
378
- </ng-template>
379
- </nz-tab>
391
+ @for (menu of state.topics; track menu) {
392
+ <nz-tab [nzTitle]="groupTitleTpl">
393
+ <ng-template #groupTitleTpl>
394
+ <a data-event-id="_nav_topic" [attr.data-name]="menu.name | i18n" nz-dropdown [nzDropdownMenu]="menuTpl" [nzTrigger]="'click'" [nzOverlayClassName]="'yz-application-dropdown'">
395
+ @if (menu.icon) {
396
+ <nz-icon [nzType]="menu.icon" nzTheme="outline"></nz-icon>
397
+ }
398
+ {{ menu.name | i18n }}
399
+ @if (menu.children && menu.children.length > 0) {
400
+ <nz-icon nzType="down" nzTheme="outline"></nz-icon>
401
+ }
402
+ </a>
403
+ <nz-dropdown-menu #menuTpl="nzDropdownMenu">
404
+ @if (menu.children && menu.children.length > 0) {
405
+ <ul nz-menu nzSelectable>
406
+ @for (item of menu.children; track item) {
407
+ <ng-container>
408
+ @if (item.auth) {
409
+ <li data-event-id="_nav_item" [attr.data-name]="item.name | i18n" nz-menu-item (click)="open(item)">
410
+ @if (item.icon) {
411
+ <nz-icon [nzType]="item.icon" nzTheme="outline"></nz-icon>
412
+ }
413
+ {{ item.name | i18n }}
414
+ </li>
415
+ }
416
+ </ng-container>
417
+ }
418
+ </ul>
419
+ }
420
+ </nz-dropdown-menu>
421
+ </ng-template>
422
+ </nz-tab>
423
+ }
380
424
  </nz-tabset>
381
425
  </div>
382
426
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i2$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i2$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i3$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i3$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i3$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i4$1.NzTabsComponent, selector: "nz-tabs,nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabs"] }, { kind: "component", type: i4$1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }] });
@@ -388,24 +432,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
388
432
  template: `
389
433
  <div class="yz-application-group">
390
434
  <nz-tabset>
391
- <nz-tab *ngFor="let menu of state.topics" [nzTitle]="groupTitleTpl">
392
- <ng-template #groupTitleTpl>
393
- <a data-event-id="_nav_topic" [attr.data-name]="menu.name | i18n" nz-dropdown [nzDropdownMenu]="menuTpl" [nzTrigger]="'click'" [nzOverlayClassName]="'yz-application-dropdown'">
394
- <nz-icon *ngIf="menu.icon" [nzType]="menu.icon" nzTheme="outline"></nz-icon>
395
- {{ menu.name | i18n }}
396
- <nz-icon *ngIf="menu.children && menu.children.length > 0" nz-icon nzType="down" nzTheme="outline"></nz-icon>
397
- </a>
398
- <nz-dropdown-menu #menuTpl="nzDropdownMenu">
399
- <ul nz-menu nzSelectable *ngIf="menu.children && menu.children.length > 0">
400
- <ng-container *ngFor="let item of menu.children">
401
- <li data-event-id="_nav_item" *ngIf="item.auth" [attr.data-name]="item.name | i18n" nz-menu-item (click)="open(item)">
402
- <nz-icon *ngIf="item.icon" [nzType]="item.icon" nzTheme="outline" style="margin-right: 4px;"></nz-icon>{{ item.name | i18n }}
403
- </li>
404
- </ng-container>
405
- </ul>
406
- </nz-dropdown-menu>
407
- </ng-template>
408
- </nz-tab>
435
+ @for (menu of state.topics; track menu) {
436
+ <nz-tab [nzTitle]="groupTitleTpl">
437
+ <ng-template #groupTitleTpl>
438
+ <a data-event-id="_nav_topic" [attr.data-name]="menu.name | i18n" nz-dropdown [nzDropdownMenu]="menuTpl" [nzTrigger]="'click'" [nzOverlayClassName]="'yz-application-dropdown'">
439
+ @if (menu.icon) {
440
+ <nz-icon [nzType]="menu.icon" nzTheme="outline"></nz-icon>
441
+ }
442
+ {{ menu.name | i18n }}
443
+ @if (menu.children && menu.children.length > 0) {
444
+ <nz-icon nzType="down" nzTheme="outline"></nz-icon>
445
+ }
446
+ </a>
447
+ <nz-dropdown-menu #menuTpl="nzDropdownMenu">
448
+ @if (menu.children && menu.children.length > 0) {
449
+ <ul nz-menu nzSelectable>
450
+ @for (item of menu.children; track item) {
451
+ <ng-container>
452
+ @if (item.auth) {
453
+ <li data-event-id="_nav_item" [attr.data-name]="item.name | i18n" nz-menu-item (click)="open(item)">
454
+ @if (item.icon) {
455
+ <nz-icon [nzType]="item.icon" nzTheme="outline"></nz-icon>
456
+ }
457
+ {{ item.name | i18n }}
458
+ </li>
459
+ }
460
+ </ng-container>
461
+ }
462
+ </ul>
463
+ }
464
+ </nz-dropdown-menu>
465
+ </ng-template>
466
+ </nz-tab>
467
+ }
409
468
  </nz-tabset>
410
469
  </div>
411
470
  `,
@@ -662,8 +721,8 @@ class YunzaiLayoutBasicComponent {
662
721
  </layout-default-header-item>
663
722
  </layout-default>
664
723
  <ng-template #asideUserTpl>
665
- <div data-event-id="_route_user" class="yunzai-default__aside-user" style="margin-bottom: 8px">
666
- <nz-avatar class="yunzai-default__aside-user-avatar" style="flex-wrap: wrap;" [nzSize]="40" [nzSrc]="aside.icon" (click)="aboutApplication()" />
724
+ <div data-event-id="_route_user" class="yunzai-default__aside-user">
725
+ <nz-avatar class="yunzai-default__aside-user-avatar" [nzSize]="40" [nzSrc]="aside.icon" (click)="aboutApplication()" />
667
726
  <div class="yunzai-default__aside-user-info" nz-dropdown nzTrigger="click" [nzDropdownMenu]="userMenu">
668
727
  <strong>{{ aside.name | i18n }}</strong>
669
728
  <p>{{ aside.intro | i18n }}</p>
@@ -699,11 +758,13 @@ class YunzaiLayoutBasicComponent {
699
758
  </nz-skeleton>
700
759
  </ng-container>
701
760
  </nz-modal>
702
- `, isInline: true, styles: ["::ng-deep .sidebar-nav__item-icon{display:none}::ng-deep .sidebar-nav__item-icon.anticon,::ng-deep .sidebar-nav__item-icon.sidebar-nav__item-img,::ng-deep .sidebar-nav__item-icon.sidebar-nav__item-svg{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: LayoutDefaultModule }, { kind: "component", type: i1$1.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "asideBottom", "nav", "content", "customError", "fetchingStrictly", "fetching"], exportAs: ["layoutDefault"] }, { kind: "component", type: i1$1.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { kind: "directive", type: i1$1.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ReuseTabModule }, { kind: "component", type: i3$2.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: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i2$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i2$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i3$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i3$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i7.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon", "nzLoading", "nzFetchPriority"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i9.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i9.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzSkeletonModule }, { kind: "component", type: i10.NzSkeletonComponent, selector: "nz-skeleton", inputs: ["nzActive", "nzLoading", "nzRound", "nzTitle", "nzAvatar", "nzParagraph"], exportAs: ["nzSkeleton"] }, { kind: "ngmodule", type: NzDescriptionsModule }, { kind: "component", type: i11.NzDescriptionsComponent, selector: "nz-descriptions", inputs: ["nzBordered", "nzLayout", "nzColumn", "nzSize", "nzTitle", "nzExtra", "nzColon"], exportAs: ["nzDescriptions"] }, { kind: "component", type: i11.NzDescriptionsItemComponent, selector: "nz-descriptions-item", inputs: ["nzSpan", "nzTitle"], exportAs: ["nzDescriptionsItem"] }, { kind: "ngmodule", type: ThemeBtnModule }, { kind: "component", type: i12.ThemeBtnComponent, selector: "theme-btn", inputs: ["types", "devTips", "deployUrl"], outputs: ["themeChange"] }, { kind: "ngmodule", type: YunzaiWidgetsModule }, { kind: "component", type: i13.YunzaiHeaderClearStorageComponent, selector: "yunzai-header-clear-storage" }, { kind: "component", type: i13.YunzaiHeaderFullScreenComponent, selector: "yunzai-header-fullscreen" }, { kind: "component", type: i13.YunzaiHeaderNotifyComponent, selector: "yunzai-header-notify" }, { kind: "component", type: i13.YunzaiHeaderI18nComponent, selector: "yunzai-header-i18n", inputs: ["showLangText"] }, { kind: "component", type: i13.YunzaiHeaderUserComponent, selector: "yunzai-header-user" }, { kind: "component", type: YunzaiNavApplicationComponent, selector: "yunzai-layout-nav-application" }, { kind: "component", type: YunzaiLayoutNavGroupComponent, selector: "yunzai-layout-nav-group" }, { kind: "component", type: YunzaiLayoutNavTileComponent, selector: "yunzai-layout-nav-tile" }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: I18nPipe, name: "i18n" }] });
761
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: LayoutDefaultModule }, { kind: "component", type: i1$1.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "asideBottom", "nav", "content", "customError", "fetchingStrictly", "fetching"], exportAs: ["layoutDefault"] }, { kind: "component", type: i1$1.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { kind: "directive", type: i1$1.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ReuseTabModule }, { kind: "component", type: i3$2.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: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i2$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i2$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i3$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i3$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i7.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon", "nzLoading", "nzFetchPriority"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i9.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i9.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzSkeletonModule }, { kind: "component", type: i10.NzSkeletonComponent, selector: "nz-skeleton", inputs: ["nzActive", "nzLoading", "nzRound", "nzTitle", "nzAvatar", "nzParagraph"], exportAs: ["nzSkeleton"] }, { kind: "ngmodule", type: NzDescriptionsModule }, { kind: "component", type: i11.NzDescriptionsComponent, selector: "nz-descriptions", inputs: ["nzBordered", "nzLayout", "nzColumn", "nzSize", "nzTitle", "nzExtra", "nzColon"], exportAs: ["nzDescriptions"] }, { kind: "component", type: i11.NzDescriptionsItemComponent, selector: "nz-descriptions-item", inputs: ["nzSpan", "nzTitle"], exportAs: ["nzDescriptionsItem"] }, { kind: "ngmodule", type: ThemeBtnModule }, { kind: "component", type: i12.ThemeBtnComponent, selector: "theme-btn", inputs: ["types", "devTips", "deployUrl"], outputs: ["themeChange"] }, { kind: "ngmodule", type: YunzaiWidgetsModule }, { kind: "component", type: i13.YunzaiHeaderClearStorageComponent, selector: "yunzai-header-clear-storage" }, { kind: "component", type: i13.YunzaiHeaderFullScreenComponent, selector: "yunzai-header-fullscreen" }, { kind: "component", type: i13.YunzaiHeaderNotifyComponent, selector: "yunzai-header-notify" }, { kind: "component", type: i13.YunzaiHeaderI18nComponent, selector: "yunzai-header-i18n", inputs: ["showLangText"] }, { kind: "component", type: i13.YunzaiHeaderUserComponent, selector: "yunzai-header-user" }, { kind: "component", type: YunzaiNavApplicationComponent, selector: "yunzai-layout-nav-application" }, { kind: "component", type: YunzaiLayoutNavGroupComponent, selector: "yunzai-layout-nav-group" }, { kind: "component", type: YunzaiLayoutNavTileComponent, selector: "yunzai-layout-nav-tile" }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: I18nPipe, name: "i18n" }] });
703
762
  }
704
763
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
705
764
  type: Component,
706
- args: [{ selector: `yunzai-layout-basic`, template: `
765
+ args: [{
766
+ selector: `yunzai-layout-basic`,
767
+ template: `
707
768
  <layout-default [options]="options" [asideUser]="asideUserTpl" [content]="displayReusetab ? contentTpl : noneTpl">
708
769
  <layout-default-header-item direction="left">
709
770
  <ng-container [ngSwitch]="navType">
@@ -784,8 +845,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
784
845
  </layout-default-header-item>
785
846
  </layout-default>
786
847
  <ng-template #asideUserTpl>
787
- <div data-event-id="_route_user" class="yunzai-default__aside-user" style="margin-bottom: 8px">
788
- <nz-avatar class="yunzai-default__aside-user-avatar" style="flex-wrap: wrap;" [nzSize]="40" [nzSrc]="aside.icon" (click)="aboutApplication()" />
848
+ <div data-event-id="_route_user" class="yunzai-default__aside-user">
849
+ <nz-avatar class="yunzai-default__aside-user-avatar" [nzSize]="40" [nzSrc]="aside.icon" (click)="aboutApplication()" />
789
850
  <div class="yunzai-default__aside-user-info" nz-dropdown nzTrigger="click" [nzDropdownMenu]="userMenu">
790
851
  <strong>{{ aside.name | i18n }}</strong>
791
852
  <p>{{ aside.intro | i18n }}</p>
@@ -821,7 +882,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
821
882
  </nz-skeleton>
822
883
  </ng-container>
823
884
  </nz-modal>
824
- `, imports: [
885
+ `,
886
+ imports: [
825
887
  LayoutDefaultModule,
826
888
  RouterModule,
827
889
  ReuseTabModule,
@@ -838,7 +900,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
838
900
  YunzaiNavApplicationComponent,
839
901
  YunzaiLayoutNavGroupComponent,
840
902
  YunzaiLayoutNavTileComponent
841
- ], styles: ["::ng-deep .sidebar-nav__item-icon{display:none}::ng-deep .sidebar-nav__item-icon.anticon,::ng-deep .sidebar-nav__item-icon.sidebar-nav__item-img,::ng-deep .sidebar-nav__item-icon.sidebar-nav__item-svg{display:inline-block}\n"] }]
903
+ ]
904
+ }]
842
905
  }] });
843
906
 
844
907
  const COMPONENTS = [YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent];