@yelon/bis 18.3.0 → 19.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.
- package/fesm2022/bis.mjs +96 -82
- package/fesm2022/bis.mjs.map +1 -1
- package/fesm2022/layout.mjs +99 -110
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/yunzai-widgets.mjs +104 -114
- package/fesm2022/yunzai-widgets.mjs.map +1 -1
- package/layout/layout-basic.component.d.ts +1 -2
- package/layout/style/layout-website-01.less +1 -0
- package/package.json +12 -20
- package/src/helper.d.ts +3 -8
- package/src/refresh-token.d.ts +1 -2
- package/src/startup.service.d.ts +2 -2
- package/src/website/layout-website-01.component.d.ts +4 -5
- package/src/website/layout-website-02.component.d.ts +6 -7
- package/src/yunzai-analysis-addon.guard.d.ts +1 -2
- package/esm2022/bis.mjs +0 -5
- package/esm2022/config/bis.config.mjs +0 -15
- package/esm2022/config/config.mjs +0 -5
- package/esm2022/config/public_api.mjs +0 -2
- package/esm2022/layout/layout-basic.component.mjs +0 -518
- package/esm2022/layout/layout-nav-application.component.mjs +0 -372
- package/esm2022/layout/layout-nav-group.component.mjs +0 -166
- package/esm2022/layout/layout-nav-tile.component.mjs +0 -15
- package/esm2022/layout/layout.mjs +0 -5
- package/esm2022/layout/layout.module.mjs +0 -54
- package/esm2022/layout/public_api.mjs +0 -6
- package/esm2022/public_api.mjs +0 -11
- package/esm2022/src/bis.module.mjs +0 -17
- package/esm2022/src/helper.mjs +0 -45
- package/esm2022/src/provide.mjs +0 -8
- package/esm2022/src/refresh-token.mjs +0 -79
- package/esm2022/src/startup.service.mjs +0 -205
- package/esm2022/src/website/layout-website-01.component.mjs +0 -173
- package/esm2022/src/website/layout-website-02.component.mjs +0 -204
- package/esm2022/src/yunzai-act.guard.mjs +0 -88
- package/esm2022/src/yunzai-analysis-addon.guard.mjs +0 -99
- package/esm2022/src/yunzai-default.interceptor.mjs +0 -63
- package/esm2022/yunzai-widgets/public_api.mjs +0 -7
- package/esm2022/yunzai-widgets/yunzai-clear-storage.component.mjs +0 -47
- package/esm2022/yunzai-widgets/yunzai-fullscreen.component.mjs +0 -47
- package/esm2022/yunzai-widgets/yunzai-i18n.component.mjs +0 -139
- package/esm2022/yunzai-widgets/yunzai-notify.component.mjs +0 -180
- package/esm2022/yunzai-widgets/yunzai-user.component.mjs +0 -120
- package/esm2022/yunzai-widgets/yunzai-widget.module.mjs +0 -62
- package/esm2022/yunzai-widgets/yunzai-widgets.mjs +0 -5
package/fesm2022/layout.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
|
10
10
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
11
11
|
import * as i2 from 'ng-zorro-antd/grid';
|
|
12
12
|
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i5 from 'ng-zorro-antd/icon';
|
|
14
14
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
15
15
|
import * as i3 from 'ng-zorro-antd/input';
|
|
16
16
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
@@ -24,7 +24,7 @@ import { ReuseTabModule } from '@yelon/abc/reuse-tab';
|
|
|
24
24
|
import * as i13 from '@yelon/bis/yunzai-widgets';
|
|
25
25
|
import { YunzaiWidgetsModule } from '@yelon/bis/yunzai-widgets';
|
|
26
26
|
import { StompService } from '@yelon/socket';
|
|
27
|
-
import * as i1$
|
|
27
|
+
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';
|
|
@@ -42,21 +42,19 @@ import { mergeBisConfig } from '@yelon/bis/config';
|
|
|
42
42
|
import * as i2$1 from 'ng-zorro-antd/menu';
|
|
43
43
|
|
|
44
44
|
class YunzaiNavApplicationComponent {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
}
|
|
45
|
+
config = mergeBisConfig(inject(YunzaiConfigService));
|
|
46
|
+
http = inject(_HttpClient);
|
|
47
|
+
win = inject(WINDOW);
|
|
48
|
+
i18n = inject(YunzaiHttpI18NService);
|
|
49
|
+
destroy$ = new Subject();
|
|
50
|
+
state = {
|
|
51
|
+
active: false,
|
|
52
|
+
type: 'all',
|
|
53
|
+
topic: undefined,
|
|
54
|
+
topics: [],
|
|
55
|
+
list: [],
|
|
56
|
+
search: null
|
|
57
|
+
};
|
|
60
58
|
get showAllMenu() {
|
|
61
59
|
if (this.config.nav)
|
|
62
60
|
return this.config.nav.all;
|
|
@@ -183,8 +181,8 @@ class YunzaiNavApplicationComponent {
|
|
|
183
181
|
ngOnDestroy() {
|
|
184
182
|
this.destroy$.complete();
|
|
185
183
|
}
|
|
186
|
-
static
|
|
187
|
-
static
|
|
184
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiNavApplicationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
185
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.5", type: YunzaiNavApplicationComponent, isStandalone: true, selector: "yunzai-layout-nav-application", ngImport: i0, template: `
|
|
188
186
|
<ng-template #search>
|
|
189
187
|
<div nz-row class="yz-application-list-search">
|
|
190
188
|
<nz-input-group [nzPrefix]="prefixTemplate">
|
|
@@ -197,7 +195,7 @@ class YunzaiNavApplicationComponent {
|
|
|
197
195
|
(ngModelChange)="onSearch()"
|
|
198
196
|
/>
|
|
199
197
|
<ng-template #prefixTemplate>
|
|
200
|
-
<
|
|
198
|
+
<nz-icon nzType="search" nzTheme="outline"></nz-icon>
|
|
201
199
|
</ng-template>
|
|
202
200
|
</nz-input-group>
|
|
203
201
|
</div>
|
|
@@ -285,9 +283,9 @@ class YunzaiNavApplicationComponent {
|
|
|
285
283
|
}
|
|
286
284
|
</div>
|
|
287
285
|
</div>
|
|
288
|
-
`, isInline: true, dependencies: [{ kind: "pipe", type: I18nPipe, name: "i18n" }, { 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", "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", "nzCompact"], 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 }] });
|
|
286
|
+
`, isInline: true, dependencies: [{ kind: "pipe", type: I18nPipe, name: "i18n" }, { 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", "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", "nzCompact"], 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"] }] });
|
|
289
287
|
}
|
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiNavApplicationComponent, decorators: [{
|
|
291
289
|
type: Component,
|
|
292
290
|
args: [{
|
|
293
291
|
selector: `yunzai-layout-nav-application`,
|
|
@@ -304,7 +302,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
304
302
|
(ngModelChange)="onSearch()"
|
|
305
303
|
/>
|
|
306
304
|
<ng-template #prefixTemplate>
|
|
307
|
-
<
|
|
305
|
+
<nz-icon nzType="search" nzTheme="outline"></nz-icon>
|
|
308
306
|
</ng-template>
|
|
309
307
|
</nz-input-group>
|
|
310
308
|
</div>
|
|
@@ -393,20 +391,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
393
391
|
</div>
|
|
394
392
|
</div>
|
|
395
393
|
`,
|
|
396
|
-
|
|
397
|
-
imports: [I18nPipe, FormsModule, NzFormModule, NzInputModule, CommonModule, NzGridModule]
|
|
394
|
+
imports: [I18nPipe, FormsModule, NzFormModule, NzInputModule, CommonModule, NzGridModule, NzIconModule]
|
|
398
395
|
}]
|
|
399
396
|
}] });
|
|
400
397
|
|
|
401
398
|
class YunzaiLayoutNavGroupComponent {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
};
|
|
409
|
-
}
|
|
399
|
+
http = inject(_HttpClient);
|
|
400
|
+
destroy$ = new Subject();
|
|
401
|
+
win = inject(WINDOW);
|
|
402
|
+
state = {
|
|
403
|
+
topics: []
|
|
404
|
+
};
|
|
410
405
|
ngOnInit() {
|
|
411
406
|
const [, getTopics] = useLocalStorageHeader();
|
|
412
407
|
this.state.topics = getTopics() || [];
|
|
@@ -439,8 +434,8 @@ class YunzaiLayoutNavGroupComponent {
|
|
|
439
434
|
ngOnDestroy() {
|
|
440
435
|
this.destroy$.complete();
|
|
441
436
|
}
|
|
442
|
-
static
|
|
443
|
-
static
|
|
437
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
438
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.5", type: YunzaiLayoutNavGroupComponent, isStandalone: true, selector: "yunzai-layout-nav-group", ngImport: i0, template: `
|
|
444
439
|
<div class="yz-application-group">
|
|
445
440
|
<nz-tabset>
|
|
446
441
|
@for (menu of state.topics; track menu) {
|
|
@@ -455,11 +450,11 @@ class YunzaiLayoutNavGroupComponent {
|
|
|
455
450
|
[nzOverlayClassName]="'yz-application-dropdown'"
|
|
456
451
|
>
|
|
457
452
|
@if (menu.icon) {
|
|
458
|
-
<
|
|
453
|
+
<nz-icon [nzType]="menu.icon" nzTheme="outline"></nz-icon>
|
|
459
454
|
}
|
|
460
455
|
{{ menu.name | i18n }}
|
|
461
456
|
@if (menu.children && menu.children.length > 0) {
|
|
462
|
-
<
|
|
457
|
+
<nz-icon nzType="down" nzTheme="outline"></nz-icon>
|
|
463
458
|
}
|
|
464
459
|
</a>
|
|
465
460
|
<nz-dropdown-menu #menuTpl="nzDropdownMenu">
|
|
@@ -475,7 +470,7 @@ class YunzaiLayoutNavGroupComponent {
|
|
|
475
470
|
(click)="open(item)"
|
|
476
471
|
>
|
|
477
472
|
@if (item.icon) {
|
|
478
|
-
<
|
|
473
|
+
<nz-icon [nzType]="item.icon" nzTheme="outline"></nz-icon>
|
|
479
474
|
}
|
|
480
475
|
{{ item.name | i18n }}
|
|
481
476
|
</li>
|
|
@@ -490,9 +485,9 @@ class YunzaiLayoutNavGroupComponent {
|
|
|
490
485
|
}
|
|
491
486
|
</nz-tabset>
|
|
492
487
|
</div>
|
|
493
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: NzIconModule }, { kind: "directive", type:
|
|
488
|
+
`, 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: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i4$1.NzTabSetComponent, selector: "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: ["nzTabset"] }, { kind: "component", type: i4$1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }] });
|
|
494
489
|
}
|
|
495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutNavGroupComponent, decorators: [{
|
|
496
491
|
type: Component,
|
|
497
492
|
args: [{
|
|
498
493
|
selector: `yunzai-layout-nav-group`,
|
|
@@ -511,11 +506,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
511
506
|
[nzOverlayClassName]="'yz-application-dropdown'"
|
|
512
507
|
>
|
|
513
508
|
@if (menu.icon) {
|
|
514
|
-
<
|
|
509
|
+
<nz-icon [nzType]="menu.icon" nzTheme="outline"></nz-icon>
|
|
515
510
|
}
|
|
516
511
|
{{ menu.name | i18n }}
|
|
517
512
|
@if (menu.children && menu.children.length > 0) {
|
|
518
|
-
<
|
|
513
|
+
<nz-icon nzType="down" nzTheme="outline"></nz-icon>
|
|
519
514
|
}
|
|
520
515
|
</a>
|
|
521
516
|
<nz-dropdown-menu #menuTpl="nzDropdownMenu">
|
|
@@ -531,7 +526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
531
526
|
(click)="open(item)"
|
|
532
527
|
>
|
|
533
528
|
@if (item.icon) {
|
|
534
|
-
<
|
|
529
|
+
<nz-icon [nzType]="item.icon" nzTheme="outline"></nz-icon>
|
|
535
530
|
}
|
|
536
531
|
{{ item.name | i18n }}
|
|
537
532
|
</li>
|
|
@@ -547,55 +542,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
547
542
|
</nz-tabset>
|
|
548
543
|
</div>
|
|
549
544
|
`,
|
|
550
|
-
standalone: true,
|
|
551
545
|
imports: [NzIconModule, NzDropDownModule, I18nPipe, NzTabsModule]
|
|
552
546
|
}]
|
|
553
547
|
}] });
|
|
554
548
|
|
|
555
549
|
class YunzaiLayoutNavTileComponent {
|
|
556
|
-
static
|
|
557
|
-
static
|
|
550
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutNavTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
551
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: YunzaiLayoutNavTileComponent, isStandalone: true, selector: "yunzai-layout-nav-tile", ngImport: i0, template: `<ng-template />`, isInline: true });
|
|
558
552
|
}
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutNavTileComponent, decorators: [{
|
|
560
554
|
type: Component,
|
|
561
555
|
args: [{
|
|
562
556
|
selector: `yunzai-layout-nav-tile`,
|
|
563
|
-
template: `<ng-template
|
|
564
|
-
standalone: true
|
|
557
|
+
template: `<ng-template />`
|
|
565
558
|
}]
|
|
566
559
|
}] });
|
|
567
560
|
|
|
568
561
|
class YunzaiLayoutBasicComponent {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
562
|
+
stomp = inject(StompService);
|
|
563
|
+
win = inject(WINDOW);
|
|
564
|
+
layoutDisplayService = inject(LayoutDisplayService);
|
|
565
|
+
conf = inject(YUNZAI_CONFIG);
|
|
566
|
+
NavType = NavType;
|
|
567
|
+
state = {
|
|
568
|
+
options: {
|
|
569
|
+
logoExpanded: `./assets/logo-full.svg`,
|
|
570
|
+
logoCollapsed: `./assets/logo.svg`
|
|
571
|
+
},
|
|
572
|
+
aside: {
|
|
573
|
+
name: '',
|
|
574
|
+
intro: '',
|
|
575
|
+
icon: ''
|
|
576
|
+
},
|
|
577
|
+
display: {
|
|
578
|
+
nav: true,
|
|
579
|
+
aside: true,
|
|
580
|
+
reusetab: true
|
|
581
|
+
},
|
|
582
|
+
navType: NavType.APPLICATION
|
|
583
|
+
};
|
|
584
|
+
headerStyleList = [];
|
|
585
|
+
applicationInfo;
|
|
586
|
+
applicationModal = {
|
|
587
|
+
isVisible: false,
|
|
588
|
+
loading: false
|
|
589
|
+
};
|
|
590
|
+
httpClient = inject(HttpClient);
|
|
591
|
+
config;
|
|
599
592
|
get options() {
|
|
600
593
|
return this.state.options;
|
|
601
594
|
}
|
|
@@ -710,10 +703,7 @@ class YunzaiLayoutBasicComponent {
|
|
|
710
703
|
const name = urlArr[1].split('/')[0];
|
|
711
704
|
this.applicationModal.isVisible = true;
|
|
712
705
|
this.applicationModal.loading = true;
|
|
713
|
-
|
|
714
|
-
this.httpClient.get(`/basic/api/app/aboutApp?name=${name}`).subscribe(
|
|
715
|
-
// @ts-ignore
|
|
716
|
-
(response) => {
|
|
706
|
+
this.httpClient.get(`/basic/api/app/aboutApp?name=${name}`).subscribe((response) => {
|
|
717
707
|
this.applicationModal.loading = false;
|
|
718
708
|
if (response.data) {
|
|
719
709
|
this.applicationInfo = response.data;
|
|
@@ -723,8 +713,8 @@ class YunzaiLayoutBasicComponent {
|
|
|
723
713
|
});
|
|
724
714
|
}
|
|
725
715
|
}
|
|
726
|
-
static
|
|
727
|
-
static
|
|
716
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutBasicComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
717
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.5", type: YunzaiLayoutBasicComponent, isStandalone: true, selector: "yunzai-layout-basic", ngImport: i0, template: `
|
|
728
718
|
<layout-default [options]="options" [asideUser]="asideUserTpl" [content]="displayReusetab ? contentTpl : noneTpl">
|
|
729
719
|
<layout-default-header-item direction="left">
|
|
730
720
|
<ng-container [ngSwitch]="navType">
|
|
@@ -759,7 +749,7 @@ class YunzaiLayoutBasicComponent {
|
|
|
759
749
|
nzTrigger="click"
|
|
760
750
|
nzPlacement="bottomRight"
|
|
761
751
|
>
|
|
762
|
-
<
|
|
752
|
+
<nz-icon nzType="setting" />
|
|
763
753
|
</div>
|
|
764
754
|
<nz-dropdown-menu #settingsMenu="nzDropdownMenu">
|
|
765
755
|
<div nz-menu style="width: 200px;">
|
|
@@ -777,22 +767,22 @@ class YunzaiLayoutBasicComponent {
|
|
|
777
767
|
>
|
|
778
768
|
<ng-container [ngSwitch]="i.value">
|
|
779
769
|
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
780
|
-
<
|
|
770
|
+
<nz-icon nzType="appstore" class="mr-sm" />
|
|
781
771
|
</ng-container>
|
|
782
772
|
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
783
|
-
<
|
|
773
|
+
<nz-icon nzType="group" class="mr-sm" />
|
|
784
774
|
</ng-container>
|
|
785
775
|
<ng-container *ngSwitchCase="NavType.TILE">
|
|
786
|
-
<
|
|
776
|
+
<nz-icon nzType="dash" class="mr-sm" />
|
|
787
777
|
</ng-container>
|
|
788
778
|
<ng-container *ngSwitchCase="NavType.BLANK">
|
|
789
|
-
<
|
|
779
|
+
<nz-icon nzType="border" class="mr-sm" />
|
|
790
780
|
</ng-container>
|
|
791
781
|
<ng-container *ngSwitchCase="NavType.TABS">
|
|
792
|
-
<
|
|
782
|
+
<nz-icon nzType="insert-row-above" class="mr-sm" />
|
|
793
783
|
</ng-container>
|
|
794
784
|
<ng-container *ngSwitchDefault>
|
|
795
|
-
<
|
|
785
|
+
<nz-icon nzType="appstore" class="mr-sm" />
|
|
796
786
|
</ng-container>
|
|
797
787
|
{{ 'mode.nav.' + i.value | i18n }}
|
|
798
788
|
</ng-container>
|
|
@@ -836,7 +826,7 @@ class YunzaiLayoutBasicComponent {
|
|
|
836
826
|
</nz-dropdown-menu>
|
|
837
827
|
</ng-template>
|
|
838
828
|
<ng-template #contentTpl>
|
|
839
|
-
<reuse-tab #reuseTab [
|
|
829
|
+
<reuse-tab #reuseTab [style]="reusetabCSS" />
|
|
840
830
|
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)" />
|
|
841
831
|
</ng-template>
|
|
842
832
|
<ng-template #noneTpl>
|
|
@@ -872,9 +862,9 @@ class YunzaiLayoutBasicComponent {
|
|
|
872
862
|
</nz-skeleton>
|
|
873
863
|
</ng-container>
|
|
874
864
|
</nz-modal>
|
|
875
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: LayoutDefaultModule }, { kind: "component", type: i1$
|
|
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: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { 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"], 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" }] });
|
|
876
866
|
}
|
|
877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
|
|
878
868
|
type: Component,
|
|
879
869
|
args: [{
|
|
880
870
|
selector: `yunzai-layout-basic`,
|
|
@@ -913,7 +903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
913
903
|
nzTrigger="click"
|
|
914
904
|
nzPlacement="bottomRight"
|
|
915
905
|
>
|
|
916
|
-
<
|
|
906
|
+
<nz-icon nzType="setting" />
|
|
917
907
|
</div>
|
|
918
908
|
<nz-dropdown-menu #settingsMenu="nzDropdownMenu">
|
|
919
909
|
<div nz-menu style="width: 200px;">
|
|
@@ -931,22 +921,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
931
921
|
>
|
|
932
922
|
<ng-container [ngSwitch]="i.value">
|
|
933
923
|
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
934
|
-
<
|
|
924
|
+
<nz-icon nzType="appstore" class="mr-sm" />
|
|
935
925
|
</ng-container>
|
|
936
926
|
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
937
|
-
<
|
|
927
|
+
<nz-icon nzType="group" class="mr-sm" />
|
|
938
928
|
</ng-container>
|
|
939
929
|
<ng-container *ngSwitchCase="NavType.TILE">
|
|
940
|
-
<
|
|
930
|
+
<nz-icon nzType="dash" class="mr-sm" />
|
|
941
931
|
</ng-container>
|
|
942
932
|
<ng-container *ngSwitchCase="NavType.BLANK">
|
|
943
|
-
<
|
|
933
|
+
<nz-icon nzType="border" class="mr-sm" />
|
|
944
934
|
</ng-container>
|
|
945
935
|
<ng-container *ngSwitchCase="NavType.TABS">
|
|
946
|
-
<
|
|
936
|
+
<nz-icon nzType="insert-row-above" class="mr-sm" />
|
|
947
937
|
</ng-container>
|
|
948
938
|
<ng-container *ngSwitchDefault>
|
|
949
|
-
<
|
|
939
|
+
<nz-icon nzType="appstore" class="mr-sm" />
|
|
950
940
|
</ng-container>
|
|
951
941
|
{{ 'mode.nav.' + i.value | i18n }}
|
|
952
942
|
</ng-container>
|
|
@@ -990,7 +980,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
990
980
|
</nz-dropdown-menu>
|
|
991
981
|
</ng-template>
|
|
992
982
|
<ng-template #contentTpl>
|
|
993
|
-
<reuse-tab #reuseTab [
|
|
983
|
+
<reuse-tab #reuseTab [style]="reusetabCSS" />
|
|
994
984
|
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)" />
|
|
995
985
|
</ng-template>
|
|
996
986
|
<ng-template #noneTpl>
|
|
@@ -1027,7 +1017,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
1027
1017
|
</ng-container>
|
|
1028
1018
|
</nz-modal>
|
|
1029
1019
|
`,
|
|
1030
|
-
standalone: true,
|
|
1031
1020
|
imports: [
|
|
1032
1021
|
LayoutDefaultModule,
|
|
1033
1022
|
RouterModule,
|
|
@@ -1051,8 +1040,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
|
|
|
1051
1040
|
|
|
1052
1041
|
const COMPONENTS = [YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent];
|
|
1053
1042
|
class YunzaiLayoutModule {
|
|
1054
|
-
static
|
|
1055
|
-
static
|
|
1043
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1044
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutModule, imports: [I18nPipe,
|
|
1056
1045
|
FormsModule,
|
|
1057
1046
|
NzFormModule,
|
|
1058
1047
|
NzInputModule,
|
|
@@ -1060,17 +1049,17 @@ class YunzaiLayoutModule {
|
|
|
1060
1049
|
NzGridModule,
|
|
1061
1050
|
NzIconModule,
|
|
1062
1051
|
NzDropDownModule,
|
|
1063
|
-
NzTabsModule, YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent], exports: [YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent] });
|
|
1064
|
-
static
|
|
1052
|
+
NzTabsModule, YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent], exports: [YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent] });
|
|
1053
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutModule, imports: [FormsModule,
|
|
1065
1054
|
NzFormModule,
|
|
1066
1055
|
NzInputModule,
|
|
1067
1056
|
CommonModule,
|
|
1068
1057
|
NzGridModule,
|
|
1069
1058
|
NzIconModule,
|
|
1070
1059
|
NzDropDownModule,
|
|
1071
|
-
NzTabsModule, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent] });
|
|
1060
|
+
NzTabsModule, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent] });
|
|
1072
1061
|
}
|
|
1073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutModule, decorators: [{
|
|
1074
1063
|
type: NgModule,
|
|
1075
1064
|
args: [{
|
|
1076
1065
|
imports: [
|