@yelon/bis 20.0.0 → 20.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 { _HttpClient, YunzaiHttpI18NService, I18nPipe } from '@yelon/theme';
7
+ import { YunzaiHttpI18NService, _HttpClient, 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 { YunzaiConfigService, WINDOW, useLocalStorageHeader, YUNZAI_CONFIG, NavType, useLocalStorageProjectInfo, hasFavicon, setFavicon, useLocalStorageCurrent, useLocalStorageHeaderType, useLocalStorageDefaultRoute, log } from '@yelon/util';
31
+ import { WINDOW, YUNZAI_CONFIG, useLocalStorageHeader, 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';
42
41
  import * as i2$1 from 'ng-zorro-antd/menu';
43
42
 
44
43
  class YunzaiNavApplicationComponent {
45
- config = mergeBisConfig(inject(YunzaiConfigService));
46
- http = inject(_HttpClient);
47
- win = inject(WINDOW);
48
- i18n = inject(YunzaiHttpI18NService);
49
- destroy$ = new Subject();
44
+ $destroy = new Subject();
50
45
  state = {
51
46
  active: false,
52
- type: 'all',
47
+ type: 'mine',
53
48
  topic: undefined,
54
49
  topics: [],
55
50
  list: [],
56
51
  search: null
57
52
  };
58
53
  get showAllMenu() {
59
- if (this.config.nav)
60
- return this.config.nav.all;
54
+ if (this.bis.nav)
55
+ return this.bis.nav.all;
61
56
  return true;
62
57
  }
63
58
  get showMineMenu() {
64
- if (this.config.nav)
65
- return this.config.nav.mine;
59
+ if (this.bis.nav)
60
+ return this.bis.nav.mine;
66
61
  return true;
67
62
  }
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('all');
70
+ this.attachNav('mine');
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,21 +179,14 @@ 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: "17.0.0", version: "20.1.3", type: YunzaiNavApplicationComponent, isStandalone: true, selector: "yunzai-layout-nav-application", ngImport: i0, template: `
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: `
186
186
  <ng-template #search>
187
187
  <div nz-row class="yz-application-list-search">
188
188
  <nz-input-group [nzPrefix]="prefixTemplate">
189
- <input
190
- data-event-id="_nav_search"
191
- type="text"
192
- nz-input
193
- placeholder="{{ 'application.search' | i18n }}"
194
- [(ngModel)]="state.search"
195
- (ngModelChange)="onSearch()"
196
- />
189
+ <input data-event-id="_nav_search" type="text" nz-input placeholder="{{ 'application.search' | i18n }}" [(ngModel)]="state.search" (ngModelChange)="onSearch()" />
197
190
  <ng-template #prefixTemplate>
198
191
  <nz-icon nzType="search" nzTheme="outline"></nz-icon>
199
192
  </ng-template>
@@ -202,88 +195,56 @@ class YunzaiNavApplicationComponent {
202
195
  </ng-template>
203
196
 
204
197
  <ng-template #ld>
205
- <div class="yz-application-list">
206
- <ul>
207
- @for (topic of state.list; track topic) {
208
- <li>
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">
209
202
  <h5>{{ topic.name | i18n }}</h5>
210
- @for (nav of topic.children; track nav) {
211
- <a
212
- data-event-id="_nav_item"
213
- [attr.data-name]="nav.name | i18n"
214
- href="javascript:;"
215
- (click)="open(nav)"
216
- >{{ nav.name | i18n }}</a
217
- >
218
- }
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>
219
204
  </li>
220
- }
221
- </ul>
205
+ </ul>
206
+ </div>
222
207
  </div>
223
208
  </ng-template>
224
209
 
225
- <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()"
226
- >{{ 'mode.nav' | i18n }}
227
- </div>
210
+ <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{ 'mode.nav' | i18n }}</div>
228
211
 
229
- <div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
230
- <div nz-col [nzSpan]="3" class="yz-application-topic">
231
- <div class="yz-application-topic-list">
232
- @if (showAllMenu) {
233
- <div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')"
234
- >{{ 'mode.nav.all' | i18n }}
235
- </div>
236
- }
237
- @if (showMineMenu) {
238
- <div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')"
239
- >{{ 'mode.nav.mine' | i18n }}
240
- </div>
241
- }
242
- @for (nav of state.topics; track nav) {
243
- <div
244
- data-event-id="_nav_topic"
245
- [attr.data-name]="nav.name | i18n"
246
- class="yz-application-text"
247
- (click)="attachNav('other', nav)"
248
- >{{ nav.name | i18n }}
249
- </div>
250
- }
251
- </div>
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>
252
225
  </div>
253
- <div nz-col [nzSpan]="21" class="yz-application-container">
254
- @switch (state.type) {
255
- @case ('all') {
256
- <div>
257
- <ng-template [ngTemplateOutlet]="search" />
258
- <ng-template [ngTemplateOutlet]="ld" />
259
- </div>
260
- }
261
- @case ('mine') {
262
- <div>
263
- <ng-template [ngTemplateOutlet]="search" />
264
- <ng-template [ngTemplateOutlet]="ld" />
265
- </div>
266
- }
267
- @case ('other') {
268
- <div class="yz-application-list yz-application-list-other">
269
- <div class="yz-application-list-item">
270
- <ul>
271
- @for (nav of state.list; track nav) {
272
- <li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
273
- <a href="javascript:;">
274
- <h4>{{ nav.name | i18n }}</h4>
275
- <p>{{ nav.intro | i18n }}</p>
276
- </a>
277
- </li>
278
- }
279
- </ul>
280
- </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>
281
242
  </div>
282
- }
283
- }
243
+ </div>
244
+ </div>
284
245
  </div>
285
246
  </div>
286
- `, 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" }] });
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" }] });
287
248
  }
288
249
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: YunzaiNavApplicationComponent, decorators: [{
289
250
  type: Component,
@@ -293,14 +254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
293
254
  <ng-template #search>
294
255
  <div nz-row class="yz-application-list-search">
295
256
  <nz-input-group [nzPrefix]="prefixTemplate">
296
- <input
297
- data-event-id="_nav_search"
298
- type="text"
299
- nz-input
300
- placeholder="{{ 'application.search' | i18n }}"
301
- [(ngModel)]="state.search"
302
- (ngModelChange)="onSearch()"
303
- />
257
+ <input data-event-id="_nav_search" type="text" nz-input placeholder="{{ 'application.search' | i18n }}" [(ngModel)]="state.search" (ngModelChange)="onSearch()" />
304
258
  <ng-template #prefixTemplate>
305
259
  <nz-icon nzType="search" nzTheme="outline"></nz-icon>
306
260
  </ng-template>
@@ -309,85 +263,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
309
263
  </ng-template>
310
264
 
311
265
  <ng-template #ld>
312
- <div class="yz-application-list">
313
- <ul>
314
- @for (topic of state.list; track topic) {
315
- <li>
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">
316
270
  <h5>{{ topic.name | i18n }}</h5>
317
- @for (nav of topic.children; track nav) {
318
- <a
319
- data-event-id="_nav_item"
320
- [attr.data-name]="nav.name | i18n"
321
- href="javascript:;"
322
- (click)="open(nav)"
323
- >{{ nav.name | i18n }}</a
324
- >
325
- }
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>
326
272
  </li>
327
- }
328
- </ul>
273
+ </ul>
274
+ </div>
329
275
  </div>
330
276
  </ng-template>
331
277
 
332
- <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()"
333
- >{{ 'mode.nav' | i18n }}
334
- </div>
278
+ <div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{ 'mode.nav' | i18n }}</div>
335
279
 
336
- <div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
337
- <div nz-col [nzSpan]="3" class="yz-application-topic">
338
- <div class="yz-application-topic-list">
339
- @if (showAllMenu) {
340
- <div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')"
341
- >{{ 'mode.nav.all' | i18n }}
342
- </div>
343
- }
344
- @if (showMineMenu) {
345
- <div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')"
346
- >{{ 'mode.nav.mine' | i18n }}
347
- </div>
348
- }
349
- @for (nav of state.topics; track nav) {
350
- <div
351
- data-event-id="_nav_topic"
352
- [attr.data-name]="nav.name | i18n"
353
- class="yz-application-text"
354
- (click)="attachNav('other', nav)"
355
- >{{ nav.name | i18n }}
356
- </div>
357
- }
358
- </div>
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>
359
293
  </div>
360
- <div nz-col [nzSpan]="21" class="yz-application-container">
361
- @switch (state.type) {
362
- @case ('all') {
363
- <div>
364
- <ng-template [ngTemplateOutlet]="search" />
365
- <ng-template [ngTemplateOutlet]="ld" />
366
- </div>
367
- }
368
- @case ('mine') {
369
- <div>
370
- <ng-template [ngTemplateOutlet]="search" />
371
- <ng-template [ngTemplateOutlet]="ld" />
372
- </div>
373
- }
374
- @case ('other') {
375
- <div class="yz-application-list yz-application-list-other">
376
- <div class="yz-application-list-item">
377
- <ul>
378
- @for (nav of state.list; track nav) {
379
- <li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
380
- <a href="javascript:;">
381
- <h4>{{ nav.name | i18n }}</h4>
382
- <p>{{ nav.intro | i18n }}</p>
383
- </a>
384
- </li>
385
- }
386
- </ul>
387
- </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>
388
310
  </div>
389
- }
390
- }
311
+ </div>
312
+ </div>
391
313
  </div>
392
314
  </div>
393
315
  `,
@@ -396,12 +318,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
396
318
  }] });
397
319
 
398
320
  class YunzaiLayoutNavGroupComponent {
399
- http = inject(_HttpClient);
400
- destroy$ = new Subject();
401
- win = inject(WINDOW);
321
+ $destroy = new Subject();
402
322
  state = {
403
323
  topics: []
404
324
  };
325
+ http = inject(_HttpClient);
405
326
  ngOnInit() {
406
327
  const [, getTopics] = useLocalStorageHeader();
407
328
  this.state.topics = getTopics() || [];
@@ -413,76 +334,49 @@ class YunzaiLayoutNavGroupComponent {
413
334
  appId: topic.key,
414
335
  createDate: new Date()
415
336
  })
416
- .pipe(takeUntil(this.destroy$))
337
+ .pipe(takeUntil(this.$destroy))
417
338
  .subscribe();
418
339
  }
419
340
  switch (topic.target) {
420
341
  case 'href':
421
- this.win.location.href = topic.url;
342
+ inject(WINDOW).location.href = topic.url;
422
343
  break;
423
344
  case 'blank':
424
- this.win.open(topic.url);
345
+ inject(WINDOW).open(topic.url);
425
346
  break;
426
347
  case 'target':
427
- this.win.open(topic.url);
348
+ inject(WINDOW).open(topic.url);
428
349
  break;
429
350
  default:
430
- this.win.location.href = topic.url;
351
+ inject(WINDOW).location.href = topic.url;
431
352
  break;
432
353
  }
433
354
  }
434
355
  ngOnDestroy() {
435
- this.destroy$.complete();
356
+ this.$destroy.complete();
436
357
  }
437
358
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: YunzaiLayoutNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
438
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: YunzaiLayoutNavGroupComponent, isStandalone: true, selector: "yunzai-layout-nav-group", ngImport: i0, template: `
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: `
439
360
  <div class="yz-application-group">
440
361
  <nz-tabset>
441
- @for (menu of state.topics; track menu) {
442
- <nz-tab [nzTitle]="groupTitleTpl">
443
- <ng-template #groupTitleTpl>
444
- <a
445
- data-event-id="_nav_topic"
446
- [attr.data-name]="menu.name | i18n"
447
- nz-dropdown
448
- [nzDropdownMenu]="menuTpl"
449
- [nzTrigger]="'click'"
450
- [nzOverlayClassName]="'yz-application-dropdown'"
451
- >
452
- @if (menu.icon) {
453
- <nz-icon [nzType]="menu.icon" nzTheme="outline"></nz-icon>
454
- }
455
- {{ menu.name | i18n }}
456
- @if (menu.children && menu.children.length > 0) {
457
- <nz-icon nzType="down" nzTheme="outline"></nz-icon>
458
- }
459
- </a>
460
- <nz-dropdown-menu #menuTpl="nzDropdownMenu">
461
- @if (menu.children && menu.children.length > 0) {
462
- <ul nz-menu nzSelectable>
463
- @for (item of menu.children; track item) {
464
- <ng-container>
465
- @if (item.auth) {
466
- <li
467
- data-event-id="_nav_item"
468
- [attr.data-name]="item.name | i18n"
469
- nz-menu-item
470
- (click)="open(item)"
471
- >
472
- @if (item.icon) {
473
- <nz-icon [nzType]="item.icon" nzTheme="outline"></nz-icon>
474
- }
475
- {{ item.name | i18n }}
476
- </li>
477
- }
478
- </ng-container>
479
- }
480
- </ul>
481
- }
482
- </nz-dropdown-menu>
483
- </ng-template>
484
- </nz-tab>
485
- }
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>
486
380
  </nz-tabset>
487
381
  </div>
488
382
  `, 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" }] });
@@ -494,51 +388,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
494
388
  template: `
495
389
  <div class="yz-application-group">
496
390
  <nz-tabset>
497
- @for (menu of state.topics; track menu) {
498
- <nz-tab [nzTitle]="groupTitleTpl">
499
- <ng-template #groupTitleTpl>
500
- <a
501
- data-event-id="_nav_topic"
502
- [attr.data-name]="menu.name | i18n"
503
- nz-dropdown
504
- [nzDropdownMenu]="menuTpl"
505
- [nzTrigger]="'click'"
506
- [nzOverlayClassName]="'yz-application-dropdown'"
507
- >
508
- @if (menu.icon) {
509
- <nz-icon [nzType]="menu.icon" nzTheme="outline"></nz-icon>
510
- }
511
- {{ menu.name | i18n }}
512
- @if (menu.children && menu.children.length > 0) {
513
- <nz-icon nzType="down" nzTheme="outline"></nz-icon>
514
- }
515
- </a>
516
- <nz-dropdown-menu #menuTpl="nzDropdownMenu">
517
- @if (menu.children && menu.children.length > 0) {
518
- <ul nz-menu nzSelectable>
519
- @for (item of menu.children; track item) {
520
- <ng-container>
521
- @if (item.auth) {
522
- <li
523
- data-event-id="_nav_item"
524
- [attr.data-name]="item.name | i18n"
525
- nz-menu-item
526
- (click)="open(item)"
527
- >
528
- @if (item.icon) {
529
- <nz-icon [nzType]="item.icon" nzTheme="outline"></nz-icon>
530
- }
531
- {{ item.name | i18n }}
532
- </li>
533
- }
534
- </ng-container>
535
- }
536
- </ul>
537
- }
538
- </nz-dropdown-menu>
539
- </ng-template>
540
- </nz-tab>
541
- }
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>
542
409
  </nz-tabset>
543
410
  </div>
544
411
  `,
@@ -741,14 +608,7 @@ class YunzaiLayoutBasicComponent {
741
608
  <theme-btn />
742
609
  </layout-default-header-item>
743
610
  <layout-default-header-item direction="right" hidden="mobile">
744
- <div
745
- data-event-id="_nav_settings"
746
- layout-default-header-item-trigger
747
- nz-dropdown
748
- [nzDropdownMenu]="settingsMenu"
749
- nzTrigger="click"
750
- nzPlacement="bottomRight"
751
- >
611
+ <div data-event-id="_nav_settings" layout-default-header-item-trigger nz-dropdown [nzDropdownMenu]="settingsMenu" nzTrigger="click" nzPlacement="bottomRight">
752
612
  <nz-icon nzType="setting" nzTheme="outline"></nz-icon>
753
613
  </div>
754
614
  <nz-dropdown-menu #settingsMenu="nzDropdownMenu">
@@ -759,12 +619,7 @@ class YunzaiLayoutBasicComponent {
759
619
 
760
620
  @if (headerStyleList.length > 1) {
761
621
  @for (i of headerStyleList; track $index) {
762
- <div
763
- data-event-id="_nav_mode"
764
- nz-menu-item
765
- [attr.data-type]="i.value"
766
- (click)="onNavTypeChange(i.value)"
767
- >
622
+ <div data-event-id="_nav_mode" nz-menu-item [attr.data-type]="i.value" (click)="onNavTypeChange(i.value)">
768
623
  <ng-container [ngSwitch]="i.value">
769
624
  <ng-container *ngSwitchCase="NavType.APPLICATION">
770
625
  <nz-icon nzType="appstore" nzTheme="outline" class="mr-sm" />
@@ -807,13 +662,8 @@ class YunzaiLayoutBasicComponent {
807
662
  </layout-default-header-item>
808
663
  </layout-default>
809
664
  <ng-template #asideUserTpl>
810
- <div data-event-id="_route_user" class="yunzai-default__aside-user">
811
- <nz-avatar
812
- class="yunzai-default__aside-user-avatar"
813
- [nzSize]="40"
814
- [nzSrc]="aside.icon"
815
- (click)="aboutApplication()"
816
- />
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()" />
817
667
  <div class="yunzai-default__aside-user-info" nz-dropdown nzTrigger="click" [nzDropdownMenu]="userMenu">
818
668
  <strong>{{ aside.name | i18n }}</strong>
819
669
  <p>{{ aside.intro | i18n }}</p>
@@ -833,42 +683,27 @@ class YunzaiLayoutBasicComponent {
833
683
  <router-outlet />
834
684
  </ng-template>
835
685
 
836
- <nz-modal
837
- nzTitle="关于本应用"
838
- [(nzVisible)]="applicationModal.isVisible"
839
- [nzOkText]="null"
840
- [nzCancelText]="'关闭'"
841
- [nzWidth]="700"
842
- (nzOnCancel)="applicationModal.isVisible = false"
843
- >
686
+ <nz-modal nzTitle="关于本应用" [(nzVisible)]="applicationModal.isVisible" [nzOkText]="null" [nzCancelText]="'关闭'" [nzWidth]="700" (nzOnCancel)="applicationModal.isVisible = false">
844
687
  <ng-container *nzModalContent>
845
688
  <nz-skeleton [nzLoading]="applicationModal.loading" [nzActive]="true">
846
689
  <nz-descriptions nzBordered [nzSize]="'middle'" [nzColumn]="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
847
690
  <nz-descriptions-item nzTitle="应用名称">{{ applicationInfo?.showName }}</nz-descriptions-item>
848
691
  <nz-descriptions-item nzTitle="应用标识">{{ applicationInfo?.name }}</nz-descriptions-item>
849
692
  <nz-descriptions-item nzTitle="版本总数">{{ applicationInfo?.versionNum }}</nz-descriptions-item>
850
- <nz-descriptions-item nzTitle="应用首次部署时间">{{
851
- applicationInfo?.firstDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
852
- }}</nz-descriptions-item>
693
+ <nz-descriptions-item nzTitle="应用首次部署时间">{{ applicationInfo?.firstDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss' }}</nz-descriptions-item>
853
694
  <nz-descriptions-item nzTitle="当前版本">{{ applicationInfo?.currentVersion }}</nz-descriptions-item>
854
- <nz-descriptions-item nzTitle="当前版本部署时间">{{
855
- applicationInfo?.currentDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
856
- }}</nz-descriptions-item>
695
+ <nz-descriptions-item nzTitle="当前版本部署时间">{{ applicationInfo?.currentDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss' }}</nz-descriptions-item>
857
696
  <nz-descriptions-item nzTitle="最新版本">{{ applicationInfo?.lastVersion }}</nz-descriptions-item>
858
- <nz-descriptions-item nzTitle="最新版本发布时间">{{
859
- applicationInfo?.lastPushDate | date: 'yyyy-MM-dd HH:mm:ss'
860
- }}</nz-descriptions-item>
697
+ <nz-descriptions-item nzTitle="最新版本发布时间">{{ applicationInfo?.lastPushDate | date: 'yyyy-MM-dd HH:mm:ss' }}</nz-descriptions-item>
861
698
  </nz-descriptions>
862
699
  </nz-skeleton>
863
700
  </ng-container>
864
701
  </nz-modal>
865
- `, 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" }] });
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" }] });
866
703
  }
867
704
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
868
705
  type: Component,
869
- args: [{
870
- selector: `yunzai-layout-basic`,
871
- template: `
706
+ args: [{ selector: `yunzai-layout-basic`, template: `
872
707
  <layout-default [options]="options" [asideUser]="asideUserTpl" [content]="displayReusetab ? contentTpl : noneTpl">
873
708
  <layout-default-header-item direction="left">
874
709
  <ng-container [ngSwitch]="navType">
@@ -895,14 +730,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
895
730
  <theme-btn />
896
731
  </layout-default-header-item>
897
732
  <layout-default-header-item direction="right" hidden="mobile">
898
- <div
899
- data-event-id="_nav_settings"
900
- layout-default-header-item-trigger
901
- nz-dropdown
902
- [nzDropdownMenu]="settingsMenu"
903
- nzTrigger="click"
904
- nzPlacement="bottomRight"
905
- >
733
+ <div data-event-id="_nav_settings" layout-default-header-item-trigger nz-dropdown [nzDropdownMenu]="settingsMenu" nzTrigger="click" nzPlacement="bottomRight">
906
734
  <nz-icon nzType="setting" nzTheme="outline"></nz-icon>
907
735
  </div>
908
736
  <nz-dropdown-menu #settingsMenu="nzDropdownMenu">
@@ -913,12 +741,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
913
741
 
914
742
  @if (headerStyleList.length > 1) {
915
743
  @for (i of headerStyleList; track $index) {
916
- <div
917
- data-event-id="_nav_mode"
918
- nz-menu-item
919
- [attr.data-type]="i.value"
920
- (click)="onNavTypeChange(i.value)"
921
- >
744
+ <div data-event-id="_nav_mode" nz-menu-item [attr.data-type]="i.value" (click)="onNavTypeChange(i.value)">
922
745
  <ng-container [ngSwitch]="i.value">
923
746
  <ng-container *ngSwitchCase="NavType.APPLICATION">
924
747
  <nz-icon nzType="appstore" nzTheme="outline" class="mr-sm" />
@@ -961,13 +784,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
961
784
  </layout-default-header-item>
962
785
  </layout-default>
963
786
  <ng-template #asideUserTpl>
964
- <div data-event-id="_route_user" class="yunzai-default__aside-user">
965
- <nz-avatar
966
- class="yunzai-default__aside-user-avatar"
967
- [nzSize]="40"
968
- [nzSrc]="aside.icon"
969
- (click)="aboutApplication()"
970
- />
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()" />
971
789
  <div class="yunzai-default__aside-user-info" nz-dropdown nzTrigger="click" [nzDropdownMenu]="userMenu">
972
790
  <strong>{{ aside.name | i18n }}</strong>
973
791
  <p>{{ aside.intro | i18n }}</p>
@@ -987,37 +805,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
987
805
  <router-outlet />
988
806
  </ng-template>
989
807
 
990
- <nz-modal
991
- nzTitle="关于本应用"
992
- [(nzVisible)]="applicationModal.isVisible"
993
- [nzOkText]="null"
994
- [nzCancelText]="'关闭'"
995
- [nzWidth]="700"
996
- (nzOnCancel)="applicationModal.isVisible = false"
997
- >
808
+ <nz-modal nzTitle="关于本应用" [(nzVisible)]="applicationModal.isVisible" [nzOkText]="null" [nzCancelText]="'关闭'" [nzWidth]="700" (nzOnCancel)="applicationModal.isVisible = false">
998
809
  <ng-container *nzModalContent>
999
810
  <nz-skeleton [nzLoading]="applicationModal.loading" [nzActive]="true">
1000
811
  <nz-descriptions nzBordered [nzSize]="'middle'" [nzColumn]="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
1001
812
  <nz-descriptions-item nzTitle="应用名称">{{ applicationInfo?.showName }}</nz-descriptions-item>
1002
813
  <nz-descriptions-item nzTitle="应用标识">{{ applicationInfo?.name }}</nz-descriptions-item>
1003
814
  <nz-descriptions-item nzTitle="版本总数">{{ applicationInfo?.versionNum }}</nz-descriptions-item>
1004
- <nz-descriptions-item nzTitle="应用首次部署时间">{{
1005
- applicationInfo?.firstDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
1006
- }}</nz-descriptions-item>
815
+ <nz-descriptions-item nzTitle="应用首次部署时间">{{ applicationInfo?.firstDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss' }}</nz-descriptions-item>
1007
816
  <nz-descriptions-item nzTitle="当前版本">{{ applicationInfo?.currentVersion }}</nz-descriptions-item>
1008
- <nz-descriptions-item nzTitle="当前版本部署时间">{{
1009
- applicationInfo?.currentDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
1010
- }}</nz-descriptions-item>
817
+ <nz-descriptions-item nzTitle="当前版本部署时间">{{ applicationInfo?.currentDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss' }}</nz-descriptions-item>
1011
818
  <nz-descriptions-item nzTitle="最新版本">{{ applicationInfo?.lastVersion }}</nz-descriptions-item>
1012
- <nz-descriptions-item nzTitle="最新版本发布时间">{{
1013
- applicationInfo?.lastPushDate | date: 'yyyy-MM-dd HH:mm:ss'
1014
- }}</nz-descriptions-item>
819
+ <nz-descriptions-item nzTitle="最新版本发布时间">{{ applicationInfo?.lastPushDate | date: 'yyyy-MM-dd HH:mm:ss' }}</nz-descriptions-item>
1015
820
  </nz-descriptions>
1016
821
  </nz-skeleton>
1017
822
  </ng-container>
1018
823
  </nz-modal>
1019
- `,
1020
- imports: [
824
+ `, imports: [
1021
825
  LayoutDefaultModule,
1022
826
  RouterModule,
1023
827
  ReuseTabModule,
@@ -1034,8 +838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
1034
838
  YunzaiNavApplicationComponent,
1035
839
  YunzaiLayoutNavGroupComponent,
1036
840
  YunzaiLayoutNavTileComponent
1037
- ]
1038
- }]
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"] }]
1039
842
  }] });
1040
843
 
1041
844
  const COMPONENTS = [YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent];